Closed kimpa0107 closed 2 years ago
表格行数据的某一个字段为对象时,无法读取对象值
Steps to Reproduce
const items = [ { id: 1, child: { id: 2 } } ]
<el-table :data="items"> <el-table-column label="child"> <template v-slot="{ row }"> {{ row.child.id }} </template> </el-table-column> </el-table>
row.child.id,会报错,无法渲染
row.child.id
repo: https://github.com/kimpa0107/element3-table-bug.git
repo
Environment
0.0.40
v14.15.3
Bug description
表格行数据的某一个字段为对象时,无法读取对象值
Steps to Reproduce
row.child.id
,会报错,无法渲染repo
: https://github.com/kimpa0107/element3-table-bug.gitEnvironment
0.0.40
v14.15.3