From c28224f3f86dde6e3d22b857ac4be9eea9eea6b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=90=E6=9E=AB?= Date: Mon, 24 Jul 2023 13:23:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0TimeRangePicker=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E5=8C=BA=E9=97=B4=E8=8C=83=E5=9B=B4=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=20(#2926)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: 增加TimeRangePicker时间范围选择组件 * feat: 增加TimeRangePicker时间范围选择组件2 --- src/components/Form/src/componentMap.ts | 1 + src/components/Form/src/types/index.ts | 1 + src/views/demo/form/index.vue | 21 ++++++++++++++++++++- 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/src/components/Form/src/componentMap.ts b/src/components/Form/src/componentMap.ts index 53e65c958..b448ace99 100644 --- a/src/components/Form/src/componentMap.ts +++ b/src/components/Form/src/componentMap.ts @@ -65,6 +65,7 @@ componentMap.set('MonthPicker', DatePicker.MonthPicker); componentMap.set('RangePicker', DatePicker.RangePicker); componentMap.set('WeekPicker', DatePicker.WeekPicker); componentMap.set('TimePicker', TimePicker); +componentMap.set('TimeRangePicker', TimePicker.TimeRangePicker); componentMap.set('StrengthMeter', StrengthMeter); componentMap.set('IconPicker', IconPicker); componentMap.set('InputCountDown', CountdownInput); diff --git a/src/components/Form/src/types/index.ts b/src/components/Form/src/types/index.ts index 294b0805e..55f10dec4 100644 --- a/src/components/Form/src/types/index.ts +++ b/src/components/Form/src/types/index.ts @@ -106,6 +106,7 @@ export type ComponentType = | 'RangePicker' | 'WeekPicker' | 'TimePicker' + | 'TimeRangePicker' | 'Switch' | 'StrengthMeter' | 'Upload' diff --git a/src/views/demo/form/index.vue b/src/views/demo/form/index.vue index de2af827d..c9675eced 100644 --- a/src/views/demo/form/index.vue +++ b/src/views/demo/form/index.vue @@ -56,6 +56,7 @@