Merge pull request #2947 from dataease/pr@dev@fix_time_range

fix(仪表板-日期范围过滤器): 显示时间默认值调整
This commit is contained in:
fit2cloud-chenyw 2022-08-25 16:16:38 +08:00 committed by GitHub
commit ade4bf7c2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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