@cloudtower/eagle 0.31.17 → 0.31.19

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,8 +1,7 @@
1
1
  import { KitLegacySelectProps, LooseFieldRenderProps } from "../../core/LegacySelect";
2
2
  import React from "react";
3
- type KitSelectProps = KitLegacySelectProps & {
3
+ export type KitSelectProps = KitLegacySelectProps & {
4
4
  /** 是否正在加载 Select 组件的值 */
5
5
  isLoadingValue?: boolean;
6
6
  };
7
7
  export type SelectComponentType<V = any, T extends HTMLElement = HTMLElement> = React.FunctionComponent<LooseFieldRenderProps<V, T> & KitSelectProps>;
8
- export {};
@@ -117,6 +117,7 @@ export interface ColumnBodyCellProps {
117
117
  getRowValidateResult: (rowData: DataType) => string | undefined;
118
118
  validateAll: boolean;
119
119
  error?: string | null;
120
+ onValidate?: (id: string, isValid: boolean) => void;
120
121
  }
121
122
  export type AddRowButtonProps = {
122
123
  config: RowAddConfigurations;
@@ -140,6 +141,7 @@ export interface TableFormRowsProps extends Pick<TableFormProps, "columns" | "di
140
141
  validateAll: boolean;
141
142
  draggable?: boolean;
142
143
  rowSplitType?: TableFormRowSplitType;
144
+ onValidate?: (id: string, isValid: boolean) => void;
143
145
  }
144
146
  export type RenderRowDescriptionProps = {
145
147
  rowIndex: number;
@@ -254,4 +256,5 @@ export type TableFormProps = {
254
256
  export type TableFormHandle = {
255
257
  setData: (data: DataType[]) => void;
256
258
  validateWholeFields: () => void;
259
+ isValid: () => boolean;
257
260
  };