@fle-ui/plus-address-selection 1.0.3 → 1.0.4
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.
- package/es/index.js +9 -3
- package/lib/index.js +9 -3
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -205,12 +205,18 @@ var AddressSelection = function AddressSelection(props) {
|
|
|
205
205
|
while (1) switch (_context5.prev = _context5.next) {
|
|
206
206
|
case 0:
|
|
207
207
|
targetOption = selectedOptions[selectedOptions.length - 1];
|
|
208
|
+
if (!(stateValue === null || stateValue === void 0 ? void 0 : stateValue.includes(targetOption.value))) {
|
|
209
|
+
_context5.next = 3;
|
|
210
|
+
break;
|
|
211
|
+
}
|
|
212
|
+
return _context5.abrupt("return");
|
|
213
|
+
case 3:
|
|
208
214
|
targetOption.loading = true;
|
|
209
|
-
_context5.next =
|
|
215
|
+
_context5.next = 6;
|
|
210
216
|
return getAddressAPI({
|
|
211
217
|
parentCode: targetOption.value
|
|
212
218
|
});
|
|
213
|
-
case
|
|
219
|
+
case 6:
|
|
214
220
|
data = _context5.sent;
|
|
215
221
|
targetOption.loading = false;
|
|
216
222
|
if (data.length) {
|
|
@@ -220,7 +226,7 @@ var AddressSelection = function AddressSelection(props) {
|
|
|
220
226
|
}
|
|
221
227
|
setIsLoad(true);
|
|
222
228
|
setAddressList(_toConsumableArray(addressList));
|
|
223
|
-
case
|
|
229
|
+
case 11:
|
|
224
230
|
case "end":
|
|
225
231
|
return _context5.stop();
|
|
226
232
|
}
|
package/lib/index.js
CHANGED
|
@@ -213,12 +213,18 @@ var AddressSelection = function AddressSelection(props) {
|
|
|
213
213
|
while (1) switch (_context5.prev = _context5.next) {
|
|
214
214
|
case 0:
|
|
215
215
|
targetOption = selectedOptions[selectedOptions.length - 1];
|
|
216
|
+
if (!(stateValue === null || stateValue === void 0 ? void 0 : stateValue.includes(targetOption.value))) {
|
|
217
|
+
_context5.next = 3;
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
return _context5.abrupt("return");
|
|
221
|
+
case 3:
|
|
216
222
|
targetOption.loading = true;
|
|
217
|
-
_context5.next =
|
|
223
|
+
_context5.next = 6;
|
|
218
224
|
return getAddressAPI({
|
|
219
225
|
parentCode: targetOption.value
|
|
220
226
|
});
|
|
221
|
-
case
|
|
227
|
+
case 6:
|
|
222
228
|
data = _context5.sent;
|
|
223
229
|
targetOption.loading = false;
|
|
224
230
|
if (data.length) {
|
|
@@ -228,7 +234,7 @@ var AddressSelection = function AddressSelection(props) {
|
|
|
228
234
|
}
|
|
229
235
|
setIsLoad(true);
|
|
230
236
|
setAddressList(_toConsumableArray(addressList));
|
|
231
|
-
case
|
|
237
|
+
case 11:
|
|
232
238
|
case "end":
|
|
233
239
|
return _context5.stop();
|
|
234
240
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fle-ui/plus-address-selection",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "@fle-ui/plus-address-selection",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/js-cookie": "^3.0.0"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "e5c22e59ebc5a0af73f90323e8ed3e825b7a5035"
|
|
45
45
|
}
|