@kmkf-fe-packages/basic-components 2.3.0-rc.0 → 2.4.0-rc.0

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
@@ -8417,6 +8417,10 @@ var SubForm = function SubForm(props) {
8417
8417
  }
8418
8418
  });
8419
8419
  }
8420
+ if (maxCount && (value === null || value === void 0 ? void 0 : value.length) >= maxCount) {
8421
+ message.error("\u8BE5\u5B50\u8868\u5355\u6700\u591A\u6DFB\u52A0".concat(maxCount, "\u6761"));
8422
+ return;
8423
+ }
8420
8424
  onChange === null || onChange === void 0 ? void 0 : onChange([].concat(_toConsumableArray(value || []), [_objectSpread2(_objectSpread2({}, newValue), {}, {
8421
8425
  uuid: uuid()
8422
8426
  })]));
package/dist/index.js CHANGED
@@ -8429,6 +8429,10 @@ var SubForm = function SubForm(props) {
8429
8429
  }
8430
8430
  });
8431
8431
  }
8432
+ if (maxCount && (value === null || value === void 0 ? void 0 : value.length) >= maxCount) {
8433
+ antd.message.error("\u8BE5\u5B50\u8868\u5355\u6700\u591A\u6DFB\u52A0".concat(maxCount, "\u6761"));
8434
+ return;
8435
+ }
8432
8436
  onChange === null || onChange === void 0 ? void 0 : onChange([].concat(_toConsumableArray(value || []), [_objectSpread2(_objectSpread2({}, newValue), {}, {
8433
8437
  uuid: kmkfUtils.uuid()
8434
8438
  })]));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "2.3.0-rc.0",
3
+ "version": "2.4.0-rc.0",
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.3.0-rc.0",
23
+ "@kmkf-fe-packages/kmkf-utils": "2.4.0-rc.0",
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": "b9e1cb4129ec1a4874fbd5db7bc9f6d026badd2c"
68
+ "gitHead": "7feef13871ed0ec0a49b5a30a5886cbf3d90cd5e"
69
69
  }