mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 08:01:20 -08:00
add normalSizeMix
This commit is contained in:
1 parent
227268ecda
commit
facf8876b5
4 files changed
+36
-35
No files matched your search
@@ -26,7 +26,7 @@ import posterMix from './posterMix';
|
||||
import autoHeightMix from './autoHeightMix';
|
||||
import themeMix from './themeMix';
|
||||
import titleMix from './titleMix';
|
||||
import exclusiveMix from './exclusiveMix';
|
||||
import normalSizeMix from './normalSizeMix';
|
||||
import subtitleOffsetMix from './subtitleOffsetMix';
|
||||
import optionInit from './optionInit';
|
||||
import eventInit from './eventInit';
|
||||
@@ -61,7 +61,7 @@ export default class Player {
|
||||
autoHeightMix(art);
|
||||
themeMix(art);
|
||||
titleMix(art);
|
||||
exclusiveMix(art);
|
||||
normalSizeMix(art);
|
||||
subtitleOffsetMix(art);
|
||||
eventInit(art);
|
||||
optionInit(art);
|
||||
|
||||
+2
-1
@@ -1,7 +1,8 @@
|
||||
import { def } from '../utils';
|
||||
|
||||
export default function exclusiveMix(art) {
|
||||
export default function normalSizeMix(art) {
|
||||
const sizeProps = ['mini', 'pip', 'fullscreen', 'fullscreenWeb'];
|
||||
|
||||
def(art, 'normalSize', {
|
||||
get() {
|
||||
return sizeProps.every((name) => !art[name]);
|
||||
Reference in new issue
Block a user