修改测试bug

This commit is contained in:
GGJ
2024-10-22 10:50:47 +08:00
parent 29150a3c82
commit 7d2394f75d
6 changed files with 126 additions and 65 deletions

View File

@@ -14,6 +14,7 @@ import 'echarts/lib/component/dataZoom'
import { color, gradeColor3 } from './color'
import { useConfig } from '@/stores/config'
import { saveAs } from 'file-saver'
import { t } from 'vxe-table'
// import { nextTick } from 'process'
const config = useConfig()
@@ -66,6 +67,19 @@ const initChart = () => {
borderWidth: 0,
...(props.options?.tooltip || null)
},
toolbox: {
right: 20,
top: 20,
feature: {
saveAsImage: {
title: '保存图片',
},
...(props.options?.toolbox?.featureProps || null),
},
// },
...(props.options?.toolbox || null)
},
legend: {
right: 20,
top: 0,
@@ -80,7 +94,7 @@ const initChart = () => {
...(props.options?.legend || null)
},
grid: {
top: '50px',
top: '60px',
left: '30px',
right: '70px',
bottom: props.options?.options?.dataZoom === null ? '10px' : '40px',
@@ -218,6 +232,10 @@ const handlerXAxis = () => {
}
}
}
let throttle: ReturnType<typeof setTimeout>
// 动态计算table高度
const resizeObserver = new ResizeObserver(entries => {