|
@@ -1,16 +1,20 @@
|
|
-import { defineComponent } from 'vue'
|
|
|
|
-import { Vue3Lottie } from 'vue3-lottie'
|
|
|
|
-import AstronautJSON from '../o-full-refresh/datas/data.json'
|
|
|
|
-import styles from './index.module.less'
|
|
|
|
|
|
+import { defineComponent } from 'vue';
|
|
|
|
+// import { Vue3Lottie } from 'vue3-lottie';
|
|
|
|
+// import AstronautJSON from '../o-full-refresh/datas/data.json';
|
|
|
|
+import loading from '../o-full-refresh/datas/loading.gif';
|
|
|
|
+import styles from './index.module.less';
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
name: 'o-loading',
|
|
name: 'o-loading',
|
|
setup() {
|
|
setup() {
|
|
return () => (
|
|
return () => (
|
|
<div class={styles.loading}>
|
|
<div class={styles.loading}>
|
|
- <Vue3Lottie style={{width: '55px', height: '55px'}} animationData={AstronautJSON}></Vue3Lottie>
|
|
|
|
- <div class={styles.des}>加载中</div>
|
|
|
|
|
|
+ {/* <Vue3Lottie
|
|
|
|
+ style={{ width: '55px', height: '55px' }}
|
|
|
|
+ animationData={AstronautJSON}></Vue3Lottie> */}
|
|
|
|
+ <img class={styles.loading} src={loading} />
|
|
|
|
+ {/* <div class={styles.des}>加载中</div> */}
|
|
</div>
|
|
</div>
|
|
- )
|
|
|
|
|
|
+ );
|
|
}
|
|
}
|
|
-})
|
|
|
|
|
|
+});
|