update bottomBar
This commit is contained in:
parent
86b5551244
commit
9342750233
BIN
src/assets/bg-bottom-item.png
Normal file
BIN
src/assets/bg-bottom-item.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
14
src/components/BottomBar/BottomBarItem/index.jsx
Normal file
14
src/components/BottomBar/BottomBarItem/index.jsx
Normal file
@ -0,0 +1,14 @@
|
||||
import cls from './index.module.css';
|
||||
import Container from '../../Container';
|
||||
|
||||
function BottomBarItem(props) {
|
||||
return (
|
||||
<Container
|
||||
icon={props.icon}
|
||||
title={props.title}
|
||||
className={`${cls.bottomBarItem} ${props.className}`}
|
||||
>
|
||||
{props.children}
|
||||
</Container>
|
||||
);
|
||||
}
|
4
src/components/BottomBar/BottomBarItem/index.module.css
Normal file
4
src/components/BottomBar/BottomBarItem/index.module.css
Normal file
@ -0,0 +1,4 @@
|
||||
.bottomBarItem {
|
||||
background: url(../../../assets/bg-bottom-item.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
12
src/components/BottomBar/FaultTotal/index.jsx
Normal file
12
src/components/BottomBar/FaultTotal/index.jsx
Normal file
@ -0,0 +1,12 @@
|
||||
import cls from './index.module.css';
|
||||
import BottomBarItem from '../BottomBarItem';
|
||||
|
||||
function FaultTotal(props) {
|
||||
return (
|
||||
<BottomBarItem icon="chart" title="产线缺陷统计" className={cls.faultTotal}>
|
||||
产线缺陷统计 堆叠图 颜色 上下legend 日周月年
|
||||
</BottomBarItem>
|
||||
);
|
||||
}
|
||||
|
||||
export default FaultTotal;
|
16
src/components/BottomBar/FaultType/index.jsx
Normal file
16
src/components/BottomBar/FaultType/index.jsx
Normal file
@ -0,0 +1,16 @@
|
||||
import cls from './index.module.css';
|
||||
import BottomBarItem from '../BottomBarItem';
|
||||
|
||||
function FaultType(props) {
|
||||
return (
|
||||
<BottomBarItem
|
||||
icon="puzzle"
|
||||
title="产线当日缺陷分类"
|
||||
className={cls.faultType}
|
||||
>
|
||||
产线当日缺陷分类 - 环形图 左右 legend - 产线1-5
|
||||
</BottomBarItem>
|
||||
);
|
||||
}
|
||||
|
||||
export default FaultType;
|
0
src/components/BottomBar/FaultType/index.module.css
Normal file
0
src/components/BottomBar/FaultType/index.module.css
Normal file
12
src/components/BottomBar/gasi/index.jsx
Normal file
12
src/components/BottomBar/gasi/index.jsx
Normal file
@ -0,0 +1,12 @@
|
||||
import cls from './index.module.css';
|
||||
import BottomBarItem from '../BottomBarItem';
|
||||
|
||||
function GasI(props) {
|
||||
return (
|
||||
<BottomBarItem icon="pause" title="助燃风流量" className={cls.gas}>
|
||||
助燃风流量 - linechart - 当前流量 - 0 legends - 1 line
|
||||
</BottomBarItem>
|
||||
);
|
||||
}
|
||||
|
||||
export default GasI;
|
0
src/components/BottomBar/gasi/index.module.css
Normal file
0
src/components/BottomBar/gasi/index.module.css
Normal file
12
src/components/BottomBar/gasii/index.jsx
Normal file
12
src/components/BottomBar/gasii/index.jsx
Normal file
@ -0,0 +1,12 @@
|
||||
import cls from './index.module.css';
|
||||
import BottomBarItem from '../BottomBarItem';
|
||||
|
||||
function GasI(props) {
|
||||
return (
|
||||
<BottomBarItem icon="pause" title="天然气流量" className={cls.gas}>
|
||||
天然气流量 - linechart - 当前流量 - 2 legends - 2 lines
|
||||
</BottomBarItem>
|
||||
);
|
||||
}
|
||||
|
||||
export default GasI;
|
0
src/components/BottomBar/gasii/index.module.css
Normal file
0
src/components/BottomBar/gasii/index.module.css
Normal file
@ -1,20 +1,24 @@
|
||||
import React from 'react'
|
||||
import { useEffect, useState } from 'react'
|
||||
import { motion } from 'framer-motion'
|
||||
import Chart1 from './Chart1'
|
||||
import Chart2 from './Chart2'
|
||||
import Chart3 from './Chart3'
|
||||
import Chart4 from './Chart4'
|
||||
import React from 'react';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { motion } from 'framer-motion';
|
||||
import Chart1 from './Chart1';
|
||||
import Chart2 from './Chart2';
|
||||
import Chart3 from './Chart3';
|
||||
import Chart4 from './Chart4';
|
||||
|
||||
import './index.less'
|
||||
import './index.less';
|
||||
import cls from './index.module.css';
|
||||
|
||||
export default function index() {
|
||||
return (
|
||||
<div className='ButtonBorder'>
|
||||
<Chart1 />
|
||||
<Chart2 />
|
||||
<Chart3 />
|
||||
<Chart4 />
|
||||
</div>
|
||||
)
|
||||
return (
|
||||
<>
|
||||
<div className="ButtonBorder">
|
||||
<Chart1 />
|
||||
<Chart2 />
|
||||
<Chart3 />
|
||||
<Chart4 />
|
||||
</div>
|
||||
<div className={cls.bottomBar}></div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
@ -1,8 +1,16 @@
|
||||
.ButtonBorder {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
// width: 100%;
|
||||
// height: 100%;
|
||||
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-around;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-around;
|
||||
|
||||
position: fixed;
|
||||
bottom: 0px;
|
||||
left: 200px;
|
||||
|
||||
z-index: 10000;
|
||||
|
||||
background-color: #000;
|
||||
}
|
||||
|
3
src/components/BottomBar/index.module.css
Normal file
3
src/components/BottomBar/index.module.css
Normal file
@ -0,0 +1,3 @@
|
||||
.bottomBar {
|
||||
background-color: #0004;
|
||||
}
|
@ -23,6 +23,15 @@ const Container = (props) => {
|
||||
case 'smoke':
|
||||
icon.current = IconSmoke;
|
||||
break;
|
||||
case 'chart':
|
||||
icon.current = IconSmoke;
|
||||
break;
|
||||
case 'puzzle':
|
||||
icon.current = IconSmoke;
|
||||
break;
|
||||
case 'pause':
|
||||
icon.current = IconSmoke;
|
||||
break;
|
||||
}
|
||||
|
||||
return (
|
||||
|
@ -12,7 +12,6 @@
|
||||
flex-direction: row;
|
||||
|
||||
.Center {
|
||||
background: #ce862f69;
|
||||
margin-top: 21px;
|
||||
margin-left: 24px;
|
||||
padding: 1px;
|
||||
|
Loading…
Reference in New Issue
Block a user