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

[button] t-buttion设置loading属性后,加载图标不可见 #3482

Closed
xiguazhiPrince opened this issue Feb 10, 2025 · 3 comments
Closed
Labels
question This is a question, not a bug Skyline Skyline Render

Comments

@xiguazhiPrince
Copy link

tdesign-miniprogram 版本

"tdesign-miniprogram": "^1.8.3"

重现链接

https://developers.weixin.qq.com/s/2DsYFRml7uXm

重现步骤

开发工具:nightly 1.06.XXXXXXXX

项目运行:

  1. npm i

  2. 构建npm

  3. 随便进入二级页面,列表顶部有一个搜索按钮,点击后可以看到有样式变化,但是加载图标不可见

  style="width: 50%;"
        theme="primary"
        size="medium"
        bind:tap="onSearch"
        loading="{{loading}}"
      >
        搜索
      </t-button>```


### 期望结果

_No response_

### 实际结果

_No response_

### 基础库版本

3.7.7

### 补充说明

_No response_
Copy link
Contributor

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

@anlyyao
Copy link
Collaborator

anlyyao commented Feb 11, 2025

@xiguazhiPrince 因为 button 自带的 loading 主题类型 在skyline 下刚好不支持, 建议走 loadingProps 属性改用其他主题

Image Image

代码片段:https://developers.weixin.qq.com/s/sfF1ESm47sXy

@anlyyao anlyyao added question This is a question, not a bug Skyline Skyline Render labels Feb 11, 2025
@xiguazhiPrince
Copy link
Author

xiguazhiPrince commented Feb 11, 2025

@xiguazhiPrince 因为 button 自带的 loading 主题类型 在skyline 下刚好不支持, 建议走 loadingProps 属性改用其他主题

Image Image
代码片段:https://developers.weixin.qq.com/s/sfF1ESm47sXy
@anlyyao
感谢🥰是有效的,解决了我的问题。并且又学到东西了哈哈哈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is a question, not a bug Skyline Skyline Render
Projects
None yet
Development

No branches or pull requests

2 participants