mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix: 完成首页静态展示内容
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
import Skeleton from './index.vue';
|
||||
|
||||
export { Skeleton };
|
||||
@@ -0,0 +1,29 @@
|
||||
<template>
|
||||
<div v-show="load">
|
||||
<div v-show="repeat == 1">
|
||||
<n-skeleton v-bind="$attrs" />
|
||||
</div>
|
||||
<div v-show="repeat == 2">
|
||||
<n-skeleton v-bind="$attrs" />
|
||||
<n-skeleton v-bind="$attrs" style="width: 60%;" />
|
||||
</div>
|
||||
<div v-show="repeat > 2">
|
||||
<n-skeleton v-bind="$attrs" :repeat="repeat - 2" />
|
||||
<n-skeleton v-bind="$attrs" style="width: 60%;" />
|
||||
<n-skeleton v-bind="$attrs" style="width: 50%;" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
defineProps({
|
||||
repeat: {
|
||||
type: Number,
|
||||
default: 1
|
||||
},
|
||||
load: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
})
|
||||
</script>
|
||||
Reference in New Issue
Block a user