eoss-ui 0.5.69 → 0.5.70

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 (61) hide show
  1. package/lib/button-group.js +34 -36
  2. package/lib/button.js +34 -36
  3. package/lib/checkbox-group.js +70 -56
  4. package/lib/data-table-form.js +37 -39
  5. package/lib/data-table.js +58 -58
  6. package/lib/date-picker.js +34 -36
  7. package/lib/dialog.js +49 -51
  8. package/lib/eoss-ui.common.js +660 -562
  9. package/lib/flow-group.js +34 -36
  10. package/lib/flow-list.js +36 -38
  11. package/lib/flow.js +40 -42
  12. package/lib/form.js +410 -376
  13. package/lib/handle-user.js +36 -38
  14. package/lib/handler.js +34 -36
  15. package/lib/index.js +1 -1
  16. package/lib/input-number.js +34 -36
  17. package/lib/input.js +65 -48
  18. package/lib/layout.js +2 -2
  19. package/lib/login.js +54 -55
  20. package/lib/main.js +39 -41
  21. package/lib/menu.js +4 -3
  22. package/lib/nav.js +34 -36
  23. package/lib/page.js +34 -36
  24. package/lib/player.js +34 -36
  25. package/lib/qr-code.js +34 -36
  26. package/lib/radio-group.js +69 -53
  27. package/lib/retrial-auth.js +34 -36
  28. package/lib/select-ganged.js +122 -106
  29. package/lib/select.js +112 -96
  30. package/lib/selector-panel.js +90 -76
  31. package/lib/selector.js +34 -36
  32. package/lib/sizer.js +36 -38
  33. package/lib/steps.js +60 -44
  34. package/lib/switch.js +34 -36
  35. package/lib/table-form.js +36 -38
  36. package/lib/tabs.js +34 -36
  37. package/lib/tips.js +59 -42
  38. package/lib/tree-group.js +34 -36
  39. package/lib/tree.js +93 -77
  40. package/lib/upload.js +111 -94
  41. package/lib/utils/util.js +34 -36
  42. package/lib/wujie.js +34 -36
  43. package/lib/wxlogin.js +34 -36
  44. package/package.json +2 -2
  45. package/packages/checkbox-group/src/main.vue +7 -1
  46. package/packages/data-table/src/main.vue +3 -1
  47. package/packages/dialog/src/main.vue +2 -3
  48. package/packages/form/src/main.vue +11 -2
  49. package/packages/input/src/main.vue +8 -1
  50. package/packages/login/src/main.vue +15 -11
  51. package/packages/menu/src/main.vue +2 -1
  52. package/packages/radio-group/src/main.vue +7 -1
  53. package/packages/select/src/main.vue +7 -1
  54. package/packages/select-ganged/src/main.vue +7 -1
  55. package/packages/selector-panel/src/main.vue +7 -1
  56. package/packages/steps/src/main.vue +9 -3
  57. package/packages/tips/src/main.vue +8 -1
  58. package/packages/tree/src/main.vue +8 -2
  59. package/packages/upload/src/main.vue +11 -2
  60. package/src/index.js +1 -1
  61. package/src/utils/util.js +34 -34
