rename(comp): 将复合组件重命名为子流程

master
钟良源 1 week ago
parent 7bdcd869a4
commit 9719597be2

@ -99,7 +99,7 @@ const i18n = {
'menu.instance': '应用实例', 'menu.instance': '应用实例',
'menu.componentDevelopment': '组件开发', 'menu.componentDevelopment': '组件开发',
'menu.componentLibrary': '组件库', 'menu.componentLibrary': '组件库',
'menu.compositeCompLibrary': '复合组件库', 'menu.compositeCompLibrary': '子流程库',
'menu.componentMarket': '组件市场', 'menu.componentMarket': '组件市场',
'menu.componentMarket.compDetails': '组件详情', 'menu.componentMarket.compDetails': '组件详情',
'navbar.logout': '退出登录', 'navbar.logout': '退出登录',

@ -26,7 +26,7 @@ function CompositeCompLibrary() {
key="minePage" key="minePage"
title={ title={
<span> <span>
<span></span> <span></span>
</span> </span>
} }
> >
@ -36,7 +36,7 @@ function CompositeCompLibrary() {
key="publicList" key="publicList"
title={ title={
<span> <span>
<span></span> <span></span>
</span> </span>
}> }>
<CompGrid componentType="publicList" /> <CompGrid componentType="publicList" />

@ -63,7 +63,7 @@ const AddNodeMenu: React.FC<AddNodeMenuProps> = ({
initialGroupedNodes['composite'] = projectFlowList.map((v: any) => { initialGroupedNodes['composite'] = projectFlowList.map((v: any) => {
return { return {
...v, ...v,
nodeName: v?.main?.name || '复合组件', nodeName: v?.main?.name || '子流程',
nodeType: 'SUB', nodeType: 'SUB',
nodeGroup: 'composite', nodeGroup: 'composite',
data: { data: {
@ -137,7 +137,7 @@ const AddNodeMenu: React.FC<AddNodeMenuProps> = ({
// 分组名称映射 // 分组名称映射
const groupNames: Record<string, string> = { const groupNames: Record<string, string> = {
'application': '基础组件', 'application': '基础组件',
'composite': '复合组件', 'composite': '子流程',
'common': '系统组件' 'common': '系统组件'
}; };

@ -42,7 +42,7 @@ const NodeContextMenu: React.FC<NodeContextMenuProps> = ({
// 创建自定义事件来通知打开新标签页 // 创建自定义事件来通知打开新标签页
const customDef = isJSON((node as any).data.component.customDef) ? JSON.parse((node as any).data.component.customDef) : {}; const customDef = isJSON((node as any).data.component.customDef) ? JSON.parse((node as any).data.component.customDef) : {};
if (Object.keys(customDef).length === 0) { if (Object.keys(customDef).length === 0) {
Message.warning('新导入的复合组件请保存后再进行编辑!'); Message.warning('新导入的子流程请保存后再进行编辑!');
} }
const openTabEvent = new CustomEvent('openSubNodeTab', { const openTabEvent = new CustomEvent('openSubNodeTab', {
detail: { node } detail: { node }

@ -23,7 +23,7 @@ const SideBar: React.FC = () => {
<Collapse bordered={false} accordion> <Collapse bordered={false} accordion>
<CollapseItem header="应用组件" name="1"> <CollapseItem header="应用组件" name="1">
</CollapseItem> </CollapseItem>
<CollapseItem header="复合组件" name="2"> <CollapseItem header="子流程" name="2">
</CollapseItem> </CollapseItem>
<CollapseItem header="系统组件" name="3"> <CollapseItem header="系统组件" name="3">
{localNodeData.map((item, index) => ( {localNodeData.map((item, index) => (

@ -185,7 +185,7 @@ function IDEContainer() {
} }
} }
else { else {
Message.error('未找到对应的复合组件'); Message.error('未找到对应的子流程');
} }
}; };

@ -296,7 +296,7 @@ const Market: React.FC<MarketProps> = ({ updateProjectComp }) => {
// 处理复合组件 // 处理复合组件
if (flowComponents.length > 0) { if (flowComponents.length > 0) {
const label = '复合组件'; const label = '子流程';
if (!mergedComponents[label]) { if (!mergedComponents[label]) {
mergedComponents[label] = { mergedComponents[label] = {
label: label, label: label,

@ -73,7 +73,7 @@ interface SideBarProps {
const compTypeMap = { const compTypeMap = {
appComponent: '普通组件', appComponent: '普通组件',
subComponent: '复合组件' subComponent: '子流程'
}; };

@ -64,7 +64,7 @@ const SideBar = ({ compList, onSelect }) => {
icon: <img src={'/ideContainer/icon/projectComp.png'} style={{ width: 17, height: 17 }} /> icon: <img src={'/ideContainer/icon/projectComp.png'} style={{ width: 17, height: 17 }} />
}], }],
['projectFlowDto', { ['projectFlowDto', {
title: '复合组件', title: '子流程',
icon: <img src={'/ideContainer/icon/projectComp.png'} style={{ width: 17, height: 17 }} /> icon: <img src={'/ideContainer/icon/projectComp.png'} style={{ width: 17, height: 17 }} />
}], }],
['mineComp', { ['mineComp', {

Loading…
Cancel
Save