fix 选中一月出错

This commit is contained in:
Theluyuan 2023-11-20 11:28:28 +08:00
parent d858824376
commit c537d81b59
4 changed files with 4 additions and 4 deletions

View File

@ -878,7 +878,7 @@ const _sfc_main$3 = defineComponent({
Month.value = props.modelValue;
});
const footOnOk = () => {
emits("update:modelValue", Month.value ? Month.value : -1);
emits("update:modelValue", Month.value || Month.value === 0 ? Month.value : -1);
if (datePicker.range) {
emits("ok");
return;

View File

@ -44873,7 +44873,7 @@ const _sfc_main$b = defineComponent({
Month.value = props.modelValue;
});
const footOnOk = () => {
emits("update:modelValue", Month.value ? Month.value : -1);
emits("update:modelValue", Month.value || Month.value === 0 ? Month.value : -1);
if (datePicker.range) {
emits("ok");
return;

View File

@ -104,7 +104,7 @@ watch(
//
const footOnOk = () => {
emits("update:modelValue", Month.value ? Month.value : -1);
emits("update:modelValue", Month.value || Month.value === 0 ? Month.value : -1);
if (datePicker.range) {
//
emits("ok");

File diff suppressed because one or more lines are too long