@douyinfe/semi-ui 2.1.0-beta.1 → 2.1.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 (58) hide show
  1. package/dist/css/semi.css +1 -0
  2. package/dist/css/semi.min.css +1 -1
  3. package/dist/umd/semi-ui.js +69 -65
  4. package/dist/umd/semi-ui.js.map +1 -1
  5. package/dist/umd/semi-ui.min.js +1 -1
  6. package/dist/umd/semi-ui.min.js.map +1 -1
  7. package/lib/es/autoComplete/index.d.ts +36 -11
  8. package/lib/es/calendar/dayCalendar.js +1 -1
  9. package/lib/es/calendar/monthCalendar.js +1 -1
  10. package/lib/es/calendar/rangeCalendar.js +1 -1
  11. package/lib/es/calendar/weekCalendar.js +1 -1
  12. package/lib/es/cascader/index.d.ts +1 -1
  13. package/lib/es/collapse/index.js +1 -5
  14. package/lib/es/collapsible/index.js +4 -1
  15. package/lib/es/datePicker/index.d.ts +1 -1
  16. package/lib/es/datePicker/yearAndMonth.d.ts +2 -2
  17. package/lib/es/form/baseForm.d.ts +4 -10
  18. package/lib/es/form/baseForm.js +1 -2
  19. package/lib/es/form/field.d.ts +4 -22
  20. package/lib/es/form/field.js +2 -18
  21. package/lib/es/form/hoc/withField.d.ts +1 -1
  22. package/lib/es/form/hoc/withField.js +0 -3
  23. package/lib/es/locale/localeConsumer.d.ts +5 -5
  24. package/lib/es/modal/useModal/HookModal.d.ts +3 -2
  25. package/lib/es/modal/useModal/index.js +1 -1
  26. package/lib/es/navigation/index.d.ts +1 -1
  27. package/lib/es/notification/index.d.ts +1 -1
  28. package/lib/es/notification/index.js +1 -1
  29. package/lib/es/rating/index.d.ts +1 -1
  30. package/lib/es/resizeObserver/index.js +1 -0
  31. package/lib/es/scrollList/scrollItem.d.ts +12 -11
  32. package/lib/es/scrollList/scrollItem.js +8 -8
  33. package/lib/es/select/index.js +2 -2
  34. package/lib/es/select/option.js +2 -2
  35. package/lib/es/select/utils.js +2 -4
  36. package/lib/es/sideSheet/SideSheetContent.d.ts +1 -1
  37. package/lib/es/sideSheet/index.d.ts +3 -3
  38. package/lib/es/steps/basicSteps.js +2 -2
  39. package/lib/es/steps/fillSteps.js +3 -3
  40. package/lib/es/steps/navSteps.js +2 -2
  41. package/lib/es/table/interface.d.ts +2 -1
  42. package/lib/es/tabs/TabBar.d.ts +1 -1
  43. package/lib/es/tabs/index.d.ts +1 -1
  44. package/lib/es/tabs/index.js +5 -5
  45. package/lib/es/timePicker/Combobox.d.ts +10 -4
  46. package/lib/es/timePicker/Combobox.js +2 -1
  47. package/lib/es/timePicker/TimePicker.d.ts +1 -1
  48. package/lib/es/toast/index.d.ts +1 -1
  49. package/lib/es/treeSelect/index.js +2 -1
  50. package/lib/es/typography/base.d.ts +1 -1
  51. package/lib/es/typography/paragraph.d.ts +1 -1
  52. package/lib/es/typography/text.d.ts +1 -1
  53. package/lib/es/typography/title.d.ts +1 -1
  54. package/lib/es/upload/fileCard.d.ts +3 -18
  55. package/lib/es/upload/index.d.ts +4 -57
  56. package/lib/es/upload/interface.d.ts +56 -0
  57. package/lib/es/upload/interface.js +1 -0
  58. package/package.json +9 -8
@@ -15172,6 +15172,28 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_faye__;
15172
15172
 
15173
15173
  /***/ }),
15174
15174
 
15175
+ /***/ "ffXp":
15176
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
15177
+
15178
+ "use strict";
15179
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var lodash_es__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("r6MD");
15180
+
15181
+
15182
+ const log = function (text) {
15183
+ if (Object(lodash_es__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(process, 'env.NODE_ENV') === 'development') {
15184
+ for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
15185
+ rest[_key - 1] = arguments[_key];
15186
+ }
15187
+
15188
+ console.log(text, ...rest);
15189
+ }
15190
+ };
15191
+
15192
+ /* harmony default export */ __webpack_exports__["a"] = (log);
15193
+ /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("F63i")))
15194
+
15195
+ /***/ }),
15196
+
15175
15197
  /***/ "fw2E":
15176
15198
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
15177
15199
 
@@ -18230,12 +18252,9 @@ const strings = {
18230
18252
  var core_js_stable_set = __webpack_require__("ZIXj");
18231
18253
  var set_default = /*#__PURE__*/__webpack_require__.n(core_js_stable_set);
18232
18254
 
18233
- // CONCATENATED MODULE: ../semi-foundation/utils/log.ts
18234
- const log = function (text) {
18235
- if (false) { var _len, rest, _key; }
18236
- };
18255
+ // EXTERNAL MODULE: ../semi-foundation/utils/log.ts
18256
+ var log = __webpack_require__("ffXp");
18237
18257
 
18238
- /* harmony default export */ var utils_log = (log);
18239
18258
  // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/lodash-es/noop.js
18240
18259
  /**
18241
18260
  * This method returns `undefined`.
@@ -18380,7 +18399,7 @@ class foundation_BaseFoundation {
18380
18399
  rest[_key - 1] = arguments[_key];
18381
18400
  }
18382
18401
 
18383
- utils_log(text, ...rest);
18402
+ Object(log["a" /* default */])(text, ...rest);
18384
18403
  }
18385
18404
 
18386
18405
  }
@@ -18772,7 +18791,7 @@ class baseComponent_BaseComponent extends external_root_React_commonjs2_react_co
18772
18791
  rest[_key - 1] = arguments[_key];
18773
18792
  }
18774
18793
 
18775
- return utils_log(text, ...rest);
18794
+ return Object(log["a" /* default */])(text, ...rest);
18776
18795
  }
18777
18796
 
18778
18797
  }
@@ -24827,7 +24846,9 @@ const Icon = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd
24827
24846
  className: classes,
24828
24847
  style: outerStyle
24829
24848
  }, restProps), svg);
24830
- });
24849
+ }); // @ts-ignore used to judge whether it is a semi-icon in semi-ui
24850
+ // custom icon case
24851
+
24831
24852
  Icon.elementType = 'Icon';
24832
24853
 
24833
24854
  const convertIcon = (Svg, iconType) => {
@@ -24835,7 +24856,9 @@ const convertIcon = (Svg, iconType) => {
24835
24856
  svg: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Svg),
24836
24857
  type: iconType,
24837
24858
  ref: ref
24838
- }, props)));
24859
+ }, props))); // @ts-ignore used to judge whether it is a semi-icon in semi-ui
24860
+ // builtin icon case
24861
+
24839
24862
  InnerIcon.elementType = 'Icon';
24840
24863
  return InnerIcon;
24841
24864
  };
@@ -38408,7 +38431,7 @@ class dayCalendar_DayCalendar extends baseComponent_BaseComponent {
38408
38431
  },
38409
38432
  setParsedEvents: parsedEvents => {
38410
38433
  this.setState({
38411
- parsedEvents
38434
+ parsedEvents: parsedEvents
38412
38435
  });
38413
38436
  },
