vue項目里面用element做了一個彈框,彈框里面用echarts做了個折線圖,把echarts的div放在彈框的外面,折線圖顯示內容,否則只有一個空架子不顯示內容,這是怎么回事?<el-dialog title="" :visible.sync="dialogVisible"> <!-- Table -->
<el-table :data="gridData">
<el-table-column property="loopName" label="回路名稱" width="150"></el-table-column>
<el-table-column property="electricType" label="用電類型" width="200"></el-table-column>
<el-table-column property="galvanicCurrent" label="電流(A)"></el-table-column>
<el-table-column property="temperature" label="導線溫度(℃)"></el-table-column>
<el-table-column property="leakageCurrent" label="漏電流(mA)"></el-table-column>
<el-table-column property="state" label="狀態"></el-table-column>
<el-table-column property="loopType" label="回路類型"></el-table-column>
</el-table>
<!-- Statistical chart -->
<div id="myChart" :style="{width: '1100px', height: '400px'}"></div>
</el-dialog>
添加回答
舉報
0/150
提交
取消