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

Checboxgroup radioGroup 值缺少 valueKey. labelKey. 用于值和名称的获取 #64

Closed
LinboLen opened this issue Sep 14, 2020 · 1 comment

Comments

@LinboLen
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

checkboxGroup 值 可以是这样

[
 {name: 'name1', value: 'value1', checked: false},
 {name: 'name2', value: 'value3', checked: false}
]

也可以这样, 当用到了 valueKey时, valueKey可以是字符串也可以是回调函数
[
'value1',
'value3',
]

Screenshots
If applicable, add screenshots to help explain your problem.

environments (please complete the following information):

  • Browser [e.g. chrome 80, safari]
  • component version [e.g. 8.0.0]
  • angular framework version [e.g. 8.0.0]

Additional context
Add any other context about the problem here.

@wangyaju
Copy link
Member

@LinboLen 目前,对于对象形式的option,可以通过模板来实现lable的自定义显示,选中会把当前option都提供出来,方便处理

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