assui 3.1.83 → 3.1.85

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 (112) hide show
  1. package/es/a-select/index.js +3 -9
  2. package/es/button-drawer/index.js +3 -9
  3. package/es/button-modal/index.js +3 -9
  4. package/es/client-only/useClientOnly.js +1 -3
  5. package/es/color-select/index.js +2 -6
  6. package/es/complex-val-select/index.js +5 -9
  7. package/es/condition-input/index.js +3 -9
  8. package/es/condition-input/parse2RegexOption.js +1 -3
  9. package/es/condition-select-input/index.js +2 -6
  10. package/es/copy-to-clipboard/index.js +2 -6
  11. package/es/count-up/index.d.ts +4 -0
  12. package/es/count-up/index.js +3 -0
  13. package/es/count-up/style/index.d.ts +0 -0
  14. package/es/count-up/style/index.js +0 -0
  15. package/es/flex/index.js +2 -6
  16. package/es/flex/utils/index.js +1 -3
  17. package/es/highlight-textarea/extractSpansOfClasses.js +1 -3
  18. package/es/highlight-textarea/getRanges.js +1 -3
  19. package/es/highlight-textarea/index.js +3 -9
  20. package/es/img-crop/EasyCrop.js +3 -9
  21. package/es/img-crop/getCroppedImg.js +49 -51
  22. package/es/img-crop/index.js +52 -60
  23. package/es/index.d.ts +2 -0
  24. package/es/index.js +2 -1
  25. package/es/json-editor/index.js +2 -6
  26. package/es/keep-tab/index.js +3 -9
  27. package/es/label-auto-complete/index.js +2 -6
  28. package/es/label-condition-input/index.js +2 -6
  29. package/es/label-condition-select-input/index.js +2 -6
  30. package/es/label-customize-range-picker/defaultRadioList.js +1 -3
  31. package/es/label-customize-range-picker/index.js +3 -9
  32. package/es/label-customize-range-picker/utils/index.js +1 -3
  33. package/es/label-date-picker/index.js +2 -6
  34. package/es/label-input/index.js +1 -3
  35. package/es/label-number-input/index.js +2 -6
  36. package/es/label-range-number/index.js +2 -6
  37. package/es/label-range-picker/index.js +2 -6
  38. package/es/label-select/index.js +2 -6
  39. package/es/label-text-area/index.js +3 -9
  40. package/es/label-tree-select/index.js +2 -6
  41. package/es/multipart-upload/index.js +6 -12
  42. package/es/multipart-upload/parse2RegexOption.js +1 -3
  43. package/es/number-format-input/index.js +2 -6
  44. package/es/number-input/index.js +3 -9
  45. package/es/rc-echart/core.js +5 -9
  46. package/es/rc-echart/index.js +1 -3
  47. package/es/rc-qrcode/index.js +1 -3
  48. package/es/rc-qrcode/useQrcode.js +1 -3
  49. package/es/rich-text-editor/index.js +2 -6
  50. package/es/single-img-upload/index.js +52 -60
  51. package/es/split-pane/index.js +1 -3
  52. package/es/step-number-input/index.js +3 -9
  53. package/es/text-area/index.js +3 -9
  54. package/es/text-input/index.js +3 -9
  55. package/lib/a-select/index.js +3 -9
  56. package/lib/beautiful-dnd/index.js +1 -3
  57. package/lib/button-drawer/index.js +4 -12
  58. package/lib/button-modal/index.js +4 -12
  59. package/lib/client-only/useClientOnly.js +1 -3
  60. package/lib/color-select/index.js +3 -9
  61. package/lib/complex-val-select/index.js +6 -12
  62. package/lib/condition-input/index.js +4 -12
  63. package/lib/condition-input/parse2RegexOption.js +1 -3
  64. package/lib/condition-select-input/index.js +3 -9
  65. package/lib/copy-to-clipboard/index.js +3 -9
  66. package/lib/count-up/index.d.ts +4 -0
  67. package/lib/count-up/index.js +45 -0
  68. package/lib/count-up/style/index.d.ts +0 -0
  69. package/lib/count-up/style/index.js +0 -0
  70. package/lib/flex/index.js +2 -6
  71. package/lib/flex/utils/index.js +1 -3
  72. package/lib/highlight-textarea/extractSpansOfClasses.js +1 -3
  73. package/lib/highlight-textarea/getRanges.js +1 -3
  74. package/lib/highlight-textarea/index.js +4 -12
  75. package/lib/img-crop/EasyCrop.js +4 -12
  76. package/lib/img-crop/getCroppedImg.js +49 -51
  77. package/lib/img-crop/index.js +53 -63
  78. package/lib/index.d.ts +2 -0
  79. package/lib/index.js +8 -1
  80. package/lib/json-editor/index.js +3 -9
  81. package/lib/keep-tab/index.js +4 -12
  82. package/lib/label-auto-complete/index.js +2 -6
  83. package/lib/label-condition-input/index.js +2 -6
  84. package/lib/label-condition-select-input/index.js +3 -9
  85. package/lib/label-customize-range-picker/defaultRadioList.js +2 -6
  86. package/lib/label-customize-range-picker/index.js +4 -12
  87. package/lib/label-customize-range-picker/utils/index.js +1 -3
  88. package/lib/label-date-picker/index.js +2 -6
  89. package/lib/label-input/index.js +1 -3
  90. package/lib/label-number-input/index.js +2 -6
  91. package/lib/label-range-number/index.js +2 -6
  92. package/lib/label-range-picker/index.js +2 -6
  93. package/lib/label-select/index.js +2 -6
  94. package/lib/label-text-area/index.js +3 -9
  95. package/lib/label-tree-select/index.js +2 -6
  96. package/lib/multipart-upload/index.js +7 -15
  97. package/lib/multipart-upload/parse2RegexOption.js +1 -3
  98. package/lib/number-format-input/index.js +2 -6
  99. package/lib/number-input/index.js +4 -12
  100. package/lib/rc-echart/core.js +6 -12
  101. package/lib/rc-echart/index.js +2 -6
  102. package/lib/rc-qrcode/index.js +2 -6
  103. package/lib/rc-qrcode/useQrcode.js +1 -3
  104. package/lib/rc-transition-group/index.js +1 -3
  105. package/lib/rich-text-editor/index.js +2 -6
  106. package/lib/single-img-upload/index.js +53 -63
  107. package/lib/sortable-hoc/index.js +1 -3
  108. package/lib/split-pane/index.js +1 -3
  109. package/lib/step-number-input/index.js +4 -12
  110. package/lib/text-area/index.js +4 -12
  111. package/lib/text-input/index.js +3 -9
  112. package/package.json +4 -3
