antd-mobile 5.0.0-rc.5 → 5.0.0-rc.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/2x/cjs/components/dialog/dialog.d.ts +1 -0
  2. package/2x/cjs/components/dialog/dialog.js +5 -3
  3. package/2x/cjs/components/modal/modal.d.ts +1 -0
  4. package/2x/cjs/components/modal/modal.js +5 -3
  5. package/2x/cjs/components/picker/picker.js +3 -2
  6. package/2x/cjs/components/picker-view/column.d.ts +4 -3
  7. package/2x/cjs/components/picker-view/column.js +23 -10
  8. package/2x/cjs/components/picker-view/picker-view.css +1 -0
  9. package/2x/cjs/components/picker-view/picker-view.js +23 -17
  10. package/2x/cjs/components/progress-bar/progress-bar.css +1 -0
  11. package/2x/cjs/components/virtual-input/virtual-input.js +1 -3
  12. package/2x/es/components/dialog/dialog.d.ts +1 -0
  13. package/2x/es/components/dialog/dialog.js +5 -3
  14. package/2x/es/components/modal/modal.d.ts +1 -0
  15. package/2x/es/components/modal/modal.js +5 -3
  16. package/2x/es/components/picker/picker.js +3 -2
  17. package/2x/es/components/picker-view/column.d.ts +4 -3
  18. package/2x/es/components/picker-view/column.js +21 -9
  19. package/2x/es/components/picker-view/picker-view.css +1 -0
  20. package/2x/es/components/picker-view/picker-view.js +24 -18
  21. package/2x/es/components/progress-bar/progress-bar.css +1 -0
  22. package/2x/es/components/virtual-input/virtual-input.js +1 -3
  23. package/2x/package.json +2 -2
  24. package/cjs/components/dialog/dialog.d.ts +1 -0
  25. package/cjs/components/dialog/dialog.js +5 -3
  26. package/cjs/components/modal/modal.d.ts +1 -0
  27. package/cjs/components/modal/modal.js +5 -3
  28. package/cjs/components/picker/picker.js +3 -2
  29. package/cjs/components/picker-view/column.d.ts +4 -3
  30. package/cjs/components/picker-view/column.js +23 -10
  31. package/cjs/components/picker-view/picker-view.css +1 -0
  32. package/cjs/components/picker-view/picker-view.js +23 -17
  33. package/cjs/components/progress-bar/progress-bar.css +1 -0
  34. package/cjs/components/virtual-input/virtual-input.js +1 -3
  35. package/es/components/dialog/dialog.d.ts +1 -0
  36. package/es/components/dialog/dialog.js +5 -3
  37. package/es/components/modal/modal.d.ts +1 -0
  38. package/es/components/modal/modal.js +5 -3
  39. package/es/components/picker/picker.js +3 -2
  40. package/es/components/picker-view/column.d.ts +4 -3
  41. package/es/components/picker-view/column.js +21 -9
  42. package/es/components/picker-view/picker-view.css +1 -0
  43. package/es/components/picker-view/picker-view.js +24 -18
  44. package/es/components/progress-bar/progress-bar.css +1 -0
  45. package/es/components/virtual-input/virtual-input.js +1 -3
  46. package/package.json +2 -2
  47. package/umd/antd-mobile.js +1 -1
  48. package/2x/cjs/utils/memo-with-event-marks.d.ts +0 -2
  49. package/2x/cjs/utils/memo-with-event-marks.js +0 -23
  50. package/2x/es/utils/memo-with-event-marks.d.ts +0 -2
  51. package/2x/es/utils/memo-with-event-marks.js +0 -15
  52. package/cjs/utils/memo-with-event-marks.d.ts +0 -2
  53. package/cjs/utils/memo-with-event-marks.js +0 -23
  54. package/es/utils/memo-with-event-marks.d.ts +0 -2
  55. package/es/utils/memo-with-event-marks.js +0 -15
@@ -1,2 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- export declare function memoWithEventMarks<P extends object>(Component: FunctionComponent<P>, eventProps: (keyof P)[]): import("react").NamedExoticComponent<P>;
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.memoWithEventMarks = memoWithEventMarks;
7
-
8
- var _react = require("react");
9
-
10
- function memoWithEventMarks(Component, eventProps) {
11
- return /*#__PURE__*/(0, _react.memo)(Component, function (prevProps, nextProps) {
12
- for (var k in nextProps) {
13
- var key = k;
14
- if (eventProps.includes(key)) continue;
15
-
16
- if (prevProps[key] !== nextProps[key]) {
17
- return false;
18
- }
19
- }
20
-
21
- return true;
22
- });
23
- }
@@ -1,2 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- export declare function memoWithEventMarks<P extends object>(Component: FunctionComponent<P>, eventProps: (keyof P)[]): import("react").NamedExoticComponent<P>;
@@ -1,15 +0,0 @@
1
- import { memo } from 'react';
2
- export function memoWithEventMarks(Component, eventProps) {
3
- return /*#__PURE__*/memo(Component, function (prevProps, nextProps) {
4
- for (var k in nextProps) {
5
- var key = k;
6
- if (eventProps.includes(key)) continue;
7
-
8
- if (prevProps[key] !== nextProps[key]) {
9
- return false;
10
- }
11
- }
12
-
13
- return true;
14
- });
15
- }
@@ -1,2 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- export declare function memoWithEventMarks<P extends object>(Component: FunctionComponent<P>, eventProps: (keyof P)[]): import("react").NamedExoticComponent<P>;
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.memoWithEventMarks = memoWithEventMarks;
7
-
8
- var _react = require("react");
9
-
10
- function memoWithEventMarks(Component, eventProps) {
11
- return /*#__PURE__*/(0, _react.memo)(Component, function (prevProps, nextProps) {
12
- for (var k in nextProps) {
13
- var key = k;
14
- if (eventProps.includes(key)) continue;
15
-
16
- if (prevProps[key] !== nextProps[key]) {
17
- return false;
18
- }
19
- }
20
-
21
- return true;
22
- });
23
- }
@@ -1,2 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- export declare function memoWithEventMarks<P extends object>(Component: FunctionComponent<P>, eventProps: (keyof P)[]): import("react").NamedExoticComponent<P>;
@@ -1,15 +0,0 @@
1
- import { memo } from 'react';
2
- export function memoWithEventMarks(Component, eventProps) {
3
- return /*#__PURE__*/memo(Component, function (prevProps, nextProps) {
4
- for (var k in nextProps) {
5
- var key = k;
6
- if (eventProps.includes(key)) continue;
7
-
8
- if (prevProps[key] !== nextProps[key]) {
9
- return false;
10
- }
11
- }
12
-
13
- return true;
14
- });
15
- }