fix: 表格编辑行在使用Switch,checkedValue为数字时无法切换开关

pull/38/head
xingyu 2023-10-10 12:07:38 +08:00
parent 285d4ab779
commit 91b9e4e25c
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ export default defineComponent({
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 ?? {}
const { record, column, index } = props