From f278f4a9ea3c0bb860df22df0930ed09779d86c1 Mon Sep 17 00:00:00 2001 From: qlin Date: Fri, 29 Apr 2022 16:46:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20date-picker=20=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=97=A5=E6=9C=9F=20(#119)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: date-picker 支持输入日期 * fix: 修复 date-picker range 初始化时间选择问题 * fix: 修复单选的日期输入问题 --- components/date-picker/calendar.vue | 113 +++++++----- components/date-picker/calendars.vue | 69 +++---- components/date-picker/const.ts | 67 +------ components/date-picker/datePicker.vue | 174 +++++++++--------- components/date-picker/helper.ts | 12 +- components/date-picker/interface.ts | 4 - components/date-picker/pickerHander.ts | 164 +++++++++++++++++ components/date-picker/rangeInput.vue | 5 +- components/date-picker/useCalendar.ts | 155 ++++++++++------ components/date-picker/useRange.ts | 39 ++-- components/popper/props.ts | 3 + components/popper/useTrigger.ts | 2 +- components/time-picker/time-picker.vue | 2 - .../components/datePicker/rangeSelect.vue | 2 +- 14 files changed, 477 insertions(+), 334 deletions(-) create mode 100644 components/date-picker/pickerHander.ts diff --git a/components/date-picker/calendar.vue b/components/date-picker/calendar.vue index c9033485..85886056 100644 --- a/components/date-picker/calendar.vue +++ b/components/date-picker/calendar.vue @@ -1,6 +1,6 @@