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 @@