@arco-design/mobile-react 2.29.4 → 2.29.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 (68) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.en-US.md +2 -2
  3. package/README.md +2 -2
  4. package/cjs/action-sheet/index.d.ts +2 -2
  5. package/cjs/dialog/index.d.ts +2 -2
  6. package/cjs/image-picker/index.js +14 -6
  7. package/cjs/image-preview/index.d.ts +2 -2
  8. package/cjs/image-preview/index.js +5 -3
  9. package/cjs/index.d.ts +5 -5
  10. package/cjs/index.js +16 -16
  11. package/cjs/load-more/index.d.ts +7 -2
  12. package/cjs/load-more/index.js +9 -1
  13. package/cjs/masking/index.d.ts +2 -2
  14. package/cjs/popup/index.d.ts +2 -2
  15. package/cjs/popup-swiper/index.d.ts +2 -2
  16. package/cjs/pull-refresh/android-pull-refresh.js +12 -20
  17. package/cjs/pull-refresh/hooks.js +2 -2
  18. package/cjs/pull-refresh/style/css/index.css +0 -1
  19. package/cjs/pull-refresh/style/index.less +0 -1
  20. package/cjs/style.d.ts +5 -5
  21. package/cjs/style.js +8 -8
  22. package/cjs/tabs/tab-pane.js +5 -2
  23. package/cjs/toast/index.d.ts +12 -12
  24. package/dist/index.js +2421 -2409
  25. package/dist/index.min.js +4 -4
  26. package/dist/style.css +503 -504
  27. package/dist/style.min.css +1 -1
  28. package/esm/action-sheet/index.d.ts +2 -2
  29. package/esm/dialog/index.d.ts +2 -2
  30. package/esm/image-picker/index.js +13 -6
  31. package/esm/image-preview/index.d.ts +2 -2
  32. package/esm/image-preview/index.js +5 -3
  33. package/esm/index.d.ts +5 -5
  34. package/esm/index.js +5 -5
  35. package/esm/load-more/index.d.ts +7 -2
  36. package/esm/load-more/index.js +9 -1
  37. package/esm/masking/index.d.ts +2 -2
  38. package/esm/popup/index.d.ts +2 -2
  39. package/esm/popup-swiper/index.d.ts +2 -2
  40. package/esm/pull-refresh/android-pull-refresh.js +13 -22
  41. package/esm/pull-refresh/hooks.js +2 -2
  42. package/esm/pull-refresh/style/css/index.css +0 -1
  43. package/esm/pull-refresh/style/index.less +0 -1
  44. package/esm/style.d.ts +5 -5
  45. package/esm/style.js +5 -5
  46. package/esm/tabs/tab-pane.js +6 -3
  47. package/esm/toast/index.d.ts +12 -12
  48. package/package.json +3 -3
  49. package/umd/action-sheet/index.d.ts +2 -2
  50. package/umd/dialog/index.d.ts +2 -2
  51. package/umd/image-picker/index.js +16 -10
  52. package/umd/image-preview/index.d.ts +2 -2
  53. package/umd/image-preview/index.js +5 -3
  54. package/umd/index.d.ts +5 -5
  55. package/umd/index.js +14 -14
  56. package/umd/load-more/index.d.ts +7 -2
  57. package/umd/load-more/index.js +9 -1
  58. package/umd/masking/index.d.ts +2 -2
  59. package/umd/popup/index.d.ts +2 -2
  60. package/umd/popup-swiper/index.d.ts +2 -2
  61. package/umd/pull-refresh/android-pull-refresh.js +15 -24
  62. package/umd/pull-refresh/hooks.js +2 -2
  63. package/umd/pull-refresh/style/css/index.css +0 -1
  64. package/umd/pull-refresh/style/index.less +0 -1
  65. package/umd/style.d.ts +5 -5
  66. package/umd/style.js +2 -2
  67. package/umd/tabs/tab-pane.js +5 -2
  68. package/umd/toast/index.d.ts +12 -12
