@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.
- package/dist/cjs/core/TableForm/TableFormBodyCell.js +6 -3
- package/dist/cjs/core/TableForm/TableFormBodyRows.js +7 -2
- package/dist/cjs/core/TableForm/index.js +12 -1
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +1179 -1180
- package/dist/esm/core/TableForm/TableFormBodyCell.js +6 -3
- package/dist/esm/core/TableForm/TableFormBodyRows.js +7 -2
- package/dist/esm/core/TableForm/index.js +13 -2
- package/dist/esm/stats1.html +1 -1
- package/dist/src/core/Select/select.type.d.ts +1 -2
- package/dist/src/core/TableForm/types.d.ts +3 -0
- package/dist/style.css +1031 -1031
- package/package.json +4 -4
|
@@ -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
|
};
|