From 5393623f45ac9bc23f55b0ccdcf9e4f8fd456856 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 5 Oct 2025 19:49:40 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E3=80=90ele=E3=80=91=E3=80=90?= =?UTF-8?q?=E6=A1=86=E6=9E=B6=E3=80=91=E8=B0=83=E6=95=B4=20CellSwitch?= =?UTF-8?q?=EF=BC=8C=E6=B3=A8=E9=87=8A=20activeText=E3=80=81inactiveText?= =?UTF-8?q?=20=E7=A6=81=E7=94=A8=E6=96=87=E5=AD=97=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-ele/src/adapter/vxe-table.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/web-ele/src/adapter/vxe-table.ts b/apps/web-ele/src/adapter/vxe-table.ts index c6efd352c..e201d520b 100644 --- a/apps/web-ele/src/adapter/vxe-table.ts +++ b/apps/web-ele/src/adapter/vxe-table.ts @@ -152,8 +152,9 @@ setupVbenVxeTable({ renderTableDefault({ attrs, props }, { column, row }) { const loadingKey = `__loading_${column.field}`; const finallyProps = { - activeText: $t('common.enabled'), - inactiveText: $t('common.disabled'), + // 注释 by 芋艿:如果添加了 activeText、inactiveText 属性,会默认展示对应的文案。注释后,和 antd 保持一致 + // activeText: $t('common.enabled'), + // inactiveText: $t('common.disabled'), activeValue: 1, inactiveValue: 0, ...props,