@dazhicheng/ui 1.5.171 → 1.5.173
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.
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { VNodeChild } from 'vue';
|
|
2
1
|
import { Recordable } from '../../../../../../../utils/src';
|
|
3
2
|
import { ArraySchemaContext, FormSchema } from '../../types';
|
|
4
3
|
import { FieldEntry } from '../../types/forms';
|
|
@@ -13,7 +12,7 @@ export declare const FormArrayRegister: import('vue').DefineComponent<{
|
|
|
13
12
|
rules?: import('../../types').FormSchemaRuleType | undefined;
|
|
14
13
|
formItemClass?: (() => string) | string | undefined;
|
|
15
14
|
virtual?: boolean | undefined;
|
|
16
|
-
}, () =>
|
|
15
|
+
}, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
17
16
|
disabled?: boolean | undefined;
|
|
18
17
|
hide?: boolean | undefined;
|
|
19
18
|
defaultValue?: any;
|
|
@@ -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;
|