fix: update dialog related events
This commit is contained in:
parent
99b00ff3ce
commit
9d6277d215
@ -63,7 +63,8 @@
|
||||
| 名称 | 描述 |
|
||||
| -- | -- |
|
||||
| ``ok`` | 点击“知道了”按钮触发。 |
|
||||
| ``afterclose`` | 浮层关闭后触发。如果样式主题提供了退出动画,将在退出动画完毕后触发。 |
|
||||
| ``afteropen`` | 弹框打开后触发。弹框内容在打开后才会进行渲染,所以如果有依赖内容渲染的逻辑,请在此事件触发后再执行。 |
|
||||
| ``afterclose`` | 弹框关闭后触发。如果样式主题提供了退出动画,将在退出动画完毕后触发。 |
|
||||
|
||||
### 图标
|
||||
|
||||
|
@ -44,4 +44,5 @@
|
||||
| -- | -- |
|
||||
| ``ok`` | 点击“确定”按钮时触发。 |
|
||||
| ``cancel`` | 点击“取消”按钮时触发。 |
|
||||
| ``afterclose`` | 浮层关闭后触发。如果样式主题提供了退出动画,将在退出动画完毕后触发。 |
|
||||
| ``afteropen`` | 弹框打开后触发。弹框内容在打开后才会进行渲染,所以如果有依赖内容渲染的逻辑,请在此事件触发后再执行。 |
|
||||
| ``afterclose`` | 弹框关闭后触发。如果样式主题提供了退出动画,将在退出动画完毕后触发。 |
|
||||
|
@ -135,7 +135,8 @@ methods: {
|
||||
| ``ok`` | 点击“确定”按钮时或通过调用作用域函数 `close('ok')` 时触发。 |
|
||||
| ``cancel`` | 点击“取消”按钮、关闭按钮、通过 <kbd>esc</kbd> 关闭对话框时,或者通过调用作用域函数 `close('cancel')` 时触发。 |
|
||||
| <var><value></var> | 通过调用作用域函数 `close(value)` 时触发。 |
|
||||
| ``afterclose`` | 浮层关闭后触发。如果样式主题提供了退出动画,将在退出动画完毕后触发。 |
|
||||
| ``afteropen`` | 对话框打开后触发。对话框内容在打开后才会进行渲染,所以如果有依赖内容渲染的逻辑,请在此事件触发后再执行。 |
|
||||
| ``afterclose`` | 对话框关闭后触发。如果样式主题提供了退出动画,将在退出动画完毕后触发。 |
|
||||
|
||||
### 图标
|
||||
|
||||
|
@ -99,4 +99,5 @@
|
||||
| ``ok`` | 点击“确定”按钮时或通过调用作用域函数 `close('ok')` 时触发。 |
|
||||
| ``cancel`` | 点击“取消”按钮、关闭按钮、通过 <kbd>esc</kbd> 关闭抽屉时,或者通过调用作用域函数 `close('cancel')` 时触发。 |
|
||||
| <var><value></var> | 通过调用作用域函数 `close(value)` 时触发。 |
|
||||
| ``afterclose`` | 浮层关闭后触发。如果样式主题提供了退出动画,将在退出动画完毕后触发。 |
|
||||
| ``afteropen`` | 抽屉打开后触发。抽屉内容在打开后才会进行渲染,所以如果有依赖内容渲染的逻辑,请在此事件触发后再执行。 |
|
||||
| ``afterclose`` | 抽屉关闭后触发。如果样式主题提供了退出动画,将在退出动画完毕后触发。 |
|
||||
|
@ -96,7 +96,7 @@
|
||||
| 名称 | 描述 |
|
||||
| -- | -- |
|
||||
| ``locate`` | 浮层定位发生变化时触发。 |
|
||||
| ``afteropen`` | 浮层打开后触发。如果样式主题提供了退出动画,将在退出动画完毕后触发。 |
|
||||
| ``afteropen`` | 浮层打开后触发。浮层内容在打开后才会进行渲染,所以如果有依赖内容渲染的逻辑,请在此事件触发后再执行。 |
|
||||
| ``afterclose`` | 浮层关闭后触发。如果样式主题提供了退出动画,将在退出动画完毕后触发。 |
|
||||
|
||||
### 全局配置
|
||||
|
@ -55,7 +55,8 @@
|
||||
| ``input`` | [^event-input] |
|
||||
| ``ok`` | 点击“确定”按钮时触发。 |
|
||||
| ``cancel`` | 点击“取消”按钮时触发。 |
|
||||
| ``afterclose`` | 浮层关闭后触发。如果样式主题提供了退出动画,将在退出动画完毕后触发。 |
|
||||
| ``afteropen`` | 弹框打开后触发。弹框内容在打开后才会进行渲染,所以如果有依赖内容渲染的逻辑,请在此事件触发后再执行。 |
|
||||
| ``afterclose`` | 弹框关闭后触发。如果样式主题提供了退出动画,将在退出动画完毕后触发。 |
|
||||
|
||||
^^^event-input
|
||||
:::badges
|
||||
|
@ -63,6 +63,7 @@ The contextual type of the alert box.
|
||||
| Name | Description |
|
||||
| -- | -- |
|
||||
| ``ok`` | Triggered when the “OK” button is clicked. |
|
||||
| ``afteropen`` | Triggered after the box overlay is opened. The box content won't be rendered until after the overlay is opened, so if there is logic that depends on content rendering, please execute it after this event is triggered. |
|
||||
| ``afterclose`` | Triggered after the box overlay is closed. If leaving transition is provided by the theme, the event will be triggered after the transition completes. |
|
||||
|
||||
### Icons
|
||||
|
@ -44,4 +44,5 @@ Whether the confirm box is displayed.
|
||||
| -- | -- |
|
||||
| `ok` | Triggered when the “OK” button is clicked. |
|
||||
| `cancel` | Triggered when the “Cancel” button is clicked. |
|
||||
| ``afteropen`` | Triggered after the box overlay is opened. The box content won't be rendered until after the overlay is opened, so if there is logic that depends on content rendering, please execute it after this event is triggered. |
|
||||
| `afterclose` | Triggered after the box overlay is closed. If leaving transition is provided by the theme, the event will be triggered after the transition completes. |
|
||||
|
@ -109,9 +109,9 @@ methods: {
|
||||
|
||||
| Name | Description |
|
||||
| -- | -- |
|
||||
| `default` | The content of the dialog. |
|
||||
| `title` | The title of the dialog. Will ignore the [`title`](#props-title) prop if this slot is specified. |
|
||||
| `foot` | [^slot-foot] |
|
||||
| ``default`` | The content of the dialog. |
|
||||
| ``title`` | The title of the dialog. Will ignore the [`title`](#props-title) prop if this slot is specified. |
|
||||
| ``foot`` | [^slot-foot] |
|
||||
|
||||
^^^slot-foot
|
||||
The foot of the dialog. Displays “OK” and “Cancel” buttons by default.
|
||||
@ -128,10 +128,11 @@ The foot of the dialog. Displays “OK” and “Cancel” buttons by default.
|
||||
|
||||
| Name | Description |
|
||||
| -- | -- |
|
||||
| `ok` | Triggered after the “OK” button is clicked or the dialog is closed with the slot scope function call `close('ok')`. |
|
||||
| `cancel` | Triggered after the “Cancel” button or the close button is clicked, or <kbd>esc</kbd> is pressed, or the dialog is closed with the slot scope function call `close('cancel')`. |
|
||||
| ``ok`` | Triggered after the “OK” button is clicked or the dialog is closed with the slot scope function call `close('ok')`. |
|
||||
| ``cancel`` | Triggered after the “Cancel” button or the close button is clicked, or <kbd>esc</kbd> is pressed, or the dialog is closed with the slot scope function call `close('cancel')`. |
|
||||
| <var><value></var> | Triggered when the dialog is closed with the slot scope function call `close(value)`. |
|
||||
| `afterclose` | Triggered after the dialog is closed. If leave transition is provided by theme, then `afterclose` will be triggered when the transition finishes. |
|
||||
| ``afteropen`` | Triggered after the dialog is opened. The dialog content won't be rendered until after the dialog is opened, so if there is logic that depends on content rendering, please execute it after this event is triggered. |
|
||||
| ``afterclose`` | Triggered after the dialog is closed. If leave transition is provided by theme, then `afterclose` will be triggered when the transition finishes. |
|
||||
|
||||
### Icons
|
||||
|
||||
|
@ -96,7 +96,7 @@ The style expression applied to the root element of the overlay. Supports all va
|
||||
| Name | Description |
|
||||
| -- | -- |
|
||||
| ``locate`` | Triggered when the overlay updated its location. |
|
||||
| ``afteropen`` | Triggered after the overlay is opened. If leave transition is provided by theme, then `afteropen` will be triggered when the transition finishes. |
|
||||
| ``afteropen`` | Triggered after the overlay is opened. The overlay content won't be rendered until after the overlay is opened, so if there is logic that depends on content rendering, please execute it after this event is triggered. |
|
||||
| ``afterclose`` | Triggered after the overlay is closed. If leave transition is provided by theme, then `afterclose` will be triggered when the transition finishes. |
|
||||
|
||||
### Configs
|
||||
|
@ -53,6 +53,7 @@ The value of the prompt input.
|
||||
| ``input`` | [^event-input] |
|
||||
| ``ok`` | Triggered when the “OK” button is clicked. |
|
||||
| ``cancel`` | Triggered when the “Cancel” button is clicked. |
|
||||
| ``afteropen`` | Triggered after the box overlay is opened. The box content won't be rendered until after the overlay is opened, so if there is logic that depends on content rendering, please execute it after this event is triggered. |
|
||||
| ``afterclose`` | Triggered after the box overlay is closed. If leaving transition is provided by the theme, the event will be triggered after the transition completes. |
|
||||
|
||||
^^^event-input
|
||||
|
Loading…
Reference in New Issue
Block a user