- 激活第
+ 激活
+ {buildLinkActionDesc(props.manager, info)}第
@@ -147,10 +149,12 @@ export class TabsPlugin extends BasePlugin {
actionType: 'deleteTab',
actionLabel: '删除指定选项卡',
description: '删除指定hash的tab项',
- descDetail: (info: any) => {
+ descDetail: (info: any, context: any, props: any) => {
return (
- 删除hash为
+ 删除
+ {buildLinkActionDesc(props.manager, info)}
+ hash为
{info?.args?.deleteHash}
diff --git a/packages/amis-editor/src/plugin/Wizard.tsx b/packages/amis-editor/src/plugin/Wizard.tsx
index 076ee447f..74f272837 100644
--- a/packages/amis-editor/src/plugin/Wizard.tsx
+++ b/packages/amis-editor/src/plugin/Wizard.tsx
@@ -19,7 +19,8 @@ import {
import {
getArgsWrapper,
getEventControlConfig,
- getActionCommonProps
+ getActionCommonProps,
+ buildLinkActionDesc
} from '../renderer/event-control/helper';
export class WizardPlugin extends BasePlugin {
@@ -261,8 +262,9 @@ export class WizardPlugin extends BasePlugin {
descDetail: (info: any, context: any, props: any) => {
return (
- {info?.__rendererLabel}
- 提交当前步骤数据
+ 提交
+ {buildLinkActionDesc(props.manager, info)}
+ 当前步骤数据
);
}
@@ -274,9 +276,11 @@ export class WizardPlugin extends BasePlugin {
descDetail: (info: any, context: any, props: any) => {
return (
- {info?.rendererLabel}
- {info?.__rendererName === 'carousel' ? '滚动至上一张' : null}
- {info?.__rendererName === 'wizard' ? '返回前一步' : null}
+ {info?.__rendererName === 'carousel' ? '滚动' : null}
+ {info?.__rendererName === 'wizard' ? '返回' : null}
+ {buildLinkActionDesc(props.manager, info)}
+ {info?.__rendererName === 'carousel' ? '至上一张' : null}
+ {info?.__rendererName === 'wizard' ? '前一步' : null}
);
}
@@ -288,9 +292,11 @@ export class WizardPlugin extends BasePlugin {
descDetail: (info: any, context: any, props: any) => {
return (
- {info?.rendererLabel}
- {info?.__rendererName === 'carousel' ? '滚动至下一张' : null}
- {info?.__rendererName === 'wizard' ? '提交当前步骤数据' : null}
+ {info?.__rendererName === 'carousel' ? '滚动' : null}
+ {info?.__rendererName === 'wizard' ? '提交' : null}
+ {buildLinkActionDesc(props.manager, info)}
+ {info?.__rendererName === 'carousel' ? '至下一张' : null}
+ {info?.__rendererName === 'wizard' ? '当前步骤数据' : null}
);
}
@@ -303,8 +309,9 @@ export class WizardPlugin extends BasePlugin {
descDetail: (info: any, context: any, props: any) => {
return (
-
{info?.__rendererLabel}
- 切换到第
+ 切换
+ {buildLinkActionDesc(props.manager, info)}
+ 到第
{info?.args?.step}
diff --git a/packages/amis-editor/src/renderer/event-control/actionsPanelPlugins/componentActionsPanel/staticStatus.tsx b/packages/amis-editor/src/renderer/event-control/actionsPanelPlugins/componentActionsPanel/staticStatus.tsx
index 2c8cc9b92..3089b4a6c 100644
--- a/packages/amis-editor/src/renderer/event-control/actionsPanelPlugins/componentActionsPanel/staticStatus.tsx
+++ b/packages/amis-editor/src/renderer/event-control/actionsPanelPlugins/componentActionsPanel/staticStatus.tsx
@@ -3,6 +3,7 @@ import {defaultValue} from 'amis-editor-core';
import without from 'lodash/without';
import {registerActionPanel} from '../../actionsPanelManager';
import {renderCmptSelect, renderCmptIdInput} from './helper';
+import {buildLinkActionDesc} from '../../helper';
registerActionPanel('staticStatus', {
label: '组件展示态',
@@ -14,10 +15,7 @@ registerActionPanel('staticStatus', {
descDetail: (info: any, context: any, props: any) => {
return (
-
- {info?.rendererLabel || info.componentId}
-
- 组件切换为静态
+ {buildLinkActionDesc(props.manager, info)}切换为静态展示
);
}
diff --git a/packages/amis-editor/src/renderer/event-control/helper.tsx b/packages/amis-editor/src/renderer/event-control/helper.tsx
index a1324b647..cb8c7eea7 100644
--- a/packages/amis-editor/src/renderer/event-control/helper.tsx
+++ b/packages/amis-editor/src/renderer/event-control/helper.tsx
@@ -536,8 +536,7 @@ export const COMMON_ACTION_SCHEMA_MAP: {
descDetail: (info: any, context: any, props: any) => {
return (
- {info?.rendererLabel}
- 收起
+ 收起{buildLinkActionDesc(props.manager, info)}
);
}
@@ -546,8 +545,7 @@ export const COMMON_ACTION_SCHEMA_MAP: {
descDetail: (info: any, context: any, props: any) => {
return (
- {info?.rendererLabel}
- 选中所有选项
+ 选中{buildLinkActionDesc(props.manager, info)}所有选项
);
}
@@ -556,8 +554,7 @@ export const COMMON_ACTION_SCHEMA_MAP: {
descDetail: (info: any, context: any, props: any) => {
return (
- {info?.rendererLabel}
- 获取焦点
+ 获取{buildLinkActionDesc(props.manager, info)}焦点
);
}