UNPKG

1.55 kBTypeScriptView Raw
1import type { ButtonHTMLAttributes } from 'vue';
2export type ButtonType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
3export type ButtonSize = 'large' | 'normal' | 'small' | 'mini';
4export type ButtonNativeType = NonNullable<ButtonHTMLAttributes['type']>;
5export type ButtonIconPosition = 'left' | 'right';
6export type ButtonThemeVars = {
7 buttonMiniHeight?: string;
8 buttonMiniPadding?: string;
9 buttonMiniFontSize?: string;
10 buttonSmallHeight?: string;
11 buttonSmallPadding?: string;
12 buttonSmallFontSize?: string;
13 buttonNormalPadding?: string;
14 buttonNormalFontSize?: string;
15 buttonLargeHeight?: string;
16 buttonDefaultHeight?: string;
17 buttonDefaultLineHeight?: number | string;
18 buttonDefaultFontSize?: string;
19 buttonDefaultColor?: string;
20 buttonDefaultBackground?: string;
21 buttonDefaultBorderColor?: string;
22 buttonPrimaryColor?: string;
23 buttonPrimaryBackground?: string;
24 buttonPrimaryBorderColor?: string;
25 buttonSuccessColor?: string;
26 buttonSuccessBackground?: string;
27 buttonSuccessBorderColor?: string;
28 buttonDangerColor?: string;
29 buttonDangerBackground?: string;
30 buttonDangerBorderColor?: string;
31 buttonWarningColor?: string;
32 buttonWarningBackground?: string;
33 buttonWarningBorderColor?: string;
34 buttonBorderWidth?: string;
35 buttonRadius?: string;
36 buttonRoundRadius?: string;
37 buttonPlainBackground?: string;
38 buttonDisabledOpacity?: number | string;
39 buttonIconSize?: string;
40 buttonLoadingIconSize?: string;
41};