@nutui/nutui-react-taro 3.0.19-cpp.22-3 → 3.0.19-cpp.22-5

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 (136) hide show
  1. package/dist/cjs/hooks/taro/use-custom-event.js +5 -5
  2. package/dist/cjs/hooks/use-ref-state.js +3 -3
  3. package/dist/cjs/hooks/use-touch.js +2 -1
  4. package/dist/cjs/packages/address/utils.js +3 -3
  5. package/dist/cjs/packages/avatarcropper/avatarcropper.js +28 -16
  6. package/dist/cjs/packages/badge/badge.js +7 -4
  7. package/dist/cjs/packages/barrage/barrage.js +24 -14
  8. package/dist/cjs/packages/calendar/style/calendar.scss +32 -1
  9. package/dist/cjs/packages/calendar/style/style.css +21 -1
  10. package/dist/cjs/packages/calendar/style/style.harmony.css +21 -1
  11. package/dist/cjs/packages/calendar/style-jmapp/calendar.scss +32 -1
  12. package/dist/cjs/packages/calendar/style-jmapp/style.css +21 -1
  13. package/dist/cjs/packages/calendar/style-jrkf/calendar.scss +32 -1
  14. package/dist/cjs/packages/calendar/style-jrkf/style.css +21 -1
  15. package/dist/cjs/packages/calendar/utils.js +8 -8
  16. package/dist/cjs/packages/calendarcard/icon.js +9 -19
  17. package/dist/cjs/packages/calendarcard/style/calendarcard.scss +19 -0
  18. package/dist/cjs/packages/calendarcard/style/style.css +13 -0
  19. package/dist/cjs/packages/calendarcard/style/style.harmony.css +13 -0
  20. package/dist/cjs/packages/calendarcard/style-jmapp/calendarcard.scss +19 -0
  21. package/dist/cjs/packages/calendarcard/style-jmapp/style.css +13 -0
  22. package/dist/cjs/packages/calendarcard/style-jrkf/calendarcard.scss +19 -0
  23. package/dist/cjs/packages/calendarcard/style-jrkf/style.css +13 -0
  24. package/dist/cjs/packages/calendarcard/utils.js +6 -6
  25. package/dist/cjs/packages/cascader/cascader.js +21 -12
  26. package/dist/cjs/packages/cascader/utils.js +3 -3
  27. package/dist/cjs/packages/collapseitem/collapseitem.js +7 -4
  28. package/dist/cjs/packages/configprovider/configprovider.js +7 -7
  29. package/dist/cjs/packages/configprovider/index.js +6 -6
  30. package/dist/cjs/packages/countdown/countdown.js +2 -1
  31. package/dist/cjs/packages/datepicker/utils.js +9 -9
  32. package/dist/cjs/packages/dialog/content.js +3 -3
  33. package/dist/cjs/packages/dialog/dialog.js +11 -8
  34. package/dist/cjs/packages/drag/drag.js +7 -4
  35. package/dist/cjs/packages/elevator/elevator.js +10 -7
  36. package/dist/cjs/packages/ellipsis/ellipsis.js +30 -17
  37. package/dist/cjs/packages/form/index.js +2 -0
  38. package/dist/cjs/packages/form/useform.js +57 -50
  39. package/dist/cjs/packages/infiniteloading/infiniteloading.js +14 -8
  40. package/dist/cjs/packages/inputnumber/inputnumber.js +28 -16
  41. package/dist/cjs/packages/lottie/types.js +2 -0
  42. package/dist/cjs/packages/menuitem/menuitem.js +22 -24
  43. package/dist/cjs/packages/noticebar/noticebar.js +70 -74
  44. package/dist/cjs/packages/notify/notify.js +4 -4
  45. package/dist/cjs/packages/nutui.react.build.js +105 -105
  46. package/dist/cjs/packages/nutui.react.js +105 -105
  47. package/dist/cjs/packages/overlay/overlay.js +3 -3
  48. package/dist/cjs/packages/pickerview/pickerroller.js +7 -4
  49. package/dist/cjs/packages/pickerview/pickerview.js +2 -1
  50. package/dist/cjs/packages/pickerview/utils.js +3 -3
  51. package/dist/cjs/packages/popover/popover.js +77 -75
  52. package/dist/cjs/packages/popup/popup.js +14 -8
  53. package/dist/cjs/packages/pulltorefresh/pulltorefresh.js +56 -52
  54. package/dist/cjs/packages/radio/index.js +2 -0
  55. package/dist/cjs/packages/range/range.js +28 -16
  56. package/dist/cjs/packages/shortpassword/shortpassword.js +3 -3
  57. package/dist/cjs/packages/sticky/sticky.js +7 -4
  58. package/dist/cjs/packages/swipe/swipe.js +14 -8
  59. package/dist/cjs/packages/swiper/index.js +1 -0
  60. package/dist/cjs/packages/switch/switch.js +7 -4
  61. package/dist/cjs/packages/toast/toast.js +4 -4
  62. package/dist/cjs/packages/uploader/uploader.js +51 -38
  63. package/dist/cjs/packages/virtuallist/utils.js +6 -6
  64. package/dist/cjs/packages/watermark/watermark.js +8 -4
  65. package/dist/cjs/types/spec/address/base.js +2 -0
  66. package/dist/cjs/utils/date.js +5 -5
  67. package/dist/cjs/utils/event-mocker.js +18 -10
  68. package/dist/cjs/utils/get-rect.js +4 -4
  69. package/dist/cjs/utils/get-scroll-parent.js +3 -3
  70. package/dist/cjs/utils/merge-props.js +3 -3
  71. package/dist/cjs/utils/merge.js +6 -6
  72. package/dist/cjs/utils/raf.js +3 -3
  73. package/dist/cjs/utils/render.js +9 -5
  74. package/dist/cjs/utils/rubberband.js +3 -3
  75. package/dist/cjs/utils/should-render-price-raw.js +3 -3
  76. package/dist/cjs/utils/taro/get-rect.js +24 -14
  77. package/dist/cjs/utils/taro/get-system-info.js +4 -4
  78. package/dist/cjs/utils/taro/platform.js +5 -5
  79. package/dist/es/hooks/use-touch.js +1 -1
  80. package/dist/es/packages/avatarcropper/avatarcropper.js +28 -16
  81. package/dist/es/packages/badge/badge.js +7 -4
  82. package/dist/es/packages/barrage/barrage.js +24 -14
  83. package/dist/es/packages/calendar/style/calendar.scss +32 -1
  84. package/dist/es/packages/calendar/style/style.css +21 -1
  85. package/dist/es/packages/calendar/style/style.harmony.css +21 -1
  86. package/dist/es/packages/calendar/style-jmapp/calendar.scss +32 -1
  87. package/dist/es/packages/calendar/style-jmapp/style.css +21 -1
  88. package/dist/es/packages/calendar/style-jrkf/calendar.scss +32 -1
  89. package/dist/es/packages/calendar/style-jrkf/style.css +21 -1
  90. package/dist/es/packages/calendarcard/icon.js +5 -15
  91. package/dist/es/packages/calendarcard/style/calendarcard.scss +19 -0
  92. package/dist/es/packages/calendarcard/style/style.css +13 -0
  93. package/dist/es/packages/calendarcard/style/style.harmony.css +13 -0
  94. package/dist/es/packages/calendarcard/style-jmapp/calendarcard.scss +19 -0
  95. package/dist/es/packages/calendarcard/style-jmapp/style.css +13 -0
  96. package/dist/es/packages/calendarcard/style-jrkf/calendarcard.scss +19 -0
  97. package/dist/es/packages/calendarcard/style-jrkf/style.css +13 -0
  98. package/dist/es/packages/cascader/cascader.js +21 -12
  99. package/dist/es/packages/collapseitem/collapseitem.js +7 -4
  100. package/dist/es/packages/countdown/countdown.js +2 -1
  101. package/dist/es/packages/dialog/dialog.js +7 -4
  102. package/dist/es/packages/drag/drag.js +7 -4
  103. package/dist/es/packages/elevator/elevator.js +7 -4
  104. package/dist/es/packages/ellipsis/ellipsis.js +30 -17
  105. package/dist/es/packages/form/index.js +1 -0
  106. package/dist/es/packages/form/useform.js +53 -46
  107. package/dist/es/packages/infiniteloading/infiniteloading.js +14 -8
  108. package/dist/es/packages/inputnumber/inputnumber.js +28 -16
  109. package/dist/es/packages/lottie/types.js +1 -1
  110. package/dist/es/packages/menuitem/menuitem.js +22 -24
  111. package/dist/es/packages/noticebar/noticebar.js +70 -74
  112. package/dist/es/packages/pickerview/pickerroller.js +7 -4
  113. package/dist/es/packages/pickerview/pickerview.js +2 -1
  114. package/dist/es/packages/popover/popover.js +77 -75
  115. package/dist/es/packages/popup/popup.js +14 -8
  116. package/dist/es/packages/pulltorefresh/pulltorefresh.js +56 -52
  117. package/dist/es/packages/radio/index.js +1 -0
  118. package/dist/es/packages/range/range.js +28 -16
  119. package/dist/es/packages/sticky/sticky.js +7 -4
  120. package/dist/es/packages/swipe/swipe.js +14 -8
  121. package/dist/es/packages/swiper/index.js +1 -0
  122. package/dist/es/packages/switch/switch.js +7 -4
  123. package/dist/es/packages/uploader/uploader.js +51 -38
  124. package/dist/es/packages/watermark/watermark.js +8 -4
  125. package/dist/es/types/spec/address/base.js +1 -1
  126. package/dist/es/utils/event-mocker.js +12 -4
  127. package/dist/es/utils/render.js +6 -2
  128. package/dist/es/utils/taro/get-rect.js +20 -10
  129. package/dist/nutui.react.umd.js +860 -660
  130. package/dist/style-jmapp.css +1 -1
  131. package/dist/style-jmapp.scss +38 -38
  132. package/dist/style-jrkf.css +1 -1
  133. package/dist/style-jrkf.scss +31 -31
  134. package/dist/style.css +1 -1
  135. package/dist/style.scss +26 -26
  136. package/package.json +1 -1
