From ec3f5c8701878bc1e7a3916088b71bf420060fa6 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 25 Aug 2022 16:15:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF-=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E8=8C=83=E5=9B=B4=E8=BF=87=E6=BB=A4=E5=99=A8):=20?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=97=B6=E9=97=B4=E9=BB=98=E8=AE=A4=E5=80=BC?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/widget/DeWidget/DeDate.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/src/components/widget/DeWidget/DeDate.vue b/frontend/src/components/widget/DeWidget/DeDate.vue index b14c72202f..ab557e31cf 100644 --- a/frontend/src/components/widget/DeWidget/DeDate.vue +++ b/frontend/src/components/widget/DeWidget/DeDate.vue @@ -15,6 +15,7 @@ :size="size" :editable="false" :picker-options="pickerOptions" + :default-time="defaultRangeTime" @change="dateChange" @focus="toFocus" @blur="onBlur" @@ -119,6 +120,12 @@ export default { } } return null + }, + defaultRangeTime() { + if (this.element.options.attrs.type === 'daterange' && this.element.options.attrs.showTime) { + return ['00:00:00', '23:59:59'] + } + return null } },