Skip to content

When the AutoComplete autocomplete class uses the option that passes #dataSource directly, the console will report warning.js? 2149:6 Warning: [antdv: AutoComplete] dataSource is deprecated, please use options instead. #4004

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
cff-github opened this issue Apr 27, 2021 · 3 comments
Labels

Comments

@cff-github
Copy link

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

Version

undefined

Environment

2.1.2

Reproduction link

#3210

Steps to reproduce

warning.js?2149:6 Warning: [antdv: AutoComplete] dataSource is deprecated, please use options instead.

What is expected?

希望不要显示此警告

What is actually happening?

warning.js?2149:6 Warning: [antdv: AutoComplete] dataSource is deprecated, please use options instead.

@github-actions github-actions bot changed the title AutoComplete 自动完成级件在使用直接传递 #dataSource 的Option时控制台会报warning.js?2149:6 Warning: [antdv: AutoComplete] dataSource is deprecated, please use options instead. When the AutoComplete autocomplete class uses the option that passes #dataSource directly, the console will report warning.js? 2149:6 Warning: [antdv: AutoComplete] dataSource is deprecated, please use options instead. Apr 27, 2021
@John60676
Copy link
Member

谷歌翻译:警告:[antdv:自动完成] dataSource 已过时,请改用 options

@cff-github
Copy link
Author

cff-github commented Apr 28, 2021

请问不用datasource,用options如何才才自定义选项

@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 Apr 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants