mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 08:51:20 -08:00
移除多余文件
This commit is contained in:
1 parent
c5c4cf73eb
commit
74bc297e8f
39 files changed
+76
-16934
No files matched your search
@@ -23,7 +23,6 @@ import playingMix from './playingMix';
|
||||
import autoSizeMix from './autoSizeMix';
|
||||
import rectMix from './rectMix';
|
||||
import flipMix from './flipMix';
|
||||
import lightMix from './lightMix';
|
||||
import miniMix from './miniMix';
|
||||
import loopMin from './loopMin';
|
||||
import rotateMix from './rotateMix';
|
||||
@@ -57,7 +56,6 @@ export default class Player {
|
||||
autoSizeMix(art, this);
|
||||
rectMix(art, this);
|
||||
flipMix(art, this);
|
||||
lightMix(art, this);
|
||||
miniMix(art, this);
|
||||
loopMin(art, this);
|
||||
rotateMix(art, this);
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
import { def, getStyle, setStyle } from '../utils';
|
||||
|
||||
export default function lightMix(art, player) {
|
||||
const { $undercover } = art.template;
|
||||
|
||||
def(player, 'light', {
|
||||
get() {
|
||||
return getStyle($undercover, 'display', false) !== 'none';
|
||||
},
|
||||
set(value) {
|
||||
setStyle($undercover, 'display', value ? 'block' : 'none');
|
||||
art.emit('light', value);
|
||||
},
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user