diff --git a/web/client/src/sections/humanAffairs/containers/resourceRepository.jsx b/web/client/src/sections/humanAffairs/containers/resourceRepository.jsx index d822a8e..fc5f43e 100644 --- a/web/client/src/sections/humanAffairs/containers/resourceRepository.jsx +++ b/web/client/src/sections/humanAffairs/containers/resourceRepository.jsx @@ -1,10 +1,114 @@ import React, { useEffect, useState } from 'react'; import { connect } from 'react-redux'; -import Empty from '../components/empty'; +import { Button, Col, Row, Input, Tree, Space } from '@douyinfe/semi-ui'; +import { IconSearch } from '@douyinfe/semi-icons'; import '../style.less' const ResourceRepository = (props) => { - const { dispatch, actions } = props + const { dispatch, actions } = props; + const treeData = [ + { + label: '亚洲', + value: 'Asia', + key: '0', + children: [ + { + label: '中国', + value: 'China', + key: '0-0', + children: [ + { + label: '北京', + value: 'Beijing', + key: '0-0-0', + }, + { + label: '上海', + value: 'Shanghai', + key: '0-0-1', + }, + ], + }, + ], + }, + { + label: '北美洲', + value: 'North America', + key: '1', + children: [ + { + label: '中国', + value: 'China', + key: '0-0', + children: [ + { + label: '北京', + value: 'Beijing', + key: '0-0-0', + }, + { + label: '上海', + value: 'Shanghai', + key: '0-0-1', + }, + ], + }, + ], + }, { + label: '亚洲', + value: 'Asia', + key: '3', + children: [ + { + label: '中国', + value: 'China', + key: '0-0', + children: [ + { + label: '北京', + value: 'Beijing', + key: '0-0-0', + }, + { + label: '上海', + value: 'Shanghai', + key: '0-0-1', + }, + ], + }, + ], + }, + { + label: '北美洲', + value: 'North America', + key: '4', + children: [ + { + label: '中国', + value: 'China', + key: '0-0', + children: [ + { + label: '北京', + value: 'Beijing', + key: '0-0-0', + }, + { + label: '上海', + value: 'Shanghai', + key: '0-0-1', + }, + ], + }, + ], + } + ]; + + const style = { + width: 260, + height: 420, + border: '1px solid var(--semi-color-border)' + }; return ( <> @@ -24,7 +128,35 @@ const ResourceRepository = (props) => {