TUIMessageBox 消息弹框
模拟系统的消息提示框,用于消息提示、确认消息和提交内容。
Alert 提示
Confirm 确认
Prompt 输入
成功
警告
错误
信息
自定义内容
显示 MessageBox
关闭 MessageBox
API
配置选项
modal
是否显示遮罩层
boolean
true
showClose
是否显示关闭按钮
boolean
false
cancelText
取消按钮文本
string
'取消'
confirmText
确认按钮文本
string
'确定'
showInput
是否显示输入框
boolean
false
inputValue
输入框的初始值
string
''
inputPlaceholder
输入框占位符
string
-
duration
显示时长 (ms)
number
-
方法
alert
显示提示框
options
MessageBoxHandle
confirm
显示确认框
options
MessageBoxHandle
prompt
显示输入框
options
MessageBoxHandle
MessageBoxHandle 实例方法
close
关闭 MessageBox
-
void