@kmkf-fe-packages/basic-components 2.0.54 → 2.0.55

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.esm.js CHANGED
@@ -12548,9 +12548,7 @@ var useGetColumns = (function (type) {
12548
12548
  loading = _useState4[0],
12549
12549
  setLoading = _useState4[1];
12550
12550
  var showColumnsDataIndexList = useMemo(function () {
12551
- return columns.filter(function (item) {
12552
- return Object.hasOwn(item, 'dataIndex');
12553
- }).map(function (item) {
12551
+ return columns.map(function (item) {
12554
12552
  return item.dataIndex;
12555
12553
  });
12556
12554
  }, [columns]);
package/dist/index.js CHANGED
@@ -12560,9 +12560,7 @@ var useGetColumns = (function (type) {
12560
12560
  loading = _useState4[0],
12561
12561
  setLoading = _useState4[1];
12562
12562
  var showColumnsDataIndexList = React.useMemo(function () {
12563
- return columns.filter(function (item) {
12564
- return Object.hasOwn(item, 'dataIndex');
12565
- }).map(function (item) {
12563
+ return columns.map(function (item) {
12566
12564
  return item.dataIndex;
12567
12565
  });
12568
12566
  }, [columns]);
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { ColumnsType } from 'antd/es/table';
2
+ import type { ColumnType } from 'antd/es/table';
3
3
  type ColumnItemType = {
4
4
  dataIndex: string;
5
5
  title: string;
@@ -7,5 +7,5 @@ type ColumnItemType = {
7
7
  width?: number;
8
8
  show?: boolean;
9
9
  };
10
- declare const _default: (type: string) => [ColumnsType<ColumnItemType>, string[], boolean];
10
+ declare const _default: (type: string) => [ColumnType<ColumnItemType>[], string[], boolean];
11
11
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "2.0.54",
3
+ "version": "2.0.55",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -20,7 +20,7 @@
20
20
  "watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
21
21
  },
22
22
  "dependencies": {
23
- "@kmkf-fe-packages/kmkf-utils": "2.0.54",
23
+ "@kmkf-fe-packages/kmkf-utils": "2.0.55",
24
24
  "ahooks": "^3.7.4",
25
25
  "bignumber.js": "^9.1.2",
26
26
  "kmkf-monitor": "^0.8.9",
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "67e965ffb447b6c6fc0bddb1c2ef9d78edf5f93a"
68
+ "gitHead": "17280f003e2ecbdc5dd3316b1196c6b10d78c0f4"
69
69
  }