Element table 表格中 el-select 传递参数,自定义参数
<el-table-column prop="cvRobotName" label="机器人" align="center" v-if="mode !== 2">
<template slot-scope="item">
<el-select
v-model="tableData[scope.$index].value"
filterable
size="mini"
:filter-method="(val) => {return dataFilter(val, item, item.$index)}"
:visible-change="recoverData"
placeholder="请选择"
:popper-append-to-body="false"
popper-class="select-option"
@change="showTableDate(scope.row)"
@visible-change="recoverData(false, scope)"
:disabled="tableData[scope.$index].isChange"
slot="reference">
<el-option
v-for="item in valueOptions"
:key="item.value"
:label="item.label"
:value="item.label">
</el-option>
</el-select>
</template>
</el-table-column>
// val 输入时改变的值,item 循环的这条数据, index 当前数据的索引
dataFilter (val, item, index) {}
传送门:https://blog.csdn.net/qq_36525300/article/details/109067074