diff --git a/src/action-sheet/README.md b/src/action-sheet/README.md index 940a5ce53..6ad853c0a 100644 --- a/src/action-sheet/README.md +++ b/src/action-sheet/README.md @@ -155,8 +155,8 @@ export default { |------|------|------| | select | Triggered when click option | *action: Action, index: number* | | cancel | Triggered when cancel click | - | -| click-overlay | Triggered when click overlay | - | | open | Triggered when open ActionSheet | - | -| opened | Triggered when opened ActionSheet | - | | close | Triggered when close ActionSheet | - | +| opened | Triggered when opened ActionSheet | - | | closed | Triggered when closed ActionSheet | - | +| click-overlay | Triggered when click overlay | - | diff --git a/src/action-sheet/README.zh-CN.md b/src/action-sheet/README.zh-CN.md index 8e410fac4..20724727e 100644 --- a/src/action-sheet/README.zh-CN.md +++ b/src/action-sheet/README.zh-CN.md @@ -171,11 +171,11 @@ export default { |------|------|------| | select | 选中选项时触发,禁用或加载状态下不会触发 | *action: Action, index: number* | | cancel | 取消按钮点击时触发 | - | -| click-overlay | 点击遮罩层时触发 | - | | open | 打开菜单时触发 | - | -| opened | 打开菜单且动画结束后触发 | - | | close | 关闭菜单时触发 | - | +| opened | 打开菜单且动画结束后触发 | - | | closed | 关闭菜单且动画结束后触发 | - | +| click-overlay | 点击遮罩层时触发 | - | ## 常见问题 diff --git a/src/calendar/README.md b/src/calendar/README.md index f621646c8..7a7fa10e2 100644 --- a/src/calendar/README.md +++ b/src/calendar/README.md @@ -251,8 +251,10 @@ Set `poppable` to `false`, the calendar will be displayed directly on the page i |------|------|------| | select | Triggered when select date | *value: Date \| Date[]* | | confirm | Triggered after date selection is complete,if `show-confirm` is` true`, it is triggered after clicking the confirm button | *value: Date \| Date[]* | -| close `v2.5.2` | Triggered when close Calendar Popup | - | -| closed `v2.5.2` | Triggered when closed Calendar Popup | - | +| open `v2.5.2` | Triggered when open Popup | - | +| close `v2.5.2` | Triggered when close Popup | - | +| opened `v2.5.2` | Triggered when opened Popup | - | +| closed `v2.5.2` | Triggered when closed Popup | - | ### Slots diff --git a/src/calendar/README.zh-CN.md b/src/calendar/README.zh-CN.md index d65058d02..0d536ba49 100644 --- a/src/calendar/README.zh-CN.md +++ b/src/calendar/README.zh-CN.md @@ -253,7 +253,9 @@ export default { |------|------|------| | select | 点击任意日期时触发 | *value: Date \| Date[]* | | confirm | 日期选择完成后触发,若`show-confirm`为`true`,则点击确认按钮后触发 | *value: Date \| Date[]* | +| open `v2.5.2` | 打开弹出层时触发 | - | | close `v2.5.2` | 关闭弹出层时触发 | - | +| opened `v2.5.2` | 打开弹出层且动画结束后触发 | - | | closed `v2.5.2` | 关闭弹出层且动画结束后触发 | - | ### Slots diff --git a/src/calendar/index.js b/src/calendar/index.js index 789557f5d..ee87d653c 100644 --- a/src/calendar/index.js +++ b/src/calendar/index.js @@ -387,6 +387,8 @@ export default createComponent({ closeOnPopstate={this.closeOnPopstate} closeOnClickOverlay={this.closeOnClickOverlay} onInput={this.togglePopup} + onOpen={createListener('open')} + onOpened={createListener('opened')} onClose={createListener('close')} onClosed={createListener('closed')} > diff --git a/src/dialog/README.md b/src/dialog/README.md index 4aef3dc59..bb01770df 100644 --- a/src/dialog/README.md +++ b/src/dialog/README.md @@ -168,8 +168,8 @@ export default { | confirm | Triggered when click confirm button | - | | cancel | Triggered when click cancel button | - | | open | Triggered when open Dialog | - | -| opened | Triggered when opened Dialog | - | | close | Triggered when close Dialog | - | +| opened | Triggered when opened Dialog | - | | closed | Triggered when closed Dialog | - | ### Slots diff --git a/src/dialog/README.zh-CN.md b/src/dialog/README.zh-CN.md index 043c6be0c..296cbff68 100644 --- a/src/dialog/README.zh-CN.md +++ b/src/dialog/README.zh-CN.md @@ -201,8 +201,8 @@ export default { | confirm | 点击确认按钮时触发 | - | | cancel | 点击取消按钮时触发 | - | | open | 打开弹窗时触发 | - | -| opened | 打开弹窗且动画结束后触发 | - | | close | 关闭弹窗时触发 | - | +| opened | 打开弹窗且动画结束后触发 | - | | closed | 关闭弹窗且动画结束后触发 | - | ### Slots diff --git a/src/dropdown-menu/README.md b/src/dropdown-menu/README.md index af336912f..82978fc3b 100644 --- a/src/dropdown-menu/README.md +++ b/src/dropdown-menu/README.md @@ -137,8 +137,8 @@ Use `active-color` prop to custom active color of the title and options |------|------|------| | change | Triggered select option and value changed | value | | open | Triggered when open menu | - | -| opened | Triggered when menu opened | - | | close | Triggered when close menu | - | +| opened | Triggered when menu opened | - | | closed | Triggered when menu closed | - | ### DropdownItem Slots diff --git a/src/dropdown-menu/README.zh-CN.md b/src/dropdown-menu/README.zh-CN.md index 161ddefee..11c2a1bcc 100644 --- a/src/dropdown-menu/README.zh-CN.md +++ b/src/dropdown-menu/README.zh-CN.md @@ -141,8 +141,8 @@ export default { |------|------|------| | change | 点击选项导致 value 变化时触发 | value | | open | 打开菜单栏时触发 | - | -| opened | 打开菜单栏且动画结束后触发 | - | | close | 关闭菜单栏时触发 | - | +| opened | 打开菜单栏且动画结束后触发 | - | | closed | 关闭菜单栏且动画结束后触发 | - | ### DropdownItem Slots diff --git a/src/popup/README.md b/src/popup/README.md index c5e309570..cac0c6836 100644 --- a/src/popup/README.md +++ b/src/popup/README.md @@ -141,7 +141,7 @@ export default { |------|------|------| | click | Triggered when click Popup | *event: Event* | | open | Triggered when open Popup | - | -| opened | Triggered when opened Popup | - | | close | Triggered when close Popup | - | +| opened | Triggered when opened Popup | - | | closed | Triggered when closed Popup | - | | click-overlay | Triggered when click overlay | - | diff --git a/src/popup/README.zh-CN.md b/src/popup/README.zh-CN.md index 53ce1277b..75194775c 100644 --- a/src/popup/README.zh-CN.md +++ b/src/popup/README.zh-CN.md @@ -152,7 +152,7 @@ export default { |------|------|------| | click | 点击弹出层时触发 | *event: Event* | | open | 打开弹出层时触发 | - | -| opened | 打开弹出层且动画结束后触发 | - | | close | 关闭弹出层时触发 | - | +| opened | 打开弹出层且动画结束后触发 | - | | closed | 关闭弹出层且动画结束后触发 | - | | click-overlay | 点击遮罩层时触发 | - |