mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-16 09:36:16 -08:00
分离菜单函数
This commit is contained in:
1 parent
faa0a15148
commit
21a5085b55
9 files changed
+92
-85
No files matched your search
+1
-1
@@ -12,7 +12,7 @@ export default class Layers {
|
||||
const { refs: { $layers } } = this.art;
|
||||
id++;
|
||||
const $layer = document.createElement('div');
|
||||
$layer.setAttribute('data-art-layer-id', id);
|
||||
$layer.dataset.artLayerIndex = option.index || id;
|
||||
$layer.setAttribute('class', `art-layer art-layer-${option.name || id}`);
|
||||
setStyle($layer, 'z-index', option.index || id);
|
||||
append($layer, option.html);
|
||||
|
||||
Reference in new issue
Block a user