eoss-ui 0.5.66 → 0.5.67

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.
@@ -1,12 +1,11 @@
1
1
  <template>
2
2
  <div
3
- v-if="isRender"
4
3
  class="es-selector"
5
4
  ref="esSelector"
6
5
  :class="{ 'es-pointer': !readonly && !filterable }"
7
6
  v-clickoutside="handleClose"
8
7
  >
9
- <el-button v-if="button" v-bind="button" @click="openDialog"
8
+ <el-button v-if="button" v-bind="button" @click.stop="openDialog"
10
9
  ><slot>选择</slot></el-button
11
10
  >
12
11
  <template v-else>
@@ -106,6 +105,7 @@
106
105
  readonly
107
106
  :name="name"
108
107
  type="text"
108
+ wqwq
109
109
  v-show="false"
110
110
  ></el-input>
111
111
  </template>
@@ -188,7 +188,6 @@
188
188
  class="es-selector-dialog"
189
189
  >
190
190
  <es-selector-panel
191
- v-if="isReset"
192
191
  v-model="selected"
193
192
  v-bind="$attrs"
194
193
  :multiple="multiple"
@@ -330,13 +329,6 @@ export default {
330
329
  emptySerach: {
331
330
  type: Boolean,
332
331
  default: false
333
- },
334
- reset: Boolean,
335
- useCaseCode: String,
336
- businessData: [String, Array, Object],
337
- inputHeight: {
338
- type: Number,
339
- default: 40
340
332
  }
341
333
  },
342
334
  data() {
@@ -356,16 +348,6 @@ export default {
356
348
  };
357
349
  },
