UNPKG

4.77 kBTypeScriptView Raw
1export declare const Stepper: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2 min: {
3 type: (NumberConstructor | StringConstructor)[];
4 default: number;
5 };
6 max: {
7 type: (NumberConstructor | StringConstructor)[];
8 default: number;
9 };
10 name: {
11 type: (NumberConstructor | StringConstructor)[];
12 default: string;
13 };
14 step: {
15 type: (NumberConstructor | StringConstructor)[];
16 default: number;
17 };
18 theme: import("vue").PropType<import("./Stepper").StepperTheme>;
19 integer: BooleanConstructor;
20 disabled: BooleanConstructor;
21 showPlus: {
22 type: BooleanConstructor;
23 default: true;
24 };
25 showMinus: {
26 type: BooleanConstructor;
27 default: true;
28 };
29 showInput: {
30 type: BooleanConstructor;
31 default: true;
32 };
33 longPress: {
34 type: BooleanConstructor;
35 default: true;
36 };
37 autoFixed: {
38 type: BooleanConstructor;
39 default: true;
40 };
41 allowEmpty: BooleanConstructor;
42 modelValue: (NumberConstructor | StringConstructor)[];
43 inputWidth: (NumberConstructor | StringConstructor)[];
44 buttonSize: (NumberConstructor | StringConstructor)[];
45 placeholder: StringConstructor;
46 disablePlus: BooleanConstructor;
47 disableMinus: BooleanConstructor;
48 disableInput: BooleanConstructor;
49 beforeChange: import("vue").PropType<import("../utils").Interceptor>;
50 defaultValue: {
51 type: (NumberConstructor | StringConstructor)[];
52 default: number;
53 };
54 decimalLength: (NumberConstructor | StringConstructor)[];
55}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "blur" | "update:modelValue" | "change" | "minus" | "plus" | "overlimit")[], "focus" | "blur" | "update:modelValue" | "change" | "minus" | "plus" | "overlimit", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
56 min: {
57 type: (NumberConstructor | StringConstructor)[];
58 default: number;
59 };
60 max: {
61 type: (NumberConstructor | StringConstructor)[];
62 default: number;
63 };
64 name: {
65 type: (NumberConstructor | StringConstructor)[];
66 default: string;
67 };
68 step: {
69 type: (NumberConstructor | StringConstructor)[];
70 default: number;
71 };
72 theme: import("vue").PropType<import("./Stepper").StepperTheme>;
73 integer: BooleanConstructor;
74 disabled: BooleanConstructor;
75 showPlus: {
76 type: BooleanConstructor;
77 default: true;
78 };
79 showMinus: {
80 type: BooleanConstructor;
81 default: true;
82 };
83 showInput: {
84 type: BooleanConstructor;
85 default: true;
86 };
87 longPress: {
88 type: BooleanConstructor;
89 default: true;
90 };
91 autoFixed: {
92 type: BooleanConstructor;
93 default: true;
94 };
95 allowEmpty: BooleanConstructor;
96 modelValue: (NumberConstructor | StringConstructor)[];
97 inputWidth: (NumberConstructor | StringConstructor)[];
98 buttonSize: (NumberConstructor | StringConstructor)[];
99 placeholder: StringConstructor;
100 disablePlus: BooleanConstructor;
101 disableMinus: BooleanConstructor;
102 disableInput: BooleanConstructor;
103 beforeChange: import("vue").PropType<import("../utils").Interceptor>;
104 defaultValue: {
105 type: (NumberConstructor | StringConstructor)[];
106 default: number;
107 };
108 decimalLength: (NumberConstructor | StringConstructor)[];
109}>> & Readonly<{
110 onFocus?: ((...args: any[]) => any) | undefined;
111 onBlur?: ((...args: any[]) => any) | undefined;
112 onChange?: ((...args: any[]) => any) | undefined;
113 "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
114 onMinus?: ((...args: any[]) => any) | undefined;
115 onPlus?: ((...args: any[]) => any) | undefined;
116 onOverlimit?: ((...args: any[]) => any) | undefined;
117}>, {
118 name: string | number;
119 max: string | number;
120 disabled: boolean;
121 min: string | number;
122 longPress: boolean;
123 step: string | number;
124 integer: boolean;
125 showPlus: boolean;
126 showMinus: boolean;
127 showInput: boolean;
128 autoFixed: boolean;
129 allowEmpty: boolean;
130 disablePlus: boolean;
131 disableMinus: boolean;
132 disableInput: boolean;
133 defaultValue: string | number;
134}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
135export default Stepper;
136export { stepperProps } from './Stepper';
137export type { StepperTheme, StepperProps } from './Stepper';
138export type { StepperThemeVars } from './types';
139declare module 'vue' {
140 interface GlobalComponents {
141 VanStepper: typeof Stepper;
142 }
143}
144
\No newline at end of file