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

View File

@ -11,6 +11,15 @@
<template> <template>
<lay-timeline> <lay-timeline>
<lay-timeline-item title="1.6.x"> <lay-timeline-item title="1.6.x">
<ul>
<a name="1-6-5"></a>
<li>
<h3>1.6.5 <span class="layui-badge-rim">2022-10-09</span></h3>
<ul>
<li>[修复] datePicker 组件 类型为dateTime时 同时选择日期与时间不生效问题。</li>
</ul>
</li>
</ul>
<ul> <ul>
<a name="1-6-4"></a> <a name="1-6-4"></a>
<li> <li>