@nutui/nutui-react-taro 3.0.19-cpp-beta.5 → 3.0.19-cpp.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.
Files changed (106) 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 +1 -2
  4. package/dist/cjs/packages/address/utils.js +3 -3
  5. package/dist/cjs/packages/avatarcropper/avatarcropper.js +16 -28
  6. package/dist/cjs/packages/badge/badge.js +4 -7
  7. package/dist/cjs/packages/barrage/barrage.js +14 -24
  8. package/dist/cjs/packages/calendar/utils.js +8 -8
  9. package/dist/cjs/packages/calendarcard/icon.js +5 -5
  10. package/dist/cjs/packages/calendarcard/utils.js +6 -6
  11. package/dist/cjs/packages/cascader/cascader.js +12 -21
  12. package/dist/cjs/packages/cascader/utils.js +3 -3
  13. package/dist/cjs/packages/collapseitem/collapseitem.js +4 -7
  14. package/dist/cjs/packages/configprovider/configprovider.js +7 -7
  15. package/dist/cjs/packages/configprovider/index.js +6 -6
  16. package/dist/cjs/packages/countdown/countdown.js +1 -2
  17. package/dist/cjs/packages/datepicker/utils.js +9 -9
  18. package/dist/cjs/packages/dialog/content.js +3 -3
  19. package/dist/cjs/packages/dialog/dialog.js +8 -11
  20. package/dist/cjs/packages/drag/drag.js +4 -7
  21. package/dist/cjs/packages/elevator/elevator.js +7 -10
  22. package/dist/cjs/packages/ellipsis/ellipsis.js +17 -30
  23. package/dist/cjs/packages/form/index.js +0 -2
  24. package/dist/cjs/packages/form/useform.js +50 -57
  25. package/dist/cjs/packages/infiniteloading/infiniteloading.js +8 -14
  26. package/dist/cjs/packages/inputnumber/inputnumber.js +16 -28
  27. package/dist/cjs/packages/lottie/types.js +0 -2
  28. package/dist/cjs/packages/menuitem/menuitem.js +24 -22
  29. package/dist/cjs/packages/noticebar/noticebar.js +71 -67
  30. package/dist/cjs/packages/notify/notify.js +4 -4
  31. package/dist/cjs/packages/nutui.react.build.js +105 -105
  32. package/dist/cjs/packages/nutui.react.js +105 -105
  33. package/dist/cjs/packages/overlay/overlay.js +3 -3
  34. package/dist/cjs/packages/pickerview/pickerroller.js +4 -7
  35. package/dist/cjs/packages/pickerview/pickerview.js +1 -2
  36. package/dist/cjs/packages/pickerview/utils.js +3 -3
  37. package/dist/cjs/packages/popover/popover.js +75 -77
  38. package/dist/cjs/packages/popup/popup.js +8 -14
  39. package/dist/cjs/packages/pulltorefresh/pulltorefresh.js +52 -56
  40. package/dist/cjs/packages/radio/index.js +0 -2
  41. package/dist/cjs/packages/range/range.js +16 -28
  42. package/dist/cjs/packages/shortpassword/shortpassword.js +3 -3
  43. package/dist/cjs/packages/sticky/sticky.js +4 -7
  44. package/dist/cjs/packages/swipe/swipe.js +8 -15
  45. package/dist/cjs/packages/swiper/index.js +0 -1
  46. package/dist/cjs/packages/switch/switch.js +4 -7
  47. package/dist/cjs/packages/toast/toast.js +4 -4
  48. package/dist/cjs/packages/uploader/uploader.js +38 -51
  49. package/dist/cjs/packages/virtuallist/utils.js +6 -6
  50. package/dist/cjs/packages/watermark/watermark.js +4 -8
  51. package/dist/cjs/types/spec/address/base.js +0 -2
  52. package/dist/cjs/utils/date.js +5 -5
  53. package/dist/cjs/utils/event-mocker.js +10 -18
  54. package/dist/cjs/utils/get-rect.js +4 -4
  55. package/dist/cjs/utils/get-scroll-parent.js +3 -3
  56. package/dist/cjs/utils/merge-props.js +3 -3
  57. package/dist/cjs/utils/merge.js +6 -6
  58. package/dist/cjs/utils/raf.js +3 -3
  59. package/dist/cjs/utils/render.js +5 -9
  60. package/dist/cjs/utils/rubberband.js +3 -3
  61. package/dist/cjs/utils/taro/get-rect.js +14 -24
  62. package/dist/cjs/utils/taro/get-system-info.js +4 -4
  63. package/dist/cjs/utils/taro/platform.js +5 -5
  64. package/dist/es/hooks/use-touch.js +1 -1
  65. package/dist/es/packages/avatarcropper/avatarcropper.js +16 -28
  66. package/dist/es/packages/badge/badge.js +4 -7
  67. package/dist/es/packages/barrage/barrage.js +14 -24
  68. package/dist/es/packages/cascader/cascader.js +12 -21
  69. package/dist/es/packages/collapseitem/collapseitem.js +4 -7
  70. package/dist/es/packages/countdown/countdown.js +1 -2
  71. package/dist/es/packages/dialog/dialog.js +4 -7
  72. package/dist/es/packages/drag/drag.js +4 -7
  73. package/dist/es/packages/elevator/elevator.js +4 -7
  74. package/dist/es/packages/ellipsis/ellipsis.js +17 -30
  75. package/dist/es/packages/form/index.js +0 -1
  76. package/dist/es/packages/form/useform.js +46 -53
  77. package/dist/es/packages/infiniteloading/infiniteloading.js +8 -14
  78. package/dist/es/packages/inputnumber/inputnumber.js +16 -28
  79. package/dist/es/packages/lottie/types.js +1 -1
  80. package/dist/es/packages/menuitem/menuitem.js +24 -22
  81. package/dist/es/packages/noticebar/noticebar.js +71 -67
  82. package/dist/es/packages/pickerview/pickerroller.js +4 -7
  83. package/dist/es/packages/pickerview/pickerview.js +1 -2
  84. package/dist/es/packages/popover/popover.js +75 -77
  85. package/dist/es/packages/popup/popup.js +8 -14
  86. package/dist/es/packages/pulltorefresh/pulltorefresh.js +52 -56
  87. package/dist/es/packages/radio/index.js +0 -1
  88. package/dist/es/packages/range/range.js +16 -28
  89. package/dist/es/packages/sticky/sticky.js +4 -7
  90. package/dist/es/packages/swipe/swipe.js +8 -15
  91. package/dist/es/packages/swiper/index.js +0 -1
  92. package/dist/es/packages/switch/switch.js +4 -7
  93. package/dist/es/packages/uploader/uploader.js +38 -51
  94. package/dist/es/packages/watermark/watermark.js +4 -8
  95. package/dist/es/types/spec/address/base.js +1 -1
  96. package/dist/es/utils/event-mocker.js +4 -12
  97. package/dist/es/utils/render.js +2 -6
  98. package/dist/es/utils/taro/get-rect.js +10 -20
  99. package/dist/nutui.react.umd.js +596 -811
  100. package/dist/style-jmapp.css +1 -1
  101. package/dist/style-jmapp.scss +37 -37
  102. package/dist/style-jrkf.css +1 -1
  103. package/dist/style-jrkf.scss +24 -24
  104. package/dist/style.css +1 -1
  105. package/dist/style.scss +37 -37
  106. package/package.json +1 -1
