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-icon 默认图标是一个锁吗? #3212

Open
luoxin59420 opened this issue Oct 22, 2024 · 13 comments · May be fixed by #3216
Open

t-icon 默认图标是一个锁吗? #3212

luoxin59420 opened this issue Oct 22, 2024 · 13 comments · May be fixed by #3216
Labels
bug Something isn't working

Comments

@luoxin59420
Copy link

加载cdn的图标失败后,会默认出现一个锁的图标吗?

image

Copy link
Contributor

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

@anlyyao
Copy link
Collaborator

anlyyao commented Oct 22, 2024

@luoxin59420 TIcon 组件没有兜底值,贴一下你的代码看看~

@anlyyao anlyyao added the question This is a question, not a bug label Oct 22, 2024
@luoxin59420
Copy link
Author

luoxin59420 commented Oct 22, 2024

@luoxin59420 TIcon 组件没有兜底值,贴一下你的代码看看~

<t-cell
  bordered="{{false}}"
  title="{{ item.deviceTagName || item.deviceName }}"
  image="{{ ossBaseUrl + '[email protected]' }}"
  data-row="{{ item }}"
  catch:tap="connectBlue"
  data-type="my"
>
  <view slot="note" class="lanya-icon">
    <t-icon wx:if="{{ item.onlineStatus == 1 }}" class="blue-item-icon fadeIn" name="{{ ossBaseUrl + '[email protected]' }}" size="56rpx" />
    <t-icon class="blue-item-icon fadeIn" name="{{ ossBaseUrl + (item.connectable ? '[email protected]' : '[email protected]') }}" size="56rpx" />
  </view>
  <view catch:tap="handleMore" data-index="{{index}}" slot="note" class="more-icon">
    <t-icon name="{{ ossBaseUrl + '[email protected]' }}" size="56rpx" />
  </view>
</t-cell>

image

@anlyyao
Copy link
Collaborator

anlyyao commented Oct 22, 2024

@luoxin59420 复现不出你的问题,我这边使用是正常的。你看你能想办法在这个代码片段链接里面复现吗~,复现之后在重新分享给我

https://developers.weixin.qq.com/s/bz7aGimL72S2

@luoxin59420
Copy link
Author

@luoxin59420 复现不出你的问题,我这边使用是正常的。你看你能想办法在这个代码片段链接里面复现吗~,复现之后在重新分享给我

https://developers.weixin.qq.com/s/bz7aGimL72S2

这个问题是一闪而过,不是一直存在的,看来服务器的资源,也是没有锁这个图标的

@luoxin59420
Copy link
Author

@luoxin59420 复现不出你的问题,我这边使用是正常的。你看你能想办法在这个代码片段链接里面复现吗~,复现之后在重新分享给我

https://developers.weixin.qq.com/s/bz7aGimL72S2

没有加载会不会和这个有关系呢?
image

@luoxin59420
Copy link
Author

@luoxin59420 复现不出你的问题,我这边使用是正常的。你看你能想办法在这个代码片段链接里面复现吗~,复现之后在重新分享给我
https://developers.weixin.qq.com/s/bz7aGimL72S2

这个问题是一闪而过,不是一直存在的,看来服务器的资源,也是没有锁这个图标的
复现了啊
刷新后,会出现一个锁,然后再转变成服务器上的图标
image
image

@luoxin59420
Copy link
Author

@luoxin59420 复现不出你的问题,我这边使用是正常的。你看你能想办法在这个代码片段链接里面复现吗~,复现之后在重新分享给我
https://developers.weixin.qq.com/s/bz7aGimL72S2

这个问题是一闪而过,不是一直存在的,看来服务器的资源,也是没有锁这个图标的

issues.mp4

@anlyyao
Copy link
Collaborator

anlyyao commented Oct 22, 2024

@luoxin59420 从截图/录屏中看确实出现lock图标,但我这边无法直接复现。你可以把录屏中这段代码分享成代码片段链接给我吗?我这边先尝试复现

@luoxin59420
Copy link
Author

@luoxin59420 从截图/录屏中看确实出现lock图标,但我这边无法直接复现。你可以把录屏中这段代码分享成代码片段链接给我吗?我这边先尝试复现

好的
用下面这个demo:

@luoxin59420
Copy link
Author

@luoxin59420 从截图/录屏中看确实出现lock图标,但我这边无法直接复现。你可以把录屏中这段代码分享成代码片段链接给我吗?我这边先尝试复现

<t-icon name="{{ 'https://jp-iot-sit.oss-cn-shenzhen.aliyuncs.com/wx-mini/icon/' + '[email protected]' }}" size="48rpx" />

@anlyyao anlyyao added bug Something isn't working and removed question This is a question, not a bug labels Oct 23, 2024
@anlyyao
Copy link
Collaborator

anlyyao commented Oct 23, 2024

@luoxin59420 复现不出你的问题,我这边使用是正常的。你看你能想办法在这个代码片段链接里面复现吗~,复现之后在重新分享给我
https://developers.weixin.qq.com/s/bz7aGimL72S2

没有加载会不会和这个有关系呢? image

是的,使用网络地址时,偶发性出现图标的原因确实是因为刚好有个图标名称为“https”,已修复该问题,下个版本可带,感谢反馈~

@anlyyao anlyyao linked a pull request Oct 23, 2024 that will close this issue
16 tasks
@luoxin59420
Copy link
Author

@luoxin59420 复现不出你的问题,我这边使用是正常的。你看你能想办法在这个代码片段链接里面复现吗~,复现之后在重新分享给我
https://developers.weixin.qq.com/s/bz7aGimL72S2

没有加载会不会和这个有关系呢? image

是的,使用网络地址时,偶发性出现图标的原因确实是因为刚好有个图标名称为“https”,已修复该问题,下个版本可带,感谢反馈~

好的,不客气

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.

2 participants