el-table-column如何获取其他列中的数据

el-table-column是el-table中的列属性。

思路:采用插槽的方式即在slot-scope中获取

例如要获取该行中其他的属性比如文件id,那么可以直接在scope.row中取得,scope.row代表本行的所有数据,是一个字典:

猜你喜欢

转载自blog.csdn.net/weixin_38664232/article/details/108109125