-
-
Notifications
You must be signed in to change notification settings - Fork 47.3k
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
单行 <Input /> 是否可以增加带有图标、清空、loading 等功能 #4226
Comments
<Input suffix={<Icon type="search" />} /> I like it. |
期待 |
别期待,来帮我们做这个特性如何? |
好,今晚我读下代码,理下思路,随时和你保持联系 |
<Input
search
loading
allowClear
suffix={<Icon />}
/> 其中
<span class="ant-input-wrapper ant-input-suffix">
<input type="text" class="ant-input" />
<span class="ant-input-suffix-anticon">
<i class="anticon"></i>
</span>
</span>
|
|
好的,谢谢!那我今天开始做。 |
@ystarlongzi |
@afc163 刚才提交了一个 pr,我感觉可能和你的思路有偏差,麻烦你看下。
<span class="ant-input-suffix-wrapper">
<input type="text" class="ant-input" />
<span class="ant-input-suffix">
<i class="anticon"></i>
</span>
</span>
|
主要是这两种情况比较常见,也比较好处理。 其他变式碰到再讨论吧。 |
嗯,好的。我在修改下 |
感谢 @ystarlongzi 非常给力的贡献,邮件给我地址,我给你发个纪念品吧。 |
@afc163 |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
如题:
如果具有图标功能,实现这样的搜索框就很简单了,目前官方也已经给出了实现
如果具有清空功能,可以快速清空文本框内容
如果具有 loading 提示,就可以表示当前正在搜索、加载....
The text was updated successfully, but these errors were encountered: