fix: switch

This commit is contained in:
xingyu4j
2025-10-17 13:39:05 +08:00
parent 6979dbfa52
commit 15edcb1d7b

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