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 } },