From 89001165aef50f3d198dc9044fca6b659b9e7e32 Mon Sep 17 00:00:00 2001 From: zazzaz Date: Fri, 18 Dec 2020 13:45:52 +0800 Subject: [PATCH] chore: update (#1039) --- website/docs/en-US/date-picker.md | 4 ++-- website/docs/en-US/datetime-picker.md | 9 +++++---- website/docs/es/date-picker.md | 4 ++-- website/docs/es/datetime-picker.md | 9 +++++---- website/docs/fr-FR/date-picker.md | 4 ++-- website/docs/fr-FR/datetime-picker.md | 9 +++++---- website/docs/jp/date-picker.md | 4 ++-- website/docs/jp/datetime-picker.md | 9 +++++---- website/docs/zh-CN/date-picker.md | 4 ++-- website/docs/zh-CN/datetime-picker.md | 9 +++++---- 10 files changed, 35 insertions(+), 30 deletions(-) diff --git a/website/docs/en-US/date-picker.md b/website/docs/en-US/date-picker.md index f37e4408a6..eabb3d00ec 100644 --- a/website/docs/en-US/date-picker.md +++ b/website/docs/en-US/date-picker.md @@ -351,7 +351,7 @@ Pay attention to capitalization When picking a date range, you can assign the time part for start date and end date. -:::demo By default, the time part of start date and end date are both `00:00:00`. Setting `default-time` can change their time respectively. It accepts an array of up to two strings with the format of `12:00:00`. The first string sets the time for the start date, and the second for the end date. +:::demo By default, the time part of start date and end date are both `00:00:00`. Setting `default-time` can change their time respectively. It accepts an array of up to two Date objects. The first string sets the time for the start date, and the second for the end date. ```html @@ -64,7 +64,8 @@ DateTimePicker is derived from DatePicker and TimePicker. For a more detailed ex }], value1: '', value2: '', - value3: '' + value3: '', + defaultTime: new Date(2000, 1, 1, 12, 0, 0) // '12:00:00' }; } }; @@ -142,7 +143,7 @@ DateTimePicker is derived from DatePicker and TimePicker. For a more detailed ex ### Default time value for start date and end date -:::demo When picking date range on the date panel with type `datetimerange`, `00:00:00` will be used as the default time value for start and end date. We can control it with the `default-time` attribute. `default-time` accepts an array of up to two strings. The first item controls time value of the start date and the second item controls time value of the end date. +:::demo When picking date range on the date panel with type `datetimerange`, `00:00:00` will be used as the default time value for start and end date. We can control it with the `default-time` attribute. `default-time` accepts an array of up to two Date objects. The first item controls time value of the start date and the second item controls time value of the end date. ```html