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

toast 用于操作错误时的提示场景该如何修改样式? #327

Open
weizuichunsun opened this issue Sep 14, 2020 · 4 comments
Open

Comments

@weizuichunsun
Copy link

toast 用于操作错误时的提示场景该如何修改样式?

image

  weui.toast('操作成功', {
            duration: 30000,
            // className: 'weui-icon_toast weui-icon-success-no-circle',
            icon: "none",
            callback: function() {
              console.log('close')
            }
          });
@liquehuo
Copy link

用那个 Toptips 吧 显示错误信息。toast 一般来显示成功信息的,文档上说了的,而且 错误信息一般比较多,这个也显示不完全!!

@jinmingpang
Copy link

可以提交一个MR把这个问题修复一下。WeUi 都有 Toast 不同图标,没理由 WeUiJs 里不实现。 @liquehuo 这个理由太牵强了。

看了下源码就是没有提供这个 Icon 配置的参数,其实加个参数就解决了。

@ziqiming
Copy link

什么时候能支持图标

@ziqiming
Copy link

提示成功用 alert不行吗?

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

4 participants