@nutui/nutui-react-taro 3.0.19-cpp.4 → 3.0.19-cpp.6

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 (56) hide show
  1. package/dist/cjs/packages/address/style/style.harmony.css +0 -1
  2. package/dist/cjs/packages/cascader/style/style.harmony.css +0 -1
  3. package/dist/cjs/packages/input/style/input.scss +0 -1
  4. package/dist/cjs/packages/input/style/style.css +0 -1
  5. package/dist/cjs/packages/input/style/style.harmony.css +0 -1
  6. package/dist/cjs/packages/input/style-jmapp/input.scss +0 -1
  7. package/dist/cjs/packages/input/style-jmapp/style.css +0 -1
  8. package/dist/cjs/packages/input/style-jrkf/input.scss +0 -1
  9. package/dist/cjs/packages/input/style-jrkf/style.css +0 -1
  10. package/dist/cjs/packages/noticebar/noticebar.js +47 -38
  11. package/dist/cjs/packages/tabs/style/style.css +0 -1
  12. package/dist/cjs/packages/tabs/style/style.harmony.css +0 -1
  13. package/dist/cjs/packages/tabs/style/tabs.scss +1 -1
  14. package/dist/cjs/packages/tabs/style-jmapp/style.css +0 -1
  15. package/dist/cjs/packages/tabs/style-jmapp/tabs.scss +1 -1
  16. package/dist/cjs/packages/tabs/style-jrkf/style.css +0 -1
  17. package/dist/cjs/packages/tabs/style-jrkf/tabs.scss +1 -1
  18. package/dist/cjs/packages/textarea/style/style.css +0 -1
  19. package/dist/cjs/packages/textarea/style/style.harmony.css +0 -1
  20. package/dist/cjs/packages/textarea/style/textarea.scss +1 -1
  21. package/dist/cjs/packages/textarea/style-jmapp/style.css +0 -1
  22. package/dist/cjs/packages/textarea/style-jmapp/textarea.scss +1 -1
  23. package/dist/cjs/packages/textarea/style-jrkf/style.css +0 -1
  24. package/dist/cjs/packages/textarea/style-jrkf/textarea.scss +1 -1
  25. package/dist/es/packages/address/style/style.harmony.css +0 -1
  26. package/dist/es/packages/cascader/style/style.harmony.css +0 -1
  27. package/dist/es/packages/input/style/input.scss +0 -1
  28. package/dist/es/packages/input/style/style.css +0 -1
  29. package/dist/es/packages/input/style/style.harmony.css +0 -1
  30. package/dist/es/packages/input/style-jmapp/input.scss +0 -1
  31. package/dist/es/packages/input/style-jmapp/style.css +0 -1
  32. package/dist/es/packages/input/style-jrkf/input.scss +0 -1
  33. package/dist/es/packages/input/style-jrkf/style.css +0 -1
  34. package/dist/es/packages/noticebar/noticebar.js +80 -75
  35. package/dist/es/packages/tabs/style/style.css +0 -1
  36. package/dist/es/packages/tabs/style/style.harmony.css +0 -1
  37. package/dist/es/packages/tabs/style/tabs.scss +1 -1
  38. package/dist/es/packages/tabs/style-jmapp/style.css +0 -1
  39. package/dist/es/packages/tabs/style-jmapp/tabs.scss +1 -1
  40. package/dist/es/packages/tabs/style-jrkf/style.css +0 -1
  41. package/dist/es/packages/tabs/style-jrkf/tabs.scss +1 -1
  42. package/dist/es/packages/textarea/style/style.css +0 -1
  43. package/dist/es/packages/textarea/style/style.harmony.css +0 -1
  44. package/dist/es/packages/textarea/style/textarea.scss +1 -1
  45. package/dist/es/packages/textarea/style-jmapp/style.css +0 -1
  46. package/dist/es/packages/textarea/style-jmapp/textarea.scss +1 -1
  47. package/dist/es/packages/textarea/style-jrkf/style.css +0 -1
  48. package/dist/es/packages/textarea/style-jrkf/textarea.scss +1 -1
  49. package/dist/nutui.react.umd.js +54 -47
  50. package/dist/style-jmapp.css +1 -1
  51. package/dist/style-jmapp.scss +36 -36
  52. package/dist/style-jrkf.css +1 -1
  53. package/dist/style-jrkf.scss +29 -29
  54. package/dist/style.css +1 -1
  55. package/dist/style.scss +32 -32
  56. package/package.json +1 -1
