Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
LYS86 authored May 17, 2024
1 parent 717e368 commit 3a7571a
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions docs/dialogs.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,13 @@ tosatLog(age);
- `callback` {function} 事件触发执行的回调函数

监听事件


```js
dialogs.build({
title: "标题"
}).on("show", (dialog)=>{
toast("对话框显示了");
}).show();
```

| 事件名 | 回调参数 | 描述 |
|----------------|----------------------------------------------------------|--------------------------------------------------------------------------------|
Expand All @@ -327,21 +332,19 @@ tosatLog(age);
| `input` | `text` {string}, `dialog` {Dialog} | 带有输入框的对话框点击确定时触发 |
| `input_change` | `text` {string}, `dialog` {Dialog} | 对话框的输入框文本发生变化时触发 |

请根据您的需求选择相应的事件进行使用
## Dialog.getProgress()

## dialog.getProgress()

- 返回 {number}
- `return` {number}

获取当前进度条的进度值,是一个整数

## dialog.getMaxProgress()
## Dialog.getMaxProgress()

- 返回 {number}
- `return` {number}

获取当前进度条的最大进度值,是一个整数

## dialog.getActionButton(action)
## Dialog.getActionButton(action)

- `action` {string} 动作,包括:
- `positive`
Expand Down

0 comments on commit 3a7571a

Please sign in to comment.