From 2a44274bf458b70915b5d51354e54c967f53b1d8 Mon Sep 17 00:00:00 2001 From: Jeremy <15975785+jw-foss@users.noreply.github.com> Date: Tue, 31 May 2022 10:03:44 +0800 Subject: [PATCH] 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> --- docs/en-US/component/date-picker.md | 16 ++++++++-------- docs/en-US/component/time-picker.md | 12 ++++++------ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/en-US/component/date-picker.md b/docs/en-US/component/date-picker.md index ce0def12c1..f3523ac032 100644 --- a/docs/en-US/component/date-picker.md +++ b/docs/en-US/component/date-picker.md @@ -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 diff --git a/docs/en-US/component/time-picker.md b/docs/en-US/component/time-picker.md index 1bb1758dda..d1e02104d5 100644 --- a/docs/en-US/component/time-picker.md +++ b/docs/en-US/component/time-picker.md @@ -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