| components/EChartsLine/EChartsLine.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| pages/dashboard/dashboard.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
components/EChartsLine/EChartsLine.vue
@@ -139,6 +139,14 @@ const el = document.getElementById(chartId) if (!el) return // Add observer if not exists to handle container resize if (!this.resizeObserver && typeof ResizeObserver !== 'undefined') { this.resizeObserver = new ResizeObserver(() => { this.resize() }) this.resizeObserver.observe(el) } if (!myChart) { myChart = window.echarts.init(el, null, { devicePixelRatio: window.devicePixelRatio @@ -251,6 +259,10 @@ } }, beforeDestroy() { if (this.resizeObserver) { this.resizeObserver.disconnect() this.resizeObserver = null } if (myChart) { myChart.dispose() myChart = null pages/dashboard/dashboard.vue
@@ -653,6 +653,7 @@ .col-right { width: 70%; height: 100%; display: flex; flex-direction: column; gap: 0; @@ -681,10 +682,12 @@ flex: 35; } .order-stats { flex: 65; flex: none; height: 55%; } .inventory-type { flex: 35; flex: 1; min-height: 0; } .inventory-type .panel-content { padding: 1.1vh 1.2vw;