update bottomBar

This commit is contained in:
lb 2023-07-02 12:41:45 +08:00
parent 86b5551244
commit 9342750233
16 changed files with 116 additions and 23 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View 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>
);
}

View File

@ -0,0 +1,4 @@
.bottomBarItem {
background: url(../../../assets/bg-bottom-item.png) no-repeat;
background-size: 100% 100%;
}

View 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;

View 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;

View 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;

View 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;

View 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>
</>
);
}

View File

@ -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;
}

View File

@ -0,0 +1,3 @@
.bottomBar {
background-color: #0004;
}

View File

@ -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 (

View File

@ -12,7 +12,6 @@
flex-direction: row;
.Center {
background: #ce862f69;
margin-top: 21px;
margin-left: 24px;
padding: 1px;