波形解析相关

This commit is contained in:
2026-04-16 08:11:38 +08:00
parent 8e2c044381
commit 5596d57409
23 changed files with 162 additions and 78 deletions

View File

@@ -37,7 +37,7 @@ const shouldHiddenIndex = inject<Ref<number>>('shouldHiddenIndex', ref(-1))
watch(
() => [shouldHiddenIndex.value, breakPoint.value],
n => {
if (!!attrs.index) {
if (attrs.index) {
isShow.value = !(n[0] !== -1 && parseInt(attrs.index) >= Number(n[0]))
}
},

View File

@@ -28,7 +28,7 @@ const color = [
const chartRef = ref<HTMLDivElement>()
const props = defineProps(['options', 'isInterVal', 'pieInterVal'])
const props = defineProps(['options', 'isInterVal', 'pieInterVal', 'group'])
let chart: echarts.ECharts | any = null
const resizeHandler = () => {
// 不在视野中的时候不进行resize
@@ -47,6 +47,10 @@ const initChart = () => {
}
// chart?.dispose()
chart = echarts.init(chartRef.value as HTMLDivElement)
if (props.group) {
chart.group = props.group
echarts.connect(props.group)
}
const options = {
title: {