From 658537f15552c487a88b4b4f3d4f10d666e0e741 Mon Sep 17 00:00:00 2001
From: jiaming743 <743192023@qq.com>
Date: Thu, 4 Jul 2019 17:11:54 +0800
Subject: [PATCH] Enhanced style compatibility.
---
src/components/charts/src/main.vue | 6 ++++--
src/components/scrollBoard/src/main.vue | 21 ++++++++++-----------
2 files changed, 14 insertions(+), 13 deletions(-)
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 @@
-