eoss-ui 0.4.17 → 0.4.18

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.
@@ -12,7 +12,7 @@
12
12
  background-color: #f5f7fa;
13
13
  border-bottom: $--border-base;
14
14
  .es-tree-filtrate {
15
- & + .es-tree-search-item {
15
+ &.es-tree-hasfiltrate + .es-tree-search-item {
16
16
  margin-top: 4px;
17
17
  }
18
18
  }
@@ -46,7 +46,7 @@
46
46
  }
47
47
  }
48
48
  .es-upload-text {
49
- & > .el-upload-list,
49
+ & > .el-upload-list:not(.is-disabled),
50
50
  & > .el-scrollbar {
51
51
  margin-top: 8px;
52
52
  }
@@ -75,8 +75,10 @@
75
75
  }
76
76
  }
77
77
  &.es-upload-text:not(.es-avatar-uploader) {
78
- .el-upload-list__item:first-child {
79
- margin-top: 5px;
78
+ .el-upload-list--text:not(.is-disabled) {
79
+ .el-upload-list__item:first-child {
80
+ margin-top: 5px;
81
+ }
80
82
  }
81
83
  }
82
84
  &.es-avatar-uploader {
@@ -129,3 +131,8 @@
129
131
  }
130
132
  }
131
133
  }
134
+ .el-upload-list--picture.is-disabled {
135
+ .el-upload-list__item:first-child {
136
+ margin-top: 0;
137
+ }
138
+ }
@@ -10,7 +10,10 @@
10
10
  >
11
11
  <div v-if="title" class="es-tree-title">{{ title }}</div>
12
12
  <div class="es-tree-search" v-if="showSearch || $slots.filtrate">
13
- <div class="es-tree-filtrate">
13
+ <div
14
+ class="es-tree-filtrate"
15
+ :class="{ 'es-tree-hasfiltrate': $slots.filtrate }"
16
+ >
14
17
  <slot name="filtrate"></slot>
15
18
  </div>
16
19
  <template v-if="showSearch">
@@ -370,18 +373,18 @@ export default {
370
373
  data: params,
371
374
  params: params
372
375
  })
373
- .then(res => {
376
+ .then((res) => {
374
377
  this.loading = false;
375
378
  if (res.rCode === 0) {
376
379
  this.treeList = JSON.parse(JSON.stringify(res.results));
377
- this.expandedKeys = this.treeList.filter(item => {
380
+ this.expandedKeys = this.treeList.filter((item) => {
378
381
  if (item.open) {
379
382
  return item.id;
380
383
  }
381
384
  });
382
385
  }
383
386
  })
384
- .catch(err => {
387
+ .catch((err) => {
385
388
  if (err.message && err.message !== 'canceled') {
386
389
  this.$message.error(err.message);
387
390
  }
@@ -401,11 +404,11 @@ export default {
401
404
  }
402
405
  if (this.onLoadsub) {
403
406
  this.onLoadsub({ data, params, node })
404
- .then(res => {
407
+ .then((res) => {
405
408
  this.loading = false;
406
409
  this.$set(data, 'children', JSON.parse(JSON.stringify(res)));
407
410
  })
408
- .catch(e => {});
411
+ .catch((e) => {});
409
412
  } else {
410
413
  util
411
414
  .ajax({
@@ -414,7 +417,7 @@ export default {
414
417
  data: params,
415
418
  params: params
416
419
  })
417
- .then(res => {
420
+ .then((res) => {
418
421
  if (res.rCode === 0) {
419
422
  this.loading = false;
420
423
  let results = JSON.parse(JSON.stringify(res.results));
@@ -431,7 +434,7 @@ export default {
431
434
  }
432
435
  }
433
436
  })
434
- .catch(err => {
437
+ .catch((err) => {
435
438
  this.loading = false;
436
439
  if (err.message && err.message !== 'canceled') {
437
440
  this.$message.error(err.message);
@@ -512,7 +515,7 @@ export default {
512
515
  }
513
516
  }
514
517
  } else if (Array.isArray(this.changeData)) {
515
- this.changeData.forEach(item => {
518
+ this.changeData.forEach((item) => {
516
519
  changeData[item] = data[item];
517
520
  });
518
521
  } else {
@@ -532,13 +535,13 @@ export default {
532
535
  let changeData = {};
533
536
  if (util.isObject(this.changeData)) {
534
537
  for (let i in this.changeData) {
535
- changeData[i] = checkeds.map(item => {
538
+ changeData[i] = checkeds.map((item) => {
536
539
  return item[this.changeData[i]];
537
540
  });
538
541
  }
539
542
  } else if (Array.isArray(this.changeData)) {
540
- this.changeData.forEach(item => {
541
- changeData[item] = checkeds.map(ele => {
543
+ this.changeData.forEach((item) => {
544
+ changeData[item] = checkeds.map((ele) => {
542
545
  return ele[this.changeData[i]];
543
546
  });
544
547
  });
@@ -609,7 +612,7 @@ export default {
609
612
  return this.$refs.oaTree.insertAfter(data, refNode);
610
613
  },
611
614
  getKeys(data, result) {
612
- data.forEach(item => {
615
+ data.forEach((item) => {
613
616
  result.push(item.id);
614
617
  if (
615
618
  Object.prototype.hasOwnProperty.call(item, 'children') &&
package/src/index.js CHANGED
@@ -115,7 +115,7 @@ if (typeof window !== 'undefined' && window.Vue) {
115
115
  }
116
116
 
117
117
  export default {
118
- version: '0.4.17',
118
+ version: '0.4.18',
119
119
  install,
120
120
  Button,
121
121
  ButtonGroup,