mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-29 02:51:20 -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';
|
import { def } from '../utils';
|
||||||
|
|
||||||
export default function cssPropertyMix(art) {
|
export default function cssVarMix(art) {
|
||||||
const { $player } = art.template;
|
const { $player } = art.template;
|
||||||
|
|
||||||
def(art, 'cssProperty', {
|
def(art, 'cssVar', {
|
||||||
value(key, value) {
|
value(key, value) {
|
||||||
if (value) {
|
if (value) {
|
||||||
return $player.style.setProperty(key, value);
|
return $player.style.setProperty(key, value);
|
||||||
@@ -24,7 +24,7 @@ import miniMix from './miniMix';
|
|||||||
import loopMix from './loopMix';
|
import loopMix from './loopMix';
|
||||||
import posterMix from './posterMix';
|
import posterMix from './posterMix';
|
||||||
import autoHeightMix from './autoHeightMix';
|
import autoHeightMix from './autoHeightMix';
|
||||||
import cssPropertyMix from './cssPropertyMix';
|
import cssVarMix from './cssVarMix';
|
||||||
import themeMix from './themeMix';
|
import themeMix from './themeMix';
|
||||||
import titleMix from './titleMix';
|
import titleMix from './titleMix';
|
||||||
import typeMix from './typeMix';
|
import typeMix from './typeMix';
|
||||||
@@ -62,7 +62,7 @@ export default class Player {
|
|||||||
loopMix(art);
|
loopMix(art);
|
||||||
posterMix(art);
|
posterMix(art);
|
||||||
autoHeightMix(art);
|
autoHeightMix(art);
|
||||||
cssPropertyMix(art);
|
cssVarMix(art);
|
||||||
themeMix(art);
|
themeMix(art);
|
||||||
titleMix(art);
|
titleMix(art);
|
||||||
typeMix(art);
|
typeMix(art);
|
||||||
|
|||||||
Reference in new issue
Block a user