$tip - 阻塞式对话框
- 更新时间:2026-02-08 19:43:43
阻塞式对话框
什么是阻塞式对话框?
答:当对话框发起调用时,阻塞当前线程不向下执行代码,当对话框处理完事件之后,下面的代码才会执行。
i(msg)
[信息]对话框
- 参数 : msg {Object...} 信息内容
- 版本 : 1.0.0
v(msg)
[说明]对话框
- 参数 : msg {Object...} 信息内容
- 版本 : 1.0.0
w(msg)
[警告]对话框
- 参数 : msg {Object...} 信息内容
- 版本 : 1.0.0
e(msg)
[异常]对话框
- 参数 : msg {Object...} 信息内容
- 版本 : 1.0.0
d(msg)
[调试]对话框
- 参数 : msg {Object...} 信息内容
- 版本 : 1.0.0
input(title, callback)
输入对话框
- 参数 : title {string} 标题
- 参数 : callback {(value)=>{}} 确定按钮回调
- 版本 : 1.0.0
input(title, def, callback)
输入对话框(默认值)
- 参数 : title {string} 标题
- 参数 : def {string} 默认值
- 参数 : callback {(value)=>{}} 确定按钮回调
- 版本 : 1.0.0
input(title, hint, def, callback)
输入对话框(默认值)
- 参数 : title {string} 标题
- 参数 : hint {string} 提示
- 参数 : def {string} 默认值
- 参数 : callback {(value)=>{}} 确定按钮回调
- 版本 : 1.0.0
inputInt(title, callback)
输入整数
如果输入的字符串最后无法解析成数字则回调结果为0
引导文字默认为标题
默认值为0
- 参数 : title {string} 标题
- 参数 : callback {(num)=>{}} 结果回调
inputInt(title, def, callback)
输入整数
如果输入的字符串最后无法解析成数字则回调结果为0
引导文字默认为标题
- 参数 : title {string} 标题
- 参数 : def {int} 默认值
- 参数 : callback {(num)=>{}} 结果回调
inputInt(title, hint, callback)
输入整数
如果输入的字符串最后无法解析成数字则回调结果为0
默认值为0
- 参数 : title {string} 标题
- 参数 : hint {string} 引导文字
- 参数 : callback {(num)=>{}} 结果回调
inputInt(title, hint, def, callback)
输入整数
如果输入的字符串最后无法解析成数字则回调结果为0
- 参数 : title {string} 标题
- 参数 : hint {string} 引导文字
- 参数 : def {int} 默认值
- 参数 : callback {(num)=>{}} 结果回调
show(title, msg)
文本提示对话框
- 参数 : title {string} 标题
- 参数 : msg {string} 信息
- 版本 : 1.0.0
show(title, msg, click)
文本提示对话框(有回调)
- 参数 : title {string} 标题
- 参数 : msg {string} 信息
- 参数 : click {()=>{}} [确定]按钮回调
- 版本 : 1.0.0
show(title, view)
自定义对话框(右上角关闭)
- 参数 : title {string} 标题
- 参数 : view {View} 自定义view
- 版本 : 1.0.0
show(title, view, click)
自定义对话框(确定关闭)
- 参数 : title {string} 标题
- 参数 : view {View} 自定义view
- 参数 : click {()=>{}} 点击确定按钮的回调
- 版本 : 1.0.0
one(title, items, callback)
单选对话框
- 参数 : title {string} 标题
- 参数 : items {list[string]} 选项
- 参数 : callback {(value)=>{}} 选择回调
- 版本 : 1.0.0
more(title, items, callback)
多选对话框
- 参数 : title {string} 标题
- 参数 : items {list[string]} 选项
- 参数 : callback {(values)=>{}} 选择回调
- 版本 : 1.0.0
calendar(callback)
日期选择对话框
- 参数 : callback {(dateInfo)=>{}} 选择回调
- 版本 : 1.7.0
date(callback)
滚轮方式选择日期
- 参数 : callback {(timeInfo)=>{}} 选择回调
- 版本 : 1.2.8
clock(callback)
时间选择对话框
- 参数 : callback {(timeInfo)=>{}} 选择回调
- 版本 : 1.7.0
time(callback)
时间滚动选择对话框
- 参数 : callback {(timeInfo)=>{}} 选择回调
- 版本 : 1.2.8