feat: add theme vars type (#12018)

* feat(Barrage): add theme vars type

* feat(FloatingPanel): add theme vars type

* feat(FloatingBubble): add theme vars type

* feat(Barrage): add theme vars type

* feat(FloatingPanel): add theme vars type

* feat(FloatingBubble): add theme vars type

* feat(RollingText): add theme vars type

* feat(Signature): add theme vars type

* feat(Watermark): add theme vars type
This commit is contained in:
ShuGang Zhou
2023-06-24 10:04:53 +08:00
committed by GitHub
parent 00da05be47
commit 12879ae893
13 changed files with 55 additions and 2 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ export default Barrage;
export { barrageProps } from './Barrage';
export type { BarrageProps, BarrageItem } from './Barrage';
export type { BarrageInstance } from './types';
export type { BarrageInstance, BarrageThemeVars } from './types';
declare module 'vue' {
export interface GlobalComponents {
+7
View File
@@ -10,3 +10,10 @@ export type BarrageInstance = ComponentPublicInstance<
BarrageProps,
BarrageExpose
>;
export type BarrageThemeVars = {
barrageFontSize?: string;
barrageSpace?: string;
barrageFont?: string;
barrageColor?: string;
};