@underverse-ui/underverse 0.2.74 → 0.2.76
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/index.cjs +403 -156
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js +403 -156
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1658,9 +1658,12 @@ type FilterType = "text" | "select" | "date";
|
|
|
1658
1658
|
type DataTableColumn<T> = {
|
|
1659
1659
|
key: string;
|
|
1660
1660
|
title: React__default.ReactNode;
|
|
1661
|
+
/** Multi-row header support: Columns can be grouped by defining children.
|
|
1662
|
+
* Group columns (with children) are header-only and don't render data.
|
|
1663
|
+
* Leaf columns (without children) render data and support sort/filter/render.
|
|
1664
|
+
*/
|
|
1665
|
+
children?: DataTableColumn<T>[];
|
|
1661
1666
|
dataIndex?: keyof T | string;
|
|
1662
|
-
width?: number | string;
|
|
1663
|
-
align?: "left" | "center" | "right";
|
|
1664
1667
|
sortable?: boolean;
|
|
1665
1668
|
filter?: {
|
|
1666
1669
|
type: FilterType;
|
|
@@ -1668,9 +1671,15 @@ type DataTableColumn<T> = {
|
|
|
1668
1671
|
placeholder?: string;
|
|
1669
1672
|
};
|
|
1670
1673
|
render?: (value: any, record: T, index: number) => React__default.ReactNode;
|
|
1674
|
+
width?: number | string;
|
|
1675
|
+
align?: "left" | "center" | "right";
|
|
1671
1676
|
visible?: boolean;
|
|
1672
1677
|
/** Cố định cột bên trái hoặc phải khi cuộn ngang */
|
|
1673
1678
|
fixed?: "left" | "right";
|
|
1679
|
+
/** Advanced: Override auto-calculated colspan (defaults to number of leaf descendants) */
|
|
1680
|
+
colSpan?: number;
|
|
1681
|
+
/** Advanced: Override auto-calculated rowspan (defaults based on depth) */
|
|
1682
|
+
rowSpan?: number;
|
|
1674
1683
|
};
|
|
1675
1684
|
type Sorter = {
|
|
1676
1685
|
key: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1658,9 +1658,12 @@ type FilterType = "text" | "select" | "date";
|
|
|
1658
1658
|
type DataTableColumn<T> = {
|
|
1659
1659
|
key: string;
|
|
1660
1660
|
title: React__default.ReactNode;
|
|
1661
|
+
/** Multi-row header support: Columns can be grouped by defining children.
|
|
1662
|
+
* Group columns (with children) are header-only and don't render data.
|
|
1663
|
+
* Leaf columns (without children) render data and support sort/filter/render.
|
|
1664
|
+
*/
|
|
1665
|
+
children?: DataTableColumn<T>[];
|
|
1661
1666
|
dataIndex?: keyof T | string;
|
|
1662
|
-
width?: number | string;
|
|
1663
|
-
align?: "left" | "center" | "right";
|
|
1664
1667
|
sortable?: boolean;
|
|
1665
1668
|
filter?: {
|
|
1666
1669
|
type: FilterType;
|
|
@@ -1668,9 +1671,15 @@ type DataTableColumn<T> = {
|
|
|
1668
1671
|
placeholder?: string;
|
|
1669
1672
|
};
|
|
1670
1673
|
render?: (value: any, record: T, index: number) => React__default.ReactNode;
|
|
1674
|
+
width?: number | string;
|
|
1675
|
+
align?: "left" | "center" | "right";
|
|
1671
1676
|
visible?: boolean;
|
|
1672
1677
|
/** Cố định cột bên trái hoặc phải khi cuộn ngang */
|
|
1673
1678
|
fixed?: "left" | "right";
|
|
1679
|
+
/** Advanced: Override auto-calculated colspan (defaults to number of leaf descendants) */
|
|
1680
|
+
colSpan?: number;
|
|
1681
|
+
/** Advanced: Override auto-calculated rowspan (defaults based on depth) */
|
|
1682
|
+
rowSpan?: number;
|
|
1674
1683
|
};
|
|
1675
1684
|
type Sorter = {
|
|
1676
1685
|
key: string;
|