assui 3.2.51 → 3.2.53

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/index.js +2 -6
  10. package/es/condition-select-input/index.js +2 -6
  11. package/es/copy-to-clipboard/index.js +2 -6
  12. package/es/count-down/index.js +1 -3
  13. package/es/flex/index.js +2 -6
  14. package/es/flex/utils/index.js +1 -3
  15. package/es/highlight-textarea/extractSpansOfClasses.js +1 -3
  16. package/es/highlight-textarea/getRanges.js +1 -3
  17. package/es/highlight-textarea/index.js +3 -9
  18. package/es/img-crop/EasyCrop.js +3 -9
  19. package/es/img-crop/getCroppedImg.js +49 -51
  20. package/es/img-crop/index.js +52 -60
  21. package/es/json-editor/index.js +2 -6
  22. package/es/keep-tab/index.js +3 -9
  23. package/es/label-auto-complete/index.js +2 -6
  24. package/es/label-condition-input/index.js +2 -6
  25. package/es/label-condition-select-input/index.js +2 -6
  26. package/es/label-customize-range-picker/defaultRadioList.js +1 -3
  27. package/es/label-customize-range-picker/index.js +3 -9
  28. package/es/label-customize-range-picker/utils/index.js +1 -3
  29. package/es/label-date-picker/index.js +2 -6
  30. package/es/label-input/index.js +1 -3
  31. package/es/label-number-input/index.js +2 -6
  32. package/es/label-range-number/index.js +2 -6
  33. package/es/label-range-picker/index.js +3 -9
  34. package/es/label-select/index.js +2 -6
  35. package/es/label-text-area/index.js +3 -9
  36. package/es/label-tree-select/index.js +2 -6
  37. package/es/multipart-upload/index.js +6 -12
  38. package/es/multipart-upload/parse2RegexOption.js +1 -3
  39. package/es/number-format-input/index.js +2 -6
  40. package/es/number-input/index.js +3 -9
  41. package/es/rc-echart/index.js +1 -3
  42. package/es/rc-qrcode/index.js +1 -3
  43. package/es/rc-qrcode/useQrcode.js +1 -3
  44. package/es/rich-text-editor/index.js +2 -6
  45. package/es/single-img-upload/assets/pdf.png +0 -0
  46. package/es/single-img-upload/index.js +56 -62
  47. package/es/single-img-upload/style/index.css +4 -0
  48. package/es/single-img-upload/style/index.less +5 -0
  49. package/es/split-pane/index.js +1 -3
  50. package/es/step-number-input/index.js +3 -9
  51. package/es/text-area/index.js +3 -9
  52. package/es/text-input/index.js +3 -9
  53. package/lib/a-select/index.js +3 -9
  54. package/lib/beautiful-dnd/index.js +1 -3
  55. package/lib/button-drawer/index.js +4 -12
  56. package/lib/button-modal/index.js +4 -12
  57. package/lib/client-only/useClientOnly.js +1 -3
  58. package/lib/color-select/index.js +3 -9
  59. package/lib/complex-val-select/index.js +6 -12
  60. package/lib/condition-input/index.js +4 -12
  61. package/lib/condition-input/parse2RegexOption.js +1 -3
  62. package/lib/condition-select/index.js +2 -6
  63. package/lib/condition-select-input/index.js +3 -9
  64. package/lib/copy-to-clipboard/index.js +3 -9
  65. package/lib/count-down/index.js +1 -3
  66. package/lib/count-up/index.js +1 -3
  67. package/lib/flex/index.js +2 -6
  68. package/lib/flex/utils/index.js +1 -3
  69. package/lib/highlight-textarea/extractSpansOfClasses.js +1 -3
  70. package/lib/highlight-textarea/getRanges.js +1 -3
  71. package/lib/highlight-textarea/index.js +4 -12
  72. package/lib/img-crop/EasyCrop.js +4 -12
  73. package/lib/img-crop/getCroppedImg.js +49 -51
  74. package/lib/img-crop/index.js +53 -63
  75. package/lib/json-editor/index.js +3 -9
  76. package/lib/keep-tab/index.js +4 -12
  77. package/lib/label-auto-complete/index.js +2 -6
  78. package/lib/label-condition-input/index.js +2 -6
  79. package/lib/label-condition-select-input/index.js +3 -9
  80. package/lib/label-customize-range-picker/defaultRadioList.js +2 -6
  81. package/lib/label-customize-range-picker/index.js +4 -12
  82. package/lib/label-customize-range-picker/utils/index.js +1 -3
  83. package/lib/label-date-picker/index.js +2 -6
  84. package/lib/label-input/index.js +1 -3
  85. package/lib/label-number-input/index.js +2 -6
  86. package/lib/label-range-number/index.js +2 -6
  87. package/lib/label-range-picker/index.js +3 -9
  88. package/lib/label-select/index.js +2 -6
  89. package/lib/label-text-area/index.js +3 -9
  90. package/lib/label-tree-select/index.js +2 -6
  91. package/lib/multipart-upload/index.js +7 -15
  92. package/lib/multipart-upload/parse2RegexOption.js +1 -3
  93. package/lib/number-format-input/index.js +2 -6
  94. package/lib/number-input/index.js +4 -12
  95. package/lib/rc-echart/core.js +1 -3
  96. package/lib/rc-echart/index.js +2 -6
  97. package/lib/rc-qrcode/index.js +2 -6
  98. package/lib/rc-qrcode/useQrcode.js +1 -3
  99. package/lib/rc-transition-group/index.js +1 -3
  100. package/lib/rich-text-editor/index.js +2 -6
  101. package/lib/single-img-upload/assets/pdf.png +0 -0
  102. package/lib/single-img-upload/index.js +57 -65
  103. package/lib/single-img-upload/style/index.css +4 -0
  104. package/lib/single-img-upload/style/index.less +5 -0
  105. package/lib/sortable-hoc/index.js +1 -3
  106. package/lib/split-pane/index.js +1 -3
  107. package/lib/step-number-input/index.js +4 -12
  108. package/lib/text-area/index.js +4 -12
  109. package/lib/text-input/index.js +3 -9
  110. package/package.json +3 -2
  111. package/es/single-img-upload/assets/pdf.svg +0 -16
  112. package/lib/single-img-upload/assets/pdf.svg +0 -16
@@ -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
  }
@@ -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
  };
@@ -61,60 +59,58 @@ var __generator = this && this.__generator || function (thisArg, body) {
61
59
  }
62
60
  function step(op) {
63
61
  if (f) throw new TypeError("Generator is already executing.");
64
- while (g && (g = 0, op[0] && (_ = 0)), _) {
65
- try {
66
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
67
- if (y = 0, t) op = [op[0] & 2, t.value];
68
- switch (op[0]) {
69
- case 0:
70
- case 1:
62
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
63
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
64
+ if (y = 0, t) op = [op[0] & 2, t.value];
65
+ switch (op[0]) {
66
+ case 0:
67
+ case 1:
68
+ t = op;
69
+ break;
70
+ case 4:
71
+ _.label++;
72
+ return {
73
+ value: op[1],
74
+ done: false
75
+ };
76
+ case 5:
77
+ _.label++;
78
+ y = op[1];
79
+ op = [0];
80
+ continue;
81
+ case 7:
82
+ op = _.ops.pop();
83
+ _.trys.pop();
84
+ continue;
85
+ default:
86
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
87
+ _ = 0;
88
+ continue;
89
+ }
90
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
91
+ _.label = op[1];
92
+ break;
93
+ }
94
+ if (op[0] === 6 && _.label < t[1]) {
95
+ _.label = t[1];
71
96
  t = op;
72
97
  break;
73
- case 4:
74
- _.label++;
75
- return {
76
- value: op[1],
77
- done: false
78
- };
79
- case 5:
80
- _.label++;
81
- y = op[1];
82
- op = [0];
83
- continue;
84
- case 7:
85
- op = _.ops.pop();
86
- _.trys.pop();
87
- continue;
88
- default:
89
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
90
- _ = 0;
91
- continue;
92
- }
93
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
94
- _.label = op[1];
95
- break;
96
- }
97
- if (op[0] === 6 && _.label < t[1]) {
98
- _.label = t[1];
99
- t = op;
100
- break;
101
- }
102
- if (t && _.label < t[2]) {
103
- _.label = t[2];
104
- _.ops.push(op);
105
- break;
106
- }
107
- if (t[2]) _.ops.pop();
108
- _.trys.pop();
109
- continue;
110
- }
111
- op = body.call(thisArg, _);
112
- } catch (e) {
113
- op = [6, e];
114
- y = 0;
115
- } finally {
116
- f = t = 0;
98
+ }
99
+ if (t && _.label < t[2]) {
100
+ _.label = t[2];
101
+ _.ops.push(op);
102
+ break;
103
+ }
104
+ if (t[2]) _.ops.pop();
105
+ _.trys.pop();
106
+ continue;
117
107
  }
