From 91b9e4e25c009f25690af37f1ba3e123804ba034 Mon Sep 17 00:00:00 2001 From: xingyu Date: Tue, 10 Oct 2023 12:07:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=A8=E6=A0=BC=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E8=A1=8C=E5=9C=A8=E4=BD=BF=E7=94=A8Switch,checkedValue?= =?UTF-8?q?=E4=B8=BA=E6=95=B0=E5=AD=97=E6=97=B6=E6=97=A0=E6=B3=95=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Table/src/components/editable/EditableCell.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Table/src/components/editable/EditableCell.vue b/src/components/Table/src/components/editable/EditableCell.vue index 0767e02a..858076fb 100644 --- a/src/components/Table/src/components/editable/EditableCell.vue +++ b/src/components/Table/src/components/editable/EditableCell.vue @@ -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