listpage-next 0.0.208 → 0.0.209

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.
@@ -3,8 +3,16 @@ import { renders } from "../components/DataTable/renders/index.js";
3
3
  function useColumns(columns) {
4
4
  const ctx = useListPageStore();
5
5
  return columns.map((column)=>{
6
- if (!column.render && column.component) column.render = createColumnRender(column.component, column.props, ctx);
7
- return column;
6
+ if (column.component) {
7
+ const render = createColumnRender(column.component, column.props, ctx);
8
+ return {
9
+ ...column,
10
+ render
11
+ };
12
+ }
13
+ return {
14
+ ...column
15
+ };
8
16
  });
9
17
  }
10
18
  function createColumnRender(component, props, ctx) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "listpage-next",
3
- "version": "0.0.208",
3
+ "version": "0.0.209",
4
4
  "description": "A React component library for creating filter forms with Ant Design",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",