liulingling.177216
2024-08-26 349f1cfc5fa77fbc636d542df0d8050fddec48c2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
 * 折线图的自适应
 * 当窗口发生变化的时候 会重新的更新视图的位置 达到自适应
 */
export default {
    data() {
        return {
            bodyStyle: {
                height: '',
                overflow: 'auto'
            }
        }
    },
    mounted() {
        this.setCharts();
        window.addEventListener('resize', this.setCharts);
    },
    beforeDestroy() {
        window.removeEventListener('resize', this.setCharts);
    },
    methods: {
 
    }
};