@kmkf-fe-packages/basic-components 2.0.54-beta.7 → 2.0.54-beta.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/dist/index.esm.js CHANGED
@@ -12591,9 +12591,7 @@ var useGetColumns = (function (type) {
12591
12591
  loading = _useState4[0],
12592
12592
  setLoading = _useState4[1];
12593
12593
  var showColumnsDataIndexList = useMemo(function () {
12594
- return columns.filter(function (item) {
12595
- return Object.hasOwn(item, 'dataIndex');
12596
- }).map(function (item) {
12594
+ return columns.map(function (item) {
12597
12595
  return item.dataIndex;
12598
12596
  });
12599
12597
  }, [columns]);
package/dist/index.js CHANGED
@@ -12603,9 +12603,7 @@ var useGetColumns = (function (type) {
12603
12603
  loading = _useState4[0],
12604
12604
  setLoading = _useState4[1];
12605
12605
  var showColumnsDataIndexList = React.useMemo(function () {
12606
- return columns.filter(function (item) {
12607
- return Object.hasOwn(item, 'dataIndex');
12608
- }).map(function (item) {
12606
+ return columns.map(function (item) {
12609
12607
  return item.dataIndex;
12610
12608
  });
12611
12609
  }, [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-beta.7",
3
+ "version": "2.0.54-beta.9",
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-beta.5",
23
+ "@kmkf-fe-packages/kmkf-utils": "2.0.54-beta.9",
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": "f75935f605b3cbf433d08f5f54babf4eccd95958"
68
+ "gitHead": "17f78623bc60797fa9cc0c20ab87c7cd78854703"
69
69
  }