fix(EditCellTable): 表格编辑行在使用Switch,checkedValue为数字时无法切换开关.close #2560
1个文件已修改
2 ■■■ 已修改文件
src/components/Table/src/components/editable/EditableCell.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/Table/src/components/editable/EditableCell.vue
@@ -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;