build all packages

This commit is contained in:
Harvey committed 2019-12-09 17:34:55 +08:00
1 parent a8cbb56d93
commit 415a04a4a7
18 files changed
+38 -4392

No files matched your search

+1 -2
View File
@@ -5,7 +5,6 @@ export default class Component {
this.id = 0;
this.art = art;
this.add = this.add.bind(this);
this.name = this.constructor.name.toLowerCase();
}
get show() {
@@ -31,7 +30,7 @@ export default class Component {
add(getOption, callback) {
const option = typeof getOption === 'function' ? getOption(this.art) : getOption;
if (!this.$parent || option.disable) return;
if (!this.$parent || !this.name || option.disable) return;
this.id += 1;
const name = option.name || `${this.name}${this.id}`;
const $ref = document.createElement('div');