修改测试问题

This commit is contained in:
guanj
2026-06-16 08:34:45 +08:00
parent 1c01fe5ae1
commit d9dfd804c5
63 changed files with 5289 additions and 3842 deletions

View File

@@ -13,6 +13,7 @@ import 'echarts-liquidfill'
import 'echarts/lib/component/dataZoom'
import { color, gradeColor3 } from './color'
import { useConfig } from '@/stores/config'
import { buildExportBaseName, formatExportDateTime } from '@/utils/echartMethod'
// import { nextTick } from 'process'
const emit = defineEmits(['chartClick'])
@@ -71,7 +72,9 @@ const initChart = () => {
feature: {
saveAsImage: {
title: '下载图片',
name: props.options?.title?.text || '图表'
name: props.options?.exportFileName
? buildExportBaseName(props.options.exportFileName)
: ((props.options?.title?.text || '图表') + '_' + formatExportDateTime())
},
...(props.options?.toolbox?.featureProps || null)
},
@@ -93,7 +96,7 @@ const initChart = () => {
...(props.options?.legend || null)
},
grid: {
top: props.options?.title?.text ? '50px' : '25px',
top: props.options?.title?.text ? '50px' : '25px',
left: '30px',
right: '70px',
bottom: props.options?.options?.dataZoom === null ? '10px' : '40px',