build all packages

This commit is contained in:
Harvey committed 2019-11-22 17:07:40 +08:00
1 parent 2fcd44e8e7
commit baaaa4c56c
29 files changed
+189 -203

No files matched your search

+3 -3
View File
@@ -8,7 +8,6 @@ export default class Notice {
show(msg, autoHide = true, time = 1000) {
const { $player, $noticeInner } = this.art.template;
addClass($player, 'art-notice-show');
$noticeInner.innerHTML = msg instanceof Error ? msg.message.trim() : msg;
clearTimeout(this.timer);
if (autoHide) {
@@ -16,12 +15,13 @@ export default class Notice {
this.hide();
}, time);
}
this.art.emit('notice:show', msg);
addClass($player, 'art-notice-show');
this.art.emit('notice:toggle', true);
}
hide() {
const { $player } = this.art.template;
removeClass($player, 'art-notice-show');
this.art.emit('notice:hide');
this.art.emit('notice:toggle', true);
}
}