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
@@ -7,17 +7,20 @@ export default class Loading {
append($loading, art.icons.loading);
}
show() {
set show(value) {
const { $player } = this.art.template;
this.state = true;
$player.classList.add('artplayer-loading-show');
this.art.emit('loading:show');
if (value) {
this.state = true;
$player.classList.add('artplayer-loading-show');
this.art.emit('loading:show');
} else {
this.state = false;
$player.classList.remove('artplayer-loading-show');
this.art.emit('loading:hide');
}
}
hide() {
const { $player } = this.art.template;
this.state = false;
$player.classList.remove('artplayer-loading-show');
this.art.emit('loading:hide');
toggle() {
this.show = !this.state;
}
}