108
+ op = body.call(thisArg, _);
109
+ } catch (e) {
110
+ op = [6, e];
111
+ y = 0;
112
+ } finally {
113
+ f = t = 0;
118
114
  }
119
115
  if (op[0] & 5) throw op[1];
120
116
  return {
@@ -125,9 +121,7 @@ var __generator = this && this.__generator || function (thisArg, body) {
125
121
  };
126
122
  var __rest = this && this.__rest || function (s, e) {
127
123
  var t = {};
128
- for (var p in s) {
129
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
130
- }
124
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
131
125
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
132
126
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
133
127
  }
@@ -141,9 +135,7 @@ var __read = this && this.__read || function (o, n) {
141
135
  ar = [],
142
136
  e;
143
137
  try {
144
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
145
- ar.push(r.value);
146
- }
138
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
147
139
  } catch (error) {
148
140
  e = {
149
141
  error: error
@@ -176,7 +168,7 @@ import classNames from 'classnames';
176
168
  import CloseOutlined from "a-icons/es/CloseOutlined";
177
169
  import isObject from 'lodash/isObject';
178
170
  import isFunction from 'lodash/isFunction';
179
- import { ReactComponent as PDFSVG } from './assets/pdf.svg';
171
+ import pdfpng from './assets/pdf.png';
180
172
  var getLocalImgURL = function getLocalImgURL(file) {
181
173
  var URL = window.URL || window.webkitURL;
182
174
  var imgURL = URL.createObjectURL(file);
@@ -329,7 +321,9 @@ var SingleImgUpload = function SingleImgUpload(props) {
329
321
  onClick: function onClick() {
330
322
  return window.open(fileUrl || value, '_blank');
331
323
  }
332
- }, /*#__PURE__*/React.createElement(PDFSVG, null));
324
+ }, /*#__PURE__*/React.createElement("img", {
325
+ src: pdfpng
326
+ }));
333
327
  };
334
328
  return /*#__PURE__*/React.createElement("div", {
335
329
  className: cls
@@ -1275,6 +1275,10 @@ html {
1275
1275
  justify-content: center;
1276
1276
  cursor: pointer;
1277
1277
  }
1278
+ .as-img-upload .as-img-upload-pdf-preview img {
1279
+ width: 40px;
1280
+ height: 40px;
1281
+ }
1278
1282
  .as-img-upload-close-button {
1279
1283
  position: absolute;
1280
1284
  top: 0;
@@ -48,6 +48,11 @@
48
48
  align-items: center;
49
49
  justify-content: center;
50
50
  cursor: pointer;
51
+
52
+ img {
53
+ width: 40px;
54
+ height: 40px;
55
+ }
51
56
  }
52
57
 
53
58
  &-close-button {
@@ -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
  }
@@ -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
  };
@@ -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
  };
