build all packages

This commit is contained in:
Harvey Zack committed 2019-06-12 15:24:34 +08:00
1 parent 6c2d5f62f6
commit cadfa4efe5
28 files changed
+412 -382

No files matched your search

+12 -9
View File
@@ -161,17 +161,20 @@ export default class Controls {
return component(this.art, this, parent, option, callback, 'control');
}
show() {
set show(value) {
const { $player } = this.art.template;
this.state = true;
$player.classList.add('artplayer-controls-show');
this.art.emit('controls:show');
if (value) {
this.state = true;
$player.classList.add('artplayer-controls-show');
this.art.emit('controls:show');
} else {
this.state = false;
$player.classList.remove('artplayer-controls-show');
this.art.emit('controls:hide');
}
}
hide() {
const { $player } = this.art.template;
this.state = false;
$player.classList.remove('artplayer-controls-show');
this.art.emit('controls:hide');
toggle() {
this.show = !this.state;
}
}