element-ui-root 2.6.9 → 2.7.1

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.
@@ -13540,6 +13540,16 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
13540
13540
 
13541
13541
  mounted() {},
13542
13542
 
13543
+ destroyed() {
13544
+ this.create = null;
13545
+ this.submit = null;
13546
+ this.cancel = null;
13547
+ this.filter = null;
13548
+ this.result = null;
13549
+ this.prompt = null;
13550
+ this.format = null;
13551
+ },
13552
+
13543
13553
  watch: {
13544
13554
  values() {
13545
13555
  this.create();
@@ -13626,12 +13636,14 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
13626
13636
  }
13627
13637
  },
13628
13638
 
13629
- filter(form) {
13639
+ filter(form = {}) {
13630
13640
  // 过滤空值属性
13631
13641
  const data = {};
13632
13642
 
13633
13643
  for (let a in form) {
13634
- if (a != undefined && a != 'undefined' && form[a] != '' && form[a] != '%%' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) data[a] = form[a];
13644
+ if (a != undefined && a != 'undefined' && form[a] != '' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) {
13645
+ data[a] = form[a];
13646
+ }
13635
13647
  }
13636
13648
 
13637
13649
  return data;
@@ -13678,8 +13690,8 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
13678
13690
  render() {
13679
13691
  const h = arguments[0];
13680
13692
  const {
13681
- submit,
13682
- cancel
13693
+ submit = null,
13694
+ cancel = null
13683
13695
  } = this.$listeners;
13684
13696
  let style = this.cols != '' ? {
13685
13697
  width: `${100 / this.cols}%`
@@ -18695,6 +18707,15 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
18695
18707
  this.$nextTick(() => this.search());
18696
18708
  },
18697
18709
 
18710
+ destroyed() {
18711
+ this.create = null;
18712
+ this.search = null;
18713
+ this.switch = null;
18714
+ this.filter = null;
18715
+ this.relate = null;
18716
+ this.format = null;
18717
+ },
18718
+
18698
18719
  methods: {
18699
18720
  create() {
18700
18721
  this.rand = Math.random();
@@ -18737,15 +18758,17 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
18737
18758
  const data = {};
18738
18759
 
18739
18760
  for (let a in form) {
18740
- if (a != undefined && a != 'undefined' && form[a] != '' && form[a] != '%%' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) data[a] = form[a];
18761
+ if (a != undefined && a != 'undefined' && form[a] != '' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) {
18762
+ data[a] = form[a];
18763
+ }
18741
18764
  }
18742
18765
 
18743
18766
  return data;
18744
18767
  },
18745
18768
 
18746
- relate(value, array = []) {
18769
+ relate(value = '', array = []) {
18747
18770
  let object = {};
18748
- array.length > 0 && array.forEach(a => {
18771
+ if (value != '') array.length > 0 && array.forEach(a => {
18749
18772
  if ((a.value || a.code || a.id) && (a.value == value || a.code == value || a.id == value)) object = a;
18750
18773
  });
18751
18774
  return object;
@@ -130044,6 +130067,13 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
130044
130067
 
130045
130068
  destroyed() {
130046
130069
  this.cancel();
130070
+ this.create = null;
130071
+ this.verify = null;
130072
+ this.finish = null;
130073
+ this.submit = null;
130074
+ this.cancel = null;
130075
+ this.filter = null;
130076
+ this.result = null;
130047
130077
  },
130048
130078
 
130049
130079
  watch: {
@@ -130179,7 +130209,9 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
130179
130209
  const data = {};
130180
130210
 
130181
130211
  for (let a in form) {
130182
- if (a != undefined && a != 'undefined' && form[a] != '' && form[a] != '%%' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) data[a] = form[a];
130212
+ if (a != undefined && a != 'undefined' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) {
130213
+ data[a] = form[a];
130214
+ }
130183
130215
  }
130184
130216
 
130185
130217
  return data;
@@ -130194,9 +130226,9 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
130194
130226
  render() {
130195
130227
  const h = arguments[0];
130196
130228
  const {
130197
- finish,
130198
- submit,
130199
- cancel
130229
+ finish = null,
130230
+ submit = null,
130231
+ cancel = null
130200
130232
  } = this.$listeners;
130201
130233
  return h("keep-alive", [h("div", {
130202
130234
  "class": !this.inline ? this.search ? 'a-form' : 'a-from vertical' : 'a-form',
@@ -132141,6 +132173,15 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
132141
132173
 
132142
132174
  destroyed() {
132143
132175
  this.cancel();
132176
+ this.create = null;
132177
+ this.verify = null;
132178
+ this.finish = null;
132179
+ this.submit = null;
132180
+ this.reject = null;
132181
+ this.cancel = null;
132182
+ this.filter = null;
132183
+ this.result = null;
132184
+ this.format = null;
132144
132185
  },
132145
132186
 
132146
132187
  watch: {
@@ -132245,12 +132286,14 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
132245
132286
  this.$emit('cancel', this.form);
132246
132287
  },
132247
132288
 
132248
- filter(form) {
132289
+ filter(form = {}) {
132249
132290
  // 过滤空值属性
132250
132291
  const data = {};
132251
132292
 
132252
132293
  for (let a in form) {
132253
- if (a != undefined && a != 'undefined' && form[a] != '' && form[a] != '%%' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) data[a] = form[a];
132294
+ if (a != undefined && a != 'undefined' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) {
132295
+ data[a] = form[a];
132296
+ }
132254
132297
  }
132255
132298
 
132256
132299
  return data;
@@ -134578,6 +134621,20 @@ const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __W
134578
134621
  this.$refs['a-table'].bodyWrapper.addEventListener('wheel', this.scroll);
134579
134622
  },
134580
134623
 
134624
+ beforeDestroy() {
134625
+ this.$refs['a-table'].bodyWrapper.removeEventListener('wheel', this.scroll);
134626
+ },
134627
+
134628
+ destroyed() {
134629
+ this.create = null;
134630
+ this.search = null;
134631
+ this.select = null;
134632
+ this.choose = null;
134633
+ this.change = null;
134634
+ this.format = null;
134635
+ this.scroll = null;
134636
+ },
134637
+
134581
134638
  methods: {
134582
134639
  create(column = []) {
134583
134640
  const h = this.$createElement;
@@ -134585,11 +134642,11 @@ const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __W
134585
134642
  const actionColumn = () => {
134586
134643
  let data = [];
134587
134644
  const {
134588
- review,
134589
- modify,
134590
- update,
134591
- handle,
134592
- remove
134645
+ review = null,
134646
+ modify = null,
134647
+ update = null,
134648
+ handle = null,
134649
+ remove = null
134593
134650
  } = this.$listeners;
134594
134651
 
134595
134652
  if (review || modify || update || handle || remove || this.$listeners.delete || this.$listeners.export) {
@@ -134644,7 +134701,7 @@ const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __W
134644
134701
  return columnConfig.map((a, b) => {
134645
134702
  if (a && Object.keys(a).length > 0) {
134646
134703
  let {
134647
- header,
134704
+ header = null,
134648
134705
  ...item
134649
134706
  } = a;
134650
134707
  let label = a.text || a.label || a.title;
@@ -134681,14 +134738,14 @@ const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __W
134681
134738
 
134682
134739
  search(params = {}) {
134683
134740
  const {
134684
- pageParams,
134685
- formParams
134741
+ pageParams = {},
134742
+ formParams = {}
134686
134743
  } = this.$store.state;
134687
134744
  const formatParams = Object.assign({}, pageParams, formParams, params);
134688
134745
  this.$emit('search', formatParams);
134689
134746
  },
134690
134747
 
134691
- select(items) {
134748
+ select(items = []) {
134692
134749
  this.$store.commit('changeSelectedRows', items);
134693
134750
  this.$store.commit('changeSelectedKeys', items.map(a => a[this.rowKey]));
134694
134751
  this.$emit('select', {
@@ -134705,7 +134762,10 @@ const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __W
134705
134762
  });
134706
134763
  },
134707
134764
 
134708
- change(pages) {
134765
+ change(pages = {
134766
+ page: 1,
134767
+ size: 10
134768
+ }) {
134709
134769
  this.$store.commit('changePageParams', pages);
134710
134770
  this.$emit('change', pages);
134711
134771
  this.search(pages);
@@ -134803,11 +134863,11 @@ const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __W
134803
134863
  const data = r.data ? r.data : r.list ? r.list : r.rows ? r.rows : r.record ? r.record : r.records ? r.records : [];
134804
134864
  const size = r.size ? r.size : r.total ? r.total : r.count ? r.count : 0;
134805
134865
  const {
134806
- pageParams
134866
+ pageParams = {}
134807
134867
  } = this.$store.state;
134808
134868
  const {
134809
134869
  loading = false,
134810
- search
134870
+ search = null
134811
134871
  } = this;
134812
134872
  const condition = data.length > 0;
134813
134873
  return h("keep-alive", [h("div", {
@@ -152298,7 +152358,7 @@ __webpack_require__.r(__webpack_exports__);
152298
152358
  },
152299
152359
  width: {
152300
152360
  type: String,
152301
- default: () => '400'
152361
+ default: () => '480'
152302
152362
  },
152303
152363
  trigger: {
152304
152364
  type: String,
@@ -152334,6 +152394,12 @@ __webpack_require__.r(__webpack_exports__);
152334
152394
  this.create();
152335
152395
  },
152336
152396
 
152397
+ destroyed() {
152398
+ this.create = null;
152399
+ this.select = null;
152400
+ this.change = null;
152401
+ },
152402
+
152337
152403
  methods: {
152338
152404
  create() {
152339
152405
  this.$nextTick(() => {
@@ -152355,7 +152421,9 @@ __webpack_require__.r(__webpack_exports__);
152355
152421
  },
152356
152422
 
152357
152423
  change(content) {
152358
- this.$emit('input', content);
152424
+ this.content = content;
152425
+ console.log(this.content);
152426
+ this.$nextTick(() => this.$emit('input', this.content));
152359
152427
  }
152360
152428
 
152361
152429
  },
@@ -152365,9 +152433,9 @@ __webpack_require__.r(__webpack_exports__);
152365
152433
  return h("el-popover", {
152366
152434
  "class": "a-icon-select",
152367
152435
  "attrs": {
152368
- "placement": "bottom-start",
152436
+ "placement": this.placement,
152369
152437
  "width": "480",
152370
- "trigger": "click"
152438
+ "trigger": this.trigger
152371
152439
  },
152372
152440
  "model": {
152373
152441
  value: this.visible,
@@ -156366,6 +156434,11 @@ __webpack_require__.r(__webpack_exports__);
156366
156434
  default: () => '取消'
156367
156435
  }
156368
156436
  },
156437
+
156438
+ destroyed() {
156439
+ this.format = null;
156440
+ },
156441
+
156369
156442
  methods: {
156370
156443
  format() {
156371
156444
  let data = [];
@@ -156373,34 +156446,32 @@ __webpack_require__.r(__webpack_exports__);
156373
156446
  let elements = this.$slots.default;
156374
156447
 
156375
156448
  (function recursion(node = []) {
156376
- if (node.length > 0) {
156377
- node.forEach(a => {
156378
- if (a && a.componentInstance) {
156379
- let item = a.componentInstance;
156380
- if (item.$children && item.$children.length && item.$children.length > 0) recursion(item.$children);
156381
- if (item.result && item.result()) data.push(item.result());
156382
- if (item.verify && !item.verify()) pass = false;
156383
- } else {
156384
- if (a.result && a.result()) data.push(a.result());
156385
- if (a.verify && !a.verify()) pass = false;
156386
- }
156387
- });
156388
- }
156449
+ if (node.length > 0) node.forEach(a => {
156450
+ if (a && a.componentInstance) {
156451
+ let item = a.componentInstance;
156452
+ if (item.$children && item.$children.length && item.$children.length > 0) recursion(item.$children);
156453
+ if (item.result && item.result()) data.push(item.result());
156454
+ if (item.verify && !item.verify()) pass = false;
156455
+ } else {
156456
+ if (a.result && a.result()) data.push(a.result());
156457
+ if (a.verify && !a.verify()) pass = false;
156458
+ }
156459
+ });
156389
156460
  })(elements);
156390
156461
 
156391
156462
  if (this.verify && pass == false) return false;
156392
- let params = data.length && data.length > 0 ? data.length && data.length > 1 ? data : data[0] : {};
156463
+ let params = data.length && data.length > 0 ? data.length && data.length > 1 ? data : data[0] : null;
156393
156464
  return params;
156394
156465
  },
156395
156466
 
156396
156467
  finish(e) {
156397
156468
  e.preventDefault();
156398
- this.$emit('finish', this.format());
156469
+ if (this.format()) this.$emit('finish', this.format());
156399
156470
  },
156400
156471
 
156401
156472
  submit(e) {
156402
156473
  e.preventDefault();
156403
- this.$emit('submit', this.format());
156474
+ if (this.format()) this.$emit('submit', this.format());
156404
156475
  },
156405
156476
 
156406
156477
  reject(e) {
@@ -164971,6 +165042,19 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
164971
165042
  this.update();
164972
165043
  },
164973
165044
 
165045
+ destroyed() {
165046
+ this.create = null;
165047
+ this.update = null;
165048
+ this.submit = null;
165049
+ this.cancel = null;
165050
+ this.filter = null;
165051
+ this.result = null;
165052
+ this.switch = null;
165053
+ this.prompt = null;
165054
+ this.format = null;
165055
+ this.output = null;
165056
+ },
165057
+
164974
165058
  watch: {
164975
165059
  values() {
164976
165060
  this.create();
@@ -165062,11 +165146,11 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
165062
165146
  }
165063
165147
  },
165064
165148
 
165065
- filter(form) {
165149
+ filter(form = {}) {
165066
165150
  const data = {};
165067
165151
 
165068
165152
  for (let a in form) {
165069
- if (form[a] != '' && form[a] != '%%' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) data[a] = form[a];
165153
+ if (form[a] != '' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) data[a] = form[a];
165070
165154
  }
165071
165155
 
165072
165156
  return data;
@@ -165142,8 +165226,8 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
165142
165226
  render() {
165143
165227
  const h = arguments[0];
165144
165228
  const {
165145
- submit,
165146
- cancel
165229
+ submit = null,
165230
+ cancel = null
165147
165231
  } = this.$listeners;
165148
165232
  return h("keep-alive", [h("div", {
165149
165233
  "class": "b-f-search",