分离菜单函数

This commit is contained in:
Harvey Zack committed 2018-11-07 14:30:28 +08:00
1 parent faa0a15148
commit 21a5085b55
9 files changed
+92 -85

No files matched your search

+1 -1
View File
@@ -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);