hug-sun / element3

A Vue.js 3.0 UI Toolkit for IT Education. Build with JS&TS
https://e3.shengxinjing.cn/
MIT License
3.28k stars 1.01k forks source link

表格行数据的某一个字段为对象时,无法渲染对象值 #587

Closed kimpa0107 closed 2 years ago

kimpa0107 commented 3 years ago

Bug description

表格行数据的某一个字段为对象时,无法读取对象值

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,会报错,无法渲染

repo: https://github.com/kimpa0107/element3-table-bug.git

Environment