1
0
mirror of synced 2026-04-03 06:28:35 +08:00

fix(form): daterange 错误信息不会消除

This commit is contained in:
roymondchen
2022-06-09 20:15:22 +08:00
committed by jia000
parent d97e265444
commit a90777f11a
2 changed files with 21 additions and 2 deletions

View File

@@ -60,6 +60,14 @@ export default defineComponent({
});
} else if (props.model && props.name && v instanceof Date) {
props.model[props.name] = datetimeFormatter(v.toString(), '');
} else if (names?.length) {
names.forEach((item) => {
if (props.model) {
props.model[item] = undefined;
}
});
} else if (props.name) {
props.model[props.name] = undefined;
}
};