saltui icon indicating copy to clipboard operation
saltui copied to clipboard

v4.3.0 Toast组件的show方法onDidHide属性无效

Open wisetc opened this issue 6 years ago • 2 comments

这是一个

  • [x] 错误报告
  • [ ] 功能需求

SaltUI 版本

[email protected]

浏览器、操作系统等环境信息

Chrome, Mac OS

复现步骤

https://codepen.io/anon/pen/ZmNxVv?editors=0010

代码片段

Toast.show({
            content: `you rendered ${this.times} times.`,
            onDidHide: () => {
                alert('how about go dinner with me?');
                this.times++;
            }
        });

wisetc avatar Dec 05 '18 04:12 wisetc

遇到同样的问题,saltui升级后就有问题了,只是一直没人解决啊

feitiana03120 avatar Apr 08 '19 01:04 feitiana03120

遇到同样的问题,saltui升级后就有问题了,只是一直没人解决啊

封装方法中,setTimeout duration

wisetc avatar Apr 09 '19 01:04 wisetc