lb 10 місяці тому
джерело
коміт
572e9e0d5e
5 змінених файлів з 38 додано та 30 видалено
  1. +1
    -1
      src/components/Common/FanRunFrequence/index.jsx
  2. +4
    -0
      src/components/Common/FanRunFrequence/index.module.css
  3. +0
    -1
      src/components/Common/TimeFireDir/index.jsx
  4. +25
    -28
      src/components/Common/TimeFireDir/leftbox.module.scss
  5. +8
    -0
      src/index.css

+ 1
- 1
src/components/Common/FanRunFrequence/index.jsx Переглянути файл

@@ -167,7 +167,7 @@ function WindFrequence(props) {
return (
<GraphBase
icon="kiln"
title="FanRunFrequence"
title="风机运行频率"
size={["middle", "long"]}
switchOptions={true}
switchPosition={[null, 200]} // [top, left]


+ 4
- 0
src/components/Common/FanRunFrequence/index.module.css Переглянути файл

@@ -1,3 +1,7 @@
.chart {
height: 100%;
}

.gridList {
margin-top: 12px;
display: grid;


+ 0
- 1
src/components/Common/TimeFireDir/index.jsx Переглянути файл

@@ -16,7 +16,6 @@ const Chart2 = () => {
useEffect(() => {
const restTime = ctx?.runState?.lastFireChangeTime;
if (restTime == null) return;
console.log("restTime is:", restTime);
let timer = null;
if (/分/.test(restTime) && /秒/.test(restTime)) {
let [min, sec] = restTime.replace(/分/, ":").replace(/秒/, "").split(":");


+ 25
- 28
src/components/Common/TimeFireDir/leftbox.module.scss Переглянути файл

@@ -1,33 +1,30 @@
.leftbox {
// width: 440px;
// background: rgb(127, 202, 42);
.box {
margin-right: 16px;
width: 200px;
padding: 12px;
background: url(../../../assets/CenterChart2ItemBg.png);
background-repeat: no-repeat;
background-size: 100% 100%;
display: flex;
align-items: flex-start;
user-select: none;

.box {
margin-right: 16px;
width: 200px;
padding: 8px;
background: url(../../../assets/CenterChart2ItemBg.png);
background-repeat: no-repeat;
background-size: 100% 100%;
display: flex;
align-items: flex-start;
user-select: none;
.box__inner {
padding-top: 12px;

.box__inner {
padding-top: 12px;
.box__label {
color: #fffa;
font-size: 18px;
line-height: 1;
}

.box__label {
color: #fffa;
font-size: 18px;
line-height: 14px;
}

.box__value {
color: #fff;
font-weight: 400;
font-size: 30px;
line-height: 34px;
}
}
}
.box__value {
color: #fff;
font-weight: 400;
font-size: 30px;
line-height: 56px;
}
}
}
}

+ 8
- 0
src/index.css Переглянути файл

@@ -2,6 +2,14 @@
box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5 {
margin: 0;
}

html,
body {
margin: 0;


Завантаження…
Відмінити
Зберегти