chart width 100%

This commit is contained in:
Captain.B 2020-04-10 14:19:14 +08:00
parent 41a9fcfcf2
commit 22e809bbae
1 changed files with 6 additions and 2 deletions

View File

@ -59,10 +59,10 @@
<el-row>
<el-col :span="12">
<chart ref="chart1" :options="loadOption" :autoresize="true"></chart>
<chart ref="chart1" :options="loadOption" class="chart-config" :autoresize="true"></chart>
</el-col>
<el-col :span="12">
<chart ref="chart2" :options="resOption" :autoresize="true"></chart>
<chart ref="chart2" :options="resOption" class="chart-config" :autoresize="true"></chart>
</el-col>
</el-row>
</div>
@ -276,4 +276,8 @@
border-left-width: 3px;
}
.chart-config {
width: 100%;
}
</style>