@douyinfe/semi-ui 2.25.0-beta.0 → 2.25.1

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.
@@ -43979,7 +43979,7 @@ class tagInput_TagInput extends baseComponent_BaseComponent {
43979
43979
  }
43980
43980
 
43981
43981
  blur() {
43982
- this.inputRef.current.blur(); // unregister clickOutside event
43982
+ this.inputRef.current.blur(); // unregister clickOutside event
43983
43983
 
43984
43984
  this.foundation.clickOutsideCallBack();
43985
43985
  }
@@ -43994,7 +43994,7 @@ class tagInput_TagInput extends baseComponent_BaseComponent {
43994
43994
  });
43995
43995
 
43996
43996
  if (!disabled) {
43997
- // register clickOutside event
43997
+ // register clickOutside event
43998
43998
  this.foundation.handleClick();
43999
43999
  }
44000
44000
  }
@@ -44020,13 +44020,15 @@ class tagInput_TagInput extends baseComponent_BaseComponent {
44020
44020
  ["".concat(tagInput_prefixCls, "-disabled")]: disabled,
44021
44021
  ["".concat(tagInput_prefixCls, "-hover")]: hovering && !disabled,
44022
44022
  ["".concat(tagInput_prefixCls, "-error")]: validateStatus === 'error',
44023
- ["".concat(tagInput_prefixCls, "-warning")]: validateStatus === 'warning'
44023
+ ["".concat(tagInput_prefixCls, "-warning")]: validateStatus === 'warning',
44024
+ ["".concat(tagInput_prefixCls, "-small")]: size === 'small',
44025
+ ["".concat(tagInput_prefixCls, "-large")]: size === 'large'
44024
44026
  });
44025
44027
  const inputCls = classnames_default()("".concat(tagInput_prefixCls, "-wrapper-input"), "".concat(tagInput_prefixCls, "-wrapper-input-").concat(size));
44026
- const wrapperCls = classnames_default()("".concat(tagInput_prefixCls, "-wrapper"), "".concat(tagInput_prefixCls, "-wrapper-").concat(size));
44028
+ const wrapperCls = classnames_default()("".concat(tagInput_prefixCls, "-wrapper"));
44027
44029
  return (
44028
44030
  /*#__PURE__*/
44029
- // eslint-disable-next-line
44031
+ // eslint-disable-next-line
44030
44032
  external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
44031
44033
  ref: this.tagInputRef,
44032
44034
  style: style,
@@ -66972,7 +66974,9 @@ const overflowList_constants_strings = {
66972
66974
  BOUNDARY_MAP,
66973
66975
  OVERFLOW_DIR
66974
66976
  };
66975
- const overflowList_constants_numbers = {};
66977
+ const overflowList_constants_numbers = {
66978
+ MINIMUM_HTML_ELEMENT_WIDTH: 4
66979
+ };
66976
66980
 
66977
66981
  // EXTERNAL MODULE: /home/runner/work/semi-design/semi-design/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
66978
66982
  var ResizeObserver_es = __webpack_require__("LaGA");
@@ -67191,6 +67195,13 @@ class foundation_OverflowListFoundation extends foundation {
67191
67195
  } = this.getProps();
67192
67196
  return renderMode === 'scroll';
67193
67197
  };
67198
+
67199
+ this.getReversedItems = () => {
67200
+ const {
67201
+ items
67202
+ } = this.getProps();
67203
+ return cloneDeep_default()(items).reverse();
67204
+ };
67194
67205
  }
67195
67206
 
