element-ui-root 1.4.6 → 1.4.9

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.
@@ -14579,6 +14579,12 @@ var AformItem = function AformItem(a) {
14579
14579
  return false;
14580
14580
  }
14581
14581
  },
14582
+ verify: {
14583
+ type: Boolean,
14584
+ default: function _default() {
14585
+ return true;
14586
+ }
14587
+ },
14582
14588
  loading: {
14583
14589
  type: Boolean,
14584
14590
  default: function _default() {
@@ -14630,7 +14636,7 @@ var AformItem = function AformItem(a) {
14630
14636
  },
14631
14637
  submit: function submit() {
14632
14638
  // 提交表单
14633
- var pass = false; // 判断是否是空表单
14639
+ var pass = !this.verify; // 判断是否是空表单
14634
14640
 
14635
14641
  for (var a in this.form) {
14636
14642
  if (this.form[a] != '') pass = true;
@@ -14662,7 +14668,7 @@ var AformItem = function AformItem(a) {
14662
14668
  },
14663
14669
  cancel: function cancel() {
14664
14670
  // 重置表单
14665
- var pass = false; // 判断是否是空表单
14671
+ var pass = !this.verify; // 判断是否是空表单
14666
14672
 
14667
14673
  for (var a in this.form) {
14668
14674
  if (this.form[a] != '') pass = true;
@@ -20154,16 +20160,16 @@ var Aupload = function Aupload(a) {
20154
20160
  return h("el-option", {
20155
20161
  "key": b,
20156
20162
  "attrs": {
20157
- "label": a.fieldName ? a.fieldName : a.label || a.title || a.name || a.text,
20158
- "value": a.valueName ? a.valueName : a.value || a.code || a.id
20163
+ "label": a.label || a.title || a.name || a.text,
20164
+ "value": a.value || a.code || a.id
20159
20165
  }
20160
20166
  });
20161
20167
  }) : this.option.map(function (a, b) {
20162
20168
  return h("el-option", {
20163
20169
  "key": b,
20164
20170
  "attrs": {
20165
- "label": a.fieldName ? a.fieldName : a.label || a.title || a.name || a.text,
20166
- "value": a.valueName ? a.valueName : a.value || a.code || a.id
20171
+ "label": a.label || a.title || a.name || a.text,
20172
+ "value": a.value || a.code || a.id
20167
20173
  }
20168
20174
  });
20169
20175
  })]);
@@ -20233,16 +20239,16 @@ var Aupload = function Aupload(a) {
20233
20239
  return h("el-checkbox", {
20234
20240
  "key": b,
20235
20241
  "attrs": {
20236
- "label": a.valueName ? a.valueName : a.value || a.code || a.id
20242
+ "label": a.value || a.code || a.id
20237
20243
  }
20238
- }, [a.fieldName ? a.fieldName : a.label || a.title || a.text]);
20244
+ }, [a.label || a.title || a.text]);
20239
20245
  }) : this.dicts.map(function (a, b) {
20240
20246
  return h("el-checkbox", {
20241
20247
  "key": b,
20242
20248
  "attrs": {
20243
- "label": a.valueName ? a.valueName : a.value || a.code || a.id
20249
+ "label": a.value || a.code || a.id
20244
20250
  }
20245
- }, [a.fieldName ? a.fieldName : a.label || a.title || a.text]);
20251
+ }, [a.label || a.title || a.text]);
20246
20252
  })]);
20247
20253
 
20248
20254
  case 'radio':
@@ -20266,16 +20272,16 @@ var Aupload = function Aupload(a) {
20266
20272
  return h("el-radio", {
20267
20273
  "key": b,
20268
20274
  "attrs": {
20269
- "label": a.valueName ? a.valueName : a.value || a.code || a.id
20275
+ "label": a.value || a.code || a.id
20270
20276
  }
20271
- }, [a.fieldName ? a.fieldName : a.label || a.title || a.text]);
20277
+ }, [a.label || a.title || a.text]);
20272
20278
  }) : this.dicts.map(function (a, b) {
20273
20279
  return h("el-radio", {
20274
20280
  "key": b,
20275
20281
  "attrs": {
20276
- "label": a.valueName ? a.valueName : a.value || a.code || a.id
20282
+ "label": a.value || a.code || a.id
20277
20283
  }
20278
- }, [a.fieldName ? a.fieldName : a.label || a.title || a.text]);
20284
+ }, [a.label || a.title || a.text]);
20279
20285
  })]);
