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

fix: 查询条件组件下拉框联动赋值导致表单重置 #41

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

xpretty
Copy link

@xpretty xpretty commented May 29, 2024

No description provided.

@xpretty xpretty closed this May 29, 2024
@xpretty xpretty reopened this May 29, 2024
@wocwin
Copy link
Owner

wocwin commented May 29, 2024

录制一下修复解决了哪个问题

@xpretty
Copy link
Author

xpretty commented May 29, 2024

meeting_01.mp4

select联动listTypeInfo重新赋值,form被重置

@xpretty
Copy link
Author

xpretty commented May 29, 2024

meeting_02.mp4

修复后

@wocwin
Copy link
Owner

wocwin commented May 30, 2024

你拉最新代码,我这边本地重现不了github文档也一样重现不了你这种问题,而且你这样改也会出现新的问题(动态设置默认值失效)

@xpretty
Copy link
Author

xpretty commented May 30, 2024

@wocwin
Copy link
Owner

wocwin commented May 30, 2024

需要这样改
image

@xpretty
Copy link
Author

xpretty commented May 30, 2024

if opts[field].defaultVal条件前置的话每次watch opts时 已经修改的值会被重置为默认值defaultVal
image

@wocwin
Copy link
Owner

wocwin commented May 30, 2024

确实需要重置后回显默认值
image

@xpretty
Copy link
Author

xpretty commented Jun 3, 2024

configChangedReset会导致每次动态更新selsct data都需要修改configChangedReset且存在其他问题;

解决动态切换默认值可以让开发者自己暴露组件:key更新

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

Successfully merging this pull request may close these issues.

None yet

2 participants