mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 00:31:20 -08:00
update events.d.ts
This commit is contained in:
1 parent
90915652aa
commit
677c99aa38
5 files changed
+28
-28
No files matched your search
@@ -22,8 +22,8 @@ export default class Setting extends Component {
|
||||
|
||||
const {
|
||||
option,
|
||||
proxy,
|
||||
template: { $setting, $player },
|
||||
controls,
|
||||
template: { $setting },
|
||||
} = art;
|
||||
|
||||
this.name = 'setting';
|
||||
@@ -43,12 +43,10 @@ export default class Setting extends Component {
|
||||
}
|
||||
});
|
||||
|
||||
proxy($player, 'click', (event) => {
|
||||
if (
|
||||
this.show &&
|
||||
!includeFromEvent(event, art.controls.setting) &&
|
||||
!includeFromEvent(event, this.$parent)
|
||||
) {
|
||||
art.on('focus', (event) => {
|
||||
const isSetting = includeFromEvent(event, controls.setting);
|
||||
const isParent = includeFromEvent(event, this.$parent);
|
||||
if (this.show && !isSetting && !isParent) {
|
||||
this.show = false;
|
||||
this.render(this.option);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user