Enhanced style compatibility.
This commit is contained in:
@ -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%;
|
||||
}
|
||||
|
Reference in New Issue
Block a user