fix 选中一月出错
This commit is contained in:
parent
d858824376
commit
c537d81b59
@ -878,7 +878,7 @@ const _sfc_main$3 = defineComponent({
|
|||||||
Month.value = props.modelValue;
|
Month.value = props.modelValue;
|
||||||
});
|
});
|
||||||
const footOnOk = () => {
|
const footOnOk = () => {
|
||||||
emits("update:modelValue", Month.value ? Month.value : -1);
|
emits("update:modelValue", Month.value || Month.value === 0 ? Month.value : -1);
|
||||||
if (datePicker.range) {
|
if (datePicker.range) {
|
||||||
emits("ok");
|
emits("ok");
|
||||||
return;
|
return;
|
||||||
|
@ -44873,7 +44873,7 @@ const _sfc_main$b = defineComponent({
|
|||||||
Month.value = props.modelValue;
|
Month.value = props.modelValue;
|
||||||
});
|
});
|
||||||
const footOnOk = () => {
|
const footOnOk = () => {
|
||||||
emits("update:modelValue", Month.value ? Month.value : -1);
|
emits("update:modelValue", Month.value || Month.value === 0 ? Month.value : -1);
|
||||||
if (datePicker.range) {
|
if (datePicker.range) {
|
||||||
emits("ok");
|
emits("ok");
|
||||||
return;
|
return;
|
||||||
|
@ -104,7 +104,7 @@ watch(
|
|||||||
|
|
||||||
//关闭回调
|
//关闭回调
|
||||||
const footOnOk = () => {
|
const footOnOk = () => {
|
||||||
emits("update:modelValue", Month.value ? Month.value : -1);
|
emits("update:modelValue", Month.value || Month.value === 0 ? Month.value : -1);
|
||||||
if (datePicker.range) {
|
if (datePicker.range) {
|
||||||
//关闭菜单
|
//关闭菜单
|
||||||
emits("ok");
|
emits("ok");
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user