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/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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.8.51",
3
+ "version": "0.8.52",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -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(
package/src/index.js CHANGED
@@ -127,7 +127,7 @@ if (typeof window !== 'undefined' && window.Vue) {
127
127
  }
128
128
 
129
129
  export default {
130
- version: '0.8.51',
130
+ version: '0.8.52',
131
131
  install,
132
132
  Archives,
133
133
  Button,