eoss-mobiles 0.2.92 → 0.2.94

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/checkbox.js CHANGED
@@ -2048,7 +2048,7 @@ var http_request = function request(options) {
2048
2048
  // ESM COMPAT FLAG
2049
2049
  __webpack_require__.r(__webpack_exports__);
2050
2050
 
2051
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/main.vue?vue&type=template&id=95bbce2e&
2051
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/main.vue?vue&type=template&id=031c5665&
2052
2052
  var render = function () {
2053
2053
  var _vm = this
2054
2054
  var _h = _vm.$createElement
@@ -2156,7 +2156,7 @@ var staticRenderFns = []
2156
2156
  render._withStripped = true
2157
2157
 
2158
2158
 
2159
- // CONCATENATED MODULE: ./packages/checkbox/src/main.vue?vue&type=template&id=95bbce2e&
2159
+ // CONCATENATED MODULE: ./packages/checkbox/src/main.vue?vue&type=template&id=031c5665&
2160
2160
 
2161
2161
  // EXTERNAL MODULE: ./src/config/api.js
2162
2162
  var api = __webpack_require__(2);
@@ -2252,6 +2252,10 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2252
2252
  type: String,
2253
2253
  default: 'round'
2254
2254
  },
2255
+ disabledValue: {
2256
+ type: String,
2257
+ default: ''
2258
+ },
2255
2259
  iconSize: {
2256
2260
  type: [String, Number],
2257
2261
  default: '20px'
@@ -2324,6 +2328,23 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2324
2328
  this.newData = val;
2325
2329
  },
2326
2330
 
2331
+ deep: true,
2332
+ immediate: true
2333
+ },
2334
+ disabledValue: {
2335
+ handler: function handler(val) {
2336
+ var _this2 = this;
2337
+
2338
+ // if(val){
2339
+ this.newData.map(function (item) {
2340
+ item.name = _this2.allowHtml ? item[_this2.sysAppCode ? 'shortName' : _this2.labelKey] : item[_this2.sysAppCode ? 'shortName' : _this2.labelKey].replace(/<[^>]+>/g, '');
2341
+ item.value = item[_this2.sysAppCode ? 'cciValue' : _this2.valueKey];
2342
+
2343
+ item.disabled = val.indexOf(item.value) != -1;
2344
+ });
2345
+ // }
2346
+ },
2347
+
2327
2348
  deep: true,
2328
2349
  immediate: true
2329
2350
  }
@@ -2348,7 +2369,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2348
2369
  this.$refs.checkboxGroup.toggleAll(val);
2349
2370
  },
2350
2371
  getSysCode: function getSysCode() {
2351
- var _this2 = this;
2372
+ var _this3 = this;
2352
2373
 
2353
2374
  var url = this.url,
2354
2375
  method = this.method,
@@ -2371,15 +2392,16 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2371
2392
 
2372
2393
  if (status == 'success' || rCode === 0 || status === true) {
2373
2394
  [].concat(data || results).map(function (item) {
2374
- item.name = _this2.allowHtml ? item[sysAppCode ? 'shortName' : _this2.labelKey] : item[sysAppCode ? 'shortName' : _this2.labelKey].replace(/<[^>]+>/g, '');
2375
- item.value = item[sysAppCode ? 'cciValue' : _this2.value];
2395
+ item.name = _this3.allowHtml ? item[sysAppCode ? 'shortName' : _this3.labelKey] : item[sysAppCode ? 'shortName' : _this3.labelKey].replace(/<[^>]+>/g, '');
2396
+ item.value = item[sysAppCode ? 'cciValue' : _this3.valueKey];
2397
+ item.disabled = _this3.disabledValue.indexOf(item.value) != -1;
2376
2398
  });
2377
- _this2.newData = data || results;
2399
+ _this3.newData = data || results;
2378
2400
  } else {
2379
- _this2.$toast(message);
2401
+ _this3.$toast(message);
2380
2402
  }
2381
2403
  }).catch(function (err) {
2382
- _this2.$toast(err.message);
2404
+ _this3.$toast(err.message);
2383
2405
  });
2384
2406
  }
2385
2407
  }