This commit is contained in:
pangxie1991 2017-01-18 19:49:24 +08:00
parent f6cfa74a21
commit adca528e99

6
dist/toast/index.js vendored
View File

@ -12,9 +12,13 @@ module.exports = {
zuiToast
});
zuiToast.timer = setTimeout(() => {
var timer = setTimeout(() => {
this.clearZuiToast();
}, timeout || 3000);
this.setData({
'zuiToast.timer': timer
});
},
clearZuiToast() {