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(auto-complete): options is an empty array, empty is not effective #3474

Merged
merged 3 commits into from
Feb 6, 2025

Conversation

liweijie0812
Copy link
Collaborator

@liweijie0812 liweijie0812 commented Jan 20, 2025

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

💡 需求背景和解决方案

options = [], 点击 没展示 empty 节点

修改后
image

📝 更新日志

  • fix(AutoComplete): 修复 options 为空数组,empty 节点没显示

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

Copy link
Contributor

github-actions bot commented Jan 20, 2025

完成

@chaishi
Copy link
Collaborator

chaishi commented Jan 25, 2025

这个变更需要慎重,和设计师再对一下交互。
这个组件是 AutoComplete,不是 Select 。对于 AutoComplete 来说,没有联想词,就是不显示的。可以参考 AntDesign 的交互,以及其他搜索按钮的交互。

https://ant-design.antgroup.com/components/auto-complete-cn
image

@uyarn
Copy link
Collaborator

uyarn commented Feb 5, 2025

这个变更需要慎重,和设计师再对一下交互。 这个组件是 AutoComplete,不是 Select 。对于 AutoComplete 来说,没有联想词,就是不显示的。可以参考 AntDesign 的交互,以及其他搜索按钮的交互。

https://ant-design.antgroup.com/components/auto-complete-cn image

这个已经和设计同学确认过的 设计同学的角度是如果不展示任何内容 没有反馈也不合理

@uyarn uyarn merged commit 011fd41 into develop Feb 6, 2025
7 checks passed
@uyarn uyarn deleted the fix/auto-complete branch February 6, 2025 10:53
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.

3 participants