@guo514360255/antd-lib 1.4.30 → 1.4.32

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.
@@ -104,11 +104,26 @@ var CustomModal = /*#__PURE__*/forwardRef(function (props, ref) {
104
104
  _context2.next = 4;
105
105
  return getDetail(values.id);
106
106
  case 4:
107
- _context2.next = 7;
107
+ _context2.next = 16;
108
108
  break;
109
109
  case 6:
110
- setDetail(handleDetailData ? handleDetailData(values) : values);
111
- case 7:
110
+ _context2.t0 = setDetail;
111
+ if (!handleDetailData) {
112
+ _context2.next = 13;
113
+ break;
114
+ }
115
+ _context2.next = 10;
116
+ return handleDetailData(values);
117
+ case 10:
118
+ _context2.t1 = _context2.sent;
119
+ _context2.next = 14;
120
+ break;
121
+ case 13:
122
+ _context2.t1 = values;
123
+ case 14:
124
+ _context2.t2 = _context2.t1;
125
+ (0, _context2.t0)(_context2.t2);
126
+ case 16:
112
127
  case "end":
113
128
  return _context2.stop();
114
129
  }
@@ -46,7 +46,7 @@ export var buildTree = function buildTree(flatData) {
46
46
  var _id = _item[idKey];
47
47
  var parentId = _item[parentKey];
48
48
  var node = map.get(_id);
49
- if (parentId === rootParentValue || parentId == null || !map.has(parentId) || parentId === '0') {
49
+ if (parentId === rootParentValue || parentId === null || !map.has(parentId) || parentId === '0') {
50
50
  // 是根节点(parentId 为 null/undefined/指定值,或父节点不存在)
51
51
  roots.push(node);
52
52
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guo514360255/antd-lib",
3
- "version": "1.4.30",
3
+ "version": "1.4.32",
4
4
  "description": "react design 5 lib",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",
@@ -46,7 +46,6 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@babel/runtime": "^7.28.4",
49
- "@types/lodash": "^4.17.20",
50
49
  "crypto-js": "^4.2.0",
51
50
  "js-cookie": "^3.0.5",
52
51
  "lodash": "^4.17.21",
@@ -58,6 +57,7 @@
58
57
  "@commitlint/config-conventional": "^17.1.0",
59
58
  "@types/crypto-js": "^4.2.2",
60
59
  "@types/js-cookie": "^3.0.6",
60
+ "@types/lodash": "^4.17.20",
61
61
  "@types/react": "18.2.0",
62
62
  "@types/react-dom": "18.2.0",
63
63
  "@umijs/lint": "^4.0.0",
@@ -77,6 +77,7 @@
77
77
  "@ant-design/icons": "^6.1.0",
78
78
  "@ant-design/pro-components": "^2.8.10",
79
79
  "@ant-design/pro-table": "^3.x",
80
+ "@types/lodash": "^4.14.191",
80
81
  "antd": "^5.x",
81
82
  "antd-img-crop": "^4.27.0",
82
83
  "react": ">=16.9.0",