docs(components): [time-picker] event parameters (#8002)

* Update doc event parameters for blur/focus event.
* Update doc event parameters for change event.
* Update doc event parameters for visible-change event.

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
This commit is contained in:
Jeremy
2022-05-31 10:03:44 +08:00
committed by GitHub
parent 6f9fb6e0ca
commit 2a44274bf4
2 changed files with 14 additions and 14 deletions

View File

@@ -170,14 +170,14 @@ Note, date time locale (month name, first day of the week ...) are also configur
## Events
| Event Name | Description | Parameters |
| --------------- | ------------------------------------------------------------------------- | ----------------------------------------- |
| change | triggers when user confirms the value | component's binding value |
| blur | triggers when Input blurs | component instance |
| focus | triggers when Input focuses | component instance |
| calendar-change | triggers when the calendar selected date is changed. Only for `daterange` | [Date, Date] |
| panel-change | triggers when the navigation button click. | `(date, mode, view)` |
| visible-change | triggers when the DatePicker's dropdown appears/disappears | true when it appears, and false otherwise |
| Event Name | Description | Parameters |
| --------------- | ------------------------------------------------------------------------- | ----------------------- |
| change | triggers when user confirms the value | `(val: typeof v-model)` |
| blur | triggers when Input blurs | `(e: FocusEvent)` |
| focus | triggers when Input focuses | `(e: FocusEvent)` |
| calendar-change | triggers when the calendar selected date is changed. Only for `daterange` | `(val: [Date, Date])` |
| panel-change | triggers when the navigation button click. | `(date, mode, view)` |
| visible-change | triggers when the DatePicker's dropdown appears/disappears | `(visibility: boolean)` |
## Methods

View File

@@ -68,12 +68,12 @@ time-picker/range
## Events
| Event Name | Description | Parameters |
| -------------- | ---------------------------------------------------------- | ----------------------------------------- |
| change | triggers when user confirms the value | component's binding value |
| blur | triggers when Input blurs | component instance |
| focus | triggers when Input focuses | component instance |
| visible-change | triggers when the TimePicker's dropdown appears/disappears | true when it appears, and false otherwise |
| Event Name | Description | Parameters |
| -------------- | ---------------------------------------------------------- | ----------------------- |
| change | triggers when user confirms the value | `(val: typeof v-model)` |
| blur | triggers when Input blurs | `(e: FocusEvent)` |
| focus | triggers when Input focuses | `(e: FocusEvent)` |
| visible-change | triggers when the TimePicker's dropdown appears/disappears | `(visibility: boolean)` |
## Methods