From 15edcb1d7b5f53837f40b9f61bcdf7372ecbe2f5 Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Fri, 17 Oct 2025 13:39:05 +0800 Subject: [PATCH] fix: switch --- apps/web-naive/src/adapter/vxe-table.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/web-naive/src/adapter/vxe-table.ts b/apps/web-naive/src/adapter/vxe-table.ts index c37a2f098..2c89b04db 100644 --- a/apps/web-naive/src/adapter/vxe-table.ts +++ b/apps/web-naive/src/adapter/vxe-table.ts @@ -166,8 +166,9 @@ setupVbenVxeTable({ } return h(NSwitch, finallyProps, { - checked: () => h('p', $t('common.enabled')), - unchecked: () => h('p', $t('common.disabled')), + checked: () => h('p', props?.checkedChildren ?? $t('common.enabled')), + unchecked: () => + h('p', props?.uncheckedChildren ?? $t('common.disabled')), }); }, });