分离template

This commit is contained in:
Harvey Zack committed 2018-11-28 12:15:33 +08:00
1 parent e96146b19f
commit 3fb41eedf7
39 files changed
+277 -256

No files matched your search

+3 -3
View File
@@ -12,18 +12,18 @@ export default class Layers {
}
add(item, callback) {
const { $layers } = this.art.refs;
const { $layers } = this.art.template;
component(this.art, this, $layers, item, callback, 'layer');
}
show() {
const { $layers } = this.art.refs;
const { $layers } = this.art.template;
setStyle($layers, 'display', 'block');
this.art.emit('layers:show', $layers);
}
hide() {
const { $layers } = this.art.refs;
const { $layers } = this.art.template;
setStyle($layers, 'display', 'none');
this.art.emit('layers:hide', $layers);
}