iov-design 2.15.57 → 2.15.58
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/cascader.js +291 -57
- package/lib/index.js +1 -1
- package/lib/iov-design.common.js +306 -61
- package/lib/pagination.js +1 -0
- package/lib/select.js +6 -2
- package/lib/table-column.js +6 -0
- package/lib/table.js +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/pagination.css +1 -1
- package/lib/theme-chalk/select.css +1 -1
- package/lib/theme-chalk/table.css +1 -1
- package/lib/theme-chalk/time-picker.css +1 -1
- package/lib/theme-chalk/time-select.css +1 -1
- package/package.json +1 -1
- package/packages/cascader/src/cascader.vue +125 -29
- package/packages/pagination/src/pagination.js +1 -0
- package/packages/select/src/select.vue +5 -3
- package/packages/table/src/table-body.js +1 -1
- package/packages/table/src/table-column.js +7 -0
- package/packages/theme-chalk/src/cascader.scss +61 -22
- package/packages/theme-chalk/src/date-picker/picker.scss +1 -1
- package/packages/theme-chalk/src/select.scss +56 -0
- package/packages/theme-chalk/src/table.scss +9 -1
- package/src/index.js +1 -1
package/lib/iov-design.common.js
CHANGED
|
@@ -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',
|
|
@@ -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) {
|
|
@@ -12548,7 +12553,7 @@ var table_body_extends = Object.assign || function (target) { for (var i = 1; i
|
|
|
12548
12553
|
return cellStyle;
|
|
12549
12554
|
},
|
|
12550
12555
|
getCellClass: function getCellClass(rowIndex, columnIndex, row, column) {
|
|
12551
|
-
var classes = [column.id, column.align, column.className];
|
|
12556
|
+
var classes = [column.id, column.align, column.verticalAlign, column.className];
|
|
12552
12557
|
|
|
12553
12558
|
if (this.isColumnHidden(columnIndex)) {
|
|
12554
12559
|
classes.push('is-hidden');
|
|
@@ -15069,6 +15074,7 @@ var columnIdSeed = 1;
|
|
|
15069
15074
|
},
|
|
15070
15075
|
columnKey: String,
|
|
15071
15076
|
align: String,
|
|
15077
|
+
verticalAlign: String,
|
|
15072
15078
|
headerAlign: String,
|
|
15073
15079
|
showTooltipWhenOverflow: Boolean,
|
|
15074
15080
|
showOverflowTooltip: Boolean,
|
|
@@ -15131,6 +15137,9 @@ var columnIdSeed = 1;
|
|
|
15131
15137
|
realAlign: function realAlign() {
|
|
15132
15138
|
return this.align ? 'is-' + this.align : null;
|
|
15133
15139
|
},
|
|
15140
|
+
realVerticalAlign: function realVerticalAlign() {
|
|
15141
|
+
return this.verticalAlign ? 'is-' + this.verticalAlign : null;
|
|
15142
|
+
},
|
|
15134
15143
|
realHeaderAlign: function realHeaderAlign() {
|
|
15135
15144
|
return this.headerAlign ? 'is-' + this.headerAlign : this.realAlign;
|
|
15136
15145
|
}
|
|
@@ -15246,6 +15255,7 @@ var columnIdSeed = 1;
|
|
|
15246
15255
|
var aliases = {
|
|
15247
15256
|
prop: 'property',
|
|
15248
15257
|
realAlign: 'align',
|
|
15258
|
+
realVerticalAlign: 'verticalAlign',
|
|
15249
15259
|
realHeaderAlign: 'headerAlign',
|
|
15250
15260
|
realWidth: 'width'
|
|
15251
15261
|
};
|
|
@@ -15309,6 +15319,7 @@ var columnIdSeed = 1;
|
|
|
15309
15319
|
type: type,
|
|
15310
15320
|
property: this.prop || this.property,
|
|
15311
15321
|
align: this.realAlign,
|
|
15322
|
+
verticalAlign: this.realVerticalAlign,
|
|
15312
15323
|
headerAlign: this.realHeaderAlign,
|
|
15313
15324
|
showOverflowTooltip: this.showOverflowTooltip || this.showTooltipWhenOverflow,
|
|
15314
15325
|
// filter 相关属性
|
|
@@ -35030,32 +35041,169 @@ var cascadervue_type_template_id_032537a6_render = function() {
|
|
|
35030
35041
|
],
|
|
35031
35042
|
2
|
|
35032
35043
|
),
|
|
35033
|
-
_vm.multiple
|
|
35044
|
+
_vm.multiple && _vm.collapseTags && _vm.checkedNodes.length
|
|
35034
35045
|
? _c(
|
|
35035
|
-
"
|
|
35036
|
-
{
|
|
35046
|
+
"transition-group",
|
|
35047
|
+
{
|
|
35048
|
+
staticClass: "el-cascader__tags",
|
|
35049
|
+
on: { "after-leave": _vm.updateStyle }
|
|
35050
|
+
},
|
|
35037
35051
|
[
|
|
35038
|
-
_vm._l(_vm.presentTags, function(tag) {
|
|
35039
|
-
return
|
|
35040
|
-
|
|
35041
|
-
|
|
35042
|
-
|
|
35043
|
-
|
|
35052
|
+
_vm._l(_vm.presentTags, function(tag, index) {
|
|
35053
|
+
return [
|
|
35054
|
+
_vm.collapseTags && index <= _vm.multipleLimitShow - 1
|
|
35055
|
+
? _c(
|
|
35056
|
+
"el-tag",
|
|
35057
|
+
{
|
|
35058
|
+
key: tag.key,
|
|
35059
|
+
class: {
|
|
35060
|
+
"is-disabled": !tag.closable && tag.key !== -1
|
|
35061
|
+
},
|
|
35062
|
+
attrs: {
|
|
35063
|
+
type: "info",
|
|
35064
|
+
size: _vm.tagSize,
|
|
35065
|
+
hit: tag.hitState,
|
|
35066
|
+
maxWidth: _vm.maxWidth,
|
|
35067
|
+
closable: tag.closable,
|
|
35068
|
+
"disable-transitions": ""
|
|
35069
|
+
},
|
|
35070
|
+
on: {
|
|
35071
|
+
close: function($event) {
|
|
35072
|
+
_vm.deleteTag(tag)
|
|
35073
|
+
}
|
|
35074
|
+
}
|
|
35075
|
+
},
|
|
35076
|
+
[_c("span", [_vm._v(_vm._s(tag.text))])]
|
|
35077
|
+
)
|
|
35078
|
+
: _vm._e()
|
|
35079
|
+
]
|
|
35080
|
+
}),
|
|
35081
|
+
_vm.collapseTags &&
|
|
35082
|
+
((_vm.checkedNodes.length > 1 &&
|
|
35083
|
+
_vm.checkedNodes.length > _vm.multipleLimitShow) ||
|
|
35084
|
+
(_vm.checkedNodes.length > 0 && _vm.collapseTagsFixed))
|
|
35085
|
+
? _c(
|
|
35086
|
+
"el-tag",
|
|
35087
|
+
{
|
|
35088
|
+
key: "count",
|
|
35089
|
+
ref: "tagsCount",
|
|
35090
|
+
staticClass: "el-cascader__tags-count",
|
|
35091
|
+
class: {
|
|
35092
|
+
"el-cascader__tags-count-fixed": _vm.collapseTagsFixed
|
|
35093
|
+
},
|
|
35094
|
+
attrs: {
|
|
35095
|
+
closable: false,
|
|
35096
|
+
size: _vm.tagSize,
|
|
35097
|
+
type: "info",
|
|
35098
|
+
"disable-transitions": ""
|
|
35099
|
+
}
|
|
35100
|
+
},
|
|
35101
|
+
[
|
|
35102
|
+
_c("span", { staticClass: "el-cascader__tags-text" }, [
|
|
35103
|
+
_vm._v(
|
|
35104
|
+
_vm._s(_vm.collapseTagsFixed ? "" : "+") +
|
|
35105
|
+
_vm._s(
|
|
35106
|
+
_vm.collapseTagsFixed
|
|
35107
|
+
? _vm.checkedNodes.length
|
|
35108
|
+
: _vm.checkedNodes.length -
|
|
35109
|
+
_vm.multipleLimitShow
|
|
35110
|
+
) +
|
|
35111
|
+
_vm._s(_vm.collapseTagsSuffix)
|
|
35112
|
+
)
|
|
35113
|
+
])
|
|
35114
|
+
]
|
|
35115
|
+
)
|
|
35116
|
+
: _vm._e(),
|
|
35117
|
+
_vm.filterable && !_vm.isDisabled
|
|
35118
|
+
? _c("input", {
|
|
35119
|
+
directives: [
|
|
35120
|
+
{
|
|
35121
|
+
name: "model",
|
|
35122
|
+
rawName: "v-model.trim",
|
|
35123
|
+
value: _vm.inputValue,
|
|
35124
|
+
expression: "inputValue",
|
|
35125
|
+
modifiers: { trim: true }
|
|
35126
|
+
}
|
|
35127
|
+
],
|
|
35128
|
+
staticClass: "el-cascader__search-input",
|
|
35044
35129
|
attrs: {
|
|
35045
|
-
type: "
|
|
35046
|
-
|
|
35047
|
-
hit: tag.hitState,
|
|
35048
|
-
closable: tag.closable,
|
|
35049
|
-
"disable-transitions": ""
|
|
35130
|
+
type: "text",
|
|
35131
|
+
placeholder: _vm.presentTags.length ? "" : _vm.placeholder
|
|
35050
35132
|
},
|
|
35133
|
+
domProps: { value: _vm.inputValue },
|
|
35051
35134
|
on: {
|
|
35052
|
-
|
|
35053
|
-
|
|
35135
|
+
input: [
|
|
35136
|
+
function($event) {
|
|
35137
|
+
if ($event.target.composing) {
|
|
35138
|
+
return
|
|
35139
|
+
}
|
|
35140
|
+
_vm.inputValue = $event.target.value.trim()
|
|
35141
|
+
},
|
|
35142
|
+
function(e) {
|
|
35143
|
+
return _vm.handleInput(_vm.inputValue, e)
|
|
35144
|
+
}
|
|
35145
|
+
],
|
|
35146
|
+
click: function($event) {
|
|
35147
|
+
$event.stopPropagation()
|
|
35148
|
+
_vm.toggleDropDownVisible(true)
|
|
35149
|
+
},
|
|
35150
|
+
keydown: function($event) {
|
|
35151
|
+
if (
|
|
35152
|
+
!("button" in $event) &&
|
|
35153
|
+
_vm._k(
|
|
35154
|
+
$event.keyCode,
|
|
35155
|
+
"delete",
|
|
35156
|
+
[8, 46],
|
|
35157
|
+
$event.key,
|
|
35158
|
+
["Backspace", "Delete", "Del"]
|
|
35159
|
+
)
|
|
35160
|
+
) {
|
|
35161
|
+
return null
|
|
35162
|
+
}
|
|
35163
|
+
return _vm.handleDelete($event)
|
|
35164
|
+
},
|
|
35165
|
+
blur: function($event) {
|
|
35166
|
+
_vm.$forceUpdate()
|
|
35054
35167
|
}
|
|
35055
35168
|
}
|
|
35056
|
-
}
|
|
35057
|
-
|
|
35058
|
-
|
|
35169
|
+
})
|
|
35170
|
+
: _vm._e()
|
|
35171
|
+
],
|
|
35172
|
+
2
|
|
35173
|
+
)
|
|
35174
|
+
: _vm._e(),
|
|
35175
|
+
!_vm.collapseTags
|
|
35176
|
+
? _c(
|
|
35177
|
+
"transition-group",
|
|
35178
|
+
{
|
|
35179
|
+
staticClass: "el-cascader__tags",
|
|
35180
|
+
on: { "after-leave": _vm.updateStyle }
|
|
35181
|
+
},
|
|
35182
|
+
[
|
|
35183
|
+
_vm._l(_vm.presentTags, function(tag) {
|
|
35184
|
+
return [
|
|
35185
|
+
_c(
|
|
35186
|
+
"el-tag",
|
|
35187
|
+
{
|
|
35188
|
+
key: tag.key,
|
|
35189
|
+
class: { "is-disabled": !tag.closable && tag.key !== -1 },
|
|
35190
|
+
attrs: {
|
|
35191
|
+
type: "info",
|
|
35192
|
+
size: _vm.tagSize,
|
|
35193
|
+
hit: tag.hitState,
|
|
35194
|
+
maxWidth: _vm.maxWidth,
|
|
35195
|
+
closable: tag.closable,
|
|
35196
|
+
"disable-transitions": ""
|
|
35197
|
+
},
|
|
35198
|
+
on: {
|
|
35199
|
+
close: function($event) {
|
|
35200
|
+
_vm.deleteTag(tag)
|
|
35201
|
+
}
|
|
35202
|
+
}
|
|
35203
|
+
},
|
|
35204
|
+
[_c("span", [_vm._v(_vm._s(tag.text))])]
|
|
35205
|
+
)
|
|
35206
|
+
]
|
|
35059
35207
|
}),
|
|
35060
35208
|
_vm.filterable && !_vm.isDisabled
|
|
35061
35209
|
? _c("input", {
|
|
@@ -35367,6 +35515,47 @@ var aria_utils_default = /*#__PURE__*/__webpack_require__.n(aria_utils_);
|
|
|
35367
35515
|
//
|
|
35368
35516
|
//
|
|
35369
35517
|
//
|
|
35518
|
+
//
|
|
35519
|
+
//
|
|
35520
|
+
//
|
|
35521
|
+
//
|
|
35522
|
+
//
|
|
35523
|
+
//
|
|
35524
|
+
//
|
|
35525
|
+
//
|
|
35526
|
+
//
|
|
35527
|
+
//
|
|
35528
|
+
//
|
|
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
|
+
//
|
|
35370
35559
|
|
|
35371
35560
|
|
|
35372
35561
|
|
|
@@ -35477,6 +35666,22 @@ var InputSizeMap = {
|
|
|
35477
35666
|
default: true
|
|
35478
35667
|
},
|
|
35479
35668
|
collapseTags: Boolean,
|
|
35669
|
+
multipleLimitShow: {
|
|
35670
|
+
type: Number,
|
|
35671
|
+
default: 1
|
|
35672
|
+
},
|
|
35673
|
+
multipleTagMaxWidth: {
|
|
35674
|
+
type: String,
|
|
35675
|
+
default: 'none'
|
|
35676
|
+
},
|
|
35677
|
+
collapseTagsSuffix: {
|
|
35678
|
+
type: String,
|
|
35679
|
+
default: ''
|
|
35680
|
+
},
|
|
35681
|
+
collapseTagsFixed: {
|
|
35682
|
+
type: Boolean,
|
|
35683
|
+
default: false
|
|
35684
|
+
},
|
|
35480
35685
|
debounce: {
|
|
35481
35686
|
type: Number,
|
|
35482
35687
|
default: 300
|
|
@@ -35502,7 +35707,10 @@ var InputSizeMap = {
|
|
|
35502
35707
|
filtering: false,
|
|
35503
35708
|
suggestions: [],
|
|
35504
35709
|
inputInitialHeight: 0,
|
|
35505
|
-
pressDeleteCount: 0
|
|
35710
|
+
pressDeleteCount: 0,
|
|
35711
|
+
inputWidth: 0,
|
|
35712
|
+
tagsLeft: 0,
|
|
35713
|
+
maxWidth: 'none'
|
|
35506
35714
|
};
|
|
35507
35715
|
},
|
|
35508
35716
|
|
|
@@ -35622,6 +35830,8 @@ var InputSizeMap = {
|
|
|
35622
35830
|
|
|
35623
35831
|
if (input && input.$el) {
|
|
35624
35832
|
this.inputInitialHeight = Math.max(input.$el.offsetHeight, InputSizeMap[this.realSize]) || 36;
|
|
35833
|
+
this.resetInputWidth();
|
|
35834
|
+
this.resetTagsLeft();
|
|
35625
35835
|
}
|
|
35626
35836
|
|
|
35627
35837
|
if (!this.isEmptyValue(this.value)) {
|
|
@@ -35655,6 +35865,37 @@ var InputSizeMap = {
|
|
|
35655
35865
|
|
|
35656
35866
|
|
|
35657
35867
|
methods: {
|
|
35868
|
+
resetInputWidth: function resetInputWidth() {
|
|
35869
|
+
this.inputWidth = this.$refs.input.$el.getBoundingClientRect().width;
|
|
35870
|
+
},
|
|
35871
|
+
resetTagsLeft: function resetTagsLeft() {
|
|
35872
|
+
var _this2 = this;
|
|
35873
|
+
|
|
35874
|
+
this.$nextTick(function () {
|
|
35875
|
+
var prefixLabel = _this2.$el.querySelector('.el-input-group__prefix-label');
|
|
35876
|
+
var prefix = _this2.$el.querySelector('.el-input__prefix');
|
|
35877
|
+
var inputInner = _this2.$el.querySelector('.el-input__inner');
|
|
35878
|
+
var prefixLabelWidth = prefixLabel && Math.round(prefixLabel.getBoundingClientRect().width) || 0;
|
|
35879
|
+
var inputPaddingLeft = prefixLabel || prefix ? Math.round(window.getComputedStyle(inputInner).paddingLeft.replace(/px/, '')) : 0;
|
|
35880
|
+
_this2.tagsLeft = prefixLabelWidth + inputPaddingLeft;
|
|
35881
|
+
});
|
|
35882
|
+
},
|
|
35883
|
+
getMaxWidth: function getMaxWidth() {
|
|
35884
|
+
var _this3 = this;
|
|
35885
|
+
|
|
35886
|
+
this.$nextTick(function () {
|
|
35887
|
+
if (_this3.collapseTags) {
|
|
35888
|
+
if (_this3.multipleTagMaxWidth && _this3.multipleTagMaxWidth !== 'none') {
|
|
35889
|
+
_this3.maxWidth = _this3.multipleTagMaxWidth;
|
|
35890
|
+
}
|
|
35891
|
+
var tagsCountWidth = _this3.$refs.tagsCount && _this3.$refs.tagsCount.$el.clientWidth || 0;
|
|
35892
|
+
var count = _this3.checkedNodes.length <= _this3.multipleLimitShow ? _this3.checkedNodes.length : _this3.multipleLimitShow;
|
|
35893
|
+
_this3.maxWidth = Math.floor((_this3.inputWidth - _this3.tagsLeft - 32 - tagsCountWidth - 20 - count * 16) / count) + 'px';
|
|
35894
|
+
} else {
|
|
35895
|
+
_this3.maxWidth = _this3.multipleTagMaxWidth || 'none';
|
|
35896
|
+
}
|
|
35897
|
+
});
|
|
35898
|
+
},
|
|
35658
35899
|
getMigratingConfig: function getMigratingConfig() {
|
|
35659
35900
|
return {
|
|
35660
35901
|
props: {
|
|
@@ -35668,7 +35909,7 @@ var InputSizeMap = {
|
|
|
35668
35909
|
};
|
|
35669
35910
|
},
|
|
35670
35911
|
toggleDropDownVisible: function toggleDropDownVisible(visible) {
|
|
35671
|
-
var
|
|
35912
|
+
var _this4 = this;
|
|
35672
35913
|
|
|
35673
35914
|
if (this.isDisabled) return;
|
|
35674
35915
|
|
|
@@ -35680,8 +35921,8 @@ var InputSizeMap = {
|
|
|
35680
35921
|
this.dropDownVisible = visible;
|
|
35681
35922
|
if (visible) {
|
|
35682
35923
|
this.$nextTick(function () {
|
|
35683
|
-
|
|
35684
|
-
|
|
35924
|
+
_this4.updatePopper();
|
|
35925
|
+
_this4.panel.scrollIntoView();
|
|
35685
35926
|
});
|
|
35686
35927
|
}
|
|
35687
35928
|
input.$refs.input.setAttribute('aria-expanded', visible);
|
|
@@ -35735,11 +35976,11 @@ var InputSizeMap = {
|
|
|
35735
35976
|
this.$emit('active-item-change', value); // Deprecated
|
|
35736
35977
|
},
|
|
35737
35978
|
focusFirstNode: function focusFirstNode() {
|
|
35738
|
-
var
|
|
35979
|
+
var _this5 = this;
|
|
35739
35980
|
|
|
35740
35981
|
this.$nextTick(function () {
|
|
35741
|
-
var filtering =
|
|
35742
|
-
var _$refs =
|
|
35982
|
+
var filtering = _this5.filtering;
|
|
35983
|
+
var _$refs = _this5.$refs,
|
|
35743
35984
|
popper = _$refs.popper,
|
|
35744
35985
|
suggestionPanel = _$refs.suggestionPanel;
|
|
35745
35986
|
|
|
@@ -35759,15 +36000,15 @@ var InputSizeMap = {
|
|
|
35759
36000
|
});
|
|
35760
36001
|
},
|
|
35761
36002
|
computePresentContent: function computePresentContent() {
|
|
35762
|
-
var
|
|
36003
|
+
var _this6 = this;
|
|
35763
36004
|
|
|
35764
36005
|
// nextTick is required, because checked nodes may not change right now
|
|
35765
36006
|
this.$nextTick(function () {
|
|
35766
|
-
if (
|
|
35767
|
-
|
|
35768
|
-
|
|
36007
|
+
if (_this6.config.multiple) {
|
|
36008
|
+
_this6.computePresentTags();
|
|
36009
|
+
_this6.presentText = _this6.presentTags.length ? ' ' : null;
|
|
35769
36010
|
} else {
|
|
35770
|
-
|
|
36011
|
+
_this6.computePresentText();
|
|
35771
36012
|
}
|
|
35772
36013
|
});
|
|
35773
36014
|
},
|
|
@@ -35797,8 +36038,7 @@ var InputSizeMap = {
|
|
|
35797
36038
|
var isDisabled = this.isDisabled,
|
|
35798
36039
|
leafOnly = this.leafOnly,
|
|
35799
36040
|
showAllLevels = this.showAllLevels,
|
|
35800
|
-
separator = this.separator
|
|
35801
|
-
collapseTags = this.collapseTags;
|
|
36041
|
+
separator = this.separator;
|
|
35802
36042
|
|
|
35803
36043
|
var checkedNodes = this.getCheckedNodes(leafOnly);
|
|
35804
36044
|
var tags = [];
|
|
@@ -35814,32 +36054,34 @@ var InputSizeMap = {
|
|
|
35814
36054
|
};
|
|
35815
36055
|
|
|
35816
36056
|
if (checkedNodes.length) {
|
|
35817
|
-
|
|
35818
|
-
|
|
35819
|
-
|
|
35820
|
-
|
|
35821
|
-
|
|
35822
|
-
|
|
35823
|
-
|
|
35824
|
-
|
|
35825
|
-
|
|
35826
|
-
|
|
35827
|
-
|
|
35828
|
-
|
|
35829
|
-
|
|
35830
|
-
|
|
35831
|
-
|
|
35832
|
-
|
|
35833
|
-
|
|
35834
|
-
|
|
35835
|
-
}
|
|
36057
|
+
checkedNodes.forEach(function (node) {
|
|
36058
|
+
return tags.push(genTag(node));
|
|
36059
|
+
});
|
|
36060
|
+
// const [first, ...rest] = checkedNodes;
|
|
36061
|
+
// const restCount = rest.length;
|
|
36062
|
+
// tags.push(genTag(first));
|
|
36063
|
+
|
|
36064
|
+
// console.log(restCount, 'restCount============');
|
|
36065
|
+
// this.restCount = restCount;
|
|
36066
|
+
// if (restCount) {
|
|
36067
|
+
// if (collapseTags) {
|
|
36068
|
+
// tags.push({
|
|
36069
|
+
// key: -1,
|
|
36070
|
+
// text: `+${restCount}`,
|
|
36071
|
+
// closable: false
|
|
36072
|
+
// });
|
|
36073
|
+
// } else {
|
|
36074
|
+
// rest.forEach(node => tags.push(genTag(node)));
|
|
36075
|
+
// }
|
|
36076
|
+
// }
|
|
35836
36077
|
}
|
|
35837
36078
|
|
|
35838
36079
|
this.checkedNodes = checkedNodes;
|
|
35839
36080
|
this.presentTags = tags;
|
|
36081
|
+
this.getMaxWidth();
|
|
35840
36082
|
},
|
|
35841
36083
|
getSuggestions: function getSuggestions() {
|
|
35842
|
-
var
|
|
36084
|
+
var _this7 = this;
|
|
35843
36085
|
|
|
35844
36086
|
var filterMethod = this.filterMethod;
|
|
35845
36087
|
|
|
@@ -35852,8 +36094,8 @@ var InputSizeMap = {
|
|
|
35852
36094
|
|
|
35853
36095
|
var suggestions = this.panel.getFlattedNodes(this.leafOnly).filter(function (node) {
|
|
35854
36096
|
if (node.isDisabled) return false;
|
|
35855
|
-
node.text = node.getText(
|
|
35856
|
-
return filterMethod(node,
|
|
36097
|
+
node.text = node.getText(_this7.showAllLevels, _this7.separator) || '';
|
|
36098
|
+
return filterMethod(node, _this7.inputValue);
|
|
35857
36099
|
});
|
|
35858
36100
|
|
|
35859
36101
|
if (this.multiple) {
|
|
@@ -35862,7 +36104,7 @@ var InputSizeMap = {
|
|
|
35862
36104
|
});
|
|
35863
36105
|
} else {
|
|
35864
36106
|
suggestions.forEach(function (node) {
|
|
35865
|
-
node.checked = Object(util_["isEqual"])(
|
|
36107
|
+
node.checked = Object(util_["isEqual"])(_this7.checkedValue, node.getValueByOption());
|
|
35866
36108
|
});
|
|
35867
36109
|
}
|
|
35868
36110
|
|
|
@@ -35970,7 +36212,10 @@ var InputSizeMap = {
|
|
|
35970
36212
|
} else {
|
|
35971
36213
|
inputInner.style.height = height;
|
|
35972
36214
|
}
|
|
35973
|
-
tags.style.left = prefixLabelWidth + inputPaddingLeft + 'px';
|
|
36215
|
+
tags.style.left = prefixLabel ? prefixLabelWidth + inputPaddingLeft - 4 + 'px' : '0px';
|
|
36216
|
+
if (this.checkedNodes.length === 0 && !prefixLabel) {
|
|
36217
|
+
tags.style.left = '12px';
|
|
36218
|
+
}
|
|
35974
36219
|
if (this.dropDownVisible) {
|
|
35975
36220
|
this.updatePopper();
|
|
35976
36221
|
}
|
|
@@ -45075,7 +45320,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
45075
45320
|
}
|
|
45076
45321
|
|
|
45077
45322
|
/* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
|
|
45078
|
-
version: '2.15.
|
|
45323
|
+
version: '2.15.58',
|
|
45079
45324
|
locale: lib_locale_default.a.use,
|
|
45080
45325
|
i18n: lib_locale_default.a.i18n,
|
|
45081
45326
|
install: src_install,
|
package/lib/pagination.js
CHANGED
package/lib/select.js
CHANGED
|
@@ -578,6 +578,7 @@ var render = function() {
|
|
|
578
578
|
],
|
|
579
579
|
staticClass: "el-select",
|
|
580
580
|
class: [
|
|
581
|
+
_vm.fill ? "is-fill" : "",
|
|
581
582
|
_vm.selectSize ? "el-select--" + _vm.selectSize : "",
|
|
582
583
|
_vm.selectDisabled ? "is-disabled" : ""
|
|
583
584
|
],
|
|
@@ -595,6 +596,7 @@ var render = function() {
|
|
|
595
596
|
{
|
|
596
597
|
ref: "tags",
|
|
597
598
|
staticClass: "el-select__tags",
|
|
599
|
+
class: { "is-focus": _vm.visible },
|
|
598
600
|
style: {
|
|
599
601
|
"max-width": _vm.inputWidth - 32 + "px",
|
|
600
602
|
width: _vm.inputWidth - _vm.tagsLeft - 32 + "px",
|
|
@@ -1480,6 +1482,7 @@ var shared_ = __webpack_require__(21);
|
|
|
1480
1482
|
//
|
|
1481
1483
|
//
|
|
1482
1484
|
//
|
|
1485
|
+
//
|
|
1483
1486
|
|
|
1484
1487
|
|
|
1485
1488
|
|
|
@@ -1674,7 +1677,8 @@ var shared_ = __webpack_require__(21);
|
|
|
1674
1677
|
popperAppendToBody: {
|
|
1675
1678
|
type: Boolean,
|
|
1676
1679
|
default: true
|
|
1677
|
-
}
|
|
1680
|
+
},
|
|
1681
|
+
fill: Boolean
|
|
1678
1682
|
},
|
|
1679
1683
|
|
|
1680
1684
|
data: function data() {
|
|
@@ -2032,7 +2036,7 @@ var shared_ = __webpack_require__(21);
|
|
|
2032
2036
|
var inputInner = _this11.$el.querySelector('.el-input__inner');
|
|
2033
2037
|
var prefixLabelWidth = prefixLabel && Math.round(prefixLabel.getBoundingClientRect().width) || 0;
|
|
2034
2038
|
var inputPaddingLeft = prefixLabel || prefix ? Math.round(window.getComputedStyle(inputInner).paddingLeft.replace(/px/, '')) : 0;
|
|
2035
|
-
_this11.tagsLeft = prefixLabelWidth + inputPaddingLeft;
|
|
2039
|
+
_this11.tagsLeft = prefixLabel ? prefixLabelWidth + inputPaddingLeft - 4 : 0;
|
|
2036
2040
|
});
|
|
2037
2041
|
},
|
|
2038
2042
|
resetInputState: function resetInputState(e) {
|
package/lib/table-column.js
CHANGED
|
@@ -386,6 +386,7 @@ var columnIdSeed = 1;
|
|
|
386
386
|
},
|
|
387
387
|
columnKey: String,
|
|
388
388
|
align: String,
|
|
389
|
+
verticalAlign: String,
|
|
389
390
|
headerAlign: String,
|
|
390
391
|
showTooltipWhenOverflow: Boolean,
|
|
391
392
|
showOverflowTooltip: Boolean,
|
|
@@ -448,6 +449,9 @@ var columnIdSeed = 1;
|
|
|
448
449
|
realAlign: function realAlign() {
|
|
449
450
|
return this.align ? 'is-' + this.align : null;
|
|
450
451
|
},
|
|
452
|
+
realVerticalAlign: function realVerticalAlign() {
|
|
453
|
+
return this.verticalAlign ? 'is-' + this.verticalAlign : null;
|
|
454
|
+
},
|
|
451
455
|
realHeaderAlign: function realHeaderAlign() {
|
|
452
456
|
return this.headerAlign ? 'is-' + this.headerAlign : this.realAlign;
|
|
453
457
|
}
|
|
@@ -563,6 +567,7 @@ var columnIdSeed = 1;
|
|
|
563
567
|
var aliases = {
|
|
564
568
|
prop: 'property',
|
|
565
569
|
realAlign: 'align',
|
|
570
|
+
realVerticalAlign: 'verticalAlign',
|
|
566
571
|
realHeaderAlign: 'headerAlign',
|
|
567
572
|
realWidth: 'width'
|
|
568
573
|
};
|
|
@@ -626,6 +631,7 @@ var columnIdSeed = 1;
|
|
|
626
631
|
type: type,
|
|
627
632
|
property: this.prop || this.property,
|
|
628
633
|
align: this.realAlign,
|
|
634
|
+
verticalAlign: this.realVerticalAlign,
|
|
629
635
|
headerAlign: this.realHeaderAlign,
|
|
630
636
|
showOverflowTooltip: this.showOverflowTooltip || this.showTooltipWhenOverflow,
|
|
631
637
|
// filter 相关属性
|
package/lib/table.js
CHANGED
|
@@ -3010,7 +3010,7 @@ var table_body_extends = Object.assign || function (target) { for (var i = 1; i
|
|
|
3010
3010
|
return cellStyle;
|
|
3011
3011
|
},
|
|
3012
3012
|
getCellClass: function getCellClass(rowIndex, columnIndex, row, column) {
|
|
3013
|
-
var classes = [column.id, column.align, column.className];
|
|
3013
|
+
var classes = [column.id, column.align, column.verticalAlign, column.className];
|
|
3014
3014
|
|
|
3015
3015
|
if (this.isColumnHidden(columnIndex)) {
|
|
3016
3016
|
classes.push('is-hidden');
|