iov-design 2.15.57 → 2.15.59

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.
Files changed (57) hide show
  1. package/lib/button.js +7 -1
  2. package/lib/cascader.js +291 -57
  3. package/lib/dialog.js +1 -1
  4. package/lib/image.js +1 -1
  5. package/lib/index.js +1 -1
  6. package/lib/iov-design.common.js +327 -70
  7. package/lib/pagination.js +1 -0
  8. package/lib/popover.js +9 -3
  9. package/lib/select.js +6 -2
  10. package/lib/table-column.js +9 -3
  11. package/lib/table.js +1 -1
  12. package/lib/theme-chalk/autocomplete.css +1 -1
  13. package/lib/theme-chalk/base.css +1 -1
  14. package/lib/theme-chalk/button.css +1 -1
  15. package/lib/theme-chalk/calendar.css +1 -1
  16. package/lib/theme-chalk/cascader-panel.css +1 -1
  17. package/lib/theme-chalk/cascader.css +1 -1
  18. package/lib/theme-chalk/date-picker.css +1 -1
  19. package/lib/theme-chalk/dropdown.css +1 -1
  20. package/lib/theme-chalk/index.css +1 -1
  21. package/lib/theme-chalk/iovfont.css +1 -1
  22. package/lib/theme-chalk/message-box.css +1 -1
  23. package/lib/theme-chalk/pagination.css +1 -1
  24. package/lib/theme-chalk/popover.css +1 -1
  25. package/lib/theme-chalk/popper.css +1 -1
  26. package/lib/theme-chalk/select-dropdown.css +1 -1
  27. package/lib/theme-chalk/select.css +1 -1
  28. package/lib/theme-chalk/slider.css +1 -1
  29. package/lib/theme-chalk/table.css +1 -1
  30. package/lib/theme-chalk/time-picker.css +1 -1
  31. package/lib/theme-chalk/time-select.css +1 -1
  32. package/lib/theme-chalk/tooltip.css +1 -1
  33. package/lib/theme-chalk/transfer.css +1 -1
  34. package/package.json +1 -1
  35. package/packages/button/src/button.vue +6 -1
  36. package/packages/cascader/src/cascader.vue +125 -29
  37. package/packages/dialog/src/component.vue +1 -1
  38. package/packages/image/src/image-viewer.vue +1 -1
  39. package/packages/pagination/src/pagination.js +1 -0
  40. package/packages/popover/src/main.vue +3 -1
  41. package/packages/select/src/select.vue +5 -3
  42. package/packages/table/src/config.js +3 -3
  43. package/packages/table/src/table-body.js +1 -1
  44. package/packages/table/src/table-column.js +7 -0
  45. package/packages/theme-chalk/src/button.scss +72 -0
  46. package/packages/theme-chalk/src/cascader-panel.scss +5 -1
  47. package/packages/theme-chalk/src/cascader.scss +61 -22
  48. package/packages/theme-chalk/src/common/popup.scss +2 -2
  49. package/packages/theme-chalk/src/common/var.scss +0 -38
  50. package/packages/theme-chalk/src/date-picker/picker.scss +1 -1
  51. package/packages/theme-chalk/src/iovfont.scss +8 -2
  52. package/packages/theme-chalk/src/popover.scss +18 -12
  53. package/packages/theme-chalk/src/popper.scss +59 -60
  54. package/packages/theme-chalk/src/select.scss +56 -0
  55. package/packages/theme-chalk/src/table.scss +45 -23
  56. package/packages/theme-chalk/src/tooltip.scss +35 -33
  57. package/src/index.js +1 -1
@@ -955,6 +955,7 @@ var util_ = __webpack_require__(2);
955
955
  'el-select',
