fix DateCalendar

This commit is contained in:
Fine 2022-08-18 15:58:38 +08:00
parent a78fccdc91
commit 06e998bc22

View File

@ -552,7 +552,7 @@ const ok = (info: any) => {
if (props.right && _time.getTime() / 100000 > start.value) { if (props.right && _time.getTime() / 100000 > start.value) {
emit("setDates", _time, "right"); emit("setDates", _time, "right");
} }
if (!(props.left && props.right)) { if (!(props.left || props.right)) {
emit("setDates", _time); emit("setDates", _time);
} }
emit("ok", info === "h"); emit("ok", info === "h");