mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 05:41:20 -08:00
add theme
This commit is contained in:
1 parent
ca0c67499b
commit
e8e8f7e8e7
9 files changed
+66
-12
No files matched your search
@@ -4,6 +4,16 @@ export default class Layers {
|
||||
this.art = art;
|
||||
this.add = this.add.bind(this);
|
||||
this.art.option.layers.forEach(this.add);
|
||||
this.init();
|
||||
}
|
||||
|
||||
init() {
|
||||
const { refs, events: { proxy } } = this.art;
|
||||
proxy(refs.$layers, 'click', event => {
|
||||
if (event.path[0] === refs.$layers) {
|
||||
refs.$video.pause();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
add(option, callback) {
|
||||
|
||||
Reference in new issue
Block a user