package/CHANGELOG.md CHANGED
@@ -3,6 +3,21 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.29.5](https://github.com/arco-design/arco-design-mobile/compare/@arco-design/mobile-react@2.29.4...@arco-design/mobile-react@2.29.5) (2023-10-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * `ImagePicker` the image will show up again if deleted when uploading ([#182](https://github.com/arco-design/arco-design-mobile/issues/182)) ([f26512a](https://github.com/arco-design/arco-design-mobile/commit/f26512a165e3c8ca082f716a64bdc8e7e86517b7))
12
+ * `ImagePreview` refresh problem when onload of multiple pictures is triggered at the same time ([#173](https://github.com/arco-design/arco-design-mobile/issues/173)) ([c71c526](https://github.com/arco-design/arco-design-mobile/commit/c71c526e81a2851df6653682bfad9b9b84704462))
13
+ * `LoadMore` support "getDataWithEndReachCheck" ([#180](https://github.com/arco-design/arco-design-mobile/issues/180)) ([25baa3c](https://github.com/arco-design/arco-design-mobile/commit/25baa3cae665edb7fa4f316d80886f497c38f7a3))
14
+ * `PullRefresh` optimize transform performance & fix decimal point deviation in ifShouldHandle ([#179](https://github.com/arco-design/arco-design-mobile/issues/179)) ([a826ed2](https://github.com/arco-design/arco-design-mobile/commit/a826ed26096cec3a6487d2bd58345113a5d17dfd))
15
+ * `Tabs` scroll offset in ssr when defaultActiveTab is greater than 0 ([#175](https://github.com/arco-design/arco-design-mobile/issues/175)) ([98aa1d7](https://github.com/arco-design/arco-design-mobile/commit/98aa1d7c5abe8851778f2aa5c2308fe807d5e4d9))
16
+
17
+
18
+
19
+
20
+
6
21
  ## [2.29.4](https://github.com/arco-design/arco-design-mobile/compare/@arco-design/mobile-react@2.29.3...@arco-design/mobile-react@2.29.4) (2023-09-13)
7
22
 
8
23
 
package/README.en-US.md CHANGED
@@ -59,8 +59,8 @@ React & ReactDOM: **<a href="https://reactjs.org/docs/cdn-links.html" target="_b
59
59
  React Transition Group: **<a href="https://reactcommunity.org/react-transition-group/" target="_blank">Click here</a>**
60
60
 
61
61
  ```
62
- <link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.29.3/dist/style.min.css">
63
- <script src="https://unpkg.com/@arco-design/mobile-react@2.29.3/dist/index.min.js"></script>
62
+ <link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.29.4/dist/style.min.css">
63
+ <script src="https://unpkg.com/@arco-design/mobile-react@2.29.4/dist/index.min.js"></script>
64
64
  ```
65
65
 
66
66
  ## Full import
package/README.md CHANGED
@@ -59,8 +59,8 @@ React & ReactDOM: **<a href="https://reactjs.org/docs/cdn-links.html" target="
59
59
  React Transition Group: **<a href="https://reactcommunity.org/react-transition-group/" target="_blank">戳这里获取</a>**
60
60
 
61
61
  ```
62
- <link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.29.3/dist/style.min.css">
63
- <script src="https://unpkg.com/@arco-design/mobile-react@2.29.3/dist/index.min.js"></script>
62
+ <link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.29.4/dist/style.min.css">
63
+ <script src="https://unpkg.com/@arco-design/mobile-react@2.29.4/dist/index.min.js"></script>
64
64
  ```
65
65
 
66
66
  ## 引入全部
@@ -86,11 +86,11 @@ declare const _default: React.ForwardRefExoticComponent<ActionSheetProps & React
86
86
  * @param {ActionSheetProps} config setting
87
87
  * @returns {{ close: () => void; update: (newConfig: ActionSheetProps) => void; }}
88
88
  */
89
- open: (config: Pick<import("../context-provider").WithGlobalContext<ActionSheetProps & React.RefAttributes<ActionSheetRef>>, "title" | "ref" | "key" | "context" | "translateZ" | "className" | "onTouchMove" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset" | "items" | "cancelText" | "subTitle"> & {
89
+ open: (config: Pick<import("../context-provider").WithGlobalContext<ActionSheetProps & React.RefAttributes<ActionSheetRef>>, "title" | "ref" | "key" | "context" | "translateZ" | "className" | "onTouchMove" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "initialBodyOverflow" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "preventBodyScroll" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset" | "items" | "cancelText" | "subTitle"> & {
90
90
  key?: string | undefined;
91
91
  }, context?: import("../context-provider").GlobalContextParams | undefined) => {
92
92
  close: () => void;
93
- update: (newConfig: Pick<import("../context-provider").WithGlobalContext<ActionSheetProps & React.RefAttributes<ActionSheetRef>>, "title" | "ref" | "key" | "context" | "translateZ" | "className" | "onTouchMove" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset" | "items" | "cancelText" | "subTitle"> & {
93
+ update: (newConfig: Pick<import("../context-provider").WithGlobalContext<ActionSheetProps & React.RefAttributes<ActionSheetRef>>, "title" | "ref" | "key" | "context" | "translateZ" | "className" | "onTouchMove" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "initialBodyOverflow" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "preventBodyScroll" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset" | "items" | "cancelText" | "subTitle"> & {
94
94
  key?: string | undefined;
95
95
  }) => void;
96
96
  };
@@ -193,11 +193,11 @@ declare const _default: React.ForwardRefExoticComponent<DialogProps & React.RefA
193
193
  * @param {DialogProps} config Configuration
194
194
  * @returns {{ close: () => void; update: (newConfig: DialogProps) => void; }}
195
195
  */
196
- open: (config: Pick<import("../context-provider").WithGlobalContext<DialogProps & React.RefAttributes<DialogRef>>, "platform" | "footer" | "title" | "children" | "ref" | "key" | "context" | "className" | "getScrollContainer" | "onTouchMove" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "footerType" | "renderFooter" | "footerCollapseCount" | "titleAlign" | "contentAlign" | "extra"> & {
196
+ open: (config: Pick<import("../context-provider").WithGlobalContext<DialogProps & React.RefAttributes<DialogRef>>, "platform" | "footer" | "title" | "children" | "ref" | "key" | "context" | "className" | "getScrollContainer" | "onTouchMove" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "initialBodyOverflow" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "footerType" | "renderFooter" | "footerCollapseCount" | "titleAlign" | "contentAlign" | "extra"> & {
197
197
  key?: string | undefined;
198
198
  }, context?: import("../context-provider").GlobalContextParams | undefined) => {
199
199
  close: () => void;
200
- update: (newConfig: Pick<import("../context-provider").WithGlobalContext<DialogProps & React.RefAttributes<DialogRef>>, "platform" | "footer" | "title" | "children" | "ref" | "key" | "context" | "className" | "getScrollContainer" | "onTouchMove" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "footerType" | "renderFooter" | "footerCollapseCount" | "titleAlign" | "contentAlign" | "extra"> & {
200
+ update: (newConfig: Pick<import("../context-provider").WithGlobalContext<DialogProps & React.RefAttributes<DialogRef>>, "platform" | "footer" | "title" | "children" | "ref" | "key" | "context" | "className" | "getScrollContainer" | "onTouchMove" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "initialBodyOverflow" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "footerType" | "renderFooter" | "footerCollapseCount" | "titleAlign" | "contentAlign" | "extra"> & {
201
201
  key?: string | undefined;
202
202
  }) => void;
203
203
  };
@@ -24,6 +24,8 @@ var _grid = _interopRequireDefault(require("../grid"));
24
24
 
25
25
  var _addIcon = _interopRequireDefault(require("./add-icon"));
26
26
 
27
+ var _helpers = require("../_helpers");
28
+
27
29
  var _type = require("./type");
28
30
 
29
31
  Object.keys(_type).forEach(function (key) {
@@ -81,7 +83,7 @@ var ImagePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
81
83
  onDeleteClick = props.onDeleteClick;
82
84
  var domRef = (0, _react.useRef)(null);
83
85
  var fileRef = (0, _react.useRef)(null);
84
- var cacheRef = (0, _react.useRef)([]);
86
+ var cacheRef = (0, _helpers.useLatestRef)(images);
85
87
  (0, _react.useImperativeHandle)(ref, function () {
86
88
  return {
87
89
  dom: domRef.current
@@ -148,7 +150,7 @@ var ImagePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
148
150
  file: files[index]
149
151
  };
150
152
  });
151
- cacheRef.current = [].concat(images, res);
153
+ cacheRef.current = [].concat(cacheRef.current, res);
152
154
  onChange([].concat(cacheRef.current)); // 执行upload
153
155
 
154
156
  if (typeof upload === 'function') {
@@ -161,15 +163,21 @@ var ImagePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
161
163
  var file = _ref2.file;
162
164
  return file === _file;
163
165
  });
164
- cacheRef.current[index] = (0, _extends2.default)({}, cacheRef.current[index], data, {
165
- status: undefined
166
- });
166
+
167
+ if (index !== -1) {
168
+ cacheRef.current[index] = (0, _extends2.default)({}, cacheRef.current[index], data, {
169
+ status: undefined
170
+ });
171
+ }
167
172
  }).catch(function () {
168
173
  var index = cacheRef.current.findIndex(function (_ref3) {
169
174
  var file = _ref3.file;
170
175
  return file === _file;
171
176
  });
172
- cacheRef.current[index].status = 'error';
177
+
178
+ if (index !== -1) {
179
+ cacheRef.current[index].status = 'error';
180
+ }
173
181
  }).finally(function () {
174
182
  onChange([].concat(cacheRef.current));
175
183
  });
@@ -274,9 +274,9 @@ declare const _default: React.ForwardRefExoticComponent<ImagePreviewProps & Reac
274
274
  * @param {ImagePreviewProps} config configuration
275
275
  * @returns {{ close: () => void; update: (newConfig: ImagePreviewProps) => void; }}
276
276
  */
277
- open: (config: Pick<import("../context-provider").WithGlobalContext<ImagePreviewProps & React.RefAttributes<ImagePreviewRef>>, "style" | "ref" | "key" | "context" | "className" | "swipeable" | "lazyloadCount" | "onChange" | "onAfterChange" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "getContainer" | "loadingArea" | "onClose" | "fit" | "errorArea" | "showLoading" | "showError" | "retryTime" | "staticLabel" | "animateDurationSlide" | "loop" | "renderIndicator" | "indicatorPos" | "showIndicator" | "hideSingleIndicator" | "spaceBetween" | "percentToChange" | "distanceToChange" | "speedToChange" | "extra" | "images" | "openIndex" | "displayDuration" | "replaceFallbackWhenLoaded" | "noselect" | "scrollBezier" | "swipeToClose" | "getMinScale" | "getMaxScale" | "getDoubleClickScale" | "getThumbBounds" | "onImageClick" | "onImageDoubleClick" | "onImageLongTap">, context?: import("../context-provider").GlobalContextParams | undefined) => {
277
+ open: (config: Pick<import("../context-provider").WithGlobalContext<ImagePreviewProps & React.RefAttributes<ImagePreviewRef>>, "style" | "ref" | "key" | "context" | "className" | "swipeable" | "lazyloadCount" | "onChange" | "onAfterChange" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "getContainer" | "onClose" | "fit" | "loadingArea" | "errorArea" | "showLoading" | "showError" | "retryTime" | "staticLabel" | "animateDurationSlide" | "loop" | "renderIndicator" | "indicatorPos" | "showIndicator" | "hideSingleIndicator" | "spaceBetween" | "percentToChange" | "distanceToChange" | "speedToChange" | "extra" | "images" | "openIndex" | "displayDuration" | "replaceFallbackWhenLoaded" | "noselect" | "scrollBezier" | "swipeToClose" | "getMinScale" | "getMaxScale" | "getDoubleClickScale" | "getThumbBounds" | "onImageClick" | "onImageDoubleClick" | "onImageLongTap">, context?: import("../context-provider").GlobalContextParams | undefined) => {
278
278
  close: () => void;
279
- update: (newConfig: Pick<import("../context-provider").WithGlobalContext<ImagePreviewProps & React.RefAttributes<ImagePreviewRef>>, "style" | "ref" | "key" | "context" | "className" | "swipeable" | "lazyloadCount" | "onChange" | "onAfterChange" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "getContainer" | "loadingArea" | "onClose" | "fit" | "errorArea" | "showLoading" | "showError" | "retryTime" | "staticLabel" | "animateDurationSlide" | "loop" | "renderIndicator" | "indicatorPos" | "showIndicator" | "hideSingleIndicator" | "spaceBetween" | "percentToChange" | "distanceToChange" | "speedToChange" | "extra" | "images" | "openIndex" | "displayDuration" | "replaceFallbackWhenLoaded" | "noselect" | "scrollBezier" | "swipeToClose" | "getMinScale" | "getMaxScale" | "getDoubleClickScale" | "getThumbBounds" | "onImageClick" | "onImageDoubleClick" | "onImageLongTap">) => void;
279
+ update: (newConfig: Pick<import("../context-provider").WithGlobalContext<ImagePreviewProps & React.RefAttributes<ImagePreviewRef>>, "style" | "ref" | "key" | "context" | "className" | "swipeable" | "lazyloadCount" | "onChange" | "onAfterChange" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "getContainer" | "onClose" | "fit" | "loadingArea" | "errorArea" | "showLoading" | "showError" | "retryTime" | "staticLabel" | "animateDurationSlide" | "loop" | "renderIndicator" | "indicatorPos" | "showIndicator" | "hideSingleIndicator" | "spaceBetween" | "percentToChange" | "distanceToChange" | "speedToChange" | "extra" | "images" | "openIndex" | "displayDuration" | "replaceFallbackWhenLoaded" | "noselect" | "scrollBezier" | "swipeToClose" | "getMinScale" | "getMaxScale" | "getDoubleClickScale" | "getThumbBounds" | "onImageClick" | "onImageDoubleClick" | "onImageLongTap">) => void;
280
280
  };
281
281
  };
282
282
  /**
@@ -658,9 +658,11 @@ var ImagePreview = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
658
658
 
659
659
 
660
660
  function setImagesStatusByIndex(index, data) {
661
- var newStatus = imagesStatusRef.current.slice();
662
- newStatus[index] = (0, _extends5.default)({}, newStatus[index] || {}, data);
663
- setImagesStatus(newStatus);
661
+ setImagesStatus(function (current) {
662
+ var newStatus = current.slice();
663
+ newStatus[index] = (0, _extends5.default)({}, newStatus[index] || {}, data);
664
+ return newStatus;
665
+ });
664
666
  }
665
667
  /**
666
668
  * 缩略图放大过渡动画设置
package/cjs/index.d.ts CHANGED
@@ -1,12 +1,13 @@
1
1
  export { default as Tabs } from './tabs';
2
2
  export { default as Sticky } from './sticky';
3
- export { default as LoadMore } from './load-more';
4
- export { default as Cell } from './cell';
3
+ export { default as Portal } from './portal';
4
+ export { default as Toast } from './toast';
5
5
  export { default as ActionSheet } from './action-sheet';
6
6
  export { default as Avatar } from './avatar';
7
7
  export { default as Badge } from './badge';
8
8
  export { default as Button } from './button';
9
9
  export { default as Carousel } from './carousel';
10
+ export { default as Cell } from './cell';
10
11
  export { default as Checkbox } from './checkbox';
11
12
  export { default as CircleProgress } from './circle-progress';
12
13
  export { default as Collapse } from './collapse';
@@ -26,6 +27,7 @@ export { default as ImagePreview } from './image-preview';
26
27
  export { default as IndexBar } from './index-bar';
27
28
  export { default as Input } from './input';
28
29
  export { default as Keyboard } from './keyboard';
30
+ export { default as LoadMore } from './load-more';
29
31
  export { default as Loading } from './loading';
30
32
  export { default as Masking } from './masking';
31
33
  export { default as NavBar } from './nav-bar';
@@ -37,14 +39,13 @@ export { default as PickerView } from './picker-view';
37
39
  export { default as Popover } from './popover';
38
40
  export { default as Popup } from './popup';
39
41
  export { default as PopupSwiper } from './popup-swiper';
40
- export { default as Portal } from './portal';
41
42
  export { default as Progress } from './progress';
42
43
  export { default as PullRefresh } from './pull-refresh';
43
44
  export { default as Radio } from './radio';
44
45
  export { default as Rate } from './rate';
45
46
  export { default as SearchBar } from './search-bar';
46
- export { default as Skeleton } from './skeleton';
47
47
  export { default as ShowMonitor } from './show-monitor';
48
+ export { default as Skeleton } from './skeleton';
48
49
  export { default as Slider } from './slider';
49
50
  export { default as Stepper } from './stepper';
50
51
  export { default as Steps } from './steps';
@@ -54,5 +55,4 @@ export { default as Switch } from './switch';
54
55
  export { default as TabBar } from './tab-bar';
55
56
  export { default as Tag } from './tag';
56
57
  export { default as Textarea } from './textarea';
57
- export { default as Toast } from './toast';
58
58
  export { default as Transition } from './transition';
package/cjs/index.js CHANGED
@@ -13,13 +13,13 @@ var _sticky = _interopRequireDefault(require("./sticky"));
13
13
 
14
14
  exports.Sticky = _sticky.default;
15
15
 
16
- var _loadMore = _interopRequireDefault(require("./load-more"));
16
+ var _portal = _interopRequireDefault(require("./portal"));
17
17
 
18
- exports.LoadMore = _loadMore.default;
18
+ exports.Portal = _portal.default;
19
19
 
20
- var _cell = _interopRequireDefault(require("./cell"));
20
+ var _toast = _interopRequireDefault(require("./toast"));
21
21
 
22
- exports.Cell = _cell.default;
22
+ exports.Toast = _toast.default;
23
23
 
24
24
  var _actionSheet = _interopRequireDefault(require("./action-sheet"));
25
25
 
@@ -41,6 +41,10 @@ var _carousel = _interopRequireDefault(require("./carousel"));
41
41
 
42
42
  exports.Carousel = _carousel.default;
43
43
 
44
+ var _cell = _interopRequireDefault(require("./cell"));
45
+
46
+ exports.Cell = _cell.default;
47
+
44
48
  var _checkbox = _interopRequireDefault(require("./checkbox"));
45
49
 
46
50
  exports.Checkbox = _checkbox.default;
@@ -117,6 +121,10 @@ var _keyboard = _interopRequireDefault(require("./keyboard"));
117
121
 
118
122
  exports.Keyboard = _keyboard.default;
119
123
 
124
+ var _loadMore = _interopRequireDefault(require("./load-more"));
125
+
126
+ exports.LoadMore = _loadMore.default;
127
+
120
128
  var _loading = _interopRequireDefault(require("./loading"));
121
129
 
122
130
  exports.Loading = _loading.default;
@@ -161,10 +169,6 @@ var _popupSwiper = _interopRequireDefault(require("./popup-swiper"));
161
169
 
162
170
  exports.PopupSwiper = _popupSwiper.default;
163
171
 
164
- var _portal = _interopRequireDefault(require("./portal"));
165
-
166
- exports.Portal = _portal.default;
167
-
168
172
  var _progress = _interopRequireDefault(require("./progress"));
169
173
 
170
174
  exports.Progress = _progress.default;
@@ -185,14 +189,14 @@ var _searchBar = _interopRequireDefault(require("./search-bar"));
185
189
 
186
190
  exports.SearchBar = _searchBar.default;
187
191
 
188
- var _skeleton = _interopRequireDefault(require("./skeleton"));
189
-
190
- exports.Skeleton = _skeleton.default;
191
-
192
192
  var _showMonitor = _interopRequireDefault(require("./show-monitor"));
193
193
 
194
194
  exports.ShowMonitor = _showMonitor.default;
195
195
 
196
+ var _skeleton = _interopRequireDefault(require("./skeleton"));
197
+
198
+ exports.Skeleton = _skeleton.default;
199
+
196
200
  var _slider = _interopRequireDefault(require("./slider"));
197
201
 
198
202
  exports.Slider = _slider.default;
@@ -229,10 +233,6 @@ var _textarea = _interopRequireDefault(require("./textarea"));
229
233
 
230
234
  exports.Textarea = _textarea.default;
231
235
 
232
- var _toast = _interopRequireDefault(require("./toast"));
233
-
234
- exports.Toast = _toast.default;
235
-
236
236
  var _transition = _interopRequireDefault(require("./transition"));
237
237
 
238
238
  exports.Transition = _transition.default;
@@ -108,8 +108,8 @@ export interface LoadMoreProps {
108
108
  */
109
109
  getDataAtFirst?: boolean;
110
110
  /**
111
- * 当 getDataAtFirst === false 且数据不满一屏时是否触发一次请求,trigger=scroll时有效
112
- * @en Whether to trigger a request when getDataAtFirst === false and the data is not full of one screen, valid when trigger=scroll
111
+ * 当 getDataAtFirst 值为 false 且数据不满一屏时是否触发一次请求,trigger=scroll时有效
112
+ * @en Whether to trigger a request when getDataAtFirst equals false and the data is not full of one screen, valid when trigger=scroll
113
113
  * @default false
114
114
  */
115
115
  getDataWhenNoScrollAtFirst?: boolean;
@@ -140,6 +140,11 @@ export interface LoadMoreRef {
140
140
  * @en Change component state manually
141
141
  */
142
142
  changeStatus: (status: LoadMoreStatus, scene?: string) => void;
143
+ /**
144
+ * 判断是否滚动到底部并手动触发数据获取
145
+ * @en Determine whether to scroll to the bottom and manually trigger data acquisition
146
+ */
147
+ getDataWithEndReachCheck: () => void;
143
148
  }
144
149
  /**
145
150
  * 上拉加载组件,支持`scroll`和`click`两种触发加载方式,支持滚动监听。支持受控与不受控两种形式。<br>如果引入组件后发现仅触发了初始的`getData`,请确认是否在`getData`方法内没有调用`callback`移除 loading 状态,且未设置`blockWhenLoading`属性为 false。
@@ -147,10 +147,18 @@ var LoadMore = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
147
147
  }
148
148
  };
149
149
  }, [trigger, disabled, getScrollContainer, handleContainerScroll, throttle]);
150
+
151
+ var getDataWithEndReachCheck = function getDataWithEndReachCheck() {
152
+ if (checkNeedTrigger(0, threshold)) {
153
+ triggerGetData('pageEnd');
154
+ }
155
+ };
156
+
150
157
  (0, _react.useImperativeHandle)(ref, function () {
151
158
  return {
152
159
  dom: domRef.current,
153
- changeStatus: changeStatus
160
+ changeStatus: changeStatus,
161
+ getDataWithEndReachCheck: getDataWithEndReachCheck
154
162
  };
155
163
  }, [changeStatus]);
156
164
 
@@ -205,11 +205,11 @@ declare const _default: React.ForwardRefExoticComponent<MaskingProps & React.Ref
205
205
  * @param {MaskingProps} config Configuration
206
206
  * @returns {{ close: () => void; update: (newConfig: MaskingProps) => void; }}
207
207
  */
208
- open: (config: Pick<import("../context-provider").WithGlobalContext<MaskingProps & React.RefAttributes<MaskingRef>>, "children" | "ref" | "key" | "context" | "className" | "getScrollContainer" | "onTouchMove" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "contentAtCenter" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove"> & {
208
+ open: (config: Pick<import("../context-provider").WithGlobalContext<MaskingProps & React.RefAttributes<MaskingRef>>, "children" | "ref" | "key" | "context" | "className" | "getScrollContainer" | "onTouchMove" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "initialBodyOverflow" | "contentAtCenter" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove"> & {
209
209
  key?: string | undefined;
210
210
  }, context?: import("../context-provider").GlobalContextParams | undefined) => {
211
211
  close: () => void;
212
- update: (newConfig: Pick<import("../context-provider").WithGlobalContext<MaskingProps & React.RefAttributes<MaskingRef>>, "children" | "ref" | "key" | "context" | "className" | "getScrollContainer" | "onTouchMove" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "contentAtCenter" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove"> & {
212
+ update: (newConfig: Pick<import("../context-provider").WithGlobalContext<MaskingProps & React.RefAttributes<MaskingRef>>, "children" | "ref" | "key" | "context" | "className" | "getScrollContainer" | "onTouchMove" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "initialBodyOverflow" | "contentAtCenter" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove"> & {
213
213
  key?: string | undefined;
214
214
  }) => void;
215
215
  };
@@ -66,11 +66,11 @@ declare const _default: React.ForwardRefExoticComponent<PopupProps & React.RefAt
66
66
  * @param {PopupProps} config Configuration
67
67
  * @returns {{ close: () => void; update: (newConfig: PopupProps) => void; }}
68
68
  */
69
- open: (config: Pick<import("../context-provider").WithGlobalContext<PopupProps & React.RefAttributes<PopupRef>>, "direction" | "children" | "ref" | "key" | "context" | "translateZ" | "className" | "getScrollContainer" | "onTouchMove" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset"> & {
69
+ open: (config: Pick<import("../context-provider").WithGlobalContext<PopupProps & React.RefAttributes<PopupRef>>, "direction" | "children" | "ref" | "key" | "context" | "translateZ" | "className" | "getScrollContainer" | "onTouchMove" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "initialBodyOverflow" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset"> & {
70
70
  key?: string | undefined;
71
71
  }, context?: import("../context-provider").GlobalContextParams | undefined) => {
72
72
  close: () => void;
73
- update: (newConfig: Pick<import("../context-provider").WithGlobalContext<PopupProps & React.RefAttributes<PopupRef>>, "direction" | "children" | "ref" | "key" | "context" | "translateZ" | "className" | "getScrollContainer" | "onTouchMove" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset"> & {
73
+ update: (newConfig: Pick<import("../context-provider").WithGlobalContext<PopupProps & React.RefAttributes<PopupRef>>, "direction" | "children" | "ref" | "key" | "context" | "translateZ" | "className" | "getScrollContainer" | "onTouchMove" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "initialBodyOverflow" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset"> & {
74
74
  key?: string | undefined;
75
75
  }) => void;
76
76
  };
@@ -76,11 +76,11 @@ declare const _default: React.ForwardRefExoticComponent<PopupSwiperProps & React
76
76
  * @param {string | PopupSwiperProps} config Configuration
77
77
  * @returns {{ close: () => void; update: (newConfig: PopupSwiperProps) => void; }}
78
78
  */
79
- open: (config: Pick<import("../context-provider").WithGlobalContext<PopupSwiperProps & React.RefAttributes<PopupSwiperRef>>, "direction" | "children" | "ref" | "key" | "context" | "translateZ" | "className" | "getScrollContainer" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset" | "percentToClose" | "distanceToClose" | "speedToClose" | "allowSwipeDirections" | "exitDirection"> & {
79
+ open: (config: Pick<import("../context-provider").WithGlobalContext<PopupSwiperProps & React.RefAttributes<PopupSwiperRef>>, "direction" | "children" | "ref" | "key" | "context" | "translateZ" | "className" | "getScrollContainer" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "initialBodyOverflow" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset" | "percentToClose" | "distanceToClose" | "speedToClose" | "allowSwipeDirections" | "exitDirection"> & {
80
80
  key?: string | undefined;
81
81
  }, context?: import("../context-provider").GlobalContextParams | undefined) => {
82
82
  close: () => void;
83
- update: (newConfig: Pick<import("../context-provider").WithGlobalContext<PopupSwiperProps & React.RefAttributes<PopupSwiperRef>>, "direction" | "children" | "ref" | "key" | "context" | "translateZ" | "className" | "getScrollContainer" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset" | "percentToClose" | "distanceToClose" | "speedToClose" | "allowSwipeDirections" | "exitDirection"> & {
83
+ update: (newConfig: Pick<import("../context-provider").WithGlobalContext<PopupSwiperProps & React.RefAttributes<PopupSwiperRef>>, "direction" | "children" | "ref" | "key" | "context" | "translateZ" | "className" | "getScrollContainer" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "initialBodyOverflow" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset" | "percentToClose" | "distanceToClose" | "speedToClose" | "allowSwipeDirections" | "exitDirection"> & {
84
84
  key?: string | undefined;
85
85
  }) => void; /**
86
86
  * 内容面板 touchstart 事件,返回true时表示阻止本组件内部处理事件
@@ -5,6 +5,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  exports.__esModule = true;
6
6
  exports.PullRefresh = void 0;
7
7
 
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+
8
10
  var _react = _interopRequireWildcard(require("react"));
9
11
 
10
12
  var _mobileUtils = require("@arco-design/mobile-utils");
@@ -70,11 +72,7 @@ var PullRefresh = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
70
72
  onRefresh = props.onRefresh,
71
73
  _props$allowPullWhenN = props.allowPullWhenNotTop,
72
74
  allowPullWhenNotTop = _props$allowPullWhenN === void 0 ? false : _props$allowPullWhenN;
73
-
74
- var _useState = (0, _react.useState)({}),
75
- transition = _useState[0],
76
- setTransition = _useState[1];
77
-
75
+ var placeRef = (0, _react.useRef)(null);
78
76
  var touchRef = (0, _react.useRef)(null);
79
77
  var currentTranslateYRef = (0, _react.useRef)(0);
80
78
  var onTouching = (0, _react.useRef)(false);
@@ -111,17 +109,7 @@ var PullRefresh = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
111
109
 
112
110
  var scroll = function scroll(y, ms, callback) {
113
111
  if (y < 5) {
114
- if (y < 0) {
115
- currentTranslateYRef.current = 0;
116
- return;
117
- }
118
-
119
- if (ms === 0) {
120
- setTimeout(function () {
121
- setTransition({
122
- transition: 'all 0s'
123
- });
124
- });
112
+ if (y < 0 || ms === 0) {
125
113
  currentTranslateYRef.current = 0;
126
114
  return;
127
115
  }
@@ -129,10 +117,11 @@ var PullRefresh = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
129
117
 
130
118
  var translateY = dampRateCalculate(y, loosingHeight, dampRate);
131
119
  currentTranslateYRef.current = translateY;
132
- setTransition({
133
- transform: translateY ? "translateY(" + translateY + "px)" : '',
120
+ placeRef.current && (0, _helpers.setStyleWithVendor)(placeRef.current, (0, _extends2.default)({
121
+ transform: translateY ? "translateY(" + translateY + "px) translateZ(0)" : ''
122
+ }, ms ? {
134
123
  transition: "all " + ms / 1000 + "s"
135
- });
124
+ } : {}));
136
125
  setTimeout(function () {
137
126
  callback == null ? void 0 : callback();
138
127
  }, ms);
@@ -150,6 +139,9 @@ var PullRefresh = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
150
139
 
151
140
  loadingRef.current = false;
152
141
  setStatus(_model.PullRefreshStatus.Static);
142
+ placeRef.current && (0, _helpers.setStyleWithVendor)(placeRef.current, {
143
+ transition: ''
144
+ });
153
145
  callback();
154
146
  });
155
147
  };
@@ -277,7 +269,7 @@ var PullRefresh = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
277
269
  ref: domRef
278
270
  }, /*#__PURE__*/_react.default.createElement("div", {
279
271
  className: (0, _mobileUtils.cls)(prefixCls + "-pull-refresh-place"),
280
- style: (0, _helpers.getStyleWithVendor)(transition)
272
+ ref: placeRef
281
273
  }, /*#__PURE__*/_react.default.createElement("div", {
282
274
  className: (0, _mobileUtils.cls)(prefixCls + "-pull-refresh-label"),
283
275
  ref: labelRef,
@@ -110,9 +110,9 @@ var useCheckAsStart = function useCheckAsStart(_ref3) {
110
110
  var allowPullWhenNotTop = _ref3.allowPullWhenNotTop,
111
111
  domRef = _ref3.domRef;
112
112
  var ifShouldHandle = (0, _react.useCallback)(function () {
113
- var _domRef$current$getBo, _domRef$current9, _domRef$current9$getB;
113
+ var _domRef$current$offse, _domRef$current9;
114
114
 
115
- var domRefHeight = (_domRef$current$getBo = (_domRef$current9 = domRef.current) == null ? void 0 : (_domRef$current9$getB = _domRef$current9.getBoundingClientRect()) == null ? void 0 : _domRef$current9$getB.height) != null ? _domRef$current$getBo : 0;
115
+ var domRefHeight = (_domRef$current$offse = (_domRef$current9 = domRef.current) == null ? void 0 : _domRef$current9.offsetHeight) != null ? _domRef$current$offse : 0;
116
116
  return domRef.current && !(!allowPullWhenNotTop && (domRef.current.scrollTop < 0 || domRef.current.scrollTop > domRef.current.scrollHeight - domRefHeight));
117
117
  }, [allowPullWhenNotTop]);
118
118
  return {
@@ -51,7 +51,6 @@
51
51
  overflow-y: auto;
52
52
  }
53
53
  .arco-pull-refresh-place {
54
- will-change: transform;
55
54
  position: relative;
56
55
  height: 100%;
57
56
  }
@@ -51,7 +51,6 @@
51
51
  }
52
52
 
53
53
  &-place {
54
- will-change: transform;
55
54
  position: relative;
56
55
  height: 100%;
57
56
  }
package/cjs/style.d.ts CHANGED
@@ -1,13 +1,14 @@
1
1
  import '../style/public.less';
2
2
  import './tabs/style';
3
3
  import './sticky/style';
4
- import './load-more/style';
5
- import './cell/style';
4
+ import './portal/style';
5
+ import './toast/style';
6
6
  import './action-sheet/style';
7
7
  import './avatar/style';
8
8
  import './badge/style';
9
9
  import './button/style';
10
10
  import './carousel/style';
11
+ import './cell/style';
11
12
  import './checkbox/style';
12
13
  import './circle-progress/style';
13
14
  import './collapse/style';
@@ -27,6 +28,7 @@ import './image-preview/style';
27
28
  import './index-bar/style';
28
29
  import './input/style';
29
30
  import './keyboard/style';
31
+ import './load-more/style';
30
32
  import './loading/style';
31
33
  import './masking/style';
32
34
  import './nav-bar/style';
@@ -38,14 +40,13 @@ import './picker-view/style';
38
40
  import './popover/style';
39
41
  import './popup/style';
40
42
  import './popup-swiper/style';
41
- import './portal/style';
42
43
  import './progress/style';
43
44
  import './pull-refresh/style';
44
45
  import './radio/style';
45
46
  import './rate/style';
46
47
  import './search-bar/style';
47
- import './skeleton/style';
48
48
  import './show-monitor/style';
49
+ import './skeleton/style';
49
50
  import './slider/style';
50
51
  import './stepper/style';
51
52
  import './steps/style';
@@ -55,5 +56,4 @@ import './switch/style';
55
56
  import './tab-bar/style';
56
57
  import './tag/style';
57
58
  import './textarea/style';
58
- import './toast/style';
59
59
  import './transition/style';
package/cjs/style.js CHANGED
@@ -6,9 +6,9 @@ require("./tabs/style");
6
6
 
7
7
  require("./sticky/style");
8
8
 
9
- require("./load-more/style");
9
+ require("./portal/style");
10
10
 
11
- require("./cell/style");
11
+ require("./toast/style");
12
12
 
13
13
  require("./action-sheet/style");
14
14
 
@@ -20,6 +20,8 @@ require("./button/style");
20
20
 
21
21
  require("./carousel/style");
22
22
 
23
+ require("./cell/style");
24
+
23
25
  require("./checkbox/style");
24
26
 
25
27
  require("./circle-progress/style");
@@ -58,6 +60,8 @@ require("./input/style");
58
60
 
59
61
  require("./keyboard/style");
60
62
 
63
+ require("./load-more/style");
64
+
61
65
  require("./loading/style");
62
66
 
63
67
  require("./masking/style");
@@ -80,8 +84,6 @@ require("./popup/style");
80
84
 
81
85
  require("./popup-swiper/style");
82
86
 
83
- require("./portal/style");
84
-
85
87
  require("./progress/style");
86
88
 
87
89
  require("./pull-refresh/style");
@@ -92,10 +94,10 @@ require("./rate/style");
92
94
 
93
95
  require("./search-bar/style");
94
96
 
95
- require("./skeleton/style");
96
-
97
97
  require("./show-monitor/style");
98
98
 
99
+ require("./skeleton/style");
100
+
99
101
  require("./slider/style");
100
102
 
101
103
  require("./stepper/style");
@@ -114,6 +116,4 @@ require("./tag/style");
114
116
 
115
117
  require("./textarea/style");
116
118
 
117
- require("./toast/style");
118
-
119
119
  require("./transition/style");