修改 波形样式

This commit is contained in:
guanj
2025-11-27 15:45:42 +08:00
parent 800ec7f0cf
commit 1a146afcd7
3 changed files with 219 additions and 91 deletions

View File

@@ -13,6 +13,7 @@ import { ref, computed, onMounted, onBeforeUnmount, watch, nextTick } from 'vue'
import html2canvas from 'html2canvas'
import $ from 'jquery'
import * as echarts from 'echarts'
import { mainHeight } from '@/utils/layout'
import url from '@/assets/img/point.png'
// 创建Worker
let waveDataWorker: Worker | null = null
@@ -41,7 +42,7 @@ interface WaveData {
interface Props {
value?: number
flag?: string | number | boolean
parentHeight?: string | number | boolean
parentHeight?: any
DColor?: boolean
boxoList?: any
wp?: any
@@ -86,13 +87,25 @@ const myChartess4 = ref<echarts.ECharts | null>(null)
const myChartess5 = ref<echarts.ECharts | null>(null)
const vh = computed(() => {
if (props.flag == 1) {
return '690px'
} else if (props.parentHeight != 0) {
if (props.parentHeight == 999) {
return '310px'
} else {
return '350px'
} else if (props.parentHeight != 0) {
return mainHeight(props.parentHeight, 2).height
}
if (props.flag == 1) {
return mainHeight(200).height
} else {
return mainHeight(200, 2).height
}
// if (props.flag == 1) {
// return '690px'
// } else if (props.parentHeight != 0) {
// return '310px'
// } else {
// return '350px'
// }
})
const vw = computed(() => '100%')
@@ -403,7 +416,7 @@ const initWave = (
enabled: true,
itemDistance: 5,
textStyle: {
fontSize:12,
fontSize: 12,
color: props.DColor ? '#000' : echartsColor.WordColor,
rich: { a: { verticalAlign: 'middle' } },
padding: [0, 0, 0, 0]