react-ui89 0.7.0 → 0.7.2
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,15 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
interface Ui89VirtualTableColumnRenderHeaderParams<T> {
|
|
2
|
+
export interface Ui89VirtualTableColumnRenderHeaderParams<T> {
|
|
3
3
|
index: number;
|
|
4
4
|
column: Ui89VirtualTableColumn<T>;
|
|
5
5
|
}
|
|
6
|
-
interface Ui89VirtualTableColumnRenderBodyParams<T> {
|
|
6
|
+
export interface Ui89VirtualTableColumnRenderBodyParams<T> {
|
|
7
7
|
index: number;
|
|
8
8
|
row: T;
|
|
9
9
|
}
|
|
10
10
|
export interface Ui89VirtualTableColumn<T> {
|
|
11
11
|
width?: number;
|
|
12
|
-
renderHeader
|
|
12
|
+
renderHeader?: React.FC<Ui89VirtualTableColumnRenderHeaderParams<T>>;
|
|
13
13
|
renderBody: React.FC<Ui89VirtualTableColumnRenderBodyParams<T>>;
|
|
14
14
|
}
|
|
15
15
|
export interface Ui89VirtualTableProps<T> {
|
|
@@ -18,4 +18,3 @@ export interface Ui89VirtualTableProps<T> {
|
|
|
18
18
|
rowHeight?: number;
|
|
19
19
|
}
|
|
20
20
|
export declare function Ui89VirtualTable<T>(props: Ui89VirtualTableProps<T>): React.JSX.Element;
|
|
21
|
-
export {};
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -13,3 +13,4 @@ export { Ui89TagBox } from "./components/Ui89TagBox";
|
|
|
13
13
|
export { Ui89TitleBox } from "./components/Ui89TitleBox";
|
|
14
14
|
export { Ui89TitleUnderline } from "./components/Ui89TitleUnderline";
|
|
15
15
|
export { Ui89VirtualTable } from "./components/Ui89VirtualTable";
|
|
16
|
+
export type { Ui89VirtualTableColumnRenderHeaderParams, Ui89VirtualTableColumnRenderBodyParams, Ui89VirtualTableColumn, Ui89VirtualTableProps, } from "./components/Ui89VirtualTable";
|
package/dist/esm/index.js
CHANGED
|
@@ -35839,8 +35839,7 @@ function Ui89VirtualTable(props) {
|
|
|
35839
35839
|
left: getColumnHorizontalOffset(index),
|
|
35840
35840
|
width: getColumnWidth(index) + "px",
|
|
35841
35841
|
height: getRowHeight(0) + "px",
|
|
35842
|
-
} },
|
|
35843
|
-
React__default.createElement(column.renderHeader, { index: index, column: column }))))),
|
|
35842
|
+
} }, column.renderHeader !== undefined && (React__default.createElement(column.renderHeader, { index: index, column: column })))))),
|
|
35844
35843
|
children)));
|
|
35845
35844
|
return (React__default.createElement("div", { className: styles.table }, rows.length > 0 ? (React__default.createElement("div", { className: styles.tableBody },
|
|
35846
35845
|
React__default.createElement(AutoSizer, null, ({ height, width }) => (React__default.createElement(VariableSizeGrid, { columnCount: columns.length, columnWidth: getColumnWidth, rowCount: rows.length + 1, rowHeight: getRowHeight, width: width, height: height, innerElementType: innerElementType }, ({ columnIndex, rowIndex, style }) => (React__default.createElement("div", { className: getColumnClass(columnIndex, rowIndex), style: style }, rowIndex !== 0 &&
|