diff --git a/frontend/src/components/widget/DeWidget/DeDate.vue b/frontend/src/components/widget/DeWidget/DeDate.vue index b14c72202f..ab557e31cf 100644 --- a/frontend/src/components/widget/DeWidget/DeDate.vue +++ b/frontend/src/components/widget/DeWidget/DeDate.vue @@ -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 } },