@dazhicheng/ui 1.5.172 → 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.
@@ -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;