mirror of
https://gitee.com/bootx/dax-pay-ui
synced 2026-08-10 06:46:05 +08:00
fix(EditCellTable): 表格编辑行在使用Switch,checkedValue为数字时无法切换开关.close #2560
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user