customizeList:[ { customizeId: 100, name: 'aaa', type: '1' }, { customizeId: 101, name: 'bbb', type: '1' }, ]

在 el-table-column 的 template slot 中使用 scope.row.customizeId 找到 customizeList 中对应的对象,再取出该对象的 name 属性即可,代码如下:

Element UI 表格中显示 customizeId 对应的 name 属性

原文地址: https://www.cveoy.top/t/topic/owv5 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录