mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-21 04:31:20 -08:00
add loading
This commit is contained in:
1 parent
e319afd422
commit
7cdf9f69e6
14 files changed
+329
-6
No files matched your search
+2
-2
@@ -6,7 +6,7 @@ export default class Layers {
|
||||
this.art.option.layers.forEach(this.add);
|
||||
}
|
||||
|
||||
add(option) {
|
||||
add(option, callback) {
|
||||
const { refs } = this.art;
|
||||
id++;
|
||||
|
||||
@@ -21,6 +21,6 @@ export default class Layers {
|
||||
`);
|
||||
|
||||
const $layer = refs.$layers.querySelector(`[data-art-layer-id="${id}"]`);
|
||||
option.callback && option.callback($layer);
|
||||
callback && callback($layer);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user