@@ -5,23 +5,23 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: Object.getOwnPropertyDescriptor(all, name).get
8
+ get: all[name]
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- get simulateTouchMove () {
12
+ simulateTouchMove: function() {
13
13
  return simulateTouchMove;
14
14
  },
15
- get simulateTouchZoom () {
15
+ simulateTouchZoom: function() {
16
16
  return simulateTouchZoom;
17
17
  },
18
- get sleep () {
18
+ sleep: function() {
19
19
  return sleep;
20
20
  },
21
- get trigger () {
21
+ trigger: function() {
22
22
  return trigger;
23
23
  },
24
- get triggerDrag () {
24
+ triggerDrag: function() {
25
25
  return triggerDrag;
26
26
  }
27
27
  });
@@ -89,7 +89,10 @@ function triggerDrag(el) {
89
89
  trigger(el, 'touchend', x, y);
90
90
  }
91
91
  function simulateTouchMove(element, startX, startY, endX, endY, duration) {
92
- return (0, _async_to_generator._)(function() {
92
+ return _simulateTouchMove.apply(this, arguments);
93
+ }
94
+ function _simulateTouchMove() {
95
+ _simulateTouchMove = (0, _async_to_generator._)(function(element, startX, startY, endX, endY, duration) {
93
96
  var touch, touchList, distanceX, distanceY, startTime, elapsed, progress, currentX, currentY, currentTouch, currentTouchList;
94
97
  return (0, _ts_generator._)(this, function(_state) {
95
98
  switch(_state.label){
@@ -142,10 +145,14 @@ function simulateTouchMove(element, startX, startY, endX, endY, duration) {
142
145
  ];
143
146
  }
144
147
  });
145
- })();
148
+ });
149
+ return _simulateTouchMove.apply(this, arguments);
146
150
  }
147
151
  function simulateTouchZoom(element, startDistance, endDistance, duration) {
148
- return (0, _async_to_generator._)(function() {
152
+ return _simulateTouchZoom.apply(this, arguments);
153
+ }
154
+ function _simulateTouchZoom() {
155
+ _simulateTouchZoom = (0, _async_to_generator._)(function(element, startDistance, endDistance, duration) {
149
156
  var centerX, centerY, startScale, endScale, startTouches, endTouches, progress, currentScale, currentDistance, currentTouches;
150
157
  return (0, _ts_generator._)(this, function(_state) {
151
158
  switch(_state.label){
@@ -205,5 +212,6 @@ function simulateTouchZoom(element, startDistance, endDistance, duration) {
205
212
  ];
206
213
  }
207
214
  });
208
- })();
215
+ });
216
+ return _simulateTouchZoom.apply(this, arguments);
209
217
  }
@@ -5,17 +5,17 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: Object.getOwnPropertyDescriptor(all, name).get
8
+ get: all[name]
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- get getRect () {
12
+ getRect: function() {
13
13
  return getRect;
14
14
  },
15
- get inBrowser () {
15
+ inBrowser: function() {
16
16
  return inBrowser;
17
17
  },
18
- get isWindow () {
18
+ isWindow: function() {
19
19
  return isWindow;
20
20
  }
21
21
  });
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: Object.getOwnPropertyDescriptor(all, name).get
8
+ get: all[name]
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- get getAllScrollableParents () {
12
+ getAllScrollableParents: function() {
13
13
  return getAllScrollableParents;
14
14
  },
15
- get getScrollParent () {
15
+ getScrollParent: function() {
16
16
  return getScrollParent;
17
17
  }
18
18
  });
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: Object.getOwnPropertyDescriptor(all, name).get
8
+ get: all[name]
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- get mergeProp () {
12
+ mergeProp: function() {
13
13
  return mergeProp;
14
14
  },
15
- get mergeProps () {
15
+ mergeProps: function() {
16
16
  return mergeProps;
17
17
  }
18
18
  });
@@ -5,23 +5,23 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: Object.getOwnPropertyDescriptor(all, name).get
8
+ get: all[name]
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- get clone () {
12
+ clone: function() {
13
13
  return clone;
14
14
  },
15
- get isPlainObject () {
15
+ isPlainObject: function() {
16
16
  return isPlainObject;
17
17
  },
18
- get main () {
18
+ main: function() {
19
19
  return main;
20
20
  },
21
- get merge () {
21
+ merge: function() {
22
22
  return merge;
23
23
  },
24
- get recursive () {
24
+ recursive: function() {
25
25
  return recursive;
26
26
  }
27
27
  });
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: Object.getOwnPropertyDescriptor(all, name).get
8
+ get: all[name]
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- get cancelRaf () {
12
+ cancelRaf: function() {
13
13
  return cancelRaf;
14
14
  },
15
- get default () {
15
+ default: function() {
16
16
  return _default;
17
17
  }
18
18
  });
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: Object.getOwnPropertyDescriptor(all, name).get
8
+ get: all[name]
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- get render () {
12
+ render: function() {
13
13
  return render;
14
14
  },
15
- get unmount () {
15
+ unmount: function() {
16
16
  return unmount;
17
17
  }
18
18
  });
@@ -64,7 +64,10 @@ function legacyUnmount(container) {
64
64
  return unmountComponentAtNode(container);
65
65
  }
66
66
  function concurrentUnmount(container) {
67
- return (0, _async_to_generator._)(function() {
67
+ return _concurrentUnmount.apply(this, arguments);
68
+ }
69
+ function _concurrentUnmount() {
70
+ _concurrentUnmount = (0, _async_to_generator._)(function(container) {
68
71
  return (0, _ts_generator._)(this, function(_state) {
69
72
  // Delay to unmount to avoid React 18 sync warning
70
73
  return [
@@ -76,7 +79,8 @@ function concurrentUnmount(container) {
76
79
  })
77
80
  ];
78
81
  });
79
- })();
82
+ });
83
+ return _concurrentUnmount.apply(this, arguments);
80
84
  }
81
85
  function unmount(container) {
82
86
  if (createRoot) {
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: Object.getOwnPropertyDescriptor(all, name).get
8
+ get: all[name]
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- get rubberband () {
12
+ rubberband: function() {
13
13
  return rubberband;
14
14
  },
15
- get rubberbandIfOutOfBounds () {
15
+ rubberbandIfOutOfBounds: function() {
16
16
  return rubberbandIfOutOfBounds;
17
17
  }
18
18
  });
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: Object.getOwnPropertyDescriptor(all, name).get
8
+ get: all[name]
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- get hasNonPriceChars () {
12
+ hasNonPriceChars: function() {
13
13
  return hasNonPriceChars;
14
14
  },
15
- get shouldRenderPriceAsRaw () {
15
+ shouldRenderPriceAsRaw: function() {
16
16
  return shouldRenderPriceAsRaw;
17
17
  }
18
18
  });
@@ -5,17 +5,17 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: Object.getOwnPropertyDescriptor(all, name).get
8
+ get: all[name]
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- get getRectInMultiPlatform () {
12
+ getRectInMultiPlatform: function() {
13
13
  return getRectInMultiPlatform;
14
14
  },
15
- get getRectInMultiPlatformWithoutCache () {
15
+ getRectInMultiPlatformWithoutCache: function() {
16
16
  return getRectInMultiPlatformWithoutCache;
17
17
  },
18
- get makeRect () {
18
+ makeRect: function() {
19
19
  return makeRect;
20
20
  }
21
21
  });
@@ -36,10 +36,12 @@ function makeRect(width, height) {
36
36
  height: height
37
37
  };
38
38
  }
39
- var getRectInMultiPlatform = function getRectInMultiPlatform(element) {
40
- var harmonyId = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : '';
41
- return (0, _async_to_generator._)(function() {
39
+ var getRectInMultiPlatform = /*#__PURE__*/ function() {
40
+ var _ref = (0, _async_to_generator._)(function(element) {
41
+ var harmonyId;
42
+ var _arguments = arguments;
42
43
  return (0, _ts_generator._)(this, function(_state) {
44
+ harmonyId = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : '';
43
45
  if (element) {
44
46
  if (_getrect.inBrowser) {
45
47
  return [
@@ -70,12 +72,17 @@ var getRectInMultiPlatform = function getRectInMultiPlatform(element) {
70
72
  Promise.resolve(makeRect(0, 0))
71
73
  ];
72
74
  });
73
- })();
74
- };
75
- var getRectInMultiPlatformWithoutCache = function getRectInMultiPlatformWithoutCache(element) {
76
- var harmonyId = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : '';
77
- return (0, _async_to_generator._)(function() {
75
+ });
76
+ return function getRectInMultiPlatform(element) {
77
+ return _ref.apply(this, arguments);
78
+ };
79
+ }();
80
+ var getRectInMultiPlatformWithoutCache = /*#__PURE__*/ function() {
81
+ var _ref = (0, _async_to_generator._)(function(element) {
82
+ var harmonyId;
83
+ var _arguments = arguments;
78
84
  return (0, _ts_generator._)(this, function(_state) {
85
+ harmonyId = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : '';
79
86
  if (element) {
80
87
  if (_getrect.inBrowser) {
81
88
  return [
@@ -98,5 +105,8 @@ var getRectInMultiPlatformWithoutCache = function getRectInMultiPlatformWithoutC
98
105
  Promise.resolve(makeRect(0, 0))
99
106
  ];
100
107
  });
101
- })();
102
- };
108
+ });
109
+ return function getRectInMultiPlatformWithoutCache(element) {
110
+ return _ref.apply(this, arguments);
111
+ };
112
+ }();
@@ -5,17 +5,17 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: Object.getOwnPropertyDescriptor(all, name).get
8
+ get: all[name]
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- get getAppBaseInfo () {
12
+ getAppBaseInfo: function() {
13
13
  return getAppBaseInfo;
14
14
  },
15
- get getDeviceInfo () {
15
+ getDeviceInfo: function() {
16
16
  return getDeviceInfo;
17
17
  },
18
- get getWindowInfo () {
18
+ getWindowInfo: function() {
19
19
  return getWindowInfo;
20
20
  }
21
21
  });
@@ -5,20 +5,20 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: Object.getOwnPropertyDescriptor(all, name).get
8
+ get: all[name]
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- get harmony () {
12
+ harmony: function() {
13
13
  return harmony;
14
14
  },
15
- get miniprogram () {
15
+ miniprogram: function() {
16
16
  return miniprogram;
17
17
  },
18
- get td () {
18
+ td: function() {
19
19
  return td;
20
20
  },
21
- get web () {
21
+ web: function() {
22
22
  return web;
23
23
  }
24
24
  });
@@ -1,4 +1,4 @@
1
- import { useRef } from "react";
1
+ import React, { useRef } from "react";
2
2
  var MIN_DISTANCE = 10;
3
3
  function getDirection(x, y) {
4
4
  if (x > y && x > MIN_DISTANCE) {
@@ -307,8 +307,8 @@ export var AvatarCropper = function(props) {
307
307
  draw
308
308
  ]);
309
309
  // 设置绘制图片
310
- var setDrawImgInfo = function(image) {
311
- return _async_to_generator(function() {
310
+ var setDrawImgInfo = /*#__PURE__*/ function() {
311
+ var _ref = _async_to_generator(function(image) {
312
312
  var displayWidth, cropperWidth, copyDrawImg, imgWidth, imgHeight, isPortrait, rate, scale;
313
313
  return _ts_generator(this, function(_state) {
314
314
  switch(_state.label){
@@ -358,8 +358,11 @@ export var AvatarCropper = function(props) {
358
358
  ];
359
359
  }
360
360
  });
361
- })();
362
- };
361
+ });
362
+ return function setDrawImgInfo(image) {
363
+ return _ref.apply(this, arguments);
364
+ };
365
+ }();
363
366
  var chooseImage = function() {
364
367
  Taro.chooseImage({
365
368
  count: 1,
@@ -373,8 +376,8 @@ export var AvatarCropper = function(props) {
373
376
  }
374
377
  });
375
378
  };
376
- var imageChange = function(file) {
377
- return _async_to_generator(function() {
379
+ var imageChange = /*#__PURE__*/ function() {
380
+ var _ref = _async_to_generator(function(file) {
378
381
  return _ts_generator(this, function(_state) {
379
382
  Taro.getImageInfo({
380
383
  src: file.path
@@ -386,8 +389,11 @@ export var AvatarCropper = function(props) {
386
389
  2
387
390
  ];
388
391
  });
389
- })();
390
- };
392
+ });
393
+ return function imageChange(file) {
394
+ return _ref.apply(this, arguments);
395
+ };
396
+ }();
391
397
  var resetScale = function(scale) {
392
398
  setState(_object_spread_props(_object_spread({}, state), {
393
399
  moveX: 0,
@@ -543,8 +549,8 @@ export var AvatarCropper = function(props) {
543
549
  height: cropperWidth,
544
550
  destWidth: cropperWidth,
545
551
  destHeight: cropperWidth,
546
- success: function(res) {
547
- return _async_to_generator(function() {
552
+ success: /*#__PURE__*/ function() {
553
+ var _ref = _async_to_generator(function(res) {
548
554
  var filePath;
549
555
  return _ts_generator(this, function(_state) {
550
556
  filePath = res.tempFilePath;
@@ -554,8 +560,11 @@ export var AvatarCropper = function(props) {
554
560
  2
555
561
  ];
556
562
  });
557
- })();
558
- }
563
+ });
564
+ return function(res) {
565
+ return _ref.apply(this, arguments);
566
+ };
567
+ }()
559
568
  });
560
569
  };
561
570
  // 裁剪图片
@@ -579,8 +588,8 @@ export var AvatarCropper = function(props) {
579
588
  height: cropperWidth,
580
589
  destWidth: cropperWidth * systemInfo.pixelRatio,
581
590
  destHeight: cropperWidth * systemInfo.pixelRatio,
582
- success: function(res) {
583
- return _async_to_generator(function() {
591
+ success: /*#__PURE__*/ function() {
592
+ var _ref = _async_to_generator(function(res) {
584
593
  var filePath;
585
594
  return _ts_generator(this, function(_state) {
586
595
  filePath = res.tempFilePath;
@@ -590,8 +599,11 @@ export var AvatarCropper = function(props) {
590
599
  2
591
600
  ];
592
601
  });
593
- })();
594
- }
602
+ });
603
+ return function(res) {
604
+ return _ref.apply(this, arguments);
605
+ };
606
+ }()
595
607
  });
596
608
  };
597
609
  var ToolBar = function() {
@@ -54,8 +54,8 @@ export var Badge = function(props) {
54
54
  getPositionStyle();
55
55
  }
56
56
  }, []);
57
- var getPositionStyle = function() {
58
- return _async_to_generator(function() {
57
+ var getPositionStyle = /*#__PURE__*/ function() {
58
+ var _ref = _async_to_generator(function() {
59
59
  var style;
60
60
  return _ts_generator(this, function(_state) {
61
61
  style = _define_property({
@@ -66,8 +66,11 @@ export var Badge = function(props) {
66
66
  2
67
67
  ];
68
68
  });
69
- })();
70
- };
69
+ });
70
+ return function getPositionStyle() {
71
+ return _ref.apply(this, arguments);
72
+ };
73
+ }();
71
74
  var _obj1;
72
75
  return /*#__PURE__*/ React.createElement(View, {
73
76
  className: classes,
@@ -48,13 +48,14 @@ var InternalBarrage = function(props, ref) {
48
48
  }
49
49
  };
50
50
  });
51
- var getNodeWidth = function(node) {
52
- var type = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 'width';
53
- return _async_to_generator(function() {
54
- var refe;
51
+ var getNodeWidth = /*#__PURE__*/ function() {
52
+ var _ref = _async_to_generator(function(node) {
53
+ var type, refe;
54
+ var _arguments = arguments;
55
55
  return _ts_generator(this, function(_state) {
56
56
  switch(_state.label){
57
57
  case 0:
58
+ type = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : 'width';
58
59
  if (!node) return [
59
60
  3,
60
61
  2
@@ -76,8 +77,11 @@ var InternalBarrage = function(props, ref) {
76
77
  ];
77
78
  }
78
79
  });
79
- })();
80
- };
80
+ });
81
+ return function getNodeWidth(node) {
82
+ return _ref.apply(this, arguments);
83
+ };
84
+ }();
81
85
  var clearDomTimeout = function() {
82
86
  if (domTimer.current) {
83
87
  clearTimeout(domTimer.current);
@@ -85,8 +89,8 @@ var InternalBarrage = function(props, ref) {
85
89
  }
86
90
  };
87
91
  useEffect(function() {
88
- var init = function() {
89
- return _async_to_generator(function() {
92
+ var init = /*#__PURE__*/ function() {
93
+ var _ref = _async_to_generator(function() {
90
94
  var _barrageBody_current;
91
95
  return _ts_generator(this, function(_state) {
92
96
  switch(_state.label){
@@ -111,8 +115,11 @@ var InternalBarrage = function(props, ref) {
111
115
  ];
112
116
  }
113
117
  });
114
- })();
115
- };
118
+ });
119
+ return function init() {
120
+ return _ref.apply(this, arguments);
121
+ };
122
+ }();
116
123
  domTimer.current = window.setTimeout(function() {
117
124
  init();
118
125
  }, 300);
@@ -134,8 +141,8 @@ var InternalBarrage = function(props, ref) {
134
141
  play();
135
142
  }, intervalCache);
136
143
  };
137
- var setStyle = function(el, currentIndex) {
138
- return _async_to_generator(function() {
144
+ var setStyle = /*#__PURE__*/ function() {
145
+ var _ref = _async_to_generator(function(el, currentIndex) {
139
146
  var refe, width, height, elScrollDuration, error;
140
147
  return _ts_generator(this, function(_state) {
141
148
  switch(_state.label){
@@ -188,8 +195,11 @@ var InternalBarrage = function(props, ref) {
188
195
  ];
189
196
  }
190
197
  });
191
- })();
192
- };
198
+ });
199
+ return function setStyle(el, currentIndex) {
200
+ return _ref.apply(this, arguments);
201
+ };
202
+ }();
193
203
  var play = function() {
194
204
  if (!loop && index.current >= list.length) {
195
205
  return;
@@ -125,9 +125,20 @@
125
125
  font-weight: $calendar-day-font-weight;
126
126
  margin-bottom: 4px;
127
127
 
128
+ // 部分 Taro 机型下子节点不会稳定继承父级 color,颜色直接落到最内层文案。
129
+ &-day,
130
+ &-info-curr {
131
+ color: $color-title;
132
+ }
133
+
128
134
  &:nth-child(7n + 0),
129
135
  &:nth-child(7n + 1) {
130
136
  color: $color-primary;
137
+
138
+ .nut-calendar-day-day,
139
+ .nut-calendar-day-info-curr {
140
+ color: $color-primary;
141
+ }
131
142
  }
132
143
 
133
144
  &-info,
@@ -168,7 +179,12 @@
168
179
  border-bottom-right-radius: $calendar-day-active-border-radius;
169
180
  }
170
181
 
171
- .nut-calendar-day-info {
182
+ &.nut-calendar-day-active .nut-calendar-day-info {
183
+ color: $color-primary-text;
184
+ }
185
+
186
+ &.nut-calendar-day-active .nut-calendar-day-day,
187
+ &.nut-calendar-day-active .nut-calendar-day-info-curr {
172
188
  color: $color-primary-text;
173
189
  }
174
190
  }
@@ -176,6 +192,11 @@
176
192
  &-disabled {
177
193
  color: $calendar-disable-color !important;
178
194
 
195
+ &.nut-calendar-day-disabled .nut-calendar-day-day,
196
+ &.nut-calendar-day-disabled .nut-calendar-day-info-curr {
197
+ color: $calendar-disable-color;
198
+ }
199
+
179
200
  .nut-calendar-day-info-curr {
180
201
  display: none;
181
202
  }
@@ -185,10 +206,20 @@
185
206
  background-color: $calendar-choose-background-color;
186
207
  color: $calendar-choose-color;
187
208
 
209
+ &.nut-calendar-day-choose .nut-calendar-day-day,
210
+ &.nut-calendar-day-choose .nut-calendar-day-info-curr {
211
+ color: $calendar-choose-color;
212
+ }
213
+
188
214
  &-disabled {
189
215
  background-color: $calendar-choose-disable-background-color;
190
216
  color: $calendar-disable-color !important;
191
217
 
218
+ &.nut-calendar-day-choose-disabled .nut-calendar-day-day,
219
+ &.nut-calendar-day-choose-disabled .nut-calendar-day-info-curr {
220
+ color: $calendar-disable-color;
221
+ }
222
+
192
223
  .nut-calendar-day-info-curr {
193
224
  display: none;
194
225
  }