67196
67207
  getOverflowItem() {
@@ -67259,54 +67270,68 @@ class foundation_OverflowListFoundation extends foundation {
67259
67270
  this._adapter.notifyIntersect(res);
67260
67271
  }
67261
67272
 
67262
- handlePartition(growing) {
67273
+ handleCollapseOverflow() {
67263
67274
  const {
67264
- direction,
67265
- overflow,
67266
- lastOverflowCount,
67267
- visible
67275
+ minVisibleItems,
67276
+ collapseFrom
67277
+ } = this.getProps();
67278
+ const {
67279
+ overflowWidth,
67280
+ containerWidth,
67281
+ pivot: statePivot,
67282
+ overflowStatus
67268
67283
  } = this.getStates();
67269
67284
  const {
67270
- minVisibleItems,
67271
- collapseFrom,
67272
- items
67285
+ items,
67286
+ onOverflow
67273
67287
  } = this.getProps();
67274
- let updateState = {};
67288
+ let itemWidths = overflowWidth,
67289
+ _pivot = 0;
67290
+ let overflowed = false;
67275
67291
 
67276
- if (growing === OverflowDirection.NONE) {
67277
- updateState = {
67278
- direction: OverflowDirection.NONE
67279
- };
67280
- }
67292
+ for (const size of this._adapter.getItemSizeMap().values()) {
67293
+ itemWidths += size; // 触发overflow
67281
67294
 
67282
- if (growing === OverflowDirection.GROW) {
67283
- const updatedOverflowCount = direction === OverflowDirection.NONE ? overflow.length : lastOverflowCount;
67284
- updateState = {
67285
- direction: OverflowDirection.GROW,
67286
- lastOverflowCount: updatedOverflowCount,
67287
- overflow: [],
67288
- visible: items
67289
- };
67290
- }
67295
+ if (itemWidths > containerWidth) {
67296
+ overflowed = true;
67297
+ break;
67298
+ } // 顺利遍历完整个列表,说明不存在overflow,直接渲染全部
67291
67299
 
67292
- if (growing === OverflowDirection.SHRINK && visible.length > minVisibleItems) {
67293
- const collapseFromStart = collapseFrom === Boundary.START;
67294
- const newVisible = visible.slice();
67295
- const next = collapseFromStart ? newVisible.shift() : newVisible.pop();
67296
67300
 
67297
- if (next !== undefined) {
67298
- updateState = {
67299
- // set SHRINK mode unless a GROW is already in progress.
67300
- // GROW shows all items then shrinks until it settles, so we
67301
- // preserve the fact that the original trigger was a GROW.
67302
- direction: direction !== OverflowDirection.GROW ? OverflowDirection.SHRINK : direction,
67303
- overflow: collapseFromStart ? [...overflow, next] : [next, ...overflow],
67304
- visible: newVisible
67305
- };
67301
+ if (_pivot === items.length - 1) {
67302
+ this._adapter.updateStates({
67303
+ overflowStatus: "normal",
67304
+ pivot: items.length - 1,
67305
+ visible: items,
67306
+ overflow: []
67307
+ });
67308
+
67309
+ break;
67306
67310
  }
67311
+
67312
+ _pivot++;
67307
67313
  }
67308
67314
 
67309
- this._adapter.updateStates(updateState);
67315
+ if (overflowed) {
67316
+ const pivot = Math.max(minVisibleItems, _pivot);
67317
+ const isCollapseFromStart = collapseFrom === Boundary.START;
67318
+ const visible = isCollapseFromStart ? this.getReversedItems().slice(0, pivot).reverse() : items.slice(0, pivot);
67319
+ const overflow = isCollapseFromStart ? this.getReversedItems().slice(pivot).reverse() : items.slice(pivot);
67320
+
67321
+ this._adapter.updateStates({
67322
+ overflowStatus: "overflowed",
67323
+ pivot: pivot,
67324
+ visible,
67325
+ overflow
67326
+ }); // trigger onOverflow
67327
+
67328
+
67329
+ if (statePivot !== pivot) {
67330
+ onOverflow(overflow);
67331
+ }
67332
+
67333
+ return;
67334
+ }
67310
67335
  }
67311
67336
 
67312
67337
  }
@@ -67320,7 +67345,6 @@ var overflowList = __webpack_require__("O1Tx");
67320
67345
 
67321
67346
 
67322
67347
 
67323
-
67324
67348
  /* eslint-disable arrow-body-style */
67325
67349
 
67326
67350
 
@@ -67354,26 +67378,15 @@ class overflowList_OverflowList extends baseComponent_BaseComponent {
67354
67378
 
67355
67379
  this.resize = function () {
67356
67380
  let entries = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
67357
- // if any parent is growing, assume we have more room than before
67358
- const growing = entries.some(entry => {
67359
- const previousWidth = _this.previousWidths.get(entry.target) || 0;
67360
- return entry.contentRect.width > previousWidth;
67361
- });
67362
-
67363
- _this.repartition(growing);
67364
-
67365
- entries.forEach(entry => _this.previousWidths.set(entry.target, entry.contentRect.width));
67366
- };
67367
67381
 
67368
- this.repartition = growing => {
67369
- // if not mounted or scroll mode, we do not
67370
- if (isNull_default()(this.spacer) || isUndefined_default()(this.spacer) || this.isScrollMode()) {
67371
- return;
67372
- } // spacer has flex-shrink and width 1px so if it's much smaller then we know to shrink
67382
+ var _a;
67373
67383
 
67384
+ const containerWidth = (_a = entries[0]) === null || _a === void 0 ? void 0 : _a.target.clientWidth;
67374
67385
 
67375
- const state = growing ? overflowList_OverflowDirection.GROW : this.spacer.getBoundingClientRect().width < 0.9 ? overflowList_OverflowDirection.SHRINK : overflowList_OverflowDirection.NONE;
67376
- this.foundation.handlePartition(state);
67386
+ _this.setState({
67387
+ containerWidth,
67388
+ overflowStatus: 'calculating'
67389
+ });
67377
67390
  };
67378
67391
 
67379
67392
  this.reintersect = entries => {
@@ -67395,6 +67408,18 @@ class overflowList_OverflowList extends baseComponent_BaseComponent {
67395
67408
  return this.props.overflowRenderer(overflow);
67396
67409
  };
67397
67410
 
67411
+ this.getItemKey = (item, defalutKey) => {
67412
+ const {
67413
+ itemKey
67414
+ } = this.props;
67415
+
67416
+ if (isFunction_default()(itemKey)) {
67417
+ return itemKey(item);
67418
+ }
67419
+
67420
+ return get_default()(item, itemKey || 'key', defalutKey);
67421
+ };
67422
+
67398
67423
  this.renderItemList = () => {
67399
67424
  const {
67400
67425
  className,
@@ -67406,9 +67431,32 @@ class overflowList_OverflowList extends baseComponent_BaseComponent {
67406
67431
  collapseFrom
67407
67432
  } = this.props;
67408
67433
  const {
67409
- visible
67434
+ visible,
67435
+ overflowStatus
67410
67436
  } = this.state;
67411
- const overflow = this.renderOverflow();
67437
+ let overflow = this.renderOverflow();
67438
+
67439
+ if (!this.isScrollMode()) {
67440
+ if (Array.isArray(overflow)) {
67441
+ overflow = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Fragment, null, overflow);
67442
+ }
67443
+
67444
+ if ( /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.isValidElement(overflow)) {
67445
+ const child = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(overflow);
67446
+ overflow = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(resizeObserver_ReactResizeObserver, {
67447
+ onResize: _ref => {
67448
+ let [entry] = _ref;
67449
+ this.setState({
67450
+ overflowWidth: entry.target.clientWidth,
67451
+ overflowStatus: 'calculating'
67452
+ });
67453
+ }
67454
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
67455
+ className: "".concat(overflowList_prefixCls, "-overflow")
67456
+ }, child));
67457
+ }
67458
+ }
67459
+
67412
67460
  const inner = renderMode === RenderMode.SCROLL ? [overflow[0], /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
67413
67461
  className: classnames_default()(wrapperClassName, "".concat(overflowList_prefixCls, "-scroll-wrapper")),
67414
67462
  ref: ref => {
@@ -67416,7 +67464,7 @@ class overflowList_OverflowList extends baseComponent_BaseComponent {
67416
67464
  },
67417
67465
  style: Object.assign({}, wrapperStyle),
67418
67466
  key: "".concat(overflowList_prefixCls, "-scroll-wrapper")
67419
- }, visible.map(visibleItemRenderer).map((item, ind) => {
67467
+ }, visible.map(visibleItemRenderer).map(item => {
67420
67468
  const {
67421
67469
  forwardRef,
67422
67470
  key
@@ -67426,24 +67474,71 @@ class overflowList_OverflowList extends baseComponent_BaseComponent {
67426
67474
  'data-scrollkey': "".concat(key),
67427
67475
  key
67428
67476
  });
67429
- })), overflow[1]] : [collapseFrom === overflowList_Boundary.START ? overflow : null, visible.map(visibleItemRenderer), collapseFrom === overflowList_Boundary.END ? overflow : null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
67430
- className: "".concat(overflowList_prefixCls, "-spacer"),
67431
- ref: ref => this.spacer = ref,
67432
- key: "".concat(overflowList_prefixCls, "-spacer")
67433
- })];
67477
+ })), overflow[1]] : [collapseFrom === overflowList_Boundary.START ? overflow : null, visible.map((item, idx) => {
67478
+ const {
67479
+ key
67480
+ } = item;
67481
+ const element = visibleItemRenderer(item, idx);
67482
+ const child = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(element);
67483
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(resizeObserver_ReactResizeObserver, {
67484
+ key: key,
67485
+ onResize: _ref2 => {
67486
+ let [entry] = _ref2;
67487
+ return this.onItemResize(entry, item, idx);
67488
+ }
67489
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
67490
+ key: key,
67491
+ className: "".concat(overflowList_prefixCls, "-item")
67492
+ }, child));
67493
+ }), collapseFrom === overflowList_Boundary.END ? overflow : null];
67434
67494
  const list = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement('div', {
67435
67495
  className: classnames_default()("".concat(overflowList_prefixCls), className),
67436
- style
67496
+ style: Object.assign(Object.assign({}, style), renderMode === RenderMode.COLLAPSE ? {
67497
+ maxWidth: '100%',
67498
+ visibility: overflowStatus === "calculating" ? "hidden" : "visible"
67499
+ } : null)
67437
67500
  }, ...inner);
