fix(EditCellTable): 表格编辑行在使用Switch,checkedValue为数字时无法切换开关.close #2560

This commit is contained in:
invalid w 2023-10-09 18:20:11 +08:00
parent 0b9dd918d9
commit 71c43945a5
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@
const valueField = isCheckValue ? 'checked' : 'value';
const val = unref(currentValueRef);
const value = isCheckValue ? (isNumber(val) && isBoolean(val) ? val : !!val) : val;
const value = isCheckValue ? (isNumber(val) || isBoolean(val) ? val : !!val) : val;
let compProps = props.column?.editComponentProps ?? ({} as any);
const { record, column, index } = props;