From 43f02d1b364f5f57e2f88df6d252af53ec1b4232 Mon Sep 17 00:00:00 2001 From: Nya Candy Date: Fri, 15 Oct 2021 18:42:45 +0800 Subject: [PATCH 1/2] add: bar card component --- src/components/BarCard.vue | 29 +++++++++++++++++++++ src/components/NFT/NFTItem.vue | 13 +++++----- src/views/Test.vue | 46 ++++++++++++++++++++++++++++++++++ 3 files changed, 82 insertions(+), 6 deletions(-) create mode 100644 src/components/BarCard.vue diff --git a/src/components/BarCard.vue b/src/components/BarCard.vue new file mode 100644 index 0000000..2e111bf --- /dev/null +++ b/src/components/BarCard.vue @@ -0,0 +1,29 @@ + + + + + diff --git a/src/components/NFT/NFTItem.vue b/src/components/NFT/NFTItem.vue index e14cc69..d3b7be2 100644 --- a/src/components/NFT/NFTItem.vue +++ b/src/components/NFT/NFTItem.vue @@ -4,7 +4,8 @@ width: size + 'px', height: size + 'px', }" - class="rounded shadow-nft" + class="shadow-nft" + :class="size < 60 ? 'rounded-sm' : 'rounded'" >