@@ -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,9 +4,7 @@ var __assign = this && this.__assign || function () {
4
4
  __assign = Object.assign || function (t) {
5
5
  for (var s, i = 1, n = arguments.length; i < n; i++) {
6
6
  s = arguments[i];
7
- for (var p in s) {
8
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9
- }
7
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
10
8
  }
11
9
  return t;
12
10
  };
@@ -14,9 +12,7 @@ var __assign = this && this.__assign || function () {
14
12
  };
15
13
  var __rest = this && this.__rest || function (s, e) {
16
14
  var t = {};
17
- for (var p in s) {
18
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
19
- }
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
20
16
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
21
17
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
22
18
  }
@@ -30,9 +26,7 @@ var __read = this && this.__read || function (o, n) {
30
26
  ar = [],
31
27
  e;
32
28
  try {
33
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
34
- ar.push(r.value);
35
- }
29
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
36
30
  } catch (error) {
37
31
  e = {
38
32
  error: error
@@ -27,9 +27,7 @@ var __setModuleDefault = this && this.__setModuleDefault || (Object.create ? fun
27
27
  var __importStar = this && this.__importStar || function (mod) {
28
28
  if (mod && mod.__esModule) return mod;
29
29
  var result = {};
30
- if (mod != null) for (var k in mod) {
31
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
32
- }
30
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
31
  __setModuleDefault(result, mod);
34
32
  return result;
35
33
  };
@@ -4,9 +4,7 @@ var __assign = this && this.__assign || function () {
4
4
  __assign = Object.assign || function (t) {
5
5
  for (var s, i = 1, n = arguments.length; i < n; i++) {
6
6
  s = arguments[i];
7
- for (var p in s) {
8
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9
- }
7
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
10
8
  }
11
9
  return t;
12
10
  };
@@ -39,17 +37,13 @@ var __setModuleDefault = this && this.__setModuleDefault || (Object.create ? fun
39
37
  var __importStar = this && this.__importStar || function (mod) {
40
38
  if (mod && mod.__esModule) return mod;
41
39
  var result = {};
42
- if (mod != null) for (var k in mod) {
43
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
44
- }
40
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
45
41
  __setModuleDefault(result, mod);
46
42
  return result;
47
43
  };
48
44
  var __rest = this && this.__rest || function (s, e) {
49
45
  var t = {};
50
- for (var p in s) {
51
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
52
- }
46
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
53
47
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
54
48
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
55
49
  }
@@ -63,9 +57,7 @@ var __read = this && this.__read || function (o, n) {
63
57
  ar = [],
64
58
  e;
65
59
  try {
66
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
67
- ar.push(r.value);
68
- }
60
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
69
61
  } catch (error) {
70
62
  e = {
71
63
  error: error
@@ -4,9 +4,7 @@ var __assign = this && this.__assign || function () {
4
4
  __assign = Object.assign || function (t) {
5
5
  for (var s, i = 1, n = arguments.length; i < n; i++) {
6
6
  s = arguments[i];
7
- for (var p in s) {
8
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9
- }
7
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
10
8
  }
11
9
  return t;
12
10
  };
@@ -39,17 +37,13 @@ var __setModuleDefault = this && this.__setModuleDefault || (Object.create ? fun
39
37
  var __importStar = this && this.__importStar || function (mod) {
40
38
  if (mod && mod.__esModule) return mod;
41
39
  var result = {};
42
- if (mod != null) for (var k in mod) {
43
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
44
- }
40
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
45
41
  __setModuleDefault(result, mod);
46
42
  return result;
47
43
  };
48
44
  var __rest = this && this.__rest || function (s, e) {
49
45
  var t = {};
50
- for (var p in s) {
51
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
52
- }
46
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
53
47
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
54
48
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
55
49
  }
@@ -63,9 +57,7 @@ var __read = this && this.__read || function (o, n) {
63
57
  ar = [],
64
58
  e;
65
59
  try {
66
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
67
- ar.push(r.value);
68
- }
60
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
69
61
  } catch (error) {
70
62
  e = {
71
63
  error: error
@@ -8,9 +8,7 @@ var __read = this && this.__read || function (o, n) {
8
8
  ar = [],
9
9
  e;
10
10
  try {
11
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
12
- ar.push(r.value);
13
- }
11
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
14
12
  } catch (error) {
15
13
  e = {
16
14
  error: error
@@ -4,9 +4,7 @@ var __assign = this && this.__assign || function () {
4
4
  __assign = Object.assign || function (t) {
5
5
  for (var s, i = 1, n = arguments.length; i < n; i++) {
6
6
  s = arguments[i];
7
- for (var p in s) {
8
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9
- }
7
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
10
8
  }
11
9
  return t;
12
10
  };
@@ -39,9 +37,7 @@ var __setModuleDefault = this && this.__setModuleDefault || (Object.create ? fun
39
37
  var __importStar = this && this.__importStar || function (mod) {
40
38
  if (mod && mod.__esModule) return mod;
41
39
  var result = {};
42
- if (mod != null) for (var k in mod) {
43
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
44
- }
40
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
45
41
  __setModuleDefault(result, mod);
46
42
  return result;
47
43
  };
@@ -53,9 +49,7 @@ var __read = this && this.__read || function (o, n) {
53
49
  ar = [],
54
50
  e;
55
51
  try {
56
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
57
- ar.push(r.value);
58
- }
52
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
59
53
  } catch (error) {
60
54
  e = {
61
55
  error: error
@@ -4,9 +4,7 @@ var __assign = this && this.__assign || function () {
4
4
  __assign = Object.assign || function (t) {
5
5
  for (var s, i = 1, n = arguments.length; i < n; i++) {
6
6
  s = arguments[i];
7
- for (var p in s) {
8
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9
- }
7
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
10
8
  }
11
9
  return t;
12
10
  };
@@ -39,9 +37,7 @@ var __setModuleDefault = this && this.__setModuleDefault || (Object.create ? fun
39
37
  var __importStar = this && this.__importStar || function (mod) {
40
38
  if (mod && mod.__esModule) return mod;
41
39
  var result = {};
42
- if (mod != null) for (var k in mod) {
43
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
44
- }
40
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
45
41
  __setModuleDefault(result, mod);
46
42
  return result;
47
43
  };
@@ -53,9 +49,7 @@ var __read = this && this.__read || function (o, n) {
53
49
  ar = [],
54
50
  e;
55
51
  try {
56
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
57
- ar.push(r.value);
58
- }
52
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
59
53
  } catch (error) {
60
54
  e = {
61
55
  error: error
@@ -88,11 +82,11 @@ var select_1 = __importDefault(require("antd/lib/select"));
88
82
  var useControllableValue_1 = __importDefault(require("ahooks/lib/useControllableValue"));
89
83
  var Option = select_1["default"].Option;
90
84
  exports.Option = Option;
91
- var formatOptions = function formatOptions(dateSource) {
85
+ var _formatOptions = function formatOptions(dateSource) {
92
86
  if (dateSource) {
93
87
  var options = dateSource.map(function (item) {
94
88
  var otherProps = item.options ? {
95
- options: formatOptions(item.options)
89
+ options: _formatOptions(item.options)
96
90
  } : {};
97
91
  return __assign(__assign(__assign({}, item), {
98
92
  label: item.label,
@@ -131,7 +125,7 @@ var ComplexValSelect = React.forwardRef(function (props, ref) {
131
125
  });
132
126
  // 判断是否需要将optionValue转为JSON字符串
133
127
  var isReferenceTypeVal = (0, exports.isReferenceTypeOption)(options);
134
- var finalOptions = isReferenceTypeVal ? formatOptions(options) : options;
128
+ var finalOptions = isReferenceTypeVal ? _formatOptions(options) : options;
135
129
  var handleChange = function handleChange(val) {
136
130
  var nextVal = val && isReferenceTypeVal ? JSON.parse(val) : val;
137
131
  setValue(nextVal, options);
@@ -4,9 +4,7 @@ var __assign = this && this.__assign || function () {
4
4
  __assign = Object.assign || function (t) {
5
5
  for (var s, i = 1, n = arguments.length; i < n; i++) {
6
6
  s = arguments[i];
7
- for (var p in s) {
8
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9
- }
7
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
10
8
  }
11
9
  return t;
12
10
  };
@@ -39,17 +37,13 @@ var __setModuleDefault = this && this.__setModuleDefault || (Object.create ? fun
39
37
  var __importStar = this && this.__importStar || function (mod) {
40
38
  if (mod && mod.__esModule) return mod;
41
39
  var result = {};
42
- if (mod != null) for (var k in mod) {
43
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
44
- }
40
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
45
41
  __setModuleDefault(result, mod);
46
42
  return result;
47
43
  };
48
44
  var __rest = this && this.__rest || function (s, e) {
49
45
  var t = {};
50
- for (var p in s) {
51
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
52
- }
46
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
53
47
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
54
48
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
55
49
  }
@@ -63,9 +57,7 @@ var __read = this && this.__read || function (o, n) {
63
57
  ar = [],
64
58
  e;
65
59
  try {
66
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
67
- ar.push(r.value);
68
- }
60
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
69
61
  } catch (error) {
70
62
  e = {
71
63
  error: error
@@ -4,9 +4,7 @@ var __assign = this && this.__assign || function () {
4
4
  __assign = Object.assign || function (t) {
5
5
  for (var s, i = 1, n = arguments.length; i < n; i++) {
6
6
  s = arguments[i];
7
- for (var p in s) {
8
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9
- }
7
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
10
8
  }
11
9
  return t;
12
10
  };
@@ -4,9 +4,7 @@ var __assign = this && this.__assign || function () {
4
4
  __assign = Object.assign || function (t) {
5
5
  for (var s, i = 1, n = arguments.length; i < n; i++) {
6
6
  s = arguments[i];
7
- for (var p in s) {
8
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9
- }
7
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
10
8
  }
11
9
  return t;
12
10
  };
@@ -20,9 +18,7 @@ var __read = this && this.__read || function (o, n) {
20
18
  ar = [],
21
19
  e;
22
20
  try {
23
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
24
- ar.push(r.value);
25
- }
21
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
26
22
  } catch (error) {
27
23
  e = {
28
24
  error: error