实现 el-table 展开行,展开行的数据由另一个数组填充:
<template>
<div class="uiot-main">
<el-table
highlight-current-row
class="uiot-table"
max-height="601"
size="mini"
border
:header-row-style="HeadRowStyle"
:header-cell-style="HeadCellStyle"
:cell-style="CellStyle"
:row-style="RowStyle"
:default-sort="{prop: 'name', order: 'ascending'}"
:data="tableData"
@sort-change="currSortChange"
@current-change="currRowchange"
@expand-change="expandChange">
<el-table-column type="expand">
<template>
<el-table class="table-expand" :data="childTableData" >
<el-table-column prop