Compare commits
3 Commits
3188d2dd39
...
364e67f32b
Author | SHA1 | Date |
---|---|---|
wanyiwei | 364e67f32b | 3 years ago |
wanyiwei | 700edca359 | 3 years ago |
wanyiwei | 11e4540997 | 3 years ago |
5 changed files with 162 additions and 149 deletions
@ -1,13 +1,32 @@ |
|||
import React from 'react' |
|||
import React, { useEffect, useState } from 'react' |
|||
import Left from './left' |
|||
import Right from './right' |
|||
import { connect } from 'react-redux' |
|||
import { getBusTierList } from '../../../actions/example' |
|||
|
|||
const Operation = (props) => { |
|||
|
|||
const [roadData, setRoadData] = useState() |
|||
const [loading, setLoading] = useState(true) |
|||
const { dispatch } = props |
|||
useEffect(() => { |
|||
dispatch(getBusTierList()).then(res => { |
|||
setLoading(false) |
|||
setRoadData(res.payload.data || {}) |
|||
}) |
|||
}, []) |
|||
|
|||
const Operation = () => { |
|||
return ( |
|||
<div style={{ display: 'flex', width: '100%',height: '100%',justifyContent: 'space-between' }}> |
|||
<Left /> |
|||
<Right /> |
|||
<Left roadData={roadData} loading={loading} /> |
|||
<Right roadData={roadData} loading={loading} /> |
|||
</div> |
|||
) |
|||
} |
|||
export default Operation |
|||
function mapStateToProps(state) { |
|||
|
|||
return { |
|||
|
|||
} |
|||
} |
|||
export default connect(mapStateToProps)(Operation) |
@ -0,0 +1,29 @@ |
|||
.busList { |
|||
width: 100%; |
|||
height: 96%; |
|||
overflow-x: hidden; |
|||
overflow-y: auto; |
|||
.ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected{ |
|||
background: none; |
|||
background-color: none !important; |
|||
border: 1px solid rgba(10, 114, 255, 1); |
|||
} |
|||
.ant-tree .ant-tree-node-content-wrapper &:hover { |
|||
background-color: none; |
|||
background: none; |
|||
} |
|||
} |
|||
|
|||
.busList::-webkit-scrollbar-track { |
|||
background-color: rgba(3, 60, 158, 0.3); |
|||
border-radius: 1px |
|||
} |
|||
|
|||
.busList::-webkit-scrollbar { |
|||
width: 5px; |
|||
} |
|||
|
|||
.busList::-webkit-scrollbar-thumb { |
|||
background-color: rgba(28, 96, 254, 1); |
|||
border-radius: 1px |
|||
} |
Loading…
Reference in new issue