add theme

This commit is contained in:
Harvey Zack committed 2018-10-16 13:15:54 +08:00
1 parent ca0c67499b
commit e8e8f7e8e7
9 files changed
+66 -12

No files matched your search

+10
View File
@@ -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) {