@dazhicheng/ui 1.5.172 → 1.5.174

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.
@@ -0,0 +1,432 @@
1
+ type __VLS_Props = {
2
+ /** 表单渲染上下文,避免透传给 Element Plus ElInput 的 string 类型 form prop。 */
3
+ form?: unknown;
4
+ };
5
+ /**
6
+ * 聚焦 ElInput。
7
+ */
8
+ declare function focus(): void;
9
+ /**
10
+ * 失焦 ElInput。
11
+ */
12
+ declare function blur(): void;
13
+ /**
14
+ * 选中 ElInput 当前文本。
15
+ */
16
+ declare function select(): void;
17
+ /**
18
+ * 清空 ElInput 当前值。
19
+ *
20
+ * @param event 触发清空的鼠标事件
21
+ */
22
+ declare function clear(event?: MouseEvent): void;
23
+ /**
24
+ * 重新计算 ElInput 文本域高度。
25
+ */
26
+ declare function resizeTextarea(): void;
27
+ declare function __VLS_template(): {
28
+ attrs: Partial<{}>;
29
+ slots: any;
30
+ refs: {
31
+ inputRef: ({
32
+ $: import('vue').ComponentInternalInstance;
33
+ $data: {};
34
+ $props: {
35
+ readonly id?: string | undefined;
36
+ readonly size?: import('element-plus').ComponentSize | undefined;
37
+ readonly disabled?: boolean | undefined;
38
+ readonly modelValue?: string | number | null | undefined | undefined;
39
+ readonly modelModifiers?: import('element-plus').InputModelModifiers | undefined;
40
+ readonly maxlength?: string | number | undefined;
41
+ readonly minlength?: string | number | undefined;
42
+ readonly type?: import('element-plus').InputType | undefined;
43
+ readonly resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
44
+ readonly autosize?: import('element-plus').InputAutoSize | undefined;
45
+ readonly autocomplete?: string | undefined;
46
+ readonly formatter?: ((value: string) => string) | undefined;
47
+ readonly parser?: ((value: string) => string) | undefined;
48
+ readonly placeholder?: string | undefined;
49
+ readonly form?: string | undefined;
50
+ readonly readonly?: boolean | undefined;
51
+ readonly clearable?: boolean | undefined;
52
+ readonly clearIcon?: import('element-plus/es/utils/index.mjs').IconPropType | undefined;
53
+ readonly showPassword?: boolean | undefined;
54
+ readonly showWordLimit?: boolean | undefined;
55
+ readonly wordLimitPosition?: "inside" | "outside" | undefined;
56
+ readonly suffixIcon?: import('element-plus/es/utils/index.mjs').IconPropType | undefined;
57
+ readonly prefixIcon?: import('element-plus/es/utils/index.mjs').IconPropType | undefined;
58
+ readonly containerRole?: string | undefined;
59
+ readonly tabindex?: string | number | undefined;
60
+ readonly validateEvent?: boolean | undefined;
61
+ readonly inputStyle?: import('vue').StyleValue;
62
+ readonly autofocus?: boolean | undefined;
63
+ readonly rows?: number | undefined;
64
+ readonly ariaLabel?: string | undefined;
65
+ readonly inputmode?: "search" | "none" | "url" | "text" | "tel" | "email" | "numeric" | "decimal" | undefined;
66
+ readonly name?: string | undefined;
67
+ readonly countGraphemes?: ((value: string) => number) | undefined;
68
+ readonly onBlur?: ((evt: FocusEvent) => any) | undefined | undefined;
69
+ readonly onChange?: ((value: string, evt?: Event | undefined) => any) | undefined | undefined;
70
+ readonly onCompositionend?: ((evt: CompositionEvent) => any) | undefined | undefined;
71
+ readonly onCompositionstart?: ((evt: CompositionEvent) => any) | undefined | undefined;
72
+ readonly onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined | undefined;
73
+ readonly onFocus?: ((evt: FocusEvent) => any) | undefined | undefined;
74
+ readonly onInput?: ((value: string) => any) | undefined | undefined;
75
+ readonly onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined | undefined;
76
+ readonly onMouseenter?: ((evt: MouseEvent) => any) | undefined | undefined;
77
+ readonly onMouseleave?: ((evt: MouseEvent) => any) | undefined | undefined;
78
+ readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined | undefined;
79
+ readonly onClear?: ((evt: MouseEvent | undefined) => any) | undefined | undefined;
80
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
81
+ $attrs: {
82
+ [x: string]: unknown;
83
+ };
84
+ $refs: {
85
+ [x: string]: unknown;
86
+ };
87
+ $slots: Readonly<{
88
+ [name: string]: import('vue').Slot<any> | undefined;
89
+ }>;
90
+ $root: import('vue').ComponentPublicInstance | null;
91
+ $parent: import('vue').ComponentPublicInstance | null;
92
+ $host: Element | null;
93
+ $emit: ((event: "input", value: string) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "change", value: string, evt?: Event | undefined) => void) & ((event: "compositionend", evt: CompositionEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "clear", evt: MouseEvent | undefined) => void) & ((event: "update:modelValue", value: string) => void);
94
+ $el: any;
95
+ $options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').InputProps> & Readonly<{
96
+ onBlur?: ((evt: FocusEvent) => any) | undefined;
97
+ onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
98
+ onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
99
+ onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
100
+ onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
101
+ onFocus?: ((evt: FocusEvent) => any) | undefined;
102
+ onInput?: ((value: string) => any) | undefined;
103
+ onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
104
+ onMouseenter?: ((evt: MouseEvent) => any) | undefined;
105
+ onMouseleave?: ((evt: MouseEvent) => any) | undefined;
106
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
107
+ onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
108
+ }>, {
109
+ input: import('vue').ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
110
+ textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
111
+ ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
112
+ textareaStyle: import('vue').ComputedRef<import('vue').StyleValue>;
113
+ autosize: import('vue').Ref<import('element-plus').InputAutoSize | undefined, import('element-plus').InputAutoSize | undefined>;
114
+ isComposing: import('vue').Ref<boolean, boolean>;
115
+ passwordVisible: import('vue').Ref<boolean, boolean>;
116
+ focus: () => void | undefined;
117
+ blur: () => void | undefined;
118
+ select: () => void;
119
+ clear: (evt?: MouseEvent) => void;
120
+ resizeTextarea: () => void;
121
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
122
+ blur: (evt: FocusEvent) => void;
123
+ change: (value: string, evt?: Event | undefined) => void;
124
+ compositionend: (evt: CompositionEvent) => void;
125
+ compositionstart: (evt: CompositionEvent) => void;
126
+ compositionupdate: (evt: CompositionEvent) => void;
127
+ focus: (evt: FocusEvent) => void;
128
+ input: (value: string) => void;
129
+ keydown: (evt: Event | KeyboardEvent) => void;
130
+ mouseenter: (evt: MouseEvent) => void;
131
+ mouseleave: (evt: MouseEvent) => void;
132
+ "update:modelValue": (value: string) => void;
133
+ clear: (evt: MouseEvent | undefined) => void;
134
+ }, string, {
135
+ type: import('element-plus').InputType;
136
+ disabled: boolean;
137
+ modelValue: string | number | null;
138
+ modelModifiers: import('element-plus').InputModelModifiers;
139
+ autocomplete: string;
140
+ clearIcon: import('element-plus/es/utils/index.mjs').IconPropType;
141
+ wordLimitPosition: "inside" | "outside";
142
+ tabindex: string | number;
143
+ validateEvent: boolean;
144
+ inputStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
145
+ rows: number;
146
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
147
+ beforeCreate?: (() => void) | (() => void)[];
148
+ created?: (() => void) | (() => void)[];
149
+ beforeMount?: (() => void) | (() => void)[];
150
+ mounted?: (() => void) | (() => void)[];
151
+ beforeUpdate?: (() => void) | (() => void)[];
152
+ updated?: (() => void) | (() => void)[];
153
+ activated?: (() => void) | (() => void)[];
154
+ deactivated?: (() => void) | (() => void)[];
155
+ beforeDestroy?: (() => void) | (() => void)[];
156
+ beforeUnmount?: (() => void) | (() => void)[];
157
+ destroyed?: (() => void) | (() => void)[];
158
+ unmounted?: (() => void) | (() => void)[];
159
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
160
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
161
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
162
+ };
163
+ $forceUpdate: () => void;
164
+ $nextTick: typeof import('vue').nextTick;
165
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
166
+ } & Readonly<{
167
+ type: import('element-plus').InputType;
168
+ disabled: boolean;
169
+ modelValue: string | number | null;
170
+ modelModifiers: import('element-plus').InputModelModifiers;
171
+ autocomplete: string;
172
+ clearIcon: import('element-plus/es/utils/index.mjs').IconPropType;
173
+ wordLimitPosition: "inside" | "outside";
174
+ tabindex: string | number;
175
+ validateEvent: boolean;
176
+ inputStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
177
+ rows: number;
178
+ }> & Omit<Readonly<import('element-plus').InputProps> & Readonly<{
179
+ onBlur?: ((evt: FocusEvent) => any) | undefined;
180
+ onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
181
+ onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
182
+ onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
183
+ onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
184
+ onFocus?: ((evt: FocusEvent) => any) | undefined;
185
+ onInput?: ((value: string) => any) | undefined;
186
+ onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
187
+ onMouseenter?: ((evt: MouseEvent) => any) | undefined;
188
+ onMouseleave?: ((evt: MouseEvent) => any) | undefined;
189
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
190
+ onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
191
+ }>, "type" | "input" | "select" | "textarea" | "blur" | "focus" | "disabled" | "clear" | "ref" | "tabindex" | "modelValue" | "validateEvent" | "autocomplete" | "clearIcon" | "inputStyle" | "modelModifiers" | "autosize" | "wordLimitPosition" | "rows" | "textareaStyle" | "isComposing" | "passwordVisible" | "resizeTextarea"> & import('vue').ShallowUnwrapRef<{
192
+ input: import('vue').ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
193
+ textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
194
+ ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
195
+ textareaStyle: import('vue').ComputedRef<import('vue').StyleValue>;
196
+ autosize: import('vue').Ref<import('element-plus').InputAutoSize | undefined, import('element-plus').InputAutoSize | undefined>;
197
+ isComposing: import('vue').Ref<boolean, boolean>;
198
+ passwordVisible: import('vue').Ref<boolean, boolean>;
199
+ focus: () => void | undefined;
200
+ blur: () => void | undefined;
201
+ select: () => void;
202
+ clear: (evt?: MouseEvent) => void;
203
+ resizeTextarea: () => void;
204
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
205
+ $slots: {
206
+ prepend?: (props: {}) => any;
207
+ } & {
208
+ prefix?: (props: {}) => any;
209
+ } & {
210
+ suffix?: (props: {}) => any;
211
+ } & {
212
+ 'password-icon'?: (props: {
213
+ visible: boolean;
214
+ }) => any;
215
+ } & {
216
+ append?: (props: {}) => any;
217
+ };
218
+ }) | null;
219
+ };
220
+ rootEl: any;
221
+ };
222
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
223
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
224
+ input: import('vue').ComputedRef<HTMLInputElement | undefined>;
225
+ textarea: import('vue').ComputedRef<HTMLTextAreaElement | undefined>;
226
+ ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
227
+ textareaStyle: import('vue').ComputedRef<import('vue').StyleValue>;
228
+ autosize: import('vue').ComputedRef<import('element-plus').InputAutoSize | undefined>;
229
+ isComposing: import('vue').ComputedRef<boolean | undefined>;
230
+ passwordVisible: import('vue').ComputedRef<boolean | undefined>;
231
+ focus: typeof focus;
232
+ blur: typeof blur;
233
+ select: typeof select;
234
+ clear: typeof clear;
235
+ resizeTextarea: typeof resizeTextarea;
236
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
237
+ inputRef: ({
238
+ $: import('vue').ComponentInternalInstance;
239
+ $data: {};
240
+ $props: {
241
+ readonly id?: string | undefined;
242
+ readonly size?: import('element-plus').ComponentSize | undefined;
243
+ readonly disabled?: boolean | undefined;
244
+ readonly modelValue?: string | number | null | undefined | undefined;
245
+ readonly modelModifiers?: import('element-plus').InputModelModifiers | undefined;
246
+ readonly maxlength?: string | number | undefined;
247
+ readonly minlength?: string | number | undefined;
248
+ readonly type?: import('element-plus').InputType | undefined;
249
+ readonly resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
250
+ readonly autosize?: import('element-plus').InputAutoSize | undefined;
251
+ readonly autocomplete?: string | undefined;
252
+ readonly formatter?: ((value: string) => string) | undefined;
253
+ readonly parser?: ((value: string) => string) | undefined;
254
+ readonly placeholder?: string | undefined;
255
+ readonly form?: string | undefined;
256
+ readonly readonly?: boolean | undefined;
257
+ readonly clearable?: boolean | undefined;
258
+ readonly clearIcon?: import('element-plus/es/utils/index.mjs').IconPropType | undefined;
259
+ readonly showPassword?: boolean | undefined;
260
+ readonly showWordLimit?: boolean | undefined;
261
+ readonly wordLimitPosition?: "inside" | "outside" | undefined;
262
+ readonly suffixIcon?: import('element-plus/es/utils/index.mjs').IconPropType | undefined;
263
+ readonly prefixIcon?: import('element-plus/es/utils/index.mjs').IconPropType | undefined;
264
+ readonly containerRole?: string | undefined;
265
+ readonly tabindex?: string | number | undefined;
266
+ readonly validateEvent?: boolean | undefined;
267
+ readonly inputStyle?: import('vue').StyleValue;
268
+ readonly autofocus?: boolean | undefined;
269
+ readonly rows?: number | undefined;
270
+ readonly ariaLabel?: string | undefined;
271
+ readonly inputmode?: "search" | "none" | "url" | "text" | "tel" | "email" | "numeric" | "decimal" | undefined;
272
+ readonly name?: string | undefined;
273
+ readonly countGraphemes?: ((value: string) => number) | undefined;
274
+ readonly onBlur?: ((evt: FocusEvent) => any) | undefined | undefined;
275
+ readonly onChange?: ((value: string, evt?: Event | undefined) => any) | undefined | undefined;
276
+ readonly onCompositionend?: ((evt: CompositionEvent) => any) | undefined | undefined;
277
+ readonly onCompositionstart?: ((evt: CompositionEvent) => any) | undefined | undefined;
278
+ readonly onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined | undefined;
279
+ readonly onFocus?: ((evt: FocusEvent) => any) | undefined | undefined;
280
+ readonly onInput?: ((value: string) => any) | undefined | undefined;
281
+ readonly onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined | undefined;
282
+ readonly onMouseenter?: ((evt: MouseEvent) => any) | undefined | undefined;
283
+ readonly onMouseleave?: ((evt: MouseEvent) => any) | undefined | undefined;
284
+ readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined | undefined;
285
+ readonly onClear?: ((evt: MouseEvent | undefined) => any) | undefined | undefined;
286
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
287
+ $attrs: {
288
+ [x: string]: unknown;
289
+ };
290
+ $refs: {
291
+ [x: string]: unknown;
292
+ };
293
+ $slots: Readonly<{
294
+ [name: string]: import('vue').Slot<any> | undefined;
295
+ }>;
296
+ $root: import('vue').ComponentPublicInstance | null;
297
+ $parent: import('vue').ComponentPublicInstance | null;
298
+ $host: Element | null;
299
+ $emit: ((event: "input", value: string) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "change", value: string, evt?: Event | undefined) => void) & ((event: "compositionend", evt: CompositionEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "clear", evt: MouseEvent | undefined) => void) & ((event: "update:modelValue", value: string) => void);
300
+ $el: any;
301
+ $options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').InputProps> & Readonly<{
302
+ onBlur?: ((evt: FocusEvent) => any) | undefined;
303
+ onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
304
+ onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
305
+ onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
306
+ onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
307
+ onFocus?: ((evt: FocusEvent) => any) | undefined;
308
+ onInput?: ((value: string) => any) | undefined;
309
+ onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
310
+ onMouseenter?: ((evt: MouseEvent) => any) | undefined;
311
+ onMouseleave?: ((evt: MouseEvent) => any) | undefined;
312
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
313
+ onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
314
+ }>, {
315
+ input: import('vue').ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
316
+ textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
317
+ ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
318
+ textareaStyle: import('vue').ComputedRef<import('vue').StyleValue>;
319
+ autosize: import('vue').Ref<import('element-plus').InputAutoSize | undefined, import('element-plus').InputAutoSize | undefined>;
320
+ isComposing: import('vue').Ref<boolean, boolean>;
321
+ passwordVisible: import('vue').Ref<boolean, boolean>;
322
+ focus: () => void | undefined;
323
+ blur: () => void | undefined;
324
+ select: () => void;
325
+ clear: (evt?: MouseEvent) => void;
326
+ resizeTextarea: () => void;
327
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
328
+ blur: (evt: FocusEvent) => void;
329
+ change: (value: string, evt?: Event | undefined) => void;
330
+ compositionend: (evt: CompositionEvent) => void;
331
+ compositionstart: (evt: CompositionEvent) => void;
332
+ compositionupdate: (evt: CompositionEvent) => void;
333
+ focus: (evt: FocusEvent) => void;
334
+ input: (value: string) => void;
335
+ keydown: (evt: Event | KeyboardEvent) => void;
336
+ mouseenter: (evt: MouseEvent) => void;
337
+ mouseleave: (evt: MouseEvent) => void;
338
+ "update:modelValue": (value: string) => void;
339
+ clear: (evt: MouseEvent | undefined) => void;
340
+ }, string, {
341
+ type: import('element-plus').InputType;
342
+ disabled: boolean;
343
+ modelValue: string | number | null;
344
+ modelModifiers: import('element-plus').InputModelModifiers;
345
+ autocomplete: string;
346
+ clearIcon: import('element-plus/es/utils/index.mjs').IconPropType;
347
+ wordLimitPosition: "inside" | "outside";
348
+ tabindex: string | number;
349
+ validateEvent: boolean;
350
+ inputStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
351
+ rows: number;
352
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
353
+ beforeCreate?: (() => void) | (() => void)[];
354
+ created?: (() => void) | (() => void)[];
355
+ beforeMount?: (() => void) | (() => void)[];
356
+ mounted?: (() => void) | (() => void)[];
357
+ beforeUpdate?: (() => void) | (() => void)[];
358
+ updated?: (() => void) | (() => void)[];
359
+ activated?: (() => void) | (() => void)[];
360
+ deactivated?: (() => void) | (() => void)[];
361
+ beforeDestroy?: (() => void) | (() => void)[];
362
+ beforeUnmount?: (() => void) | (() => void)[];
363
+ destroyed?: (() => void) | (() => void)[];
364
+ unmounted?: (() => void) | (() => void)[];
365
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
366
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
367
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
368
+ };
369
+ $forceUpdate: () => void;
370
+ $nextTick: typeof import('vue').nextTick;
371
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
372
+ } & Readonly<{
373
+ type: import('element-plus').InputType;
374
+ disabled: boolean;
375
+ modelValue: string | number | null;
376
+ modelModifiers: import('element-plus').InputModelModifiers;
377
+ autocomplete: string;
378
+ clearIcon: import('element-plus/es/utils/index.mjs').IconPropType;
379
+ wordLimitPosition: "inside" | "outside";
380
+ tabindex: string | number;
381
+ validateEvent: boolean;
382
+ inputStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
383
+ rows: number;
384
+ }> & Omit<Readonly<import('element-plus').InputProps> & Readonly<{
385
+ onBlur?: ((evt: FocusEvent) => any) | undefined;
386
+ onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
387
+ onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
388
+ onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
389
+ onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
390
+ onFocus?: ((evt: FocusEvent) => any) | undefined;
391
+ onInput?: ((value: string) => any) | undefined;
392
+ onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
393
+ onMouseenter?: ((evt: MouseEvent) => any) | undefined;
394
+ onMouseleave?: ((evt: MouseEvent) => any) | undefined;
395
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
396
+ onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
397
+ }>, "type" | "input" | "select" | "textarea" | "blur" | "focus" | "disabled" | "clear" | "ref" | "tabindex" | "modelValue" | "validateEvent" | "autocomplete" | "clearIcon" | "inputStyle" | "modelModifiers" | "autosize" | "wordLimitPosition" | "rows" | "textareaStyle" | "isComposing" | "passwordVisible" | "resizeTextarea"> & import('vue').ShallowUnwrapRef<{
398
+ input: import('vue').ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
399
+ textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
400
+ ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
401
+ textareaStyle: import('vue').ComputedRef<import('vue').StyleValue>;
402
+ autosize: import('vue').Ref<import('element-plus').InputAutoSize | undefined, import('element-plus').InputAutoSize | undefined>;
403
+ isComposing: import('vue').Ref<boolean, boolean>;
404
+ passwordVisible: import('vue').Ref<boolean, boolean>;
405
+ focus: () => void | undefined;
406
+ blur: () => void | undefined;
407
+ select: () => void;
408
+ clear: (evt?: MouseEvent) => void;
409
+ resizeTextarea: () => void;
410
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
411
+ $slots: {
412
+ prepend?: (props: {}) => any;
413
+ } & {
414
+ prefix?: (props: {}) => any;
415
+ } & {
416
+ suffix?: (props: {}) => any;
417
+ } & {
418
+ 'password-icon'?: (props: {
419
+ visible: boolean;
420
+ }) => any;
421
+ } & {
422
+ append?: (props: {}) => any;
423
+ };
424
+ }) | null;
425
+ }, any>;
426
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
427
+ export default _default;
428
+ type __VLS_WithTemplateSlots<T, S> = T & {
429
+ new (): {
430
+ $slots: S;
431
+ };
432
+ };
@@ -148,7 +148,7 @@ export declare class FormApi {
148
148
  * @param actions 操作方法
149
149
  */
150
150
  registerArrayField(name: string, actions: ResolvedFieldArrayContext): void;
151
- unregisterArrayField(name: string): void;
151
+ unregisterArrayField(name: string, actions?: ResolvedFieldArrayContext): void;
152
152
  /** @description 数组字段操作集合 */
153
153
  get arrayAction(): {
154
154
  /**
@@ -120,6 +120,8 @@ export interface ArraySchemaContext {
120
120
  form?: Record<string, unknown>;
121
121
  /** 嵌套场景下父行路径,如 `passengerList[0]`;顶层数组时为 undefined */
122
122
  parentItemPath?: string;
123
+ /** 当前数组长度 */
124
+ arrayLength: number;
123
125
  }
124
126
  export type FormActions = FormContext<GenericObject> & {
125
127
  arrayAction?: FormArrayActions;