Skip to content
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

[comp:input] input在有后置图标时,增加clearable会遮挡后置图标 #1351

Open
1 task done
YeJoe opened this issue Dec 10, 2022 · 4 comments
Open
1 task done
Assignees

Comments

@YeJoe
Copy link

YeJoe commented Dec 10, 2022

  • I have searched the issues of this repository and believe that this is not a duplicate.
    input在有后置图标时,增加clearable会遮挡后置图标
    playground

What problem does this feature solve?

方便用户在输入值的时候可以点击清除或者搜索

What does the proposed API look like?

希望可以将clearable的图标移动到后置图标前面一点,方便用户在输入值的时候可以点击清除或者搜索

@idux-bot
Copy link

idux-bot bot commented Dec 10, 2022

Translation of this issue:

[Comp: Input] Input when there is a rear icon, add Clearable to cover the rear icon

What PROBLEM DOES This Feature Solve?

It is convenient for users to click Clear or Search when the input value

What does the proposed api look like?

I hope that the clearable icon can be moved to a point in front of the rear icon, which is convenient for users

@danranVm
Copy link
Member

设计师给我提过这个需求,被我拒绝掉了。

  • 改动影响的组件比较多
  • 同时显示两个图标占用的空间也比较多,比例不是很协调。

如果你们想强调搜索的功能,要么不要配置 clearable, 要么使用 addonAfter 来设置搜索图标,我认为可能是更好的方式。

@YeJoe
Copy link
Author

YeJoe commented Dec 20, 2022

好的,gan

设计师给我提过这个需求,被我拒绝掉了。

  • 改动影响的组件比较多
  • 同时显示两个图标占用的空间也比较多,比例不是很协调。

如果你们想强调搜索的功能,要么不要配置 clearable, 要么使用 addonAfter 来设置搜索图标,我认为可能是更好的方式。

好的,感谢回复~

@threedayAAAAA
Copy link
Contributor

fixed with #1745

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants