懒加载和不懒加载没有关系吧?所有的列都是基于 el-table-column, el-table-column 是本身就已经配置好了。编辑的话把 row 传过去即可。<el-table-column prop="name" label="姓名" width="180"> </el-table-column> <el-table-column label="操作"> <template slot-scope="scope"> <el-button size="mini" @click="handleEdit(scope.$index, scope.row)">编辑</el-button> <el-button size="mini" type="danger" @click="handleDelete(scope.$index, scope.row)">删除</el-button> </template> </el-table-column>无法复现 http://jsrun.net/mVzKp/edit已参与了 SegmentFault 思否社区 10 周年「问答」打卡 ,欢迎正在阅读的你也加入。
懒加载和不懒加载没有关系吧?
所有的列都是基于 el-table-column, el-table-column 是本身就已经配置好了。编辑的话把 row 传过去即可。
无法复现 http://jsrun.net/mVzKp/edit