docs(ActionSheet): add callback (#8072)

This commit is contained in:
neverland 2021-02-03 11:00:06 +08:00 committed by GitHub
parent 3da3dfe7dd
commit 3db2610931
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 8 deletions

View File

@ -186,13 +186,14 @@ export default {
### Data Structure of Action ### Data Structure of Action
| Key | Description | Type | | Key | Description | Type |
| --------- | ---------------------------- | --------------------------- | | --------- | ------------------------------- | --------------------------- |
| name | Title | _string_ | | name | Title | _string_ |
| subname | Subtitle | _string_ | | subname | Subtitle | _string_ |
| color | Text color | _string_ | | color | Text color | _string_ |
| className | className for the option | _string \| Array \| object_ | | className | className for the option | _string \| Array \| object_ |
| loading | Whether to be loading status | _boolean_ | | loading | Whether to be loading status | _boolean_ |
| disabled | Whether to be disabled | _boolean_ | | disabled | Whether to be disabled | _boolean_ |
| callback | Callback function after clicked | _action: Action_ |
### Events ### Events

View File

@ -209,6 +209,7 @@ export default {
| className | 为对应列添加额外的 class | _string \| Array \| object_ | | className | 为对应列添加额外的 class | _string \| Array \| object_ |
| loading | 是否为加载状态 | _boolean_ | | loading | 是否为加载状态 | _boolean_ |
| disabled | 是否为禁用状态 | _boolean_ | | disabled | 是否为禁用状态 | _boolean_ |
| callback | 点击时触发的回调函数 | _action: Action_ |
### Events ### Events