巴林闲侠
2 years ago
11 changed files with 141 additions and 45 deletions
@ -1,2 +0,0 @@ |
|||
@import '~perfect-scrollbar/css/perfect-scrollbar.css'; |
|||
@import '~nprogress/nprogress.css'; |
@ -0,0 +1,5 @@ |
|||
@import '~perfect-scrollbar/css/perfect-scrollbar.css'; |
|||
@import '~nprogress/nprogress.css'; |
|||
|
|||
@import '~antd/dist/antd.dark.less'; |
|||
@primary-color: rgb(249,179,45); // 全局主色 |
@ -0,0 +1,69 @@ |
|||
import React, { useEffect, useState, useRef } from 'react' |
|||
import { push } from 'react-router-redux'; |
|||
import { connect } from 'react-redux'; |
|||
import { |
|||
BorderlessTableOutlined, BlockOutlined, RollbackOutlined |
|||
} from '@ant-design/icons'; |
|||
import { Col, Row, Button, Modal, Input } from 'antd'; |
|||
import '../style.less' |
|||
|
|||
function SetUp ({ dispatch }) { |
|||
const [renderMenu, setRenderMenu] = useState([]) |
|||
const [levelOneMenu] = useState([{ |
|||
n: '参数标定', |
|||
ic: <BlockOutlined className='setup-icon' />, |
|||
child: [ |
|||
{ |
|||
n: '塔机参数', |
|||
ic: <BorderlessTableOutlined className='setup-icon' /> |
|||
}, { |
|||
n: '返回', |
|||
ic: <RollbackOutlined className='setup-icon' />, |
|||
click: () => { |
|||
dispatch(push('/')); |
|||
} |
|||
}, |
|||
] |
|||
}, { |
|||
n: '限位告警参数', |
|||
ic: <BorderlessTableOutlined className='setup-icon' /> |
|||
}, { |
|||
n: '返回', |
|||
ic: <RollbackOutlined className='setup-icon' />, |
|||
click: () => { |
|||
dispatch(push('/')); |
|||
} |
|||
},]) |
|||
|
|||
useEffect(() => { |
|||
setRenderMenu(levelOneMenu) |
|||
}, []) |
|||
|
|||
|
|||
return ( |
|||
<div style={{ height: '100vh' }}> |
|||
<div style={{ display: 'flex', height: '100%', justifyContent: 'center', alignItems: 'center' }}> |
|||
{ |
|||
renderMenu.map((item, index) => { |
|||
return ( |
|||
<div key={index} style={{ width: 168, textAlign: 'center', margin: 32, boxShadow: ' 0 0 10px var(--antd-wave-shadow-color)' }} onClick={item.click}> |
|||
{item.ic} |
|||
<div style={{ lineHeight: '64px', fontSize: 24 }}> |
|||
{item.n} |
|||
</div> |
|||
</div> |
|||
) |
|||
}) |
|||
} |
|||
</div> |
|||
|
|||
</div> |
|||
) |
|||
} |
|||
|
|||
function mapStateToProps (state) { |
|||
const { auth } = state; |
|||
return {} |
|||
} |
|||
|
|||
export default connect(mapStateToProps)(SetUp); |
@ -1,10 +0,0 @@ |
|||
|
|||
@icon-url: "/assets/fonticon/iconfont"; |
|||
|
|||
.tree-transfer .ant-transfer-list-body { |
|||
overflow: auto !important; |
|||
} |
|||
|
|||
.ant-pro-table-search { |
|||
background-color: @component-background !important; |
|||
} |
@ -1,16 +0,0 @@ |
|||
@import "~antd/lib/style/themes/default.less"; |
|||
@primary-color : @blue-6; |
|||
@link-color : @primary-color; |
|||
@secondary-color : fade(@primary-color, 20%); |
|||
@btn-primary-bg : @primary-color; |
|||
@select-item-selected-option-color: @primary-color; |
|||
@processing-color : @primary-color; |
|||
@select-item-selected-bg : @background-color-base; |
|||
@skeleton-color : @primary-color; |
|||
@btn-primary-bg : @primary-color; |
|||
|
|||
@component-background: transparent; |
|||
|
|||
:root { |
|||
--PC: @primary-color; |
|||
} |
Loading…
Reference in new issue