压缩多余字符

This commit is contained in:
Harvey committed 2019-11-22 11:10:28 +08:00
1 parent 707df15b2d
commit 0c1c1273a6
47 files changed
+356 -382

No files matched your search

+2 -2
View File
@@ -9,7 +9,7 @@ export default class Notice {
show(msg, autoHide = true, time = 1000) {
const { $player, $noticeInner } = this.art.template;
this.state = true;
addClass($player, 'artplayer-notice-show');
addClass($player, 'art-notice-show');
$noticeInner.innerHTML = msg instanceof Error ? msg.message.trim() : msg;
clearTimeout(this.timer);
if (autoHide) {
@@ -23,7 +23,7 @@ export default class Notice {
hide() {
const { $player } = this.art.template;
this.state = false;
removeClass($player, 'artplayer-notice-show');
removeClass($player, 'art-notice-show');
this.art.emit('notice:hide');
}
}