mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-16 17:46:17 -08:00
调整整体样式
This commit is contained in:
1 parent
487e865017
commit
fa585e536a
49 files changed
+984
-322
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user