add normalSizeMix

This commit is contained in:
Harvey committed 2022-04-29 17:51:46 +08:00
1 parent 227268ecda
commit facf8876b5
4 files changed
+36 -35

No files matched your search

+2 -2
View File
@@ -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);
@@ -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]);