压缩多余字符

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 -8
View File
@@ -172,17 +172,11 @@ export default class Controls {
set show(value) {
const { $player } = this.art.template;
if (value) {
this.state = true;
addClass($player, 'artplayer-controls-show');
addClass($player, 'art-controls-show');
this.art.emit('controls:show');
} else {
this.state = false;
removeClass($player, 'artplayer-controls-show');
removeClass($player, 'art-controls-show');
this.art.emit('controls:hide');
}
}
toggle() {
this.show = !this.state;
}
}