next-helios-fe 1.6.7 → 1.6.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-helios-fe",
3
- "version": "1.6.7",
3
+ "version": "1.6.9",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,6 +11,7 @@ interface TableProps {
11
11
  header: {
12
12
  title: string;
13
13
  key: string;
14
+ defaultHide?: boolean;
14
15
  type?: "basic" | "category" | string;
15
16
  render?: (item: any) => React.ReactNode;
16
17
  }[];
@@ -125,6 +126,12 @@ export const Table: TableComponentProps = ({
125
126
  }
126
127
  }, [selected]);
127
128
 
129
+ useEffect(() => {
130
+ const tempExcludedColumn = header.filter((item) => item.defaultHide);
131
+
132
+ setExcludedColumn(tempExcludedColumn.map((item) => item.key));
133
+ }, []);
134
+
128
135
  useEffect(() => {
129
136
  setFilter(
130
137
  header?.map((item) => {