diff --git a/src/pages/componentDevelopment/componentList/index.tsx b/src/pages/componentDevelopment/componentList/index.tsx new file mode 100644 index 0000000..8c75aef --- /dev/null +++ b/src/pages/componentDevelopment/componentList/index.tsx @@ -0,0 +1,82 @@ +import React, { useState } from 'react'; +import styles from './style/index.module.less'; +import { Button, Divider, Input, Space, Table, Radio } from '@arco-design/web-react'; +import { IconSearch } from '@arco-design/web-react/icon'; + +const Group = Radio.Group; + +const GlobalVarContainer = () => { + const [selectedItem, setSelectedItem] = useState('数字类型'); + + const menuItems = [ + '我的组件', + '协同组件', + '组件审核' + ]; + + return ( +
+ {/*左侧菜单*/} +
+ {menuItems.map((item, index) => ( +
setSelectedItem(item)} + > + {item} +
+ ))} +
+
+ {/*头部*/} +
+
+ + } + placeholder={'搜索'} + style={{ width: 236 }} + /> + + +
+
+ + {['未设计', '编码中', '已部署'].map((item) => { + return ( + + {({ checked }) => { + return ( + + ); + }} + + ); + })} + + }> + + + + +
+ +
+ {/*数据列表*/} +
+ {/**/} + + + + ); +}; + +export default GlobalVarContainer; \ No newline at end of file diff --git a/src/pages/componentDevelopment/componentList/style/index.module.less b/src/pages/componentDevelopment/componentList/style/index.module.less new file mode 100644 index 0000000..1d945bb --- /dev/null +++ b/src/pages/componentDevelopment/componentList/style/index.module.less @@ -0,0 +1,53 @@ +.comp-list-container { + display: flex; + height: 98%; + background-color: #ffffff; + padding: 17px 19px 0 24px; + + .comp-list-menu { + flex: 1; + border-right: 4px solid #E5E6EB; + padding-left: 30px; + + & > div { + width: 80%; + height: 36px; + margin: 6px 0; + font-size: 16px; + cursor: pointer; + display: flex; + align-items: center; + padding-left: 10px; + } + + .selected { + font-weight: bold; + background-color: #F0EEFC; + border-radius: 4px; + } + } + + + .comp-list-content { + flex: 8; + padding: 0 0 0 40px; + + .comp-list-header { + display: flex; + justify-content: space-between; + margin-bottom: 15px; + + .comp-list-title { + font-size: 18px; + font-weight: 700; + } + + .comp-list-handle { + } + } + + .comp-list-list { + + } + } +} \ No newline at end of file diff --git a/src/pages/componentDevelopment/index.tsx b/src/pages/componentDevelopment/index.tsx deleted file mode 100644 index c75fcb2..0000000 --- a/src/pages/componentDevelopment/index.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import React from 'react'; - -function ComponentDevelopment() { - return ( - <> -
- 组件开发 -
- - ); -} - -export default ComponentDevelopment; \ No newline at end of file diff --git a/src/pages/ideContainer/config/menuData.ts b/src/pages/ideContainer/config/menuData.ts index 36d4d5e..cff58d3 100644 --- a/src/pages/ideContainer/config/menuData.ts +++ b/src/pages/ideContainer/config/menuData.ts @@ -72,28 +72,30 @@ export const menuData1 = [ export const menuData2 = [ { title: '组件列表', + path: 'componentList', key: 'componentList', parentKey: 'componentList', - children: [ - { - title: '我的组件', - children: null, - path: 'myComponents', - parentKey: 'componentList' - }, - { - title: '协同组件', - children: null, - path: 'matchingComponents', - parentKey: 'componentList' - }, - { - title: '组件审核', - children: null, - path: 'componentReview', - parentKey: 'componentList' - } - ] + children: null + // children: [ + // { + // title: '我的组件', + // children: null, + // path: 'myComponents', + // parentKey: 'componentList' + // }, + // { + // title: '协同组件', + // children: null, + // path: 'matchingComponents', + // parentKey: 'componentList' + // }, + // { + // title: '组件审核', + // children: null, + // path: 'componentReview', + // parentKey: 'componentList' + // } + // ] }, { title: '组件编码', diff --git a/src/pages/ideContainer/index.tsx b/src/pages/ideContainer/index.tsx index 9d1f00d..6f53ac9 100644 --- a/src/pages/ideContainer/index.tsx +++ b/src/pages/ideContainer/index.tsx @@ -14,6 +14,7 @@ import ProjectContainer from '@/pages/orchestration/project'; import ApplicationContainer from '@/pages/orchestration/application'; import EventContainer from '@/pages/orchestration/event'; import GlobalVarContainer from '@/pages/orchestration/globalVar'; +import ComponentList from '@/pages/componentDevelopment/componentList'; type UrlParamsOptions = { identity?: string; @@ -33,7 +34,7 @@ const ComponentTest = () =>
组 // 所有可显示的组件路径列表 const ALL_PATHS = [ 'compFlow', 'appFlow', 'compList', 'appInstance', 'event', 'globalVar', 'appCompList', - 'myComponents', 'matchingComponents', 'componentReview', + 'myComponents', 'matchingComponents', 'componentReview', 'componentList', 'componentCoding', 'componentDeployment', 'componentTest' ]; @@ -145,6 +146,8 @@ function IDEContainer() { return ; case 'matchingComponents': return ; + case 'componentList': + return ; case 'componentReview': return ; case 'componentCoding': @@ -216,7 +219,7 @@ function IDEContainer() { selected={selected} identity={urlParams.identity} subMenuData={subMenuData} - showSubMenu={!['event', 'globalVar', 'appCompList'].includes(selected.key)} + showSubMenu={['appList', 'appFlow'].includes(selected.parentKey)} onMenuSelect={(select) => setSelected(select)} onRefresh={() => getAppList()} onDeleteApp={(appId) => { @@ -249,12 +252,12 @@ function IDEContainer() { {/*页面渲染*/} {renderContent()} {/*底部日志栏*/} - {urlParams.identity !== 'componentDevelopment' && !['event', 'globalVar', 'appCompList'].includes(selected.key) && + {urlParams.identity !== 'componentDevelopment' && ['appList', 'appFlow'].includes(selected.parentKey) && }
- {!['event', 'globalVar', 'appCompList'].includes(selected.key) && } + {['appList', 'appFlow'].includes(selected.parentKey) && } );