67438
67501
  return list;
67439
67502
  };
67440
67503
 
67504
+ this.onItemResize = (entry, item, idx) => {
67505
+ const key = this.getItemKey(item, idx);
67506
+ const width = this.itemSizeMap.get(key);
67507
+
67508
+ if (!width) {
67509
+ this.itemSizeMap.set(key, entry.target.clientWidth);
67510
+ } else if (width !== entry.target.clientWidth) {
67511
+ // 某个item发生resize后,重新计算
67512
+ this.itemSizeMap.set(key, entry.target.clientWidth);
67513
+ this.setState({
67514
+ overflowStatus: 'calculating'
67515
+ });
67516
+ }
67517
+
67518
+ const {
67519
+ maxCount
67520
+ } = this.state; // 已经按照最大值maxCount渲染完毕,触发真正的渲染。(-1 是overflow部分会占1)
67521
+ // Already rendered maxCount items, trigger the real rendering. (-1 for the overflow part)
67522
+
67523
+ if (this.itemSizeMap.size === maxCount - 1) {
67524
+ this.setState({
67525
+ overflowStatus: 'calculating'
67526
+ });
67527
+ }
67528
+ };
67529
+
67441
67530
  this.state = {
67442
67531
  direction: overflowList_OverflowDirection.GROW,
67443
67532
  lastOverflowCount: 0,
67444
67533
  overflow: [],
67445
- visible: props.items,
67446
- visibleState: new Map()
67534
+ visible: [],
67535
+ containerWidth: 0,
67536
+ visibleState: new Map(),
67537
+ itemSizeMap: new Map(),
67538
+ overflowStatus: "calculating",
67539
+ pivot: 0,
67540
+ overflowWidth: 0,
67541
+ maxCount: 0
67447
67542
  };
