提交 4c9a338e 编写于 作者: 雪洛's avatar 雪洛

chore: update showModal

上级 720c7784
...@@ -128,13 +128,14 @@ export function hideToast () { ...@@ -128,13 +128,14 @@ export function hideToast () {
} }
export function showModal ({ export function showModal ({
title = '', title = '',
content = ' ', content = '',
showCancel = true, showCancel = true,
cancelText = '取消', cancelText = '取消',
cancelColor = '#000000', cancelColor = '#000000',
confirmText = '确定', confirmText = '确定',
confirmColor = '#3CC51F' confirmColor = '#3CC51F'
} = {}, callbackId) { } = {}, callbackId) {
content = content || ' '
plus.nativeUI.confirm(content, (e) => { plus.nativeUI.confirm(content, (e) => {
if (showCancel) { if (showCancel) {
invoke(callbackId, { invoke(callbackId, {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册