add cssVar

This commit is contained in:
Harvey Zack committed 2023-04-17 22:40:22 +08:00
1 parent 49e1ed15b8
commit 339034d30d
2 files changed
+4 -4

No files matched your search

@@ -1,9 +1,9 @@
import { def } from '../utils';
export default function cssPropertyMix(art) {
export default function cssVarMix(art) {
const { $player } = art.template;
def(art, 'cssProperty', {
def(art, 'cssVar', {
value(key, value) {
if (value) {
return $player.style.setProperty(key, value);
+2 -2
View File
@@ -24,7 +24,7 @@ import miniMix from './miniMix';
import loopMix from './loopMix';
import posterMix from './posterMix';
import autoHeightMix from './autoHeightMix';
import cssPropertyMix from './cssPropertyMix';
import cssVarMix from './cssVarMix';
import themeMix from './themeMix';
import titleMix from './titleMix';
import typeMix from './typeMix';
@@ -62,7 +62,7 @@ export default class Player {
loopMix(art);
posterMix(art);
autoHeightMix(art);
cssPropertyMix(art);
cssVarMix(art);
themeMix(art);
titleMix(art);
typeMix(art);