Enhanced style compatibility.

This commit is contained in:
jiaming743
2019-07-04 17:11:54 +08:00
parent 6f784a3e36
commit 658537f155
2 changed files with 14 additions and 13 deletions

View File

@ -1,6 +1,6 @@
<template>
<div class="dv-charts-container" :ref="ref">
<div class="charts" :ref="chartRef" />
<div class="charts-canvas-container" :ref="chartRef" />
</div>
</template>
@ -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%;
}