@douyinfe/semi-ui 2.30.0-alpha.1 → 2.30.0-alpha.2

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.
@@ -88450,25 +88450,34 @@ class timeline_item_Item extends external_root_React_commonjs2_react_commonjs_re
88450
88450
  super(...arguments); // getC2DCls is used in C2D, it does not work in non-C2D scenes
88451
88451
 
88452
88452
  this.getC2DCls = () => {
88453
+ let c2dCls = '';
88453
88454
  const {
88454
88455
  mode,
88455
- oddIndex
88456
+ oddIndex,
88457
+ lastOne
88456
88458
  } = this.props;
88457
88459
 
88458
88460
  if (mode) {
88459
88461
  switch (mode) {
88460
88462
  case 'center':
88461
- return "".concat(timeline_item_prefixCls, "-center ").concat(timeline_item_prefixCls, "-left");
88463
+ c2dCls = "".concat(timeline_item_prefixCls, "-center ").concat(timeline_item_prefixCls, "-left");
88464
+ break;
88462
88465
 
88463
88466
  case 'alternate':
88464
- return "".concat(timeline_item_prefixCls, "-alternate ").concat(timeline_item_prefixCls, "-").concat(oddIndex ? 'left' : 'right');
88467
+ c2dCls = "".concat(timeline_item_prefixCls, "-alternate ").concat(timeline_item_prefixCls, "-").concat(oddIndex ? 'left' : 'right');
88468
+ break;
88465
88469
 
88466
88470
  default:
88467
- return "".concat(timeline_item_prefixCls, "-").concat(mode, " ").concat(mode === 'right' ? "".concat(timeline_item_prefixCls, "-mode-right") : '');
88471
+ c2dCls = "".concat(timeline_item_prefixCls, "-").concat(mode, " ").concat(mode === 'right' ? "".concat(timeline_item_prefixCls, "-mode-right") : '');
88472
+ break;
88468
88473
  }
88469
88474
  }
88470
88475
 
88471
- return '';
88476
+ if (!lastOne) {
88477
+ c2dCls += " ".concat(timeline_item_prefixCls, "-not-last-child");
88478
+ }
88479
+
88480
+ return c2dCls;
88472
88481
  };
88473
88482
  }
88474
88483
 
@@ -88525,7 +88534,8 @@ timeline_item_Item.propTypes = {
88525
88534
  className: prop_types_default.a.string,
88526
88535
  style: prop_types_default.a.object,
88527
88536
  onClick: prop_types_default.a.func,
88528
- mode: prop_types_default.a.string
88537
+ mode: prop_types_default.a.string,
88538
+ lastOne: prop_types_default.a.bool
88529
88539
  };
88530
88540
  timeline_item_Item.defaultProps = {
88531
88541
  type: 'default',