Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
changming1987117 opened this issue Nov 21, 2018 · 3 comments
Closed

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

changming1987117 opened this issue Nov 21, 2018 · 3 comments

Comments

@changming1987117
Copy link

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

@zollero
Copy link
Owner

zollero commented Nov 21, 2018

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

const props = [{
  prop: 'a',
  render: (row) => row.a.b
}]

@changming1987117
Copy link
Author

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

@zollero
Copy link
Owner

zollero commented Nov 22, 2018

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

@zollero zollero closed this as completed Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants