@cloudtower/eagle 0.33.24 → 0.33.26
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/AddRowButton.js +2 -2
- package/dist/cjs/core/TableForm/index.js +21 -6
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +2629 -2629
- package/dist/esm/core/TableForm/AddRowButton.js +2 -2
- package/dist/esm/core/TableForm/index.js +21 -6
- package/dist/esm/stats1.html +1 -1
- package/dist/linaria.merged.scss +3139 -3139
- package/dist/src/core/TableForm/types.d.ts +7 -2
- package/dist/style.css +2367 -2367
- package/package.json +4 -4
|
@@ -123,7 +123,7 @@ export interface ColumnBodyCellProps {
|
|
|
123
123
|
export type AddRowButtonProps = {
|
|
124
124
|
config: RowAddConfigurations;
|
|
125
125
|
columns: TableFormColumn[];
|
|
126
|
-
|
|
126
|
+
addData: (data: DataType[]) => void;
|
|
127
127
|
data: DataType[];
|
|
128
128
|
};
|
|
129
129
|
export type RowAddConfigurations = {
|
|
@@ -240,11 +240,15 @@ export type TableFormProps = {
|
|
|
240
240
|
/**
|
|
241
241
|
* 表格头部数据失去焦点时的回调
|
|
242
242
|
*/
|
|
243
|
-
onHeaderBlur?: (data: any[]) => void;
|
|
243
|
+
onHeaderBlur?: (data: any[], columnKey: string) => void;
|
|
244
244
|
/**
|
|
245
245
|
* 表格行数据变化的回调
|
|
246
246
|
*/
|
|
247
247
|
onBodyChange?: (value: DataType[], rowIndex?: number, columnKey?: string) => void;
|
|
248
|
+
/**
|
|
249
|
+
* 表格行数据添加的回调
|
|
250
|
+
*/
|
|
251
|
+
onBodyAdd?: (value: DataType[], rowIndex: number) => void;
|
|
248
252
|
/**
|
|
249
253
|
* 表格行数据失去焦点时的回调
|
|
250
254
|
*/
|
|
@@ -256,6 +260,7 @@ export type TableFormProps = {
|
|
|
256
260
|
};
|
|
257
261
|
export type TableFormHandle = {
|
|
258
262
|
setData: (data: DataType[]) => void;
|
|
263
|
+
setDataWithoutTriggerChange: (data: DataType[]) => void;
|
|
259
264
|
validateWholeFields: () => void;
|
|
260
265
|
isValid: () => boolean;
|
|
261
266
|
};
|