mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 14:41:20 -08:00
移除多余文件
This commit is contained in:
1 parent
c5c4cf73eb
commit
74bc297e8f
39 files changed
+76
-16934
No files matched your search
@@ -4,7 +4,6 @@ import playbackRate from './playbackRate';
|
||||
import aspectRatio from './aspectRatio';
|
||||
import info from './info';
|
||||
import version from './version';
|
||||
import light from './light';
|
||||
import close from './close';
|
||||
|
||||
export default class Contextmenu extends Component {
|
||||
@@ -54,14 +53,6 @@ export default class Contextmenu extends Component {
|
||||
}),
|
||||
);
|
||||
|
||||
this.add(
|
||||
light({
|
||||
disable: !option.light,
|
||||
name: 'light',
|
||||
index: 50,
|
||||
}),
|
||||
);
|
||||
|
||||
this.add(
|
||||
close({
|
||||
disable: false,
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
export default function light(option) {
|
||||
return art => {
|
||||
const { i18n, player } = art;
|
||||
return {
|
||||
...option,
|
||||
html: i18n.get('Light Off'),
|
||||
click: contextmenu => {
|
||||
player.light = !player.light;
|
||||
contextmenu.show = false;
|
||||
},
|
||||
mounted: $menu => {
|
||||
art.on('light', value => {
|
||||
$menu.innerText = i18n.get(value ? 'Light On' : 'Light Off');
|
||||
});
|
||||
},
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user