67448
67543
  this.foundation = new overflowList_foundation(this.adapter);
67449
67544
  this.previousWidths = new Map();
@@ -67466,8 +67561,18 @@ class overflowList_OverflowList extends baseComponent_BaseComponent {
67466
67561
  // reset visible state if the above props change.
67467
67562
  newState.direction = overflowList_OverflowDirection.GROW;
67468
67563
  newState.lastOverflowCount = 0;
67469
- newState.overflow = [];
67470
- newState.visible = props.items;
67564
+
67565
+ if (props.renderMode === RenderMode.SCROLL) {
67566
+ newState.visible = props.items;
67567
+ newState.overflow = [];
67568
+ } else {
67569
+ newState.visible = [];
67570
+ newState.overflow = [];
67571
+ }
67572
+
67573
+ newState.pivot = 0;
67574
+ newState.maxCount = 0;
67575
+ newState.overflowStatus = "calculating";
67471
67576
  }
67472
67577
 
67473
67578
  return newState;
@@ -67485,45 +67590,45 @@ class overflowList_OverflowList extends baseComponent_BaseComponent {
67485
67590
  },
67486
67591
  notifyIntersect: res => {
67487
67592
  this.props.onIntersect && this.props.onIntersect(res);
67488
- }
67593
+ },
67594
+ getItemSizeMap: () => this.itemSizeMap
67489
67595
  });