package/lib/select.js CHANGED
@@ -154,21 +154,17 @@ var JSONbigToString = json_bigint__WEBPACK_IMPORTED_MODULE_3___default()({ store
154
154
  * @param {Array} [encodes] - 需要对参数值进行encodeURIComponent编码的参数值名称
155
155
  **/
156
156
  // 请求
157
- var pendingRequest = new Map();
158
- function getRequestKey(config) {
159
- var method = config.method,
160
- url = config.url,
161
- params = config.params,
162
- data = config.data;
163
-
164
- return [method, url, qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(params), qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data)].join('&');
165
- };
166
- function delPendingRequest(config) {
167
- var requestKey = getRequestKey(config);
168
- if (pendingRequest.has(requestKey)) {
169
- pendingRequest.delete(requestKey);
170
- }
171
- }
157
+ // const pendingRequest = new Map();
158
+ // function getRequestKey(config) {
159
+ // const { method, url, params, data } = config;
160
+ // return [method, url, qs.stringify(params), qs.stringify(data)].join('&');
161
+ // };
162
+ // function delPendingRequest(config) {
163
+ // let requestKey = getRequestKey(config);
164
+ // if (pendingRequest.has(requestKey)) {
165
+ // pendingRequest.delete(requestKey);
166
+ // }
167
+ // }
172
168
  var ajax = function ajax(_ref) {
173
169
  var headers = _ref.headers,
174
170
  method = _ref.method,
@@ -217,30 +213,32 @@ var ajax = function ajax(_ref) {
217
213
  http.interceptors.request.use(function (config) {
218
214
  config.headers.common = getStorage();
219
215
  // 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
220
- var requestKey = getRequestKey(config);
221
- // 判断请求是否重复
222
- if (pendingRequest.has(requestKey)) {
223
- // 取消上次请求
224
- var cancel = pendingRequest.get(requestKey);
225
- cancel();
226
- // 删除请求信息
227
- pendingRequest.delete(requestKey);
228
- }
229
- // 把请求信息,添加请求到map当中
230
- // 生成取消方法
231
- config.cancelToken = config.cancelToken || new axios__WEBPACK_IMPORTED_MODULE_1___default.a.CancelToken(function (cancel) {
232
- // 把取消方法添加到map
233
- if (!pendingRequest.has(requestKey)) {
234
- pendingRequest.set(requestKey, cancel);
235
- }
236
- });
216
+ // let requestKey = getRequestKey(config);
217
+ // // 判断请求是否重复
218
+ // if (pendingRequest.has(requestKey)) {
219
+ // // 取消上次请求
220
+ // let cancel = pendingRequest.get(requestKey);
221
+ // cancel();
222
+ // // 删除请求信息
223
+ // pendingRequest.delete(requestKey);
224
+ // }
225
+ // // 把请求信息,添加请求到map当中
226
+ // // 生成取消方法
227
+ // config.cancelToken =
228
+ // config.cancelToken ||
229
+ // new axios.CancelToken(cancel => {
230
+ // // 把取消方法添加到map
231
+ // if (!pendingRequest.has(requestKey)) {
232
+ // pendingRequest.set(requestKey, cancel);
233
+ // }
234
+ // });
237
235
  return config;
238
236
  }, function (err) {
239
237
  return err;
240
238
  });
241
239
  // 响应拦截
242
240
  http.interceptors.response.use(function (response) {
243
- delPendingRequest(response.config);
241
+ // delPendingRequest(response.config);
244
242
  loading && loading.close();
245
243
  if (response.headers.authorization && response.headers.authorization !== getStorage('token')) {
246
244
  if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('token') || localStorage.getItem('Authorization')) {
@@ -357,9 +355,9 @@ var ajax = function ajax(_ref) {
357
355
  }
358
356
  }, function (error) {
359
357
  loading && loading.close();
360
- if (!axios__WEBPACK_IMPORTED_MODULE_1___default.a.isCancel(error)) {
361
- delPendingRequest(error.config || {});
362
- }
358
+ // if (!axios.isCancel(error)) {
359
+ // delPendingRequest(error.config || {});
360
+ // }
363
361
  if (error && error.response) {
364
362
  if (error.response.status) {
365
363
  switch (error.response.status) {
@@ -3498,6 +3496,13 @@ module.exports = require("sm-crypto");
3498
3496
  /***/ }),
3499
3497
 
3500
3498
  /***/ 11:
3499
+ /***/ (function(module, exports) {
3500
+
3501
+ module.exports = require("throttle-debounce");
3502
+
3503
+ /***/ }),
3504
+
3505
+ /***/ 12:
3501
3506
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3502
3507
 
3503
3508
  "use strict";
@@ -3525,11 +3530,11 @@ window.__store = store;
3525
3530
 
3526
3531
  /***/ }),
3527
3532
 
3528
- /***/ 14:
3533
+ /***/ 15:
3529
3534
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3530
3535
 
3531
3536
  "use strict";
3532
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15);
3537
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16);
3533
3538
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
3534
3539
 
3535
3540
 
@@ -3537,7 +3542,7 @@ window.__store = store;
3537
3542
 
3538
3543
  /***/ }),
3539
3544
 
3540
- /***/ 15:
3545
+ /***/ 16:
3541
3546
  /***/ (function(module, exports) {
3542
3547
 
3543
3548
  module.exports = require("vue");
@@ -3820,14 +3825,17 @@ __webpack_require__.r(__webpack_exports__);
3820
3825
  // EXTERNAL MODULE: ./src/config/api.js
3821
3826
  var api = __webpack_require__(1);
3822
3827
 
3828
+ // EXTERNAL MODULE: external "throttle-debounce"
3829
+ var external_throttle_debounce_ = __webpack_require__(11);
3830
+
3823
3831
  // EXTERNAL MODULE: ./src/utils/store.js
3824
- var store = __webpack_require__(11);
3832
+ var store = __webpack_require__(12);
3825
3833
 
3826
3834
  // EXTERNAL MODULE: ./src/utils/util.js
3827
3835
  var util = __webpack_require__(0);
3828
3836
 
3829
3837
  // EXTERNAL MODULE: ./src/utils/bus.js
3830
- var bus = __webpack_require__(14);
3838
+ var bus = __webpack_require__(15);
3831
3839
 
3832
3840
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/main.vue?vue&type=script&lang=js&
3833
3841
  var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
@@ -3838,6 +3846,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3838
3846
 
3839
3847
 
3840
3848
 
3849
+
3841
3850
  /* harmony default export */ var mainvue_type_script_lang_js_ = ({
3842
3851
  name: 'EsSelect',
3843
3852
  componentName: 'EsSelect',
@@ -4063,6 +4072,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4063
4072
  }
4064
4073
  }
4065
4074
  },
4075
+ beforeCreate: function beforeCreate() {
4076
+ var _this2 = this;
4077
+
4078
+ this.getData = Object(external_throttle_debounce_["debounce"])(300, function (sysCode, param, reload) {
4079
+ _this2.getDatas(sysCode, param, reload);
4080
+ });
4081
+ },
4066
4082
  created: function created() {
4067
4083
  this.bindEventBus();
4068
4084
  },
@@ -4074,7 +4090,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4074
4090
 
4075
4091
  methods: {
4076
4092
  createOption: function createOption(_ref) {
4077
- var _this2 = this;
4093
+ var _this3 = this;
4078
4094
 
4079
4095
  var filtrate = _ref.filtrate,
4080
4096
  data = _ref.data,
@@ -4085,23 +4101,23 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4085
4101
  var filte = filtrate && util["a" /* default */].isObject(filtrate) ? filtrate[this.valKey] : filtrate;
4086
4102
  var eles = [];
4087
4103
  data.forEach(function (item) {
4088
- if (_this2.models === undefined && item.selected) {
4089
- _this2.$emit('input', _this2.valueType === 'object' ? item : item[_this2.valKey]);
4104
+ if (_this3.models === undefined && item.selected) {
4105
+ _this3.$emit('input', _this3.valueType === 'object' ? item : item[_this3.valKey]);
4090
4106
  }
4091
4107
  if ((Object.prototype.hasOwnProperty.call(item, 'children') || Object.prototype.hasOwnProperty.call(item, 'options')) && (item.children || item.options)) {
4092
4108
  var children = item.children || item.options;
4093
4109
  if (readonly) {
4094
- eles.push(_this2.createOption({ filtrate: filtrate, data: children, readonly: readonly, h: h }));
4110
+ eles.push(_this3.createOption({ filtrate: filtrate, data: children, readonly: readonly, h: h }));
4095
4111
  } else {
4096
- eles.push(h('el-option-group', { attrs: { label: item[_this2.label] || item.label } }, _this2.createOption({ filtrate: filtrate, data: children, readonly: readonly, h: h })));
4112
+ eles.push(h('el-option-group', { attrs: { label: item[_this3.label] || item.label } }, _this3.createOption({ filtrate: filtrate, data: children, readonly: readonly, h: h })));
4097
4113
  }
4098
4114
  } else {
4099
4115
  if (readonly) {
4100
- if (item[_this2.valKey] === filte) {
4101
- eles.push(item[_this2.label] || item.label);
4116
+ if (item[_this3.valKey] === filte) {
4117
+ eles.push(item[_this3.label] || item.label);
4102
4118
  }
4103
4119
  } else {
4104
- if (filte === null || filte === undefined || filte === '' || filte === item[_this2.filtrateKey]) {
4120
+ if (filte === null || filte === undefined || filte === '' || filte === item[_this3.filtrateKey]) {
4105
4121
  if (typeof item === 'string') {
4106
4122
  eles.push(h('el-option', {
4107
4123
  attrs: {
@@ -4110,7 +4126,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4110
4126
  }
4111
4127
  }));
4112
4128
  } else {
4113
- var content = [item[_this2.label] || item.label];
4129
+ var content = [item[_this3.label] || item.label];
4114
4130
  if (item.render) {
4115
4131
  content = [item.render(h, item)];
4116
4132
  }
@@ -4122,8 +4138,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4122
4138
  }
4123
4139
  eles.push(h('el-option', {
4124
4140
  attrs: {
4125
- label: item[_this2.label] || item.label,
4126
- value: _this2.isObject ? item : item[_this2.valKey],
4141
+ label: item[_this3.label] || item.label,
4142
+ value: _this3.isObject ? item : item[_this3.valKey],
4127
4143
  disabled: item.disabled
4128
4144
  }
4129
4145
  }, content));
@@ -4134,8 +4150,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4134
4150
  });
4135
4151
  return eles;
4136
4152
  },
4137
- getData: function getData(sysCode, param, reload) {
4138
- var _this3 = this;
4153
+ getDatas: function getDatas(sysCode, param, reload) {
4154
+ var _this4 = this;
4139
4155
 
4140
4156
  if (!reload && (!this.ajax || !this.isNoParamRequest && Object.keys(this.param).length == 0)) {
4141
4157
  return false;
@@ -4156,35 +4172,35 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4156
4172
  params: params,
4157
4173
  data: params
4158
4174
  }).then(function (res) {
4159
- _this3.loading = false;
4160
- _this3.canceled = false;
4175
+ _this4.loading = false;
4176
+ _this4.canceled = false;
4161
4177
  if (res.rCode === 0) {
4162
- if (_this3.parseData) {
4163
- _this3.options = _this3.parseData(JSON.parse(JSON.stringify(res.results)));
4178
+ if (_this4.parseData) {
4179
+ _this4.options = _this4.parseData(JSON.parse(JSON.stringify(res.results)));
4164
4180
  } else {
4165
- _this3.options = JSON.parse(JSON.stringify(res.results));
4181
+ _this4.options = JSON.parse(JSON.stringify(res.results));
4166
4182
  }
4167
- if (sysCode || _this3.dataKey) {
4168
- bus["a" /* default */].$emit(sysCode || _this3.dataKey, JSON.parse(JSON.stringify(_this3.options)));
4169
- store["a" /* default */].set(sysCode, JSON.parse(JSON.stringify(_this3.options)));
4183
+ if (sysCode || _this4.dataKey) {
4184
+ bus["a" /* default */].$emit(sysCode || _this4.dataKey, JSON.parse(JSON.stringify(_this4.options)));
4185
+ store["a" /* default */].set(sysCode, JSON.parse(JSON.stringify(_this4.options)));
4170
4186
  }
4171
4187
  } else {
4172
- _this3.$message.error(res.msg);
4188
+ _this4.$message.error(res.msg);
4173
4189
  }
4174
4190
  }).catch(function (err) {
4175
- _this3.loading = false;
4191
+ _this4.loading = false;
4176
4192
  if (err.message) {
4177
4193
  if (err.message !== 'canceled') {
4178
- _this3.$message.error(err.message);
4194
+ _this4.$message.error(err.message);
4179
4195
  }
4180
4196
  if (err.message === 'canceled' && sysCode) {
4181
- _this3.canceled = true;
4197
+ _this4.canceled = true;
4182
4198
  }
4183
4199
  }
4184
4200
  });
4185
4201
  },
4186
4202
  search: function search(query) {
4187
- var _this4 = this;
4203
+ var _this5 = this;
4188
4204
 
4189
4205
  if (query && query !== '') {
4190
4206
  if (this.url && this.url !== '') {
@@ -4198,14 +4214,14 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4198
4214
  params: params,
4199
4215
  data: params
4200
4216
  }).then(function (res) {
4201
- _this4.loading = false;
4217
+ _this5.loading = false;
4202
4218
  if (res.rCode === 0) {
4203
- _this4.options = JSON.parse(JSON.stringify(res.results));
4219
+ _this5.options = JSON.parse(JSON.stringify(res.results));
4204
4220
  }
4205
4221
  }).catch(function (err) {
4206
- _this4.loading = false;
4222
+ _this5.loading = false;
4207
4223
  if (err.message && err.message !== 'canceled') {
4208
- _this4.$message.error(err.message);
4224
+ _this5.$message.error(err.message);
4209
4225
  }
4210
4226
  });
4211
4227
  } else {
@@ -4216,7 +4232,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4216
4232
  }
4217
4233
  },
4218
4234
  renderd: function renderd(doms, h, type) {
4219
- var _this5 = this;
4235
+ var _this6 = this;
4220
4236
 
4221
4237
  if (typeof this.$attrs[type] === 'boolean') {
4222
4238
  if (this.$attrs.render) {
@@ -4241,8 +4257,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4241
4257
  domProps: this.$attrs[type].icon ? { innerHTML: this.$attrs[type].icon } : {},
4242
4258
  on: {
4243
4259
  click: function click(e) {
4244
- _this5.$attrs[type].click && _this5.$attrs[type].click(_this5, _this5.model);
4245
- _this5.$attrs[type].event && _this5.$attrs[type].event(_this5, _this5.model);
4260
+ _this6.$attrs[type].click && _this6.$attrs[type].click(_this6, _this6.model);
4261
+ _this6.$attrs[type].event && _this6.$attrs[type].event(_this6, _this6.model);
4246
4262
  }
4247
4263
  },
4248
4264
  ref: 'selectBtn'
@@ -4296,7 +4312,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4296
4312
 
4297
4313
  //请求子节点数据
4298
4314
  loadsub: function loadsub(data, node) {
4299
- var _this6 = this;
4315
+ var _this7 = this;
4300
4316
 
4301
4317
  if (data.state !== '' && (!data.children || data.children.length === 0)) {
4302
4318
  var param = {};
@@ -4313,13 +4329,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4313
4329
  }
4314
4330
  if (this.onLoadsub) {
4315
4331
  this.onLoadsub({ data: data, params: params, node: node }).then(function (res) {
4316
- _this6.loading = false;
4317
- _this6.$set(data, 'children', JSON.parse(JSON.stringify(res)));
4318
- if (_this6.dataKey && _this6.esForm) {
4319
- _this6.esForm.setSysCodes(_this6.dataKey, JSON.parse(JSON.stringify(_this6.options)));
4332
+ _this7.loading = false;
4333
+ _this7.$set(data, 'children', JSON.parse(JSON.stringify(res)));
4334
+ if (_this7.dataKey && _this7.esForm) {
4335
+ _this7.esForm.setSysCodes(_this7.dataKey, JSON.parse(JSON.stringify(_this7.options)));
4320
4336
  }
4321
4337
  }).catch(function (e) {
4322
- _this6.loading = false;
4338
+ _this7.loading = false;
4323
4339
  });
4324
4340
  } else {
4325
4341
  util["a" /* default */].ajax({
@@ -4329,27 +4345,27 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4329
4345
  params: params
4330
4346
  }).then(function (res) {
4331
4347
  if (res.rCode === 0) {
4332
- _this6.loading = false;
4348
+ _this7.loading = false;
4333
4349
  var results = JSON.parse(JSON.stringify(res.results));
4334
4350
  if (Array.isArray(results)) {
4335
4351
  if (data.id === results[0].id) {
4336
- _this6.$set(data, 'children', results[0].children);
4352
+ _this7.$set(data, 'children', results[0].children);
4337
4353
  } else {
4338
- _this6.$set(data, 'children', results);
4354
+ _this7.$set(data, 'children', results);
4339
4355
  }
4340
4356
  } else if (data.id === results.id) {
4341
- _this6.$set(data, 'children', results.children);
4357
+ _this7.$set(data, 'children', results.children);
4342
4358
  } else {
4343
4359
  console.error('tree数据格式错误');
4344
4360
  }
4345
- if (_this6.dataKey && _this6.esForm) {
4346
- _this6.esForm.setSysCodes(_this6.dataKey, JSON.parse(JSON.stringify(_this6.options)));
4361
+ if (_this7.dataKey && _this7.esForm) {
4362
+ _this7.esForm.setSysCodes(_this7.dataKey, JSON.parse(JSON.stringify(_this7.options)));
4347
4363
  }
4348
4364
  }
4349
4365
  }).catch(function (err) {
4350
- _this6.loading = false;
4366
+ _this7.loading = false;
4351
4367
  if (err.message && err.message !== 'canceled') {
4352
- _this6.$message.error(err.message);
4368
+ _this7.$message.error(err.message);
4353
4369
  }
4354
4370
  });
4355
4371
  }
@@ -4372,7 +4388,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4372
4388
  this.unbindEventBus();
4373
4389
  },
4374
4390
  render: function render(h) {
4375
- var _this7 = this;
4391
+ var _this8 = this;
4376
4392
 
4377
4393
  if (!this.hide) {
4378
4394
  if (this.readonly) {
@@ -4380,12 +4396,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4380
4396
  if (Array.isArray(this.models)) {
4381
4397
  dom = this.models.map(function (item) {
4382
4398
  if (util["a" /* default */].isObject(item)) {
4383
- if (!item[_this7.label] && !item.label) {
4384
- return _this7.getLabel(value[_this7.valKey], data);
4399
+ if (!item[_this8.label] && !item.label) {
4400
+ return _this8.getLabel(value[_this8.valKey], data);
4385
4401
  }
4386
- return item[_this7.label] || item.label;
4402
+ return item[_this8.label] || item.label;
4387
4403
  }
4388
- return _this7.getLabel(item, _this7.results);
4404
+ return _this8.getLabel(item, _this8.results);
4389
4405
  });
4390
4406
  } else if (util["a" /* default */].isObject(this.models)) {
4391
4407
  if (!this.models[this.label] && !this.models.label) {
@@ -4411,10 +4427,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4411
4427
  doms = this.filtrate.map(function (item) {
4412
4428
  return h('el-option-group', {
4413
4429
  attrs: {
4414
- label: item[_this7.label] || item.label,
4415
- key: item[_this7.valKey]
4430
+ label: item[_this8.label] || item.label,
4431
+ key: item[_this8.valKey]
4416
4432
  }
4417
- }, _this7.createOption({ filtrate: item, data: _this7.results, h: h }));
4433
+ }, _this8.createOption({ filtrate: item, data: _this8.results, h: h }));
4418
4434
  });
4419
4435
  } else {
4420
4436
  doms = this.createOption({