更新:1.课程详情增加骨架屏;2.图书首页和图书详情增加骨架屏;
This commit is contained in:
16
components/Skeleton/templates/ImageCard.vue
Normal file
16
components/Skeleton/templates/ImageCard.vue
Normal file
@@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<view>
|
||||
<wd-skeleton theme="image" :row-col="list" animation="gradient" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
const props = defineProps<{
|
||||
size?: any[],
|
||||
count: number
|
||||
}>()
|
||||
const list = Array.from({ length: props.count }, (_, index) => (props.size || []))
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
</style>
|
||||
Reference in New Issue
Block a user