修改包管理

This commit is contained in:
Harvey Zack committed 2018-11-07 17:12:42 +08:00
1 parent c5c673ae79
commit 0aa018db6d
99 files changed
+70 -70

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
import icons from './icons';
import { append, setStyle } from './utils';
export default class Mask {
constructor(art) {
this.art = art;
const { option, refs: { $mask } } = art;
append($mask, option.play || icons.playBig);
}
show() {
const { $mask } = this.art.refs;
setStyle($mask, 'display', 'flex');
this.art.emit('mask:show', $mask);
}
hide() {
const { $mask } = this.art.refs;
setStyle($mask, 'display', 'none');
this.art.emit('mask:show', $mask);
}
}