package/es/index.js CHANGED
@@ -42,4 +42,5 @@ export { default as Resizable } from './resizable';
42
42
  export { default as Flex } from './flex';
43
43
  export { default as LabelConditionSelectInput } from './label-condition-select-input';
44
44
  export { default as MultipartUpload } from './multipart-upload';
45
- export { default as ComplexValSelect } from './complex-val-select';
45
+ export { default as ComplexValSelect } from './complex-val-select';
46
+ export { default as CountUp } from './count-up';
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -18,9 +16,7 @@ var __read = this && this.__read || function (o, n) {
18
16
  ar = [],
19
17
  e;
20
18
  try {
21
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
22
- ar.push(r.value);
23
- }
19
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
24
20
  } catch (error) {
25
21
  e = {
26
22
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -12,9 +10,7 @@ var __assign = this && this.__assign || function () {
12
10
  };
13
11
  var __rest = this && this.__rest || function (s, e) {
14
12
  var t = {};
15
- for (var p in s) {
16
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
17
- }
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
18
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
20
16
  }
@@ -28,9 +24,7 @@ var __read = this && this.__read || function (o, n) {
28
24
  ar = [],
29
25
  e;
30
26
  try {
31
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
32
- ar.push(r.value);
33
- }
27
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
34
28
  } catch (error) {
35
29
  e = {
36
30
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -18,9 +16,7 @@ var __read = this && this.__read || function (o, n) {
18
16
  ar = [],
19
17
  e;
20
18
  try {
21
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
22
- ar.push(r.value);
23
- }
19
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
24
20
  } catch (error) {
25
21
  e = {
26
22
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -18,9 +16,7 @@ var __read = this && this.__read || function (o, n) {
18
16
  ar = [],
19
17
  e;
20
18
  try {
21
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
22
- ar.push(r.value);
23
- }
19
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
24
20
  } catch (error) {
25
21
  e = {
26
22
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -18,9 +16,7 @@ var __read = this && this.__read || function (o, n) {
18
16
  ar = [],
19
17
  e;
20
18
  try {
21
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
22
- ar.push(r.value);
23
- }
19
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
24
20
  } catch (error) {
25
21
  e = {
26
22
  error: error
@@ -6,9 +6,7 @@ var __read = this && this.__read || function (o, n) {
6
6
  ar = [],
7
7
  e;
8
8
  try {
9
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
10
- ar.push(r.value);
11
- }
9
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
12
10
  } catch (error) {
13
11
  e = {
14
12
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -12,9 +10,7 @@ var __assign = this && this.__assign || function () {
12
10
  };
13
11
  var __rest = this && this.__rest || function (s, e) {
14
12
  var t = {};
15
- for (var p in s) {
16
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
17
- }
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
18
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
20
16
  }
@@ -28,9 +24,7 @@ var __read = this && this.__read || function (o, n) {
28
24
  ar = [],
29
25
  e;
30
26
  try {
31
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
32
- ar.push(r.value);
33
- }
27
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
34
28
  } catch (error) {
35
29
  e = {
36
30
  error: error
@@ -6,9 +6,7 @@ var __read = this && this.__read || function (o, n) {
6
6
  ar = [],
7
7
  e;
8
8
  try {
9
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
10
- ar.push(r.value);
11
- }
9
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
12
10
  } catch (error) {
13
11
  e = {
14
12
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -18,9 +16,7 @@ var __read = this && this.__read || function (o, n) {
18
16
  ar = [],
19
17
  e;
20
18
  try {
21
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
22
- ar.push(r.value);
23
- }
19
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
24
20
  } catch (error) {
25
21
  e = {
26
22
  error: error
@@ -6,9 +6,7 @@ var __read = this && this.__read || function (o, n) {
6
6
  ar = [],
7
7
  e;
8
8
  try {
9
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
10
- ar.push(r.value);
11
- }
9
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
12
10
  } catch (error) {
13
11
  e = {
14
12
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -18,9 +16,7 @@ var __read = this && this.__read || function (o, n) {
18
16
  ar = [],
19
17
  e;
20
18
  try {
21
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
22
- ar.push(r.value);
23
- }
19
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
24
20
  } catch (error) {
25
21
  e = {
26
22
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -18,9 +16,7 @@ var __read = this && this.__read || function (o, n) {
18
16
  ar = [],
19
17
  e;
20
18
  try {
21
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
22
- ar.push(r.value);
23
- }
19
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
24
20
  } catch (error) {
25
21
  e = {
26
22
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -18,9 +16,7 @@ var __read = this && this.__read || function (o, n) {
18
16
  ar = [],
19
17
  e;
20
18
  try {
21
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
22
- ar.push(r.value);
23
- }
19
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
24
20
  } catch (error) {
25
21
  e = {
26
22
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -18,9 +16,7 @@ var __read = this && this.__read || function (o, n) {
18
16
  ar = [],
19
17
  e;
20
18
  try {
21
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
22
- ar.push(r.value);
23
- }
19
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
24
20
  } catch (error) {
25
21
  e = {
26
22
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -12,9 +10,7 @@ var __assign = this && this.__assign || function () {
12
10
  };
13
11
  var __rest = this && this.__rest || function (s, e) {
14
12
  var t = {};
15
- for (var p in s) {
16
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
17
- }
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
18
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
20
16
  }
@@ -28,9 +24,7 @@ var __read = this && this.__read || function (o, n) {
28
24
  ar = [],
29
25
  e;
30
26
  try {
31
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
32
- ar.push(r.value);
33
- }
27
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
34
28
  } catch (error) {
35
29
  e = {
36
30
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -18,9 +16,7 @@ var __read = this && this.__read || function (o, n) {
18
16
  ar = [],
19
17
  e;
20
18
  try {
21
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
22
- ar.push(r.value);
23
- }
19
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
24
20
  } catch (error) {
25
21
  e = {
26
22
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -12,9 +10,7 @@ var __assign = this && this.__assign || function () {
12
10
  };
13
11
  var __rest = this && this.__rest || function (s, e) {
14
12
  var t = {};
15
- for (var p in s) {
16
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
17
- }
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
18
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
20
16
  }
@@ -28,9 +24,7 @@ var __read = this && this.__read || function (o, n) {
28
24
  ar = [],
29
25
  e;
30
26
  try {
31
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
32
- ar.push(r.value);
33
- }
27
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
34
28
  } catch (error) {
35
29
  e = {
36
30
  error: error
@@ -129,7 +123,7 @@ var MultipartUpload = function MultipartUpload(props) {
129
123
  setUploadPercent(currentProgressNumber);
130
124
  }
131
125
  };
132
- var uploadNextChunk = function uploadNextChunk() {
126
+ var _uploadNextChunk = function uploadNextChunk() {
133
127
  /** 第二步 获取url 进行分片上传 */
134
128
  if (fileRef.current) {
135
129
  var resultUrl = getInProgressUploadUrl({
@@ -145,7 +139,7 @@ var MultipartUpload = function MultipartUpload(props) {
145
139
  uploadList.push(res);
146
140
  currentChunk += 1;
147
141
  if (currentChunk < totalChunks) {
148
- uploadNextChunk();
142
+ _uploadNextChunk();
149
143
  } else {
150
144
  /** 分片上传完成 进行文件合并 上传完成 */
151
145
  completeRequest({
@@ -170,7 +164,7 @@ var MultipartUpload = function MultipartUpload(props) {
170
164
  fileName: fileNameRef.current
171
165
  }).then(function (id) {
172
166
  uploadIdRef.current = id;
173
- uploadNextChunk();
167
+ _uploadNextChunk();
174
168
  });
175
169
  }
176
170
  };
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -12,9 +10,7 @@ var __assign = this && this.__assign || function () {
12
10
  };
13
11
  var __rest = this && this.__rest || function (s, e) {
14
12
  var t = {};
15
- for (var p in s) {
16
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
17
- }
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
18
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
20
16
  }
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -12,9 +10,7 @@ var __assign = this && this.__assign || function () {
12
10
  };
13
11
  var __rest = this && this.__rest || function (s, e) {
14
12
  var t = {};
15
- for (var p in s) {
16
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
17
- }
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
18
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
20
16
  }
@@ -28,9 +24,7 @@ var __read = this && this.__read || function (o, n) {
28
24
  ar = [],
29
25
  e;
30
26
  try {
31
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
32
- ar.push(r.value);
33
- }
27
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
34
28
  } catch (error) {
35
29
  e = {
36
30
  error: error
@@ -4,7 +4,6 @@ import React, { useRef, useEffect } from 'react';
4
4
  import useMount from "ahooks/es/useMount";
5
5
  import useUpdateEffect from "ahooks/es/useUpdateEffect";
6
6
  import classNames from 'classnames';
7
- import ResizeObserver from 'resize-observer-polyfill';
8
7
  var initEmptyObject = {};
9
8
  var ReactEchartCore = function ReactEchartCore(props) {
10
9
  var _a = props.className,
@@ -43,6 +42,7 @@ var ReactEchartCore = function ReactEchartCore(props) {
43
42
  };
44
43
  var renderEchartDom = function renderEchartDom() {
45
44
  if (chartRef.current) {
45
+ console.log('option', option);
46
46
  chartRef.current.setOption(option, notMerge, lazyUpdate);
47
47
  }
48
48
  };
@@ -74,16 +74,12 @@ var ReactEchartCore = function ReactEchartCore(props) {
74
74
  chartRef.current.resize();
75
75
  }
76
76
  };
77
+ // 页面卸载,销毁监听
77
78
  useEffect(function () {
78
- var resizeObserver = new ResizeObserver(function () {
79
- resizeChart();
80
- console.log('ddd');
81
- });
82
- if (chartDomRef.current) {
83
- resizeObserver.observe(chartDomRef.current);
84
- }
79
+ // 监听echartsResize函数,实现图表自适应
80
+ window.addEventListener('resize', resizeChart);
85
81
  return function () {
86
- resizeObserver.disconnect();
82
+ window.removeEventListener('resize', resizeChart);
87
83
  };
88
84
  }, []);
89
85
  useUpdateEffect(function () {
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -6,9 +6,7 @@ var __read = this && this.__read || function (o, n) {
6
6
  ar = [],
7
7
  e;
8
8
  try {
9
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
10
- ar.push(r.value);
11
- }
9
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
12
10
  } catch (error) {
13
11
  e = {
14
12
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -12,9 +10,7 @@ var __assign = this && this.__assign || function () {
12
10
  };
13
11
  var __rest = this && this.__rest || function (s, e) {
14
12
  var t = {};
15
- for (var p in s) {
16
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
17
- }
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
18
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
20
16
  }