mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix: 解决缩放大于100%的问题
This commit is contained in:
@@ -11,6 +11,7 @@ import { LineChart } from 'echarts/charts'
|
||||
import config, { includes } from './config'
|
||||
import { mergeTheme } from '@/packages/public/chart'
|
||||
import { GridComponent, TooltipComponent, LegendComponent } from 'echarts/components'
|
||||
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
|
||||
|
||||
const props = defineProps({
|
||||
themeSetting: {
|
||||
@@ -35,7 +36,10 @@ use([
|
||||
LegendComponent
|
||||
])
|
||||
|
||||
const chartEditStore = useChartEditStore()
|
||||
|
||||
const option = computed(() => {
|
||||
console.log(chartEditStore.getEditCanvasConfig.chartThemeColor)
|
||||
return mergeTheme(props.chartConfig.option, props.themeSetting, includes)
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user