feat(ideContainer): 增加所有工程中组件列表的菜单项

master
钟良源 4 months ago
parent b4bc83436c
commit 54b323ef1a

@ -55,6 +55,12 @@ export const menuData1 = [
children: null,
path: 'globalVar',
key: 'globalVar'
},
{
title: '组件',
children: null,
path: 'appCompList',
key: 'appCompList'
}
];
@ -99,3 +105,5 @@ export const menuData2 = [
key: 'componentTest'
}
];
// export const tempEnvData =

@ -21,6 +21,7 @@ const CompListComponent = () => <div style={{ height: '100%', width: '100%' }}>
const AppInstanceComponent = () => <div style={{ height: '100%', width: '100%' }}></div>;
const EventComponent = () => <div style={{ height: '100%', width: '100%' }}></div>;
const GlobalVarComponent = () => <div style={{ height: '100%', width: '100%' }}></div>;
const AppCompComponent = () => <div style={{ height: '100%', width: '100%' }}></div>;
const MyComponents = () => <div style={{ height: '100%', width: '100%' }}></div>;
const MatchingComponents = () => <div style={{ height: '100%', width: '100%' }}></div>;
const ComponentReview = () => <div style={{ height: '100%', width: '100%' }}></div>;
@ -30,7 +31,7 @@ const ComponentTest = () => <div style={{ height: '100%', width: '100%' }}>组
// 所有可显示的组件路径列表
const ALL_PATHS = [
'compFlow', 'appFlow', 'compList', 'appInstance', 'event', 'globalVar',
'compFlow', 'appFlow', 'compList', 'appInstance', 'event', 'globalVar', 'appCompList',
'myComponents', 'matchingComponents', 'componentReview',
'componentCoding', 'componentDeployment', 'componentTest'
];
@ -118,6 +119,8 @@ function IDEContainer() {
return <EventComponent />;
case 'globalVar':
return <GlobalVarComponent />;
case 'appCompList':
return <AppCompComponent />;
case 'myComponents':
return <MyComponents />;
case 'matchingComponents':

Loading…
Cancel
Save