mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 18:41:20 -08:00
update setting
This commit is contained in:
1 parent
7976cc42fe
commit
0616d944c5
7 files changed
+100
-27
No files matched your search
@@ -134,6 +134,9 @@ export default class Setting extends Component {
|
||||
const $desc = document.createElement('div');
|
||||
addClass($desc, 'art-setting-item-right-desc');
|
||||
append($right, $desc);
|
||||
if (item.desc) {
|
||||
$desc.innerText = item.desc;
|
||||
}
|
||||
|
||||
const $iconRight = document.createElement('div');
|
||||
addClass($iconRight, 'art-setting-item-right-icon');
|
||||
@@ -190,7 +193,7 @@ export default class Setting extends Component {
|
||||
setStyle(this.$parent, 'width', `${$panel.dataset.width}px`);
|
||||
|
||||
if (option[0] && option[0]._parentItem && option[0]._parentItem.mounted) {
|
||||
option[0]._parentItem.mounted.call(this.art, $panel);
|
||||
option[0]._parentItem.mounted.call(this.art, $panel, option[0]._parentItem);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user