358
350
  computed: {
359
- isRender() {
360
- let useCaseCodes = util.getStorage('useCaseCodes');
361
- if (useCaseCodes && this.useCaseCode) {
362
- return useCaseCodes.indexOf(this.useCaseCode) > -1;
363
- }
364
- return true;
365
- },
366
- isReset() {
367
- return this.reset ? this.visible : true;
368
- },
369
351
  _elFormItemSize() {
370
352
  return (this.elFormItem || {}).elFormItemSize;
371
353
  },
@@ -431,11 +413,7 @@ export default {
431
413
  selected: {
432
414
  deep: true,
433
415
  handler(val) {
434
- this.$emit(
435
- 'change',
436
- Array.isArray(val) ? val : [val],
437
- this.businessData
438
- );
416
+ this.$emit('change', Array.isArray(val) ? val : [val]);
439
417
  if (this.multiple) {
440
418
  this.resetInputHeight();
441
419
  }
@@ -573,11 +551,10 @@ export default {
573
551
  this.visible = false;
574
552
  if (util.isObject(res)) {
575
553
  this.$emit('input', [res]);
576
- this.$emit('confirm', [res], this.businessData);
577
554
  } else {
578
555
  this.$emit('input', res);
579
- this.$emit('confirm', res, this.businessData);
580
556
  }
557
+ this.$emit('confirm', res);
581
558
  let inputChildNodes = this.$refs.reference
582
559
  ? this.$refs.reference.$el.childNodes
583
560
  : null;
@@ -588,9 +565,6 @@ export default {
588
565
  input.focus();
589
566
  input.blur();
590
567
  }
591
- if (this.reset) {
592
- this.selected = [];
593
- }
594
568
  },
595
569
  handleClear() {
596
570
  this.$emit('input', []);
@@ -610,7 +584,7 @@ export default {
610
584
  if (this.collapseTags) return;
611
585
  this.$nextTick(() => {
612
586
  if (!this.$refs.reference) return;
613
- const sizeInMap = this.inputHeight;
587
+ const sizeInMap = this.initialInputHeight || 40;
614
588
  let height = '';
615
589
  if (this.selected !== undefined && this.selected.length === 0) {
616
590
  height = sizeInMap + 'px';
@@ -1 +1 @@
1
- @charset "UTF-8";.el-button-group>.es-selector,.el-button-group>.es-upload{float:left}.el-button-group>.es-selector:first-child>.el-button,.el-button-group>.es-upload:first-child>.el-upload--handle>.el-upload>.el-button{border-top-right-radius:0;border-bottom-right-radius:0}.el-button-group>.es-selector:not(:first-child):not(:last-child)>.el-button,.el-button-group>.es-upload:not(:first-child):not(:last-child)>.el-upload--handle>.el-upload>.el-button{border-radius:0}.el-button-group>.es-selector:last-child>.el-button,.el-button-group>.es-upload:last-child>.el-upload--handle>.el-upload>.el-button{border-top-left-radius:0;border-bottom-left-radius:0}.el-button-group>.es-selector:not(:last-child)>.el-button,.el-button-group>.es-upload:not(:last-child)>.el-upload--handle>.el-upload>.el-button{margin-right:-1px}.es-button-group{display:-webkit-box;display:-ms-flexbox;display:flex}.es-button-group>.el-dropdown>.el-button{border-color:#d9d9d9}.el-button-group>.el-button+.es-button,.el-button-group>.es-button+.el-button,.el-button-group>.es-button+.es-button{margin-left:0}.el-button-group>.es-selector:first-child>.el-button.el-button--danger,.el-button-group>.es-selector:first-child>.el-button.el-button--info,.el-button-group>.es-selector:first-child>.el-button.el-button--primary,.el-button-group>.es-selector:first-child>.el-button.el-button--success,.el-button-group>.es-selector:first-child>.el-button.el-button--warning{border-right-color:rgba(255,255,255,.5)}.el-button-group>.es-selector:not(:first-child):not(:last-child)>.el-button.el-button--danger,.el-button-group>.es-selector:not(:first-child):not(:last-child)>.el-button.el-button--info,.el-button-group>.es-selector:not(:first-child):not(:last-child)>.el-button.el-button--primary,.el-button-group>.es-selector:not(:first-child):not(:last-child)>.el-button.el-button--success,.el-button-group>.es-selector:not(:first-child):not(:last-child)>.el-button.el-button--warning{border-left-color:rgba(255,255,255,.5);border-right-color:rgba(255,255,255,.5)}.el-button-group>.es-selector:last-child>.el-button.el-button--danger,.el-button-group>.es-selector:last-child>.el-button.el-button--info,.el-button-group>.es-selector:last-child>.el-button.el-button--primary,.el-button-group>.es-selector:last-child>.el-button.el-button--success,.el-button-group>.es-selector:last-child>.el-button.el-button--warning{border-left-color:rgba(255,255,255,.5)}.el-button-group>.es-upload:first-child>.el-upload--handle>.el-upload>.el-button.el-button--danger,.el-button-group>.es-upload:first-child>.el-upload--handle>.el-upload>.el-button.el-button--info,.el-button-group>.es-upload:first-child>.el-upload--handle>.el-upload>.el-button.el-button--primary,.el-button-group>.es-upload:first-child>.el-upload--handle>.el-upload>.el-button.el-button--success,.el-button-group>.es-upload:first-child>.el-upload--handle>.el-upload>.el-button.el-button--warning{border-right-color:rgba(255,255,255,.5)}.el-button-group>.es-upload:not(:first-child):not(:last-child)>.el-upload--handle>.el-upload>.el-button.el-button--danger,.el-button-group>.es-upload:not(:first-child):not(:last-child)>.el-upload--handle>.el-upload>.el-button.el-button--info,.el-button-group>.es-upload:not(:first-child):not(:last-child)>.el-upload--handle>.el-upload>.el-button.el-button--primary,.el-button-group>.es-upload:not(:first-child):not(:last-child)>.el-upload--handle>.el-upload>.el-button.el-button--success,.el-button-group>.es-upload:not(:first-child):not(:last-child)>.el-upload--handle>.el-upload>.el-button.el-button--warning{border-left-color:rgba(255,255,255,.5);border-right-color:rgba(255,255,255,.5)}.el-button-group>.es-upload:last-child>.el-upload--handle>.el-upload>.el-button.el-button--danger,.el-button-group>.es-upload:last-child>.el-upload--handle>.el-upload>.el-button.el-button--info,.el-button-group>.es-upload:last-child>.el-upload--handle>.el-upload>.el-button.el-button--primary,.el-button-group>.es-upload:last-child>.el-upload--handle>.el-upload>.el-button.el-button--success,.el-button-group>.es-upload:last-child>.el-upload--handle>.el-upload>.el-button.el-button--warning{border-left-color:rgba(255,255,255,.5)}.es-dropdown-padding{padding:0}.es-dropdown-selector>.el-button,.es-dropdown-upload>.el-upload--handle>.el-upload>.el-button{display:block;width:100%;text-align:left;padding:6px 20px;line-height:24px;font-size:14px;border:0}.es-dropdown-upload>.el-upload--handle,.es-dropdown-upload>.el-upload--handle>.el-upload{display:block}.es-dropdown-upload>.el-upload--handle>.el-upload>.el-button{color:rgba(0,0,0,.75)}.es-dropdown-upload>.el-upload--handle>.el-upload>.el-button:hover{color:#69c0ff}.es-dropdown-selector>.el-button{color:rgba(0,0,0,.75)}.es-dropdown-selector>.el-button:hover{color:#69c0ff}
1
+ @charset "UTF-8";.el-button-group>.es-selector,.el-button-group>.es-upload{float:left}.el-button-group>.es-selector:first-child>.el-button,.el-button-group>.es-upload:first-child>.el-upload--handle>.el-upload>.el-button{border-top-right-radius:0;border-bottom-right-radius:0}.el-button-group>.es-selector:not(:first-child):not(:last-child)>.el-button,.el-button-group>.es-upload:not(:first-child):not(:last-child)>.el-upload--handle>.el-upload>.el-button{border-radius:0}.el-button-group>.es-selector:last-child>.el-button,.el-button-group>.es-upload:last-child>.el-upload--handle>.el-upload>.el-button{border-top-left-radius:0;border-bottom-left-radius:0}.el-button-group>.es-selector:not(:last-child)>.el-button,.el-button-group>.es-upload:not(:last-child)>.el-upload--handle>.el-upload>.el-button{margin-right:-1px}.es-button-group{display:-webkit-box;display:-ms-flexbox;display:flex}.es-button-group>.el-dropdown>.el-button{border-color:#d9d9d9}.el-button-group>.el-button+.es-button,.el-button-group>.es-button+.el-button,.el-button-group>.es-button+.es-button{margin-left:0}.el-button-group>.es-selector:first-child>.el-button.el-button--danger,.el-button-group>.es-selector:first-child>.el-button.el-button--info,.el-button-group>.es-selector:first-child>.el-button.el-button--primary,.el-button-group>.es-selector:first-child>.el-button.el-button--success,.el-button-group>.es-selector:first-child>.el-button.el-button--warning{border-right-color:rgba(255,255,255,.5)}.el-button-group>.es-selector:not(:first-child):not(:last-child)>.el-button.el-button--danger,.el-button-group>.es-selector:not(:first-child):not(:last-child)>.el-button.el-button--info,.el-button-group>.es-selector:not(:first-child):not(:last-child)>.el-button.el-button--primary,.el-button-group>.es-selector:not(:first-child):not(:last-child)>.el-button.el-button--success,.el-button-group>.es-selector:not(:first-child):not(:last-child)>.el-button.el-button--warning{border-left-color:rgba(255,255,255,.5);border-right-color:rgba(255,255,255,.5)}.el-button-group>.es-selector:last-child>.el-button.el-button--danger,.el-button-group>.es-selector:last-child>.el-button.el-button--info,.el-button-group>.es-selector:last-child>.el-button.el-button--primary,.el-button-group>.es-selector:last-child>.el-button.el-button--success,.el-button-group>.es-selector:last-child>.el-button.el-button--warning{border-left-color:rgba(255,255,255,.5)}.el-button-group>.es-upload:first-child>.el-upload--handle>.el-upload>.el-button.el-button--danger,.el-button-group>.es-upload:first-child>.el-upload--handle>.el-upload>.el-button.el-button--info,.el-button-group>.es-upload:first-child>.el-upload--handle>.el-upload>.el-button.el-button--primary,.el-button-group>.es-upload:first-child>.el-upload--handle>.el-upload>.el-button.el-button--success,.el-button-group>.es-upload:first-child>.el-upload--handle>.el-upload>.el-button.el-button--warning{border-right-color:rgba(255,255,255,.5)}.el-button-group>.es-upload:not(:first-child):not(:last-child)>.el-upload--handle>.el-upload>.el-button.el-button--danger,.el-button-group>.es-upload:not(:first-child):not(:last-child)>.el-upload--handle>.el-upload>.el-button.el-button--info,.el-button-group>.es-upload:not(:first-child):not(:last-child)>.el-upload--handle>.el-upload>.el-button.el-button--primary,.el-button-group>.es-upload:not(:first-child):not(:last-child)>.el-upload--handle>.el-upload>.el-button.el-button--success,.el-button-group>.es-upload:not(:first-child):not(:last-child)>.el-upload--handle>.el-upload>.el-button.el-button--warning{border-left-color:rgba(255,255,255,.5);border-right-color:rgba(255,255,255,.5)}.el-button-group>.es-upload:last-child>.el-upload--handle>.el-upload>.el-button.el-button--danger,.el-button-group>.es-upload:last-child>.el-upload--handle>.el-upload>.el-button.el-button--info,.el-button-group>.es-upload:last-child>.el-upload--handle>.el-upload>.el-button.el-button--primary,.el-button-group>.es-upload:last-child>.el-upload--handle>.el-upload>.el-button.el-button--success,.el-button-group>.es-upload:last-child>.el-upload--handle>.el-upload>.el-button.el-button--warning{border-left-color:rgba(255,255,255,.5)}