feat:【ele】【框架】调整 CellSwitch,使用 inlinePrompt 内嵌展示文案
This commit is contained in:
@@ -152,9 +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 = {
|
||||||
// 注释 by 芋艿:如果添加了 activeText、inactiveText 属性,会默认展示对应的文案。注释后,和 antd 保持一致
|
inlinePrompt: true,
|
||||||
// activeText: $t('common.enabled'),
|
activeText: $t('common.enabled'),
|
||||||
// inactiveText: $t('common.disabled'),
|
inactiveText: $t('common.disabled'),
|
||||||
activeValue: 1,
|
activeValue: 1,
|
||||||
inactiveValue: 0,
|
inactiveValue: 0,
|
||||||
...props,
|
...props,
|
||||||
|
|||||||
Reference in New Issue
Block a user