forked from github/dataease
fix(仪表板-日期范围过滤器): 显示时间默认值调整
This commit is contained in:
parent
75a0e37a9b
commit
45bd320c0b
@ -15,6 +15,7 @@
|
|||||||
:size="size"
|
:size="size"
|
||||||
:editable="false"
|
:editable="false"
|
||||||
:picker-options="pickerOptions"
|
:picker-options="pickerOptions"
|
||||||
|
:default-time="defaultRangeTime"
|
||||||
@change="dateChange"
|
@change="dateChange"
|
||||||
@focus="toFocus"
|
@focus="toFocus"
|
||||||
@blur="onBlur"
|
@blur="onBlur"
|
||||||
@ -119,6 +120,12 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null
|
return null
|
||||||
|
},
|
||||||
|
defaultRangeTime() {
|
||||||
|
if (this.element.options.attrs.type === 'daterange' && this.element.options.attrs.showTime) {
|
||||||
|
return ['00:00:00', '23:59:59']
|
||||||
|
}
|
||||||
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user