Skip to content

Commit

Permalink
💤feat:自适应
Browse files Browse the repository at this point in the history
  • Loading branch information
tsinghua-lau committed Feb 6, 2023
1 parent faaa4fe commit 36ffa25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/views/echarts/echart.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as echarts from 'echarts';

export const echart1 = {
title: {
text: 'ECharts 入门示例',
Expand Down
3 changes: 3 additions & 0 deletions src/views/echarts/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as echarts from 'echarts';
import { echart1, echart2, echart3, echart4, echart5, echart6 } from './echart';
import _rawData from './data.json';
import useCurrentInstance from '@/untils/useCurrentInstance';
const { proxy } = useCurrentInstance();
var op1 = null;
var op2 = null;
Expand All @@ -29,6 +30,7 @@ const initAllEcharts = (): void => {
op3 = echarts.init(document.getElementById('echart3') as HTMLDivElement);
op3.setOption(echart3);
op4 = echarts.init(document.getElementById('echart4') as HTMLDivElement);
op4.setOption(echart4);
Expand All @@ -37,6 +39,7 @@ const initAllEcharts = (): void => {
op6 = echarts.init(document.getElementById('echart6') as HTMLDivElement);
op6.setOption(echart6);
window.addEventListener('resize', () => {
echartsResize();
});
Expand Down

1 comment on commit 36ffa25

@vercel
Copy link

@vercel vercel bot commented on 36ffa25 Feb 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.