rem改成px

This commit is contained in:
stt
2025-11-27 15:08:04 +08:00
parent 2476d2401e
commit e824f4823a
2 changed files with 28 additions and 28 deletions

View File

@@ -353,7 +353,7 @@ const initWave = (waveDatas: WaveData[] | null, time: string | null, type: strin
left: 'center',
text: titleText,
textStyle: {
fontSize: '0.8rem',
fontSize: '16px',
color: props.DColor ? '#000' : echartsColor.WordColor
}
},
@@ -364,7 +364,7 @@ const initWave = (waveDatas: WaveData[] | null, time: string | null, type: strin
enabled: true,
itemDistance: 5,
textStyle: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor,
rich: { a: { verticalAlign: 'middle' } },
padding: [0, 0, 0, 0]
@@ -390,14 +390,14 @@ const initWave = (waveDatas: WaveData[] | null, time: string | null, type: strin
title: {
text: 'ms',
textStyle: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor
},
enabled: true,
align: 'high'
},
splitLine: { show: false },
nameTextStyle: { fontSize: '0.6rem' },
nameTextStyle: { fontSize: '14px' },
axisTick: { alignWithLabel: true },
axisLine: {
lineStyle: {
@@ -406,7 +406,7 @@ const initWave = (waveDatas: WaveData[] | null, time: string | null, type: strin
onZero: false
},
axisLabel: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor,
formatter: function (value: number) {
if (valA.value != (value - 0).toFixed(0)) {
@@ -433,7 +433,7 @@ const initWave = (waveDatas: WaveData[] | null, time: string | null, type: strin
min: min.toFixed(2) > 0 ? min.toFixed(2) - min.toFixed(2) * 0.1 : min.toFixed(2) * 1.1,
opposite: false,
nameTextStyle: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor
},
axisLine: {
@@ -444,7 +444,7 @@ const initWave = (waveDatas: WaveData[] | null, time: string | null, type: strin
onZero: false
},
axisLabel: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor,
formatter: function (value: number) {
return (value - 0).toFixed(2)
@@ -640,7 +640,7 @@ const drawPics = (waveDataTemp: WaveData, picHeight: string, step: number, show:
left: 'center',
text: '',//titlename || title,
textStyle: {
fontSize: '0.8rem',
fontSize: '16px',
color: props.DColor ? '#000' : echartsColor.WordColor
}
},
@@ -651,7 +651,7 @@ const drawPics = (waveDataTemp: WaveData, picHeight: string, step: number, show:
enabled: true,
itemDistance: 5,
textStyle: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor,
rich: { a: { verticalAlign: 'middle' } },
padding: [0, 0, 0, 0]
@@ -666,7 +666,7 @@ const drawPics = (waveDataTemp: WaveData, picHeight: string, step: number, show:
title: {
text: 'ms',
textStyle: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor
},
enabled: true,
@@ -680,9 +680,9 @@ const drawPics = (waveDataTemp: WaveData, picHeight: string, step: number, show:
},
onZero: false
},
nameTextStyle: { fontSize: '0.6rem' },
nameTextStyle: { fontSize: '14px' },
axisLabel: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor,
formatter: function (value: number) {
if (valB.value != (value - 0).toFixed(0)) {
@@ -709,7 +709,7 @@ const drawPics = (waveDataTemp: WaveData, picHeight: string, step: number, show:
min: min.toFixed(2) > 0 ? min.toFixed(2) - min.toFixed(2) * 0.1 : min.toFixed(2) * 1.1,
opposite: false,
nameTextStyle: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor
},
axisLine: {
@@ -720,7 +720,7 @@ const drawPics = (waveDataTemp: WaveData, picHeight: string, step: number, show:
onZero: false
},
axisLabel: {
fontSize: '0.6rem',
fontSize: '14px',
color: props.DColor ? '#000' : echartsColor.WordColor,
formatter: function (value: number) {
return (value - 0).toFixed(2)