Skip to content

Commit

Permalink
fix(EditCellTable): 表格编辑行在使用Switch,checkedValue为数字时无法切换开关.close #2560
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjue666 committed Oct 9, 2023
1 parent 0b9dd91 commit 71c4394
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 71c4394

Please sign in to comment.