From 3db26109313479deb821b2f46d3d6c99dacb8274 Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 3 Feb 2021 11:00:06 +0800 Subject: [PATCH] docs(ActionSheet): add callback (#8072) --- src/action-sheet/README.md | 17 +++++++++-------- src/action-sheet/README.zh-CN.md | 1 + 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/action-sheet/README.md b/src/action-sheet/README.md index 7089cb900..4c7110f8e 100644 --- a/src/action-sheet/README.md +++ b/src/action-sheet/README.md @@ -185,14 +185,15 @@ export default { ### Data Structure of Action -| Key | Description | Type | -| --------- | ---------------------------- | --------------------------- | -| name | Title | _string_ | -| subname | Subtitle | _string_ | -| color | Text color | _string_ | -| className | className for the option | _string \| Array \| object_ | -| loading | Whether to be loading status | _boolean_ | -| disabled | Whether to be disabled | _boolean_ | +| Key | Description | Type | +| --------- | ------------------------------- | --------------------------- | +| name | Title | _string_ | +| subname | Subtitle | _string_ | +| color | Text color | _string_ | +| className | className for the option | _string \| Array \| object_ | +| loading | Whether to be loading status | _boolean_ | +| disabled | Whether to be disabled | _boolean_ | +| callback | Callback function after clicked | _action: Action_ | ### Events diff --git a/src/action-sheet/README.zh-CN.md b/src/action-sheet/README.zh-CN.md index eb692af61..4c5fb5b59 100644 --- a/src/action-sheet/README.zh-CN.md +++ b/src/action-sheet/README.zh-CN.md @@ -209,6 +209,7 @@ export default { | className | 为对应列添加额外的 class | _string \| Array \| object_ | | loading | 是否为加载状态 | _boolean_ | | disabled | 是否为禁用状态 | _boolean_ | +| callback | 点击时触发的回调函数 | _action: Action_ | ### Events