Update version to 5.2.1 in package.json and Artplayer class

This commit is contained in:
Harvey Zack committed 2024-10-20 14:21:52 +08:00
1 parent b949fedc06
commit d678378119
10 files changed
+75 -33

No files matched your search

+7 -11
View File
@@ -482,6 +482,10 @@ export default class Setting extends Component {
} else {
append($panel, $item);
}
if (item.mounted) {
item.mounted.call(this.art, item.$item, item);
}
}
render(option = this.option) {
@@ -491,8 +495,10 @@ export default class Setting extends Component {
inverseClass($panel, 'art-current');
} else {
const $panel = createElement('div');
addClass($panel, 'art-setting-panel');
this.cache.set(option, $panel);
addClass($panel, 'art-setting-panel');
append(this.$parent, $panel);
inverseClass($panel, 'art-current');
if (option[0]?.$parent) {
this.creatHeader(option[0]);
@@ -501,16 +507,6 @@ export default class Setting extends Component {
for (let index = 0; index < option.length; index++) {
this.creatItem(option[index]);
}
append(this.$parent, $panel);
inverseClass($panel, 'art-current');
for (let index = 0; index < option.length; index++) {
const item = option[index];
if (item.mounted) {
item.mounted.call(this.art, item.$item, item);
}
}
}
this.resize();
}