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

Tooltip 会增加多实例共存么,连续调用Toast.show,所有content都显示在页面上,类似于Ant Design的Message #6420

Closed
mxmxixixi opened this issue Nov 1, 2023 · 4 comments
Labels

Comments

@mxmxixixi
Copy link

Version of antd-mobile

No response

What is this feature about?

Tooltip 会增加多实例共存么,连续调用Toast.show,所有content都显示在页面上,类似于Ant Design的Message

@zombieJ
Copy link
Member

zombieJ commented Nov 1, 2023

Toast 设计上是单例,只是没有去阻止。可以加,不过感觉同时出多个并不是设计的初衷。

@mxmxixixi
Copy link
Author

mxmxixixi commented Nov 2, 2023

不过现在连续调用Toast.show,页面只出现第二次调用的内容,我想要
A0E4FD8F-CF53-4158-8B62-50917B5953AB
这种效果,怎么写呢

@1587315093
Copy link
Contributor

不过现在连续调用Toast.show,页面只出现第二次调用的内容,我想要 A0E4FD8F-CF53-4158-8B62-50917B5953AB 这种效果,怎么写呢

感觉移动端很少这种一直堆信息的交互,要么就是把上一条清掉那种

@miracles1919
Copy link
Contributor

用 Modal 或者 CenterPopup 自己封装下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants