@kdcloudjs/kdesign 1.2.1 → 1.3.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.
Files changed (86) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/dist/kdesign-complete.less +84 -65
  3. package/dist/kdesign.css +80 -86
  4. package/dist/kdesign.css.map +1 -1
  5. package/dist/kdesign.js +197 -146
  6. package/dist/kdesign.js.map +1 -1
  7. package/dist/kdesign.min.css +3 -3
  8. package/dist/kdesign.min.js +8 -8
  9. package/dist/kdesign.min.js.map +1 -1
  10. package/es/badge/style/index.css +3 -4
  11. package/es/badge/style/index.less +3 -4
  12. package/es/badge/style/token.less +1 -0
  13. package/es/button/style/index.css +3 -3
  14. package/es/button/style/token.less +3 -3
  15. package/es/carousel/displayList.js +8 -4
  16. package/es/carousel/fadeList.js +9 -5
  17. package/es/carousel/slideList.js +6 -3
  18. package/es/carousel/style/index.css +35 -45
  19. package/es/carousel/style/index.less +50 -42
  20. package/es/checkbox/checkbox.js +4 -2
  21. package/es/collapse/panel.js +1 -1
  22. package/es/config-provider/compDefaultProps.d.ts +1 -0
  23. package/es/config-provider/compDefaultProps.js +2 -1
  24. package/es/dropdown/style/index.css +5 -5
  25. package/es/form/Field.d.ts +2 -1
  26. package/es/form/Field.js +39 -22
  27. package/es/form/Form.js +7 -2
  28. package/es/form/hooks/useForm.js +1 -0
  29. package/es/form/interface.d.ts +5 -0
  30. package/es/input-number/inputNumber.d.ts +1 -0
  31. package/es/input-number/inputNumber.js +3 -2
  32. package/es/locale/locale.d.ts +1 -0
  33. package/es/locale/zh-CN.d.ts +1 -0
  34. package/es/locale/zh-CN.js +2 -1
  35. package/es/menu/subMenu.js +6 -2
  36. package/es/popconfirm/style/index.css +5 -5
  37. package/es/radio/style/index.css +7 -8
  38. package/es/radio/style/index.less +2 -2
  39. package/es/select/index.d.ts +2 -2
  40. package/es/select/interface.d.ts +7 -7
  41. package/es/select/style/index.css +13 -7
  42. package/es/select/style/index.less +14 -6
  43. package/es/select/style/token.less +4 -1
  44. package/es/style/mixins/index.less +5 -5
  45. package/es/tabs/tabs.js +5 -1
  46. package/es/tooltip/style/index.css +8 -8
  47. package/es/tooltip/style/index.less +2 -2
  48. package/lib/badge/style/index.css +3 -4
  49. package/lib/badge/style/index.less +3 -4
  50. package/lib/badge/style/token.less +1 -0
  51. package/lib/button/style/index.css +3 -3
  52. package/lib/button/style/token.less +3 -3
  53. package/lib/carousel/displayList.js +9 -4
  54. package/lib/carousel/fadeList.js +10 -5
  55. package/lib/carousel/slideList.js +6 -3
  56. package/lib/carousel/style/index.css +35 -45
  57. package/lib/carousel/style/index.less +50 -42
  58. package/lib/checkbox/checkbox.js +4 -2
  59. package/lib/collapse/panel.js +1 -1
  60. package/lib/config-provider/compDefaultProps.d.ts +1 -0
  61. package/lib/config-provider/compDefaultProps.js +2 -1
  62. package/lib/dropdown/style/index.css +5 -5
  63. package/lib/form/Field.d.ts +2 -1
  64. package/lib/form/Field.js +42 -24
  65. package/lib/form/Form.js +7 -2
  66. package/lib/form/hooks/useForm.js +1 -0
  67. package/lib/form/interface.d.ts +5 -0
  68. package/lib/input-number/inputNumber.d.ts +1 -0
  69. package/lib/input-number/inputNumber.js +3 -2
  70. package/lib/locale/locale.d.ts +1 -0
  71. package/lib/locale/zh-CN.d.ts +1 -0
  72. package/lib/locale/zh-CN.js +2 -1
  73. package/lib/menu/subMenu.js +6 -2
  74. package/lib/popconfirm/style/index.css +5 -5
  75. package/lib/radio/style/index.css +7 -8
  76. package/lib/radio/style/index.less +2 -2
  77. package/lib/select/index.d.ts +2 -2
  78. package/lib/select/interface.d.ts +7 -7
  79. package/lib/select/style/index.css +13 -7
  80. package/lib/select/style/index.less +14 -6
  81. package/lib/select/style/token.less +4 -1
  82. package/lib/style/mixins/index.less +5 -5
  83. package/lib/tabs/tabs.js +6 -1
  84. package/lib/tooltip/style/index.css +8 -8
  85. package/lib/tooltip/style/index.less +2 -2
  86. package/package.json +1 -1
package/dist/kdesign.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @kdcloudjs/kdesign v1.2.0
3
+ * @kdcloudjs/kdesign v1.2.3
4
4
  *
5
5
  * Copyright 2020-present, Kingdee, Inc.
6
6
  * All rights reserved.
@@ -5219,33 +5219,37 @@ __webpack_require__.r(__webpack_exports__);
5219
5219
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DisplayList", function() { return DisplayList; });
5220
5220
  /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");
5221
5221
  /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_0__);
5222
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
5223
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
5224
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
5225
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
5222
+ /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");
5223
+ /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_1__);
5224
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
5225
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
5226
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
5227
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
5226
5228
 
5227
5229
 
5228
5230
 
5229
- var DisplayList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.forwardRef(function (props, ref) {
5231
+
5232
+ var DisplayList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.forwardRef(function (props, ref) {
5230
5233
  var items = props.items,
5231
5234
  parentPrefixCls = props.parentPrefixCls,
5232
5235
  currentIndex = props.currentIndex;
5233
- var itemRef = react__WEBPACK_IMPORTED_MODULE_1___default.a.useRef(null);
5234
- var displayListPrefixCls = "".concat(parentPrefixCls, "-displaylist");
5236
+ var itemRef = react__WEBPACK_IMPORTED_MODULE_2___default.a.useRef(null);
5237
+ var displayListPrefixCls = "".concat(parentPrefixCls, "-list-display");
5238
+ var listPrefixCls = "".concat(parentPrefixCls, "-list");
5235
5239
 
5236
5240
  var renderItems = function renderItems() {
5237
5241
  return items.map(function (item, index) {
5238
- var opacityClassName = index === currentIndex ? "".concat(displayListPrefixCls, "-item-not-hidden") : "".concat(displayListPrefixCls, "-item-hidden");
5239
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("li", {
5240
- className: classnames__WEBPACK_IMPORTED_MODULE_2___default()("".concat(displayListPrefixCls, "-item"), opacityClassName),
5242
+ var opacityClassName = index === currentIndex ? "".concat(listPrefixCls, "-item-not-hidden") : "".concat(listPrefixCls, "-item-hidden");
5243
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("li", {
5244
+ className: classnames__WEBPACK_IMPORTED_MODULE_3___default()("".concat(listPrefixCls, "-item"), opacityClassName),
5241
5245
  key: index,
5242
5246
  ref: itemRef
5243
5247
  }, item);
5244
5248
  });
5245
5249
  };
5246
5250
 
5247
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("ul", {
5248
- className: displayListPrefixCls,
5251
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("ul", {
5252
+ className: "".concat(listPrefixCls, " ").concat(displayListPrefixCls),
5249
5253
  ref: ref
5250
5254
  }, renderItems());
5251
5255
  });
@@ -5264,29 +5268,33 @@ __webpack_require__.r(__webpack_exports__);
5264
5268
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FadeList", function() { return FadeList; });
5265
5269
  /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");
5266
5270
  /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_0__);
5267
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
5268
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
5269
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
5270
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
5271
+ /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");
5272
+ /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_1__);
5273
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
5274
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
5275
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
5276
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
5271
5277
 
5272
5278
 
5273
5279
 
5274
- var FadeList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.forwardRef(function (props, ref) {
5280
+
5281
+ var FadeList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.forwardRef(function (props, ref) {
5275
5282
  var items = props.items,
5276
5283
  parentPrefixCls = props.parentPrefixCls,
5277
5284
  needAnimation = props.needAnimation,
5278
5285
  currentIndex = props.currentIndex,
5279
5286
  itemWidth = props.itemWidth;
5280
- var itemRef = react__WEBPACK_IMPORTED_MODULE_1___default.a.useRef(null);
5281
- var fadeListPrefixCls = "".concat(parentPrefixCls, "-fadelist");
5287
+ var itemRef = react__WEBPACK_IMPORTED_MODULE_2___default.a.useRef(null);
5288
+ var fadeListPrefixCls = "".concat(parentPrefixCls, "-list-fade");
5289
+ var listPrefixCls = "".concat(parentPrefixCls, "-list");
5282
5290
 
5283
5291
  var renderItems = function renderItems() {
5284
5292
  return items.map(function (item, index) {
5285
- var opacityClassName = index === currentIndex ? "".concat(fadeListPrefixCls, "-item-not-hidden") : "".concat(fadeListPrefixCls, "-item-hidden");
5286
- var animationClassName = needAnimation ? "".concat(fadeListPrefixCls, "-item-animation") : "".concat(fadeListPrefixCls, "-item-none-animation");
5293
+ var opacityClassName = index === currentIndex ? "".concat(listPrefixCls, "-item-not-hidden") : "".concat(listPrefixCls, "-item-hidden");
5294
+ var animationClassName = needAnimation ? "".concat(listPrefixCls, "-item-animation") : "".concat(listPrefixCls, "-item-none-animation");
5287
5295
  var posx = -1 * index * itemWidth;
5288
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("li", {
5289
- className: classnames__WEBPACK_IMPORTED_MODULE_2___default()("".concat(fadeListPrefixCls, "-item"), opacityClassName, animationClassName),
5296
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("li", {
5297
+ className: classnames__WEBPACK_IMPORTED_MODULE_3___default()("".concat(listPrefixCls, "-item"), opacityClassName, animationClassName),
5290
5298
  key: index,
5291
5299
  ref: itemRef,
5292
5300
  style: {
@@ -5296,8 +5304,8 @@ var FadeList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.forward
5296
5304
  });
5297
5305
  };
5298
5306
 
5299
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("ul", {
5300
- className: fadeListPrefixCls,
5307
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("ul", {
5308
+ className: "".concat(listPrefixCls, " ").concat(fadeListPrefixCls),
5301
5309
  ref: ref
5302
5310
  }, renderItems());
5303
5311
  });
@@ -5364,7 +5372,8 @@ __webpack_require__.r(__webpack_exports__);
5364
5372
  var SlideList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (props, ref) {
5365
5373
  var items = props.items,
5366
5374
  parentPrefixCls = props.parentPrefixCls;
5367
- var slideListPrefixCls = "".concat(parentPrefixCls, "-slidelist");
5375
+ var slideListPrefixCls = "".concat(parentPrefixCls, "-list-slide");
5376
+ var listPrefixCls = "".concat(parentPrefixCls, "-list");
5368
5377
 
5369
5378
  var renderItems = function renderItems() {
5370
5379
  var _items = items.slice(-1).concat(items, items.slice(0, 1)); // 首位分别添加一项
@@ -5372,14 +5381,14 @@ var SlideList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.forwar
5372
5381
 
5373
5382
  return _items.map(function (item, index) {
5374
5383
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("li", {
5375
- className: "".concat(slideListPrefixCls, "-item"),
5384
+ className: "".concat(listPrefixCls, "-item"),
5376
5385
  key: index
5377
5386
  }, item);
5378
5387
  });
5379
5388
  };
5380
5389
 
5381
5390
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("ul", {
5382
- className: slideListPrefixCls,
5391
+ className: "".concat(listPrefixCls, " ").concat(slideListPrefixCls),
5383
5392
  ref: ref
5384
5393
  }, renderItems());
5385
5394
  });
@@ -5877,19 +5886,22 @@ __webpack_require__.r(__webpack_exports__);
5877
5886
  /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
5878
5887
  /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js");
5879
5888
  /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);
5880
- /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");
5881
- /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_2__);
5882
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
5883
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
5884
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
5885
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
5886
- /* harmony import */ var _config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/ConfigContext */ "./components/config-provider/ConfigContext.tsx");
5887
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_utils */ "./components/_utils/index.ts");
5888
- /* harmony import */ var _utils_type__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_utils/type */ "./components/_utils/type.ts");
5889
- /* harmony import */ var lodash_isBoolean__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/isBoolean */ "./node_modules/lodash/isBoolean.js");
5890
- /* harmony import */ var lodash_isBoolean__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_isBoolean__WEBPACK_IMPORTED_MODULE_8__);
5891
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../icon */ "./components/icon/index.tsx");
5892
- /* harmony import */ var _utils_devwarning__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_utils/devwarning */ "./components/_utils/devwarning.ts");
5889
+ /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");
5890
+ /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_2__);
5891
+ /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");
5892
+ /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3__);
5893
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react");
5894
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
5895
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
5896
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
5897
+ /* harmony import */ var _config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/ConfigContext */ "./components/config-provider/ConfigContext.tsx");
5898
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_utils */ "./components/_utils/index.ts");
5899
+ /* harmony import */ var _utils_type__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_utils/type */ "./components/_utils/type.ts");
5900
+ /* harmony import */ var lodash_isBoolean__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/isBoolean */ "./node_modules/lodash/isBoolean.js");
5901
+ /* harmony import */ var lodash_isBoolean__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_isBoolean__WEBPACK_IMPORTED_MODULE_9__);
5902
+ /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../icon */ "./components/icon/index.tsx");
5903
+ /* harmony import */ var _utils_devwarning__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_utils/devwarning */ "./components/_utils/devwarning.ts");
5904
+
5893
5905
 
5894
5906
 
5895
5907
 
@@ -5901,18 +5913,18 @@ __webpack_require__.r(__webpack_exports__);
5901
5913
 
5902
5914
 
5903
5915
 
5904
- var CheckboxTypes = Object(_utils_type__WEBPACK_IMPORTED_MODULE_7__["tuple"])('default', 'square');
5905
- var CheckboxSizes = Object(_utils_type__WEBPACK_IMPORTED_MODULE_7__["tuple"])('large', 'middle', 'small');
5916
+ var CheckboxTypes = Object(_utils_type__WEBPACK_IMPORTED_MODULE_8__["tuple"])('default', 'square');
5917
+ var CheckboxSizes = Object(_utils_type__WEBPACK_IMPORTED_MODULE_8__["tuple"])('large', 'middle', 'small');
5906
5918
 
5907
5919
  var InternalCheckbox = function InternalCheckbox(props, ref) {
5908
5920
  var _classNames, _classNames2, _classNames4, _classNames5;
5909
5921
 
5910
- var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_3__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_5__["default"]),
5922
+ var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_4__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_6__["default"]),
5911
5923
  getPrefixCls = _useContext.getPrefixCls,
5912
5924
  prefixCls = _useContext.prefixCls,
5913
5925
  userDefaultProps = _useContext.compDefaultProps;
5914
5926
 
5915
- var CheckboxProps = Object(_utils__WEBPACK_IMPORTED_MODULE_6__["getCompProps"])('Checkbox', userDefaultProps, props);
5927
+ var CheckboxProps = Object(_utils__WEBPACK_IMPORTED_MODULE_7__["getCompProps"])('Checkbox', userDefaultProps, props);
5916
5928
  var checkboxType = CheckboxProps.checkboxType,
5917
5929
  className = CheckboxProps.className,
5918
5930
  customPrefixcls = CheckboxProps.prefixCls,
@@ -5924,19 +5936,20 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
5924
5936
  children = CheckboxProps.children,
5925
5937
  style = CheckboxProps.style,
5926
5938
  value = CheckboxProps.value,
5927
- indeterminate = CheckboxProps.indeterminate;
5939
+ indeterminate = CheckboxProps.indeterminate,
5940
+ name = CheckboxProps.name;
5928
5941
 
5929
5942
  var getChecked = function getChecked() {
5930
- return lodash_isBoolean__WEBPACK_IMPORTED_MODULE_8___default()(checked) ? checked : defaultChecked;
5943
+ return lodash_isBoolean__WEBPACK_IMPORTED_MODULE_9___default()(checked) ? checked : defaultChecked;
5931
5944
  };
5932
5945
 
5933
- var _React$useState = react__WEBPACK_IMPORTED_MODULE_3___default.a.useState(getChecked()),
5946
+ var _React$useState = react__WEBPACK_IMPORTED_MODULE_4___default.a.useState(getChecked()),
5934
5947
  _React$useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_React$useState, 2),
5935
5948
  selected = _React$useState2[0],
5936
5949
  setSelected = _React$useState2[1];
5937
5950
 
5938
- Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_10__["default"])(CheckboxTypes.indexOf(checkboxType) === -1, 'checkbox', "cannot found checkbox type '".concat(checkboxType, "'"));
5939
- Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_10__["default"])(CheckboxSizes.indexOf(size) === -1, 'checkbox', "cannot found size type '".concat(size, "'"));
5951
+ Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_11__["default"])(CheckboxTypes.indexOf(checkboxType) === -1, 'checkbox', "cannot found checkbox type '".concat(checkboxType, "'"));
5952
+ Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_11__["default"])(CheckboxSizes.indexOf(size) === -1, 'checkbox', "cannot found size type '".concat(size, "'"));
5940
5953
  var checkboxPrefixCls = getPrefixCls(prefixCls, 'checkbox', customPrefixcls);
5941
5954
 
5942
5955
  var isDefaultType = function isDefaultType() {
@@ -5947,19 +5960,19 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
5947
5960
  return selected ? false : indeterminate;
5948
5961
  };
5949
5962
 
5950
- var getDefaultClassName = classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(checkboxPrefixCls), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(checkboxPrefixCls, "-no-child"), !children), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(checkboxPrefixCls, "-").concat(size), true && !!children), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(checkboxPrefixCls, "-").concat(checkboxType), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-disabled"), disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "checked", selected), _classNames));
5951
- var getSquareClassName = classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, (_classNames2 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(checkboxPrefixCls), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(checkboxPrefixCls, "-").concat(checkboxType), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-disabled"), disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-checked"), selected && !disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "checked", selected), _classNames2));
5963
+ var getDefaultClassName = classnames__WEBPACK_IMPORTED_MODULE_5___default()(className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(checkboxPrefixCls), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(checkboxPrefixCls, "-no-child"), !children), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(checkboxPrefixCls, "-").concat(size), true && !!children), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(checkboxPrefixCls, "-").concat(checkboxType), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-disabled"), disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "checked", selected), _classNames));
5964
+ var getSquareClassName = classnames__WEBPACK_IMPORTED_MODULE_5___default()(className, (_classNames2 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(checkboxPrefixCls), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(checkboxPrefixCls, "-").concat(checkboxType), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-disabled"), disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-checked"), selected && !disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "checked", selected), _classNames2));
5952
5965
  var getRootClassName = isDefaultType() ? getDefaultClassName : getSquareClassName;
5953
- var inputClassName = classnames__WEBPACK_IMPORTED_MODULE_4___default()(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, "".concat(checkboxPrefixCls, "-input"), true));
5954
- var checkedWrapperClassName = classnames__WEBPACK_IMPORTED_MODULE_4___default()((_classNames4 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-no-child"), !children), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-wrapper"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-wrapper-size"), !!children), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-margin"), !!children), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-checked"), selected), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-indeterminate"), getIndeterminate()), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-disabled"), disabled && !selected), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-checked-disabled"), disabled && selected), _classNames4));
5955
- var triangleClassName = classnames__WEBPACK_IMPORTED_MODULE_4___default()((_classNames5 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames5, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-triangle"), !selected), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames5, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-triangle-checked"), selected), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames5, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-triangle-disabled"), disabled), _classNames5));
5956
- var innerIconClassName = classnames__WEBPACK_IMPORTED_MODULE_4___default()(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-inner"), true));
5957
- var handleChange = Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])(function (e) {
5966
+ var inputClassName = classnames__WEBPACK_IMPORTED_MODULE_5___default()(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, "".concat(checkboxPrefixCls, "-input"), true));
5967
+ var checkedWrapperClassName = classnames__WEBPACK_IMPORTED_MODULE_5___default()((_classNames4 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-no-child"), !children), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-wrapper"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-wrapper-size"), !!children), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-margin"), !!children), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-checked"), selected), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-indeterminate"), getIndeterminate()), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-disabled"), disabled && !selected), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-checked-disabled"), disabled && selected), _classNames4));
5968
+ var triangleClassName = classnames__WEBPACK_IMPORTED_MODULE_5___default()((_classNames5 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames5, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-triangle"), !selected), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames5, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-triangle-checked"), selected), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames5, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-triangle-disabled"), disabled), _classNames5));
5969
+ var innerIconClassName = classnames__WEBPACK_IMPORTED_MODULE_5___default()(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-inner"), true));
5970
+ var handleChange = Object(react__WEBPACK_IMPORTED_MODULE_4__["useCallback"])(function (e) {
5958
5971
  onChange && onChange(e);
5959
5972
  setSelected(e.target.checked);
5960
5973
  }, [onChange]);
5961
- Object(react__WEBPACK_IMPORTED_MODULE_3__["useEffect"])(function () {
5962
- lodash_isBoolean__WEBPACK_IMPORTED_MODULE_8___default()(checked) && checked !== selected && setSelected(checked);
5974
+ Object(react__WEBPACK_IMPORTED_MODULE_4__["useEffect"])(function () {
5975
+ lodash_isBoolean__WEBPACK_IMPORTED_MODULE_9___default()(checked) && checked !== selected && setSelected(checked);
5963
5976
  }, [checked, selected]);
5964
5977
 
5965
5978
  var handleRepeatClick = function handleRepeatClick(e) {
@@ -5974,32 +5987,33 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
5974
5987
  return (
5975
5988
  /*#__PURE__*/
5976
5989
  // eslint-disable-next-line
5977
- react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("label", {
5990
+ react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("label", {
5978
5991
  className: getRootClassName,
5979
5992
  style: style,
5980
5993
  onClick: handleRepeatClick
5981
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
5994
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", {
5982
5995
  className: checkedWrapperClassName
5983
- }, selected && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
5996
+ }, selected && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", {
5984
5997
  className: innerIconClassName
5985
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_icon__WEBPACK_IMPORTED_MODULE_9__["default"], {
5998
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
5986
5999
  type: "right-bold",
5987
6000
  className: "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-inner-icon")
5988
- })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("input", {
6001
+ })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("input", {
5989
6002
  type: "checkbox",
5990
6003
  className: inputClassName,
5991
6004
  onChange: handleChange,
5992
6005
  ref: ref,
5993
6006
  value: value,
5994
6007
  checked: selected,
5995
- disabled: disabled
5996
- })), children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
6008
+ disabled: disabled,
6009
+ name: name
6010
+ })), children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", {
5997
6011
  className: "".concat(checkboxPrefixCls, "-children")
5998
- }, children), !isDefaultType() && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
6012
+ }, children), !isDefaultType() && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", {
5999
6013
  className: triangleClassName
6000
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
6014
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", {
6001
6015
  className: innerIconClassName
6002
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_icon__WEBPACK_IMPORTED_MODULE_9__["default"], {
6016
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
6003
6017
  type: "right-bold",
6004
6018
  className: "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-inner-icon")
6005
6019
  }))))
@@ -6009,7 +6023,7 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
6009
6023
  return getDefaultCheckbox();
6010
6024
  };
6011
6025
 
6012
- var Checkbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(InternalCheckbox);
6026
+ var Checkbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.forwardRef(InternalCheckbox);
6013
6027
  Checkbox.displayName = 'Checkbox';
6014
6028
  /* harmony default export */ __webpack_exports__["default"] = (Checkbox);
6015
6029
 
@@ -7473,7 +7487,7 @@ var Panel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.forwardRef
7473
7487
  className: className
7474
7488
  }, assist && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", {
7475
7489
  className: "".concat(panelPrefixCls, "-assist")
7476
- }, renderReactNode(assist)), expandIconPosition === 'right' ? renderIcon() : null);
7490
+ }, renderReactNode(assist)));
7477
7491
  };
7478
7492
 
7479
7493
  var renderReactNode = function renderReactNode(reactNode) {
@@ -8014,7 +8028,8 @@ var compDefaultProps = {
8014
8028
  borderType: 'bordered',
8015
8029
  minMark: '[',
8016
8030
  maxMark: ']',
8017
- mustInScope: false
8031
+ mustInScope: false,
8032
+ zeroShow: true
8018
8033
  },
8019
8034
  BaseData: {
8020
8035
  mode: 'single',
@@ -15842,32 +15857,36 @@ __webpack_require__.r(__webpack_exports__);
15842
15857
  /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__);
15843
15858
  /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");
15844
15859
  /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6__);
15845
- /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");
15846
- /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_7__);
15847
- /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.object.keys.js */ "./node_modules/core-js/modules/es.object.keys.js");
15848
- /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_8__);
15849
- /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");
15850
- /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_9__);
15851
- /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");
15852
- /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_10__);
15853
- /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ "./node_modules/core-js/modules/es.object.get-own-property-descriptor.js");
15854
- /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_11__);
15855
- /* harmony import */ var core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptors.js */ "./node_modules/core-js/modules/es.object.get-own-property-descriptors.js");
15856
- /* harmony import */ var core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_12__);
15857
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react */ "react");
15858
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_13__);
15859
- /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! lodash/get */ "./node_modules/lodash/get.js");
15860
- /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_14__);
15861
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
15862
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_15__);
15863
- /* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../config-provider */ "./components/config-provider/index.tsx");
15864
- /* harmony import */ var _FieldLabel__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./FieldLabel */ "./components/form/FieldLabel.tsx");
15865
- /* harmony import */ var _FieldWrapper__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./FieldWrapper */ "./components/form/FieldWrapper.tsx");
15866
- /* harmony import */ var _hooks_useForceUpdate__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./hooks/useForceUpdate */ "./components/form/hooks/useForceUpdate.ts");
15867
- /* harmony import */ var _utils_devwarning__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../_utils/devwarning */ "./components/_utils/devwarning.ts");
15868
- /* harmony import */ var _utils_react_children__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../_utils/react-children */ "./components/_utils/react-children.ts");
15869
- /* harmony import */ var _FieldContext__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./FieldContext */ "./components/form/FieldContext.tsx");
15870
- /* harmony import */ var _hooks_useForm__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./hooks/useForm */ "./components/form/hooks/useForm.ts");
15860
+ /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");
15861
+ /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_7__);
15862
+ /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");
15863
+ /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_8__);
15864
+ /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");
15865
+ /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_9__);
15866
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.object.keys.js */ "./node_modules/core-js/modules/es.object.keys.js");
15867
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_10__);
15868
+ /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");
15869
+ /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_11__);
15870
+ /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");
15871
+ /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_12__);
15872
+ /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ "./node_modules/core-js/modules/es.object.get-own-property-descriptor.js");
15873
+ /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_13__);
15874
+ /* harmony import */ var core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptors.js */ "./node_modules/core-js/modules/es.object.get-own-property-descriptors.js");
15875
+ /* harmony import */ var core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_14__);
15876
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! react */ "react");
15877
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_15__);
15878
+ /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! lodash/get */ "./node_modules/lodash/get.js");
15879
+ /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_16__);
15880
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
15881
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_17__);
15882
+ /* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../config-provider */ "./components/config-provider/index.tsx");
15883
+ /* harmony import */ var _FieldLabel__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./FieldLabel */ "./components/form/FieldLabel.tsx");
15884
+ /* harmony import */ var _FieldWrapper__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./FieldWrapper */ "./components/form/FieldWrapper.tsx");
15885
+ /* harmony import */ var _hooks_useForceUpdate__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./hooks/useForceUpdate */ "./components/form/hooks/useForceUpdate.ts");
15886
+ /* harmony import */ var _utils_devwarning__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../_utils/devwarning */ "./components/_utils/devwarning.ts");
15887
+ /* harmony import */ var _utils_react_children__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../_utils/react-children */ "./components/_utils/react-children.ts");
15888
+ /* harmony import */ var _FieldContext__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./FieldContext */ "./components/form/FieldContext.tsx");
15889
+ /* harmony import */ var _hooks_useForm__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./hooks/useForm */ "./components/form/hooks/useForm.ts");
15871
15890
 
15872
15891
 
15873
15892
 
@@ -15895,10 +15914,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
15895
15914
 
15896
15915
 
15897
15916
 
15917
+
15918
+
15898
15919
 
15899
15920
 
15900
15921
 
15901
15922
  var DEFAULT_TRIGGER = 'onChange';
15923
+ var FormEventValuePropNames = ['value', 'checked'];
15902
15924
 
15903
15925
  var generateEventHandler = function generateEventHandler(handler, validateTrigger) {
15904
15926
  var eventHandler = {};
@@ -15921,17 +15943,17 @@ var generateEventHandler = function generateEventHandler(handler, validateTrigge
15921
15943
  var Field = function Field(props) {
15922
15944
  var _classnames;
15923
15945
 
15924
- Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_20__["default"])(! /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_13___default.a.isValidElement(props.children), 'Form.Item', 'Children of Form.Item is not a valid element');
15925
- Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_20__["default"])(!props.name, 'Form.Item', 'Form.Item must have a name');
15946
+ Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_22__["default"])(! /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_15___default.a.isValidElement(props.children), 'Form.Item', 'Children of Form.Item is not a valid element');
15947
+ Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_22__["default"])(!props.name, 'Form.Item', 'Form.Item must have a name');
15926
15948
 
15927
- var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_13__["useContext"])(_config_provider__WEBPACK_IMPORTED_MODULE_16__["ConfigContext"]),
15949
+ var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_15__["useContext"])(_config_provider__WEBPACK_IMPORTED_MODULE_18__["ConfigContext"]),
15928
15950
  getPrefixCls = _useContext.getPrefixCls,
15929
15951
  prefixCls = _useContext.prefixCls;
15930
15952
 
15931
- var fieldContext = react__WEBPACK_IMPORTED_MODULE_13___default.a.useContext(_FieldContext__WEBPACK_IMPORTED_MODULE_22__["default"]);
15932
- var forceUpdate = Object(_hooks_useForceUpdate__WEBPACK_IMPORTED_MODULE_19__["default"])();
15953
+ var fieldContext = react__WEBPACK_IMPORTED_MODULE_15___default.a.useContext(_FieldContext__WEBPACK_IMPORTED_MODULE_24__["default"]);
15954
+ var forceUpdate = Object(_hooks_useForceUpdate__WEBPACK_IMPORTED_MODULE_21__["default"])();
15933
15955
 
15934
- var _useState = Object(react__WEBPACK_IMPORTED_MODULE_13__["useState"])(undefined),
15956
+ var _useState = Object(react__WEBPACK_IMPORTED_MODULE_15__["useState"])(undefined),
15935
15957
  _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2),
15936
15958
  fieldValue = _useState2[0],
15937
15959
  setFieldValue = _useState2[1];
@@ -15940,9 +15962,10 @@ var Field = function Field(props) {
15940
15962
  getFieldError = fieldContext.getFieldError,
15941
15963
  getInternalHooks = fieldContext.getInternalHooks,
15942
15964
  vertical = fieldContext.vertical,
15943
- getDefaultValue = fieldContext.getDefaultValue;
15965
+ getDefaultValue = fieldContext.getDefaultValue,
15966
+ local = fieldContext.local;
15944
15967
 
15945
- var _ref = getInternalHooks(_hooks_useForm__WEBPACK_IMPORTED_MODULE_23__["INTERNAL_HOOK_KEY"]),
15968
+ var _ref = getInternalHooks(_hooks_useForm__WEBPACK_IMPORTED_MODULE_25__["INTERNAL_HOOK_KEY"]),
15946
15969
  registerField = _ref.registerField,
15947
15970
  dispatch = _ref.dispatch,
15948
15971
  setDefaultValues = _ref.setDefaultValues;
@@ -15961,13 +15984,15 @@ var Field = function Field(props) {
15961
15984
  rules = _props$rules === void 0 ? [] : _props$rules,
15962
15985
  wrapperWidth = props.wrapperWidth,
15963
15986
  validateTrigger = props.validateTrigger,
15964
- defaultValue = props.defaultValue;
15987
+ defaultValue = props.defaultValue,
15988
+ _props$valuePropName = props.valuePropName,
15989
+ valuePropName = _props$valuePropName === void 0 ? 'value' : _props$valuePropName;
15965
15990
 
15966
15991
  var onStoreChange = function onStoreChange(stores, _namePathList, source) {
15967
15992
  var prev = stores.prev,
15968
15993
  curr = stores.curr;
15969
- var prevValue = lodash_get__WEBPACK_IMPORTED_MODULE_14___default()(prev, name);
15970
- var currValue = lodash_get__WEBPACK_IMPORTED_MODULE_14___default()(curr, name);
15994
+ var prevValue = lodash_get__WEBPACK_IMPORTED_MODULE_16___default()(prev, name);
15995
+ var currValue = lodash_get__WEBPACK_IMPORTED_MODULE_16___default()(curr, name);
15971
15996
  var isValueUpdated = prevValue !== currValue && source === 'updateValue';
15972
15997
  var isExternalAction = source === 'externalUpdateValue';
15973
15998
  var isValidatedFinish = source === 'validateFinish';
@@ -15996,7 +16021,8 @@ var Field = function Field(props) {
15996
16021
  return Object.prototype.hasOwnProperty.call(rule, 'required');
15997
16022
  }) && required) {
15998
16023
  rules.push({
15999
- required: true
16024
+ required: true,
16025
+ message: "".concat(local && local.requiredMessage).concat(label)
16000
16026
  });
16001
16027
  }
16002
16028
 
@@ -16012,7 +16038,7 @@ var Field = function Field(props) {
16012
16038
  });
16013
16039
  }
16014
16040
 
16015
- var itemRef = react__WEBPACK_IMPORTED_MODULE_13___default.a.useRef({
16041
+ var itemRef = react__WEBPACK_IMPORTED_MODULE_15___default.a.useRef({
16016
16042
  onStoreChange: onStoreChange,
16017
16043
  meta: {
16018
16044
  rules: mergeRules,
@@ -16020,7 +16046,7 @@ var Field = function Field(props) {
16020
16046
  trigger: validateTrigger
16021
16047
  }
16022
16048
  });
16023
- Object(react__WEBPACK_IMPORTED_MODULE_13__["useEffect"])(function () {
16049
+ Object(react__WEBPACK_IMPORTED_MODULE_15__["useEffect"])(function () {
16024
16050
  registerField(name, itemRef.current);
16025
16051
 
16026
16052
  if (defaultValue !== undefined) {
@@ -16028,20 +16054,33 @@ var Field = function Field(props) {
16028
16054
  }
16029
16055
  }, [name, registerField]);
16030
16056
  var formPrefixCls = getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls(prefixCls, 'form', customizePrefixcls);
16031
- var formItemClassName = classnames__WEBPACK_IMPORTED_MODULE_15___default()((_classnames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classnames, "".concat(formPrefixCls), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classnames, "".concat(formPrefixCls, "-field"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classnames, "".concat(formPrefixCls, "-field-hidden"), hidden), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classnames, "".concat(formPrefixCls, "-field-vertical"), vertical), _classnames), className);
16057
+ var formItemClassName = classnames__WEBPACK_IMPORTED_MODULE_17___default()((_classnames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classnames, "".concat(formPrefixCls), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classnames, "".concat(formPrefixCls, "-field"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classnames, "".concat(formPrefixCls, "-field-hidden"), hidden), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classnames, "".concat(formPrefixCls, "-field-vertical"), vertical), _classnames), className);
16032
16058
  var value = getFieldValue(name);
16033
16059
  var validateMessage = getFieldError(name);
16034
- var handleValueChange = react__WEBPACK_IMPORTED_MODULE_13___default.a.useCallback(function (evt) {
16035
- var _evt$target;
16036
16060
 
16037
- var inputValue = typeof evt === 'string' ? evt : (_evt$target = evt.target) === null || _evt$target === void 0 ? void 0 : _evt$target.value;
16061
+ var getInputValueFormProp = function getInputValueFormProp(evt) {
16062
+ var inputValue;
16063
+
16064
+ if (Object.prototype.hasOwnProperty.call(evt, 'target') && FormEventValuePropNames.includes(valuePropName)) {
16065
+ var _evt$target;
16066
+
16067
+ inputValue = (_evt$target = evt.target) === null || _evt$target === void 0 ? void 0 : _evt$target[valuePropName];
16068
+ } else {
16069
+ inputValue = evt;
16070
+ }
16071
+
16072
+ return inputValue;
16073
+ };
16074
+
16075
+ var handleValueChange = react__WEBPACK_IMPORTED_MODULE_15___default.a.useCallback(function (evt) {
16076
+ var inputValue = getInputValueFormProp(evt);
16038
16077
  dispatch({
16039
16078
  type: 'updateValue',
16040
16079
  namePath: name,
16041
16080
  value: inputValue
16042
16081
  });
16043
16082
  }, [name]);
16044
- var handleValueValidate = react__WEBPACK_IMPORTED_MODULE_13___default.a.useCallback(function () {
16083
+ var handleValueValidate = react__WEBPACK_IMPORTED_MODULE_15___default.a.useCallback(function () {
16045
16084
  dispatch({
16046
16085
  type: 'validateField',
16047
16086
  namePath: name
@@ -16051,6 +16090,8 @@ var Field = function Field(props) {
16051
16090
  var trigger = _objectSpread(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, DEFAULT_TRIGGER, handleValueChange), generateEventHandler(handleValueValidate, validateTrigger));
16052
16091
 
16053
16092
  var mergeProps = function mergeProps(fa, ch) {
16093
+ var _objectSpread3;
16094
+
16054
16095
  if (!ch) {
16055
16096
  return {};
16056
16097
  }
@@ -16061,17 +16102,13 @@ var Field = function Field(props) {
16061
16102
 
16062
16103
  var _ch$props = ch.props,
16063
16104
  chChange = _ch$props.onChange,
16064
- chValue = _ch$props.value,
16105
+ chValue = _ch$props[valuePropName],
16065
16106
  chDisabled = _ch$props.disabled,
16066
16107
  chDefaultValue = _ch$props.defaultValue;
16067
16108
 
16068
16109
  var onChange = function onChange(evt) {
16069
16110
  if (chValue === undefined) {
16070
- if (typeof evt === 'string') {
16071
- setFieldValue(evt);
16072
- } else {
16073
- setFieldValue(evt.target.value);
16074
- }
16111
+ setFieldValue(getInputValueFormProp(evt));
16075
16112
  }
16076
16113
 
16077
16114
  if (typeof faChange === 'function') {
@@ -16094,32 +16131,29 @@ var Field = function Field(props) {
16094
16131
  forceUpdate();
16095
16132
  }
16096
16133
 
16097
- return _objectSpread(_objectSpread({}, rest), {}, {
16134
+ return _objectSpread(_objectSpread({}, rest), {}, (_objectSpread3 = {
16098
16135
  onChange: onChange,
16099
- defaultValue: defaultValue,
16100
- value: fieldValue,
16101
- disabled: chDisabled || faDisabled
16102
- });
16136
+ defaultValue: defaultValue
16137
+ }, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_objectSpread3, valuePropName, fieldValue), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_objectSpread3, "disabled", chDisabled || faDisabled), _objectSpread3));
16103
16138
  };
16104
16139
 
16105
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div", {
16140
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_15___default.a.createElement("div", {
16106
16141
  className: formItemClassName
16107
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(_FieldLabel__WEBPACK_IMPORTED_MODULE_17__["default"], {
16142
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_15___default.a.createElement(_FieldLabel__WEBPACK_IMPORTED_MODULE_19__["default"], {
16108
16143
  value: label,
16109
16144
  width: labelWidth,
16110
16145
  textAlign: labelAlign,
16111
16146
  requiredMark: mergedRequired
16112
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_18__["default"], {
16147
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_15___default.a.createElement(_FieldWrapper__WEBPACK_IMPORTED_MODULE_20__["default"], {
16113
16148
  width: wrapperWidth,
16114
16149
  validateMessage: validateMessage
16115
- }, Object(_utils_react_children__WEBPACK_IMPORTED_MODULE_21__["toArray"])(children).map(function (child, index) {
16116
- var keys = mergeProps(_objectSpread(_objectSpread({
16117
- disabled: disabled,
16118
- value: value
16119
- }, trigger), {}, {
16150
+ }, Object(_utils_react_children__WEBPACK_IMPORTED_MODULE_23__["toArray"])(children).map(function (child, index) {
16151
+ var keys = mergeProps(_objectSpread(_objectSpread(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({
16152
+ disabled: disabled
16153
+ }, valuePropName, value), trigger), {}, {
16120
16154
  key: index
16121
16155
  }), child);
16122
- return child ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_13___default.a.cloneElement(child, keys) : child;
16156
+ return child ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_15___default.a.cloneElement(child, keys) : child;
16123
16157
  })));
16124
16158
  };
16125
16159
 
@@ -16363,9 +16397,13 @@ var Form = function Form(props, ref) {
16363
16397
  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_13__["useContext"])(_config_provider__WEBPACK_IMPORTED_MODULE_15__["ConfigContext"]),
16364
16398
  getPrefixCls = _useContext.getPrefixCls,
16365
16399
  prefixCls = _useContext.prefixCls,
16366
- userDefaultProps = _useContext.compDefaultProps;
16400
+ userDefaultProps = _useContext.compDefaultProps,
16401
+ globalLocale = _useContext.locale;
16367
16402
 
16368
16403
  var formProps = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["getCompProps"])('Form', userDefaultProps, props);
16404
+ var formLang = globalLocale.getCompLangMsg({
16405
+ componentName: 'Form'
16406
+ });
16369
16407
 
16370
16408
  var children = formProps.children,
16371
16409
  defaultValues = formProps.defaultValues,
@@ -16417,9 +16455,10 @@ var Form = function Form(props, ref) {
16417
16455
  labelAlign: labelAlign,
16418
16456
  labelWidth: labelWidth,
16419
16457
  wrapperWidth: wrapperWidth,
16458
+ local: formLang,
16420
16459
  vertical: layout === 'vertical'
16421
16460
  });
16422
- }, [formInstance, labelAlign, labelWidth, wrapperWidth, layout]);
16461
+ }, [formInstance, labelAlign, labelWidth, wrapperWidth, layout, formLang]);
16423
16462
 
16424
16463
  var handleSubmit = function handleSubmit(evt) {
16425
16464
  evt.preventDefault();
@@ -16823,6 +16862,7 @@ var FormStore = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTE
16823
16862
  }
16824
16863
 
16825
16864
  _this.store = newStore;
16865
+ _this.errorMessages = {};
16826
16866
 
16827
16867
  _this.notifyObservers(prevStore, null, 'reset');
16828
16868
  });
@@ -19087,7 +19127,7 @@ __webpack_require__.r(__webpack_exports__);
19087
19127
 
19088
19128
 
19089
19129
 
19090
- var _excluded = ["value", "defaultValue", "mustInScope", "decimalLength", "mustInPrecisionScope", "digitLength", "onChange", "symbol", "zeroShow", "showDecimalTailZero", "code", "roundMethod", "mask", "stepOption", "min", "minMark", "max", "maxMark", "prefix", "suffix"];
19130
+ var _excluded = ["value", "defaultValue", "mustInScope", "decimalLength", "mustInPrecisionScope", "digitLength", "onChange", "symbol", "zeroShow", "showDecimalTailZero", "code", "roundMethod", "mask", "stepOption", "min", "minMark", "max", "maxMark", "prefix", "suffix", "formatter"];
19091
19131
 
19092
19132
 
19093
19133
 
@@ -19133,6 +19173,7 @@ var InternalInputNumber = function InternalInputNumber(props, ref) {
19133
19173
  maxMark = inputNumberProps.maxMark,
19134
19174
  prefix = inputNumberProps.prefix,
19135
19175
  suffix = inputNumberProps.suffix,
19176
+ formatter = inputNumberProps.formatter,
19136
19177
  others = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(inputNumberProps, _excluded);
19137
19178
 
19138
19179
  var initVal = value === undefined ? defaultValue : value;
@@ -19405,7 +19446,7 @@ var InternalInputNumber = function InternalInputNumber(props, ref) {
19405
19446
  });
19406
19447
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(_input__WEBPACK_IMPORTED_MODULE_12__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, others, {
19407
19448
  ref: inputNumberRef,
19408
- value: inputValue,
19449
+ value: inputValue ? (formatter === null || formatter === void 0 ? void 0 : formatter(inputValue)) || inputValue : inputValue,
19409
19450
  prefix: prefix,
19410
19451
  suffix: suffix,
19411
19452
  onChange: handleChange,
@@ -21401,7 +21442,8 @@ var locale = _objectSpread(_objectSpread({
21401
21442
  'Filter.query': '查询',
21402
21443
  'Filter.and': '并且',
21403
21444
  'Filter.settings': '设置',
21404
- 'Filter.schemeNamePlaceholder': '请输入方案名称'
21445
+ 'Filter.schemeNamePlaceholder': '请输入方案名称',
21446
+ 'Form.requiredMessage': '请输入您的'
21405
21447
  });
21406
21448
 
21407
21449
  /* harmony default export */ __webpack_exports__["default"] = (locale);
@@ -22048,6 +22090,11 @@ var SubMenu = function SubMenu(props) {
22048
22090
  var handleOnClick = function handleOnClick(info) {
22049
22091
  // 保存路径
22050
22092
  info.keyPath = info.keyPath.concat([keyValue]);
22093
+
22094
+ if (triggerSubMenuAction === 'click' && mode === 'vertical') {
22095
+ closeSubMenu();
22096
+ }
22097
+
22051
22098
  restProps.handleOnClick && restProps.handleOnClick(info);
22052
22099
  }; // 子菜单展开收缩
22053
22100
 
@@ -22189,8 +22236,7 @@ var SubMenu = function SubMenu(props) {
22189
22236
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"]("li", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
22190
22237
  ref: subMenuRef,
22191
22238
  className: classnames__WEBPACK_IMPORTED_MODULE_12___default()(prefixCls, className, (_classNames2 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-collapsed"), collapsed), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-hover"), !disabled && isVisible), _classNames2)),
22192
- key: keyValue,
22193
- title: title
22239
+ key: keyValue
22194
22240
  }, mouseEvent, {
22195
22241
  style: style
22196
22242
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"]("div", {
@@ -31602,7 +31648,7 @@ var Tabs = function Tabs(props) {
31602
31648
  if (index !== -1) {
31603
31649
  var _carouselRef$current;
31604
31650
 
31605
- (_carouselRef$current = carouselRef.current) === null || _carouselRef$current === void 0 ? void 0 : _carouselRef$current.jumpTo(index);
31651
+ (_carouselRef$current = carouselRef.current) === null || _carouselRef$current === void 0 ? void 0 : _carouselRef$current.jumpTo(index, true);
31606
31652
  }
31607
31653
  }, [curActiveKey, carouselRef, carouselData]);
31608
31654
  Object(react__WEBPACK_IMPORTED_MODULE_9__["useEffect"])(function () {
@@ -31887,6 +31933,11 @@ var Tabs = function Tabs(props) {
31887
31933
 
31888
31934
  carouselData.push(item);
31889
31935
  });
31936
+
31937
+ if (effect !== 'none') {
31938
+ console.log('effect', effect);
31939
+ }
31940
+
31890
31941
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(_carousel__WEBPACK_IMPORTED_MODULE_21__["default"], {
31891
31942
  ref: carouselRef,
31892
31943
  dots: false,