master_basic
parent
8201f29642
commit
290b022025
@ -0,0 +1,52 @@
|
|||||||
|
.menu_item {
|
||||||
|
width: 260px;
|
||||||
|
height: 32px;
|
||||||
|
background: linear-gradient(180deg, #4AB4E4 0%, #A2E1FF 100%);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #FFFFFF;
|
||||||
|
cursor: pointer;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
.triangle {
|
||||||
|
position: absolute;
|
||||||
|
right: 20px;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
border-top: 6px solid #fff;
|
||||||
|
border-right: 6px solid transparent;
|
||||||
|
border-left: 6px solid transparent;
|
||||||
|
transition: transform 0.15s ease-in;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.item_warp {
|
||||||
|
transition: all 1s ease-in;
|
||||||
|
|
||||||
|
.item1 {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
margin: 20px 0;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item1_img {
|
||||||
|
width: 60px;
|
||||||
|
height: 60px;
|
||||||
|
background-color: saddlebrown;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item1_name {
|
||||||
|
width: 80%;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #1A374A;
|
||||||
|
margin-top: 6px;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
.item1 {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
margin: 20px 0;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item1_img {
|
||||||
|
width: 60px;
|
||||||
|
height: 60px;
|
||||||
|
background-color: saddlebrown;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item1_name {
|
||||||
|
width: 80%;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #1A374A;
|
||||||
|
margin-top: 6px;
|
||||||
|
}
|
@ -0,0 +1,38 @@
|
|||||||
|
import { FC, useEffect, useState } from 'react';
|
||||||
|
import styles from './index.less';
|
||||||
|
|
||||||
|
interface PageProps {
|
||||||
|
data: Array<{
|
||||||
|
// 名称
|
||||||
|
name: string;
|
||||||
|
// 路由
|
||||||
|
url: string;
|
||||||
|
// 图标
|
||||||
|
img: any;
|
||||||
|
}>
|
||||||
|
}
|
||||||
|
|
||||||
|
const LeftMenuCom: FC<PageProps> = ({ data }) => {
|
||||||
|
|
||||||
|
const [list, setList] = useState<any>([]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
setList([...data])
|
||||||
|
}, [])
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
{list.map((item: any, index: number) => {
|
||||||
|
return (
|
||||||
|
<div className={styles.item1} key={index}>
|
||||||
|
<div className={styles.item1_img}></div>
|
||||||
|
<div className={styles.item1_name}>{item.name}</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default LeftMenuCom
|
||||||
|
|
@ -1,7 +0,0 @@
|
|||||||
export default function AaaPage() {
|
|
||||||
return (
|
|
||||||
<div>
|
|
||||||
aaaa
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
@ -0,0 +1,10 @@
|
|||||||
|
import styles from './index.less';
|
||||||
|
|
||||||
|
// GLQ远程维护
|
||||||
|
export default function Page() {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
aaaa
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
import styles from './index.less';
|
||||||
|
|
||||||
|
// 网络GLQ配置
|
||||||
|
export default function Page() {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
aaaa
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
import styles from './index.less';
|
||||||
|
|
||||||
|
// 网络MMJ管理
|
||||||
|
export default function Page() {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
aaaa
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
Loading…
Reference in new issue