mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix: 新增列表数据更新,修改数据更新 hook 函数
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<!-- 骨架图 -->
|
||||
<go-skeleton :repeat="3" :show="true"></go-skeleton>
|
||||
</div>
|
||||
</template>
|
||||
@@ -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 }
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user