Skip to content

can we add loading icon for auocomplate with search icon input #2843

@Kimi1020

Description

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

Version

1.6.5

Environment

win10, chrome, 1.6.5

Reproduction link

https://www.antdv.com/components/auto-complete-cn/

Steps to reproduce

  1. 使用使用autocomplete 组件并且带查询icon的那个input
  2. 加了防抖,每停止输入1500ms触发一个ajax call去后台搜索查询 可能的结果
  3. 在查询的时候,如果速度慢的话,是否可以把input的search icon变成loading icon

What is expected?

使用autocomplete 组件并且带查询icon的那个input, 是不是可以加一个ajax后台查询的时候,提供一个借口 比如loading,右边的icon就从search变成了loading icon

What is actually happening?

查询的时候如果卡顿了,就会出现假死, 好久以后才弹出

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions