x-next 0.0.0-alpha.4 → 0.0.0-alpha.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_container/client-only.d.ts +4 -0
- package/dist/_container/parent-scroll-observer.d.ts +6 -0
- package/dist/_container/resize-observer.d.ts +6 -0
- package/dist/_container/utils.d.ts +12 -0
- package/dist/_hooks/_types.d.ts +4 -0
- package/dist/_hooks/use-first-element.d.ts +5 -0
- package/dist/_hooks/use-index.d.ts +9 -0
- package/dist/_hooks/use-overflow.d.ts +5 -0
- package/dist/_hooks/use-popup-manager.d.ts +11 -0
- package/dist/_hooks/use-resize-observer.d.ts +8 -0
- package/dist/_props/css.d.ts +13 -0
- package/dist/_props/global.d.ts +1 -0
- package/dist/_utils/click.d.ts +13 -0
- package/dist/_utils/config.d.ts +9 -0
- package/dist/_utils/constant.d.ts +17 -0
- package/dist/_utils/convert-case.d.ts +3 -0
- package/dist/_utils/dom.d.ts +10 -0
- package/dist/_utils/helpers.d.ts +12 -0
- package/dist/_utils/is.d.ts +25 -0
- package/dist/_utils/keyboard.d.ts +24 -0
- package/dist/_utils/number.d.ts +0 -0
- package/dist/_utils/vue-eco.d.ts +38 -0
- package/dist/components/button/Button.d.ts +97 -0
- package/dist/components/button/index.d.ts +181 -0
- package/dist/components/button/props.d.ts +45 -0
- package/dist/components/dialog/Dialog.d.ts +188 -0
- package/dist/components/dialog/index.d.ts +334 -0
- package/dist/components/dialog/props.d.ts +83 -0
- package/dist/components/dialog/use-props.d.ts +33 -0
- package/dist/components/dialog/use.d.ts +3 -0
- package/dist/components/dialog/warp.d.ts +2 -0
- package/dist/components/form/constants.d.ts +4 -0
- package/dist/components/form/form-item.d.ts +31 -0
- package/dist/components/form/form.d.ts +39 -0
- package/dist/components/form/hooks.d.ts +4 -0
- package/dist/components/form/types.d.ts +31 -0
- package/dist/components/index.d.ts +10 -0
- package/dist/components/input/Input.d.ts +220 -0
- package/dist/components/input/index.d.ts +394 -0
- package/dist/components/input/props.d.ts +95 -0
- package/dist/components/input/utils.d.ts +6 -0
- package/dist/components/message/Message.d.ts +108 -0
- package/dist/components/message/MessageVue.vue.d.ts +362 -0
- package/dist/components/message/index.d.ts +193 -0
- package/dist/components/message/props.d.ts +31 -0
- package/dist/components/message/warp.d.ts +3 -0
- package/dist/components/message-box/MessageBox.d.ts +3 -0
- package/dist/components/message-box/index.d.ts +4 -0
- package/dist/components/message-box/props.d.ts +52 -0
- package/dist/components/message-box/warp.d.ts +2 -0
- package/dist/components/notification/Notification.d.ts +89 -0
- package/dist/components/notification/index.d.ts +166 -0
- package/dist/components/notification/props.d.ts +54 -0
- package/dist/components/notification/warp.d.ts +3 -0
- package/dist/components/popconfirm/index.d.ts +193 -0
- package/dist/components/popconfirm/src/Popconfirm.d.ts +104 -0
- package/dist/components/popconfirm/src/popup.vue.d.ts +407 -0
- package/dist/components/popconfirm/src/props.d.ts +45 -0
- package/dist/components/popconfirm/src/types.d.ts +3 -0
- package/dist/components/scrollbar/index.d.ts +0 -0
- package/dist/components/scrollbar/props.d.ts +16 -0
- package/dist/components/space/Space.d.ts +42 -0
- package/dist/components/space/index.d.ts +82 -0
- package/dist/components/tag-cloud/index.d.ts +0 -0
- package/dist/components/timeline/index.d.ts +58 -0
- package/dist/components/timeline/src/context.d.ts +12 -0
- package/dist/components/timeline/src/props.d.ts +31 -0
- package/dist/components/timeline/src/timeline-item.d.ts +12 -0
- package/dist/components/timeline/src/timeline.d.ts +24 -0
- package/dist/components/timeline/src/types.d.ts +9 -0
- package/dist/components/timeline-item/index.d.ts +34 -0
- package/dist/components/trend-chart/components/TrendChart.d.ts +277 -0
- package/dist/components/trend-chart/components/trend-chart-curve.d.ts +111 -0
- package/dist/components/trend-chart/components/trend-chart-grid.d.ts +55 -0
- package/dist/components/trend-chart/components/trend-chart-labels.d.ts +22 -0
- package/dist/components/trend-chart/helpers/genPath.d.ts +8 -0
- package/dist/components/trend-chart/helpers/genPoints.d.ts +3 -0
- package/dist/components/trend-chart/helpers/getPadding.d.ts +7 -0
- package/dist/components/trend-chart/helpers/validatePadding.d.ts +2 -0
- package/dist/components/trend-chart/index.d.ts +535 -0
- package/dist/components/trend-chart/props.d.ts +203 -0
- package/dist/components/trend-chart/themes.d.ts +128 -0
- package/dist/components/trend-chart.bak/components/trend-chart-curve.d.ts +111 -0
- package/dist/components/trend-chart.bak/components/trend-chart-grid.d.ts +55 -0
- package/dist/components/trend-chart.bak/components/trend-chart-labels.d.ts +22 -0
- package/dist/components/trend-chart.bak/components/trend-chart.d.ts +274 -0
- package/dist/components/trend-chart.bak/helpers/genPath.d.ts +8 -0
- package/dist/components/trend-chart.bak/helpers/genPoints.d.ts +3 -0
- package/dist/components/trend-chart.bak/helpers/getPadding.d.ts +7 -0
- package/dist/components/trend-chart.bak/helpers/validatePadding.d.ts +2 -0
- package/dist/components/trend-chart.bak/index.d.ts +530 -0
- package/dist/components/trend-chart.bak/props.d.ts +211 -0
- package/dist/components/trend-chart.bak/themes.d.ts +152 -0
- package/dist/components/trigger/index.d.ts +487 -0
- package/dist/components/trigger/src/_trigger.d.ts +217 -0
- package/dist/components/trigger/src/constant.d.ts +8 -0
- package/dist/components/trigger/src/trigger.d.ts +288 -0
- package/dist/components/trigger/src/utils.d.ts +50 -0
- package/dist/directives/clipboard/cache.d.ts +8 -0
- package/dist/directives/clipboard/clipboard.d.ts +18 -0
- package/dist/directives/clipboard/convert.d.ts +3 -0
- package/dist/directives/clipboard/index.d.ts +3 -0
- package/dist/directives/clipboard/plugin.d.ts +2 -0
- package/dist/directives/clipboard/textarea.d.ts +3 -0
- package/dist/icons/animation/animation-loading.d.ts +50 -0
- package/dist/icons/default/check-circle-fill.d.ts +50 -0
- package/dist/icons/default/close-circle-fill.d.ts +50 -0
- package/dist/icons/default/exclamation-circle-fill.d.ts +50 -0
- package/dist/icons/default/info-circle-fill.d.ts +50 -0
- package/dist/icons/default/logo-simple.d.ts +50 -0
- package/dist/icons/default/minus-circle-fill.d.ts +50 -0
- package/dist/icons/icon.d.ts +51 -0
- package/dist/icons/index.d.ts +8 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.es.js +3166 -0
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -0
- package/dist/types.d.ts +13 -0
- package/package.json +25 -11
- package/volar.d.ts +17 -0
@@ -0,0 +1,39 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
import { FormItemProp } from './form-item';
|
3
|
+
export declare const formProps: {
|
4
|
+
model: {
|
5
|
+
type: ObjectConstructor;
|
6
|
+
};
|
7
|
+
rules: {
|
8
|
+
type: PropType<Partial<Record<string, import('./types').Arrayable<import('./types').FormItemRule>>>>;
|
9
|
+
};
|
10
|
+
labelPosition: {
|
11
|
+
type: PropType<"left" | "right" | "top">;
|
12
|
+
default: string;
|
13
|
+
};
|
14
|
+
requireAsteriskPosition: {
|
15
|
+
type: StringConstructor;
|
16
|
+
default: string;
|
17
|
+
};
|
18
|
+
labelWidth: {
|
19
|
+
type: (NumberConstructor | StringConstructor)[];
|
20
|
+
default: string;
|
21
|
+
};
|
22
|
+
showMessage: {
|
23
|
+
type: BooleanConstructor;
|
24
|
+
default: boolean;
|
25
|
+
};
|
26
|
+
validateOnRuleChange: {
|
27
|
+
type: BooleanConstructor;
|
28
|
+
default: boolean;
|
29
|
+
};
|
30
|
+
inline: {
|
31
|
+
type: BooleanConstructor;
|
32
|
+
default: boolean;
|
33
|
+
};
|
34
|
+
};
|
35
|
+
export type FormProps = ExtractPropTypes<typeof formProps>;
|
36
|
+
export declare const formEmits: {
|
37
|
+
validate: (prop: FormItemProp, isValid: boolean, message: string) => boolean;
|
38
|
+
};
|
39
|
+
export type FormEmits = typeof formEmits;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { SetupContext } from 'vue';
|
2
|
+
import { RuleItem, ValidateError, ValidateFieldsError } from 'async-validator';
|
3
|
+
import { FormProps, FormEmits } from './form';
|
4
|
+
import { FormItemProp, FormItemProps, FormItemValidateState } from './form-item';
|
5
|
+
export type Arrayable<T> = T | T[];
|
6
|
+
export interface FormItemRule extends Omit<RuleItem, 'validator'> {
|
7
|
+
trigger?: Arrayable<string>;
|
8
|
+
validator?: RuleItem['validator'] | string;
|
9
|
+
}
|
10
|
+
export type FormRules = Partial<Record<string, Arrayable<FormItemRule>>>;
|
11
|
+
export type FormValidationResult = Promise<any>;
|
12
|
+
export type FormValidateCallback = (isValid: boolean, invalidFields?: any) => void;
|
13
|
+
export type FormContext = FormProps & {
|
14
|
+
emit: SetupContext<FormEmits>['emit'];
|
15
|
+
addField: (field: FormItemContext) => void;
|
16
|
+
removeField: (field: FormItemContext) => void;
|
17
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
18
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
19
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
20
|
+
};
|
21
|
+
export interface FormItemContext extends FormItemProps {
|
22
|
+
$el: HTMLDivElement | undefined;
|
23
|
+
validateState: FormItemValidateState;
|
24
|
+
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
25
|
+
resetField(): void;
|
26
|
+
clearValidate(): void;
|
27
|
+
}
|
28
|
+
export interface FormValidateFailure {
|
29
|
+
errors: ValidateError[] | null;
|
30
|
+
fields: ValidateFieldsError;
|
31
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
export * from './button';
|
2
|
+
export * from './dialog';
|
3
|
+
export * from './message';
|
4
|
+
export * from './message-box';
|
5
|
+
export * from './notification';
|
6
|
+
export * from './popconfirm';
|
7
|
+
export * from './space';
|
8
|
+
export * from './timeline';
|
9
|
+
export * from './timeline-item';
|
10
|
+
export * from './trend-chart';
|
@@ -0,0 +1,220 @@
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
2
|
+
autocomplete: {
|
3
|
+
type: import('vue').PropType<"on" | "off">;
|
4
|
+
default: string;
|
5
|
+
};
|
6
|
+
name: {
|
7
|
+
type: StringConstructor;
|
8
|
+
default: string;
|
9
|
+
};
|
10
|
+
readonly: {
|
11
|
+
type: BooleanConstructor;
|
12
|
+
default: boolean;
|
13
|
+
};
|
14
|
+
autofocus: {
|
15
|
+
type: BooleanConstructor;
|
16
|
+
default: boolean;
|
17
|
+
};
|
18
|
+
form: {
|
19
|
+
type: StringConstructor;
|
20
|
+
default: undefined;
|
21
|
+
};
|
22
|
+
modelValue: {
|
23
|
+
type: (NumberConstructor | StringConstructor)[];
|
24
|
+
default: undefined;
|
25
|
+
};
|
26
|
+
type: {
|
27
|
+
type: import('vue').PropType<"text" | "textarea">;
|
28
|
+
default: string;
|
29
|
+
};
|
30
|
+
placeholder: {
|
31
|
+
type: StringConstructor;
|
32
|
+
default: string;
|
33
|
+
};
|
34
|
+
disabled: {
|
35
|
+
type: BooleanConstructor;
|
36
|
+
default: boolean;
|
37
|
+
};
|
38
|
+
size: {
|
39
|
+
type: import('vue').PropType<"default" | "small" | "large">;
|
40
|
+
default: string;
|
41
|
+
};
|
42
|
+
showPassword: {
|
43
|
+
type: BooleanConstructor;
|
44
|
+
default: boolean;
|
45
|
+
};
|
46
|
+
resize: {
|
47
|
+
type: BooleanConstructor;
|
48
|
+
default: boolean;
|
49
|
+
};
|
50
|
+
prefixIcon: {
|
51
|
+
type: StringConstructor;
|
52
|
+
default: string;
|
53
|
+
};
|
54
|
+
suffixIcon: {
|
55
|
+
type: StringConstructor;
|
56
|
+
default: string;
|
57
|
+
};
|
58
|
+
autosize: {
|
59
|
+
type: import('vue').PropType<boolean | {
|
60
|
+
minRows: number;
|
61
|
+
maxRows: number;
|
62
|
+
}>;
|
63
|
+
default: boolean;
|
64
|
+
};
|
65
|
+
formatter: {
|
66
|
+
type: FunctionConstructor;
|
67
|
+
default: undefined;
|
68
|
+
};
|
69
|
+
validateEvent: {
|
70
|
+
type: BooleanConstructor;
|
71
|
+
default: boolean;
|
72
|
+
};
|
73
|
+
clearable: {
|
74
|
+
type: BooleanConstructor;
|
75
|
+
default: boolean;
|
76
|
+
};
|
77
|
+
card: {
|
78
|
+
type: BooleanConstructor;
|
79
|
+
default: boolean;
|
80
|
+
};
|
81
|
+
maxlength: {
|
82
|
+
type: (NumberConstructor | StringConstructor)[];
|
83
|
+
default: undefined;
|
84
|
+
};
|
85
|
+
showWordLimit: {
|
86
|
+
type: BooleanConstructor;
|
87
|
+
default: boolean;
|
88
|
+
};
|
89
|
+
valueType: {
|
90
|
+
type: import('vue').PropType<"string" | "number">;
|
91
|
+
default: string;
|
92
|
+
};
|
93
|
+
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("clear" | "input" | "blur" | "change" | "focus" | "update:modelValue" | "pressEnter")[], "clear" | "input" | "blur" | "change" | "focus" | "update:modelValue" | "pressEnter", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
94
|
+
autocomplete: {
|
95
|
+
type: import('vue').PropType<"on" | "off">;
|
96
|
+
default: string;
|
97
|
+
};
|
98
|
+
name: {
|
99
|
+
type: StringConstructor;
|
100
|
+
default: string;
|
101
|
+
};
|
102
|
+
readonly: {
|
103
|
+
type: BooleanConstructor;
|
104
|
+
default: boolean;
|
105
|
+
};
|
106
|
+
autofocus: {
|
107
|
+
type: BooleanConstructor;
|
108
|
+
default: boolean;
|
109
|
+
};
|
110
|
+
form: {
|
111
|
+
type: StringConstructor;
|
112
|
+
default: undefined;
|
113
|
+
};
|
114
|
+
modelValue: {
|
115
|
+
type: (NumberConstructor | StringConstructor)[];
|
116
|
+
default: undefined;
|
117
|
+
};
|
118
|
+
type: {
|
119
|
+
type: import('vue').PropType<"text" | "textarea">;
|
120
|
+
default: string;
|
121
|
+
};
|
122
|
+
placeholder: {
|
123
|
+
type: StringConstructor;
|
124
|
+
default: string;
|
125
|
+
};
|
126
|
+
disabled: {
|
127
|
+
type: BooleanConstructor;
|
128
|
+
default: boolean;
|
129
|
+
};
|
130
|
+
size: {
|
131
|
+
type: import('vue').PropType<"default" | "small" | "large">;
|
132
|
+
default: string;
|
133
|
+
};
|
134
|
+
showPassword: {
|
135
|
+
type: BooleanConstructor;
|
136
|
+
default: boolean;
|
137
|
+
};
|
138
|
+
resize: {
|
139
|
+
type: BooleanConstructor;
|
140
|
+
default: boolean;
|
141
|
+
};
|
142
|
+
prefixIcon: {
|
143
|
+
type: StringConstructor;
|
144
|
+
default: string;
|
145
|
+
};
|
146
|
+
suffixIcon: {
|
147
|
+
type: StringConstructor;
|
148
|
+
default: string;
|
149
|
+
};
|
150
|
+
autosize: {
|
151
|
+
type: import('vue').PropType<boolean | {
|
152
|
+
minRows: number;
|
153
|
+
maxRows: number;
|
154
|
+
}>;
|
155
|
+
default: boolean;
|
156
|
+
};
|
157
|
+
formatter: {
|
158
|
+
type: FunctionConstructor;
|
159
|
+
default: undefined;
|
160
|
+
};
|
161
|
+
validateEvent: {
|
162
|
+
type: BooleanConstructor;
|
163
|
+
default: boolean;
|
164
|
+
};
|
165
|
+
clearable: {
|
166
|
+
type: BooleanConstructor;
|
167
|
+
default: boolean;
|
168
|
+
};
|
169
|
+
card: {
|
170
|
+
type: BooleanConstructor;
|
171
|
+
default: boolean;
|
172
|
+
};
|
173
|
+
maxlength: {
|
174
|
+
type: (NumberConstructor | StringConstructor)[];
|
175
|
+
default: undefined;
|
176
|
+
};
|
177
|
+
showWordLimit: {
|
178
|
+
type: BooleanConstructor;
|
179
|
+
default: boolean;
|
180
|
+
};
|
181
|
+
valueType: {
|
182
|
+
type: import('vue').PropType<"string" | "number">;
|
183
|
+
default: string;
|
184
|
+
};
|
185
|
+
}>> & Readonly<{
|
186
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
187
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
188
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
189
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
190
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
191
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
192
|
+
onPressEnter?: ((...args: any[]) => any) | undefined;
|
193
|
+
}>, {
|
194
|
+
size: "default" | "small" | "large";
|
195
|
+
name: string;
|
196
|
+
type: "text" | "textarea";
|
197
|
+
form: string;
|
198
|
+
disabled: boolean;
|
199
|
+
resize: boolean;
|
200
|
+
modelValue: string | number;
|
201
|
+
prefixIcon: string;
|
202
|
+
suffixIcon: string;
|
203
|
+
placeholder: string;
|
204
|
+
readonly: boolean;
|
205
|
+
maxlength: string | number;
|
206
|
+
clearable: boolean;
|
207
|
+
autofocus: boolean;
|
208
|
+
showPassword: boolean;
|
209
|
+
autocomplete: "on" | "off";
|
210
|
+
autosize: boolean | {
|
211
|
+
minRows: number;
|
212
|
+
maxRows: number;
|
213
|
+
};
|
214
|
+
formatter: Function;
|
215
|
+
validateEvent: boolean;
|
216
|
+
card: boolean;
|
217
|
+
showWordLimit: boolean;
|
218
|
+
valueType: "string" | "number";
|
219
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
220
|
+
export default _default;
|
@@ -0,0 +1,394 @@
|
|
1
|
+
export declare const XInput: {
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
3
|
+
autocomplete: {
|
4
|
+
type: import('vue').PropType<"on" | "off">;
|
5
|
+
default: string;
|
6
|
+
};
|
7
|
+
name: {
|
8
|
+
type: StringConstructor;
|
9
|
+
default: string;
|
10
|
+
};
|
11
|
+
readonly: {
|
12
|
+
type: BooleanConstructor;
|
13
|
+
default: boolean;
|
14
|
+
};
|
15
|
+
autofocus: {
|
16
|
+
type: BooleanConstructor;
|
17
|
+
default: boolean;
|
18
|
+
};
|
19
|
+
form: {
|
20
|
+
type: StringConstructor;
|
21
|
+
default: undefined;
|
22
|
+
};
|
23
|
+
modelValue: {
|
24
|
+
type: (NumberConstructor | StringConstructor)[];
|
25
|
+
default: undefined;
|
26
|
+
};
|
27
|
+
type: {
|
28
|
+
type: import('vue').PropType<"text" | "textarea">;
|
29
|
+
default: string;
|
30
|
+
};
|
31
|
+
placeholder: {
|
32
|
+
type: StringConstructor;
|
33
|
+
default: string;
|
34
|
+
};
|
35
|
+
disabled: {
|
36
|
+
type: BooleanConstructor;
|
37
|
+
default: boolean;
|
38
|
+
};
|
39
|
+
size: {
|
40
|
+
type: import('vue').PropType<"default" | "small" | "large">;
|
41
|
+
default: string;
|
42
|
+
};
|
43
|
+
showPassword: {
|
44
|
+
type: BooleanConstructor;
|
45
|
+
default: boolean;
|
46
|
+
};
|
47
|
+
resize: {
|
48
|
+
type: BooleanConstructor;
|
49
|
+
default: boolean;
|
50
|
+
};
|
51
|
+
prefixIcon: {
|
52
|
+
type: StringConstructor;
|
53
|
+
default: string;
|
54
|
+
};
|
55
|
+
suffixIcon: {
|
56
|
+
type: StringConstructor;
|
57
|
+
default: string;
|
58
|
+
};
|
59
|
+
autosize: {
|
60
|
+
type: import('vue').PropType<boolean | {
|
61
|
+
minRows: number;
|
62
|
+
maxRows: number;
|
63
|
+
}>;
|
64
|
+
default: boolean;
|
65
|
+
};
|
66
|
+
formatter: {
|
67
|
+
type: FunctionConstructor;
|
68
|
+
default: undefined;
|
69
|
+
};
|
70
|
+
validateEvent: {
|
71
|
+
type: BooleanConstructor;
|
72
|
+
default: boolean;
|
73
|
+
};
|
74
|
+
clearable: {
|
75
|
+
type: BooleanConstructor;
|
76
|
+
default: boolean;
|
77
|
+
};
|
78
|
+
card: {
|
79
|
+
type: BooleanConstructor;
|
80
|
+
default: boolean;
|
81
|
+
};
|
82
|
+
maxlength: {
|
83
|
+
type: (NumberConstructor | StringConstructor)[];
|
84
|
+
default: undefined;
|
85
|
+
};
|
86
|
+
showWordLimit: {
|
87
|
+
type: BooleanConstructor;
|
88
|
+
default: boolean;
|
89
|
+
};
|
90
|
+
valueType: {
|
91
|
+
type: import('vue').PropType<"string" | "number">;
|
92
|
+
default: string;
|
93
|
+
};
|
94
|
+
}>> & Readonly<{
|
95
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
96
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
97
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
98
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
99
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
100
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
101
|
+
onPressEnter?: ((...args: any[]) => any) | undefined;
|
102
|
+
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("clear" | "input" | "blur" | "change" | "focus" | "update:modelValue" | "pressEnter")[], import('vue').PublicProps, {
|
103
|
+
size: "default" | "small" | "large";
|
104
|
+
name: string;
|
105
|
+
type: "text" | "textarea";
|
106
|
+
form: string;
|
107
|
+
disabled: boolean;
|
108
|
+
resize: boolean;
|
109
|
+
modelValue: string | number;
|
110
|
+
prefixIcon: string;
|
111
|
+
suffixIcon: string;
|
112
|
+
placeholder: string;
|
113
|
+
readonly: boolean;
|
114
|
+
maxlength: string | number;
|
115
|
+
clearable: boolean;
|
116
|
+
autofocus: boolean;
|
117
|
+
showPassword: boolean;
|
118
|
+
autocomplete: "on" | "off";
|
119
|
+
autosize: boolean | {
|
120
|
+
minRows: number;
|
121
|
+
maxRows: number;
|
122
|
+
};
|
123
|
+
formatter: Function;
|
124
|
+
validateEvent: boolean;
|
125
|
+
card: boolean;
|
126
|
+
showWordLimit: boolean;
|
127
|
+
valueType: "string" | "number";
|
128
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
129
|
+
P: {};
|
130
|
+
B: {};
|
131
|
+
D: {};
|
132
|
+
C: {};
|
133
|
+
M: {};
|
134
|
+
Defaults: {};
|
135
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
136
|
+
autocomplete: {
|
137
|
+
type: import('vue').PropType<"on" | "off">;
|
138
|
+
default: string;
|
139
|
+
};
|
140
|
+
name: {
|
141
|
+
type: StringConstructor;
|
142
|
+
default: string;
|
143
|
+
};
|
144
|
+
readonly: {
|
145
|
+
type: BooleanConstructor;
|
146
|
+
default: boolean;
|
147
|
+
};
|
148
|
+
autofocus: {
|
149
|
+
type: BooleanConstructor;
|
150
|
+
default: boolean;
|
151
|
+
};
|
152
|
+
form: {
|
153
|
+
type: StringConstructor;
|
154
|
+
default: undefined;
|
155
|
+
};
|
156
|
+
modelValue: {
|
157
|
+
type: (NumberConstructor | StringConstructor)[];
|
158
|
+
default: undefined;
|
159
|
+
};
|
160
|
+
type: {
|
161
|
+
type: import('vue').PropType<"text" | "textarea">;
|
162
|
+
default: string;
|
163
|
+
};
|
164
|
+
placeholder: {
|
165
|
+
type: StringConstructor;
|
166
|
+
default: string;
|
167
|
+
};
|
168
|
+
disabled: {
|
169
|
+
type: BooleanConstructor;
|
170
|
+
default: boolean;
|
171
|
+
};
|
172
|
+
size: {
|
173
|
+
type: import('vue').PropType<"default" | "small" | "large">;
|
174
|
+
default: string;
|
175
|
+
};
|
176
|
+
showPassword: {
|
177
|
+
type: BooleanConstructor;
|
178
|
+
default: boolean;
|
179
|
+
};
|
180
|
+
resize: {
|
181
|
+
type: BooleanConstructor;
|
182
|
+
default: boolean;
|
183
|
+
};
|
184
|
+
prefixIcon: {
|
185
|
+
type: StringConstructor;
|
186
|
+
default: string;
|
187
|
+
};
|
188
|
+
suffixIcon: {
|
189
|
+
type: StringConstructor;
|
190
|
+
default: string;
|
191
|
+
};
|
192
|
+
autosize: {
|
193
|
+
type: import('vue').PropType<boolean | {
|
194
|
+
minRows: number;
|
195
|
+
maxRows: number;
|
196
|
+
}>;
|
197
|
+
default: boolean;
|
198
|
+
};
|
199
|
+
formatter: {
|
200
|
+
type: FunctionConstructor;
|
201
|
+
default: undefined;
|
202
|
+
};
|
203
|
+
validateEvent: {
|
204
|
+
type: BooleanConstructor;
|
205
|
+
default: boolean;
|
206
|
+
};
|
207
|
+
clearable: {
|
208
|
+
type: BooleanConstructor;
|
209
|
+
default: boolean;
|
210
|
+
};
|
211
|
+
card: {
|
212
|
+
type: BooleanConstructor;
|
213
|
+
default: boolean;
|
214
|
+
};
|
215
|
+
maxlength: {
|
216
|
+
type: (NumberConstructor | StringConstructor)[];
|
217
|
+
default: undefined;
|
218
|
+
};
|
219
|
+
showWordLimit: {
|
220
|
+
type: BooleanConstructor;
|
221
|
+
default: boolean;
|
222
|
+
};
|
223
|
+
valueType: {
|
224
|
+
type: import('vue').PropType<"string" | "number">;
|
225
|
+
default: string;
|
226
|
+
};
|
227
|
+
}>> & Readonly<{
|
228
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
229
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
230
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
231
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
232
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
233
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
234
|
+
onPressEnter?: ((...args: any[]) => any) | undefined;
|
235
|
+
}>, () => any, {}, {}, {}, {
|
236
|
+
size: "default" | "small" | "large";
|
237
|
+
name: string;
|
238
|
+
type: "text" | "textarea";
|
239
|
+
form: string;
|
240
|
+
disabled: boolean;
|
241
|
+
resize: boolean;
|
242
|
+
modelValue: string | number;
|
243
|
+
prefixIcon: string;
|
244
|
+
suffixIcon: string;
|
245
|
+
placeholder: string;
|
246
|
+
readonly: boolean;
|
247
|
+
maxlength: string | number;
|
248
|
+
clearable: boolean;
|
249
|
+
autofocus: boolean;
|
250
|
+
showPassword: boolean;
|
251
|
+
autocomplete: "on" | "off";
|
252
|
+
autosize: boolean | {
|
253
|
+
minRows: number;
|
254
|
+
maxRows: number;
|
255
|
+
};
|
256
|
+
formatter: Function;
|
257
|
+
validateEvent: boolean;
|
258
|
+
card: boolean;
|
259
|
+
showWordLimit: boolean;
|
260
|
+
valueType: "string" | "number";
|
261
|
+
}>;
|
262
|
+
__isFragment?: never;
|
263
|
+
__isTeleport?: never;
|
264
|
+
__isSuspense?: never;
|
265
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
266
|
+
autocomplete: {
|
267
|
+
type: import('vue').PropType<"on" | "off">;
|
268
|
+
default: string;
|
269
|
+
};
|
270
|
+
name: {
|
271
|
+
type: StringConstructor;
|
272
|
+
default: string;
|
273
|
+
};
|
274
|
+
readonly: {
|
275
|
+
type: BooleanConstructor;
|
276
|
+
default: boolean;
|
277
|
+
};
|
278
|
+
autofocus: {
|
279
|
+
type: BooleanConstructor;
|
280
|
+
default: boolean;
|
281
|
+
};
|
282
|
+
form: {
|
283
|
+
type: StringConstructor;
|
284
|
+
default: undefined;
|
285
|
+
};
|
286
|
+
modelValue: {
|
287
|
+
type: (NumberConstructor | StringConstructor)[];
|
288
|
+
default: undefined;
|
289
|
+
};
|
290
|
+
type: {
|
291
|
+
type: import('vue').PropType<"text" | "textarea">;
|
292
|
+
default: string;
|
293
|
+
};
|
294
|
+
placeholder: {
|
295
|
+
type: StringConstructor;
|
296
|
+
default: string;
|
297
|
+
};
|
298
|
+
disabled: {
|
299
|
+
type: BooleanConstructor;
|
300
|
+
default: boolean;
|
301
|
+
};
|
302
|
+
size: {
|
303
|
+
type: import('vue').PropType<"default" | "small" | "large">;
|
304
|
+
default: string;
|
305
|
+
};
|
306
|
+
showPassword: {
|
307
|
+
type: BooleanConstructor;
|
308
|
+
default: boolean;
|
309
|
+
};
|
310
|
+
resize: {
|
311
|
+
type: BooleanConstructor;
|
312
|
+
default: boolean;
|
313
|
+
};
|
314
|
+
prefixIcon: {
|
315
|
+
type: StringConstructor;
|
316
|
+
default: string;
|
317
|
+
};
|
318
|
+
suffixIcon: {
|
319
|
+
type: StringConstructor;
|
320
|
+
default: string;
|
321
|
+
};
|
322
|
+
autosize: {
|
323
|
+
type: import('vue').PropType<boolean | {
|
324
|
+
minRows: number;
|
325
|
+
maxRows: number;
|
326
|
+
}>;
|
327
|
+
default: boolean;
|
328
|
+
};
|
329
|
+
formatter: {
|
330
|
+
type: FunctionConstructor;
|
331
|
+
default: undefined;
|
332
|
+
};
|
333
|
+
validateEvent: {
|
334
|
+
type: BooleanConstructor;
|
335
|
+
default: boolean;
|
336
|
+
};
|
337
|
+
clearable: {
|
338
|
+
type: BooleanConstructor;
|
339
|
+
default: boolean;
|
340
|
+
};
|
341
|
+
card: {
|
342
|
+
type: BooleanConstructor;
|
343
|
+
default: boolean;
|
344
|
+
};
|
345
|
+
maxlength: {
|
346
|
+
type: (NumberConstructor | StringConstructor)[];
|
347
|
+
default: undefined;
|
348
|
+
};
|
349
|
+
showWordLimit: {
|
350
|
+
type: BooleanConstructor;
|
351
|
+
default: boolean;
|
352
|
+
};
|
353
|
+
valueType: {
|
354
|
+
type: import('vue').PropType<"string" | "number">;
|
355
|
+
default: string;
|
356
|
+
};
|
357
|
+
}>> & Readonly<{
|
358
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
359
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
360
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
361
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
362
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
363
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
364
|
+
onPressEnter?: ((...args: any[]) => any) | undefined;
|
365
|
+
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("clear" | "input" | "blur" | "change" | "focus" | "update:modelValue" | "pressEnter")[], "clear" | "input" | "blur" | "change" | "focus" | "update:modelValue" | "pressEnter", {
|
366
|
+
size: "default" | "small" | "large";
|
367
|
+
name: string;
|
368
|
+
type: "text" | "textarea";
|
369
|
+
form: string;
|
370
|
+
disabled: boolean;
|
371
|
+
resize: boolean;
|
372
|
+
modelValue: string | number;
|
373
|
+
prefixIcon: string;
|
374
|
+
suffixIcon: string;
|
375
|
+
placeholder: string;
|
376
|
+
readonly: boolean;
|
377
|
+
maxlength: string | number;
|
378
|
+
clearable: boolean;
|
379
|
+
autofocus: boolean;
|
380
|
+
showPassword: boolean;
|
381
|
+
autocomplete: "on" | "off";
|
382
|
+
autosize: boolean | {
|
383
|
+
minRows: number;
|
384
|
+
maxRows: number;
|
385
|
+
};
|
386
|
+
formatter: Function;
|
387
|
+
validateEvent: boolean;
|
388
|
+
card: boolean;
|
389
|
+
showWordLimit: boolean;
|
390
|
+
valueType: "string" | "number";
|
391
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
392
|
+
install(app: import('vue').App): void;
|
393
|
+
};
|
394
|
+
export { XInput as default };
|