mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 06:31:20 -08:00
add cssPropertyMix
This commit is contained in:
1 parent
f013f8604e
commit
49e1ed15b8
12 files changed
+72
-49
No files matched your search
@@ -135,6 +135,14 @@ export default class Template {
|
||||
if (isMobile) {
|
||||
addClass(this.$player, 'art-mobile');
|
||||
}
|
||||
|
||||
if (option.theme) {
|
||||
option.cssVar['--art-theme'] = option.theme;
|
||||
}
|
||||
|
||||
for (const key in option.cssVar) {
|
||||
this.$player.style.setProperty(key, option.cssVar[key]);
|
||||
}
|
||||
}
|
||||
|
||||
mobile() {
|
||||
|
||||
Reference in new issue
Block a user