bkui-vue 0.0.2-beta.136 → 0.0.2-beta.138
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/dist/index.cjs.js +26 -26
- package/dist/index.esm.js +5018 -5050
- package/dist/index.umd.js +26 -26
- package/lib/date-picker/common.d.ts +2 -0
- package/lib/date-picker/index.js +82 -94
- package/lib/select/index.js +24 -20
- package/package.json +1 -1
package/lib/date-picker/index.js
CHANGED
@@ -170,7 +170,7 @@ function _toConsumableArray(arr) {
|
|
170
170
|
;// CONCATENATED MODULE: external "vue"
|
171
171
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
172
172
|
var external_vue_y = x => () => x
|
173
|
-
const external_vue_namespaceObject = external_vue_x({ ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
173
|
+
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
174
174
|
;// CONCATENATED MODULE: external "../config-provider"
|
175
175
|
var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
176
176
|
var external_config_provider_y = x => () => x
|
@@ -435,6 +435,79 @@ var pickerDropdownProps = {
|
|
435
435
|
}, [(_this$$slots$default = (_this$$slots$default2 = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : '']);
|
436
436
|
}
|
437
437
|
}));
|
438
|
+
;// CONCATENATED MODULE: ../../packages/date-picker/src/common.tsx
|
439
|
+
|
440
|
+
/*
|
441
|
+
* Tencent is pleased to support the open source community by making
|
442
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
443
|
+
*
|
444
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
445
|
+
*
|
446
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
447
|
+
*
|
448
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
449
|
+
*
|
450
|
+
* ---------------------------------------------------
|
451
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
452
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
453
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
454
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
455
|
+
*
|
456
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
457
|
+
* the Software.
|
458
|
+
*
|
459
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
460
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
461
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
462
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
463
|
+
* IN THE SOFTWARE.
|
464
|
+
*/
|
465
|
+
var dateIcon = (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)("svg", {
|
466
|
+
"class": "picker-icon",
|
467
|
+
"x": "0px",
|
468
|
+
"y": "0px",
|
469
|
+
"viewBox": "0 0 1024 1024"
|
470
|
+
}, [(0,external_vue_namespaceObject.createVNode)("g", {
|
471
|
+
"id": "date"
|
472
|
+
}, [(0,external_vue_namespaceObject.createVNode)("path", {
|
473
|
+
"fill": "#c4c6cc",
|
474
|
+
"d": "M896,128h-96v64h64v112H160V192h64v-64h-96c-17.7,0-32,14.3-32,32v736c0,17.7,14.3,32,32,32h768c17.7,0,32-14.3,32-32V160C928,142.3,913.7,128,896,128z M160,864V368h704v496H160z"
|
475
|
+
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
476
|
+
"x": "416",
|
477
|
+
"y": "128",
|
478
|
+
"fill": "#c4c6cc",
|
479
|
+
"width": "192",
|
480
|
+
"height": "64"
|
481
|
+
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
482
|
+
"x": "288",
|
483
|
+
"y": "96",
|
484
|
+
"fill": "#c4c6cc",
|
485
|
+
"width": "64",
|
486
|
+
"height": "128"
|
487
|
+
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
488
|
+
"x": "672",
|
489
|
+
"y": "96",
|
490
|
+
"fill": "#c4c6cc",
|
491
|
+
"width": "64",
|
492
|
+
"height": "128"
|
493
|
+
}, null), (0,external_vue_namespaceObject.createVNode)("polygon", {
|
494
|
+
"fill": "#c4c6cc",
|
495
|
+
"points": "403.7,514.4 557.1,514.4 557.1,515.3 420.1,765.5 483.5,765.5 620.3,504.3 620.3,466.5 403.7,466.5"
|
496
|
+
}, null)])])]);
|
497
|
+
var timeIcon = (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)("svg", {
|
498
|
+
"class": "picker-icon",
|
499
|
+
"x": "0px",
|
500
|
+
"y": "0px",
|
501
|
+
"viewBox": "0 0 1024 1024"
|
502
|
+
}, [(0,external_vue_namespaceObject.createVNode)("g", {
|
503
|
+
"id": "time"
|
504
|
+
}, [(0,external_vue_namespaceObject.createVNode)("path", {
|
505
|
+
"fill": "#c4c6cc",
|
506
|
+
"d": "M512,128c51.9,0,102.2,10.1,149.5,30.2c45.7,19.3,86.8,47,122.1,82.3s63,76.4,82.3,122.1c20,47.3,30.2,97.6,30.2,149.5S886,614.3,865.9,661.6c-19.3,45.7-47,86.8-82.3,122.1s-76.4,63-122.1,82.3c-47.3,20-97.6,30.2-149.5,30.2S409.8,886.1,362.5,866c-45.7-19.3-86.8-47-122.1-82.3s-63-76.4-82.3-122.1c-20-47.3-30.2-97.6-30.2-149.5s10.1-102.2,30.2-149.5c19.3-45.7,47-86.8,82.3-122.1s76.4-63,122.1-82.3C409.8,138.1,460.1,128,512,128 M512,64C264.6,64,64,264.6,64,512s200.6,448,448,448s448-200.6,448-448S759.4,64,512,64L512,64z"
|
507
|
+
}, null), (0,external_vue_namespaceObject.createVNode)("polygon", {
|
508
|
+
"fill": "#c4c6cc",
|
509
|
+
"points": "512,512 512,256 448,256 448,512 448,576 512,576 768,576 768,512"
|
510
|
+
}, null)])])]);
|
438
511
|
;// CONCATENATED MODULE: external "../button"
|
439
512
|
var external_button_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
440
513
|
var external_button_y = x => () => x
|
@@ -4173,6 +4246,7 @@ function date_picker_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
4173
4246
|
|
4174
4247
|
|
4175
4248
|
|
4249
|
+
|
4176
4250
|
/* harmony default export */ const date_picker = ((0,external_vue_namespaceObject.defineComponent)({
|
4177
4251
|
name: 'DatePicker',
|
4178
4252
|
directives: {
|
@@ -4194,7 +4268,8 @@ function date_picker_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
4194
4268
|
if (props.shortcutSelectedIndex !== -1) {
|
4195
4269
|
shortcut = props.shortcuts[props.shortcutSelectedIndex] || null;
|
4196
4270
|
if (shortcut) {
|
4197
|
-
|
4271
|
+
var v = shortcut.value();
|
4272
|
+
initialValue = Array.isArray(v) ? v : [v];
|
4198
4273
|
}
|
4199
4274
|
}
|
4200
4275
|
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
@@ -4642,8 +4717,8 @@ function date_picker_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
4642
4717
|
if (state.internalValue[0]) {
|
4643
4718
|
// state.focusedDate = state.internalValue[0];
|
4644
4719
|
var _state$internalValue = _slicedToArray(state.internalValue, 1),
|
4645
|
-
|
4646
|
-
state.focusedDate =
|
4720
|
+
_v = _state$internalValue[0];
|
4721
|
+
state.focusedDate = _v;
|
4647
4722
|
}
|
4648
4723
|
state.focusedTime = date_picker_objectSpread(date_picker_objectSpread({}, state.focusedTime), {}, {
|
4649
4724
|
time: state.internalValue.map(extractTime)
|
@@ -4723,51 +4798,7 @@ function date_picker_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
4723
4798
|
var defaultTrigger = (0,external_vue_namespaceObject.createVNode)("div", null, [(0,external_vue_namespaceObject.createVNode)("span", {
|
4724
4799
|
"class": ['icon-wrapper', this.disabled ? 'disabled' : ''],
|
4725
4800
|
"onClick": this.handleIconClick
|
4726
|
-
}, [this.type === 'time' || this.type === 'timerange' ? (0,external_vue_namespaceObject.createVNode)("
|
4727
|
-
"class": "picker-icon",
|
4728
|
-
"x": "0px",
|
4729
|
-
"y": "0px",
|
4730
|
-
"viewBox": "0 0 1024 1024"
|
4731
|
-
}, [(0,external_vue_namespaceObject.createVNode)("g", {
|
4732
|
-
"id": "time"
|
4733
|
-
}, [(0,external_vue_namespaceObject.createVNode)("path", {
|
4734
|
-
"fill": "#c4c6cc",
|
4735
|
-
"d": "M512,128c51.9,0,102.2,10.1,149.5,30.2c45.7,19.3,86.8,47,122.1,82.3s63,76.4,82.3,122.1c20,47.3,30.2,97.6,30.2,149.5S886,614.3,865.9,661.6c-19.3,45.7-47,86.8-82.3,122.1s-76.4,63-122.1,82.3c-47.3,20-97.6,30.2-149.5,30.2S409.8,886.1,362.5,866c-45.7-19.3-86.8-47-122.1-82.3s-63-76.4-82.3-122.1c-20-47.3-30.2-97.6-30.2-149.5s10.1-102.2,30.2-149.5c19.3-45.7,47-86.8,82.3-122.1s76.4-63,122.1-82.3C409.8,138.1,460.1,128,512,128 M512,64C264.6,64,64,264.6,64,512s200.6,448,448,448s448-200.6,448-448S759.4,64,512,64L512,64z"
|
4736
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("polygon", {
|
4737
|
-
"fill": "#c4c6cc",
|
4738
|
-
"points": "512,512 512,256 448,256 448,512 448,576 512,576 768,576 768,512"
|
4739
|
-
}, null)])]) : (0,external_vue_namespaceObject.createVNode)("svg", {
|
4740
|
-
"class": "picker-icon",
|
4741
|
-
"x": "0px",
|
4742
|
-
"y": "0px",
|
4743
|
-
"viewBox": "0 0 1024 1024"
|
4744
|
-
}, [(0,external_vue_namespaceObject.createVNode)("g", {
|
4745
|
-
"id": "date"
|
4746
|
-
}, [(0,external_vue_namespaceObject.createVNode)("path", {
|
4747
|
-
"fill": "#c4c6cc",
|
4748
|
-
"d": "M896,128h-96v64h64v112H160V192h64v-64h-96c-17.7,0-32,14.3-32,32v736c0,17.7,14.3,32,32,32h768c17.7,0,32-14.3,32-32V160C928,142.3,913.7,128,896,128z M160,864V368h704v496H160z"
|
4749
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
4750
|
-
"x": "416",
|
4751
|
-
"y": "128",
|
4752
|
-
"fill": "#c4c6cc",
|
4753
|
-
"width": "192",
|
4754
|
-
"height": "64"
|
4755
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
4756
|
-
"x": "288",
|
4757
|
-
"y": "96",
|
4758
|
-
"fill": "#c4c6cc",
|
4759
|
-
"width": "64",
|
4760
|
-
"height": "128"
|
4761
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
4762
|
-
"x": "672",
|
4763
|
-
"y": "96",
|
4764
|
-
"fill": "#c4c6cc",
|
4765
|
-
"width": "64",
|
4766
|
-
"height": "128"
|
4767
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("polygon", {
|
4768
|
-
"fill": "#c4c6cc",
|
4769
|
-
"points": "403.7,514.4 557.1,514.4 557.1,515.3 420.1,765.5 483.5,765.5 620.3,504.3 620.3,466.5 403.7,466.5"
|
4770
|
-
}, null)])])]), (0,external_vue_namespaceObject.createVNode)("input", {
|
4801
|
+
}, [this.type === 'time' || this.type === 'timerange' ? timeIcon : dateIcon]), (0,external_vue_namespaceObject.createVNode)("input", {
|
4771
4802
|
"type": "text",
|
4772
4803
|
"class": [this.resolveClassName('date-picker-editor'), this.readonly ? 'readonly' : '', this.fontSizeCls, this.behavior === 'simplicity' ? 'only-bottom-border' : ''],
|
4773
4804
|
"ref": "inputRef",
|
@@ -4917,6 +4948,7 @@ function time_picker_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
4917
4948
|
|
4918
4949
|
|
4919
4950
|
|
4951
|
+
|
4920
4952
|
/* harmony default export */ const time_picker = ((0,external_vue_namespaceObject.defineComponent)({
|
4921
4953
|
name: 'TimePicker',
|
4922
4954
|
directives: {
|
@@ -5462,51 +5494,7 @@ function time_picker_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
5462
5494
|
var defaultTrigger = (0,external_vue_namespaceObject.createVNode)("div", null, [(0,external_vue_namespaceObject.createVNode)("span", {
|
5463
5495
|
"class": ['icon-wrapper', this.disabled ? 'disabled' : ''],
|
5464
5496
|
"onClick": this.handleIconClick
|
5465
|
-
}, [this.type === 'time' || this.type === 'timerange' ? (0,external_vue_namespaceObject.createVNode)("
|
5466
|
-
"class": "picker-icon",
|
5467
|
-
"x": "0px",
|
5468
|
-
"y": "0px",
|
5469
|
-
"viewBox": "0 0 1024 1024"
|
5470
|
-
}, [(0,external_vue_namespaceObject.createVNode)("g", {
|
5471
|
-
"id": "time"
|
5472
|
-
}, [(0,external_vue_namespaceObject.createVNode)("path", {
|
5473
|
-
"fill": "#c4c6cc",
|
5474
|
-
"d": "M512,128c51.9,0,102.2,10.1,149.5,30.2c45.7,19.3,86.8,47,122.1,82.3s63,76.4,82.3,122.1c20,47.3,30.2,97.6,30.2,149.5S886,614.3,865.9,661.6c-19.3,45.7-47,86.8-82.3,122.1s-76.4,63-122.1,82.3c-47.3,20-97.6,30.2-149.5,30.2S409.8,886.1,362.5,866c-45.7-19.3-86.8-47-122.1-82.3s-63-76.4-82.3-122.1c-20-47.3-30.2-97.6-30.2-149.5s10.1-102.2,30.2-149.5c19.3-45.7,47-86.8,82.3-122.1s76.4-63,122.1-82.3C409.8,138.1,460.1,128,512,128 M512,64C264.6,64,64,264.6,64,512s200.6,448,448,448s448-200.6,448-448S759.4,64,512,64L512,64z"
|
5475
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("polygon", {
|
5476
|
-
"fill": "#c4c6cc",
|
5477
|
-
"points": "512,512 512,256 448,256 448,512 448,576 512,576 768,576 768,512"
|
5478
|
-
}, null)])]) : (0,external_vue_namespaceObject.createVNode)("svg", {
|
5479
|
-
"class": "picker-icon",
|
5480
|
-
"x": "0px",
|
5481
|
-
"y": "0px",
|
5482
|
-
"viewBox": "0 0 1024 1024"
|
5483
|
-
}, [(0,external_vue_namespaceObject.createVNode)("g", {
|
5484
|
-
"id": "date"
|
5485
|
-
}, [(0,external_vue_namespaceObject.createVNode)("path", {
|
5486
|
-
"fill": "#c4c6cc",
|
5487
|
-
"d": "M896,128h-96v64h64v112H160V192h64v-64h-96c-17.7,0-32,14.3-32,32v736c0,17.7,14.3,32,32,32h768c17.7,0,32-14.3,32-32V160C928,142.3,913.7,128,896,128z M160,864V368h704v496H160z"
|
5488
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
5489
|
-
"x": "416",
|
5490
|
-
"y": "128",
|
5491
|
-
"fill": "#c4c6cc",
|
5492
|
-
"width": "192",
|
5493
|
-
"height": "64"
|
5494
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
5495
|
-
"x": "288",
|
5496
|
-
"y": "96",
|
5497
|
-
"fill": "#c4c6cc",
|
5498
|
-
"width": "64",
|
5499
|
-
"height": "128"
|
5500
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
5501
|
-
"x": "672",
|
5502
|
-
"y": "96",
|
5503
|
-
"fill": "#c4c6cc",
|
5504
|
-
"width": "64",
|
5505
|
-
"height": "128"
|
5506
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("polygon", {
|
5507
|
-
"fill": "#c4c6cc",
|
5508
|
-
"points": "403.7,514.4 557.1,514.4 557.1,515.3 420.1,765.5 483.5,765.5 620.3,504.3 620.3,466.5 403.7,466.5"
|
5509
|
-
}, null)])])]), (0,external_vue_namespaceObject.createVNode)("input", {
|
5497
|
+
}, [this.type === 'time' || this.type === 'timerange' ? timeIcon : dateIcon]), (0,external_vue_namespaceObject.createVNode)("input", {
|
5510
5498
|
"type": "text",
|
5511
5499
|
"class": [this.resolveClassName('date-picker-editor'), this.readonly ? 'readonly' : '', this.fontSizeCls, this.behavior === 'simplicity' ? 'only-bottom-border' : ''],
|
5512
5500
|
"ref": "inputRef",
|
package/lib/select/index.js
CHANGED
@@ -2130,6 +2130,7 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
2130
2130
|
}, null);
|
2131
2131
|
};
|
2132
2132
|
var renderPrefix = function renderPrefix() {
|
2133
|
+
var _this$$slots;
|
2133
2134
|
if (_this.prefix) {
|
2134
2135
|
return function () {
|
2135
2136
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -2137,9 +2138,9 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
2137
2138
|
}, [(0,external_vue_namespaceObject.createVNode)("span", null, [_this.prefix])]);
|
2138
2139
|
};
|
2139
2140
|
}
|
2140
|
-
return _this.$slots.prefix ? function () {
|
2141
|
-
var _this$$
|
2142
|
-
return (_this$$
|
2141
|
+
return (_this$$slots = _this.$slots) !== null && _this$$slots !== void 0 && _this$$slots.prefix ? function () {
|
2142
|
+
var _this$$slots2, _this$$slots2$prefix;
|
2143
|
+
return (_this$$slots2 = _this.$slots) === null || _this$$slots2 === void 0 || (_this$$slots2$prefix = _this$$slots2.prefix) === null || _this$$slots2$prefix === void 0 ? void 0 : _this$$slots2$prefix.call(_this$$slots2);
|
2143
2144
|
} : undefined;
|
2144
2145
|
};
|
2145
2146
|
// 全选
|
@@ -2165,7 +2166,9 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
2165
2166
|
}, null);
|
2166
2167
|
};
|
2167
2168
|
var renderTriggerInput = function renderTriggerInput() {
|
2169
|
+
var _this$$slots5;
|
2168
2170
|
if (_this.multipleMode === 'tag') {
|
2171
|
+
var _this$$slots3;
|
2169
2172
|
return (0,external_vue_namespaceObject.createVNode)(selectTagInput, {
|
2170
2173
|
"ref": "selectTagInputRef",
|
2171
2174
|
"modelValue": _this.customOptionName,
|
@@ -2182,8 +2185,9 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
2182
2185
|
"onEnter": _this.handleCreateCustomOption
|
2183
2186
|
}, {
|
2184
2187
|
prefix: renderPrefix(),
|
2185
|
-
"default": _this.$slots.tag && function () {
|
2186
|
-
|
2188
|
+
"default": ((_this$$slots3 = _this.$slots) === null || _this$$slots3 === void 0 ? void 0 : _this$$slots3.tag) && function () {
|
2189
|
+
var _this$$slots4;
|
2190
|
+
return (_this$$slots4 = _this.$slots) === null || _this$$slots4 === void 0 ? void 0 : _this$$slots4.tag({
|
2187
2191
|
selected: _this.selected
|
2188
2192
|
});
|
2189
2193
|
},
|
@@ -2208,10 +2212,10 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
2208
2212
|
"onEnter": _this.handleCreateCustomOption
|
2209
2213
|
}, _this.prefix ? {
|
2210
2214
|
prefix: _this.prefix
|
2211
|
-
} : null), select_objectSpread(select_objectSpread({}, typeof _this.$slots.prefix === 'function' ? {
|
2215
|
+
} : null), select_objectSpread(select_objectSpread({}, typeof ((_this$$slots5 = _this.$slots) === null || _this$$slots5 === void 0 ? void 0 : _this$$slots5.prefix) === 'function' ? {
|
2212
2216
|
prefix: function prefix() {
|
2213
|
-
var _this$$
|
2214
|
-
return (_this$$
|
2217
|
+
var _this$$slots6, _this$$slots6$prefix;
|
2218
|
+
return (_this$$slots6 = _this.$slots) === null || _this$$slots6 === void 0 || (_this$$slots6$prefix = _this$$slots6.prefix) === null || _this$$slots6$prefix === void 0 ? void 0 : _this$$slots6$prefix.call(_this$$slots6);
|
2215
2219
|
}
|
2216
2220
|
} : null), {}, {
|
2217
2221
|
suffix: function suffix() {
|
@@ -2220,7 +2224,7 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
2220
2224
|
}));
|
2221
2225
|
};
|
2222
2226
|
var renderSelectTrigger = function renderSelectTrigger() {
|
2223
|
-
var _this$$
|
2227
|
+
var _this$$slots7, _this$$slots7$trigger;
|
2224
2228
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
2225
2229
|
"class": _this.resolveClassName('select-trigger'),
|
2226
2230
|
"style": {
|
@@ -2230,12 +2234,12 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
2230
2234
|
"onClick": _this.handleTogglePopover,
|
2231
2235
|
"onMouseenter": _this.setHover,
|
2232
2236
|
"onMouseleave": _this.cancelHover
|
2233
|
-
}, [((_this$$
|
2237
|
+
}, [((_this$$slots7 = _this.$slots) === null || _this$$slots7 === void 0 || (_this$$slots7$trigger = _this$$slots7.trigger) === null || _this$$slots7$trigger === void 0 ? void 0 : _this$$slots7$trigger.call(_this$$slots7, {
|
2234
2238
|
selected: _this.selected
|
2235
2239
|
})) || renderTriggerInput()]);
|
2236
2240
|
};
|
2237
2241
|
var renderSelectContent = function renderSelectContent() {
|
2238
|
-
var _this$$
|
2242
|
+
var _this$$slots12, _this$$slots12$defaul, _this$$slots13, _this$$slots14;
|
2239
2243
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
2240
2244
|
"class": _this.resolveClassName('select-content-wrapper'),
|
2241
2245
|
"ref": "contentRef"
|
@@ -2277,9 +2281,9 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
2277
2281
|
"ref": "virtualRenderRef"
|
2278
2282
|
}, {
|
2279
2283
|
"default": function _default(_ref3) {
|
2280
|
-
var _this$$
|
2284
|
+
var _this$$slots8, _this$$slots9;
|
2281
2285
|
var data = _ref3.data;
|
2282
|
-
var optionRender = ((_this$$
|
2286
|
+
var optionRender = ((_this$$slots8 = _this.$slots) === null || _this$$slots8 === void 0 ? void 0 : _this$$slots8.optionRender) || ((_this$$slots9 = _this.$slots) === null || _this$$slots9 === void 0 ? void 0 : _this$$slots9.virtualScrollRender);
|
2283
2287
|
return data.map(function (item) {
|
2284
2288
|
return (0,external_vue_namespaceObject.createVNode)(src_option, {
|
2285
2289
|
"key": item[_this.idKey],
|
@@ -2295,19 +2299,19 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
2295
2299
|
});
|
2296
2300
|
}
|
2297
2301
|
}) : _this.list.map(function (item) {
|
2298
|
-
var _this$$
|
2302
|
+
var _this$$slots10;
|
2299
2303
|
return (0,external_vue_namespaceObject.createVNode)(src_option, {
|
2300
2304
|
"id": item[_this.idKey],
|
2301
2305
|
"name": item[_this.displayKey]
|
2302
|
-
}, (_this$$
|
2306
|
+
}, (_this$$slots10 = _this.$slots) !== null && _this$$slots10 !== void 0 && _this$$slots10.optionRender ? {
|
2303
2307
|
"default": function _default() {
|
2304
|
-
var _this$$
|
2305
|
-
return (_this$$
|
2308
|
+
var _this$$slots11, _this$$slots11$option;
|
2309
|
+
return (_this$$slots11 = _this.$slots) === null || _this$$slots11 === void 0 || (_this$$slots11$option = _this$$slots11.optionRender) === null || _this$$slots11$option === void 0 ? void 0 : _this$$slots11$option.call(_this$$slots11, {
|
2306
2310
|
item: item
|
2307
2311
|
});
|
2308
2312
|
}
|
2309
2313
|
} : null);
|
2310
|
-
}), (_this$$
|
2314
|
+
}), (_this$$slots12 = _this.$slots) === null || _this$$slots12 === void 0 || (_this$$slots12$defaul = _this$$slots12["default"]) === null || _this$$slots12$defaul === void 0 ? void 0 : _this$$slots12$defaul.call(_this$$slots12), _this.scrollLoading && (0,external_vue_namespaceObject.createVNode)("li", {
|
2311
2315
|
"class": _this.resolveClassName('select-options-loading')
|
2312
2316
|
}, [(0,external_vue_namespaceObject.createVNode)(external_loading_namespaceObject["default"], {
|
2313
2317
|
"class": "spinner mr5",
|
@@ -2315,9 +2319,9 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
2315
2319
|
"loading": true,
|
2316
2320
|
"mode": "spin",
|
2317
2321
|
"size": "mini"
|
2318
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.localLoadingText])])]), [[external_vue_namespaceObject.vShow, _this.isShowSelectContent]])]), _this.$slots.extension && (0,external_vue_namespaceObject.createVNode)("div", {
|
2322
|
+
}, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.localLoadingText])])]), [[external_vue_namespaceObject.vShow, _this.isShowSelectContent]])]), ((_this$$slots13 = _this.$slots) === null || _this$$slots13 === void 0 ? void 0 : _this$$slots13.extension) && (0,external_vue_namespaceObject.createVNode)("div", {
|
2319
2323
|
"class": _this.resolveClassName('select-extension')
|
2320
|
-
}, [_this.$slots.extension()])])]);
|
2324
|
+
}, [(_this$$slots14 = _this.$slots) === null || _this$$slots14 === void 0 ? void 0 : _this$$slots14.extension()])])]);
|
2321
2325
|
};
|
2322
2326
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
2323
2327
|
"class": selectClass
|