956
956
  {
957
957
  attrs: {
958
+ fill: true,
958
959
  value: this.$parent.internalPageSize,
959
960
  popperClass: this.$parent.popperClass || '',
960
961
  size: this.$parent.small ? 'mini' : 'small',
@@ -1401,7 +1402,7 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
1401
1402
 
1402
1403
  closeOnClickModal: {
1403
1404
  type: Boolean,
1404
- default: true
1405
+ default: false
1405
1406
  },
1406
1407
 
1407
1408
  closeOnPressEscape: {
@@ -7628,6 +7629,7 @@ var selectvue_type_template_id_0e4aade6_render = function() {
7628
7629
  ],
7629
7630
  staticClass: "el-select",
7630
7631
  class: [
7632
+ _vm.fill ? "is-fill" : "",
7631
7633
  _vm.selectSize ? "el-select--" + _vm.selectSize : "",
7632
7634
  _vm.selectDisabled ? "is-disabled" : ""
7633
7635
  ],
@@ -7645,6 +7647,7 @@ var selectvue_type_template_id_0e4aade6_render = function() {
7645
7647
  {
7646
7648
  ref: "tags",
7647
7649
  staticClass: "el-select__tags",
7650
+ class: { "is-focus": _vm.visible },
7648
7651
  style: {
7649
7652
  "max-width": _vm.inputWidth - 32 + "px",
7650
7653
  width: _vm.inputWidth - _vm.tagsLeft - 32 + "px",
@@ -8742,6 +8745,7 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
8742
8745
  //
8743
8746
  //
8744
8747
  //
8748
+ //
8745
8749
 
8746
8750
 
8747
8751
 
@@ -8936,7 +8940,8 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
8936
8940
  popperAppendToBody: {
8937
8941
  type: Boolean,
8938
8942
  default: true
8939
- }
8943
+ },
8944
+ fill: Boolean
8940
8945
  },
8941
8946
 
8942
8947
  data: function data() {
@@ -9294,7 +9299,7 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
9294
9299
  var inputInner = _this11.$el.querySelector('.el-input__inner');
9295
9300
  var prefixLabelWidth = prefixLabel && Math.round(prefixLabel.getBoundingClientRect().width) || 0;
9296
9301
  var inputPaddingLeft = prefixLabel || prefix ? Math.round(window.getComputedStyle(inputInner).paddingLeft.replace(/px/, '')) : 0;
9297
- _this11.tagsLeft = prefixLabelWidth + inputPaddingLeft;
9302
+ _this11.tagsLeft = prefixLabel ? prefixLabelWidth + inputPaddingLeft - 4 : 0;
9298
9303
  });
9299
9304
  },
9300
9305
  resetInputState: function resetInputState(e) {
@@ -9733,6 +9738,7 @@ var buttonvue_type_template_id_ca859fb4_render = function() {
9733
9738
  staticClass: "el-button",
9734
9739
  class: [
9735
9740
  _vm.type ? "el-button--" + _vm.type : "",
9741
+ _vm.type === "text" && _vm.size ? "el-button--text-" + _vm.color : "",
9736
9742
  _vm.$slots.default ? "" : "is-icon-only",
9737
9743
  _vm.buttonSize ? "el-button--" + _vm.buttonSize : "",
9738
9744
  {
@@ -9795,6 +9801,7 @@ buttonvue_type_template_id_ca859fb4_render._withStripped = true
9795
9801
  //
9796
9802
  //
9797
9803
  //
9804
+ //
9798
9805
 
9799
9806
  /* harmony default export */ var buttonvue_type_script_lang_js_ = ({
9800
9807
  name: 'ElButton',
@@ -9830,7 +9837,11 @@ buttonvue_type_template_id_ca859fb4_render._withStripped = true
9830
9837
  circle: Boolean,
9831
9838
  dashed: Boolean,
9832
9839
  ghost: Boolean,
9833
- block: Boolean
9840
+ block: Boolean,
9841
+ color: {
9842
+ type: String,
9843
+ default: 'primary'
9844
+ }
9834
9845
  },
9835
9846
 
9836
9847
  computed: {
@@ -12548,7 +12559,7 @@ var table_body_extends = Object.assign || function (target) { for (var i = 1; i
12548
12559
  return cellStyle;
12549
12560
  },
12550
12561
  getCellClass: function getCellClass(rowIndex, columnIndex, row, column) {
12551
- var classes = [column.id, column.align, column.className];
12562
+ var classes = [column.id, column.align, column.verticalAlign, column.className];
12552
12563
 
12553
12564
  if (this.isColumnHidden(columnIndex)) {
12554
12565
  classes.push('is-hidden');
@@ -14975,7 +14986,7 @@ var cellForced = {
14975
14986
  'click': callback
14976
14987
  }
14977
14988
  },
14978
- [h('i', { 'class': 'el-icon el-icon-arrow-right' })]
14989
+ [h('i', { 'class': 'el-icon' })]
14979
14990
  );
14980
14991
  },
14981
14992
  sortable: false,
@@ -15014,9 +15025,9 @@ function treeCellPrefix(h, _ref8) {
15014
15025
  }
15015
15026
  if (typeof treeNode.expanded === 'boolean' && !treeNode.noLazyChildren) {
15016
15027
  var expandClasses = ['el-table__expand-icon', treeNode.expanded ? 'el-table__expand-icon--expanded' : ''];
15017
- var iconClasses = ['el-icon-arrow-right'];
15028
+ var iconClasses = ['el-icon'];
15018
15029
  if (treeNode.loading) {
15019
- iconClasses = ['el-icon-loading'];
15030
+ iconClasses = ['iov-icon-loading'];
15020
15031
  }
15021
15032
  ele.push(h(
15022
15033
  'div',
@@ -15069,6 +15080,7 @@ var columnIdSeed = 1;
15069
15080
  },
15070
15081
  columnKey: String,
15071
15082
  align: String,
15083
+ verticalAlign: String,
15072
15084
  headerAlign: String,
15073
15085
  showTooltipWhenOverflow: Boolean,
15074
15086
  showOverflowTooltip: Boolean,
@@ -15131,6 +15143,9 @@ var columnIdSeed = 1;
15131
15143
  realAlign: function realAlign() {
15132
15144
  return this.align ? 'is-' + this.align : null;
15133
15145
  },
15146
+ realVerticalAlign: function realVerticalAlign() {
15147
+ return this.verticalAlign ? 'is-' + this.verticalAlign : null;
15148
+ },
15134
15149
  realHeaderAlign: function realHeaderAlign() {
15135
15150
  return this.headerAlign ? 'is-' + this.headerAlign : this.realAlign;
15136
15151
  }
@@ -15246,6 +15261,7 @@ var columnIdSeed = 1;
15246
15261
  var aliases = {
15247
15262
  prop: 'property',
15248
15263
  realAlign: 'align',
15264
+ realVerticalAlign: 'verticalAlign',
15249
15265
  realHeaderAlign: 'headerAlign',
15250
15266
  realWidth: 'width'
15251
15267
  };
@@ -15309,6 +15325,7 @@ var columnIdSeed = 1;
15309
15325
  type: type,
15310
15326
  property: this.prop || this.property,
15311
15327
  align: this.realAlign,
15328
+ verticalAlign: this.realVerticalAlign,
15312
15329
  headerAlign: this.realHeaderAlign,
15313
15330
  showOverflowTooltip: this.showOverflowTooltip || this.showTooltipWhenOverflow,
15314
15331
  // filter 相关属性
@@ -22119,9 +22136,13 @@ var mainvue_type_template_id_52060272_render = function() {
22119
22136
  domProps: { textContent: _vm._s(_vm.title) }
22120
22137
  })
22121
22138
  : _vm._e(),
22122
- _vm._t("default", [_vm._v(_vm._s(_vm.content))])
22123
- ],
22124
- 2
22139
+ _c(
22140
+ "div",
22141
+ { staticClass: "el-popover__content" },
22142
+ [_vm._t("default", [_vm._v(_vm._s(_vm.content))])],
22143
+ 2
22144
+ )
22145
+ ]
22125
22146
  )
22126
22147
  ]
22127
22148
  ),
@@ -22167,6 +22188,8 @@ mainvue_type_template_id_52060272_render._withStripped = true
22167
22188
  //
22168
22189
  //
22169
22190
  //
22191
+ //
22192
+ //
22170
22193
 
22171
22194
 
22172
22195
 
@@ -35030,32 +35053,169 @@ var cascadervue_type_template_id_032537a6_render = function() {
35030
35053
  ],
35031
35054
  2
35032
35055
  ),
35033
- _vm.multiple
35056
+ _vm.multiple && _vm.collapseTags && _vm.checkedNodes.length
35034
35057
  ? _c(
35035
- "div",
35036
- { staticClass: "el-cascader__tags" },
35058
+ "transition-group",
35059
+ {
35060
+ staticClass: "el-cascader__tags",
35061
+ on: { "after-leave": _vm.updateStyle }
35062
+ },
35037
35063
  [
35038
- _vm._l(_vm.presentTags, function(tag) {
35039
- return _c(
35040
- "el-tag",
35041
- {
35042
- key: tag.key,
35043
- class: { "is-disabled": !tag.closable && tag.key !== -1 },
35064
+ _vm._l(_vm.presentTags, function(tag, index) {
35065
+ return [
35066
+ _vm.collapseTags && index <= _vm.multipleLimitShow - 1
35067
+ ? _c(
35068
+ "el-tag",
35069
+ {
35070
+ key: tag.key,
35071
+ class: {
35072
+ "is-disabled": !tag.closable && tag.key !== -1
35073
+ },
35074
+ attrs: {
35075
+ type: "info",
35076
+ size: _vm.tagSize,
35077
+ hit: tag.hitState,
35078
+ maxWidth: _vm.maxWidth,
35079
+ closable: tag.closable,
35080
+ "disable-transitions": ""
35081
+ },
35082
+ on: {
35083
+ close: function($event) {
35084
+ _vm.deleteTag(tag)
35085
+ }
35086
+ }
35087
+ },
35088
+ [_c("span", [_vm._v(_vm._s(tag.text))])]
35089
+ )
35090
+ : _vm._e()
35091
+ ]
35092
+ }),
35093
+ _vm.collapseTags &&
35094
+ ((_vm.checkedNodes.length > 1 &&
35095
+ _vm.checkedNodes.length > _vm.multipleLimitShow) ||
35096
+ (_vm.checkedNodes.length > 0 && _vm.collapseTagsFixed))
35097
+ ? _c(
35098
+ "el-tag",
35099
+ {
35100
+ key: "count",
35101
+ ref: "tagsCount",
35102
+ staticClass: "el-cascader__tags-count",
35103
+ class: {
35104
+ "el-cascader__tags-count-fixed": _vm.collapseTagsFixed
35105
+ },
35106
+ attrs: {
35107
+ closable: false,
35108
+ size: _vm.tagSize,
35109
+ type: "info",
35110
+ "disable-transitions": ""
35111
+ }
35112
+ },
35113
+ [
35114
+ _c("span", { staticClass: "el-cascader__tags-text" }, [
35115
+ _vm._v(
35116
+ _vm._s(_vm.collapseTagsFixed ? "" : "+") +
35117
+ _vm._s(
35118
+ _vm.collapseTagsFixed
35119
+ ? _vm.checkedNodes.length
35120
+ : _vm.checkedNodes.length -
35121
+ _vm.multipleLimitShow
35122
+ ) +
35123
+ _vm._s(_vm.collapseTagsSuffix)
35124
+ )
35125
+ ])
35126
+ ]
35127
+ )
35128
+ : _vm._e(),
35129
+ _vm.filterable && !_vm.isDisabled
35130
+ ? _c("input", {
35131
+ directives: [
35132
+ {
35133
+ name: "model",
35134
+ rawName: "v-model.trim",
35135
+ value: _vm.inputValue,
35136
+ expression: "inputValue",
35137
+ modifiers: { trim: true }
35138
+ }
35139
+ ],
35140
+ staticClass: "el-cascader__search-input",
35044
35141
  attrs: {
35045
- type: "info",
35046
- size: _vm.tagSize,
35047
- hit: tag.hitState,
35048
- closable: tag.closable,
35049
- "disable-transitions": ""
35142
+ type: "text",
35143
+ placeholder: _vm.presentTags.length ? "" : _vm.placeholder
35050
35144
  },
35145
+ domProps: { value: _vm.inputValue },
35051
35146
  on: {
35052
- close: function($event) {
35053
- _vm.deleteTag(tag)
35147
+ input: [
35148
+ function($event) {
35149
+ if ($event.target.composing) {
35150
+ return
35151
+ }
35152
+ _vm.inputValue = $event.target.value.trim()
35153
+ },
35154
+ function(e) {
35155
+ return _vm.handleInput(_vm.inputValue, e)
35156
+ }
35157
+ ],
35158
+ click: function($event) {
35159
+ $event.stopPropagation()
35160
+ _vm.toggleDropDownVisible(true)
35161
+ },
35162
+ keydown: function($event) {
35163
+ if (
35164
+ !("button" in $event) &&
35165
+ _vm._k(
35166
+ $event.keyCode,
35167
+ "delete",
35168
+ [8, 46],
35169
+ $event.key,
35170
+ ["Backspace", "Delete", "Del"]
35171
+ )
35172
+ ) {
35173
+ return null
35174
+ }
35175
+ return _vm.handleDelete($event)
35176
+ },
35177
+ blur: function($event) {
35178
+ _vm.$forceUpdate()
35054
35179
  }
35055
35180
  }
35056
- },
35057
- [_c("span", [_vm._v(_vm._s(tag.text))])]
35058
- )
35181
+ })
35182
+ : _vm._e()
35183
+ ],
35184
+ 2
35185
+ )
35186
+ : _vm._e(),
35187
+ !_vm.collapseTags
35188
+ ? _c(
35189
+ "transition-group",
35190
+ {
35191
+ staticClass: "el-cascader__tags",
35192
+ on: { "after-leave": _vm.updateStyle }
35193
+ },
35194
+ [
35195
+ _vm._l(_vm.presentTags, function(tag) {
35196
+ return [
35197
+ _c(
35198
+ "el-tag",
35199
+ {
35200
+ key: tag.key,
35201
+ class: { "is-disabled": !tag.closable && tag.key !== -1 },
35202
+ attrs: {
35203
+ type: "info",
35204
+ size: _vm.tagSize,
35205
+ hit: tag.hitState,
35206
+ maxWidth: _vm.maxWidth,
35207
+ closable: tag.closable,
35208
+ "disable-transitions": ""
35209
+ },
35210
+ on: {
35211
+ close: function($event) {
35212
+ _vm.deleteTag(tag)
35213
+ }
35214
+ }
35215
+ },
35216
+ [_c("span", [_vm._v(_vm._s(tag.text))])]
35217
+ )
35218
+ ]
35059
35219
  }),
35060
35220
  _vm.filterable && !_vm.isDisabled
35061
35221
  ? _c("input", {
@@ -35367,6 +35527,47 @@ var aria_utils_default = /*#__PURE__*/__webpack_require__.n(aria_utils_);
35367
35527
  //
35368
35528
  //
35369
35529
  //
35530
+ //
35531
+ //
35532
+ //
35533
+ //
35534
+ //
35535
+ //
35536
+ //
35537
+ //
35538
+ //
35539
+ //
35540
+ //
35541
+ //
35542
+ //
35543
+ //
35544
+ //
35545
+ //
35546
+ //
35547
+ //
35548
+ //
35549
+ //
35550
+ //
35551
+ //
35552
+ //
35553
+ //
35554
+ //
35555
+ //
35556
+ //
35557
+ //
35558
+ //
35559
+ //
35560
+ //
35561
+ //
35562
+ //
35563
+ //
35564
+ //
35565
+ //
35566
+ //
35567
+ //
35568
+ //
35569
+ //
35570
+ //
35370
35571
 
35371
35572
 
35372
35573
 
@@ -35477,6 +35678,22 @@ var InputSizeMap = {
35477
35678
  default: true
35478
35679
  },
35479
35680
  collapseTags: Boolean,
35681
+ multipleLimitShow: {
35682
+ type: Number,
35683
+ default: 1
35684
+ },
35685
+ multipleTagMaxWidth: {
35686
+ type: String,
35687
+ default: 'none'
35688
+ },
35689
+ collapseTagsSuffix: {
35690
+ type: String,
35691
+ default: ''
35692
+ },
35693
+ collapseTagsFixed: {
35694
+ type: Boolean,
35695
+ default: false
35696
+ },
35480
35697
  debounce: {
35481
35698
  type: Number,
35482
35699
  default: 300
@@ -35502,7 +35719,10 @@ var InputSizeMap = {
35502
35719
  filtering: false,
35503
35720
  suggestions: [],
35504
35721
  inputInitialHeight: 0,
35505
- pressDeleteCount: 0
35722
+ pressDeleteCount: 0,
35723
+ inputWidth: 0,
35724
+ tagsLeft: 0,
35725
+ maxWidth: 'none'
35506
35726
  };
35507
35727
  },
35508
35728
 
@@ -35622,6 +35842,8 @@ var InputSizeMap = {
35622
35842
 
35623
35843
  if (input && input.$el) {
35624
35844
  this.inputInitialHeight = Math.max(input.$el.offsetHeight, InputSizeMap[this.realSize]) || 36;
35845
+ this.resetInputWidth();
35846
+ this.resetTagsLeft();
35625
35847
  }
35626
35848
 
35627
35849
  if (!this.isEmptyValue(this.value)) {
@@ -35655,6 +35877,37 @@ var InputSizeMap = {
35655
35877
 
35656
35878
 
35657
35879
  methods: {
35880
+ resetInputWidth: function resetInputWidth() {
35881
+ this.inputWidth = this.$refs.input.$el.getBoundingClientRect().width;
35882
+ },
35883
+ resetTagsLeft: function resetTagsLeft() {
35884
+ var _this2 = this;
35885
+
35886
+ this.$nextTick(function () {
35887
+ var prefixLabel = _this2.$el.querySelector('.el-input-group__prefix-label');
35888
+ var prefix = _this2.$el.querySelector('.el-input__prefix');
35889
+ var inputInner = _this2.$el.querySelector('.el-input__inner');
35890
+ var prefixLabelWidth = prefixLabel && Math.round(prefixLabel.getBoundingClientRect().width) || 0;
35891
+ var inputPaddingLeft = prefixLabel || prefix ? Math.round(window.getComputedStyle(inputInner).paddingLeft.replace(/px/, '')) : 0;
35892
+ _this2.tagsLeft = prefixLabelWidth + inputPaddingLeft;
35893
+ });
35894
+ },
35895
+ getMaxWidth: function getMaxWidth() {
35896
+ var _this3 = this;
35897
+
35898
+ this.$nextTick(function () {
35899
+ if (_this3.collapseTags) {
35900
+ if (_this3.multipleTagMaxWidth && _this3.multipleTagMaxWidth !== 'none') {
35901
+ _this3.maxWidth = _this3.multipleTagMaxWidth;
35902
+ }
35903
+ var tagsCountWidth = _this3.$refs.tagsCount && _this3.$refs.tagsCount.$el.clientWidth || 0;
35904
+ var count = _this3.checkedNodes.length <= _this3.multipleLimitShow ? _this3.checkedNodes.length : _this3.multipleLimitShow;
35905
+ _this3.maxWidth = Math.floor((_this3.inputWidth - _this3.tagsLeft - 32 - tagsCountWidth - 20 - count * 16) / count) + 'px';
35906
+ } else {
35907
+ _this3.maxWidth = _this3.multipleTagMaxWidth || 'none';
35908
+ }
35909
+ });
35910
+ },
35658
35911
  getMigratingConfig: function getMigratingConfig() {
35659
35912
  return {
35660
35913
  props: {
@@ -35668,7 +35921,7 @@ var InputSizeMap = {
35668
35921
  };
35669
35922
  },
35670
35923
  toggleDropDownVisible: function toggleDropDownVisible(visible) {
35671
- var _this2 = this;
35924
+ var _this4 = this;
35672
35925
 
35673
35926
  if (this.isDisabled) return;
35674
35927
 
@@ -35680,8 +35933,8 @@ var InputSizeMap = {
35680
35933
  this.dropDownVisible = visible;
35681
35934
  if (visible) {
35682
35935
  this.$nextTick(function () {
35683
- _this2.updatePopper();
35684
- _this2.panel.scrollIntoView();
35936
+ _this4.updatePopper();
35937
+ _this4.panel.scrollIntoView();
35685
35938
  });
35686
35939
  }
35687
35940
  input.$refs.input.setAttribute('aria-expanded', visible);
@@ -35735,11 +35988,11 @@ var InputSizeMap = {
35735
35988
  this.$emit('active-item-change', value); // Deprecated
35736
35989
  },
35737
35990
  focusFirstNode: function focusFirstNode() {
35738
- var _this3 = this;
35991
+ var _this5 = this;
35739
35992
 
35740
35993
  this.$nextTick(function () {
35741
- var filtering = _this3.filtering;
35742
- var _$refs = _this3.$refs,
35994
+ var filtering = _this5.filtering;
35995
+ var _$refs = _this5.$refs,
35743
35996
  popper = _$refs.popper,
35744
35997
  suggestionPanel = _$refs.suggestionPanel;
35745
35998
 
@@ -35759,15 +36012,15 @@ var InputSizeMap = {
35759
36012
  });
35760
36013
  },
35761
36014
  computePresentContent: function computePresentContent() {
35762
- var _this4 = this;
36015
+ var _this6 = this;
35763
36016
 
35764
36017
  // nextTick is required, because checked nodes may not change right now
35765
36018
  this.$nextTick(function () {
35766
- if (_this4.config.multiple) {
35767
- _this4.computePresentTags();
35768
- _this4.presentText = _this4.presentTags.length ? ' ' : null;
36019
+ if (_this6.config.multiple) {
36020
+ _this6.computePresentTags();
36021
+ _this6.presentText = _this6.presentTags.length ? ' ' : null;
35769
36022
  } else {
35770
- _this4.computePresentText();
36023
+ _this6.computePresentText();
35771
36024
  }
35772
36025
  });
35773
36026
  },
@@ -35797,8 +36050,7 @@ var InputSizeMap = {
35797
36050
  var isDisabled = this.isDisabled,
35798
36051
  leafOnly = this.leafOnly,
35799
36052
  showAllLevels = this.showAllLevels,
35800
- separator = this.separator,
35801
- collapseTags = this.collapseTags;
36053
+ separator = this.separator;
35802
36054
 
35803
36055
  var checkedNodes = this.getCheckedNodes(leafOnly);
35804
36056
  var tags = [];
@@ -35814,32 +36066,34 @@ var InputSizeMap = {
35814
36066
  };
35815
36067
 
35816
36068
  if (checkedNodes.length) {
35817
- var first = checkedNodes[0],
35818
- rest = checkedNodes.slice(1);
35819
-
35820
- var restCount = rest.length;
35821
- tags.push(genTag(first));
35822
-
35823
- if (restCount) {
35824
- if (collapseTags) {
35825
- tags.push({
35826
- key: -1,
35827
- text: '+' + restCount,
35828
- closable: false
35829
- });
35830
- } else {
35831
- rest.forEach(function (node) {
35832
- return tags.push(genTag(node));
35833
- });
35834
- }
35835
- }
36069
+ checkedNodes.forEach(function (node) {
36070
+ return tags.push(genTag(node));
36071
+ });
36072
+ // const [first, ...rest] = checkedNodes;
36073
+ // const restCount = rest.length;
36074
+ // tags.push(genTag(first));
36075
+
36076
+ // console.log(restCount, 'restCount============');
36077
+ // this.restCount = restCount;
36078
+ // if (restCount) {
36079
+ // if (collapseTags) {
36080
+ // tags.push({
36081
+ // key: -1,
36082
+ // text: `+${restCount}`,
36083
+ // closable: false
36084
+ // });
36085
+ // } else {
36086
+ // rest.forEach(node => tags.push(genTag(node)));
36087
+ // }
36088
+ // }
35836
36089
  }
35837
36090
 
35838
36091
  this.checkedNodes = checkedNodes;
35839
36092
  this.presentTags = tags;
36093
+ this.getMaxWidth();
35840
36094
  },
35841
36095
  getSuggestions: function getSuggestions() {
35842
- var _this5 = this;
36096
+ var _this7 = this;
35843
36097
 
35844
36098
  var filterMethod = this.filterMethod;
35845
36099
 
@@ -35852,8 +36106,8 @@ var InputSizeMap = {
35852
36106
 
35853
36107
  var suggestions = this.panel.getFlattedNodes(this.leafOnly).filter(function (node) {
35854
36108
  if (node.isDisabled) return false;
35855
- node.text = node.getText(_this5.showAllLevels, _this5.separator) || '';
35856
- return filterMethod(node, _this5.inputValue);
36109
+ node.text = node.getText(_this7.showAllLevels, _this7.separator) || '';
36110
+ return filterMethod(node, _this7.inputValue);
35857
36111
  });
35858
36112
 
35859
36113
  if (this.multiple) {
@@ -35862,7 +36116,7 @@ var InputSizeMap = {
35862
36116
  });
35863
36117
  } else {
35864
36118
  suggestions.forEach(function (node) {
35865
- node.checked = Object(util_["isEqual"])(_this5.checkedValue, node.getValueByOption());
36119
+ node.checked = Object(util_["isEqual"])(_this7.checkedValue, node.getValueByOption());
35866
36120
  });
35867
36121
  }
35868
36122
 
@@ -35970,7 +36224,10 @@ var InputSizeMap = {
35970
36224
  } else {
35971
36225
  inputInner.style.height = height;
35972
36226
  }
35973
- tags.style.left = prefixLabelWidth + inputPaddingLeft + 'px';
36227
+ tags.style.left = prefixLabel ? prefixLabelWidth + inputPaddingLeft - 4 + 'px' : '0px';
36228
+ if (this.checkedNodes.length === 0 && !prefixLabel) {
36229
+ tags.style.left = '12px';
36230
+ }
35974
36231
  if (this.dropDownVisible) {
35975
36232
  this.updatePopper();
35976
36233
  }
@@ -39658,7 +39915,7 @@ var mousewheelEventName = Object(util_["isFirefox"])() ? 'DOMMouseScroll' : 'mou
39658
39915
  },
39659
39916
  zIndex: {
39660
39917
  type: Number,
39661
- default: 2000
39918
+ default: 2050
39662
39919
  },
39663
39920
  onSwitch: {
39664
39921
  type: Function,
@@ -45075,7 +45332,7 @@ if (typeof window !== 'undefined' && window.Vue) {
45075
45332
  }
45076
45333
 
45077
45334
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
45078
- version: '2.15.57',
45335
+ version: '2.15.59',
45079
45336
  locale: lib_locale_default.a.use,
45080
45337
  i18n: lib_locale_default.a.i18n,
45081
45338
  install: src_install,
package/lib/pagination.js CHANGED
@@ -712,6 +712,7 @@ var util_ = __webpack_require__(3);
712
712
  'el-select',
713
713
  {
714
714
  attrs: {
715
+ fill: true,
715
716
  value: this.$parent.internalPageSize,
716
717
  popperClass: this.$parent.popperClass || '',
717
718
  size: this.$parent.small ? 'mini' : 'small',
package/lib/popover.js CHANGED
@@ -263,9 +263,13 @@ var render = function() {
263
263
  domProps: { textContent: _vm._s(_vm.title) }
264
264
  })
265
265
  : _vm._e(),
266
- _vm._t("default", [_vm._v(_vm._s(_vm.content))])
267
- ],
268
- 2
266
+ _c(
267
+ "div",
268
+ { staticClass: "el-popover__content" },
269
+ [_vm._t("default", [_vm._v(_vm._s(_vm.content))])],
270
+ 2
271
+ )
272
+ ]
269
273
  )
270
274
  ]
271
275
  ),
@@ -321,6 +325,8 @@ var util_ = __webpack_require__(3);
321
325
  //
322
326
  //
323
327
  //
328
+ //
329
+ //
324
330
 
325
331
 
326
332