From fae5163df75a1219b874033830af4a829eb2216a Mon Sep 17 00:00:00 2001 From: faga Date: Sun, 16 Oct 2022 01:16:40 +0800 Subject: [PATCH 1/6] feat: init date time picker --- src/components/Form/dateTimePicker.story.vue | 185 +++++++++++++++++++ 1 file changed, 185 insertions(+) create mode 100644 src/components/Form/dateTimePicker.story.vue diff --git a/src/components/Form/dateTimePicker.story.vue b/src/components/Form/dateTimePicker.story.vue new file mode 100644 index 0000000..9f2773a --- /dev/null +++ b/src/components/Form/dateTimePicker.story.vue @@ -0,0 +1,185 @@ + + + + + +# DateTimePicker +Select date and time in one picker. + +## Basic Usage +You can select date and time in one picker at the same time by setting `type` to `datetime`. The way to use shortcuts is the same as Date Picker. + +## Date Time Formats +Use `format` to control displayed text's format in the input box. Use `value-format` to control binding value's format. + +By default, the component accepts and emits a `Date` object. + +Check the list [here](https://day.js.org/docs/en/display/format#list-of-all-available-formats) of all available formats of Day.js. + +## Date and time range +You can select date and time range by setting `type` to `datetimerange`. + +## Default time value for start date and end date +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. + From 9fad2e8e31b9ab90127ff3b519ccb61d3821a473 Mon Sep 17 00:00:00 2001 From: joypeng <70848683+FliPPeDround@users.noreply.github.com> Date: Sat, 15 Oct 2022 17:01:14 +0800 Subject: [PATCH 2/6] feat: set auto-props-disabled (#30) --- src/components/Basic/button.story.vue | 8 ++++---- src/components/Basic/link.story.vue | 2 +- src/components/Data/avatar.story.vue | 2 +- src/components/Data/badge.story.vue | 5 ++--- src/components/Data/card.story.vue | 24 ++++++++++++++++------- src/components/Data/tag.story.vue | 2 +- src/components/Feedback/alert.story.vue | 2 +- src/components/Form/colorPicker.story.vue | 2 +- src/components/Form/radio.story.vue | 2 +- src/components/Form/rate.story.vue | 2 +- src/components/Form/switch.story.vue | 2 +- 11 files changed, 31 insertions(+), 22 deletions(-) diff --git a/src/components/Basic/button.story.vue b/src/components/Basic/button.story.vue index d0c8637..725753f 100644 --- a/src/components/Basic/button.story.vue +++ b/src/components/Basic/button.story.vue @@ -76,8 +76,8 @@ const buttonGroupData = ref({ - + - +