tdesign-vue-next icon indicating copy to clipboard operation
tdesign-vue-next copied to clipboard

Button按钮loading属性增加可设定delay值

Open mustars opened this issue 1 year ago • 1 comments

这个功能解决了什么问题

延时显示loading,不会造成按钮闪烁。

你建议的方案是什么

和移动端一样可以设定:loadingProps="{ delay: 5000 }"

mustars avatar May 14 '24 07:05 mustars

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

github-actions[bot] avatar May 14 '24 07:05 github-actions[bot]

loading 组件自身的 delay,在非 slot 模式,也就是 loading 作为独立元素时,delay并不生效,不知道是 feature 还是 bug,文档示例就可以看到。 button 组件使用的是独立模式的 loading,所以 delay 也是不生效的。 image

novlan1 avatar May 25 '24 03:05 novlan1

loading 组件自身的 delay,在非 slot 模式,也就是 loading 作为独立元素时,delay并不生效,不知道是 feature 还是 bug,文档示例就可以看到。 button 组件使用的是独立模式的 loading,所以 delay 也是不生效的。 image

这可能得作为另一个问题来处理了

uyarn avatar May 25 '24 15:05 uyarn