iov-design 2.15.55 → 2.15.57
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.
- package/lib/index.js +1 -1
- package/lib/input.js +4 -0
- package/lib/iov-design.common.js +121 -56
- package/lib/select.js +89 -50
- package/lib/switch.js +21 -4
- package/lib/tabs.js +6 -1
- package/lib/theme-chalk/autocomplete.css +1 -1
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/cascader.css +1 -1
- package/lib/theme-chalk/date-picker.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/input-number.css +1 -1
- package/lib/theme-chalk/input.css +1 -1
- package/lib/theme-chalk/iovfont.css +1 -1
- package/lib/theme-chalk/message-box.css +1 -1
- package/lib/theme-chalk/pagination.css +1 -1
- package/lib/theme-chalk/select.css +1 -1
- package/lib/theme-chalk/slider.css +1 -1
- package/lib/theme-chalk/switch.css +1 -1
- package/lib/theme-chalk/table-column.css +1 -1
- package/lib/theme-chalk/table.css +1 -1
- package/lib/theme-chalk/tabs.css +1 -1
- package/lib/theme-chalk/tag.css +1 -1
- package/lib/theme-chalk/time-picker.css +1 -1
- package/lib/theme-chalk/transfer.css +1 -1
- package/package.json +1 -1
- package/packages/input/src/input.vue +5 -1
- package/packages/select/src/select.vue +34 -5
- package/packages/switch/src/component.vue +14 -6
- package/packages/tabs/src/tabs.vue +6 -1
- package/packages/theme-chalk/src/cascader.scss +213 -213
- package/packages/theme-chalk/src/input.scss +1 -0
- package/packages/theme-chalk/src/iovfont.scss +37 -4
- package/packages/theme-chalk/src/switch.scss +210 -39
- package/packages/theme-chalk/src/table.scss +2 -1
- package/packages/theme-chalk/src/tabs.scss +68 -4
- package/packages/theme-chalk/src/tag.scss +1 -1
- package/src/index.js +1 -1
package/lib/input.js
CHANGED
|
@@ -951,9 +951,13 @@ var shared_ = __webpack_require__(21);
|
|
|
951
951
|
var isButton = pendantEl.querySelector('.el-button');
|
|
952
952
|
if (isSelect) {
|
|
953
953
|
Object(dom_["addClass"])(pendantEl, 'is-select');
|
|
954
|
+
} else {
|
|
955
|
+
Object(dom_["removeClass"])(pendantEl, 'is-select');
|
|
954
956
|
}
|
|
955
957
|
if (isButton) {
|
|
956
958
|
Object(dom_["addClass"])(pendantEl, 'is-button');
|
|
959
|
+
} else {
|
|
960
|
+
Object(dom_["removeClass"])(pendantEl, 'is-button');
|
|
957
961
|
}
|
|
958
962
|
},
|
|
959
963
|
calcIconOffset: function calcIconOffset(place) {
|
package/lib/iov-design.common.js
CHANGED
|
@@ -5034,9 +5034,13 @@ var shared_ = __webpack_require__(19);
|
|
|
5034
5034
|
var isButton = pendantEl.querySelector('.el-button');
|
|
5035
5035
|
if (isSelect) {
|
|
5036
5036
|
Object(dom_["addClass"])(pendantEl, 'is-select');
|
|
5037
|
+
} else {
|
|
5038
|
+
Object(dom_["removeClass"])(pendantEl, 'is-select');
|
|
5037
5039
|
}
|
|
5038
5040
|
if (isButton) {
|
|
5039
5041
|
Object(dom_["addClass"])(pendantEl, 'is-button');
|
|
5042
|
+
} else {
|
|
5043
|
+
Object(dom_["removeClass"])(pendantEl, 'is-button');
|
|
5040
5044
|
}
|
|
5041
5045
|
},
|
|
5042
5046
|
calcIconOffset: function calcIconOffset(place) {
|
|
@@ -7282,7 +7286,12 @@ var componentvue_type_template_id_2dcd8fbb_render = function() {
|
|
|
7282
7286
|
"div",
|
|
7283
7287
|
{
|
|
7284
7288
|
staticClass: "el-switch",
|
|
7285
|
-
class:
|
|
7289
|
+
class: [
|
|
7290
|
+
_vm.size ? "el-switch--" + _vm.size : "",
|
|
7291
|
+
_vm.type ? "el-switch--" + _vm.type : "",
|
|
7292
|
+
{ "is-disabled": _vm.switchDisabled },
|
|
7293
|
+
{ "is-checked": _vm.checked }
|
|
7294
|
+
],
|
|
7286
7295
|
attrs: {
|
|
7287
7296
|
role: "switch",
|
|
7288
7297
|
"aria-checked": _vm.checked,
|
|
@@ -7327,6 +7336,8 @@ var componentvue_type_template_id_2dcd8fbb_render = function() {
|
|
|
7327
7336
|
class: [
|
|
7328
7337
|
"el-switch__label",
|
|
7329
7338
|
"el-switch__label--left",
|
|
7339
|
+
_vm.inactiveIconClass ? "el-switch__label--left-icon" : "",
|
|
7340
|
+
_vm.inactiveText ? "el-switch__label--left-text" : "",
|
|
7330
7341
|
!_vm.checked ? "is-active" : ""
|
|
7331
7342
|
]
|
|
7332
7343
|
},
|
|
@@ -7345,7 +7356,7 @@ var componentvue_type_template_id_2dcd8fbb_render = function() {
|
|
|
7345
7356
|
_c("span", {
|
|
7346
7357
|
ref: "core",
|
|
7347
7358
|
staticClass: "el-switch__core",
|
|
7348
|
-
style: { width: _vm.coreWidth + "px" }
|
|
7359
|
+
style: { width: _vm.coreWidth > 0 ? _vm.coreWidth + "px" : "" }
|
|
7349
7360
|
}),
|
|
7350
7361
|
_vm.activeIconClass || _vm.activeText
|
|
7351
7362
|
? _c(
|
|
@@ -7354,6 +7365,8 @@ var componentvue_type_template_id_2dcd8fbb_render = function() {
|
|
|
7354
7365
|
class: [
|
|
7355
7366
|
"el-switch__label",
|
|
7356
7367
|
"el-switch__label--right",
|
|
7368
|
+
_vm.activeIconClass ? "el-switch__label--right-icon" : "",
|
|
7369
|
+
_vm.activeText ? "el-switch__label--right-text" : "",
|
|
7357
7370
|
_vm.checked ? "is-active" : ""
|
|
7358
7371
|
]
|
|
7359
7372
|
},
|
|
@@ -7440,7 +7453,7 @@ componentvue_type_template_id_2dcd8fbb_render._withStripped = true
|
|
|
7440
7453
|
},
|
|
7441
7454
|
width: {
|
|
7442
7455
|
type: Number,
|
|
7443
|
-
default:
|
|
7456
|
+
default: 0
|
|
7444
7457
|
},
|
|
7445
7458
|
activeIconClass: {
|
|
7446
7459
|
type: String,
|
|
@@ -7476,6 +7489,14 @@ componentvue_type_template_id_2dcd8fbb_render._withStripped = true
|
|
|
7476
7489
|
type: Boolean,
|
|
7477
7490
|
default: true
|
|
7478
7491
|
},
|
|
7492
|
+
size: {
|
|
7493
|
+
type: String,
|
|
7494
|
+
default: ''
|
|
7495
|
+
},
|
|
7496
|
+
type: {
|
|
7497
|
+
type: String,
|
|
7498
|
+
default: 'circle'
|
|
7499
|
+
},
|
|
7479
7500
|
id: String
|
|
7480
7501
|
},
|
|
7481
7502
|
data: function data() {
|
|
@@ -7548,7 +7569,7 @@ componentvue_type_template_id_2dcd8fbb_render._withStripped = true
|
|
|
7548
7569
|
},
|
|
7549
7570
|
mounted: function mounted() {
|
|
7550
7571
|
/* istanbul ignore if */
|
|
7551
|
-
this.coreWidth = this.width
|
|
7572
|
+
this.coreWidth = this.width;
|
|
7552
7573
|
if (this.activeColor || this.inactiveColor) {
|
|
7553
7574
|
this.setBackgroundColor();
|
|
7554
7575
|
}
|
|
@@ -7647,7 +7668,7 @@ var selectvue_type_template_id_0e4aade6_render = function() {
|
|
|
7647
7668
|
closable: !_vm.selectDisabled,
|
|
7648
7669
|
size: _vm.collapseTagSize,
|
|
7649
7670
|
hit: item.hitState,
|
|
7650
|
-
maxWidth: _vm.
|
|
7671
|
+
maxWidth: _vm.maxWidth,
|
|
7651
7672
|
type: "info",
|
|
7652
7673
|
"disable-transitions": ""
|
|
7653
7674
|
},
|
|
@@ -7668,10 +7689,13 @@ var selectvue_type_template_id_0e4aade6_render = function() {
|
|
|
7668
7689
|
: _vm._e()
|
|
7669
7690
|
]
|
|
7670
7691
|
}),
|
|
7671
|
-
_vm.selected.length > 1
|
|
7692
|
+
(_vm.selected.length > 1 &&
|
|
7693
|
+
_vm.selected.length > _vm.multipleLimitShow) ||
|
|
7694
|
+
(_vm.selected.length > 0 && _vm.collapseTagsFixed)
|
|
7672
7695
|
? _c(
|
|
7673
7696
|
"el-tag",
|
|
7674
7697
|
{
|
|
7698
|
+
ref: "tagsCount",
|
|
7675
7699
|
staticClass: "el-select__tags-count",
|
|
7676
7700
|
class: {
|
|
7677
7701
|
"el-select__tags-count-fixed":
|
|
@@ -7691,7 +7715,12 @@ var selectvue_type_template_id_0e4aade6_render = function() {
|
|
|
7691
7715
|
[
|
|
7692
7716
|
_vm._v(
|
|
7693
7717
|
_vm._s(_vm.collapseTagsFixed ? "" : "+") +
|
|
7694
|
-
_vm._s(
|
|
7718
|
+
_vm._s(
|
|
7719
|
+
_vm.collapseTagsFixed
|
|
7720
|
+
? _vm.selected.length
|
|
7721
|
+
: _vm.selected.length -
|
|
7722
|
+
_vm.multipleLimitShow
|
|
7723
|
+
) +
|
|
7695
7724
|
_vm._s(_vm.collapseTagsSuffix)
|
|
7696
7725
|
)
|
|
7697
7726
|
]
|
|
@@ -7719,7 +7748,7 @@ var selectvue_type_template_id_0e4aade6_render = function() {
|
|
|
7719
7748
|
closable: !item.disabled && !_vm.selectDisabled,
|
|
7720
7749
|
size: _vm.collapseTagSize,
|
|
7721
7750
|
hit: item.hitState,
|
|
7722
|
-
maxWidth: _vm.
|
|
7751
|
+
maxWidth: _vm.maxWidth,
|
|
7723
7752
|
type: "info",
|
|
7724
7753
|
"disable-transitions": ""
|
|
7725
7754
|
},
|
|
@@ -8712,6 +8741,7 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
|
|
|
8712
8741
|
//
|
|
8713
8742
|
//
|
|
8714
8743
|
//
|
|
8744
|
+
//
|
|
8715
8745
|
|
|
8716
8746
|
|
|
8717
8747
|
|
|
@@ -8755,6 +8785,18 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
|
|
|
8755
8785
|
|
|
8756
8786
|
|
|
8757
8787
|
computed: {
|
|
8788
|
+
// maxWidth() {
|
|
8789
|
+
// if (this.collapseTags) {
|
|
8790
|
+
// if (this.multipleTagMaxWidth && this.multipleTagMaxWidth !== 'none') {
|
|
8791
|
+
// return this.multipleTagMaxWidth;
|
|
8792
|
+
// }
|
|
8793
|
+
// const tagsCountWidth = this.$refs.tagsCount && this.$refs.tagsCount.$el.clientWidth || 0;
|
|
8794
|
+
// const count = this.selected.length <= this.multipleLimitShow ? this.selected.length : this.multipleLimitShow;
|
|
8795
|
+
// return Math.floor((this.inputWidth - this.tagsLeft - 32 - tagsCountWidth - 20 - count * 16) / count) + 'px';
|
|
8796
|
+
// } else {
|
|
8797
|
+
// return this.multipleTagMaxWidth || 'none';
|
|
8798
|
+
// }
|
|
8799
|
+
// },
|
|
8758
8800
|
_elFormItemSize: function _elFormItemSize() {
|
|
8759
8801
|
return (this.elFormItem || {}).elFormItemSize;
|
|
8760
8802
|
},
|
|
@@ -8921,7 +8963,8 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
|
|
|
8921
8963
|
menuVisibleOnFocus: false,
|
|
8922
8964
|
isOnComposition: false,
|
|
8923
8965
|
isSilentBlur: false,
|
|
8924
|
-
tagsLeft: 0
|
|
8966
|
+
tagsLeft: 0,
|
|
8967
|
+
maxWidth: 'none'
|
|
8925
8968
|
};
|
|
8926
8969
|
},
|
|
8927
8970
|
|
|
@@ -8949,6 +8992,7 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
|
|
|
8949
8992
|
this.query = '';
|
|
8950
8993
|
this.handleQueryChange(this.query);
|
|
8951
8994
|
}
|
|
8995
|
+
this.getMaxWidth();
|
|
8952
8996
|
}
|
|
8953
8997
|
this.setSelected();
|
|
8954
8998
|
if (this.filterable && !this.multiple) {
|
|
@@ -9034,19 +9078,35 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
|
|
|
9034
9078
|
},
|
|
9035
9079
|
|
|
9036
9080
|
methods: {
|
|
9081
|
+
getMaxWidth: function getMaxWidth() {
|
|
9082
|
+
var _this5 = this;
|
|
9083
|
+
|
|
9084
|
+
this.$nextTick(function () {
|
|
9085
|
+
if (_this5.collapseTags) {
|
|
9086
|
+
if (_this5.multipleTagMaxWidth && _this5.multipleTagMaxWidth !== 'none') {
|
|
9087
|
+
_this5.maxWidth = _this5.multipleTagMaxWidth;
|
|
9088
|
+
}
|
|
9089
|
+
var tagsCountWidth = _this5.$refs.tagsCount && _this5.$refs.tagsCount.$el.clientWidth || 0;
|
|
9090
|
+
var count = _this5.selected.length <= _this5.multipleLimitShow ? _this5.selected.length : _this5.multipleLimitShow;
|
|
9091
|
+
_this5.maxWidth = Math.floor((_this5.inputWidth - _this5.tagsLeft - 32 - tagsCountWidth - 20 - count * 16) / count) + 'px';
|
|
9092
|
+
} else {
|
|
9093
|
+
_this5.maxWidth = _this5.multipleTagMaxWidth || 'none';
|
|
9094
|
+
}
|
|
9095
|
+
});
|
|
9096
|
+
},
|
|
9037
9097
|
handleNavigate: function handleNavigate(direction) {
|
|
9038
9098
|
if (this.isOnComposition) return;
|
|
9039
9099
|
|
|
9040
9100
|
this.navigateOptions(direction);
|
|
9041
9101
|
},
|
|
9042
9102
|
handleComposition: function handleComposition(event) {
|
|
9043
|
-
var
|
|
9103
|
+
var _this6 = this;
|
|
9044
9104
|
|
|
9045
9105
|
var text = event.target.value;
|
|
9046
9106
|
if (event.type === 'compositionend') {
|
|
9047
9107
|
this.isOnComposition = false;
|
|
9048
9108
|
this.$nextTick(function (_) {
|
|
9049
|
-
return
|
|
9109
|
+
return _this6.handleQueryChange(text);
|
|
9050
9110
|
});
|
|
9051
9111
|
} else {
|
|
9052
9112
|
var lastCharacter = text[text.length - 1] || '';
|
|
@@ -9054,7 +9114,7 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
|
|
|
9054
9114
|
}
|
|
9055
9115
|
},
|
|
9056
9116
|
handleQueryChange: function handleQueryChange(val) {
|
|
9057
|
-
var
|
|
9117
|
+
var _this7 = this;
|
|
9058
9118
|
|
|
9059
9119
|
if (this.previousQuery === val || this.isOnComposition) return;
|
|
9060
9120
|
if (this.previousQuery === null && (typeof this.filterMethod === 'function' || typeof this.remoteMethod === 'function')) {
|
|
@@ -9063,15 +9123,15 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
|
|
|
9063
9123
|
}
|
|
9064
9124
|
this.previousQuery = val;
|
|
9065
9125
|
this.$nextTick(function () {
|
|
9066
|
-
if (
|
|
9126
|
+
if (_this7.visible) _this7.broadcast('ElSelectDropdown', 'updatePopper');
|
|
9067
9127
|
});
|
|
9068
9128
|
this.hoverIndex = -1;
|
|
9069
9129
|
if (this.multiple && this.filterable) {
|
|
9070
9130
|
this.$nextTick(function () {
|
|
9071
|
-
var length =
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9131
|
+
var length = _this7.$refs.input.value.length * 15 + 20;
|
|
9132
|
+
_this7.inputLength = _this7.collapseTags ? Math.min(50, length) : length;
|
|
9133
|
+
_this7.managePlaceholder();
|
|
9134
|
+
_this7.resetInputHeight();
|
|
9075
9135
|
});
|
|
9076
9136
|
}
|
|
9077
9137
|
if (this.remote && typeof this.remoteMethod === 'function') {
|
|
@@ -9098,10 +9158,10 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
|
|
|
9098
9158
|
this.$refs.scrollbar && this.$refs.scrollbar.handleScroll();
|
|
9099
9159
|
},
|
|
9100
9160
|
handleMenuEnter: function handleMenuEnter() {
|
|
9101
|
-
var
|
|
9161
|
+
var _this8 = this;
|
|
9102
9162
|
|
|
9103
9163
|
this.$nextTick(function () {
|
|
9104
|
-
return
|
|
9164
|
+
return _this8.scrollToOption(_this8.selected);
|
|
9105
9165
|
});
|
|
9106
9166
|
},
|
|
9107
9167
|
emitChange: function emitChange(val) {
|
|
@@ -9135,7 +9195,7 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
|
|
|
9135
9195
|
return newOption;
|
|
9136
9196
|
},
|
|
9137
9197
|
setSelected: function setSelected() {
|
|
9138
|
-
var
|
|
9198
|
+
var _this9 = this;
|
|
9139
9199
|
|
|
9140
9200
|
if (!this.multiple) {
|
|
9141
9201
|
var option = this.getOption(this.value);
|
|
@@ -9153,12 +9213,12 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
|
|
|
9153
9213
|
var result = [];
|
|
9154
9214
|
if (Array.isArray(this.value)) {
|
|
9155
9215
|
this.value.forEach(function (value) {
|
|
9156
|
-
result.push(
|
|
9216
|
+
result.push(_this9.getOption(value));
|
|
9157
9217
|
});
|
|
9158
9218
|
}
|
|
9159
9219
|
this.selected = result;
|
|
9160
9220
|
this.$nextTick(function () {
|
|
9161
|
-
|
|
9221
|
+
_this9.resetInputHeight();
|
|
9162
9222
|
});
|
|
9163
9223
|
},
|
|
9164
9224
|
handleFocus: function handleFocus(event) {
|
|
@@ -9179,13 +9239,13 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
|
|
|
9179
9239
|
this.$refs.reference.blur();
|
|
9180
9240
|
},
|
|
9181
9241
|
handleBlur: function handleBlur(event) {
|
|
9182
|
-
var
|
|
9242
|
+
var _this10 = this;
|
|
9183
9243
|
|
|
9184
9244
|
setTimeout(function () {
|
|
9185
|
-
if (
|
|
9186
|
-
|
|
9245
|
+
if (_this10.isSilentBlur) {
|
|
9246
|
+
_this10.isSilentBlur = false;
|
|
9187
9247
|
} else {
|
|
9188
|
-
|
|
9248
|
+
_this10.$emit('blur', event);
|
|
9189
9249
|
}
|
|
9190
9250
|
}, 50);
|
|
9191
9251
|
this.softFocus = false;
|
|
@@ -9226,15 +9286,15 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
|
|
|
9226
9286
|
}
|
|
9227
9287
|
},
|
|
9228
9288
|
resetTagsLeft: function resetTagsLeft() {
|
|
9229
|
-
var
|
|
9289
|
+
var _this11 = this;
|
|
9230
9290
|
|
|
9231
9291
|
this.$nextTick(function () {
|
|
9232
|
-
var prefixLabel =
|
|
9233
|
-
var prefix =
|
|
9234
|
-
var inputInner =
|
|
9292
|
+
var prefixLabel = _this11.$el.querySelector('.el-input-group__prefix-label');
|
|
9293
|
+
var prefix = _this11.$el.querySelector('.el-input__prefix');
|
|
9294
|
+
var inputInner = _this11.$el.querySelector('.el-input__inner');
|
|
9235
9295
|
var prefixLabelWidth = prefixLabel && Math.round(prefixLabel.getBoundingClientRect().width) || 0;
|
|
9236
9296
|
var inputPaddingLeft = prefixLabel || prefix ? Math.round(window.getComputedStyle(inputInner).paddingLeft.replace(/px/, '')) : 0;
|
|
9237
|
-
|
|
9297
|
+
_this11.tagsLeft = prefixLabelWidth + inputPaddingLeft;
|
|
9238
9298
|
});
|
|
9239
9299
|
},
|
|
9240
9300
|
resetInputState: function resetInputState(e) {
|
|
@@ -9243,42 +9303,42 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
|
|
|
9243
9303
|
this.resetInputHeight();
|
|
9244
9304
|
},
|
|
9245
9305
|
resetInputHeight: function resetInputHeight() {
|
|
9246
|
-
var
|
|
9306
|
+
var _this12 = this;
|
|
9247
9307
|
|
|
9248
9308
|
if (this.collapseTags && !this.filterable) return;
|
|
9249
9309
|
this.$nextTick(function () {
|
|
9250
|
-
if (!
|
|
9251
|
-
var inputInner =
|
|
9252
|
-
var groupPrefix =
|
|
9310
|
+
if (!_this12.$refs.reference) return;
|
|
9311
|
+
var inputInner = _this12.$el.querySelector('.el-input__inner');
|
|
9312
|
+
var groupPrefix = _this12.$el.querySelector('.el-input-group--prefix');
|
|
9253
9313
|
var input = groupPrefix || inputInner;
|
|
9254
|
-
var tags =
|
|
9314
|
+
var tags = _this12.$refs.tags;
|
|
9255
9315
|
var tagsHeight = tags ? Math.round(tags.getBoundingClientRect().height) : 0;
|
|
9256
|
-
var sizeInMap =
|
|
9257
|
-
input.style.height =
|
|
9258
|
-
if (
|
|
9259
|
-
|
|
9316
|
+
var sizeInMap = _this12.initialInputHeight || 36;
|
|
9317
|
+
input.style.height = _this12.selected.length === 0 ? sizeInMap + 'px' : Math.max(tags ? tagsHeight + (tagsHeight > sizeInMap ? 6 : 0) : 0, sizeInMap) + 'px';
|
|
9318
|
+
if (_this12.visible && _this12.emptyText !== false) {
|
|
9319
|
+
_this12.broadcast('ElSelectDropdown', 'updatePopper');
|
|
9260
9320
|
}
|
|
9261
9321
|
});
|
|
9262
9322
|
},
|
|
9263
9323
|
resetHoverIndex: function resetHoverIndex() {
|
|
9264
|
-
var
|
|
9324
|
+
var _this13 = this;
|
|
9265
9325
|
|
|
9266
9326
|
setTimeout(function () {
|
|
9267
|
-
if (!
|
|
9268
|
-
|
|
9327
|
+
if (!_this13.multiple) {
|
|
9328
|
+
_this13.hoverIndex = _this13.options.indexOf(_this13.selected);
|
|
9269
9329
|
} else {
|
|
9270
|
-
if (
|
|
9271
|
-
|
|
9272
|
-
return
|
|
9330
|
+
if (_this13.selected.length > 0) {
|
|
9331
|
+
_this13.hoverIndex = Math.min.apply(null, _this13.selected.map(function (item) {
|
|
9332
|
+
return _this13.options.indexOf(item);
|
|
9273
9333
|
}));
|
|
9274
9334
|
} else {
|
|
9275
|
-
|
|
9335
|
+
_this13.hoverIndex = -1;
|
|
9276
9336
|
}
|
|
9277
9337
|
}
|
|
9278
9338
|
}, 300);
|
|
9279
9339
|
},
|
|
9280
9340
|
handleOptionSelect: function handleOptionSelect(option, byClick) {
|
|
9281
|
-
var
|
|
9341
|
+
var _this14 = this;
|
|
9282
9342
|
|
|
9283
9343
|
if (this.multiple) {
|
|
9284
9344
|
var value = (this.value || []).slice();
|
|
@@ -9305,7 +9365,7 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
|
|
|
9305
9365
|
// this.setSoftFocus();
|
|
9306
9366
|
if (this.visible) return;
|
|
9307
9367
|
this.$nextTick(function () {
|
|
9308
|
-
|
|
9368
|
+
_this14.scrollToOption(option);
|
|
9309
9369
|
});
|
|
9310
9370
|
},
|
|
9311
9371
|
setSoftFocus: function setSoftFocus() {
|
|
@@ -9438,7 +9498,7 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
|
|
|
9438
9498
|
},
|
|
9439
9499
|
|
|
9440
9500
|
created: function created() {
|
|
9441
|
-
var
|
|
9501
|
+
var _this15 = this;
|
|
9442
9502
|
|
|
9443
9503
|
this.cachedPlaceHolder = this.currentPlaceholder = this.propPlaceholder;
|
|
9444
9504
|
if (this.multiple && !Array.isArray(this.value)) {
|
|
@@ -9449,18 +9509,18 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
|
|
|
9449
9509
|
}
|
|
9450
9510
|
|
|
9451
9511
|
this.debouncedOnInputChange = debounce_default()(this.debounce, function () {
|
|
9452
|
-
|
|
9512
|
+
_this15.onInputChange();
|
|
9453
9513
|
});
|
|
9454
9514
|
|
|
9455
9515
|
this.debouncedQueryChange = debounce_default()(this.debounce, function (e) {
|
|
9456
|
-
|
|
9516
|
+
_this15.handleQueryChange(e.target.value);
|
|
9457
9517
|
});
|
|
9458
9518
|
|
|
9459
9519
|
this.$on('handleOptionClick', this.handleOptionSelect);
|
|
9460
9520
|
this.$on('setSelected', this.setSelected);
|
|
9461
9521
|
},
|
|
9462
9522
|
mounted: function mounted() {
|
|
9463
|
-
var
|
|
9523
|
+
var _this16 = this;
|
|
9464
9524
|
|
|
9465
9525
|
if (this.multiple && Array.isArray(this.value) && this.value.length > 0) {
|
|
9466
9526
|
this.currentPlaceholder = '';
|
|
@@ -9482,7 +9542,7 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
|
|
|
9482
9542
|
}
|
|
9483
9543
|
this.$nextTick(function () {
|
|
9484
9544
|
if (reference && reference.$el) {
|
|
9485
|
-
|
|
9545
|
+
_this16.inputWidth = reference.$el.getBoundingClientRect().width;
|
|
9486
9546
|
}
|
|
9487
9547
|
});
|
|
9488
9548
|
this.setSelected();
|
|
@@ -25083,7 +25143,11 @@ tab_nav_component.options.__file = "packages/tabs/src/tab-nav.vue"
|
|
|
25083
25143
|
default: 'top'
|
|
25084
25144
|
},
|
|
25085
25145
|
beforeLeave: Function,
|
|
25086
|
-
stretch: Boolean
|
|
25146
|
+
stretch: Boolean,
|
|
25147
|
+
primary: {
|
|
25148
|
+
type: Boolean,
|
|
25149
|
+
default: false
|
|
25150
|
+
}
|
|
25087
25151
|
},
|
|
25088
25152
|
|
|
25089
25153
|
provide: function provide() {
|
|
@@ -25249,6 +25313,7 @@ tab_nav_component.options.__file = "packages/tabs/src/tab-nav.vue"
|
|
|
25249
25313
|
'el-tabs': true,
|
|
25250
25314
|
'el-tabs--normal': !type,
|
|
25251
25315
|
'el-tabs--card': type === 'card',
|
|
25316
|
+
'el-tabs--card-primary': type === 'card' && this.primary,
|
|
25252
25317
|
'el-tabs--capsule': type === 'capsule'
|
|
25253
25318
|
}, _ref2['el-tabs--' + size] = size, _ref2['el-tabs--' + tabPosition] = true, _ref2['el-tabs--border-card'] = type === 'border-card', _ref2) },
|
|
25254
25319
|
[tabPosition !== 'bottom' ? [header, panels] : [panels, header]]
|
|
@@ -45010,7 +45075,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
45010
45075
|
}
|
|
45011
45076
|
|
|
45012
45077
|
/* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
|
|
45013
|
-
version: '2.15.
|
|
45078
|
+
version: '2.15.57',
|
|
45014
45079
|
locale: lib_locale_default.a.use,
|
|
45015
45080
|
i18n: lib_locale_default.a.i18n,
|
|
45016
45081
|
install: src_install,
|