@@ -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: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- Utils: function() {
12
+ get Utils () {
13
13
  return Utils;
14
14
  },
15
- getCurrMonthData: function() {
15
+ get getCurrMonthData () {
16
16
  return getCurrMonthData;
17
17
  },
18
- getDaysStatus: function() {
18
+ get getDaysStatus () {
19
19
  return getDaysStatus;
20
20
  },
21
- getPreMonthDates: function() {
21
+ get getPreMonthDates () {
22
22
  return getPreMonthDates;
23
23
  }
24
24
  });
@@ -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: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- simulateTouchMove: function() {
12
+ get simulateTouchMove () {
13
13
  return simulateTouchMove;
14
14
  },
15
- simulateTouchZoom: function() {
15
+ get simulateTouchZoom () {
16
16
  return simulateTouchZoom;
17
17
  },
18
- sleep: function() {
18
+ get sleep () {
19
19
  return sleep;
20
20
  },
21
- trigger: function() {
21
+ get trigger () {
22
22
  return trigger;
23
23
  },
24
- triggerDrag: function() {
24
+ get triggerDrag () {
25
25
  return triggerDrag;
26
26
  }
27
27
  });
@@ -89,10 +89,7 @@ function triggerDrag(el) {
89
89
  trigger(el, 'touchend', x, y);
90
90
  }
91
91
  function simulateTouchMove(element, startX, startY, endX, endY, duration) {
92
- return _simulateTouchMove.apply(this, arguments);
93
- }
94
- function _simulateTouchMove() {
95
- _simulateTouchMove = (0, _async_to_generator._)(function(element, startX, startY, endX, endY, duration) {
92
+ return (0, _async_to_generator._)(function() {
96
93
  var touch, touchList, distanceX, distanceY, startTime, elapsed, progress, currentX, currentY, currentTouch, currentTouchList;
97
94
  return (0, _ts_generator._)(this, function(_state) {
98
95
  switch(_state.label){
@@ -145,14 +142,10 @@ function _simulateTouchMove() {
145
142
  ];
146
143
  }
147
144
  });
148
- });
149
- return _simulateTouchMove.apply(this, arguments);
145
+ })();
150
146
  }
151
147
  function simulateTouchZoom(element, startDistance, endDistance, duration) {
152
- return _simulateTouchZoom.apply(this, arguments);
153
- }
154
- function _simulateTouchZoom() {
155
- _simulateTouchZoom = (0, _async_to_generator._)(function(element, startDistance, endDistance, duration) {
148
+ return (0, _async_to_generator._)(function() {
156
149
  var centerX, centerY, startScale, endScale, startTouches, endTouches, progress, currentScale, currentDistance, currentTouches;
157
150
  return (0, _ts_generator._)(this, function(_state) {
158
151
  switch(_state.label){
@@ -212,6 +205,5 @@ function _simulateTouchZoom() {
212
205
  ];
213
206
  }
214
207
  });
215
- });
216
- return _simulateTouchZoom.apply(this, arguments);
208
+ })();
217
209
  }
@@ -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: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- getRect: function() {
12
+ get getRect () {
13
13
  return getRect;
14
14
  },
15
- inBrowser: function() {
15
+ get inBrowser () {
16
16
  return inBrowser;
17
17
  },
18
- isWindow: function() {
18
+ get isWindow () {
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: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- getAllScrollableParents: function() {
12
+ get getAllScrollableParents () {
13
13
  return getAllScrollableParents;
14
14
  },
15
- getScrollParent: function() {
15
+ get getScrollParent () {
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: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- mergeProp: function() {
12
+ get mergeProp () {
13
13
  return mergeProp;
14
14
  },
15
- mergeProps: function() {
15
+ get mergeProps () {
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: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- clone: function() {
12
+ get clone () {
13
13
  return clone;
14
14
  },
15
- isPlainObject: function() {
15
+ get isPlainObject () {
16
16
  return isPlainObject;
17
17
  },
18
- main: function() {
18
+ get main () {
19
19
  return main;
20
20
  },
21
- merge: function() {
21
+ get merge () {
22
22
  return merge;
23
23
  },
24
- recursive: function() {
24
+ get recursive () {
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: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- cancelRaf: function() {
12
+ get cancelRaf () {
13
13
  return cancelRaf;
14
14
  },
15
- default: function() {
15
+ get default () {
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: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- render: function() {
12
+ get render () {
13
13
  return render;
14
14
  },
15
- unmount: function() {
15
+ get unmount () {
16
16
  return unmount;
17
17
  }
18
18
  });
@@ -64,10 +64,7 @@ function legacyUnmount(container) {
64
64
  return unmountComponentAtNode(container);
65
65
  }
66
66
  function concurrentUnmount(container) {
67
- return _concurrentUnmount.apply(this, arguments);
68
- }
69
- function _concurrentUnmount() {
70
- _concurrentUnmount = (0, _async_to_generator._)(function(container) {
67
+ return (0, _async_to_generator._)(function() {
71
68
  return (0, _ts_generator._)(this, function(_state) {
72
69
  // Delay to unmount to avoid React 18 sync warning
73
70
  return [
@@ -79,8 +76,7 @@ function _concurrentUnmount() {
79
76
  })
80
77
  ];
81
78
  });
82
- });
83
- return _concurrentUnmount.apply(this, arguments);
79
+ })();
84
80
  }
85
81
  function unmount(container) {
86
82
  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: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- rubberband: function() {
12
+ get rubberband () {
13
13
  return rubberband;
14
14
  },
15
- rubberbandIfOutOfBounds: function() {
15
+ get rubberbandIfOutOfBounds () {
16
16
  return rubberbandIfOutOfBounds;
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: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- getRectInMultiPlatform: function() {
12
+ get getRectInMultiPlatform () {
13
13
  return getRectInMultiPlatform;
14
14
  },
15
- getRectInMultiPlatformWithoutCache: function() {
15
+ get getRectInMultiPlatformWithoutCache () {
16
16
  return getRectInMultiPlatformWithoutCache;
17
17
  },
18
- makeRect: function() {
18
+ get makeRect () {
19
19
  return makeRect;
20
20
  }
21
21
  });
@@ -36,12 +36,10 @@ function makeRect(width, height) {
36
36
  height: height
37
37
  };
38
38
  }
39
- var getRectInMultiPlatform = /*#__PURE__*/ function() {
40
- var _ref = (0, _async_to_generator._)(function(element) {
41
- var harmonyId;
42
- var _arguments = arguments;
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() {
43
42
  return (0, _ts_generator._)(this, function(_state) {
44
- harmonyId = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : '';
45
43
  if (element) {
46
44
  if (_getrect.inBrowser) {
47
45
  return [
@@ -72,17 +70,12 @@ var getRectInMultiPlatform = /*#__PURE__*/ function() {
72
70
  Promise.resolve(makeRect(0, 0))
73
71
  ];
74
72
  });
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;
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() {
84
78
  return (0, _ts_generator._)(this, function(_state) {
85
- harmonyId = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : '';
86
79
  if (element) {
87
80
  if (_getrect.inBrowser) {
88
81
  return [
@@ -105,8 +98,5 @@ var getRectInMultiPlatformWithoutCache = /*#__PURE__*/ function() {
105
98
  Promise.resolve(makeRect(0, 0))
106
99
  ];
107
100
  });
108
- });
109
- return function getRectInMultiPlatformWithoutCache(element) {
110
- return _ref.apply(this, arguments);
111
- };
112
- }();
101
+ })();
102
+ };
@@ -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: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- getAppBaseInfo: function() {
12
+ get getAppBaseInfo () {
13
13
  return getAppBaseInfo;
14
14
  },
15
- getDeviceInfo: function() {
15
+ get getDeviceInfo () {
16
16
  return getDeviceInfo;
17
17
  },
18
- getWindowInfo: function() {
18
+ get getWindowInfo () {
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: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- harmony: function() {
12
+ get harmony () {
13
13
  return harmony;
14
14
  },
15
- miniprogram: function() {
15
+ get miniprogram () {
16
16
  return miniprogram;
17
17
  },
18
- td: function() {
18
+ get td () {
19
19
  return td;
20
20
  },
21
- web: function() {
21
+ get web () {
22
22
  return web;
23
23
  }
24
24
  });
@@ -1,4 +1,4 @@
1
- import React, { useRef } from "react";
1
+ import { 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 = /*#__PURE__*/ function() {
311
- var _ref = _async_to_generator(function(image) {
310
+ var setDrawImgInfo = function(image) {
311
+ return _async_to_generator(function() {
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,11 +358,8 @@ export var AvatarCropper = function(props) {
358
358
  ];
359
359
  }
360
360
  });
361
- });
362
- return function setDrawImgInfo(image) {
363
- return _ref.apply(this, arguments);
364
- };
365
- }();
361
+ })();
362
+ };
366
363
  var chooseImage = function() {
367
364
  Taro.chooseImage({
368
365
  count: 1,
@@ -376,8 +373,8 @@ export var AvatarCropper = function(props) {
376
373
  }
377
374
  });
378
375
  };
379
- var imageChange = /*#__PURE__*/ function() {
380
- var _ref = _async_to_generator(function(file) {
376
+ var imageChange = function(file) {
377
+ return _async_to_generator(function() {
381
378
  return _ts_generator(this, function(_state) {
382
379
  Taro.getImageInfo({
383
380
  src: file.path
@@ -389,11 +386,8 @@ export var AvatarCropper = function(props) {
389
386
  2
390
387
  ];
391
388
  });
392
- });
393
- return function imageChange(file) {
394
- return _ref.apply(this, arguments);
395
- };
396
- }();
389
+ })();
390
+ };
397
391
  var resetScale = function(scale) {
398
392
  setState(_object_spread_props(_object_spread({}, state), {
399
393
  moveX: 0,
@@ -549,8 +543,8 @@ export var AvatarCropper = function(props) {
549
543
  height: cropperWidth,
550
544
  destWidth: cropperWidth,
551
545
  destHeight: cropperWidth,
552
- success: /*#__PURE__*/ function() {
553
- var _ref = _async_to_generator(function(res) {
546
+ success: function(res) {
547
+ return _async_to_generator(function() {
554
548
  var filePath;
555
549
  return _ts_generator(this, function(_state) {
556
550
  filePath = res.tempFilePath;
@@ -560,11 +554,8 @@ export var AvatarCropper = function(props) {
560
554
  2
561
555
  ];
562
556
  });
563
- });
564
- return function(res) {
565
- return _ref.apply(this, arguments);
566
- };
567
- }()
557
+ })();
558
+ }
568
559
  });
569
560
  };
570
561
  // 裁剪图片
@@ -588,8 +579,8 @@ export var AvatarCropper = function(props) {
588
579
  height: cropperWidth,
589
580
  destWidth: cropperWidth * systemInfo.pixelRatio,
590
581
  destHeight: cropperWidth * systemInfo.pixelRatio,
591
- success: /*#__PURE__*/ function() {
592
- var _ref = _async_to_generator(function(res) {
582
+ success: function(res) {
583
+ return _async_to_generator(function() {
593
584
  var filePath;
594
585
  return _ts_generator(this, function(_state) {
595
586
  filePath = res.tempFilePath;
@@ -599,11 +590,8 @@ export var AvatarCropper = function(props) {
599
590
  2
600
591
  ];
601
592
  });
602
- });
603
- return function(res) {
604
- return _ref.apply(this, arguments);
605
- };
606
- }()
593
+ })();
594
+ }
607
595
  });
608
596
  };
609
597
  var ToolBar = function() {
@@ -54,8 +54,8 @@ export var Badge = function(props) {
54
54
  getPositionStyle();
55
55
  }
56
56
  }, []);
57
- var getPositionStyle = /*#__PURE__*/ function() {
58
- var _ref = _async_to_generator(function() {
57
+ var getPositionStyle = function() {
58
+ return _async_to_generator(function() {
59
59
  var style;
60
60
  return _ts_generator(this, function(_state) {
61
61
  style = _define_property({
@@ -66,11 +66,8 @@ export var Badge = function(props) {
66
66
  2
67
67
  ];
68
68
  });
69
- });
70
- return function getPositionStyle() {
71
- return _ref.apply(this, arguments);
72
- };
73
- }();
69
+ })();
70
+ };
74
71
  var _obj1;
75
72
  return /*#__PURE__*/ React.createElement(View, {
76
73
  className: classes,
@@ -48,14 +48,13 @@ var InternalBarrage = function(props, ref) {
48
48
  }
49
49
  };
50
50
  });
51
- var getNodeWidth = /*#__PURE__*/ function() {
52
- var _ref = _async_to_generator(function(node) {
53
- var type, refe;
54
- var _arguments = arguments;
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;
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';
59
58
  if (!node) return [
60
59
  3,
61
60
  2
@@ -77,11 +76,8 @@ var InternalBarrage = function(props, ref) {
77
76
  ];
78
77
  }
79
78
  });
80
- });
81
- return function getNodeWidth(node) {
82
- return _ref.apply(this, arguments);
83
- };
84
- }();
79
+ })();
80
+ };
85
81
  var clearDomTimeout = function() {
86
82
  if (domTimer.current) {
87
83
  clearTimeout(domTimer.current);
@@ -89,8 +85,8 @@ var InternalBarrage = function(props, ref) {
89
85
  }
90
86
  };
91
87
  useEffect(function() {
92
- var init = /*#__PURE__*/ function() {
93
- var _ref = _async_to_generator(function() {
88
+ var init = function() {
89
+ return _async_to_generator(function() {
94
90
  var _barrageBody_current;
95
91
  return _ts_generator(this, function(_state) {
96
92
  switch(_state.label){
@@ -115,11 +111,8 @@ var InternalBarrage = function(props, ref) {
115
111
  ];
116
112
  }
117
113
  });
118
- });
119
- return function init() {
120
- return _ref.apply(this, arguments);
121
- };
122
- }();
114
+ })();
115
+ };
123
116
  domTimer.current = window.setTimeout(function() {
124
117
  init();
125
118
  }, 300);
@@ -141,8 +134,8 @@ var InternalBarrage = function(props, ref) {
141
134
  play();
142
135
  }, intervalCache);
143
136
  };
144
- var setStyle = /*#__PURE__*/ function() {
145
- var _ref = _async_to_generator(function(el, currentIndex) {
137
+ var setStyle = function(el, currentIndex) {
138
+ return _async_to_generator(function() {
146
139
  var refe, width, height, elScrollDuration, error;
147
140
  return _ts_generator(this, function(_state) {
148
141
  switch(_state.label){
@@ -195,11 +188,8 @@ var InternalBarrage = function(props, ref) {
195
188
  ];
196
189
  }
197
190
  });
198
- });
199
- return function setStyle(el, currentIndex) {
200
- return _ref.apply(this, arguments);
201
- };
202
- }();
191
+ })();
192
+ };
203
193
  var play = function() {
204
194
  if (!loop && index.current >= list.length) {
205
195
  return;
@@ -174,8 +174,8 @@ export var Cascader = /*#__PURE__*/ forwardRef(function(props, ref) {
174
174
  outerOptions
175
175
  ]);
176
176
  useEffect(function() {
177
- var load = /*#__PURE__*/ function() {
178
- var _ref = _async_to_generator(function() {
177
+ var load = function() {
178
+ return _async_to_generator(function() {
179
179
  var parent, error;
180
180
  return _ts_generator(this, function(_state) {
181
181
  switch(_state.label){
@@ -193,8 +193,8 @@ export var Cascader = /*#__PURE__*/ forwardRef(function(props, ref) {
193
193
  ]);
194
194
  return [
195
195
  4,
196
- innerValue.reduce(/*#__PURE__*/ function() {
197
- var _ref = _async_to_generator(function(promise, val, key) {
196
+ innerValue.reduce(function(promise, val, key) {
197
+ return _async_to_generator(function() {
198
198
  var pane, parent, node;
199
199
  return _ts_generator(this, function(_state) {
200
200
  switch(_state.label){
@@ -234,11 +234,8 @@ export var Cascader = /*#__PURE__*/ forwardRef(function(props, ref) {
234
234
  ];
235
235
  }
236
236
  });
237
- });
238
- return function(promise, val, key) {
239
- return _ref.apply(this, arguments);
240
- };
241
- }(), Promise.resolve(parent))
237
+ })();
238
+ }, Promise.resolve(parent))
242
239
  ];
243
240
  case 2:
244
241
  _state.sent();
@@ -261,17 +258,14 @@ export var Cascader = /*#__PURE__*/ forwardRef(function(props, ref) {
261
258
  ];
262
259
  }
263
260
  });
264
- });
265
- return function load() {
266
- return _ref.apply(this, arguments);
267
- };
268
- }();
261
+ })();
262
+ };
269
263
  if (lazy) load();
270
264
  }, [
271
265
  lazy
272
266
  ]);
273
- var chooseItem = /*#__PURE__*/ function() {
274
- var _ref = _async_to_generator(function(pane, levelIndex) {
267
+ var chooseItem = function(pane, levelIndex) {
268
+ return _async_to_generator(function() {
275
269
  var nextValue, nextPathNodes, _props_onPathChange, asyncOptions;
276
270
  return _ts_generator(this, function(_state) {
277
271
  switch(_state.label){
@@ -325,11 +319,8 @@ export var Cascader = /*#__PURE__*/ forwardRef(function(props, ref) {
325
319
  ];
326
320
  }
327
321
  });
328
- });
329
- return function chooseItem(pane, levelIndex) {
330
- return _ref.apply(this, arguments);
331
- };
332
- }();
322
+ })();
323
+ };
333
324
  var renderCascaderItem = function(item, levelIndex) {
334
325
  var _item_pane;
335
326
  return (_item_pane = item.pane) === null || _item_pane === void 0 ? void 0 : _item_pane.map(function(pane, index) {