add art.type

This commit is contained in:
Harvey committed 2022-10-21 11:29:25 +08:00
1 parent 31a2a29871
commit f0e856093e
53 files changed
+226 -146

No files matched your search

+2
View File
@@ -26,6 +26,7 @@ import posterMix from './posterMix';
import autoHeightMix from './autoHeightMix';
import themeMix from './themeMix';
import titleMix from './titleMix';
import typeMix from './typeMix';
import normalSizeMix from './normalSizeMix';
import subtitleOffsetMix from './subtitleOffsetMix';
import airplayMix from './airplayMix';
@@ -62,6 +63,7 @@ export default class Player {
autoHeightMix(art);
themeMix(art);
titleMix(art);
typeMix(art);
normalSizeMix(art);
subtitleOffsetMix(art);
airplayMix(art);
+12
View File
@@ -0,0 +1,12 @@
import { def } from '../utils';
export default function typeMix(art) {
def(art, 'type', {
get() {
return art.option.type;
},
set(type) {
art.option.type = type;
},
});
}