提交 295c0f2c authored 作者: RuoYi's avatar RuoYi

支持Modal弹框自定义标题

上级 c27a8aa1
......@@ -25,18 +25,18 @@ export default {
uni.hideToast()
},
// 弹出提示
alert(content) {
alert(content, title) {
uni.showModal({
title: '提示',
title: title || '系统提示',
content: content,
showCancel: false
})
},
// 确认窗体
confirm(content) {
confirm(content, title) {
return new Promise((resolve, reject) => {
uni.showModal({
title: '系统提示',
title: title || '系统提示',
content: content,
cancelText: '取消',
confirmText: '确定',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论