1234567891011121314151617181920212223242526272829303132333435 |
- <template>
- <div class="md:flex">
- <template v-for="(item, index) in list" :key="item.title">
- <Card
- size="small"
- :loading="loading"
- :title="item.nameCn"
- class="md:w-1/4 w-full !md:mt-0 !mt-4"
- :class="[index != list.length && '!md:mr-4']"
- :canExpan="false"
- >
- <div class="py-4 px-4 flex justify-between">
- <div class="" v-if="item.score == '暂无评分' || item.score == 0">无</div>
- <CountTo v-else prefix="分" :startVal="1" :endVal="item.score" class="text-2xl" />
- </div>
- </Card>
- </template>
- </div>
- </template>
- <script lang="ts" setup>
- import { CountTo } from '/@/components/CountTo/index';
- import { Icon } from '/@/components/Icon';
- import { Tag, Card } from 'ant-design-vue';
- import { growCardList, GrowCardItem } from '../data';
- defineProps({
- loading: {
- type: Boolean,
- },
- list: {
- type: Array as PropType<Array<GrowCardItem>>,
- default: [],
- },
- });
- </script>
|