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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 55 additions and 2 deletions

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 {

View File

@ -10,3 +10,10 @@ export type BarrageInstance = ComponentPublicInstance<
BarrageProps,
BarrageExpose
>;
export type BarrageThemeVars = {
barrageFontSize?: string;
barrageSpace?: string;
barrageFont?: string;
barrageColor?: string;
};

View File

@ -6,6 +6,7 @@ export type ConfigProviderThemeVars =
import('../address-edit').AddressEditThemeVars &
import('../address-list').AddressListThemeVars &
import('../badge').BadgeThemeVars &
import('../barrage').BarrageThemeVars &
import('../button').ButtonThemeVars &
import('../calendar').CalendarThemeVars &
import('../card').CardThemeVars &
@ -28,6 +29,8 @@ export type ConfigProviderThemeVars =
import('../dropdown-menu').DropdownMenuThemeVars &
import('../empty').EmptyThemeVars &
import('../field').FieldThemeVars &
import('../floating-bubble').FloatingBubbleThemeVars &
import('../floating-panel').FloatingPanelThemeVars &
import('../grid-item').GridItemThemeVars &
import('../image').ImageThemeVars &
import('../image-preview').ImagePreviewThemeVars &
@ -50,10 +53,12 @@ export type ConfigProviderThemeVars =
import('../pull-refresh').PullRefreshThemeVars &
import('../radio').RadioThemeVars &
import('../rate').RateThemeVars &
import('../rolling-text').RollingTextThemeVars &
import('../search').SearchThemeVars &
import('../share-sheet').ShareSheetThemeVars &
import('../sidebar').SidebarThemeVars &
import('../sidebar-item').SidebarItemThemeVars &
import('../signature').SignatureThemeVars &
import('../skeleton').SkeletonThemeVars &
import('../slider').SliderThemeVars &
import('../step').StepThemeVars &
@ -69,4 +74,5 @@ export type ConfigProviderThemeVars =
import('../tag').TagThemeVars &
import('../toast').ToastThemeVars &
import('../tree-select').TreeSelectThemeVars &
import('../uploader').UploaderThemeVars;
import('../uploader').UploaderThemeVars &
import('../watermark').WatermarkThemeVars;

View File

@ -11,6 +11,7 @@ export type {
FloatingBubbleMagnetic,
FloatingBubbleOffset,
} from './FloatingBubble';
export type { FloatingBubbleThemeVars } from './types';
declare module 'vue' {
export interface GlobalComponents {

View File

@ -0,0 +1,8 @@
export type FloatingBubbleThemeVars = {
floatingBubbleSize?: string;
floatingBubbleInitialGap?: string;
floatingBubbleIconSize?: string;
floatingBubbleBackground: string;
floatingBubbleColor?: string;
floatingBubbleZIndex?: number | string;
};

View File

@ -5,6 +5,7 @@ export const FloatingPanel = withInstall(_FloatingPanel);
export default FloatingPanel;
export { floatingPanelProps } from './FloatingPanel';
export type { FloatingPanelProps } from './FloatingPanel';
export type { FloatingPanelThemeVars } from './types';
declare module 'vue' {
export interface GlobalComponents {

View File

@ -0,0 +1,9 @@
export type FloatingPanelThemeVars = {
floatingPanelBorderRadius?: string;
floatingPanelHeaderHeight?: string;
floatingPanelZIndex?: number | string;
floatingPanelBackground?: string;
floatingPanelBarWidth?: string;
floatingPanelBarHeight?: string;
floatingPanelBarColor?: string;
};

View File

@ -9,6 +9,7 @@ export type {
RollingTextDirection,
RollingTextInstance,
RollingTextStopOrder,
RollingTextThemeVars,
} from './types';
declare module 'vue' {

View File

@ -13,3 +13,12 @@ export type RollingTextInstance = ComponentPublicInstance<
RollingTextProps,
RollingTextExpose
>;
export type RollingTextThemeVars = {
rollingTextBackground?: string;
rollingTextColor?: string;
rollingTextFontSize?: string;
rollingTextGap?: string;
rollingTextItemWidth?: string;
rollingTextItemBorderRadius?: string;
};

View File

@ -4,6 +4,7 @@ import _Signature from './Signature';
export const Signature = withInstall(_Signature);
export default Signature;
export type { SignatureProps } from './Signature';
export type { SignatureThemeVars } from './types';
declare module 'vue' {
export interface GlobalComponents {

View File

@ -0,0 +1,6 @@
export type SignatureThemeVars = {
signaturePadding?: string;
signatureContentHeight?: string;
signatureContentBackground?: string;
signatureContentBorder?: string;
};

View File

@ -5,6 +5,7 @@ export const Watermark = withInstall(_Watermark);
export default Watermark;
export { watermarkProps } from './Watermark';
export type { WatermarkProps } from './Watermark';
export type { WatermarkThemeVars } from './types';
declare module 'vue' {
export interface GlobalComponents {

View File

@ -0,0 +1,3 @@
export type WatermarkThemeVars = {
watermarkZIndex?: number | string;
};