This commit is contained in:
神仙都没用 2024-02-28 12:33:26 +08:00
parent 9919390e32
commit e3cd18d991

View File

@ -60,6 +60,7 @@ export default defineComponent({
function onChange(val: boolean | string | number) {
if (props.column && props.scope) {
if (val !== undefined) {
if (val === activeValue.value || val === inactiveValue.value) {
const params = {
id: props.scope.id,
[props.column.property]: val
@ -79,6 +80,7 @@ export default defineComponent({
});
}
}
}
} else {
emit("update:modelValue", val);
emit("change", val);