mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 12:11:20 -08:00
build all packages
This commit is contained in:
1 parent
a8cbb56d93
commit
415a04a4a7
18 files changed
+38
-4392
No files matched your search
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user