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

switch类型默认值问题 #11

Closed
Kerbores opened this issue Mar 4, 2020 · 2 comments
Closed

switch类型默认值问题 #11

Kerbores opened this issue Mar 4, 2020 · 2 comments

Comments

@Kerbores
Copy link

Kerbores commented Mar 4, 2020

switch类型的默认值不应该设置defaultValue而应该设置defaultChecked:详见defaultChecked

@Kerbores
Copy link
Author

Kerbores commented Mar 9, 2020

上层业务代码处理的问题

@Kerbores Kerbores closed this as completed Mar 9, 2020
@Kchengz
Copy link
Owner

Kchengz commented Mar 9, 2020

switch类型的默认值不应该设置defaultValue而应该设置defaultChecked:详见defaultChecked

是的,只是json配置统一为了defaultValue,实际还是defaultChecked,代码如:
:defaultChecked="record.options.defaultValue"
代码地址175行

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