mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 01:21:20 -08:00
add CssVar
This commit is contained in:
1 parent
c4252b21b5
commit
f013f8604e
7 files changed
+15
-3
No files matched your search
@@ -192,6 +192,7 @@ export default class Artplayer extends Emitter {
|
||||
},
|
||||
i18n: {},
|
||||
icons: {},
|
||||
cssVar: {},
|
||||
customType: {},
|
||||
lang: navigator.language.toLowerCase(),
|
||||
};
|
||||
|
||||
@@ -118,5 +118,6 @@ export default {
|
||||
moreVideoAttr: o,
|
||||
i18n: o,
|
||||
icons: o,
|
||||
cssVar: o,
|
||||
customType: o,
|
||||
};
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
export type CssVar = {
|
||||
//
|
||||
};
|
||||
Vendored
+1
-2
@@ -1,5 +1,4 @@
|
||||
import { AspectRatio, Flip, PlaybackRate } from './player';
|
||||
import { Selector } from './component';
|
||||
import { AspectRatio, Flip } from './player';
|
||||
|
||||
export type Events = {
|
||||
'video:canplay': [event: Event];
|
||||
|
||||
Vendored
+6
@@ -2,6 +2,7 @@ import { Subtitle } from './subtitle';
|
||||
import { Setting } from './setting';
|
||||
import { Icons } from './icons';
|
||||
import { I18n } from './i18n';
|
||||
import { CssVar } from './cssVar';
|
||||
import { ComponentOption } from './component';
|
||||
import Artplayer = require('./artplayer');
|
||||
|
||||
@@ -302,6 +303,11 @@ export type Option = {
|
||||
[key in keyof Icons]?: HTMLElement | string;
|
||||
};
|
||||
|
||||
/**
|
||||
* Custom css variables
|
||||
*/
|
||||
cssVar?: CssVar;
|
||||
|
||||
/**
|
||||
* Custom video type function
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user