调整整体样式

This commit is contained in:
Harvey Zack committed 2019-04-30 15:10:30 +08:00
1 parent 487e865017
commit fa585e536a
49 files changed
+984 -322

No files matched your search

+6 -7
View File
@@ -1,4 +1,3 @@
import { setStyle } from '../utils';
import component from '../utils/component';
import flip from './flip';
@@ -46,17 +45,17 @@ export default class Setting {
}
show() {
const { $setting } = this.art.template;
setStyle($setting, 'display', 'flex');
const { $player } = this.art.template;
this.state = true;
this.art.emit('setting:show', $setting);
$player.classList.add('artplayer-setting-show');
this.art.emit('setting:show');
}
hide() {
const { $setting } = this.art.template;
setStyle($setting, 'display', 'none');
const { $player } = this.art.template;
this.state = false;
this.art.emit('setting:hide', $setting);
$player.classList.remove('artplayer-setting-show');
this.art.emit('setting:hide');
}
toggle() {