38414
38437
  cacheEventKeys: cachedKeys => {
@@ -38730,7 +38753,7 @@ class weekCalendar_WeekCalendar extends baseComponent_BaseComponent {
38730
38753
  },
38731
38754
  setParsedEvents: parsedEvents => {
38732
38755
  this.setState({
38733
- parsedEvents
38756
+ parsedEvents: parsedEvents
38734
38757
  });
38735
38758
  },
38736
38759
  cacheEventKeys: cachedKeys => {
@@ -39158,7 +39181,7 @@ class monthCalendar_monthCalendar extends baseComponent_BaseComponent {
39158
39181
  },
39159
39182
  setParsedEvents: parsedEvents => {
39160
39183
  this.setState({
39161
- parsedEvents
39184
+ parsedEvents: parsedEvents
39162
39185
  });
39163
39186
  },
39164
39187
  setItemLimit: itemLimit => {
@@ -39471,7 +39494,7 @@ class rangeCalendar_RangeCalendar extends baseComponent_BaseComponent {
39471
39494
  },
39472
39495
  setParsedEvents: parsedEvents => {
39473
39496
  this.setState({
39474
- parsedEvents
39497
+ parsedEvents: parsedEvents
39475
39498
  });
39476
39499
  },
39477
39500
  cacheEventKeys: cachedKeys => {
@@ -46005,7 +46028,10 @@ const Collapsible = props => {
46005
46028
  className: wrapperCls,
46006
46029
  ref: ref
46007
46030
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
46008
- ref: setHeight
46031
+ ref: setHeight,
46032
+ style: {
46033
+ overflow: 'hidden'
46034
+ }
46009
46035
  }, children));
46010
46036
  };
46011
46037
 
@@ -46248,12 +46274,8 @@ class collapse_Collapse extends baseComponent_BaseComponent {
46248
46274
  }
46249
46275
 
46250
46276
  get adapter() {
46251
- var _this = this;
46252
-
46253
46277
  return assign_default()(assign_default()({}, super.adapter), {
46254
- handleChange: function () {
46255
- return _this.props.onChange(...arguments);
46256
- },
46278
+ handleChange: (activeKey, e) => this.props.onChange(activeKey, e),
46257
46279
  addActiveKey: activeSet => this.setState({
46258
46280
  activeSet
46259
46281
  })
@@ -55727,14 +55749,6 @@ class scrollItem_ScrollItem extends baseComponent_BaseComponent {
55727
55749
  let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
55728
55750
  super(props);
55729
55751
  _this = this;
55730
- this.throttledAdjustList = lodash_es_throttle((e, nearestNode) => {
55731
- this.foundation.adjustInfiniteList(this.list, this.wrapper, nearestNode);
55732
- }, scrollItem_msPerFrame);
55733
- this.debouncedSelect = lodash_es_debounce((e, nearestNode) => {
55734
- this._cacheSelectedNode(nearestNode);
55735
-
55736
- this.foundation.selectNode(nearestNode, this.list);
55737
- }, scrollItem_msPerFrame * 5);
55738
55752
 
55739
55753
  this._cacheNode = (name, node) => name && node && Object.prototype.hasOwnProperty.call(this, name) && (this[name] = node);
55740
55754
 
@@ -56100,6 +56114,14 @@ class scrollItem_ScrollItem extends baseComponent_BaseComponent {
56100
56114
  this.scrollAnimation = null; // cache if select action comes from outside
56101
56115
 
56102
56116
  this.foundation = new itemFoundation_ItemFoundation(this.adapter);
56117
+ this.throttledAdjustList = lodash_es_throttle((e, nearestNode) => {
56118
+ this.foundation.adjustInfiniteList(this.list, this.wrapper, nearestNode);
56119
+ }, scrollItem_msPerFrame);
56120
+ this.debouncedSelect = lodash_es_debounce((e, nearestNode) => {
56121
+ this._cacheSelectedNode(nearestNode);
56122
+
56123
+ this.foundation.selectNode(nearestNode, this.list);
56124
+ }, scrollItem_msPerFrame * 5);
56103
56125
  }
56104
56126
 
56105
56127
  get adapter() {
@@ -56506,7 +56528,8 @@ class Combobox_Combobox extends baseComponent_BaseComponent {
56506
56528
  this.onItemChange = _ref => {
56507
56529
  let {
56508
56530
  type,
56509
- value
56531
+ value,
56532
+ disabled
56510
56533
  } = _ref;
56511
56534
  // eslint-disable-next-line prefer-const
56512
56535
  let {
@@ -66340,7 +66363,7 @@ class notification_NotificationList extends baseComponent_BaseComponent {
66340
66363
  this.add = noticeOpts => this.foundation.addNotice(noticeOpts);
66341
66364
 
66342
66365
  this.remove = id => {
66343
- this.foundation.removeNotice(id);
66366
+ this.foundation.removeNotice(String(id));
66344
66367
  };
66345
66368
 
66346
66369
  this.destroyAll = () => this.foundation.destroyAll();
@@ -66631,6 +66654,7 @@ class resizeObserver_ReactResizeObserver extends baseComponent_BaseComponent {
66631
66654
  // using findDOMNode for two reasons:
66632
66655
  // 1. cloning to insert a ref is unwieldy and not performant.
66633
66656
  // 2. ensure that we resolve to an actual DOM node (instead of any JSX ref instance).
66657
+ // eslint-disable-next-line
66634
66658
  return Object(external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_["findDOMNode"])(this.childNode || this);
66635
66659
  } catch (error) {
66636
66660
  // swallow error if findDOMNode is run on unmounted component.
@@ -71034,8 +71058,6 @@ const generateOption = (child, parent, index) => {
71034
71058
  };
71035
71059
 
71036
71060
  const getOptionsFromGroup = selectChildren => {
71037
- var _context;
71038
-
71039
71061
  let optionGroups = [];
71040
71062
  let options = [];
71041
71063
  const emptyGroup = {
@@ -71045,8 +71067,8 @@ const getOptionsFromGroup = selectChildren => {
71045
71067
  }; // avoid null
71046
71068
  // eslint-disable-next-line max-len
71047
71069
 
71048
- const childNodes = filter_default()(_context = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.toArray(selectChildren)).call(_context, childNode => childNode && childNode.props);
71049
-
71070
+ let childNodes = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.toArray(selectChildren);
71071
+ childNodes = filter_default()(childNodes).call(childNodes, childNode => childNode && childNode.props);
71050
71072
  let type = '';
71051
71073
  let optionIndex = -1;
71052
71074
 
@@ -77058,7 +77080,7 @@ const fillSteps_Steps = props => {
77058
77080
  const inner = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["useMemo"])(() => {
77059
77081
  var _context;
77060
77082
 
77061
- const filteredChildren = filter_default()(_context = external_root_React_commonjs2_react_commonjs_react_amd_react_["Children"].toArray(children)).call(_context, c => Boolean(c));
77083
+ const filteredChildren = filter_default()(_context = external_root_React_commonjs2_react_commonjs_react_amd_react_["Children"].toArray(children)).call(_context, c => /*#__PURE__*/Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["isValidElement"])(c));
77062
77084
 
77063
77085
  const colStyle = direction === 'vertical' ? null : {
77064
77086
  width: "".concat(100 / filteredChildren.length, "%")
@@ -77102,7 +77124,7 @@ const fillSteps_Steps = props => {
77102
77124
  });
77103
77125
 
77104
77126
  return content;
77105
- }, [children, initial, prefixCls, direction, status, current]);
77127
+ }, [children, initial, prefixCls, direction, status, current, onChange]);
77106
77128
  const wrapperCls = classnames_default()(className, {
77107
77129
  [prefixCls]: true,
77108
77130
  [concat_default()(_context2 = "".concat(prefixCls, "-")).call(_context2, direction)]: true
@@ -77162,7 +77184,7 @@ const basicSteps_Steps = props => {
77162
77184
  const inner = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["useMemo"])(() => {
77163
77185
  var _context;
77164
77186
 
77165
- const filteredChildren = filter_default()(_context = external_root_React_commonjs2_react_commonjs_react_amd_react_["Children"].toArray(children)).call(_context, c => Boolean(c));
77187
+ const filteredChildren = filter_default()(_context = external_root_React_commonjs2_react_commonjs_react_amd_react_["Children"].toArray(children)).call(_context, c => /*#__PURE__*/Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["isValidElement"])(c));
77166
77188
 
77167
77189
  const content = map_default()(external_root_React_commonjs2_react_commonjs_react_amd_react_["Children"]).call(external_root_React_commonjs2_react_commonjs_react_amd_react_["Children"], filteredChildren, (child, index) => {
77168
77190
  if (!child) {
@@ -77262,7 +77284,7 @@ const navSteps_Steps = props => {
77262
77284
  const inner = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["useMemo"])(() => {
77263
77285
  var _context;
77264
77286
 
77265
- const filteredChildren = filter_default()(_context = external_root_React_commonjs2_react_commonjs_react_amd_react_["Children"].toArray(children)).call(_context, c => Boolean(c));
77287
+ const filteredChildren = filter_default()(_context = external_root_React_commonjs2_react_commonjs_react_amd_react_["Children"].toArray(children)).call(_context, c => /*#__PURE__*/Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["isValidElement"])(c));
77266
77288
 
77267
77289
  const total = filteredChildren.length;
77268
77290
 
@@ -86281,7 +86303,7 @@ class tabs_Tabs extends baseComponent_BaseComponent {
86281
86303
  }
86282
86304
 
86283
86305
  return filter_default()(_context = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.toArray(children)).call(_context, pane => {
86284
- if (pane && pane.type && pane.type.isTabPane) {
86306
+ if ( /*#__PURE__*/Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["isValidElement"])(pane) && pane.type && pane.type.isTabPane) {
86285
86307
  return pane.props.itemKey === activeKey;
86286
86308
  }
86287
86309
 
@@ -86419,7 +86441,7 @@ class tabs_Tabs extends baseComponent_BaseComponent {
86419
86441
  children
86420
86442
  } = this.props;
86421
86443
  let activeKey = '';
86422
- const list = tabList ? tabList : map_default()(_context4 = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.toArray(children)).call(_context4, child => child.props);
86444
+ const list = tabList ? tabList : map_default()(_context4 = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.toArray(children)).call(_context4, child => /*#__PURE__*/Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["isValidElement"])(child) ? child.props : null);
86423
86445
 
86424
86446
  for_each_default()(list).call(list, item => {
86425
86447
  if (item && !activeKey && !item.disabled) {
@@ -86449,9 +86471,9 @@ class tabs_Tabs extends baseComponent_BaseComponent {
86449
86471
  var _context5, _context6;
86450
86472
 
86451
86473
  // Panes state acts on tab bar, no need to compare TabPane children
86452
- const prevChildrenProps = map_default()(_context5 = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.toArray(prevProps.children)).call(_context5, child => lodash_es_pick(child.props, panePickKeys));
86474
+ const prevChildrenProps = map_default()(_context5 = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.toArray(prevProps.children)).call(_context5, child => lodash_es_pick( /*#__PURE__*/Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["isValidElement"])(child) ? child.props : null, panePickKeys));
86453
86475
 
86454
- const nowChildrenProps = map_default()(_context6 = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.toArray(this.props.children)).call(_context6, child => lodash_es_pick(child.props, panePickKeys));
86476
+ const nowChildrenProps = map_default()(_context6 = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.toArray(this.props.children)).call(_context6, child => lodash_es_pick( /*#__PURE__*/Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["isValidElement"])(child) ? child.props : null, panePickKeys));
86455
86477
 
86456
86478
  const isTabListType = this.props.tabList || prevProps.tabList;
86457
86479
 
@@ -92931,7 +92953,8 @@ class treeSelect_TreeSelect extends baseComponent_BaseComponent {
92931
92953
  registerClickOutsideHandler: cb => {
92932
92954
  const clickOutsideHandler = e => {
92933
92955
  const optionInstance = this.optionsRef && this.optionsRef.current;
92934
- const triggerDom = this.triggerRef && this.triggerRef.current;
92956
+ const triggerDom = this.triggerRef && this.triggerRef.current; // eslint-disable-next-line
92957
+
92935
92958
  const optionsDom = external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default.a.findDOMNode(optionInstance);
92936
92959
  const target = e.target;
92937
92960
 
@@ -94861,6 +94884,7 @@ var upload = __webpack_require__("/t7F");
94861
94884
 
94862
94885
 
94863
94886
 
94887
+
94864
94888
  const upload_prefixCls = upload_constants_cssClasses.PREFIX;
94865
94889
 
94866
94890
 
@@ -99709,8 +99733,6 @@ function useStateWithGetter(initial) {
99709
99733
 
99710
99734
 
99711
99735
 
99712
- /* argus-disable unPkgSensitiveInfo */
99713
-
99714
99736
  /* eslint-disable max-lines-per-function, react-hooks/rules-of-hooks, prefer-const, max-len */
99715
99737
 
99716
99738
 
@@ -100211,7 +100233,6 @@ function withField(Component, opts) {
100211
100233
  return Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["useMemo"])(() => FieldComponent, [...shouldUpdate]);
100212
100234
  } else {
100213
100235
  // Some Custom Component with inner state shouldn't be memo, otherwise the component will not updated when the internal state is updated
100214
- // Fixed issue 328
100215
100236
  return FieldComponent;
100216
100237
  }
100217
100238
  };
@@ -100277,24 +100298,8 @@ const FormSwitch = hoc_withField(switch_0, {
100277
100298
  valueKey: 'checked'
100278
100299
  });
100279
100300
  const FormSlider = hoc_withField(slider_Slider);
100280
- /**
100281
- * Reasons for using ts-igonre:
100282
- *
100283
- * 1. TimePicker: The propTypes of the locale is defined as object (it is not necessary and too troublesome to write a complete shapeOf),
100284
- * but the interface defines a complete type, the two cannot match, and ts will report an error, so skip it here.
100285
- *
100286
- * 2. Cascader: treeData { label, value } define in PropTypes.shapeOf alreaady declare isRequired, ts still throw error
100287
- * 【Property is optional in type “InferProps<{ value: Validator<string | number>; label: Validator<any>; }>” but required in type CascaderData】
100288
- * skip it here.
100289
- * 3. TreeSelect: value same as cascader, skip it here
100290
- *
100291
- */
100292
- // @ts-ignore-next-line
100293
-
100294
- const FormTimePicker = hoc_withField(timePicker_LocaleTimePicker); // @ts-ignore-next-line
100295
-
100296
- const FormTreeSelect = hoc_withField(treeSelect_0); // @ts-ignore-next-line
100297
-
100301
+ const FormTimePicker = hoc_withField(timePicker_LocaleTimePicker);
100302
+ const FormTreeSelect = hoc_withField(treeSelect_0);
100298
100303
  const FormCascader = hoc_withField(cascader_0);
100299
100304
  const FormRating = hoc_withField(rating_Rating);
100300
100305
  const FormAutoComplete = hoc_withField(autoComplete_0, {
@@ -100360,8 +100365,7 @@ class baseForm_Form extends baseComponent_BaseComponent {
100360
100365
  this.state = {
100361
100366
  formId: getUuidv4()
100362
100367
  };
100363
- Object(warning["a" /* default */])( // @ts-ignore special usage
100364
- props.component && props.render, '[Semi Form] You should not use <Form component> and <Form render> in ths same time; <Form render> will be ignored');
100368
+ Object(warning["a" /* default */])(Boolean(props.component && props.render), '[Semi Form] You should not use <Form component> and <Form render> in ths same time; <Form render> will be ignored');
100365
100369
  Object(warning["a" /* default */])(props.component && props.children && !isEmptyChildren(props.children), '[Semi Form] You should not use <Form component> and <Form>{children}</Form> in ths same time; <Form>{children}</Form> will be ignored');
100366
100370
  Object(warning["a" /* default */])(props.render && props.children && !isEmptyChildren(props.children), '[Semi Form] You should not use <Form render> and <Form>{children}</Form> in ths same time; <Form>{children}</Form> will be ignored');
100367
100371
  this.submit = bind_default()(_context = this.submit).call(_context, this);