diff --git a/src/components/charts/src/main.vue b/src/components/charts/src/main.vue index a8349a8..80e3773 100644 --- a/src/components/charts/src/main.vue +++ b/src/components/charts/src/main.vue @@ -1,6 +1,6 @@ @@ -30,6 +30,8 @@ export default { option () { let { chart, option } = this + if (!chart) return + if (!option) option = {} chart.setOption(option) @@ -67,7 +69,7 @@ export default { width: 100%; height: 100%; - .charts { + .charts-canvas-container { width: 100%; height: 100%; } diff --git a/src/components/scrollBoard/src/main.vue b/src/components/scrollBoard/src/main.vue index be6d0bb..be584c7 100644 --- a/src/components/scrollBoard/src/main.vue +++ b/src/components/scrollBoard/src/main.vue @@ -1,12 +1,11 @@