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: select的source是表达式时,数据域发生变化后已选值不会自动清空 issue#10359 #10361

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

Conversation

thinkingc
Copy link
Contributor

What

#10359 issue处理

Why

How

@github-actions github-actions bot added the fix label May 31, 2024
Copy link

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

@thinkingc thinkingc changed the title fix: 修复部分场景下获取不到region的情况 issue#10354 fix: select的source是表达式时,数据域发生变化后已选值不会自动清空 issue#10359 May 31, 2024
@2betop
Copy link
Collaborator

2betop commented May 31, 2024

这个应该来个配置项,不能作为默认行为,有时候是不需要清空的,不能直接弄成总是清空,可以在 options 类的组件上加个 clearValueOnSourceChange 之类的配置

@thinkingc
Copy link
Contributor Author

这个应该来个配置项,不能作为默认行为,有时候是不需要清空的,不能直接弄成总是清空,可以在 options 类的组件上加个 clearValueOnSourceChange 之类的配置

source为api的情况是没有这个判断的,我理解source为数据域表达式也不用,source依赖的数据域变化就清空已选,和配置api的行为保持一样。

@thinkingc
Copy link
Contributor Author

这个应该来个配置项,不能作为默认行为,有时候是不需要清空的,不能直接弄成总是清空,可以在 options 类的组件上加个 clearValueOnSourceChange 之类的配置

已添加clearValueOnSourceChange配置及说明

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants