@kmkf-fe-packages/basic-components 1.22.1-beta.29 → 1.22.1-beta.30
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 +4 -2
- package/dist/index.js +4 -2
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -13783,11 +13783,13 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13783
13783
|
var newColumns = useMemo(function () {
|
|
13784
13784
|
var initBaseInfoColumns = GOODS_INFO_COLUMNS();
|
|
13785
13785
|
var baseInfoColumns = [];
|
|
13786
|
-
|
|
13786
|
+
var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === 'string';
|
|
13787
|
+
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
|
|
13788
|
+
if (isStringArray) {
|
|
13787
13789
|
baseInfoColumns = initBaseInfoColumns.filter(function (col) {
|
|
13788
13790
|
return showHeader.includes(col.dataIndex);
|
|
13789
13791
|
});
|
|
13790
|
-
} else if (
|
|
13792
|
+
} else if (isObjectArray) {
|
|
13791
13793
|
baseInfoColumns = showHeader.filter(function (col) {
|
|
13792
13794
|
return col.show !== false;
|
|
13793
13795
|
}).map(function (col) {
|
package/dist/index.js
CHANGED
|
@@ -13795,11 +13795,13 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13795
13795
|
var newColumns = React.useMemo(function () {
|
|
13796
13796
|
var initBaseInfoColumns = GOODS_INFO_COLUMNS();
|
|
13797
13797
|
var baseInfoColumns = [];
|
|
13798
|
-
|
|
13798
|
+
var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === 'string';
|
|
13799
|
+
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
|
|
13800
|
+
if (isStringArray) {
|
|
13799
13801
|
baseInfoColumns = initBaseInfoColumns.filter(function (col) {
|
|
13800
13802
|
return showHeader.includes(col.dataIndex);
|
|
13801
13803
|
});
|
|
13802
|
-
} else if (
|
|
13804
|
+
} else if (isObjectArray) {
|
|
13803
13805
|
baseInfoColumns = showHeader.filter(function (col) {
|
|
13804
13806
|
return col.show !== false;
|
|
13805
13807
|
}).map(function (col) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "1.22.1-beta.
|
|
3
|
+
"version": "1.22.1-beta.30",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "8d26bee7020e95ce43b335b77a2fea827b739c53"
|
|
69
69
|
}
|