20280
20286
 
20281
20287
  case 'switch':
@@ -42674,6 +42680,12 @@ var _excluded = ["node", "path", "page", "text", "icon", "type"];
42674
42680
  return true;
42675
42681
  }
42676
42682
  },
42683
+ reload: {
42684
+ type: Boolean,
42685
+ default: function _default() {
42686
+ return false;
42687
+ }
42688
+ },
42677
42689
  menuTrigger: {
42678
42690
  type: String,
42679
42691
  default: function _default() {
@@ -42776,7 +42788,7 @@ var _excluded = ["node", "path", "page", "text", "icon", "type"];
42776
42788
  });
42777
42789
  },
42778
42790
  select: function select(key, keyPath) {
42779
- if (this.path == key) return false;
42791
+ if (!this.reload && this.path == key) return false;
42780
42792
  this.path = key;
42781
42793
  this.$emit('select', {
42782
42794
  key: key,
@@ -142275,6 +142287,8 @@ var Aempty = function Aempty(a) {
142275
142287
  render: function render() {
142276
142288
  var h = arguments[0];
142277
142289
  var _this$$attrs = this.$attrs,
142290
+ _this$$attrs$searchVe = _this$$attrs.searchVerify,
142291
+ searchVerify = _this$$attrs$searchVe === void 0 ? true : _this$$attrs$searchVe,
142278
142292
  _this$$attrs$searchCo = _this$$attrs.searchConfig,
142279
142293
  searchConfig = _this$$attrs$searchCo === void 0 ? {} : _this$$attrs$searchCo,
142280
142294
  _this$$attrs$actionCo = _this$$attrs.actionConfig,
@@ -142291,6 +142305,7 @@ var Aempty = function Aempty(a) {
142291
142305
  var condition = data.length > 0;
142292
142306
  return h("div", [Object.keys(searchConfig).length > 0 && (Object.keys(searchConfig).length < 5 ? h(AfSearch, {
142293
142307
  "attrs": {
142308
+ "verify": searchVerify,
142294
142309
  "config": searchConfig,
142295
142310
  "loading": loading
142296
142311
  },
@@ -142300,6 +142315,7 @@ var Aempty = function Aempty(a) {
142300
142315
  }
142301
142316
  }) : h(BfSearch, {
142302
142317
  "attrs": {
142318
+ "verify": searchVerify,
142303
142319
  "config": searchConfig,
142304
142320
  "loading": loading
142305
142321
  },
@@ -175530,6 +175546,12 @@ var AformItem = function AformItem(a) {
175530
175546
  return false;
175531
175547
  }
175532
175548
  },
175549
+ verify: {
175550
+ type: Boolean,
175551
+ default: function _default() {
175552
+ return true;
175553
+ }
175554
+ },
175533
175555
  loading: {
175534
175556
  type: Boolean,
175535
175557
  default: function _default() {
@@ -175582,7 +175604,7 @@ var AformItem = function AformItem(a) {
175582
175604
  },
175583
175605
  submit: function submit() {
175584
175606
  // 提交表单
175585
- var pass = false; // 判断是否是空表单
175607
+ var pass = !this.verify; // 判断是否是空表单
175586
175608
 
175587
175609
  for (var a in this.form) {
175588
175610
  if (this.form[a] != '') pass = true;
@@ -175614,7 +175636,7 @@ var AformItem = function AformItem(a) {
175614
175636
  },
175615
175637
  cancel: function cancel() {
175616
175638
  // 重置表单
175617
- var pass = false; // 判断是否是空表单
175639
+ var pass = !this.verify; // 判断是否是空表单
175618
175640
 
175619
175641
  for (var a in this.form) {
175620
175642
  if (this.form[a] != '') pass = true;
package/dist/index.umd.js CHANGED
@@ -14588,6 +14588,12 @@ var AformItem = function AformItem(a) {
14588
14588
  return false;
14589
14589
  }
14590
14590
  },
14591
+ verify: {
14592
+ type: Boolean,
14593
+ default: function _default() {
14594
+ return true;
14595
+ }
14596
+ },
14591
14597
  loading: {
14592
14598
  type: Boolean,
14593
14599
  default: function _default() {
@@ -14639,7 +14645,7 @@ var AformItem = function AformItem(a) {
14639
14645
  },
14640
14646
  submit: function submit() {
14641
14647
  // 提交表单
14642
- var pass = false; // 判断是否是空表单
14648
+ var pass = !this.verify; // 判断是否是空表单
14643
14649
 
14644
14650
  for (var a in this.form) {
14645
14651
  if (this.form[a] != '') pass = true;
@@ -14671,7 +14677,7 @@ var AformItem = function AformItem(a) {
14671
14677
  },
14672
14678
  cancel: function cancel() {
14673
14679
  // 重置表单
14674
- var pass = false; // 判断是否是空表单
14680
+ var pass = !this.verify; // 判断是否是空表单
14675
14681
 
14676
14682
  for (var a in this.form) {
14677
14683
  if (this.form[a] != '') pass = true;
@@ -20163,16 +20169,16 @@ var Aupload = function Aupload(a) {
20163
20169
  return h("el-option", {
20164
20170
  "key": b,
20165
20171
  "attrs": {
20166
- "label": a.fieldName ? a.fieldName : a.label || a.title || a.name || a.text,
20167
- "value": a.valueName ? a.valueName : a.value || a.code || a.id
20172
+ "label": a.label || a.title || a.name || a.text,
20173
+ "value": a.value || a.code || a.id
20168
20174
  }
20169
20175
  });
20170
20176
  }) : this.option.map(function (a, b) {
20171
20177
  return h("el-option", {
20172
20178
  "key": b,
20173
20179
  "attrs": {
20174
- "label": a.fieldName ? a.fieldName : a.label || a.title || a.name || a.text,
20175
- "value": a.valueName ? a.valueName : a.value || a.code || a.id
20180
+ "label": a.label || a.title || a.name || a.text,
20181
+ "value": a.value || a.code || a.id
20176
20182
  }
20177
20183
  });
20178
20184
  })]);
@@ -20242,16 +20248,16 @@ var Aupload = function Aupload(a) {
20242
20248
  return h("el-checkbox", {
20243
20249
  "key": b,
20244
20250
  "attrs": {
20245
- "label": a.valueName ? a.valueName : a.value || a.code || a.id
20251
+ "label": a.value || a.code || a.id
20246
20252
  }
20247
- }, [a.fieldName ? a.fieldName : a.label || a.title || a.text]);
20253
+ }, [a.label || a.title || a.text]);
20248
20254
  }) : this.dicts.map(function (a, b) {
20249
20255
  return h("el-checkbox", {
20250
20256
  "key": b,
20251
20257
  "attrs": {
20252
- "label": a.valueName ? a.valueName : a.value || a.code || a.id
20258
+ "label": a.value || a.code || a.id
20253
20259
  }
20254
- }, [a.fieldName ? a.fieldName : a.label || a.title || a.text]);
20260
+ }, [a.label || a.title || a.text]);
20255
20261
  })]);
20256
20262
 
20257
20263
  case 'radio':
@@ -20275,16 +20281,16 @@ var Aupload = function Aupload(a) {
20275
20281
  return h("el-radio", {
20276
20282
  "key": b,
20277
20283
  "attrs": {
20278
- "label": a.valueName ? a.valueName : a.value || a.code || a.id
20284
+ "label": a.value || a.code || a.id
20279
20285
  }
20280
- }, [a.fieldName ? a.fieldName : a.label || a.title || a.text]);
20286
+ }, [a.label || a.title || a.text]);
20281
20287
  }) : this.dicts.map(function (a, b) {
20282
20288
  return h("el-radio", {
20283
20289
  "key": b,
20284
20290
  "attrs": {
20285
- "label": a.valueName ? a.valueName : a.value || a.code || a.id
20291
+ "label": a.value || a.code || a.id
20286
20292
  }
20287
- }, [a.fieldName ? a.fieldName : a.label || a.title || a.text]);
20293
+ }, [a.label || a.title || a.text]);
20288
20294
  })]);
20289
20295
 
20290
20296
  case 'switch':
@@ -42683,6 +42689,12 @@ var _excluded = ["node", "path", "page", "text", "icon", "type"];
42683
42689
  return true;
42684
42690
  }
42685
42691
  },
42692
+ reload: {
42693
+ type: Boolean,
42694
+ default: function _default() {
42695
+ return false;
42696
+ }
42697
+ },
42686
42698
  menuTrigger: {
42687
42699
  type: String,
42688
42700
  default: function _default() {
@@ -42785,7 +42797,7 @@ var _excluded = ["node", "path", "page", "text", "icon", "type"];
42785
42797
  });
42786
42798
  },
42787
42799
  select: function select(key, keyPath) {
42788
- if (this.path == key) return false;
42800
+ if (!this.reload && this.path == key) return false;
42789
42801
  this.path = key;
42790
42802
  this.$emit('select', {
42791
42803
  key: key,
@@ -142284,6 +142296,8 @@ var Aempty = function Aempty(a) {
142284
142296
  render: function render() {
142285
142297
  var h = arguments[0];
142286
142298
  var _this$$attrs = this.$attrs,
142299
+ _this$$attrs$searchVe = _this$$attrs.searchVerify,
142300
+ searchVerify = _this$$attrs$searchVe === void 0 ? true : _this$$attrs$searchVe,
142287
142301
  _this$$attrs$searchCo = _this$$attrs.searchConfig,
142288
142302
  searchConfig = _this$$attrs$searchCo === void 0 ? {} : _this$$attrs$searchCo,
142289
142303
  _this$$attrs$actionCo = _this$$attrs.actionConfig,
@@ -142300,6 +142314,7 @@ var Aempty = function Aempty(a) {
142300
142314
  var condition = data.length > 0;
142301
142315
  return h("div", [Object.keys(searchConfig).length > 0 && (Object.keys(searchConfig).length < 5 ? h(AfSearch, {
142302
142316
  "attrs": {
142317
+ "verify": searchVerify,
142303
142318
  "config": searchConfig,
142304
142319
  "loading": loading
142305
142320
  },
@@ -142309,6 +142324,7 @@ var Aempty = function Aempty(a) {
142309
142324
  }
142310
142325
  }) : h(BfSearch, {
142311
142326
  "attrs": {
142327
+ "verify": searchVerify,
142312
142328
  "config": searchConfig,
142313
142329
  "loading": loading
142314
142330
  },
@@ -175539,6 +175555,12 @@ var AformItem = function AformItem(a) {
175539
175555
  return false;
175540
175556
  }
175541
175557
  },
175558
+ verify: {
175559
+ type: Boolean,
175560
+ default: function _default() {
175561
+ return true;
175562
+ }
175563
+ },
175542
175564
  loading: {
175543
175565
  type: Boolean,
175544
175566
  default: function _default() {
@@ -175591,7 +175613,7 @@ var AformItem = function AformItem(a) {
175591
175613
  },
175592
175614
  submit: function submit() {
175593
175615
  // 提交表单
175594
- var pass = false; // 判断是否是空表单
175616
+ var pass = !this.verify; // 判断是否是空表单
175595
175617
 
175596
175618
  for (var a in this.form) {
175597
175619
  if (this.form[a] != '') pass = true;
@@ -175623,7 +175645,7 @@ var AformItem = function AformItem(a) {
175623
175645
  },
175624
175646
  cancel: function cancel() {
175625
175647
  // 重置表单
175626
- var pass = false; // 判断是否是空表单
175648
+ var pass = !this.verify; // 判断是否是空表单
175627
175649
 
175628
175650
  for (var a in this.form) {
175629
175651
  if (this.form[a] != '') pass = true;