-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
auto-complete 组件无法使用option 或 options 等slot自定义下拉菜单 #7396
Comments
https://www.antdv.com/components/auto-complete-cn#components-auto-complete-demo-options |
我再确认下 |
selicens
added a commit
to selicens/ant-design-vue
that referenced
this issue
Mar 5, 2024
…into fix-auto-complet-vueComponent#7396
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
4.1.0
Environment
vue@3.4.0 TS@5.3.3 ant-design-vue@4.1.2 edge@122.0.2365.59
Reproduction link
https://antdv.com/components/auto-complete-cn
Steps to reproduce
使用文档中说明的 option slot 或使用TS中定义的options slot 自定义下拉菜单的选项
https://codesandbox.io/p/sandbox/priceless-galois-3mhq5c
What is expected?
自定义菜单项,希望菜单项前面有一个选中图标
What is actually happening?
使用 option slot , TS会检查 option 这个slot不存在,在源码导出的几种 slot的类型,没有option
使用 options slot ,antdv 会报错 Warning: [ant-design-vue: AutoComplete] options' slot is deprecated, please use props "options"
instead
The text was updated successfully, but these errors were encountered: