Use CardImage for cards
This commit is contained in:
parent
214290439f
commit
d2b4774ba9
1 changed files with 3 additions and 1 deletions
|
@ -24,7 +24,7 @@
|
||||||
:key="i + card.ID"
|
:key="i + card.ID"
|
||||||
@dragstart="dragStartCard.bind(this, card)"
|
@dragstart="dragStartCard.bind(this, card)"
|
||||||
>
|
>
|
||||||
<img :src="imageURL(card.ID)" />
|
<CardImage :id="card.ID" />
|
||||||
</article>
|
</article>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
@ -137,9 +137,11 @@ $hand-max-height: 150px;
|
||||||
import { Component, Vue } from "vue-property-decorator";
|
import { Component, Vue } from "vue-property-decorator";
|
||||||
import { Card, cardImageURL, getCards } from "@/mlpccg";
|
import { Card, cardImageURL, getCards } from "@/mlpccg";
|
||||||
import Zone from "@/components/GameBoard/Zone.vue";
|
import Zone from "@/components/GameBoard/Zone.vue";
|
||||||
|
import CardImage from "@/components/Cards/CardImage.vue";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
components: {
|
components: {
|
||||||
|
CardImage,
|
||||||
Zone
|
Zone
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue