zollero / el-search-table-pagination

🐶 Combine Form, Table and Pagination components of Element UI together.
MIT License
305 stars 79 forks source link

column prop名称包含子属性的时候取不到值 #34

Closed changming1987117 closed 5 years ago

changming1987117 commented 5 years ago

比如prop: a.b,这样的时候,无法展示

zollero commented 5 years ago

@changming1987117 这种情况,建议使用 render 函数来处理,如下:

const props = [{
  prop: 'a',
  render: (row) => row.a.b
}]
changming1987117 commented 5 years ago

嗯嗯,谢谢大神回复,我现在就是这样做的,想问下有计划支持这个吗?

zollero commented 5 years ago

暂时不支持 prop: a.b,这种会需要添加很多属性的计算,增大插件的消耗成本