mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 08:01:20 -08:00
add more event
This commit is contained in:
1 parent
b2159e7d4d
commit
506b34522b
14 files changed
+202
-77
No files matched your search
+7
-2
@@ -29,14 +29,19 @@ export default class Layers {
|
||||
append($layer, option.html);
|
||||
setStyle($layer, option.style || {});
|
||||
refs.$layers.appendChild($layer);
|
||||
this.art.emit('layers:add', $layer);
|
||||
callback && callback($layer);
|
||||
}
|
||||
|
||||
show() {
|
||||
this.art.refs.$layers.style.display = 'block';
|
||||
const { refs: { $layers } } = this.art;
|
||||
$layers.style.display = 'block';
|
||||
this.art.emit('layers:show', $layers);
|
||||
}
|
||||
|
||||
hide() {
|
||||
this.art.refs.$layers.style.display = 'none';
|
||||
const { refs: { $layers } } = this.art;
|
||||
$layers.style.display = 'none';
|
||||
this.art.emit('layers:hide', $layers);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user