fix: switch

pull/233/head
xingyu4j 2025-10-17 13:39:05 +08:00
parent 6979dbfa52
commit 15edcb1d7b
1 changed files with 3 additions and 2 deletions

View File

@ -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')),
});
},
});