Commit 4f976c5e by 胡悦

提交

1 parent 9c0a3b06
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-06-23 15:05:21 * @Date: 2022-06-23 15:05:21
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-06-30 17:50:45 * @LastEditTime: 2022-06-30 18:16:03
--> -->
<template> <template>
<div> <div>
...@@ -147,8 +147,8 @@ export default { ...@@ -147,8 +147,8 @@ export default {
bottom: 8, bottom: 8,
width: '100%', width: '100%',
min: 0, min: 0,
max: 100, // max: 10000,
minSize: '30%', minSize: '25%',
maxSize: '100%', maxSize: '100%',
sort: 'descending', sort: 'descending',
gap: 2, gap: 2,
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-06-23 15:05:21 * @Date: 2022-06-23 15:05:21
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-06-30 17:50:59 * @LastEditTime: 2022-06-30 18:04:44
--> -->
<template> <template>
<div> <div>
...@@ -36,6 +36,9 @@ export default { ...@@ -36,6 +36,9 @@ export default {
}, },
mounted() { mounted() {
this.echartsTrend = echarts.init(document.getElementById('lineTrend')) this.echartsTrend = echarts.init(document.getElementById('lineTrend'))
window.addEventListener('resize', () => {
this.echartsTrend.resize()
})
}, },
methods: { methods: {
init(val) { init(val) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!