67490
67596
  }
67491
67597
 
67492
- componentDidMount() {
67493
- this.repartition(false);
67494
- }
67495
-
67496
- shouldComponentUpdate(_nextProps, nextState) {
67497
- // We want this component to always re-render, even when props haven't changed, so that
67498
- // changes in the renderers' behavior can be reflected.
67499
- // The following statement prevents re-rendering only in the case where the state changes
67500
- // identity (i.e. setState was called), but the state is still the same when
67501
- // shallow-compared to the previous state.
67502
- const currState = omit_default()(this.state, 'prevProps');
67503
-
67504
- const comingState = omit_default()(nextState, 'prevProps');
67505
-
67506
- return !(currState !== comingState && isEqual_default()(currState, comingState));
67507
- }
67508
-
67509
67598
  componentDidUpdate(prevProps, prevState) {
67510
67599
  if (!isEqual_default()(prevProps.items, this.props.items)) {
67511
67600
  this.itemRefs = {};
67512
67601
  }
67513
67602
 
67514
- if (!isEqual_default()(omit_default()(prevState, 'prevProps'), omit_default()(this.state, 'prevProps'))) {
67515
- this.repartition(false);
67516
- }
67517
-
67518
67603
  const {
67519
- direction,
67520
67604
  overflow,
67521
- lastOverflowCount
67605
+ containerWidth,
67606
+ visible,
67607
+ overflowStatus
67522
67608
  } = this.state;
67523
67609
 
67524
- if ( // if a resize operation has just completed (transition to NONE)
67525
- direction === overflowList_OverflowDirection.NONE && direction !== prevState.direction && overflow.length !== lastOverflowCount) {
67526
- this.props.onOverflow && this.props.onOverflow(overflow);
67610
+ if (this.isScrollMode() || overflowStatus !== "calculating") {
67611
+ return;
67612
+ }
67613
+
67614
+ if (visible.length === 0 && overflow.length === 0 && this.props.items.length !== 0) {
67615
+ // 推测container最多能渲染的数量
67616
+ // Figure out the maximum number of items in this container
67617
+ const maxCount = Math.min(this.props.items.length, Math.floor(containerWidth / overflowList_constants_numbers.MINIMUM_HTML_ELEMENT_WIDTH)); // 如果collapseFrom是start, 第一次用来计算容量时,倒转列表顺序渲染
67618
+ // If collapseFrom === start, render item from end to start. Figuring out how many items in the end could fit in container.
67619
+
67620
+ const isCollapseFromStart = this.props.collapseFrom === overflowList_Boundary.START;
67621
+ const visible = isCollapseFromStart ? this.foundation.getReversedItems().slice(0, maxCount) : this.props.items.slice(0, maxCount);
67622
+ const overflow = isCollapseFromStart ? this.foundation.getReversedItems().slice(maxCount) : this.props.items.slice(maxCount);
67623
+ this.setState({
67624
+ overflowStatus: 'calculating',
67625
+ visible,
67626
+ overflow,
67627
+ maxCount: maxCount
67628
+ });
67629
+ this.itemSizeMap.clear();
67630
+ } else {
67631
+ this.foundation.handleCollapseOverflow();
67527
67632
  }
67528
67633
  }
67529
67634
 
@@ -67555,7 +67660,8 @@ overflowList_OverflowList.defaultProps = {
67555
67660
  overflowRenderer: () => null,
67556
67661
  renderMode: 'collapse',
67557
67662
  threshold: 0.75,
67558
- visibleItemRenderer: () => null
67663
+ visibleItemRenderer: () => null,
67664
+ onOverflow: () => null
67559
67665
  };
67560
67666
  overflowList_OverflowList.propTypes = {
67561
67667
  // if render in scroll mode, key is required in items
@@ -72534,7 +72640,8 @@ class select_Select extends baseComponent_BaseComponent {
72534
72640
  innerBottomSlot,
72535
72641
  loading,
72536
72642
  virtualize,
72537
- multiple
72643
+ multiple,
72644
+ emptyContent
72538
72645
  } = this.props; // Do a filter first, instead of directly judging in forEach, so that the focusIndex can correspond to
72539
72646
 
72540
72647
  const visibleOptions = options.filter(item => item._show);
@@ -72557,7 +72664,11 @@ class select_Select extends baseComponent_BaseComponent {
72557
72664
  // eslint-disable-next-line jsx-a11y/no-static-element-interactions
72558
72665
  external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
72559
72666
  id: "".concat(select_prefixcls, "-").concat(this.selectOptionListID),
72560
- className: classnames_default()("".concat(select_prefixcls, "-option-list-wrapper"), dropdownClassName),
72667
+ className: classnames_default()({
72668
+ // When emptyContent is null and the option is empty, there is no need for the drop-down option for the user,
72669
+ // so there is no need to set padding through this className
72670
+ ["".concat(select_prefixcls, "-option-list-wrapper")]: !(isEmpty && emptyContent === null)
72671
+ }, dropdownClassName),
72561
72672
  style: style,
72562
72673
  ref: this.setOptionContainerEl,
72563
72674
  onKeyDown: e => this.foundation.handleContainerKeyDown(e)
@@ -102858,6 +102969,16 @@ var image_image = __webpack_require__("txvO");
102858
102969
 
102859
102970
 
102860
102971
 
102972
+ var image_rest = undefined && undefined.__rest || function (s, e) {
102973
+ var t = {};
102974
+
102975
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
102976
+
102977
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
102978
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
102979
+ }
102980
+ return t;
102981
+ };
102861
102982
  /* eslint-disable jsx-a11y/click-events-have-key-events */
102862
102983
 
102863
102984
  /* eslint-disable jsx-a11y/no-static-element-interactions */
@@ -102873,6 +102994,8 @@ var image_image = __webpack_require__("txvO");
102873
102994
 
102874
102995
 
102875
102996
 
102997
+
102998
+
102876
102999
  const image_prefixCls = image_constants_cssClasses.PREFIX;
102877
103000
  class image_Image extends baseComponent_BaseComponent {
102878
103001
  constructor(props) {
@@ -103022,15 +103145,23 @@ class image_Image extends baseComponent_BaseComponent {
103022
103145
  loadStatus,
103023
103146
  previewVisible
103024
103147
  } = this.state;
103025
- const {
103148
+
103149
+ const _b = this.props,
103150
+ {
103151
+ src: picSrc,
103026
103152
  width,
103027
103153
  height,
103028
103154
  alt,
103029
103155
  style,
103030
103156
  className,
103031
103157
  crossOrigin,
103032
- preview
103033
- } = this.props;
103158
+ preview,
103159
+ fallback,
103160
+ placeholder,
103161
+ imageID
103162
+ } = _b,
103163
+ restProps = image_rest(_b, ["src", "width", "height", "alt", "style", "className", "crossOrigin", "preview", "fallback", "placeholder", "imageID"]);
103164
+
103034
103165
  const outerStyle = Object.assign({
103035
103166
  width,
103036
103167
  height
@@ -103048,7 +103179,7 @@ class image_Image extends baseComponent_BaseComponent {
103048
103179
  style: outerStyle,
103049
103180
  className: outerCls,
103050
103181
  onClick: this.handleClick
103051
- }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("img", {
103182
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("img", Object.assign({}, restProps, {
103052
103183
  src: this.isInGroup() && this.isLazyLoad() ? undefined : src,
103053
103184
  "data-src": src,
103054
103185
  alt: alt,
@@ -103061,7 +103192,7 @@ class image_Image extends baseComponent_BaseComponent {
103061
103192
  crossOrigin: crossOrigin,
103062
103193
  onError: this.handleError,
103063
103194
  onLoad: this.handleLoaded
103064
- }), loadStatus !== "success" && this.renderExtra(), canPreview && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(previewInner_PreviewInner, Object.assign({}, previewProps, {
103195
+ })), loadStatus !== "success" && this.renderExtra(), canPreview && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(previewInner_PreviewInner, Object.assign({}, previewProps, {
103065
103196
  src: previewSrc,
103066
103197
  visible: previewVisible,
103067
103198
  onVisibleChange: this.handlePreviewVisibleChange,