bkui-vue 1.0.3-beta.26 → 1.0.3-beta.27
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 +46 -46
- package/dist/index.esm.js +6162 -6148
- package/dist/index.umd.js +46 -46
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +1 -1
- package/lib/affix/affix.less +2 -2
- package/lib/affix/affix.variable.css +3 -3
- package/lib/affix/index.js +13 -15
- package/lib/alert/alert.css +21 -21
- package/lib/alert/alert.less +16 -17
- package/lib/alert/alert.variable.css +23 -23
- package/lib/alert/index.js +22 -24
- package/lib/animate-number/index.js +5 -6
- package/lib/backtop/backtop.css +11 -11
- package/lib/backtop/backtop.less +3 -3
- package/lib/backtop/backtop.variable.css +13 -13
- package/lib/backtop/index.js +20 -22
- package/lib/badge/badge.css +32 -32
- package/lib/badge/badge.less +5 -5
- package/lib/badge/badge.variable.css +34 -34
- package/lib/badge/index.js +19 -21
- package/lib/breadcrumb/breadcrumb.css +31 -31
- package/lib/breadcrumb/breadcrumb.less +8 -8
- package/lib/breadcrumb/breadcrumb.variable.css +33 -33
- package/lib/breadcrumb/index.js +24 -26
- package/lib/button/button.css +69 -69
- package/lib/button/button.less +5 -3
- package/lib/button/button.variable.css +71 -71
- package/lib/button/index.js +28 -37
- package/lib/card/card.css +31 -31
- package/lib/card/card.less +4 -4
- package/lib/card/card.variable.css +33 -33
- package/lib/card/index.js +35 -43
- package/lib/cascader/cascader.css +63 -63
- package/lib/cascader/cascader.less +11 -12
- package/lib/cascader/cascader.variable.css +65 -65
- package/lib/cascader/index.js +80 -100
- package/lib/checkbox/checkbox.css +21 -21
- package/lib/checkbox/checkbox.less +8 -8
- package/lib/checkbox/checkbox.variable.css +23 -23
- package/lib/checkbox/index.js +32 -34
- package/lib/code-diff/code-diff.css +97 -97
- package/lib/code-diff/code-diff.less +4 -3
- package/lib/code-diff/code-diff.variable.css +99 -99
- package/lib/code-diff/index.js +12 -14
- package/lib/collapse/collapse.css +30 -30
- package/lib/collapse/collapse.less +24 -25
- package/lib/collapse/collapse.variable.css +32 -32
- package/lib/collapse/index.js +39 -41
- package/lib/collapse-transition/collapse-transition.css +32 -32
- package/lib/collapse-transition/collapse-transition.less +48 -59
- package/lib/collapse-transition/collapse-transition.variable.css +34 -34
- package/lib/collapse-transition/index.js +8 -9
- package/lib/color-picker/color-picker.css +57 -57
- package/lib/color-picker/color-picker.less +30 -36
- package/lib/color-picker/color-picker.variable.css +59 -59
- package/lib/color-picker/index.js +48 -50
- package/lib/components.js +505 -60
- package/lib/config-provider/config-provider.variable.css +2 -2
- package/lib/config-provider/index.js +8 -9
- package/lib/container/container.css +19 -19
- package/lib/container/container.less +3 -3
- package/lib/container/container.variable.css +21 -21
- package/lib/container/index.js +19 -21
- package/lib/date-picker/date-picker.css +92 -92
- package/lib/date-picker/date-picker.d.ts +1 -0
- package/lib/date-picker/date-picker.less +54 -55
- package/lib/date-picker/date-picker.variable.css +94 -94
- package/lib/date-picker/index.d.ts +3 -0
- package/lib/date-picker/index.js +69 -77
- package/lib/date-picker/time-picker.d.ts +1 -0
- package/lib/dialog/dialog.css +51 -51
- package/lib/dialog/dialog.less +1 -1
- package/lib/dialog/dialog.variable.css +53 -53
- package/lib/dialog/index.js +49 -63
- package/lib/directives/index.js +12 -13
- package/lib/dist.index.js +62 -5
- package/lib/divider/divider.css +8 -8
- package/lib/divider/divider.less +8 -5
- package/lib/divider/divider.variable.css +10 -10
- package/lib/divider/index.js +13 -15
- package/lib/dropdown/dropdown.css +15 -15
- package/lib/dropdown/dropdown.less +6 -6
- package/lib/dropdown/dropdown.variable.css +17 -17
- package/lib/dropdown/index.js +24 -32
- package/lib/exception/exception.css +13 -13
- package/lib/exception/exception.less +6 -6
- package/lib/exception/exception.variable.css +15 -15
- package/lib/exception/index.js +11 -13
- package/lib/fixed-navbar/fixed-navbar.css +9 -9
- package/lib/fixed-navbar/fixed-navbar.less +2 -1
- package/lib/fixed-navbar/fixed-navbar.variable.css +11 -11
- package/lib/fixed-navbar/index.js +13 -15
- package/lib/form/form.css +63 -63
- package/lib/form/form.less +16 -14
- package/lib/form/form.variable.css +65 -65
- package/lib/form/index.js +48 -50
- package/lib/hooks.js +48 -1
- package/lib/icon/index.js +0 -1
- package/lib/image/image-viewer.css +23 -23
- package/lib/image/image-viewer.less +25 -24
- package/lib/image/image-viewer.variable.css +25 -25
- package/lib/image/image.css +29 -29
- package/lib/image/image.less +8 -6
- package/lib/image/image.variable.css +31 -31
- package/lib/image/index.js +38 -39
- package/lib/index.js +72 -7
- package/lib/info-box/index.js +13 -21
- package/lib/info-box/info-box.css +10 -10
- package/lib/info-box/info-box.less +2 -1
- package/lib/info-box/info-box.variable.css +12 -12
- package/lib/input/index.js +59 -61
- package/lib/input/input.css +104 -102
- package/lib/input/input.less +33 -27
- package/lib/input/input.variable.css +106 -104
- package/lib/link/index.js +13 -15
- package/lib/link/link.css +18 -18
- package/lib/link/link.less +3 -1
- package/lib/link/link.variable.css +20 -20
- package/lib/loading/index.js +17 -19
- package/lib/loading/loading.css +94 -94
- package/lib/loading/loading.less +4 -4
- package/lib/loading/loading.variable.css +96 -96
- package/lib/locale/index.js +0 -1
- package/lib/menu/index.js +13 -15
- package/lib/menu/menu.css +38 -38
- package/lib/menu/menu.less +10 -10
- package/lib/menu/menu.variable.css +40 -40
- package/lib/menu/submenu.css +1 -1
- package/lib/menu/submenu.less +1 -1
- package/lib/menu/submenu.variable.css +3 -3
- package/lib/message/index.js +38 -40
- package/lib/message/message.css +59 -59
- package/lib/message/message.less +24 -25
- package/lib/message/message.variable.css +61 -61
- package/lib/modal/index.js +41 -43
- package/lib/modal/modal.css +26 -26
- package/lib/modal/modal.less +12 -8
- package/lib/modal/modal.variable.css +28 -28
- package/lib/navigation/index.js +14 -16
- package/lib/navigation/navigation.css +25 -25
- package/lib/navigation/navigation.less +9 -9
- package/lib/navigation/navigation.variable.css +27 -27
- package/lib/notify/index.js +31 -33
- package/lib/notify/notify.css +17 -17
- package/lib/notify/notify.less +6 -8
- package/lib/notify/notify.variable.css +19 -19
- package/lib/overflow-title/index.js +14 -22
- package/lib/pagination/index.js +50 -65
- package/lib/pagination/pagination.css +60 -60
- package/lib/pagination/pagination.less +25 -24
- package/lib/pagination/pagination.variable.css +62 -62
- package/lib/plugin-popover/index.js +53 -54
- package/lib/plugins/index.js +0 -1
- package/lib/pop-confirm/index.js +28 -42
- package/lib/pop-confirm/pop-confirm.css +10 -10
- package/lib/pop-confirm/pop-confirm.less +11 -14
- package/lib/pop-confirm/pop-confirm.variable.css +12 -12
- package/lib/popover/index.js +52 -54
- package/lib/popover/popover.css +5 -5
- package/lib/popover/popover.less +6 -5
- package/lib/popover/popover.variable.css +7 -7
- package/lib/popover2/index.js +3 -4
- package/lib/preset.js +64 -18
- package/lib/process/index.js +26 -27
- package/lib/process/process.css +33 -36
- package/lib/process/process.less +7 -8
- package/lib/process/process.variable.css +35 -38
- package/lib/progress/index.js +26 -28
- package/lib/progress/progress.css +33 -33
- package/lib/progress/progress.less +5 -6
- package/lib/progress/progress.variable.css +35 -35
- package/lib/radio/index.js +32 -34
- package/lib/radio/radio.css +51 -51
- package/lib/radio/radio.less +20 -13
- package/lib/radio/radio.variable.css +53 -53
- package/lib/rate/index.js +22 -24
- package/lib/rate/rate.css +2 -2
- package/lib/rate/rate.less +1 -1
- package/lib/rate/rate.variable.css +4 -4
- package/lib/rate/star.css +7 -7
- package/lib/rate/star.less +1 -1
- package/lib/rate/star.variable.css +9 -9
- package/lib/resize-layout/index.js +25 -27
- package/lib/resize-layout/resize-layout.css +42 -42
- package/lib/resize-layout/resize-layout.less +10 -17
- package/lib/resize-layout/resize-layout.variable.css +44 -44
- package/lib/search-select/index.js +49 -68
- package/lib/search-select/search-select.css +15 -15
- package/lib/search-select/search-select.variable.css +17 -17
- package/lib/select/index.js +129 -168
- package/lib/select/select.css +87 -87
- package/lib/select/select.less +22 -27
- package/lib/select/select.variable.css +89 -89
- package/lib/shared/index.js +4 -7
- package/lib/sideslider/index.js +14 -22
- package/lib/sideslider/sideslider.css +14 -14
- package/lib/sideslider/sideslider.less +13 -9
- package/lib/sideslider/sideslider.variable.css +16 -16
- package/lib/slider/index.js +22 -36
- package/lib/slider/slider.css +31 -31
- package/lib/slider/slider.less +8 -8
- package/lib/slider/slider.variable.css +33 -33
- package/lib/steps/index.js +28 -30
- package/lib/steps/steps.css +134 -134
- package/lib/steps/steps.less +48 -44
- package/lib/steps/steps.variable.css +136 -136
- package/lib/styles/mixins/animate.css +4 -4
- package/lib/styles/mixins/animate.less +3 -3
- package/lib/styles/mixins/animate.variable.css +6 -6
- package/lib/styles/mixins/mixins.css +15 -15
- package/lib/styles/mixins/mixins.variable.css +15 -15
- package/lib/styles/mixins/popper.css +11 -11
- package/lib/styles/mixins/popper.less +6 -6
- package/lib/styles/mixins/popper.variable.css +13 -13
- package/lib/styles/mixins/scroll.css +5 -5
- package/lib/styles/mixins/scroll.less +4 -4
- package/lib/styles/mixins/scroll.variable.css +7 -7
- package/lib/styles/reset.css +6 -6
- package/lib/styles/reset.less +5 -4
- package/lib/styles/reset.variable.css +8 -8
- package/lib/styles/themes/themes.less +10 -3
- package/lib/swiper/index.js +14 -16
- package/lib/swiper/swiper.css +15 -15
- package/lib/swiper/swiper.less +8 -8
- package/lib/swiper/swiper.variable.css +17 -17
- package/lib/switcher/index.js +29 -31
- package/lib/switcher/switcher.css +57 -57
- package/lib/switcher/switcher.less +22 -14
- package/lib/switcher/switcher.variable.css +59 -59
- package/lib/tab/index.js +44 -46
- package/lib/tab/tab.css +78 -78
- package/lib/tab/tab.less +39 -40
- package/lib/tab/tab.variable.css +80 -80
- package/lib/table/components/table-column.d.ts +1 -0
- package/lib/table/index.d.ts +1 -0
- package/lib/table/index.js +168 -207
- package/lib/table/plugins/head-filter.css +13 -13
- package/lib/table/plugins/head-filter.less +3 -3
- package/lib/table/plugins/head-filter.variable.css +15 -15
- package/lib/table/plugins/head-sort.css +5 -5
- package/lib/table/plugins/head-sort.less +2 -2
- package/lib/table/plugins/head-sort.variable.css +7 -7
- package/lib/table/plugins/settings.css +26 -26
- package/lib/table/plugins/settings.less +3 -1
- package/lib/table/plugins/settings.variable.css +28 -28
- package/lib/table/table.css +380 -380
- package/lib/table/table.less +14 -10
- package/lib/table/table.variable.css +382 -382
- package/lib/table-column/index.d.ts +3 -0
- package/lib/table-column/index.js +57 -43
- package/lib/tag/index.js +19 -21
- package/lib/tag/tag.css +51 -51
- package/lib/tag/tag.less +34 -34
- package/lib/tag/tag.variable.css +53 -53
- package/lib/tag-input/index.js +65 -80
- package/lib/tag-input/tag-input.css +38 -38
- package/lib/tag-input/tag-input.less +3 -3
- package/lib/tag-input/tag-input.variable.css +40 -40
- package/lib/time-picker/index.d.ts +3 -0
- package/lib/time-picker/index.js +7 -9
- package/lib/time-picker/time-picker.css +40 -40
- package/lib/time-picker/time-picker.less +44 -76
- package/lib/time-picker/time-picker.variable.css +42 -42
- package/lib/timeline/index.js +12 -13
- package/lib/timeline/timeline.css +69 -69
- package/lib/timeline/timeline.less +12 -6
- package/lib/timeline/timeline.variable.css +71 -71
- package/lib/transfer/index.js +36 -51
- package/lib/transfer/transfer.css +89 -89
- package/lib/transfer/transfer.less +1 -1
- package/lib/transfer/transfer.variable.css +91 -91
- package/lib/tree/index.js +72 -92
- package/lib/tree/tree.css +49 -49
- package/lib/tree/tree.less +7 -6
- package/lib/tree/tree.variable.css +51 -51
- package/lib/upload/index.js +48 -63
- package/lib/upload/upload.css +98 -98
- package/lib/upload/upload.less +69 -68
- package/lib/upload/upload.variable.css +100 -100
- package/lib/virtual-render/index.js +33 -35
- package/lib/virtual-render/virtual-render.css +9 -9
- package/lib/virtual-render/virtual-render.less +1 -1
- package/lib/virtual-render/virtual-render.variable.css +11 -11
- package/package.json +1 -1
- package/lib/styles/themes/themes copy.less +0 -167
package/lib/select/index.js
CHANGED
@@ -1,25 +1,17 @@
|
|
1
|
-
import "../
|
2
|
-
import "./select.less";
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
4
2
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
5
3
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__ from "lodash/isEqual";
|
6
|
-
import * as
|
7
|
-
import "../
|
8
|
-
import * as
|
9
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__checkbox_a57bcb84__ from "../checkbox";
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__ from "../icon";
|
10
7
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__ from "lodash/merge";
|
11
|
-
import * as
|
12
|
-
import * as
|
13
|
-
import "../
|
14
|
-
import * as
|
15
|
-
import "../
|
16
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
|
17
|
-
import "../popover/popover.less";
|
18
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_virtual_render_927587a8__ from "../virtual-render";
|
19
|
-
import "../virtual-render/virtual-render.less";
|
8
|
+
import * as __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__ from "../directives";
|
9
|
+
import * as __WEBPACK_EXTERNAL_MODULE__input_752b0149__ from "../input";
|
10
|
+
import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
|
11
|
+
import * as __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__ from "../popover";
|
12
|
+
import * as __WEBPACK_EXTERNAL_MODULE__virtual_render_2d1a77c9__ from "../virtual-render";
|
20
13
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__ from "lodash/debounce";
|
21
|
-
import * as
|
22
|
-
import "../tag/tag.less";
|
14
|
+
import * as __WEBPACK_EXTERNAL_MODULE__tag_7d126a1d__ from "../tag";
|
23
15
|
/******/ var __webpack_modules__ = ({
|
24
16
|
|
25
17
|
/***/ 7609:
|
@@ -442,7 +434,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
442
434
|
;// CONCATENATED MODULE: external "../shared"
|
443
435
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
444
436
|
var y = x => () => x
|
445
|
-
const
|
437
|
+
const external_shared_namespaceObject = x({ ["InputBehaviorType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.InputBehaviorType, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.RenderType, ["SelectedType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.SelectedType, ["SelectedTypeEnum"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.SelectedTypeEnum, ["SizeEnum"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.SizeEnum, ["TagThemeType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.TagThemeType, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.classes, ["observerResize"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.observerResize, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.useFormItem, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstallProps });
|
446
438
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
447
439
|
function _typeof(o) {
|
448
440
|
"@babel/helpers - typeof";
|
@@ -497,21 +489,17 @@ var isEqual_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
497
489
|
var isEqual_y = x => () => x
|
498
490
|
const isEqual_namespaceObject = isEqual_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__["default"] });
|
499
491
|
;// CONCATENATED MODULE: external "../checkbox"
|
500
|
-
var
|
501
|
-
var
|
502
|
-
const
|
503
|
-
;// CONCATENATED MODULE: external "../checkbox/checkbox.less"
|
504
|
-
var checkbox_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
505
|
-
var checkbox_less_y = x => () => x
|
506
|
-
const checkbox_less_namespaceObject = checkbox_less_x({ });
|
492
|
+
var external_checkbox_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
493
|
+
var external_checkbox_y = x => () => x
|
494
|
+
const external_checkbox_namespaceObject = external_checkbox_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__checkbox_a57bcb84__["default"] });
|
507
495
|
;// CONCATENATED MODULE: external "../config-provider"
|
508
|
-
var
|
509
|
-
var
|
510
|
-
const
|
496
|
+
var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
497
|
+
var external_config_provider_y = x => () => x
|
498
|
+
const external_config_provider_namespaceObject = external_config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
|
511
499
|
;// CONCATENATED MODULE: external "../icon"
|
512
|
-
var
|
513
|
-
var
|
514
|
-
const
|
500
|
+
var external_icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
501
|
+
var external_icon_y = x => () => x
|
502
|
+
const external_icon_namespaceObject = external_icon_x({ ["AngleUp"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.AngleUp, ["AngleUpFill"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.AngleUpFill, ["Close"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Close, ["Done"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Done, ["Search"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Search, ["TextAll"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.TextAll });
|
515
503
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
516
504
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
517
505
|
try {
|
@@ -656,7 +644,7 @@ function usePopover(config, triggerRef) {
|
|
656
644
|
};
|
657
645
|
(0,external_vue_namespaceObject.onMounted)(function () {
|
658
646
|
if (!triggerRef.value) return;
|
659
|
-
observerIns = (0,
|
647
|
+
observerIns = (0,external_shared_namespaceObject.observerResize)(triggerRef.value, triggerRefResize, 60, true);
|
660
648
|
observerIns.start();
|
661
649
|
});
|
662
650
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
@@ -765,7 +753,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
765
753
|
|
766
754
|
|
767
755
|
|
768
|
-
|
769
756
|
/* harmony default export */ const src_option = ((0,external_vue_namespaceObject.defineComponent)({
|
770
757
|
name: 'Option',
|
771
758
|
props: {
|
@@ -773,9 +760,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
773
760
|
type: [String, Number, Object],
|
774
761
|
require: true
|
775
762
|
},
|
776
|
-
name:
|
777
|
-
disabled:
|
778
|
-
order:
|
763
|
+
name: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.number, external_shared_namespaceObject.PropTypes.string]),
|
764
|
+
disabled: external_shared_namespaceObject.PropTypes.bool.def(false),
|
765
|
+
order: external_shared_namespaceObject.PropTypes.number.def(0)
|
779
766
|
},
|
780
767
|
setup: function setup(props, _ref) {
|
781
768
|
var attrs = _ref.attrs;
|
@@ -863,7 +850,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
863
850
|
select === null || select === void 0 || select.unregister(optionID.value);
|
864
851
|
group === null || group === void 0 || group.unregister(optionID.value);
|
865
852
|
});
|
866
|
-
var _usePrefix = (0,
|
853
|
+
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
867
854
|
resolveClassName = _usePrefix.resolveClassName;
|
868
855
|
return _objectSpread(_objectSpread({}, (0,external_vue_namespaceObject.toRefs)(states)), {}, {
|
869
856
|
selected: selected,
|
@@ -882,25 +869,25 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
882
869
|
},
|
883
870
|
render: function render() {
|
884
871
|
var _this$$slots$default, _this$$slots$default2, _this$$slots;
|
885
|
-
var selectItemClass = (0,
|
872
|
+
var selectItemClass = (0,external_shared_namespaceObject.classes)(_defineProperty({
|
886
873
|
'is-selected': this.selected,
|
887
874
|
'is-disabled': this.disabled,
|
888
875
|
'is-multiple': this.multiple,
|
889
876
|
'is-hover': this.isHover,
|
890
|
-
'is-checkbox': this.selectedStyle ===
|
877
|
+
'is-checkbox': this.selectedStyle === external_shared_namespaceObject.SelectedTypeEnum.CHECKBOX
|
891
878
|
}, this.resolveClassName('select-option'), true));
|
892
879
|
return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("li", {
|
893
880
|
"class": selectItemClass,
|
894
881
|
"onClick": this.handleOptionClick,
|
895
882
|
"onMouseenter": this.handleMouseEnter
|
896
|
-
}, [this.showSelectedIcon && this.selectedStyle ===
|
883
|
+
}, [this.showSelectedIcon && this.selectedStyle === external_shared_namespaceObject.SelectedTypeEnum.CHECKBOX && (0,external_vue_namespaceObject.createVNode)(external_checkbox_namespaceObject["default"], {
|
897
884
|
"disabled": this.disabled,
|
898
885
|
"class": this.resolveClassName('select-checkbox'),
|
899
886
|
"modelValue": this.selected
|
900
887
|
}, null), (_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 : (0,external_vue_namespaceObject.createVNode)("span", {
|
901
888
|
"class": this.resolveClassName('select-option-item'),
|
902
889
|
"title": String(this.optionName)
|
903
|
-
}, [this.highlightKeyword ? this.transformNode(String(this.optionName)) : this.optionName]), this.showSelectedIcon && this.selected && this.selectedStyle ===
|
890
|
+
}, [this.highlightKeyword ? this.transformNode(String(this.optionName)) : this.optionName]), this.showSelectedIcon && this.selected && this.selectedStyle === external_shared_namespaceObject.SelectedTypeEnum.CHECK && (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Done, {
|
904
891
|
"class": this.resolveClassName('select-selected-icon'),
|
905
892
|
"width": 22,
|
906
893
|
"height": 22
|
@@ -983,10 +970,10 @@ function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
983
970
|
/* harmony default export */ const optionGroup = ((0,external_vue_namespaceObject.defineComponent)({
|
984
971
|
name: 'OptionGroup',
|
985
972
|
props: {
|
986
|
-
label:
|
987
|
-
disabled:
|
988
|
-
collapsible:
|
989
|
-
collapse:
|
973
|
+
label: external_shared_namespaceObject.PropTypes.string.def(''),
|
974
|
+
disabled: external_shared_namespaceObject.PropTypes.bool.def(false),
|
975
|
+
collapsible: external_shared_namespaceObject.PropTypes.bool.def(false),
|
976
|
+
collapse: external_shared_namespaceObject.PropTypes.bool.def(false) // 是否折叠初始状态
|
990
977
|
},
|
991
978
|
setup: function setup(props, _ref) {
|
992
979
|
var emit = _ref.emit;
|
@@ -1022,7 +1009,7 @@ function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
1022
1009
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
1023
1010
|
select === null || select === void 0 || select.unregisterGroup(instance.uid);
|
1024
1011
|
});
|
1025
|
-
var _usePrefix = (0,
|
1012
|
+
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
1026
1013
|
resolveClassName = _usePrefix.resolveClassName;
|
1027
1014
|
return optionGroup_objectSpread(optionGroup_objectSpread({}, (0,external_vue_namespaceObject.toRefs)(states)), {}, {
|
1028
1015
|
groupLabel: groupLabel,
|
@@ -1032,9 +1019,9 @@ function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
1032
1019
|
},
|
1033
1020
|
render: function render() {
|
1034
1021
|
var _this$$slots$default, _this$$slots;
|
1035
|
-
var groupClass = (0,
|
1036
|
-
var groupLabelClass = (0,
|
1037
|
-
var groupLabelIconClass = (0,
|
1022
|
+
var groupClass = (0,external_shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty({}, this.resolveClassName('option-group'), true), "collapsible", this.collapsible), "disabled", this.disabled));
|
1023
|
+
var groupLabelClass = (0,external_shared_namespaceObject.classes)(_defineProperty(_defineProperty({}, this.resolveClassName('option-group-label'), true), "collapsible", this.collapsible));
|
1024
|
+
var groupLabelIconClass = (0,external_shared_namespaceObject.classes)({
|
1038
1025
|
'default-group-label-icon': true,
|
1039
1026
|
collapse: this.groupCollapse
|
1040
1027
|
});
|
@@ -1045,7 +1032,7 @@ function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
1045
1032
|
"onClick": this.handleToggleCollapse
|
1046
1033
|
}, [this.$slots.label ? this.$slots.label() : (0,external_vue_namespaceObject.createVNode)("span", {
|
1047
1034
|
"class": "default-group-label"
|
1048
|
-
}, [this.collapsible && (0,external_vue_namespaceObject.createVNode)(
|
1035
|
+
}, [this.collapsible && (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.AngleUpFill, {
|
1049
1036
|
"class": groupLabelIconClass
|
1050
1037
|
}, null), (0,external_vue_namespaceObject.createVNode)("span", {
|
1051
1038
|
"class": "default-group-label-title"
|
@@ -1059,41 +1046,25 @@ var merge_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
1059
1046
|
var merge_y = x => () => x
|
1060
1047
|
const merge_namespaceObject = merge_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__["default"] });
|
1061
1048
|
;// CONCATENATED MODULE: external "../directives"
|
1062
|
-
var
|
1063
|
-
var
|
1064
|
-
const
|
1049
|
+
var external_directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1050
|
+
var external_directives_y = x => () => x
|
1051
|
+
const external_directives_namespaceObject = external_directives_x({ ["bkTooltips"]: () => __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__.bkTooltips, ["clickoutside"]: () => __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__.clickoutside });
|
1065
1052
|
;// CONCATENATED MODULE: external "../input"
|
1066
|
-
var
|
1067
|
-
var
|
1068
|
-
const
|
1069
|
-
;// CONCATENATED MODULE: external "../input/input.less"
|
1070
|
-
var input_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1071
|
-
var input_less_y = x => () => x
|
1072
|
-
const input_less_namespaceObject = input_less_x({ });
|
1053
|
+
var external_input_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1054
|
+
var external_input_y = x => () => x
|
1055
|
+
const external_input_namespaceObject = external_input_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__input_752b0149__["default"] });
|
1073
1056
|
;// CONCATENATED MODULE: external "../loading"
|
1074
|
-
var
|
1075
|
-
var
|
1076
|
-
const
|
1077
|
-
;// CONCATENATED MODULE: external "../loading/loading.less"
|
1078
|
-
var loading_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1079
|
-
var loading_less_y = x => () => x
|
1080
|
-
const loading_less_namespaceObject = loading_less_x({ });
|
1057
|
+
var external_loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1058
|
+
var external_loading_y = x => () => x
|
1059
|
+
const external_loading_namespaceObject = external_loading_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__["default"] });
|
1081
1060
|
;// CONCATENATED MODULE: external "../popover"
|
1082
|
-
var
|
1083
|
-
var
|
1084
|
-
const
|
1085
|
-
;// CONCATENATED MODULE: external "../popover/popover.less"
|
1086
|
-
var popover_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1087
|
-
var popover_less_y = x => () => x
|
1088
|
-
const popover_less_namespaceObject = popover_less_x({ });
|
1061
|
+
var external_popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1062
|
+
var external_popover_y = x => () => x
|
1063
|
+
const external_popover_namespaceObject = external_popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__["default"] });
|
1089
1064
|
;// CONCATENATED MODULE: external "../virtual-render"
|
1090
|
-
var
|
1091
|
-
var
|
1092
|
-
const
|
1093
|
-
;// CONCATENATED MODULE: external "../virtual-render/virtual-render.less"
|
1094
|
-
var virtual_render_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1095
|
-
var virtual_render_less_y = x => () => x
|
1096
|
-
const virtual_render_less_namespaceObject = virtual_render_less_x({ });
|
1065
|
+
var external_virtual_render_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1066
|
+
var external_virtual_render_y = x => () => x
|
1067
|
+
const external_virtual_render_namespaceObject = external_virtual_render_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__virtual_render_2d1a77c9__["default"] });
|
1097
1068
|
;// CONCATENATED MODULE: ../../packages/select/src/pinyin/dict.js
|
1098
1069
|
/*
|
1099
1070
|
* Tencent is pleased to support the open source community by making
|
@@ -2301,13 +2272,9 @@ var debounce_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
2301
2272
|
var debounce_y = x => () => x
|
2302
2273
|
const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__["default"] });
|
2303
2274
|
;// CONCATENATED MODULE: external "../tag"
|
2304
|
-
var
|
2305
|
-
var
|
2306
|
-
const
|
2307
|
-
;// CONCATENATED MODULE: external "../tag/tag.less"
|
2308
|
-
var tag_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
2309
|
-
var tag_less_y = x => () => x
|
2310
|
-
const tag_less_namespaceObject = tag_less_x({ });
|
2275
|
+
var external_tag_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
2276
|
+
var external_tag_y = x => () => x
|
2277
|
+
const external_tag_namespaceObject = external_tag_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__tag_7d126a1d__["default"] });
|
2311
2278
|
;// CONCATENATED MODULE: ../../packages/select/src/selectTagInput.tsx
|
2312
2279
|
|
2313
2280
|
|
@@ -2343,11 +2310,10 @@ const tag_less_namespaceObject = tag_less_x({ });
|
|
2343
2310
|
|
2344
2311
|
|
2345
2312
|
|
2346
|
-
|
2347
2313
|
/* harmony default export */ const selectTagInput = ((0,external_vue_namespaceObject.defineComponent)({
|
2348
2314
|
name: 'SelectTagInput',
|
2349
2315
|
directives: {
|
2350
|
-
bkTooltips:
|
2316
|
+
bkTooltips: external_directives_namespaceObject.bkTooltips
|
2351
2317
|
},
|
2352
2318
|
props: {
|
2353
2319
|
selected: {
|
@@ -2356,18 +2322,18 @@ const tag_less_namespaceObject = tag_less_x({ });
|
|
2356
2322
|
return [];
|
2357
2323
|
}
|
2358
2324
|
},
|
2359
|
-
tagTheme: (0,
|
2360
|
-
placeholder:
|
2361
|
-
filterable:
|
2362
|
-
allowCreate:
|
2363
|
-
disabled:
|
2364
|
-
modelValue:
|
2365
|
-
collapseTags:
|
2325
|
+
tagTheme: (0,external_shared_namespaceObject.TagThemeType)(),
|
2326
|
+
placeholder: external_shared_namespaceObject.PropTypes.string.def(''),
|
2327
|
+
filterable: external_shared_namespaceObject.PropTypes.bool.def(false),
|
2328
|
+
allowCreate: external_shared_namespaceObject.PropTypes.bool.def(false),
|
2329
|
+
disabled: external_shared_namespaceObject.PropTypes.bool.def(false),
|
2330
|
+
modelValue: external_shared_namespaceObject.PropTypes.any,
|
2331
|
+
collapseTags: external_shared_namespaceObject.PropTypes.bool.def(false)
|
2366
2332
|
},
|
2367
2333
|
emits: ['update:modelValue', 'remove', 'enter', 'keydown'],
|
2368
2334
|
setup: function setup(props, _ref) {
|
2369
2335
|
var emit = _ref.emit;
|
2370
|
-
var _usePrefix = (0,
|
2336
|
+
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
2371
2337
|
resolveClassName = _usePrefix.resolveClassName;
|
2372
2338
|
var select = (0,external_vue_namespaceObject.inject)(selectKey, null);
|
2373
2339
|
var _toRefs = (0,external_vue_namespaceObject.toRefs)(props),
|
@@ -2487,8 +2453,8 @@ const tag_less_namespaceObject = tag_less_x({ });
|
|
2487
2453
|
_this$$slots4,
|
2488
2454
|
_this$$slots4$suffix;
|
2489
2455
|
var prefix = (_this$$slots = this.$slots) === null || _this$$slots === void 0 || (_this$$slots$prefix = _this$$slots.prefix) === null || _this$$slots$prefix === void 0 ? void 0 : _this$$slots$prefix.call(_this$$slots);
|
2490
|
-
var selectTagClass = (0,
|
2491
|
-
var tagWrapperClass = (0,
|
2456
|
+
var selectTagClass = (0,external_shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, this.resolveClassName('select-tag'), true), this.resolveClassName('select-tag--default'), true), 'is-disabled', this.disabled), 'collapse-tag', this.collapseTags), 'has-prefix', !!prefix));
|
2457
|
+
var tagWrapperClass = (0,external_shared_namespaceObject.classes)(_defineProperty({}, this.resolveClassName('select-tag-wrapper'), true));
|
2492
2458
|
var inputStyle = {
|
2493
2459
|
display: this.selected.length && !this.filterable ? 'none' : ''
|
2494
2460
|
};
|
@@ -2499,7 +2465,7 @@ const tag_less_namespaceObject = tag_less_x({ });
|
|
2499
2465
|
"class": tagWrapperClass
|
2500
2466
|
}, [(_this$$slots$default = (_this$$slots$default2 = (_this$$slots3 = this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots3)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : this.selected.map(function (item, index) {
|
2501
2467
|
var _this$select;
|
2502
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
2468
|
+
return (0,external_vue_namespaceObject.createVNode)(external_tag_namespaceObject["default"], {
|
2503
2469
|
"closable": true,
|
2504
2470
|
"theme": _this.tagTheme,
|
2505
2471
|
"style": {
|
@@ -2516,7 +2482,7 @@ const tag_less_namespaceObject = tag_less_x({ });
|
|
2516
2482
|
return [(_this$select = _this.select) === null || _this$select === void 0 ? void 0 : _this$select.handleGetLabelByValue(item.value)];
|
2517
2483
|
}
|
2518
2484
|
});
|
2519
|
-
}), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(
|
2485
|
+
}), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(external_tag_namespaceObject["default"], {
|
2520
2486
|
"class": this.resolveClassName('select-overflow-tag'),
|
2521
2487
|
"style": {
|
2522
2488
|
display: !!this.overflowTagIndex && this.collapseTags ? '' : 'none'
|
@@ -2594,70 +2560,65 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2594
2560
|
|
2595
2561
|
|
2596
2562
|
|
2597
|
-
|
2598
|
-
|
2599
|
-
|
2600
|
-
|
2601
|
-
|
2602
2563
|
|
2603
2564
|
/* harmony default export */ const src_select = ((0,external_vue_namespaceObject.defineComponent)({
|
2604
2565
|
name: 'Select',
|
2605
2566
|
directives: {
|
2606
|
-
clickoutside:
|
2567
|
+
clickoutside: external_directives_namespaceObject.clickoutside
|
2607
2568
|
},
|
2608
2569
|
props: {
|
2609
|
-
modelValue:
|
2610
|
-
multiple:
|
2611
|
-
disabled:
|
2612
|
-
size:
|
2613
|
-
clearable:
|
2614
|
-
loading:
|
2615
|
-
filterable:
|
2616
|
-
remoteMethod:
|
2617
|
-
scrollHeight:
|
2618
|
-
showAll:
|
2619
|
-
allOptionId:
|
2620
|
-
showSelectAll:
|
2621
|
-
popoverMinWidth:
|
2622
|
-
showOnInit:
|
2623
|
-
multipleMode:
|
2624
|
-
tagTheme: (0,
|
2625
|
-
behavior: (0,
|
2626
|
-
collapseTags:
|
2627
|
-
autoHeight:
|
2628
|
-
noDataText:
|
2629
|
-
noMatchText:
|
2630
|
-
loadingText:
|
2631
|
-
placeholder:
|
2632
|
-
searchPlaceholder:
|
2633
|
-
selectAllText:
|
2634
|
-
scrollLoading:
|
2635
|
-
allowCreate:
|
2570
|
+
modelValue: external_shared_namespaceObject.PropTypes.any,
|
2571
|
+
multiple: external_shared_namespaceObject.PropTypes.bool.def(false),
|
2572
|
+
disabled: external_shared_namespaceObject.PropTypes.bool.def(false),
|
2573
|
+
size: external_shared_namespaceObject.PropTypes.size().def(external_shared_namespaceObject.SizeEnum.DEFAULT),
|
2574
|
+
clearable: external_shared_namespaceObject.PropTypes.bool.def(true),
|
2575
|
+
loading: external_shared_namespaceObject.PropTypes.bool.def(false),
|
2576
|
+
filterable: external_shared_namespaceObject.PropTypes.bool.def(true),
|
2577
|
+
remoteMethod: external_shared_namespaceObject.PropTypes.func,
|
2578
|
+
scrollHeight: external_shared_namespaceObject.PropTypes.number.def(200),
|
2579
|
+
showAll: external_shared_namespaceObject.PropTypes.bool.def(false),
|
2580
|
+
allOptionId: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.number, external_shared_namespaceObject.PropTypes.string]),
|
2581
|
+
showSelectAll: external_shared_namespaceObject.PropTypes.bool.def(false),
|
2582
|
+
popoverMinWidth: external_shared_namespaceObject.PropTypes.number.def(0),
|
2583
|
+
showOnInit: external_shared_namespaceObject.PropTypes.bool.def(false),
|
2584
|
+
multipleMode: external_shared_namespaceObject.PropTypes.oneOf(['default', 'tag']).def('default'),
|
2585
|
+
tagTheme: (0,external_shared_namespaceObject.TagThemeType)(),
|
2586
|
+
behavior: (0,external_shared_namespaceObject.InputBehaviorType)(),
|
2587
|
+
collapseTags: external_shared_namespaceObject.PropTypes.bool.def(false),
|
2588
|
+
autoHeight: external_shared_namespaceObject.PropTypes.bool.def(true),
|
2589
|
+
noDataText: external_shared_namespaceObject.PropTypes.string,
|
2590
|
+
noMatchText: external_shared_namespaceObject.PropTypes.string,
|
2591
|
+
loadingText: external_shared_namespaceObject.PropTypes.string,
|
2592
|
+
placeholder: external_shared_namespaceObject.PropTypes.string,
|
2593
|
+
searchPlaceholder: external_shared_namespaceObject.PropTypes.string,
|
2594
|
+
selectAllText: external_shared_namespaceObject.PropTypes.string,
|
2595
|
+
scrollLoading: external_shared_namespaceObject.PropTypes.bool.def(false),
|
2596
|
+
allowCreate: external_shared_namespaceObject.PropTypes.bool.def(false),
|
2636
2597
|
popoverOptions: Object,
|
2637
|
-
customContent:
|
2638
|
-
list:
|
2639
|
-
idKey:
|
2640
|
-
displayKey:
|
2641
|
-
withValidate:
|
2642
|
-
showSelectedIcon:
|
2643
|
-
inputSearch:
|
2644
|
-
enableVirtualRender:
|
2645
|
-
allowEmptyValues:
|
2646
|
-
autoFocus:
|
2647
|
-
keepSearchValue:
|
2648
|
-
prefix:
|
2649
|
-
selectedStyle: (0,
|
2598
|
+
customContent: external_shared_namespaceObject.PropTypes.bool.def(false),
|
2599
|
+
list: external_shared_namespaceObject.PropTypes.arrayOf(external_shared_namespaceObject.PropTypes.any).def([]),
|
2600
|
+
idKey: external_shared_namespaceObject.PropTypes.string.def('value'),
|
2601
|
+
displayKey: external_shared_namespaceObject.PropTypes.string.def('label'),
|
2602
|
+
withValidate: external_shared_namespaceObject.PropTypes.bool.def(true),
|
2603
|
+
showSelectedIcon: external_shared_namespaceObject.PropTypes.bool.def(true),
|
2604
|
+
inputSearch: external_shared_namespaceObject.PropTypes.bool.def(false),
|
2605
|
+
enableVirtualRender: external_shared_namespaceObject.PropTypes.bool.def(false),
|
2606
|
+
allowEmptyValues: external_shared_namespaceObject.PropTypes.array.def([]),
|
2607
|
+
autoFocus: external_shared_namespaceObject.PropTypes.bool.def(false),
|
2608
|
+
keepSearchValue: external_shared_namespaceObject.PropTypes.bool.def(false),
|
2609
|
+
prefix: external_shared_namespaceObject.PropTypes.string,
|
2610
|
+
selectedStyle: (0,external_shared_namespaceObject.SelectedType)(),
|
2650
2611
|
filterOption: {
|
2651
2612
|
type: Function
|
2652
2613
|
},
|
2653
|
-
searchWithPinyin:
|
2654
|
-
highlightKeyword:
|
2614
|
+
searchWithPinyin: external_shared_namespaceObject.PropTypes.bool.def(true),
|
2615
|
+
highlightKeyword: external_shared_namespaceObject.PropTypes.bool.def(false) // 搜索高亮
|
2655
2616
|
},
|
2656
2617
|
emits: ['update:modelValue', 'change', 'toggle', 'clear', 'scroll-end', 'focus', 'blur', 'tag-remove', 'select', 'deselect', 'search-change'],
|
2657
2618
|
setup: function setup(props, _ref) {
|
2658
2619
|
var emit = _ref.emit;
|
2659
|
-
var t = (0,
|
2660
|
-
var _usePrefix = (0,
|
2620
|
+
var t = (0,external_config_provider_namespaceObject.useLocale)('select');
|
2621
|
+
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
2661
2622
|
resolveClassName = _usePrefix.resolveClassName;
|
2662
2623
|
var _toRefs = (0,external_vue_namespaceObject.toRefs)(props),
|
2663
2624
|
modelValue = _toRefs.modelValue,
|
@@ -2727,7 +2688,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2727
2688
|
}
|
2728
2689
|
return props.selectAllText;
|
2729
2690
|
});
|
2730
|
-
var formItem = (0,
|
2691
|
+
var formItem = (0,external_shared_namespaceObject.useFormItem)();
|
2731
2692
|
var inputRef = (0,external_vue_namespaceObject.ref)();
|
2732
2693
|
var triggerRef = (0,external_vue_namespaceObject.ref)();
|
2733
2694
|
var contentRef = (0,external_vue_namespaceObject.ref)();
|
@@ -2874,7 +2835,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2874
2835
|
reference: selectTagInputRef.value,
|
2875
2836
|
offset: 4,
|
2876
2837
|
popoverDelay: 0,
|
2877
|
-
renderType:
|
2838
|
+
renderType: external_shared_namespaceObject.RenderType.AUTO
|
2878
2839
|
}, popoverOptions.value);
|
2879
2840
|
});
|
2880
2841
|
var _useRegistry = useRegistry(optionsMap),
|
@@ -3398,10 +3359,10 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3398
3359
|
},
|
3399
3360
|
render: function render() {
|
3400
3361
|
var _this = this;
|
3401
|
-
var selectClass = (0,
|
3362
|
+
var selectClass = (0,external_shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(this.resolveClassName('select')), true), 'popover-show', this.isPopoverShow), 'is-disabled', this.isDisabled), 'is-focus', this.isFocus), 'is-filterable', this.filterable), this.size, true), this.behavior, true));
|
3402
3363
|
var suffixIcon = function suffixIcon() {
|
3403
3364
|
if (_this.loading) {
|
3404
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
3365
|
+
return (0,external_vue_namespaceObject.createVNode)(external_loading_namespaceObject["default"], {
|
3405
3366
|
"loading": true,
|
3406
3367
|
"theme": "primary",
|
3407
3368
|
"class": "spinner",
|
@@ -3410,12 +3371,12 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3410
3371
|
}, null);
|
3411
3372
|
}
|
3412
3373
|
if (_this.clearable && _this.isHover && _this.selected.length && !_this.isDisabled) {
|
3413
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
3374
|
+
return (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Close, {
|
3414
3375
|
"class": "clear-icon",
|
3415
3376
|
"onClick": _this.handleClear
|
3416
3377
|
}, null);
|
3417
3378
|
}
|
3418
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
3379
|
+
return (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.AngleUp, {
|
3419
3380
|
"class": "angle-up"
|
3420
3381
|
}, null);
|
3421
3382
|
};
|
@@ -3440,7 +3401,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3440
3401
|
"class": _this.resolveClassName('select-option'),
|
3441
3402
|
"onMouseenter": _this.handleSelectedAllOptionMouseEnter,
|
3442
3403
|
"onClick": _this.toggleSelectAll
|
3443
|
-
}, [_this.selectedStyle === 'checkbox' && (0,external_vue_namespaceObject.createVNode)(
|
3404
|
+
}, [_this.selectedStyle === 'checkbox' && (0,external_vue_namespaceObject.createVNode)(external_checkbox_namespaceObject["default"], {
|
3444
3405
|
"class": _this.resolveClassName('select-checkbox'),
|
3445
3406
|
"modelValue": _this.isAllSelected,
|
3446
3407
|
"indeterminate": !_this.isAllSelected && !!_this.selected.length && !_this.isAll
|
@@ -3455,7 +3416,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3455
3416
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
3456
3417
|
"class": ['wrapper', _this.selected.length === 1 && ((_this$selected$ = _this.selected[0]) === null || _this$selected$ === void 0 ? void 0 : _this$selected$.value) === _this.allOptionId ? 'active' : ''],
|
3457
3418
|
"onClick": _this.toggleAll
|
3458
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
3419
|
+
}, [(0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.TextAll, {
|
3459
3420
|
"class": "select-all-icon"
|
3460
3421
|
}, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.t.all])])]);
|
3461
3422
|
};
|
@@ -3490,7 +3451,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3490
3451
|
}
|
3491
3452
|
});
|
3492
3453
|
}
|
3493
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
3454
|
+
return (0,external_vue_namespaceObject.createVNode)(external_input_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
|
3494
3455
|
"ref": "inputRef",
|
3495
3456
|
"type": "text",
|
3496
3457
|
"modelValue": _this.isInput ? _this.customOptionName : _this.selectedLabel.join(','),
|
@@ -3539,7 +3500,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3539
3500
|
"ref": "contentRef"
|
3540
3501
|
}, [renderAll(), _this.filterable && !_this.inputSearch && (0,external_vue_namespaceObject.createVNode)("div", {
|
3541
3502
|
"class": _this.resolveClassName('select-search-wrapper')
|
3542
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
3503
|
+
}, [(0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Search, {
|
3543
3504
|
"class": "icon-search",
|
3544
3505
|
"width": 16,
|
3545
3506
|
"height": 16
|
@@ -3552,7 +3513,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3552
3513
|
}
|
3553
3514
|
}, null), [[external_vue_namespaceObject.vModelText, _this.searchValue]])]), !_this.isShowSelectContent && (0,external_vue_namespaceObject.createVNode)("div", {
|
3554
3515
|
"class": _this.resolveClassName('select-empty')
|
3555
|
-
}, [_this.searchLoading && (0,external_vue_namespaceObject.createVNode)(
|
3516
|
+
}, [_this.searchLoading && (0,external_vue_namespaceObject.createVNode)(external_loading_namespaceObject["default"], {
|
3556
3517
|
"class": "mr5",
|
3557
3518
|
"theme": "primary",
|
3558
3519
|
"loading": true,
|
@@ -3568,7 +3529,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3568
3529
|
"onScroll": _this.handleScroll
|
3569
3530
|
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("ul", {
|
3570
3531
|
"class": _this.resolveClassName('select-options')
|
3571
|
-
}, [renderSelectAll(), _this.enableVirtualRender ? (0,external_vue_namespaceObject.createVNode)(
|
3532
|
+
}, [renderSelectAll(), _this.enableVirtualRender ? (0,external_vue_namespaceObject.createVNode)(external_virtual_render_namespaceObject["default"], {
|
3572
3533
|
"list": _this.virtualList,
|
3573
3534
|
"height": _this.virtualHeight,
|
3574
3535
|
"lineHeight": 32,
|
@@ -3607,7 +3568,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3607
3568
|
} : null);
|
3608
3569
|
}), (_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", {
|
3609
3570
|
"class": _this.resolveClassName('select-options-loading')
|
3610
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
3571
|
+
}, [(0,external_vue_namespaceObject.createVNode)(external_loading_namespaceObject["default"], {
|
3611
3572
|
"class": "spinner mr5",
|
3612
3573
|
"theme": "primary",
|
3613
3574
|
"loading": true,
|
@@ -3619,7 +3580,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3619
3580
|
};
|
3620
3581
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
3621
3582
|
"class": selectClass
|
3622
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
3583
|
+
}, [(0,external_vue_namespaceObject.createVNode)(external_popover_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)(this.popoverConfig, {
|
3623
3584
|
"onClickoutside": this.handleClickOutside,
|
3624
3585
|
"onAfterShow": this.handlePopoverShow,
|
3625
3586
|
"ref": "popoverRef"
|
@@ -3663,7 +3624,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3663
3624
|
|
3664
3625
|
|
3665
3626
|
|
3666
|
-
var BkSelect = (0,
|
3627
|
+
var BkSelect = (0,external_shared_namespaceObject.withInstallProps)(src_select, {
|
3667
3628
|
Option: src_option,
|
3668
3629
|
Group: optionGroup
|
3669
3630
|
});
|