Skip to content

Commit 2f08242

Browse files
committed
perf: 扩展组件选项添加 loading
1 parent 5b1d56e commit 2f08242

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

‎pages/tabBar/extUI/extUI.vue‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<view class="uni-padding-wrap uni-common-pb">
33
<view class="uni-header-logo">
4-
<image src="../../../static/extuiIndex.png"></image>
4+
<image src="/static/extuiIndex.png"></image>
55
</view>
66
<view class="uni-hello-text uni-common-pb">
77
以下是uni-app扩展组件示例,更多组件见插件市场:https://ext.dcloud.net.cn。
@@ -90,7 +90,17 @@
9090
url: 'calendar'
9191
}
9292
]
93-
}
93+
};
94+
},
95+
onLoad() {
96+
// #ifdef APP-PLUS
97+
plus.nativeUI.showWaiting('加载中……');
98+
// #endif
99+
},
100+
onReady() {
101+
// #ifdef APP-PLUS
102+
plus.nativeUI.closeWaiting();
103+
// #endif
94104
},
95105
onShareAppMessage() {
96106
return {

0 commit comments

Comments
 (0)