mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-10 12:46:15 -08:00
20 lines
415 B
JavaScript
20 lines
415 B
JavaScript
import Component from './utils/component';
|
|
|
|
export default class Layer extends Component {
|
|
constructor(art) {
|
|
super(art);
|
|
|
|
const {
|
|
option,
|
|
template: { $layer },
|
|
} = art;
|
|
|
|
this.name = 'layer';
|
|
this.$parent = $layer;
|
|
|
|
for (let index = 0; index < option.layers.length; index++) {
|
|
this.add(option.layers[index]);
|
|
}
|
|
}
|
|
}
|