es-grid-template 1.9.56 → 1.9.57
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.
|
@@ -194,10 +194,10 @@ export declare const fixColumnsLeft: <RecordType>(columns: ColumnTable<RecordTyp
|
|
|
194
194
|
value: any;
|
|
195
195
|
rowData: RecordType;
|
|
196
196
|
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNode);
|
|
197
|
-
onCellStyles?: Omit<CSSProperties, "
|
|
198
|
-
onCellHeaderStyles?: Omit<CSSProperties, "
|
|
197
|
+
onCellStyles?: Omit<CSSProperties, "position" | "left" | "right" | "width" | "display" | "minWidth"> | ((cellValue: any, cell: import("@tanstack/react-table").Cell<RecordType, unknown>) => Omit<CSSProperties, "position" | "left" | "right" | "width" | "display" | "minWidth">);
|
|
198
|
+
onCellHeaderStyles?: Omit<CSSProperties, "position" | "left" | "right" | "width" | "display" | "minWidth"> | ((cell: import("@tanstack/react-table").Header<RecordType, unknown>) => Omit<CSSProperties, "position" | "left" | "right" | "width" | "display" | "minWidth">);
|
|
199
199
|
onCell?: (rowData: RecordType, index: number) => import("react").TdHTMLAttributes<HTMLTableCellElement>;
|
|
200
|
-
onCellFooterStyles?: Omit<CSSProperties, "
|
|
200
|
+
onCellFooterStyles?: Omit<CSSProperties, "position" | "left" | "right" | "width" | "display" | "minWidth"> | ((cellValue: any, cell: import("@tanstack/react-table").Header<RecordType, unknown>) => Omit<CSSProperties, "position" | "left" | "right" | "width" | "display" | "minWidth">);
|
|
201
201
|
getValue?: (row: any, rowIndex: number) => any;
|
|
202
202
|
getCellProps?: (value: any, row: any, rowIndex: number) => import("./../../grid-component/type").CellProps;
|
|
203
203
|
headerCellProps?: import("./../../grid-component/type").CellProps;
|
|
@@ -378,7 +378,7 @@ const TableContainerEdit = props => {
|
|
|
378
378
|
const targetRow = startRow + rowIndex;
|
|
379
379
|
|
|
380
380
|
// Nếu vượt quá số dòng hiện có, thêm dòng mới
|
|
381
|
-
if (targetRow
|
|
381
|
+
if (targetRow >= newData.length) {
|
|
382
382
|
const newID = newGuid();
|
|
383
383
|
const defaultRowValue = getDefaultValue(defaultValue);
|
|
384
384
|
newData.push(defaultValue ? {
|
|
@@ -377,7 +377,7 @@ const TableContainerEdit = props => {
|
|
|
377
377
|
const targetRow = startRow + rowIndex;
|
|
378
378
|
|
|
379
379
|
// Nếu vượt quá số dòng hiện có, thêm dòng mới
|
|
380
|
-
if (targetRow
|
|
380
|
+
if (targetRow >= newData.length) {
|
|
381
381
|
const newID = (0, _utils.newGuid)();
|
|
382
382
|
const defaultRowValue = (0, _utils.getDefaultValue)(defaultValue);
|
|
383
383
|
newData.push(defaultValue ? {
|