bi-eleme 2.1.1 → 2.1.2
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/element-ui.common.js +44 -35
- package/lib/index.js +1 -1
- package/lib/select.js +31 -20
- package/lib/tabs.js +2 -4
- package/package.json +1 -1
- package/packages/select/src/select.vue +20 -9
- package/packages/tabs/src/tab-bar.vue +0 -2
- package/src/index.js +1 -1
package/lib/element-ui.common.js
CHANGED
|
@@ -7444,8 +7444,8 @@ switch_src_component.install = function (Vue) {
|
|
|
7444
7444
|
};
|
|
7445
7445
|
|
|
7446
7446
|
/* harmony default export */ var packages_switch = (switch_src_component);
|
|
7447
|
-
// CONCATENATED MODULE: ./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/select.vue?vue&type=template&id=
|
|
7448
|
-
var
|
|
7447
|
+
// CONCATENATED MODULE: ./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/select.vue?vue&type=template&id=22e8a073
|
|
7448
|
+
var selectvue_type_template_id_22e8a073_render = function () {
|
|
7449
7449
|
var _vm = this
|
|
7450
7450
|
var _h = _vm.$createElement
|
|
7451
7451
|
var _c = _vm._self._c || _h
|
|
@@ -7950,11 +7950,11 @@ var selectvue_type_template_id_2d8de3b0_render = function () {
|
|
|
7950
7950
|
1
|
|
7951
7951
|
)
|
|
7952
7952
|
}
|
|
7953
|
-
var
|
|
7954
|
-
|
|
7953
|
+
var selectvue_type_template_id_22e8a073_staticRenderFns = []
|
|
7954
|
+
selectvue_type_template_id_22e8a073_render._withStripped = true
|
|
7955
7955
|
|
|
7956
7956
|
|
|
7957
|
-
// CONCATENATED MODULE: ./packages/select/src/select.vue?vue&type=template&id=
|
|
7957
|
+
// CONCATENATED MODULE: ./packages/select/src/select.vue?vue&type=template&id=22e8a073
|
|
7958
7958
|
|
|
7959
7959
|
// CONCATENATED MODULE: ./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/select-dropdown.vue?vue&type=template&id=7334b3e4
|
|
7960
7960
|
var select_dropdownvue_type_template_id_7334b3e4_render = function () {
|
|
@@ -8813,7 +8813,7 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
|
|
|
8813
8813
|
return typeof this.placeholder !== 'undefined' ? this.placeholder : this.t('el.select.placeholder');
|
|
8814
8814
|
},
|
|
8815
8815
|
selectAll: function selectAll() {
|
|
8816
|
-
return this.
|
|
8816
|
+
return this.options.filter(function (option) {
|
|
8817
8817
|
return option.itemSelected === true;
|
|
8818
8818
|
}).length === this.optionsCount;
|
|
8819
8819
|
}
|
|
@@ -9274,20 +9274,31 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
|
|
|
9274
9274
|
}, 300);
|
|
9275
9275
|
},
|
|
9276
9276
|
handleMultipleAll: function handleMultipleAll(checkStatus) {
|
|
9277
|
-
|
|
9278
|
-
var value = this.cachedOptions.map(function (option) {
|
|
9279
|
-
return option.value;
|
|
9280
|
-
});
|
|
9277
|
+
var _this13 = this;
|
|
9281
9278
|
|
|
9282
|
-
|
|
9283
|
-
|
|
9284
|
-
|
|
9285
|
-
|
|
9286
|
-
|
|
9287
|
-
|
|
9279
|
+
var value = (this.value || []).slice();
|
|
9280
|
+
|
|
9281
|
+
this.options.forEach(function (option) {
|
|
9282
|
+
if (option.visible) {
|
|
9283
|
+
var optionIndex = _this13.getValueIndex(value, option.value);
|
|
9284
|
+
|
|
9285
|
+
if (checkStatus) {
|
|
9286
|
+
if (optionIndex === -1) {
|
|
9287
|
+
value.push(option.value);
|
|
9288
|
+
}
|
|
9289
|
+
} else {
|
|
9290
|
+
if (optionIndex > -1) {
|
|
9291
|
+
value.splice(optionIndex, 1);
|
|
9292
|
+
}
|
|
9293
|
+
}
|
|
9294
|
+
}
|
|
9295
|
+
});
|
|
9296
|
+
|
|
9297
|
+
this.$emit('input', value);
|
|
9298
|
+
this.emitChange(value);
|
|
9288
9299
|
},
|
|
9289
9300
|
handleOptionSelect: function handleOptionSelect(option, byClick) {
|
|
9290
|
-
var
|
|
9301
|
+
var _this14 = this;
|
|
9291
9302
|
|
|
9292
9303
|
if (this.multiple) {
|
|
9293
9304
|
var value = (this.value || []).slice();
|
|
@@ -9314,7 +9325,7 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
|
|
|
9314
9325
|
this.setSoftFocus();
|
|
9315
9326
|
if (this.visible) return;
|
|
9316
9327
|
this.$nextTick(function () {
|
|
9317
|
-
|
|
9328
|
+
_this14.scrollToOption(option);
|
|
9318
9329
|
});
|
|
9319
9330
|
},
|
|
9320
9331
|
setSoftFocus: function setSoftFocus() {
|
|
@@ -9443,7 +9454,7 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
|
|
|
9443
9454
|
},
|
|
9444
9455
|
|
|
9445
9456
|
created: function created() {
|
|
9446
|
-
var
|
|
9457
|
+
var _this15 = this;
|
|
9447
9458
|
|
|
9448
9459
|
this.cachedPlaceHolder = this.currentPlaceholder = this.propPlaceholder;
|
|
9449
9460
|
if (this.multiple && !Array.isArray(this.value)) {
|
|
@@ -9454,11 +9465,11 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
|
|
|
9454
9465
|
}
|
|
9455
9466
|
|
|
9456
9467
|
this.debouncedOnInputChange = debounce_default()(this.debounce, function () {
|
|
9457
|
-
|
|
9468
|
+
_this15.onInputChange();
|
|
9458
9469
|
});
|
|
9459
9470
|
|
|
9460
9471
|
this.debouncedQueryChange = debounce_default()(this.debounce, function (e) {
|
|
9461
|
-
|
|
9472
|
+
_this15.handleQueryChange(e.target.value);
|
|
9462
9473
|
});
|
|
9463
9474
|
|
|
9464
9475
|
this.$on('handleOptionClick', this.handleOptionSelect);
|
|
@@ -9466,7 +9477,7 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
|
|
|
9466
9477
|
this.$on('setSelected', this.setSelected);
|
|
9467
9478
|
},
|
|
9468
9479
|
mounted: function mounted() {
|
|
9469
|
-
var
|
|
9480
|
+
var _this16 = this;
|
|
9470
9481
|
|
|
9471
9482
|
if (this.multiple && Array.isArray(this.value) && this.value.length > 0) {
|
|
9472
9483
|
this.currentPlaceholder = '';
|
|
@@ -9488,7 +9499,7 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
|
|
|
9488
9499
|
}
|
|
9489
9500
|
this.$nextTick(function () {
|
|
9490
9501
|
if (reference && reference.$el) {
|
|
9491
|
-
|
|
9502
|
+
_this16.inputWidth = reference.$el.getBoundingClientRect().width;
|
|
9492
9503
|
}
|
|
9493
9504
|
});
|
|
9494
9505
|
this.setSelected();
|
|
@@ -9509,8 +9520,8 @@ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_vi
|
|
|
9509
9520
|
|
|
9510
9521
|
var select_component = normalizeComponent(
|
|
9511
9522
|
src_selectvue_type_script_lang_js,
|
|
9512
|
-
|
|
9513
|
-
|
|
9523
|
+
selectvue_type_template_id_22e8a073_render,
|
|
9524
|
+
selectvue_type_template_id_22e8a073_staticRenderFns,
|
|
9514
9525
|
false,
|
|
9515
9526
|
null,
|
|
9516
9527
|
null,
|
|
@@ -24746,8 +24757,8 @@ form_item.install = function (Vue) {
|
|
|
24746
24757
|
};
|
|
24747
24758
|
|
|
24748
24759
|
/* harmony default export */ var packages_form_item = (form_item);
|
|
24749
|
-
// CONCATENATED MODULE: ./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib??vue-loader-options!./packages/tabs/src/tab-bar.vue?vue&type=template&id=
|
|
24750
|
-
var
|
|
24760
|
+
// CONCATENATED MODULE: ./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib??vue-loader-options!./packages/tabs/src/tab-bar.vue?vue&type=template&id=176f6cce
|
|
24761
|
+
var tab_barvue_type_template_id_176f6cce_render = function () {
|
|
24751
24762
|
var _vm = this
|
|
24752
24763
|
var _h = _vm.$createElement
|
|
24753
24764
|
var _c = _vm._self._c || _h
|
|
@@ -24757,11 +24768,11 @@ var tab_barvue_type_template_id_99edca4e_render = function () {
|
|
|
24757
24768
|
style: _vm.barStyle,
|
|
24758
24769
|
})
|
|
24759
24770
|
}
|
|
24760
|
-
var
|
|
24761
|
-
|
|
24771
|
+
var tab_barvue_type_template_id_176f6cce_staticRenderFns = []
|
|
24772
|
+
tab_barvue_type_template_id_176f6cce_render._withStripped = true
|
|
24762
24773
|
|
|
24763
24774
|
|
|
24764
|
-
// CONCATENATED MODULE: ./packages/tabs/src/tab-bar.vue?vue&type=template&id=
|
|
24775
|
+
// CONCATENATED MODULE: ./packages/tabs/src/tab-bar.vue?vue&type=template&id=176f6cce
|
|
24765
24776
|
|
|
24766
24777
|
// CONCATENATED MODULE: ./node_modules/.store/babel-loader@7.1.5/node_modules/babel-loader/lib!./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib??vue-loader-options!./packages/tabs/src/tab-bar.vue?vue&type=script&lang=js
|
|
24767
24778
|
//
|
|
@@ -24808,7 +24819,6 @@ tab_barvue_type_template_id_99edca4e_render._withStripped = true
|
|
|
24808
24819
|
if (!tab.active) {
|
|
24809
24820
|
offset += $el['client' + firstUpperCase(sizeName)];
|
|
24810
24821
|
|
|
24811
|
-
console.log('🚀 ~ this.tabs.every ~ offset:', offset);
|
|
24812
24822
|
return true;
|
|
24813
24823
|
} else {
|
|
24814
24824
|
tabSize = $el['client' + firstUpperCase(sizeName)];
|
|
@@ -24819,7 +24829,6 @@ tab_barvue_type_template_id_99edca4e_render._withStripped = true
|
|
|
24819
24829
|
if (sizeName === 'width') {
|
|
24820
24830
|
offset += parseFloat(tabStyles.paddingLeft);
|
|
24821
24831
|
}
|
|
24822
|
-
console.log('🚀 ~ this.tabs.every ~ offset:', offset);
|
|
24823
24832
|
return false;
|
|
24824
24833
|
}
|
|
24825
24834
|
});
|
|
@@ -24847,8 +24856,8 @@ tab_barvue_type_template_id_99edca4e_render._withStripped = true
|
|
|
24847
24856
|
|
|
24848
24857
|
var tab_bar_component = normalizeComponent(
|
|
24849
24858
|
src_tab_barvue_type_script_lang_js,
|
|
24850
|
-
|
|
24851
|
-
|
|
24859
|
+
tab_barvue_type_template_id_176f6cce_render,
|
|
24860
|
+
tab_barvue_type_template_id_176f6cce_staticRenderFns,
|
|
24852
24861
|
false,
|
|
24853
24862
|
null,
|
|
24854
24863
|
null,
|
|
@@ -44492,7 +44501,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
44492
44501
|
}
|
|
44493
44502
|
|
|
44494
44503
|
/* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
|
|
44495
|
-
version: '2.1.
|
|
44504
|
+
version: '2.1.2',
|
|
44496
44505
|
locale: lib_locale_default.a.use,
|
|
44497
44506
|
i18n: lib_locale_default.a.i18n,
|
|
44498
44507
|
install: src_install,
|