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

[t-search] 属性left-icon和默认'search'冲突 #2568

Closed
eMonkHy opened this issue Jan 22, 2024 · 4 comments · Fixed by #2569
Closed

[t-search] 属性left-icon和默认'search'冲突 #2568

eMonkHy opened this issue Jan 22, 2024 · 4 comments · Fixed by #2569
Labels
bug Something isn't working

Comments

@eMonkHy
Copy link

eMonkHy commented Jan 22, 2024

tdesign-miniprogram 版本

^1.2.6

重现链接

No response

重现步骤

<t-search model:value="{{search}}" placeholder="搜索"> <t-icon slot="left-icon" size="18" name="search"></t-icon> </t-search>

a720f31f5ae891e5a95fbcde4b4467c

期望结果

No response

实际结果

No response

基础库版本

No response

补充说明

No response

Copy link
Contributor

👋 @eMonkHy,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@betavs betavs added the bug Something isn't working label Jan 22, 2024
@tankle0
Copy link

tankle0 commented Jul 20, 2024

@betavs @jarmywang 这个问题在1.4.4怎么又出现了,使用自定义图片不生效
<t-image class="searchIcon" slot="left-icon" src="/static/icons/search.png" mode="heightFix" width="48rpx" height="48rpx" />

@betavs
Copy link
Collaborator

betavs commented Jul 23, 2024

@tankle0 由于 leftIcon 默认值为 search 导致,如果需要自定义 left-icon 需要设置 leftIcon="{{null}}"

@tankle0
Copy link

tankle0 commented Jul 24, 2024

@tankle0 由于 leftIcon 默认值为 search 导致,如果需要自定义 left-icon 需要设置 leftIcon="{{null}}"

好的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants