修改测试问题
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user