mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 22:01:20 -08:00
bugfix
This commit is contained in:
1 parent
d3d1c83eb8
commit
98f0e80a33
8 files changed
+21
-21
No files matched your search
@@ -11,12 +11,12 @@ export default function aspectRatio(menuOption) {
|
||||
<span data-ratio="4:3">4:3</span>
|
||||
<span data-ratio="16:9">16:9</span>
|
||||
`,
|
||||
click: event => {
|
||||
click: (contextmenu, event) => {
|
||||
const { target } = event;
|
||||
const { ratio } = target.dataset;
|
||||
if (ratio) {
|
||||
player.aspectRatio = ratio;
|
||||
art.contextmenu.show = false;
|
||||
contextmenu.show = false;
|
||||
}
|
||||
},
|
||||
mounted: $menu => {
|
||||
|
||||
@@ -2,8 +2,8 @@ export default function close(menuOption) {
|
||||
return art => ({
|
||||
...menuOption,
|
||||
html: art.i18n.get('Close'),
|
||||
click: () => {
|
||||
art.contextmenu.show = false;
|
||||
click: contextmenu => {
|
||||
contextmenu.show = false;
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -2,9 +2,9 @@ export default function info(menuOption) {
|
||||
return art => ({
|
||||
...menuOption,
|
||||
html: art.i18n.get('Video info'),
|
||||
click: () => {
|
||||
click: contextmenu => {
|
||||
art.info.show = true;
|
||||
art.contextmenu.show = false;
|
||||
contextmenu.show = false;
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -14,12 +14,12 @@ export default function playbackRate(menuOption) {
|
||||
<span data-rate="1.5">1.5</span>
|
||||
<span data-rate="2.0">2.0</span>
|
||||
`,
|
||||
click: event => {
|
||||
click: (contextmenu, event) => {
|
||||
const { target } = event;
|
||||
const { rate } = target.dataset;
|
||||
if (rate) {
|
||||
player.playbackRate = Number(rate);
|
||||
art.contextmenu.show = false;
|
||||
contextmenu.show = false;
|
||||
}
|
||||
},
|
||||
mounted: $menu => {
|
||||
|
||||
Reference in new issue
Block a user