We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents efda63a + a367e69 commit e6a3e9cCopy full SHA for e6a3e9c
lib/index.js
@@ -50,6 +50,10 @@ Toast.install = function (Vue, options) {
50
51
setTimeout(function () {
52
toastVM.show = showToast = false;
53
+ var elements = document.getElementsByClassName('lx-load-mark');
54
+ for (var i = 0; i < elements.length; i++) { // 单页面加载不同的页面时会生成多个 load mark,隐藏的时候全部移除
55
+ elements[i].remove()
56
+ }
57
}, opt.duration)
58
};
59
['bottom', 'center', 'top'].forEach(function (type) {
@@ -88,4 +92,4 @@ Toast.install = function (Vue, options) {
88
92
}
89
93
});
90
94
91
-module.exports = Toast;
95
+module.exports = Toast;
0 commit comments