fix: 新增列表数据更新,修改数据更新 hook 函数

This commit is contained in:
奔跑的面条
2022-04-02 11:34:54 +08:00
parent 2c2aaaac67
commit 6ae0cd55e6
14 changed files with 210 additions and 135 deletions
@@ -0,0 +1,6 @@
<template>
<div>
<!-- 骨架图 -->
<go-skeleton :repeat="3" :show="true"></go-skeleton>
</div>
</template>
+17
View File
@@ -0,0 +1,17 @@
import type { App } from 'vue'
import GoLoading from './index.vue'
import AsyncLoading from './index.vue'
import AsyncSkeletonLoading from './LoadingSkeleton.vue'
// 正常组件
export { GoLoading }
// 异步
AsyncLoading.install = (app: App): void => {
app.component('AsyncLoading', AsyncLoading)
}
AsyncSkeletonLoading.install = (app: App): void => {
app.component('AsyncSkeletonLoading', AsyncSkeletonLoading)
}
export { AsyncLoading, AsyncSkeletonLoading }
+16
View File
@@ -0,0 +1,16 @@
<template>
<!-- svg加载图 -->
<div class="go-loading-svg go-flex-center">
<img src="~@/assets/images/tips/loadingSvg.svg" alt="" />
</div>
</template>
<style lang="scss" scoped>
@include go('loading-svg') {
width: 100%;
height: 100%;
background-color: transparent;
img {
height: 50px;
}
}
</style>