mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-14 08:26:16 -08:00
add cssVar
This commit is contained in:
1 parent
49e1ed15b8
commit
339034d30d
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -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);
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user