Merge pull request #2730 from dataease/pr@dev@fix_date_ranger

fix(仪表板-过滤器): 日期范围过滤器失效
This commit is contained in:
fit2cloud-chenyw 2022-07-28 20:33:14 +08:00 committed by GitHub
commit c38a346414
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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