1 | import { type PropType, type ExtractPropTypes } from 'vue';
|
2 | import { LoadingType } from '../loading';
|
3 | import { ButtonSize, ButtonType, ButtonNativeType, ButtonIconPosition } from './types';
|
4 | export declare const buttonProps: {
|
5 | to: PropType<import("vue-router").RouteLocationRaw>;
|
6 | url: StringConstructor;
|
7 | replace: BooleanConstructor;
|
8 | } & {
|
9 | tag: {
|
10 | type: PropType<keyof HTMLElementTagNameMap>;
|
11 | default: keyof HTMLElementTagNameMap;
|
12 | };
|
13 | text: StringConstructor;
|
14 | icon: StringConstructor;
|
15 | type: {
|
16 | type: PropType<ButtonType>;
|
17 | default: ButtonType;
|
18 | };
|
19 | size: {
|
20 | type: PropType<ButtonSize>;
|
21 | default: ButtonSize;
|
22 | };
|
23 | color: StringConstructor;
|
24 | block: BooleanConstructor;
|
25 | plain: BooleanConstructor;
|
26 | round: BooleanConstructor;
|
27 | square: BooleanConstructor;
|
28 | loading: BooleanConstructor;
|
29 | hairline: BooleanConstructor;
|
30 | disabled: BooleanConstructor;
|
31 | iconPrefix: StringConstructor;
|
32 | nativeType: {
|
33 | type: PropType<ButtonNativeType>;
|
34 | default: ButtonNativeType;
|
35 | };
|
36 | loadingSize: (NumberConstructor | StringConstructor)[];
|
37 | loadingText: StringConstructor;
|
38 | loadingType: PropType<LoadingType>;
|
39 | iconPosition: {
|
40 | type: PropType<ButtonIconPosition>;
|
41 | default: ButtonIconPosition;
|
42 | };
|
43 | };
|
44 | export type ButtonProps = ExtractPropTypes<typeof buttonProps>;
|
45 | declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
46 | to: PropType<import("vue-router").RouteLocationRaw>;
|
47 | url: StringConstructor;
|
48 | replace: BooleanConstructor;
|
49 | } & {
|
50 | tag: {
|
51 | type: PropType<keyof HTMLElementTagNameMap>;
|
52 | default: keyof HTMLElementTagNameMap;
|
53 | };
|
54 | text: StringConstructor;
|
55 | icon: StringConstructor;
|
56 | type: {
|
57 | type: PropType<ButtonType>;
|
58 | default: ButtonType;
|
59 | };
|
60 | size: {
|
61 | type: PropType<ButtonSize>;
|
62 | default: ButtonSize;
|
63 | };
|
64 | color: StringConstructor;
|
65 | block: BooleanConstructor;
|
66 | plain: BooleanConstructor;
|
67 | round: BooleanConstructor;
|
68 | square: BooleanConstructor;
|
69 | loading: BooleanConstructor;
|
70 | hairline: BooleanConstructor;
|
71 | disabled: BooleanConstructor;
|
72 | iconPrefix: StringConstructor;
|
73 | nativeType: {
|
74 | type: PropType<ButtonNativeType>;
|
75 | default: ButtonNativeType;
|
76 | };
|
77 | loadingSize: (NumberConstructor | StringConstructor)[];
|
78 | loadingText: StringConstructor;
|
79 | loadingType: PropType<LoadingType>;
|
80 | iconPosition: {
|
81 | type: PropType<ButtonIconPosition>;
|
82 | default: ButtonIconPosition;
|
83 | };
|
84 | }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
85 | to: PropType<import("vue-router").RouteLocationRaw>;
|
86 | url: StringConstructor;
|
87 | replace: BooleanConstructor;
|
88 | } & {
|
89 | tag: {
|
90 | type: PropType<keyof HTMLElementTagNameMap>;
|
91 | default: keyof HTMLElementTagNameMap;
|
92 | };
|
93 | text: StringConstructor;
|
94 | icon: StringConstructor;
|
95 | type: {
|
96 | type: PropType<ButtonType>;
|
97 | default: ButtonType;
|
98 | };
|
99 | size: {
|
100 | type: PropType<ButtonSize>;
|
101 | default: ButtonSize;
|
102 | };
|
103 | color: StringConstructor;
|
104 | block: BooleanConstructor;
|
105 | plain: BooleanConstructor;
|
106 | round: BooleanConstructor;
|
107 | square: BooleanConstructor;
|
108 | loading: BooleanConstructor;
|
109 | hairline: BooleanConstructor;
|
110 | disabled: BooleanConstructor;
|
111 | iconPrefix: StringConstructor;
|
112 | nativeType: {
|
113 | type: PropType<ButtonNativeType>;
|
114 | default: ButtonNativeType;
|
115 | };
|
116 | loadingSize: (NumberConstructor | StringConstructor)[];
|
117 | loadingText: StringConstructor;
|
118 | loadingType: PropType<LoadingType>;
|
119 | iconPosition: {
|
120 | type: PropType<ButtonIconPosition>;
|
121 | default: ButtonIconPosition;
|
122 | };
|
123 | }>> & Readonly<{
|
124 | onClick?: ((...args: any[]) => any) | undefined;
|
125 | }>, {
|
126 | replace: boolean;
|
127 | type: ButtonType;
|
128 | tag: keyof HTMLElementTagNameMap;
|
129 | round: boolean;
|
130 | size: ButtonSize;
|
131 | disabled: boolean;
|
132 | block: boolean;
|
133 | square: boolean;
|
134 | loading: boolean;
|
135 | plain: boolean;
|
136 | hairline: boolean;
|
137 | nativeType: ButtonNativeType;
|
138 | iconPosition: ButtonIconPosition;
|
139 | }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
140 | export default _default;
|
141 |
|
\ | No newline at end of file |