fix: 修改名称规范问题

This commit is contained in:
MTrun
2022-03-14 19:52:01 +08:00
parent 3a9f68384f
commit 6c402b3a17
70 changed files with 136 additions and 155 deletions
+3
View File
@@ -0,0 +1,3 @@
import GoSkeleton from './index.vue';
export { GoSkeleton };
+29
View File
@@ -0,0 +1,29 @@
<template>
<div v-show="load">
<div v-show="repeat == 1">
<n-skeleton v-bind="$attrs"></n-skeleton>
</div>
<div v-show="repeat == 2">
<n-skeleton v-bind="$attrs"></n-skeleton>
<n-skeleton v-bind="$attrs" style="width: 60%;"></n-skeleton>
</div>
<div v-show="repeat > 2">
<n-skeleton v-bind="$attrs" :repeat="repeat - 2"></n-skeleton>
<n-skeleton v-bind="$attrs" style="width: 60%;"></n-skeleton>
<n-skeleton v-bind="$attrs" style="width: 50%;"></n-skeleton>
</div>
</div>
</template>
<script lang="ts" setup>
defineProps({
repeat: {
type: Number,
default: 1
},
load: {
type: Boolean,
default: true
}
})
</script>