ref="multipleTable"
:data="userData"
tooltip-effect="dark"
style="width: 100%"
@selection-change="handleSelectionChange"
border
>
v-for="col in cols"
:prop="col.prop" :label="col.label" width="col.width" >
怎么用for循环动态生成下面的el-table代码
ref="multipleTable"
:data="userData"
tooltip-effect="dark"
style="width: 100%"
@selection-change="handleSelectionChange"
border
>
v-for="col in cols"
:prop="col.prop" :label="col.label" width="col.width" >
label="姓名"
width="100">
{{ scope.row.name }}
size="mini"
type="primary"
@click="handleEdit(scope.$index, scope.row)">编辑
size="mini"
type="danger"
@click="handleDelete(scope.$index, scope.row)">删除