mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user