mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 00:31:20 -08:00
add mask
This commit is contained in:
1 parent
32478ecb14
commit
ca0c67499b
12 files changed
+219
-15
No files matched your search
+20
@@ -0,0 +1,20 @@
|
||||
import Icons from './icons';
|
||||
|
||||
export default class Mask {
|
||||
constructor(art) {
|
||||
this.art = art;
|
||||
this.init();
|
||||
}
|
||||
|
||||
init() {
|
||||
this.art.refs.$mask.appendChild(Icons.play);
|
||||
}
|
||||
|
||||
show() {
|
||||
this.art.refs.$mask.style.display = 'flex';
|
||||
}
|
||||
|
||||
hide() {
|
||||
this.art.refs.$mask.style.display = 'none';
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user