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

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

@ -55,6 +55,12 @@ export const menuData1 = [
children: null, children: null,
path: 'globalVar', path: 'globalVar',
key: 'globalVar' key: 'globalVar'
},
{
title: '组件',
children: null,
path: 'appCompList',
key: 'appCompList'
} }
]; ];
@ -98,4 +104,6 @@ export const menuData2 = [
path: 'componentTest', path: 'componentTest',
key: 'componentTest' 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 AppInstanceComponent = () => <div style={{ height: '100%', width: '100%' }}></div>;
const EventComponent = () => <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 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 MyComponents = () => <div style={{ height: '100%', width: '100%' }}></div>;
const MatchingComponents = () => <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>; const ComponentReview = () => <div style={{ height: '100%', width: '100%' }}></div>;
@ -30,7 +31,7 @@ const ComponentTest = () => <div style={{ height: '100%', width: '100%' }}>组
// 所有可显示的组件路径列表 // 所有可显示的组件路径列表
const ALL_PATHS = [ const ALL_PATHS = [
'compFlow', 'appFlow', 'compList', 'appInstance', 'event', 'globalVar', 'compFlow', 'appFlow', 'compList', 'appInstance', 'event', 'globalVar', 'appCompList',
'myComponents', 'matchingComponents', 'componentReview', 'myComponents', 'matchingComponents', 'componentReview',
'componentCoding', 'componentDeployment', 'componentTest' 'componentCoding', 'componentDeployment', 'componentTest'
]; ];
@ -118,6 +119,8 @@ function IDEContainer() {
return <EventComponent />; return <EventComponent />;
case 'globalVar': case 'globalVar':
return <GlobalVarComponent />; return <GlobalVarComponent />;
case 'appCompList':
return <AppCompComponent />;
case 'myComponents': case 'myComponents':
return <MyComponents />; return <MyComponents />;
case 'matchingComponents': case 'matchingComponents':

Loading…
Cancel
Save