@@ -36,7 +36,7 @@ export var NoticeBar = function(props) {
36
36
  var classPrefix = 'nut-noticebar';
37
37
  var wrapRef = useRef(null);
38
38
  var contentRef = useRef(null);
39
- var _useState = _sliced_to_array(useState(true), 2), showNoticeBar = _useState[0], SetShowNoticeBar = _useState[1];
39
+ var _useState = _sliced_to_array(useState(true), 2), showNoticeBar = _useState[0], setShowNoticeBar = _useState[1];
40
40
  var scrollList = useRef([]);
41
41
  var _useState1 = _sliced_to_array(useState(0), 2), wrapWidth = _useState1[0], SetWrapWidth = _useState1[1];
42
42
  var _useState2 = _sliced_to_array(useState(true), 2), firstRound = _useState2[0], SetFirstRound = _useState2[1];
@@ -144,6 +144,9 @@ export var NoticeBar = function(props) {
144
144
  ];
145
145
  case 2:
146
146
  contentRes = _state.sent();
147
+ if (!warpRes || !contentRes) return [
148
+ 2
149
+ ];
147
150
  wrapW = warpRes.width;
148
151
  offsetW = contentRes.width;
149
152
  canScroll = align === 'left' && scrollable == null ? offsetW > wrapW : scrollable;
@@ -168,12 +171,6 @@ export var NoticeBar = function(props) {
168
171
  click && click(event);
169
172
  onClick && onClick(event);
170
173
  };
171
- var onClickIcon = function(event) {
172
- event.stopPropagation();
173
- SetShowNoticeBar(!closeable);
174
- close && close(event);
175
- onClose && onClose(event);
176
- };
177
174
  var onAnimationEnd = function() {
178
175
  SetFirstRound(false);
179
176
  setTimeout(function() {
@@ -196,13 +193,16 @@ export var NoticeBar = function(props) {
196
193
  SetAnimate(false);
197
194
  }, time);
198
195
  };
199
- // 点击滚动单元
200
- var handleClickIcon = function(event) {
196
+ var handleClickIcon = useCallback(function(event) {
201
197
  event.stopPropagation();
202
- SetShowNoticeBar(!closeable);
198
+ setShowNoticeBar(!closeable);
203
199
  close && close(event);
204
200
  onClose && onClose(event);
205
- };
201
+ }, [
202
+ close,
203
+ onClose,
204
+ closeable
205
+ ]);
206
206
  var isEllipsis = function() {
207
207
  if (isCanScroll == null && align === 'left') {
208
208
  return wrap;
@@ -350,10 +350,12 @@ export var NoticeBar = function(props) {
350
350
  };
351
351
  // 无缝滚动第一个元素位移控制
352
352
  var itemStyle = function(index) {
353
- var style = {};
353
+ var style = {
354
+ width: '100%'
355
+ };
354
356
  if (height) {
355
357
  style.height = "".concat(height, "px");
356
- style.lineHeight = "".concat(height, "px");
358
+ // style.lineHeight = `${height}px`
357
359
  }
358
360
  var offset = childOffset[index];
359
361
  if (offset) {
@@ -422,74 +424,77 @@ export var NoticeBar = function(props) {
422
424
  container.current = ref;
423
425
  setIsContainerReady(true);
424
426
  }, []);
425
- return (
426
- /*#__PURE__*/ React.createElement(View, {
427
- className: cls,
428
- style: style
429
- }, showNoticeBar && direction === 'horizontal' ? /*#__PURE__*/ React.createElement(View, {
430
- className: noticebarClass,
431
- style: barStyle,
432
- onClick: handleClick
433
- }, leftIcon ? /*#__PURE__*/ React.createElement(View, {
427
+ var renderLeftIcon = useCallback(function() {
428
+ return /*#__PURE__*/ React.createElement(React.Fragment, null, leftIcon ? /*#__PURE__*/ React.createElement(View, {
434
429
  className: "nut-noticebar-box-left-icon"
435
- }, leftIcon) : null, /*#__PURE__*/ React.createElement(View, {
436
- ref: wrapRef,
437
- className: "nut-noticebar-box-wrap"
438
- }, /*#__PURE__*/ React.createElement(View, {
439
- ref: contentRef,
440
- className: "nut-noticebar-box-wrap-content ".concat(animationClass, " ").concat(isEllipsis() ? 'nut-ellipsis' : ''),
441
- style: contentStyle,
442
- onAnimationEnd: onAnimationEnd
443
- }, children, content)), right ? /*#__PURE__*/ React.createElement(View, {
430
+ }, leftIcon) : null);
431
+ }, [
432
+ leftIcon
433
+ ]);
434
+ var renderRight = useCallback(function() {
435
+ return /*#__PURE__*/ React.createElement(React.Fragment, null, right ? /*#__PURE__*/ React.createElement(View, {
444
436
  className: "nut-noticebar-box-right"
445
- }, right) : null, closeable || rightIcon ? /*#__PURE__*/ React.createElement(View, {
437
+ }, right) : null);
438
+ }, [
439
+ right
440
+ ]);
441
+ var renderRightIcon = useCallback(function() {
442
+ return /*#__PURE__*/ React.createElement(React.Fragment, null, rightIcon || closeable ? /*#__PURE__*/ React.createElement(View, {
446
443
  className: "nut-noticebar-box-right-icon",
447
- onClick: onClickIcon
444
+ onClick: handleClickIcon
448
445
  }, rightIcon || /*#__PURE__*/ React.createElement(Close, {
449
446
  size: 12
450
- })) : null) : null, showNoticeBar && hasVerticalContent && isVertical ? /*#__PURE__*/ React.createElement(View, {
451
- className: "nut-noticebar-vertical",
452
- style: barStyle,
453
- ref: containerRefCallback,
454
- onClick: handleClick
455
- }, leftIcon ? /*#__PURE__*/ React.createElement(View, {
456
- className: "nut-noticebar-box-left-icon"
457
- }, leftIcon) : null, children ? /*#__PURE__*/ React.createElement(View, {
458
- className: "nut-noticebar-box-wrap",
459
- ref: innerRef
460
- }, scrollList.current.map(function(item, index) {
461
- return /*#__PURE__*/ React.createElement(View, {
462
- style: itemStyle(index),
463
- key: index,
464
- onClick: function(e) {
465
- handleItemClick(e, item);
466
- }
467
- }, item);
468
- })) : /*#__PURE__*/ React.createElement(View, {
469
- className: "nut-noticebar-box-horseLamp-list",
470
- style: horseLampStyle
471
- }, scrollList.current.map(function(item, index) {
472
- return (
473
- // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
474
- /*#__PURE__*/ (React.createElement(View, {
475
- className: "nut-noticebar-box-horseLamp-list-item",
476
- style: {
477
- height: height
478
- },
479
- key: index,
480
- onClick: function(e) {
481
- handleItemClick(e, item);
482
- }
483
- }, item))
484
- );
485
- })), /*#__PURE__*/ React.createElement(View, {
486
- className: "nut-noticebar-box-right-icon",
447
+ })) : null);
448
+ }, [
449
+ rightIcon,
450
+ closeable,
451
+ handleClickIcon
452
+ ]);
453
+ return /*#__PURE__*/ React.createElement(View, {
454
+ className: cls,
455
+ style: style
456
+ }, showNoticeBar && direction === 'horizontal' ? /*#__PURE__*/ React.createElement(View, {
457
+ className: noticebarClass,
458
+ style: barStyle,
459
+ onClick: handleClick
460
+ }, renderLeftIcon(), /*#__PURE__*/ React.createElement(View, {
461
+ ref: wrapRef,
462
+ className: "nut-noticebar-box-wrap"
463
+ }, /*#__PURE__*/ React.createElement(View, {
464
+ ref: contentRef,
465
+ className: "nut-noticebar-box-wrap-content ".concat(animationClass, " ").concat(isEllipsis() ? 'nut-ellipsis' : ''),
466
+ style: contentStyle,
467
+ onAnimationEnd: onAnimationEnd
468
+ }, children, content)), renderRight(), renderRightIcon()) : null, showNoticeBar && hasVerticalContent && isVertical ? /*#__PURE__*/ React.createElement(View, {
469
+ className: "nut-noticebar-vertical",
470
+ style: barStyle,
471
+ ref: containerRefCallback,
472
+ onClick: handleClick
473
+ }, renderLeftIcon(), children ? /*#__PURE__*/ React.createElement(View, {
474
+ className: "nut-noticebar-box-wrap",
475
+ ref: innerRef
476
+ }, scrollList.current.map(function(item, index) {
477
+ return /*#__PURE__*/ React.createElement(View, {
478
+ style: itemStyle(index),
479
+ key: index,
487
480
  onClick: function(e) {
488
- handleClickIcon(e);
481
+ handleItemClick(e, item);
489
482
  }
490
- }, rightIcon || (closeable ? /*#__PURE__*/ React.createElement(Close, {
491
- size: 12
492
- }) : null))) : null)
493
- );
483
+ }, item);
484
+ })) : /*#__PURE__*/ React.createElement(View, {
485
+ className: "nut-noticebar-box-horseLamp-list",
486
+ style: horseLampStyle
487
+ }, scrollList.current.map(function(item, index) {
488
+ return /*#__PURE__*/ React.createElement(View, {
489
+ className: "nut-noticebar-box-horseLamp-list-item",
490
+ style: {
491
+ height: height
492
+ },
493
+ key: index,
494
+ onClick: function(e) {
495
+ handleItemClick(e, item);
496
+ }
497
+ }, item);
498
+ })), renderRight(), renderRightIcon()) : null);
494
499
  };
495
500
  NoticeBar.displayName = 'NutNoticeBar';
@@ -50,7 +50,6 @@
50
50
  flex: 1 0 auto;
51
51
  padding: 0 var(--nutui-tabs-titles-gap, 12px);
52
52
  height: var(--nutui-tabs-titles-height, 44px);
53
- line-height: var(--nutui-tabs-titles-height, 44px);
54
53
  min-width: var(--nutui-tabs-titles-item-min-width, 50px);
55
54
  font-size: var(--nutui-tabs-titles-font-size, var(--nutui-font-size-base, 14px));
56
55
  color: var(--nutui-tabs-titles-item-color, var(--nutui-color-title, #1a1a1a));
@@ -65,7 +65,6 @@
65
65
  flex: 1 0 auto;
66
66
  padding: 0 var(--nutui-tabs-titles-gap, 12px);
67
67
  height: var(--nutui-tabs-titles-height, 44px);
68
- line-height: var(--nutui-tabs-titles-height, 44px);
69
68
  min-width: var(--nutui-tabs-titles-item-min-width, 50px);
70
69
  font-size: var(--nutui-tabs-titles-font-size, var(--nutui-font-size-base, 14px));
71
70
  color: var(--nutui-tabs-titles-item-color, var(--nutui-color-title, #1a1a1a));
@@ -52,7 +52,7 @@
52
52
  flex: 1 0 auto;
53
53
  padding: 0 $tabs-titles-gap;
54
54
  height: $tabs-titles-height;
55
- line-height: $tabs-titles-height;
55
+ // line-height: $tabs-titles-height;
56
56
  min-width: $tabs-titles-item-min-width;
57
57
  font-size: $tabs-titles-font-size;
58
58
  color: $tabs-titles-item-color;
@@ -50,7 +50,6 @@
50
50
  flex: 1 0 auto;
51
51
  padding: 0 var(--nutui-tabs-titles-gap, 12px);
52
52
  height: var(--nutui-tabs-titles-height, 32px);
53
- line-height: var(--nutui-tabs-titles-height, 32px);
54
53
  min-width: var(--nutui-tabs-titles-item-min-width, 50px);
55
54
  font-size: var(--nutui-tabs-titles-font-size, var(--nutui-font-text));
56
55
  color: var(--nutui-tabs-titles-item-color, var(--nutui-color-title));
@@ -52,7 +52,7 @@
52
52
  flex: 1 0 auto;
53
53
  padding: 0 $tabs-titles-gap;
54
54
  height: $tabs-titles-height;
55
- line-height: $tabs-titles-height;
55
+ // line-height: $tabs-titles-height;
56
56
  min-width: $tabs-titles-item-min-width;
57
57
  font-size: $tabs-titles-font-size;
58
58
  color: $tabs-titles-item-color;
@@ -50,7 +50,6 @@
50
50
  flex: 1 0 auto;
51
51
  padding: 0 var(--nutui-tabs-titles-gap, 12px);
52
52
  height: var(--nutui-tabs-titles-height, 32px);
53
- line-height: var(--nutui-tabs-titles-height, 32px);
54
53
  min-width: var(--nutui-tabs-titles-item-min-width, 50px);
55
54
  font-size: var(--nutui-tabs-titles-font-size, var(--nutui-font-text));
56
55
  color: var(--nutui-tabs-titles-item-color, var(--nutui-color-title));
@@ -52,7 +52,7 @@
52
52
  flex: 1 0 auto;
53
53
  padding: 0 $tabs-titles-gap;
54
54
  height: $tabs-titles-height;
55
- line-height: $tabs-titles-height;
55
+ // line-height: $tabs-titles-height;
56
56
  min-width: $tabs-titles-item-min-width;
57
57
  font-size: $tabs-titles-font-size;
58
58
  color: $tabs-titles-item-color;
@@ -22,7 +22,6 @@
22
22
  .nut-textarea-limit {
23
23
  text-align: right;
24
24
  font-size: var(--nutui-font-size-base, 14px);
25
- line-height: var(--nutui-font-size-base, 14px);
26
25
  margin-top: var(--nutui-spacing-base, 8px);
27
26
  color: var(--nutui-color-text-help, #888b94);
28
27
  }
@@ -22,7 +22,6 @@
22
22
  .nut-textarea-limit {
23
23
  text-align: right;
24
24
  font-size: var(--nutui-font-size-base, 14px);
25
- line-height: var(--nutui-font-size-base, 14px);
26
25
  margin-top: var(--nutui-spacing-base, 8px);
27
26
  color: var(--nutui-color-text-help, #888b94);
28
27
  }
@@ -20,7 +20,7 @@
20
20
  &-limit {
21
21
  text-align: right;
22
22
  font-size: $font-size-base;
23
- line-height: $font-size-base;
23
+ // line-height: $font-size-base;
24
24
  margin-top: $spacing-base;
25
25
  color: $color-text-help;
26
26
  &-disabled {
@@ -22,7 +22,6 @@
22
22
  .nut-textarea-limit {
23
23
  text-align: right;
24
24
  font-size: var(--nutui-font-text);
25
- line-height: var(--nutui-font-text);
26
25
  margin-top: var(--nutui-spacing-base);
27
26
  color: var(--nutui-color-text-help);
28
27
  }
@@ -20,7 +20,7 @@
20
20
  &-limit {
21
21
  text-align: right;
22
22
  font-size: $font-size-base;
23
- line-height: $font-size-base;
23
+ // line-height: $font-size-base;
24
24
  margin-top: $spacing-base;
25
25
  color: $color-text-help;
26
26
  &-disabled {
@@ -22,7 +22,6 @@
22
22
  .nut-textarea-limit {
23
23
  text-align: right;
24
24
  font-size: var(--nutui-font-text);
25
- line-height: var(--nutui-font-text);
26
25
  margin-top: var(--nutui-spacing-base);
27
26
  color: var(--nutui-color-text-help);
28
27
  }
@@ -20,7 +20,7 @@
20
20
  &-limit {
21
21
  text-align: right;
22
22
  font-size: $font-size-base;
23
- line-height: $font-size-base;
23
+ // line-height: $font-size-base;
24
24
  margin-top: $spacing-base;
25
25
  color: $color-text-help;
26
26
  &-disabled {
@@ -15803,7 +15803,7 @@
15803
15803
  var classPrefix2 = "nut-noticebar";
15804
15804
  var wrapRef = React.useRef(null);
15805
15805
  var contentRef = React.useRef(null);
15806
- var _useState = _sliced_to_array(React.useState(true), 2), showNoticeBar = _useState[0], SetShowNoticeBar = _useState[1];
15806
+ var _useState = _sliced_to_array(React.useState(true), 2), showNoticeBar = _useState[0], setShowNoticeBar = _useState[1];
15807
15807
  var scrollList = React.useRef([]);
15808
15808
  var _useState1 = _sliced_to_array(React.useState(0), 2), wrapWidth = _useState1[0], SetWrapWidth = _useState1[1];
15809
15809
  var _useState2 = _sliced_to_array(React.useState(true), 2), firstRound = _useState2[0], SetFirstRound = _useState2[1];
@@ -15908,6 +15908,9 @@
15908
15908
  ];
15909
15909
  case 2:
15910
15910
  contentRes = _state.sent();
15911
+ if (!warpRes || !contentRes) return [
15912
+ 2
15913
+ ];
15911
15914
  wrapW = warpRes.width;
15912
15915
  offsetW = contentRes.width;
15913
15916
  canScroll = align === "left" && scrollable == null ? offsetW > wrapW : scrollable;
@@ -15932,12 +15935,6 @@
15932
15935
  click && click(event);
15933
15936
  onClick && onClick(event);
15934
15937
  };
15935
- var onClickIcon = function(event) {
15936
- event.stopPropagation();
15937
- SetShowNoticeBar(!closeable);
15938
- close2 && close2(event);
15939
- onClose && onClose(event);
15940
- };
15941
15938
  var onAnimationEnd = function() {
15942
15939
  SetFirstRound(false);
15943
15940
  setTimeout(function() {
@@ -15960,12 +15957,16 @@
15960
15957
  SetAnimate(false);
15961
15958
  }, time2);
15962
15959
  };
15963
- var handleClickIcon = function(event) {
15960
+ var handleClickIcon = React.useCallback(function(event) {
15964
15961
  event.stopPropagation();
15965
- SetShowNoticeBar(!closeable);
15962
+ setShowNoticeBar(!closeable);
15966
15963
  close2 && close2(event);
15967
15964
  onClose && onClose(event);
15968
- };
15965
+ }, [
15966
+ close2,
15967
+ onClose,
15968
+ closeable
15969
+ ]);
15969
15970
  var isEllipsis = function() {
15970
15971
  if (isCanScroll == null && align === "left") {
15971
15972
  return wrap;
@@ -16104,10 +16105,11 @@
16104
16105
  target.style.transform = "translate3D(0,".concat(_offset, "px,0)");
16105
16106
  };
16106
16107
  var itemStyle = function(index2) {
16107
- var style2 = {};
16108
+ var style2 = {
16109
+ width: "100%"
16110
+ };
16108
16111
  if (height2) {
16109
16112
  style2.height = "".concat(height2, "px");
16110
- style2.lineHeight = "".concat(height2, "px");
16111
16113
  }
16112
16114
  var offset2 = childOffset[index2];
16113
16115
  if (offset2) {
@@ -16171,6 +16173,32 @@
16171
16173
  container.current = ref;
16172
16174
  setIsContainerReady(true);
16173
16175
  }, []);
16176
+ var renderLeftIcon = React.useCallback(function() {
16177
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, leftIcon ? /* @__PURE__ */ React.createElement(components.View, {
16178
+ className: "nut-noticebar-box-left-icon"
16179
+ }, leftIcon) : null);
16180
+ }, [
16181
+ leftIcon
16182
+ ]);
16183
+ var renderRight = React.useCallback(function() {
16184
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, right2 ? /* @__PURE__ */ React.createElement(components.View, {
16185
+ className: "nut-noticebar-box-right"
16186
+ }, right2) : null);
16187
+ }, [
16188
+ right2
16189
+ ]);
16190
+ var renderRightIcon = React.useCallback(function() {
16191
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, rightIcon || closeable ? /* @__PURE__ */ React.createElement(components.View, {
16192
+ className: "nut-noticebar-box-right-icon",
16193
+ onClick: handleClickIcon
16194
+ }, rightIcon || /* @__PURE__ */ React.createElement(IconSVG$p, {
16195
+ size: 12
16196
+ })) : null);
16197
+ }, [
16198
+ rightIcon,
16199
+ closeable,
16200
+ handleClickIcon
16201
+ ]);
16174
16202
  return /* @__PURE__ */ React.createElement(components.View, {
16175
16203
  className: cls,
16176
16204
  style
@@ -16178,9 +16206,7 @@
16178
16206
  className: noticebarClass,
16179
16207
  style: barStyle,
16180
16208
  onClick: handleClick
16181
- }, leftIcon ? /* @__PURE__ */ React.createElement(components.View, {
16182
- className: "nut-noticebar-box-left-icon"
16183
- }, leftIcon) : null, /* @__PURE__ */ React.createElement(components.View, {
16209
+ }, renderLeftIcon(), /* @__PURE__ */ React.createElement(components.View, {
16184
16210
  ref: wrapRef,
16185
16211
  className: "nut-noticebar-box-wrap"
16186
16212
  }, /* @__PURE__ */ React.createElement(components.View, {
@@ -16188,21 +16214,12 @@
16188
16214
  className: "nut-noticebar-box-wrap-content ".concat(animationClass, " ").concat(isEllipsis() ? "nut-ellipsis" : ""),
16189
16215
  style: contentStyle,
16190
16216
  onAnimationEnd
16191
- }, children, content2)), right2 ? /* @__PURE__ */ React.createElement(components.View, {
16192
- className: "nut-noticebar-box-right"
16193
- }, right2) : null, closeable || rightIcon ? /* @__PURE__ */ React.createElement(components.View, {
16194
- className: "nut-noticebar-box-right-icon",
16195
- onClick: onClickIcon
16196
- }, rightIcon || /* @__PURE__ */ React.createElement(IconSVG$p, {
16197
- size: 12
16198
- })) : null) : null, showNoticeBar && hasVerticalContent && isVertical ? /* @__PURE__ */ React.createElement(components.View, {
16217
+ }, children, content2)), renderRight(), renderRightIcon()) : null, showNoticeBar && hasVerticalContent && isVertical ? /* @__PURE__ */ React.createElement(components.View, {
16199
16218
  className: "nut-noticebar-vertical",
16200
16219
  style: barStyle,
16201
16220
  ref: containerRefCallback,
16202
16221
  onClick: handleClick
16203
- }, leftIcon ? /* @__PURE__ */ React.createElement(components.View, {
16204
- className: "nut-noticebar-box-left-icon"
16205
- }, leftIcon) : null, children ? /* @__PURE__ */ React.createElement(components.View, {
16222
+ }, renderLeftIcon(), children ? /* @__PURE__ */ React.createElement(components.View, {
16206
16223
  className: "nut-noticebar-box-wrap",
16207
16224
  ref: innerRef
16208
16225
  }, scrollList.current.map(function(item, index2) {
@@ -16217,27 +16234,17 @@
16217
16234
  className: "nut-noticebar-box-horseLamp-list",
16218
16235
  style: horseLampStyle
16219
16236
  }, scrollList.current.map(function(item, index2) {
16220
- return (
16221
- // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
16222
- /* @__PURE__ */ React.createElement(components.View, {
16223
- className: "nut-noticebar-box-horseLamp-list-item",
16224
- style: {
16225
- height: height2
16226
- },
16227
- key: index2,
16228
- onClick: function(e) {
16229
- handleItemClick(e, item);
16230
- }
16231
- }, item)
16232
- );
16233
- })), /* @__PURE__ */ React.createElement(components.View, {
16234
- className: "nut-noticebar-box-right-icon",
16235
- onClick: function(e) {
16236
- handleClickIcon(e);
16237
- }
16238
- }, rightIcon || (closeable ? /* @__PURE__ */ React.createElement(IconSVG$p, {
16239
- size: 12
16240
- }) : null))) : null);
16237
+ return /* @__PURE__ */ React.createElement(components.View, {
16238
+ className: "nut-noticebar-box-horseLamp-list-item",
16239
+ style: {
16240
+ height: height2
16241
+ },
16242
+ key: index2,
16243
+ onClick: function(e) {
16244
+ handleItemClick(e, item);
16245
+ }
16246
+ }, item);
16247
+ })), renderRight(), renderRightIcon()) : null);
16241
16248
  };
16242
16249
  NoticeBar.displayName = "NutNoticeBar";
16243
16250
  var defaultProps$B = _object_spread_props(_object_spread({}, ComponentDefaults), {