@fle-ui/plus-address-selection 1.0.14 → 1.0.15
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 +4 -9
- package/lib/index.js +4 -9
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -200,18 +200,12 @@ var AddressSelection = function AddressSelection(props) {
|
|
|
200
200
|
while (1) switch (_context4.prev = _context4.next) {
|
|
201
201
|
case 0:
|
|
202
202
|
targetOption = selectedOptions[selectedOptions.length - 1];
|
|
203
|
-
if (!(stateValue === null || stateValue === void 0 ? void 0 : stateValue.includes(targetOption.value))) {
|
|
204
|
-
_context4.next = 3;
|
|
205
|
-
break;
|
|
206
|
-
}
|
|
207
|
-
return _context4.abrupt("return");
|
|
208
|
-
case 3:
|
|
209
203
|
targetOption.loading = true;
|
|
210
|
-
_context4.next =
|
|
204
|
+
_context4.next = 4;
|
|
211
205
|
return getAddress({
|
|
212
206
|
parentCode: targetOption.value
|
|
213
207
|
});
|
|
214
|
-
case
|
|
208
|
+
case 4:
|
|
215
209
|
data = _context4.sent;
|
|
216
210
|
targetOption.loading = false;
|
|
217
211
|
if (data.length) {
|
|
@@ -221,7 +215,7 @@ var AddressSelection = function AddressSelection(props) {
|
|
|
221
215
|
}
|
|
222
216
|
setIsLoad(true);
|
|
223
217
|
setAddressList(_toConsumableArray(addressList));
|
|
224
|
-
case
|
|
218
|
+
case 9:
|
|
225
219
|
case "end":
|
|
226
220
|
return _context4.stop();
|
|
227
221
|
}
|
|
@@ -233,6 +227,7 @@ var AddressSelection = function AddressSelection(props) {
|
|
|
233
227
|
}();
|
|
234
228
|
var handleChange = function handleChange(info, selectedOptions) {
|
|
235
229
|
var cascaderValue = info || [];
|
|
230
|
+
console.log(cascaderValue, 'cascaderValue');
|
|
236
231
|
if (valueDivision) {
|
|
237
232
|
cascaderValue = cascaderValue.join(valueDivision);
|
|
238
233
|
}
|
package/lib/index.js
CHANGED
|
@@ -208,18 +208,12 @@ var AddressSelection = function AddressSelection(props) {
|
|
|
208
208
|
while (1) switch (_context4.prev = _context4.next) {
|
|
209
209
|
case 0:
|
|
210
210
|
targetOption = selectedOptions[selectedOptions.length - 1];
|
|
211
|
-
if (!(stateValue === null || stateValue === void 0 ? void 0 : stateValue.includes(targetOption.value))) {
|
|
212
|
-
_context4.next = 3;
|
|
213
|
-
break;
|
|
214
|
-
}
|
|
215
|
-
return _context4.abrupt("return");
|
|
216
|
-
case 3:
|
|
217
211
|
targetOption.loading = true;
|
|
218
|
-
_context4.next =
|
|
212
|
+
_context4.next = 4;
|
|
219
213
|
return getAddress({
|
|
220
214
|
parentCode: targetOption.value
|
|
221
215
|
});
|
|
222
|
-
case
|
|
216
|
+
case 4:
|
|
223
217
|
data = _context4.sent;
|
|
224
218
|
targetOption.loading = false;
|
|
225
219
|
if (data.length) {
|
|
@@ -229,7 +223,7 @@ var AddressSelection = function AddressSelection(props) {
|
|
|
229
223
|
}
|
|
230
224
|
setIsLoad(true);
|
|
231
225
|
setAddressList(_toConsumableArray(addressList));
|
|
232
|
-
case
|
|
226
|
+
case 9:
|
|
233
227
|
case "end":
|
|
234
228
|
return _context4.stop();
|
|
235
229
|
}
|
|
@@ -241,6 +235,7 @@ var AddressSelection = function AddressSelection(props) {
|
|
|
241
235
|
}();
|
|
242
236
|
var handleChange = function handleChange(info, selectedOptions) {
|
|
243
237
|
var cascaderValue = info || [];
|
|
238
|
+
console.log(cascaderValue, 'cascaderValue');
|
|
244
239
|
if (valueDivision) {
|
|
245
240
|
cascaderValue = cascaderValue.join(valueDivision);
|
|
246
241
|
}
|
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.15",
|
|
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": "7a7bd43ac08bdf95ee9040639078b87d121df077"
|
|
45
45
|
}
|