eoss-ui 0.8.51 → 0.8.52
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/lib/eoss-ui.common.js +10 -1
- package/lib/index.js +1 -1
- package/lib/select.js +9 -0
- package/package.json +1 -1
- package/packages/select/src/main.vue +9 -0
- package/src/index.js +1 -1
package/lib/select.js
CHANGED
|
@@ -5072,8 +5072,17 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
|
|
|
5072
5072
|
format: this.format,
|
|
5073
5073
|
data: params
|
|
5074
5074
|
}).then(function (res) {
|
|
5075
|
+
console.log('res', res);
|
|
5075
5076
|
_this4.loading = false;
|
|
5076
5077
|
_this4.canceled = false;
|
|
5078
|
+
if (Array.isArray(res)) {
|
|
5079
|
+
if (_this4.parseData) {
|
|
5080
|
+
_this4.options = _this4.parseData(JSON.parse(JSON.stringify(res)));
|
|
5081
|
+
} else {
|
|
5082
|
+
_this4.options = JSON.parse(JSON.stringify(res));
|
|
5083
|
+
}
|
|
5084
|
+
return;
|
|
5085
|
+
}
|
|
5077
5086
|
if (res.rCode === 0) {
|
|
5078
5087
|
if (_this4.parseData) {
|
|
5079
5088
|
_this4.options = _this4.parseData(JSON.parse(JSON.stringify(res.results)));
|
package/package.json
CHANGED
|
@@ -375,8 +375,17 @@ export default {
|
|
|
375
375
|
data: params
|
|
376
376
|
})
|
|
377
377
|
.then((res) => {
|
|
378
|
+
console.log('res', res);
|
|
378
379
|
this.loading = false;
|
|
379
380
|
this.canceled = false;
|
|
381
|
+
if (Array.isArray(res)) {
|
|
382
|
+
if (this.parseData) {
|
|
383
|
+
this.options = this.parseData(JSON.parse(JSON.stringify(res)));
|
|
384
|
+
} else {
|
|
385
|
+
this.options = JSON.parse(JSON.stringify(res));
|
|
386
|
+
}
|
|
387
|
+
return;
|
|
388
|
+
}
|
|
380
389
|
if (res.rCode === 0) {
|
|
381
390
|
if (this.parseData) {
|
|
382
391
|
this.options = this.parseData(
|