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

🐛 [Bug]: Toast 全局通知应如 Vue & React DevUI 单独操作 #293

Open
kwongtn opened this issue Dec 18, 2022 · 2 comments
Open

🐛 [Bug]: Toast 全局通知应如 Vue & React DevUI 单独操作 #293

kwongtn opened this issue Dec 18, 2022 · 2 comments

Comments

@kwongtn
Copy link
Contributor

kwongtn commented Dec 18, 2022

Version

latest

Angular Version

14

Link to minimal reproduction

https://devui.design/components/zh-cn/toast/demo#basic-usage

Step to reproduce

连续按多下任何全局通知。

What is expected

应参考 https://vue-devui.github.io/components/notification/ 的模式。

  1. 如有新全局通知,应在卡片下增加,而不是删掉原本的卡片后重新构造。
  2. 若卡片被关掉了,下方卡片应该往上移动,替代上方卡片的位置。

What is actually happening

No response

Any additional comments (optional)

No response

@Simplelegant
Copy link
Collaborator

Simplelegant commented Jan 12, 2023

可以参考这个demo每个消息使用单独的超时时间来实现你想要的交互 https://devui.design/components/zh-cn/toast/demo#style

@kwongtn
Copy link
Contributor Author

kwongtn commented Jan 12, 2023

可以参考这个demo每个消息使用单独的超时时间来实现你想要的交互 https://devui.design/components/zh-cn/toast/demo#style

明白,但是目前的实现有些问题:

  • 若制造新卡片,旧的将被马上关掉
  • 制作新卡片需要另外弄个 array 来记录以及 deconstruct 卡片
  • 若使用单独时间,当一些较上的卡片被关掉后,将残留一个洞,不好看

@kwongtn kwongtn changed the title 🐛 [Bug]: Toast 全局通知应如 Vue & React DevUI 单独操作 (若标题不适合麻烦提出更正,谢谢) 🐛 [Bug]: Toast 全局通知应如 Vue & React DevUI 单独操作 Feb 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants