mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-14 00:06:17 -08:00
add more control
This commit is contained in:
1 parent
757fbd6596
commit
dfd71c06b6
14 files changed
+230
-77
No files matched your search
+2
-5
@@ -10,14 +10,11 @@ export default class Mask {
|
||||
init() {
|
||||
const {
|
||||
player,
|
||||
option,
|
||||
refs,
|
||||
events: { proxy }
|
||||
} = this.art;
|
||||
|
||||
const playClone = icons.play.cloneNode(true);
|
||||
playClone.style.backgroundColor = option.theme;
|
||||
append(refs.$mask, playClone);
|
||||
append(refs.$mask, icons.playBig);
|
||||
|
||||
proxy(refs.$mask, 'click', () => {
|
||||
player.play();
|
||||
@@ -27,7 +24,7 @@ export default class Mask {
|
||||
|
||||
show() {
|
||||
const { $mask } = this.art.refs;
|
||||
$mask.style.display = 'flex';
|
||||
$mask.style.display = 'block';
|
||||
this.art.emit('mask:show', $mask);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user