@kep-platform/basic-component 0.0.56 → 0.0.57

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.
@@ -39,7 +39,7 @@ declare global {
39
39
 
40
40
  type Condition = {
41
41
  attribute: string;
42
- condition: (value: any) => boolean;
42
+ condition?: (value: any) => boolean;
43
43
  description: string;
44
44
  };
45
45
 
@@ -79,6 +79,9 @@ var groupTreeNodeByPropertyName = function groupTreeNodeByPropertyName(condition
79
79
  var attribute = cond.attribute,
80
80
  condition = cond.condition,
81
81
  description = cond.description;
82
+ if (!condition) {
83
+ return description;
84
+ }
82
85
  return condition(item[attribute]) ? "".concat(description, ":\u662F") : "".concat(description, ":\u5426");
83
86
  }).join(' | ');
84
87
  if (!acc[key]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kep-platform/basic-component",
3
- "version": "0.0.56",
3
+ "version": "0.0.57",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@ant-design/icons": "^5.3.7",
50
- "@kep-platform/hooks": "^0.0.56",
50
+ "@kep-platform/hooks": "^0.0.57",
51
51
  "color": "^4.2.3",
52
52
  "rc-pagination": "^4.1.0"
53
53
  },
@@ -87,5 +87,5 @@
87
87
  "authors": [
88
88
  "less-step-jss 1599925910@qq.com"
89
89
  ],
90
- "gitHead": "d78f1b33a287d2c584cfc98c0daac159a49ab200"
90
+ "gitHead": "dbdddab5ad9f3286c9f67b0d98a54286ea6a52b6"
91
91
  }