mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-12 23:36:15 -08:00
13 lines
364 B
JavaScript
13 lines
364 B
JavaScript
import { append } from './utils';
|
|
import Component from './utils/component';
|
|
|
|
export default class Mask extends Component {
|
|
constructor(art) {
|
|
super(art);
|
|
this.name = 'mask';
|
|
const { template, icons, events } = art;
|
|
append(template.$state, icons.state);
|
|
events.proxy(template.$state, 'click', () => art.play());
|
|
}
|
|
}
|