From a703eb3cd546e951a43667e477e63ead52282759 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 28 Jul 2022 20:32:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF-=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E5=99=A8):=20=E6=97=A5=E6=9C=9F=E8=8C=83=E5=9B=B4?= =?UTF-8?q?=E8=BF=87=E6=BB=A4=E5=99=A8=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/widget/DeWidget/DeDate.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/widget/DeWidget/DeDate.vue b/frontend/src/components/widget/DeWidget/DeDate.vue index d99e044123..93ef2f6c07 100644 --- a/frontend/src/components/widget/DeWidget/DeDate.vue +++ b/frontend/src/components/widget/DeWidget/DeDate.vue @@ -80,7 +80,7 @@ export default { return widget.isTimeWidget && widget.isTimeWidget() }, componentType() { - let result = 'date' + let result = this.element.options.attrs.type || 'date' if (this.isTimeWidget && this.element.options.attrs.showTime) { result = 'datetime' } @@ -91,7 +91,7 @@ export default { if (this.isTimeWidget && this.element.options.attrs.showTime && this.element.options.attrs.accuracy) { return result + ' ' + this.element.options.attrs.accuracy } - return result + return null } },