feat: 新增自定义背景图

This commit is contained in:
MTrun
2022-02-06 21:35:38 +08:00
parent 688ce50c58
commit 8fb8b9328d
18 changed files with 297 additions and 51 deletions
@@ -0,0 +1,5 @@
<template>
<div>
<Skeleton repeat="3" :show="true"/>
</div>
</template>
+6 -1
View File
@@ -1,6 +1,7 @@
import type { App } from 'vue'
import LoadingComponent from './index.vue'
import AsyncLoading from './index.vue'
import AsyncSkeletonLoading from './Skeleton.vue'
// 正常组件
export { LoadingComponent }
@@ -9,4 +10,8 @@ export { LoadingComponent }
AsyncLoading.install = (app: App): void => {
app.component('AsyncLoading', AsyncLoading)
}
export { AsyncLoading }
AsyncSkeletonLoading.install = (app: App): void => {
app.component('AsyncSkeletonLoading', AsyncSkeletonLoading)
}
export { AsyncLoading, AsyncSkeletonLoading }