mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-09 15:04:06 +08:00
更新文档
This commit is contained in:
parent
0ea8c4cf65
commit
25c4741530
File diff suppressed because one or more lines are too long
@ -244,12 +244,13 @@ quickcommand.showMessageBox("这是一段3s后自动消失的失败提示", "err
|
|||||||
|
|
||||||
- title: String | undefined 提示的标题
|
- title: String | undefined 提示的标题
|
||||||
- 返回: Promise
|
- 返回: Promise
|
||||||
|
- confirmed: Boolean | undefined 是否点击了确定按钮
|
||||||
|
|
||||||
显示一个确认框
|
显示一个确认框
|
||||||
|
|
||||||
```js
|
```js
|
||||||
quickcommand.showConfirmBox().then(() => {
|
quickcommand.showConfirmBox().then(confirmed => {
|
||||||
console.log('点击了确定')
|
confirmed && console.log('点击了确定')
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user