feat:【ele】【框架】调整 CellSwitch,注释 activeText、inactiveText 禁用文字展示
This commit is contained in:
@@ -152,8 +152,9 @@ setupVbenVxeTable({
|
|||||||
renderTableDefault({ attrs, props }, { column, row }) {
|
renderTableDefault({ attrs, props }, { column, row }) {
|
||||||
const loadingKey = `__loading_${column.field}`;
|
const loadingKey = `__loading_${column.field}`;
|
||||||
const finallyProps = {
|
const finallyProps = {
|
||||||
activeText: $t('common.enabled'),
|
// 注释 by 芋艿:如果添加了 activeText、inactiveText 属性,会默认展示对应的文案。注释后,和 antd 保持一致
|
||||||
inactiveText: $t('common.disabled'),
|
// activeText: $t('common.enabled'),
|
||||||
|
// inactiveText: $t('common.disabled'),
|
||||||
activeValue: 1,
|
activeValue: 1,
|
||||||
inactiveValue: 0,
|
inactiveValue: 0,
|
||||||
...props,
|
...props,
|
||||||
|
|||||||
Reference in New Issue
Block a user