hellof2e / quark-design

Browser-native component library, framework-agnostic, base on web components.(移动端 UI 组件库,无框架,即插即用。)
https://quark-ecosystem.github.io/quarkd-docs
MIT License
1.9k stars 189 forks source link

toast组件弹出时,切换页面toast不会马上关闭 #197

Closed Moonofweisheng closed 1 year ago

Moonofweisheng commented 1 year ago

可以在官方demo中复现,不知道有没有什么好的解决办法。

yoyo837 commented 1 year ago

设计如此吧?toast通常切换路由还要继续提示的. 如果是无限提示的开发人员要手动调用关闭, 通常都是普通提示, 3秒自动关闭. 一般场景是不需要随着路由页面销毁而销毁的.

yoyo837 commented 1 year ago

至于demo是不是我说的这个场景, 我没有去核对.

sanqi-med commented 1 year ago

可以在官方demo中复现,不知道有没有什么好的解决办法。

这是正常的设计哈,正如@yoyou837所解释的那样