fix(EditCellTable): 表格编辑行在使用Switch,checkedValue为数字时无法切换开关.close #2560
This commit is contained in:
parent
0b9dd918d9
commit
71c43945a5
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue