🐛(component): [修复] datePicker 组件 类型为dateTime时 同时选择日期与时间不生效问题。

This commit is contained in:
0o张不歪o0
2022-10-10 00:48:32 +08:00
parent e7c296264e
commit cb361d7dff
2 changed files with 14 additions and 0 deletions

View File

@@ -35,6 +35,7 @@
:date-list="dateList"
v-model="Day"
@simple="footOnOk"
@update:model-value="ChildUpdateModelValue"
></DateContent>
<PanelFoot @ok="footOnOk" @now="footOnNow" @clear="footOnClear">
<span
@@ -122,4 +123,8 @@ const footOnNow = () => {
const footOnClear = () => {
Day.value = -1;
};
const ChildUpdateModelValue=()=>{
emits("update:modelValue", Day.value);
}
</script>