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:
@@ -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 {
|
||||
|
||||
@@ -10,3 +10,10 @@ export type BarrageInstance = ComponentPublicInstance<
|
||||
BarrageProps,
|
||||
BarrageExpose
|
||||
>;
|
||||
|
||||
export type BarrageThemeVars = {
|
||||
barrageFontSize?: string;
|
||||
barrageSpace?: string;
|
||||
barrageFont?: string;
|
||||
barrageColor?: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user