Skip to content

AutoComplete component setting optionLabelProp invalid #5212

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

Closed
1 task
yuyang1004 opened this issue Jan 26, 2022 · 6 comments
Closed
1 task

AutoComplete component setting optionLabelProp invalid #5212

yuyang1004 opened this issue Jan 26, 2022 · 6 comments

Comments

@yuyang1004
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.0.0-beta.8

Environment

3.0.0-beta.8 vue3

Reproduction link

https://vuecomponent.github.io/issue-helper/?lang=zh

Steps to reproduce

<a-auto-complete
:options="bookingUserList"
v-model:value="formState.orderName"
:not-found-content="bookingUserFetching ? undefined : null"
:allowClear="true"
:backfill="true"
@select="onSelectBookingUser"
optionLabelProp="mobile"

What is expected?

选择后是否应该是mobile属性的值

What is actually happening?

返回的还是value的值

@github-actions github-actions bot changed the title AutoComplete组件设置optionLabelProp无效 AutoComplete component setting optionLabelProp invalid Jan 26, 2022
@zkwolf zkwolf added the 🤔 Need Reproduce We cannot reproduce your problem label Jan 26, 2022
@github-actions
Copy link

Hello @yuyang1004. Please provide a online reproduction by forking this link for vue2link for vue3 or a minimal GitHub repository. Make sure to choose the correct version.

你好 @yuyang1004, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 for vue2此处 for vue3 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。请确保选择准确的版本。

@yuyang1004
Copy link
Author

Hello @yuyang1004. Please provide a online reproduction by forking this link for vue2link for vue3 or a minimal GitHub repository. Make sure to choose the correct version.

你好 @yuyang1004, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 for vue2此处 for vue3 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。请确保选择准确的版本。

https://codesandbox.io/s/spring-mountain-r7rfg?file=/src/components/HelloWorld.vue
https://r7rfg.csb.app/

@tangjinzhou tangjinzhou added bug and removed 🤔 Need Reproduce We cannot reproduce your problem labels Jan 27, 2022
@tangjinzhou
Copy link
Member

这是一个漏掉写进文档的破坏性更新,AutoComplete 不再支持 optionLabelProp 属性了

@yuyang1004
Copy link
Author

是一个漏掉写进文档的破坏性更新,AutoComplete 不再支持 optionLabelPro

有替换方案吗?

@tangjinzhou
Copy link
Member

直接使用 value字段存储 mobile 数据

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants