fix(仪表板-过滤器): 日期范围过滤器失效

This commit is contained in:
fit2cloud-chenyw 2022-07-28 20:32:28 +08:00
parent 3dd8c45e92
commit a703eb3cd5

View File

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