提交 0acb2f23 编写于 作者: 杜庆泉's avatar 杜庆泉

prompt 增加 onload 调用示例

上级 421fac61
......@@ -58,6 +58,12 @@
current: 0,
}
},
onLoad(){
uni.showActionSheet({
title: "onLoad 调用示例,请手动取消",
itemList:['item1', 'item2'],
})
},
methods: {
radioChange(e : RadioGroupChangeEvent) {
for (let i = 0; i < this.items.length; i++) {
......
......@@ -58,6 +58,14 @@
titleSelect: "null"
}
},
onLoad(){
uni.showLoading({
title:'onLoad 调用示例,1秒后消失'
})
setTimeout(function() {
uni.hideLoading()
}, 1000);
},
methods: {
radioChange(e : RadioGroupChangeEvent) {
......
......@@ -79,6 +79,12 @@
current: 0
}
},
onLoad(){
uni.showModal({
title: "onLoad 调用示例,请手动取消",
showCancel:false
})
},
methods: {
showCancelChange: function (e : SwitchChangeEvent) {
this.showCancelSelect = e.detail.value
......
......@@ -27,6 +27,14 @@
exeRet: ''
}
},
onLoad(){
uni.showToast({
title:'onLoad 调用示例,1秒后消失'
})
setTimeout(function() {
uni.hideToast()
}, 1000);
},
methods: {
toast1Tap: function () {
uni.showToast({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册