From 71a775552758845d9eb08e95d99b548aae8d5ae3 Mon Sep 17 00:00:00 2001 From: iamkun Date: Wed, 12 Jan 2022 08:43:21 +0800 Subject: [PATCH] docs: update timepicker doc (#5326) --- docs/en-US/component/time-picker.md | 12 +++++- docs/examples/time-picker/basic-range.vue | 48 +++++++++++++++++++++++ docs/examples/time-picker/basic.vue | 46 ++-------------------- 3 files changed, 63 insertions(+), 43 deletions(-) create mode 100644 docs/examples/time-picker/basic-range.vue diff --git a/docs/en-US/component/time-picker.md b/docs/en-US/component/time-picker.md index a758a391d8..27d52484e3 100644 --- a/docs/en-US/component/time-picker.md +++ b/docs/en-US/component/time-picker.md @@ -11,12 +11,22 @@ Use Time Picker for time input. Can pick an arbitrary time. -:::demo Use `el-time-picker` label, and you can limit the time range by specifying `disabledHours` `disabledMinutes` and `disabledSeconds`. By default, you can scroll the mouse wheel to pick time, alternatively you can use the control arrows when the `arrow-control` attribute is set. +:::demo By default, you can scroll the mouse wheel to pick time, alternatively you can use the control arrows when the `arrow-control` attribute is set. time-picker/basic ::: +## Limit the time range + +You can also limit the time range. + +:::demo Limit the time range by specifying `disabledHours` `disabledMinutes` and `disabledSeconds`. + +time-picker/basic-range + +::: + ## Arbitrary time range Can pick an arbitrary time range. diff --git a/docs/examples/time-picker/basic-range.vue b/docs/examples/time-picker/basic-range.vue new file mode 100644 index 0000000000..d9be1e86f3 --- /dev/null +++ b/docs/examples/time-picker/basic-range.vue @@ -0,0 +1,48 @@ + + + + + diff --git a/docs/examples/time-picker/basic.vue b/docs/examples/time-picker/basic.vue index ebaf9b6418..92dbbaafe8 100644 --- a/docs/examples/time-picker/basic.vue +++ b/docs/examples/time-picker/basic.vue @@ -1,54 +1,16 @@