bkui-vue 2.0.1-beta.50 → 2.0.1-beta.51.select.1
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/README.md +0 -15
- package/dist/index.cjs.js +162 -162
- package/dist/index.esm.js +29944 -31126
- package/dist/index.umd.js +162 -162
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +0 -130
- package/lib/affix/affix.variable.css +1 -262
- package/lib/affix/index.js +7 -7
- package/lib/alert/alert.css +3 -133
- package/lib/alert/alert.d.ts +12 -5
- package/lib/alert/alert.variable.css +1 -262
- package/lib/alert/index.d.ts +26 -11
- package/lib/alert/index.js +1 -0
- package/lib/backtop/backtop.css +3 -133
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/backtop.variable.css +4 -395
- package/lib/backtop/index.d.ts +3 -3
- package/lib/backtop/index.js +6 -6
- package/lib/badge/badge.css +26 -156
- package/lib/badge/badge.variable.css +1 -262
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.css +5 -135
- package/lib/breadcrumb/breadcrumb.variable.css +6 -397
- package/lib/button/button.css +143 -273
- package/lib/button/button.d.ts +7 -7
- package/lib/button/button.variable.css +1 -262
- package/lib/button/index.d.ts +8 -8
- package/lib/button/index.js +7 -6
- package/lib/card/card.css +4 -134
- package/lib/card/card.variable.css +5 -396
- package/lib/cascader/cascader-panel.d.ts +1 -1
- package/lib/cascader/cascader.css +26 -156
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/cascader.less +4 -4
- package/lib/cascader/cascader.variable.css +27 -418
- package/lib/cascader/index.js +37 -36
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox-group.d.ts +16 -0
- package/lib/checkbox/checkbox.css +9 -139
- package/lib/checkbox/checkbox.d.ts +7 -7
- package/lib/checkbox/checkbox.variable.css +1 -262
- package/lib/checkbox/index.d.ts +22 -11
- package/lib/checkbox/index.js +6 -14
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/code-diff.css +0 -130
- package/lib/code-diff/code-diff.variable.css +1 -262
- package/lib/code-diff/index.js +8 -8
- package/lib/collapse/collapse.css +1 -142
- package/lib/collapse/collapse.d.ts +0 -11
- package/lib/collapse/collapse.less +1 -15
- package/lib/collapse/collapse.variable.css +1 -273
- package/lib/collapse/index.d.ts +0 -23
- package/lib/collapse/index.js +3 -11
- package/lib/collapse/props.d.ts +0 -8
- package/lib/collapse/utils.d.ts +2 -2
- package/lib/collapse-transition/collapse-transition.css +0 -130
- package/lib/collapse-transition/collapse-transition.variable.css +1 -262
- package/lib/color-picker/color-picker.css +3 -133
- package/lib/color-picker/color-picker.less +3 -3
- package/lib/color-picker/color-picker.variable.css +4 -265
- package/lib/color-picker/index.js +45 -45
- package/lib/components.d.ts +31 -32
- package/lib/components.js +30 -31
- package/lib/config-provider/config-provider.css +0 -130
- package/lib/config-provider/config-provider.variable.css +1 -262
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/container/container.css +0 -130
- package/lib/container/container.variable.css +1 -392
- package/lib/container/index.js +7 -6
- package/lib/date-picker/base/date-table.d.ts +1 -1
- package/lib/date-picker/base/month-table.d.ts +1 -1
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/year-table.d.ts +3 -3
- package/lib/date-picker/date-picker.css +17 -147
- package/lib/date-picker/date-picker.d.ts +10 -0
- package/lib/date-picker/date-picker.variable.css +1 -262
- package/lib/date-picker/index.d.ts +22 -0
- package/lib/date-picker/index.js +223 -320
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +68 -6
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +10 -1
- package/lib/date-picker/panel/time.d.ts +10 -1
- package/lib/date-picker/props.d.ts +5 -1
- package/lib/date-picker/time-picker.d.ts +9 -0
- package/lib/date-picker/utils.d.ts +1 -5
- package/lib/dialog/dialog.css +88 -269
- package/lib/dialog/dialog.d.ts +146 -68
- package/lib/dialog/dialog.less +76 -9
- package/lib/dialog/dialog.variable.css +89 -531
- package/lib/dialog/index.d.ts +340 -159
- package/lib/dialog/index.js +221 -197
- package/lib/dialog/props.d.ts +52 -22
- package/lib/directives/index.d.ts +3 -3
- package/lib/directives/index.js +168 -170
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +4 -2
- package/lib/divider/divider.css +3 -133
- package/lib/divider/divider.d.ts +5 -5
- package/lib/divider/divider.variable.css +1 -262
- package/lib/divider/index.d.ts +11 -11
- package/lib/divider/index.js +2 -2
- package/lib/divider/props.d.ts +2 -2
- package/lib/dropdown/dropdown-item.d.ts +1 -1
- package/lib/dropdown/dropdown-menu.d.ts +1 -1
- package/lib/dropdown/dropdown.css +0 -130
- package/lib/dropdown/dropdown.d.ts +5 -5
- package/lib/dropdown/dropdown.variable.css +1 -392
- package/lib/dropdown/index.d.ts +13 -13
- package/lib/dropdown/index.js +7 -7
- package/lib/exception/exception.css +0 -130
- package/lib/exception/exception.d.ts +9 -9
- package/lib/exception/exception.variable.css +1 -262
- package/lib/exception/index.d.ts +11 -11
- package/lib/exception/index.js +10 -10
- package/lib/exception/typings/index.d.ts +1 -1
- package/lib/fixed-navbar/fixed-navbar.css +4 -134
- package/lib/fixed-navbar/fixed-navbar.variable.css +1 -262
- package/lib/fixed-navbar/index.js +2 -2
- package/lib/form/form-item.d.ts +16 -0
- package/lib/form/form.css +0 -130
- package/lib/form/form.d.ts +2 -2
- package/lib/form/form.variable.css +1 -262
- package/lib/form/index.d.ts +11 -0
- package/lib/form/index.js +16 -14
- package/lib/form/type.d.ts +2 -2
- package/lib/icon/index.d.ts +11 -11
- package/lib/icon/index.js +11 -11
- package/lib/image/image-viewer.css +0 -130
- package/lib/image/image-viewer.d.ts +1 -1
- package/lib/image/image-viewer.variable.css +1 -262
- package/lib/image/image.css +0 -130
- package/lib/image/image.variable.css +1 -392
- package/lib/image/index.js +21 -20
- package/lib/index.d.ts +3 -9
- package/lib/index.js +29 -5
- package/lib/info-box/index.d.ts +2 -2
- package/lib/info-box/index.js +173 -326
- package/lib/info-box/info-box.css +7 -193
- package/lib/info-box/info-box.d.ts +23 -25
- package/lib/info-box/info-box.less +14 -76
- package/lib/info-box/info-box.variable.css +8 -325
- package/lib/input/index.d.ts +15 -15
- package/lib/input/index.js +23 -26
- package/lib/input/input.css +72 -202
- package/lib/input/input.d.ts +15 -15
- package/lib/input/input.variable.css +73 -464
- package/lib/link/index.d.ts +11 -11
- package/lib/link/index.js +3 -3
- package/lib/link/link.css +16 -146
- package/lib/link/link.d.ts +5 -5
- package/lib/link/link.variable.css +1 -262
- package/lib/loading/index.d.ts +4 -4
- package/lib/loading/index.js +6 -6
- package/lib/loading/loading.css +16 -146
- package/lib/loading/loading.d.ts +6 -6
- package/lib/loading/loading.variable.css +17 -408
- package/lib/locale/index.d.ts +1 -1
- package/lib/menu/index.js +1 -0
- package/lib/menu/menu.css +18 -148
- package/lib/menu/menu.variable.css +19 -410
- package/lib/menu/submenu.css +0 -130
- package/lib/menu/submenu.variable.css +1 -262
- package/lib/menu/utils.d.ts +3 -3
- package/lib/message/index.js +18 -18
- package/lib/message/message.css +21 -151
- package/lib/message/message.variable.css +1 -262
- package/lib/message/messageConstructor.d.ts +11 -11
- package/lib/modal/hooks.d.ts +1 -1
- package/lib/modal/index.d.ts +343 -68
- package/lib/modal/index.js +701 -237
- package/lib/modal/modal.css +32 -261
- package/lib/modal/modal.d.ts +131 -26
- package/lib/modal/modal.less +29 -83
- package/lib/modal/modal.variable.css +33 -523
- package/lib/modal/props.mixin.d.ts +51 -10
- package/lib/navigation/index.js +20 -20
- package/lib/navigation/navigation.css +2 -132
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/navigation/navigation.variable.css +1 -262
- package/lib/notify/index.js +4 -4
- package/lib/notify/notify.css +7 -137
- package/lib/notify/notify.variable.css +1 -262
- package/lib/overflow-title/components/overflow-title.d.ts +16 -9
- package/lib/overflow-title/index.d.ts +34 -19
- package/lib/overflow-title/index.js +64 -107
- package/lib/overflow-title/props.d.ts +21 -18
- package/lib/pagination/index.d.ts +19 -0
- package/lib/pagination/index.js +23 -44
- package/lib/pagination/pagination.css +9 -139
- package/lib/pagination/pagination.d.ts +13 -0
- package/lib/pagination/pagination.less +13 -14
- package/lib/pagination/pagination.variable.css +9 -270
- package/lib/pagination/type.d.ts +1 -1
- package/lib/pagination/use-limit.d.ts +1 -1
- package/lib/pagination/use-total.d.ts +1 -1
- package/lib/plugin-popover/index.js +20 -18
- package/lib/pop-confirm/index.d.ts +43 -11
- package/lib/pop-confirm/index.js +28 -27
- package/lib/pop-confirm/pop-confirm.css +1 -133
- package/lib/pop-confirm/pop-confirm.d.ts +19 -5
- package/lib/pop-confirm/pop-confirm.less +1 -3
- package/lib/pop-confirm/pop-confirm.variable.css +2 -265
- package/lib/pop-confirm/props.d.ts +11 -5
- package/lib/popover/const.d.ts +3 -3
- package/lib/popover/index.d.ts +19 -19
- package/lib/popover/index.js +20 -18
- package/lib/popover/plugin-popover.d.ts +1 -1
- package/lib/popover/popover.css +0 -130
- package/lib/popover/popover.d.ts +7 -7
- package/lib/popover/popover.variable.css +1 -262
- package/lib/popover/props.d.ts +4 -4
- package/lib/preset.d.ts +1 -0
- package/lib/preset.js +1 -0
- package/lib/process/index.js +3 -3
- package/lib/process/process.css +13 -143
- package/lib/process/process.variable.css +1 -262
- package/lib/progress/index.d.ts +11 -11
- package/lib/progress/index.js +11 -10
- package/lib/progress/progress.css +4 -134
- package/lib/progress/progress.d.ts +7 -7
- package/lib/progress/progress.variable.css +5 -396
- package/lib/radio/index.d.ts +0 -29
- package/lib/radio/index.js +26 -55
- package/lib/radio/radio-button.d.ts +0 -10
- package/lib/radio/radio-group.d.ts +0 -10
- package/lib/radio/radio.css +42 -172
- package/lib/radio/radio.d.ts +0 -10
- package/lib/radio/radio.variable.css +1 -262
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.js +8 -8
- package/lib/rate/rate.css +0 -157
- package/lib/rate/rate.less +0 -33
- package/lib/rate/rate.variable.css +1 -289
- package/lib/rate/star.css +27 -0
- package/lib/rate/star.less +34 -0
- package/lib/{styles/themes/themes.variable.css → rate/star.variable.css} +28 -2
- package/lib/resize-layout/index.d.ts +11 -34
- package/lib/resize-layout/index.js +14 -29
- package/lib/resize-layout/resize-layout.css +0 -130
- package/lib/resize-layout/resize-layout.d.ts +5 -16
- package/lib/resize-layout/resize-layout.variable.css +1 -262
- package/lib/search-select/index.d.ts +72 -40
- package/lib/search-select/index.js +130 -148
- package/lib/search-select/input.d.ts +4 -5
- package/lib/search-select/menu.d.ts +1 -1
- package/lib/search-select/search-select.css +33 -163
- package/lib/search-select/search-select.d.ts +39 -15
- package/lib/search-select/search-select.variable.css +34 -425
- package/lib/search-select/selected.d.ts +10 -12
- package/lib/search-select/utils.d.ts +6 -6
- package/lib/select/common.d.ts +4 -4
- package/lib/select/index.d.ts +93 -101
- package/lib/select/index.js +192 -235
- package/lib/select/option.d.ts +6 -5
- package/lib/select/select.css +45 -176
- package/lib/select/select.d.ts +36 -38
- package/lib/select/select.less +6 -8
- package/lib/select/select.variable.css +46 -438
- package/lib/select/selectTagInput.d.ts +6 -6
- package/lib/select/type.d.ts +11 -10
- package/lib/shared/index.d.ts +2 -2
- package/lib/shared/index.js +89 -108
- package/lib/shared/mask.d.ts +11 -0
- package/lib/shared/popover.d.ts +3 -3
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/vue-types.d.ts +46 -46
- package/lib/shared/z-index-manager.d.ts +6 -6
- package/lib/sideslider/index.d.ts +217 -75
- package/lib/sideslider/index.js +42 -68
- package/lib/sideslider/sideslider.css +92 -152
- package/lib/sideslider/sideslider.d.ts +103 -35
- package/lib/sideslider/sideslider.less +112 -31
- package/lib/sideslider/sideslider.variable.css +92 -283
- package/lib/slider/index.d.ts +0 -19
- package/lib/slider/index.js +26 -64
- package/lib/slider/slider.css +4 -148
- package/lib/slider/slider.d.ts +0 -9
- package/lib/slider/slider.less +0 -15
- package/lib/slider/slider.variable.css +1 -276
- package/lib/steps/index.d.ts +29 -14
- package/lib/steps/index.js +4 -3
- package/lib/steps/steps.css +38 -168
- package/lib/steps/steps.d.ts +18 -8
- package/lib/steps/steps.variable.css +1 -262
- package/lib/styles/index.d.ts +1 -1
- package/lib/styles/mixins/animate.css +0 -130
- package/lib/styles/mixins/animate.variable.css +1 -262
- package/lib/styles/mixins/mixins.css +0 -130
- package/lib/styles/mixins/mixins.variable.css +0 -130
- package/lib/styles/mixins/popper.css +0 -130
- package/lib/styles/mixins/popper.variable.css +1 -262
- package/lib/styles/mixins/scroll.css +0 -130
- package/lib/styles/mixins/scroll.variable.css +1 -262
- package/lib/styles/reset.css +0 -130
- package/lib/styles/reset.variable.css +1 -262
- package/lib/styles/themes/themes.less +129 -299
- package/lib/swiper/index.js +5 -5
- package/lib/swiper/swiper.css +0 -130
- package/lib/swiper/swiper.variable.css +1 -262
- package/lib/switcher/index.js +2 -2
- package/lib/switcher/switcher.css +17 -147
- package/lib/switcher/switcher.d.ts +2 -2
- package/lib/switcher/switcher.variable.css +18 -409
- package/lib/tab/index.d.ts +114 -22
- package/lib/tab/index.js +29 -16
- package/lib/tab/props.d.ts +50 -15
- package/lib/tab/tab-nav.d.ts +55 -12
- package/lib/tab/tab.css +17 -147
- package/lib/tab/tab.d.ts +54 -10
- package/lib/tab/tab.variable.css +1 -262
- package/lib/table/components/table-cell.d.ts +2 -25
- package/lib/table/components/table-column.d.ts +239 -20
- package/lib/table/const.d.ts +13 -25
- package/lib/table/events.d.ts +112 -16
- package/lib/table/index.d.ts +738 -135
- package/lib/table/index.js +6037 -23581
- package/lib/table/plugins/col-group.d.ts +38 -0
- package/lib/table/plugins/head-filter.css +4 -138
- package/lib/table/plugins/head-filter.d.ts +1 -2
- package/lib/table/plugins/head-filter.less +3 -6
- package/lib/table/plugins/head-filter.variable.css +5 -270
- package/lib/table/plugins/head-sort.css +0 -130
- package/lib/table/plugins/head-sort.variable.css +1 -262
- package/lib/table/plugins/settings.css +0 -131
- package/lib/table/plugins/settings.d.ts +16 -0
- package/lib/table/plugins/settings.less +0 -1
- package/lib/table/plugins/settings.variable.css +1 -263
- package/lib/table/plugins/use-active-columns.d.ts +16 -0
- package/lib/table/plugins/use-column-resize.d.ts +35 -0
- package/lib/table/{hooks → plugins}/use-draggable.d.ts +2 -2
- package/lib/table/plugins/use-fixed-column.d.ts +27 -0
- package/lib/table/plugins/use-head-cell.d.ts +7 -0
- package/lib/table/plugins/use-pagination.d.ts +21 -0
- package/lib/table/props.d.ts +64 -131
- package/lib/table/table.css +302 -562
- package/lib/table/table.d.ts +185 -62
- package/lib/table/table.less +148 -187
- package/lib/table/table.variable.css +303 -824
- package/lib/table/use-attributes.d.ts +61 -0
- package/lib/table/use-column.d.ts +276 -0
- package/lib/table/use-common.d.ts +1679 -0
- package/lib/table/use-render.d.ts +11 -0
- package/lib/table/utils.d.ts +21 -47
- package/lib/table-column/index.d.ts +579 -30
- package/lib/table-column/index.js +320 -17373
- package/lib/tag/index.d.ts +11 -11
- package/lib/tag/index.js +3 -2
- package/lib/tag/tag.css +6 -136
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag/tag.less +1 -1
- package/lib/tag/tag.variable.css +2 -263
- package/lib/tag-input/common.d.ts +1 -1
- package/lib/tag-input/index.d.ts +8 -8
- package/lib/tag-input/index.js +30 -30
- package/lib/tag-input/tag-input.css +18 -148
- package/lib/tag-input/tag-input.d.ts +4 -4
- package/lib/tag-input/tag-input.variable.css +1 -262
- package/lib/tag-input/tag-props.d.ts +2 -2
- package/lib/time-picker/index.d.ts +19 -0
- package/lib/time-picker/time-picker.css +0 -130
- package/lib/time-picker/time-picker.variable.css +1 -262
- package/lib/timeline/index.js +2 -2
- package/lib/timeline/timeline.css +19 -149
- package/lib/timeline/timeline.variable.css +1 -262
- package/lib/transfer/const.d.ts +2 -2
- package/lib/transfer/index.js +19 -19
- package/lib/transfer/transfer.css +28 -158
- package/lib/transfer/transfer.less +3 -3
- package/lib/transfer/transfer.variable.css +10 -271
- package/lib/tree/constant.d.ts +20 -24
- package/lib/tree/index.d.ts +24 -82
- package/lib/tree/index.js +90 -17657
- package/lib/tree/props.d.ts +10 -35
- package/lib/tree/tree.css +18 -248
- package/lib/tree/tree.d.ts +8 -34
- package/lib/tree/tree.less +1 -1
- package/lib/tree/tree.variable.css +19 -510
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-node-action.d.ts +9 -10
- package/lib/tree/use-node-async.d.ts +1 -2
- package/lib/tree/use-node-attribute.d.ts +30 -47
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +5 -8
- package/lib/tree/util.d.ts +21 -21
- package/lib/upload/index.d.ts +0 -23
- package/lib/upload/index.js +41 -71
- package/lib/upload/props.d.ts +1 -6
- package/lib/upload/upload.css +27 -157
- package/lib/upload/upload.d.ts +0 -11
- package/lib/upload/upload.type.d.ts +6 -12
- package/lib/upload/upload.variable.css +28 -419
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/lib/virtual-render/index.d.ts +46 -39
- package/lib/virtual-render/index.js +117 -17585
- package/lib/virtual-render/props.d.ts +9 -18
- package/lib/virtual-render/use-fix-top.d.ts +8 -3
- package/lib/virtual-render/v-virtual-render.d.ts +2 -7
- package/lib/virtual-render/virtual-render.css +9 -239
- package/lib/virtual-render/virtual-render.d.ts +22 -19
- package/lib/virtual-render/virtual-render.less +10 -1
- package/lib/virtual-render/virtual-render.variable.css +10 -501
- package/lib/volar.components.d.ts +0 -2
- package/package.json +55 -17
- package/lib/info-box/render-component.d.ts +0 -4
- package/lib/modal/mask.d.ts +0 -6
- package/lib/scrollbar/css/scrollbar.css +0 -239
- package/lib/scrollbar/css/scrollbar.less +0 -139
- package/lib/scrollbar/css/scrollbar.variable.css +0 -499
- package/lib/scrollbar/handlers/click-rail.d.ts +0 -2
- package/lib/scrollbar/handlers/drag-thumb.d.ts +0 -1
- package/lib/scrollbar/handlers/keyboard.d.ts +0 -2
- package/lib/scrollbar/handlers/mouse-wheel.d.ts +0 -2
- package/lib/scrollbar/handlers/touch.d.ts +0 -4
- package/lib/scrollbar/helper/class-names.d.ts +0 -21
- package/lib/scrollbar/helper/css.d.ts +0 -3
- package/lib/scrollbar/helper/dom.d.ts +0 -4
- package/lib/scrollbar/helper/event-manager.d.ts +0 -20
- package/lib/scrollbar/helper/util.d.ts +0 -11
- package/lib/scrollbar/index.d.ts +0 -135
- package/lib/scrollbar/index.js +0 -1657
- package/lib/scrollbar/process-scroll-diff.d.ts +0 -1
- package/lib/scrollbar/update-geometry.d.ts +0 -8
- package/lib/shared/frame-throttle.d.ts +0 -15
- package/lib/styles/themes/themes.css +0 -130
- package/lib/table/components/ghost-body.d.ts +0 -2
- package/lib/table/hooks/use-cell.d.ts +0 -20
- package/lib/table/hooks/use-column-resize.d.ts +0 -7
- package/lib/table/hooks/use-column-template.d.ts +0 -5
- package/lib/table/hooks/use-columns.d.ts +0 -69
- package/lib/table/hooks/use-fixed-column.d.ts +0 -10
- package/lib/table/hooks/use-head.d.ts +0 -16
- package/lib/table/hooks/use-layout.d.ts +0 -24
- package/lib/table/hooks/use-pagination.d.ts +0 -16
- package/lib/table/hooks/use-render.d.ts +0 -23
- package/lib/table/hooks/use-rows.d.ts +0 -27
- package/lib/table/hooks/use-settings.d.ts +0 -130
- package/lib/table/hooks/use-shift-key.d.ts +0 -15
- package/lib/tree/use-intersection-observer.d.ts +0 -27
- package/lib/virtual-render/use-scrollbar.d.ts +0 -10
- /package/lib/table/{components → plugins}/body-empty.d.ts +0 -0
- /package/lib/table/{hooks → plugins}/use-observer-resize.d.ts +0 -0
- /package/lib/table/{hooks → plugins}/use-scroll-loading.d.ts +0 -0
package/lib/select/index.js
CHANGED
@@ -2,11 +2,12 @@ import "../styles/reset.css";
|
|
2
2
|
import "./select.less";
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__ from "lodash/isEqual";
|
5
6
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__ from "../checkbox";
|
6
7
|
import "../checkbox/checkbox.less";
|
7
8
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
8
9
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
9
|
-
import * as
|
10
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__ from "lodash/merge";
|
10
11
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
|
11
12
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_input_d525237e__ from "../input";
|
12
13
|
import "../input/input.less";
|
@@ -16,11 +17,9 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../p
|
|
16
17
|
import "../popover/popover.less";
|
17
18
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_virtual_render_927587a8__ from "../virtual-render";
|
18
19
|
import "../virtual-render/virtual-render.less";
|
19
|
-
import * as
|
20
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_overflow_title_051a85a5__ from "../overflow-title";
|
20
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__ from "lodash/debounce";
|
21
21
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_d74826be__ from "../tag";
|
22
22
|
import "../tag/tag.less";
|
23
|
-
import * as __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__ from "lodash/debounce";
|
24
23
|
/******/ var __webpack_modules__ = ({
|
25
24
|
|
26
25
|
/***/ 7609:
|
@@ -493,6 +492,10 @@ function _defineProperty(obj, key, value) {
|
|
493
492
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
494
493
|
var external_vue_y = x => () => x
|
495
494
|
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["customRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.customRef, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["onBeforeMount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeMount, ["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, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vModelText"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vModelText, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
495
|
+
;// CONCATENATED MODULE: external "lodash/isEqual"
|
496
|
+
var isEqual_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
497
|
+
var isEqual_y = x => () => x
|
498
|
+
const isEqual_namespaceObject = isEqual_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__["default"] });
|
496
499
|
;// CONCATENATED MODULE: external "../checkbox"
|
497
500
|
var checkbox_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
498
501
|
var checkbox_y = x => () => x
|
@@ -508,11 +511,7 @@ const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () =>
|
|
508
511
|
;// CONCATENATED MODULE: external "../icon"
|
509
512
|
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
510
513
|
var icon_y = x => () => x
|
511
|
-
const icon_namespaceObject = icon_x({ ["
|
512
|
-
;// CONCATENATED MODULE: external "lodash/isEqual"
|
513
|
-
var isEqual_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
514
|
-
var isEqual_y = x => () => x
|
515
|
-
const isEqual_namespaceObject = isEqual_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__["default"] });
|
514
|
+
const icon_namespaceObject = icon_x({ ["AngleUp"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleUp, ["AngleUpFill"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleUpFill, ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Done"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Done, ["Search"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Search, ["TextAll"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.TextAll });
|
516
515
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
517
516
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
518
517
|
try {
|
@@ -598,6 +597,7 @@ function useRegistry(data) {
|
|
598
597
|
var register = function register(key, item) {
|
599
598
|
if (!item) return;
|
600
599
|
if (data.value.has(key)) {
|
600
|
+
// console.warn(`repeat ${key}`, item);
|
601
601
|
return;
|
602
602
|
}
|
603
603
|
return data.value.set(key, item);
|
@@ -621,7 +621,6 @@ function useDebouncedRef(value) {
|
|
621
621
|
track();
|
622
622
|
return innerValue;
|
623
623
|
},
|
624
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
625
624
|
set: function set(newValue) {
|
626
625
|
clearTimeout(timeout);
|
627
626
|
if (newValue === undefined || newValue === '') {
|
@@ -733,6 +732,7 @@ function isInViewPort(el, client) {
|
|
733
732
|
|
734
733
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
735
734
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
735
|
+
/* eslint-disable vue/no-reserved-component-names */
|
736
736
|
/*
|
737
737
|
* Tencent is pleased to support the open source community by making
|
738
738
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -770,7 +770,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
770
770
|
name: 'Option',
|
771
771
|
props: {
|
772
772
|
id: {
|
773
|
-
type: [String, Number],
|
773
|
+
type: [String, Number, Object],
|
774
774
|
require: true
|
775
775
|
},
|
776
776
|
name: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]),
|
@@ -779,7 +779,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
779
779
|
},
|
780
780
|
setup: function setup(props, _ref) {
|
781
781
|
var attrs = _ref.attrs;
|
782
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
783
782
|
var _getCurrentInstance = (0,external_vue_namespaceObject.getCurrentInstance)(),
|
784
783
|
proxy = _getCurrentInstance.proxy;
|
785
784
|
var states = (0,external_vue_namespaceObject.reactive)({
|
@@ -895,16 +894,16 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
895
894
|
"onClick": this.handleOptionClick,
|
896
895
|
"onMouseenter": this.handleMouseEnter
|
897
896
|
}, [this.showSelectedIcon && this.selectedStyle === shared_namespaceObject.SelectedTypeEnum.CHECKBOX && (0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
898
|
-
"class": this.resolveClassName('select-checkbox'),
|
899
897
|
"disabled": this.disabled,
|
898
|
+
"class": this.resolveClassName('select-checkbox'),
|
900
899
|
"modelValue": this.selected
|
901
900
|
}, 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", {
|
902
901
|
"class": this.resolveClassName('select-option-item'),
|
903
902
|
"title": String(this.optionName)
|
904
903
|
}, [this.highlightKeyword ? this.transformNode(String(this.optionName)) : this.optionName]), this.showSelectedIcon && this.selected && this.selectedStyle === shared_namespaceObject.SelectedTypeEnum.CHECK && (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Done, {
|
904
|
+
"class": this.resolveClassName('select-selected-icon'),
|
905
905
|
"width": 22,
|
906
|
-
"height": 22
|
907
|
-
"class": this.resolveClassName('select-selected-icon')
|
906
|
+
"height": 22
|
908
907
|
}, null)]), [[external_vue_namespaceObject.vShow, this.visible]]);
|
909
908
|
}
|
910
909
|
}));
|
@@ -1055,6 +1054,10 @@ function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
1055
1054
|
}, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)]), [[external_vue_namespaceObject.vShow, !this.groupCollapse]])]), [[external_vue_namespaceObject.vShow, this.visible]]);
|
1056
1055
|
}
|
1057
1056
|
}));
|
1057
|
+
;// CONCATENATED MODULE: external "lodash/merge"
|
1058
|
+
var merge_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1059
|
+
var merge_y = x => () => x
|
1060
|
+
const merge_namespaceObject = merge_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__["default"] });
|
1058
1061
|
;// CONCATENATED MODULE: external "../directives"
|
1059
1062
|
var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1060
1063
|
var directives_y = x => () => x
|
@@ -1091,10 +1094,6 @@ const virtual_render_namespaceObject = virtual_render_x({ ["default"]: () => __W
|
|
1091
1094
|
var virtual_render_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1092
1095
|
var virtual_render_less_y = x => () => x
|
1093
1096
|
const virtual_render_less_namespaceObject = virtual_render_less_x({ });
|
1094
|
-
;// CONCATENATED MODULE: external "lodash/merge"
|
1095
|
-
var merge_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1096
|
-
var merge_y = x => () => x
|
1097
|
-
const merge_namespaceObject = merge_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__["default"] });
|
1098
1097
|
;// CONCATENATED MODULE: ../../packages/select/src/pinyin/dict.js
|
1099
1098
|
/*
|
1100
1099
|
* Tencent is pleased to support the open source community by making
|
@@ -1122,6 +1121,8 @@ const merge_namespaceObject = merge_x({ ["default"]: () => __WEBPACK_EXTERNAL_MO
|
|
1122
1121
|
* IN THE SOFTWARE.
|
1123
1122
|
*/
|
1124
1123
|
|
1124
|
+
/* eslint-disable max-len */
|
1125
|
+
|
1125
1126
|
/**
|
1126
1127
|
* Source: <https://android.googlesource.com/platform/packages/providers/ContactsProvider/+/0c49720fb3d58e346739c2ccd56ed2b739249e07/src/com/android/providers/contacts/HanziToPinyin.java>
|
1127
1128
|
* Updated by creeper
|
@@ -2035,6 +2036,7 @@ let COLLATOR;
|
|
2035
2036
|
function patchDict(patchers) {
|
2036
2037
|
if (!patchers) return;
|
2037
2038
|
if (typeof patchers === 'function') {
|
2039
|
+
// eslint-disable-next-line no-param-reassign
|
2038
2040
|
patchers = [patchers];
|
2039
2041
|
}
|
2040
2042
|
if (patchers.forEach) {
|
@@ -2125,6 +2127,7 @@ function genToken(ch) {
|
|
2125
2127
|
}
|
2126
2128
|
|
2127
2129
|
if (cmp < 0) {
|
2130
|
+
// eslint-disable-next-line no-plusplus
|
2128
2131
|
offset--;
|
2129
2132
|
}
|
2130
2133
|
|
@@ -2293,10 +2296,10 @@ if (core.isSupported() && _56l.shouldPatch(core.genToken)) {
|
|
2293
2296
|
|
2294
2297
|
/* harmony default export */ const pinyin = (core);
|
2295
2298
|
|
2296
|
-
;// CONCATENATED MODULE: external "
|
2297
|
-
var
|
2298
|
-
var
|
2299
|
-
const
|
2299
|
+
;// CONCATENATED MODULE: external "lodash/debounce"
|
2300
|
+
var debounce_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
2301
|
+
var debounce_y = x => () => x
|
2302
|
+
const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__["default"] });
|
2300
2303
|
;// CONCATENATED MODULE: external "../tag"
|
2301
2304
|
var tag_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
2302
2305
|
var tag_y = x => () => x
|
@@ -2305,10 +2308,6 @@ const tag_namespaceObject = tag_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE
|
|
2305
2308
|
var tag_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
2306
2309
|
var tag_less_y = x => () => x
|
2307
2310
|
const tag_less_namespaceObject = tag_less_x({ });
|
2308
|
-
;// CONCATENATED MODULE: external "lodash/debounce"
|
2309
|
-
var debounce_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
2310
|
-
var debounce_y = x => () => x
|
2311
|
-
const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__["default"] });
|
2312
2311
|
;// CONCATENATED MODULE: ../../packages/select/src/selectTagInput.tsx
|
2313
2312
|
|
2314
2313
|
|
@@ -2345,7 +2344,6 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2345
2344
|
|
2346
2345
|
|
2347
2346
|
|
2348
|
-
|
2349
2347
|
/* harmony default export */ const selectTagInput = ((0,external_vue_namespaceObject.defineComponent)({
|
2350
2348
|
name: 'SelectTagInput',
|
2351
2349
|
directives: {
|
@@ -2382,7 +2380,7 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2382
2380
|
var overflowTagIndex = (0,external_vue_namespaceObject.ref)(null);
|
2383
2381
|
var overflowContent = (0,external_vue_namespaceObject.computed)(function () {
|
2384
2382
|
return selected.value.slice(overflowTagIndex.value, selected.value.length).map(function (item) {
|
2385
|
-
return
|
2383
|
+
return item.label;
|
2386
2384
|
}).join(', ');
|
2387
2385
|
});
|
2388
2386
|
(0,external_vue_namespaceObject.watch)(modelValue, function () {
|
@@ -2487,8 +2485,8 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2487
2485
|
_this$$slots$default2,
|
2488
2486
|
_this$$slots3,
|
2489
2487
|
_this = this,
|
2490
|
-
_this$$
|
2491
|
-
_this$$
|
2488
|
+
_this$$slots4,
|
2489
|
+
_this$$slots4$suffix;
|
2492
2490
|
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);
|
2493
2491
|
var selectTagClass = (0,shared_namespaceObject.classes)(_defineProperty(_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), 'is-simplicity', this.behavior === 'simplicity'));
|
2494
2492
|
var tagWrapperClass = (0,shared_namespaceObject.classes)(_defineProperty({}, this.resolveClassName('select-tag-wrapper'), true));
|
@@ -2496,61 +2494,54 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2496
2494
|
display: this.selected.length && !this.filterable ? 'none' : ''
|
2497
2495
|
};
|
2498
2496
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
2499
|
-
"
|
2500
|
-
"
|
2497
|
+
"class": selectTagClass,
|
2498
|
+
"ref": "tagWrapperRef"
|
2501
2499
|
}, [(_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), (0,external_vue_namespaceObject.createVNode)("div", {
|
2502
2500
|
"class": tagWrapperClass
|
2503
2501
|
}, [(_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) {
|
2504
|
-
var _this
|
2502
|
+
var _this$select;
|
2505
2503
|
return (0,external_vue_namespaceObject.createVNode)(tag_namespaceObject["default"], {
|
2506
|
-
"
|
2507
|
-
|
2508
|
-
},
|
2504
|
+
"closable": true,
|
2505
|
+
"theme": _this.tagTheme,
|
2509
2506
|
"style": {
|
2510
2507
|
display: _this.collapseTags && _this.overflowTagIndex && index >= _this.overflowTagIndex ? 'none' : ''
|
2511
2508
|
},
|
2512
|
-
"
|
2513
|
-
|
2509
|
+
"ref": function ref(el) {
|
2510
|
+
return _this.tagsRefs[index] = el;
|
2511
|
+
},
|
2514
2512
|
"onClose": function onClose() {
|
2515
2513
|
return _this.handleRemoveTag(item.value);
|
2516
2514
|
}
|
2517
2515
|
}, {
|
2518
2516
|
"default": function _default() {
|
2519
|
-
return [(_this
|
2520
|
-
"type": "tips"
|
2521
|
-
}, {
|
2522
|
-
"default": function _default() {
|
2523
|
-
return [(_this$select = _this.select) === null || _this$select === void 0 ? void 0 : _this$select.handleGetLabelByValue(item.value)];
|
2524
|
-
}
|
2525
|
-
})];
|
2517
|
+
return [(_this$select = _this.select) === null || _this$select === void 0 ? void 0 : _this$select.handleGetLabelByValue(item.value)];
|
2526
2518
|
}
|
2527
2519
|
});
|
2528
2520
|
}), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(tag_namespaceObject["default"], {
|
2529
|
-
"
|
2521
|
+
"class": this.resolveClassName('select-overflow-tag'),
|
2530
2522
|
"style": {
|
2531
2523
|
display: !!this.overflowTagIndex && this.collapseTags ? '' : 'none'
|
2532
2524
|
},
|
2533
|
-
"
|
2525
|
+
"ref": "collapseTagRef"
|
2534
2526
|
}, {
|
2535
2527
|
"default": function _default() {
|
2536
2528
|
return [(0,external_vue_namespaceObject.createTextVNode)("+"), _this.selected.length - _this.overflowTagIndex];
|
2537
2529
|
}
|
2538
2530
|
}), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), {
|
2539
2531
|
content: this.overflowContent,
|
2540
|
-
disabled: !this.overflowTagIndex || !this.collapseTags
|
2541
|
-
extCls: this.resolveClassName('select-tooltips')
|
2532
|
+
disabled: !this.overflowTagIndex || !this.collapseTags
|
2542
2533
|
}]]), (0,external_vue_namespaceObject.createVNode)("input", {
|
2534
|
+
"class": this.resolveClassName('select-tag-input'),
|
2543
2535
|
"ref": "inputRef",
|
2536
|
+
"type": "text",
|
2544
2537
|
"style": inputStyle,
|
2545
|
-
"class": this.resolveClassName('select-tag-input'),
|
2546
|
-
"disabled": this.disabled,
|
2547
2538
|
"placeholder": !this.selected.length ? this.placeholder : '',
|
2548
2539
|
"readonly": !this.filterable,
|
2549
|
-
"
|
2540
|
+
"disabled": this.disabled,
|
2550
2541
|
"value": !this.filterable ? '' : this.value,
|
2551
2542
|
"onInput": this.handleInput,
|
2552
2543
|
"onKeydown": this.handleKeydown
|
2553
|
-
}, null)]), (_this$$
|
2544
|
+
}, null)]), (_this$$slots4 = this.$slots) === null || _this$$slots4 === void 0 || (_this$$slots4$suffix = _this$$slots4.suffix) === null || _this$$slots4$suffix === void 0 ? void 0 : _this$$slots4$suffix.call(_this$$slots4)]);
|
2554
2545
|
}
|
2555
2546
|
}));
|
2556
2547
|
;// CONCATENATED MODULE: ../../packages/select/src/select.tsx
|
@@ -2563,6 +2554,7 @@ function select_unsupportedIterableToArray(o, minLen) { if (!o) return; if (type
|
|
2563
2554
|
function select_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
2564
2555
|
function select_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
2565
2556
|
function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? select_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : select_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
2557
|
+
/* eslint-disable vue/no-reserved-component-names */
|
2566
2558
|
/*
|
2567
2559
|
* Tencent is pleased to support the open source community by making
|
2568
2560
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2623,8 +2615,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2623
2615
|
loading: shared_namespaceObject.PropTypes.bool.def(false),
|
2624
2616
|
filterable: shared_namespaceObject.PropTypes.bool.def(true),
|
2625
2617
|
remoteMethod: shared_namespaceObject.PropTypes.func,
|
2626
|
-
scrollHeight: shared_namespaceObject.PropTypes.number.def(
|
2627
|
-
minHeight: shared_namespaceObject.PropTypes.number,
|
2618
|
+
scrollHeight: shared_namespaceObject.PropTypes.number.def(200),
|
2628
2619
|
showAll: shared_namespaceObject.PropTypes.bool.def(false),
|
2629
2620
|
allOptionId: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]),
|
2630
2621
|
showSelectAll: shared_namespaceObject.PropTypes.bool.def(false),
|
@@ -2662,7 +2653,11 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2662
2653
|
type: Function
|
2663
2654
|
},
|
2664
2655
|
searchWithPinyin: shared_namespaceObject.PropTypes.bool.def(true),
|
2665
|
-
highlightKeyword: shared_namespaceObject.PropTypes.bool.def(false)
|
2656
|
+
highlightKeyword: shared_namespaceObject.PropTypes.bool.def(false),
|
2657
|
+
trigger: {
|
2658
|
+
type: String,
|
2659
|
+
"default": 'default'
|
2660
|
+
} // content显示和隐藏方式
|
2666
2661
|
},
|
2667
2662
|
emits: ['update:modelValue', 'change', 'toggle', 'clear', 'scroll-end', 'focus', 'blur', 'tag-remove', 'select', 'deselect', 'search-change'],
|
2668
2663
|
setup: function setup(props, _ref) {
|
@@ -2702,8 +2697,8 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2702
2697
|
filterOption = _toRefs.filterOption,
|
2703
2698
|
searchWithPinyin = _toRefs.searchWithPinyin,
|
2704
2699
|
highlightKeyword = _toRefs.highlightKeyword,
|
2705
|
-
disableFocusBehavior = _toRefs.disableFocusBehavior
|
2706
|
-
|
2700
|
+
disableFocusBehavior = _toRefs.disableFocusBehavior,
|
2701
|
+
trigger = _toRefs.trigger;
|
2707
2702
|
var localNoDataText = (0,external_vue_namespaceObject.computed)(function () {
|
2708
2703
|
if (props.noDataText === undefined) {
|
2709
2704
|
return t.value.noData;
|
@@ -2746,6 +2741,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2746
2741
|
var contentRef = (0,external_vue_namespaceObject.ref)();
|
2747
2742
|
var searchRef = (0,external_vue_namespaceObject.ref)();
|
2748
2743
|
var selectTagInputRef = (0,external_vue_namespaceObject.ref)();
|
2744
|
+
var virtualRenderRef = (0,external_vue_namespaceObject.ref)();
|
2749
2745
|
var popoverRef = (0,external_vue_namespaceObject.ref)();
|
2750
2746
|
var optionsMap = (0,external_vue_namespaceObject.ref)(new Map());
|
2751
2747
|
var options = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -2761,7 +2757,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2761
2757
|
return pre;
|
2762
2758
|
}, {});
|
2763
2759
|
});
|
2764
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2765
2760
|
var activeOptionValue = (0,external_vue_namespaceObject.ref)(); // 当前悬浮的option
|
2766
2761
|
var listMap = (0,external_vue_namespaceObject.computed)(function () {
|
2767
2762
|
return list.value.reduce(function (pre, item) {
|
@@ -2785,8 +2780,8 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2785
2780
|
var _popoverRef$value;
|
2786
2781
|
(_popoverRef$value = popoverRef.value) === null || _popoverRef$value === void 0 || _popoverRef$value.updatePopover(null, popoverConfig.value);
|
2787
2782
|
});
|
2788
|
-
//
|
2789
|
-
var
|
2783
|
+
// 虚拟滚动模式下搜索后的值
|
2784
|
+
var virtualList = (0,external_vue_namespaceObject.computed)(function () {
|
2790
2785
|
return isRemoteSearch.value ? list.value : list.value.filter(function (item) {
|
2791
2786
|
return defaultSearchMethod(curSearchValue.value, String(item[displayKey.value]), item);
|
2792
2787
|
});
|
@@ -2859,22 +2854,12 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2859
2854
|
var virtualHeight = (0,external_vue_namespaceObject.computed)(function () {
|
2860
2855
|
return scrollHeight.value - 12 - (isShowSelectAll.value ? 32 : 0);
|
2861
2856
|
});
|
2862
|
-
var virtualLineHeight = (0,external_vue_namespaceObject.ref)(32);
|
2863
|
-
// 是否启用虚拟滚动(如果配置了启用,但是数据小于滚动高度则不开启)
|
2864
|
-
var isEnableVirtualRender = (0,external_vue_namespaceObject.computed)(function () {
|
2865
|
-
if (enableVirtualRender.value) return filterList.value.length * virtualLineHeight.value > virtualHeight.value;
|
2866
|
-
return false;
|
2867
|
-
});
|
2868
|
-
// 预加载滚动数据
|
2869
|
-
var preloadItemCount = (0,external_vue_namespaceObject.computed)(function () {
|
2870
|
-
return Math.ceil(virtualHeight.value / virtualLineHeight.value);
|
2871
|
-
});
|
2872
2857
|
// 当前空状态时显示文案
|
2873
2858
|
var curContentText = (0,external_vue_namespaceObject.computed)(function () {
|
2874
2859
|
if (searchLoading.value) {
|
2875
2860
|
return localLoadingText.value;
|
2876
2861
|
}
|
2877
|
-
if (isSearchEmpty.value || list.value.length && !
|
2862
|
+
if (isSearchEmpty.value || list.value.length && !virtualList.value.length) {
|
2878
2863
|
return localNoMatchText.value;
|
2879
2864
|
}
|
2880
2865
|
if (isOptionsEmpty.value) {
|
@@ -2930,6 +2915,14 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2930
2915
|
hidePopover = _usePopover.hidePopover,
|
2931
2916
|
showPopover = _usePopover.showPopover,
|
2932
2917
|
togglePopover = _usePopover.togglePopover;
|
2918
|
+
var handleHidePopover = function handleHidePopover() {
|
2919
|
+
if (trigger.value === 'manual') return;
|
2920
|
+
hidePopover();
|
2921
|
+
};
|
2922
|
+
var handleShowPopover = function handleShowPopover() {
|
2923
|
+
if (trigger.value === 'manual') return;
|
2924
|
+
showPopover();
|
2925
|
+
};
|
2933
2926
|
// 输入框是否可以输入内容
|
2934
2927
|
var isInput = (0,external_vue_namespaceObject.computed)(function () {
|
2935
2928
|
return (filterable.value && inputSearch.value || allowCreate.value) && isPopoverShow.value;
|
@@ -2953,7 +2946,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2953
2946
|
// 滚动到当前选中的options中
|
2954
2947
|
var scrollActiveOptionIntoView = function scrollActiveOptionIntoView() {
|
2955
2948
|
var _contentRef$value, _contentRef$value$que, _optionsDom$;
|
2956
|
-
if (isEnableVirtualRender.value) return;
|
2957
2949
|
var optionsDom = (_contentRef$value = contentRef.value) === null || _contentRef$value === void 0 || (_contentRef$value$que = _contentRef$value.querySelectorAll) === null || _contentRef$value$que === void 0 ? void 0 : _contentRef$value$que.call(_contentRef$value, '.is-selected');
|
2958
2950
|
optionsDom === null || optionsDom === void 0 || (_optionsDom$ = optionsDom[0]) === null || _optionsDom$ === void 0 || _optionsDom$.scrollIntoView({
|
2959
2951
|
block: 'center'
|
@@ -2974,17 +2966,14 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2974
2966
|
}
|
2975
2967
|
};
|
2976
2968
|
// 默认搜索方法
|
2977
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2978
2969
|
var defaultSearchMethod = function defaultSearchMethod(searchValue, optionName) {
|
2979
2970
|
var _toLowerCase2;
|
2980
2971
|
var filterData = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
2981
2972
|
if (hasFilterOptionFunc.value) {
|
2982
|
-
// 是否配置了单个options过滤
|
2983
2973
|
return !!filterOption.value(searchValue, select_objectSpread({}, filterData));
|
2984
2974
|
}
|
2985
2975
|
if (searchWithPinyin.value) {
|
2986
2976
|
var _toLowerCase;
|
2987
|
-
// 是否配置了拼音过滤
|
2988
2977
|
var pinyinList = pinyin.parse(optionName).map(function (v) {
|
2989
2978
|
if (v.type === 2) {
|
2990
2979
|
return v.target.toLowerCase();
|
@@ -3028,7 +3017,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3028
3017
|
};
|
3029
3018
|
// 派发toggle事件
|
3030
3019
|
var handleTogglePopover = function handleTogglePopover() {
|
3031
|
-
if (isDisabled.value) return;
|
3020
|
+
if (isDisabled.value || trigger.value === 'manual') return;
|
3032
3021
|
handleFocus();
|
3033
3022
|
togglePopover();
|
3034
3023
|
};
|
@@ -3069,7 +3058,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3069
3058
|
label: value
|
3070
3059
|
}];
|
3071
3060
|
emitChange(value);
|
3072
|
-
|
3061
|
+
handleHidePopover();
|
3073
3062
|
}
|
3074
3063
|
customOptionName.value = '';
|
3075
3064
|
};
|
@@ -3113,7 +3102,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3113
3102
|
}];
|
3114
3103
|
emitChange(option.optionID);
|
3115
3104
|
emit('select', option.optionID);
|
3116
|
-
|
3105
|
+
handleHidePopover();
|
3117
3106
|
handleBlur();
|
3118
3107
|
}
|
3119
3108
|
};
|
@@ -3153,7 +3142,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3153
3142
|
selected.value = [];
|
3154
3143
|
emitChange(multiple.value ? [] : '');
|
3155
3144
|
emit('clear', multiple.value ? [] : '');
|
3156
|
-
|
3145
|
+
handleHidePopover();
|
3157
3146
|
};
|
3158
3147
|
var handleSelectedAllOptionMouseEnter = function handleSelectedAllOptionMouseEnter() {
|
3159
3148
|
activeOptionValue.value = '';
|
@@ -3164,21 +3153,22 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3164
3153
|
selected.value = [];
|
3165
3154
|
} else {
|
3166
3155
|
var _list$value;
|
3167
|
-
var
|
3156
|
+
var tmpSelected = [];
|
3168
3157
|
options.value.forEach(function (option) {
|
3169
|
-
if (option.disabled
|
3170
|
-
|
3158
|
+
if (option.disabled) return;
|
3159
|
+
tmpSelected.push({
|
3160
|
+
value: option.optionID,
|
3161
|
+
label: option.optionName || option.optionID
|
3162
|
+
});
|
3171
3163
|
});
|
3172
3164
|
(_list$value = list.value) === null || _list$value === void 0 || _list$value.forEach(function (item) {
|
3173
|
-
if (item.disabled
|
3174
|
-
|
3175
|
-
|
3176
|
-
|
3177
|
-
|
3178
|
-
value: key,
|
3179
|
-
label: tmpSelectedMap.get(key)
|
3180
|
-
};
|
3165
|
+
if (item.disabled) return;
|
3166
|
+
tmpSelected.push({
|
3167
|
+
value: item[idKey.value],
|
3168
|
+
label: item[displayKey.value]
|
3169
|
+
});
|
3181
3170
|
});
|
3171
|
+
selected.value = tmpSelected;
|
3182
3172
|
}
|
3183
3173
|
emitChange(selected.value.map(function (item) {
|
3184
3174
|
return item.value;
|
@@ -3263,7 +3253,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3263
3253
|
};
|
3264
3254
|
}));
|
3265
3255
|
} else {
|
3266
|
-
if (modelValue.value || allowEmptyValues.value.includes(modelValue.value)) {
|
3256
|
+
if (modelValue.value !== undefined || allowEmptyValues.value.includes(modelValue.value)) {
|
3267
3257
|
selected.value = [{
|
3268
3258
|
value: modelValue.value,
|
3269
3259
|
label: handleGetLabelByValue(modelValue.value)
|
@@ -3273,18 +3263,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3273
3263
|
}
|
3274
3264
|
}
|
3275
3265
|
};
|
3276
|
-
// 手动设置selected值
|
3277
|
-
var setSelected = function setSelected(data) {
|
3278
|
-
selected.value = data.map(function (item) {
|
3279
|
-
return {
|
3280
|
-
label: item[displayKey.value],
|
3281
|
-
value: item[idKey.value]
|
3282
|
-
};
|
3283
|
-
});
|
3284
|
-
};
|
3285
3266
|
// 处理键盘事件
|
3286
3267
|
var handleDocumentKeydown = function handleDocumentKeydown(e) {
|
3287
|
-
if (!isPopoverShow.value ||
|
3268
|
+
if (!isPopoverShow.value || enableVirtualRender.value) return;
|
3288
3269
|
var availableOptions = options.value.filter(function (option) {
|
3289
3270
|
return !option.disabled && option.visible;
|
3290
3271
|
});
|
@@ -3339,9 +3320,16 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3339
3320
|
var event = _ref2.event;
|
3340
3321
|
var target = event.target;
|
3341
3322
|
if ((_triggerRef$value = triggerRef.value) !== null && _triggerRef$value !== void 0 && _triggerRef$value.contains(target) || triggerRef.value === target) return;
|
3342
|
-
|
3323
|
+
handleHidePopover();
|
3343
3324
|
handleBlur();
|
3344
3325
|
};
|
3326
|
+
var handlePopoverShow = function handlePopoverShow() {
|
3327
|
+
setTimeout(function () {
|
3328
|
+
var _virtualRenderRef$val, _virtualRenderRef$val2;
|
3329
|
+
// 虚拟滚动首次未更新问题
|
3330
|
+
enableVirtualRender.value && ((_virtualRenderRef$val = virtualRenderRef.value) === null || _virtualRenderRef$val === void 0 || (_virtualRenderRef$val2 = _virtualRenderRef$val.reset) === null || _virtualRenderRef$val2 === void 0 ? void 0 : _virtualRenderRef$val2.call(_virtualRenderRef$val));
|
3331
|
+
});
|
3332
|
+
};
|
3345
3333
|
(0,external_vue_namespaceObject.provide)(selectKey, (0,external_vue_namespaceObject.reactive)({
|
3346
3334
|
multiple: multiple,
|
3347
3335
|
selected: selected,
|
@@ -3360,14 +3348,10 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3360
3348
|
(0,external_vue_namespaceObject.onMounted)(function () {
|
3361
3349
|
handleSetSelectedData();
|
3362
3350
|
setTimeout(function () {
|
3363
|
-
showOnInit.value &&
|
3351
|
+
showOnInit.value && handleShowPopover();
|
3364
3352
|
autoFocus.value && focusInput();
|
3365
3353
|
});
|
3366
3354
|
});
|
3367
|
-
var handlePopoverShown = function handlePopoverShown() {
|
3368
|
-
var _virtualRenderRef$val;
|
3369
|
-
(_virtualRenderRef$val = virtualRenderRef.value) === null || _virtualRenderRef$val === void 0 || _virtualRenderRef$val.scrollTo(0, 1);
|
3370
|
-
};
|
3371
3355
|
return {
|
3372
3356
|
t: t,
|
3373
3357
|
selected: selected,
|
@@ -3383,6 +3367,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3383
3367
|
contentRef: contentRef,
|
3384
3368
|
searchRef: searchRef,
|
3385
3369
|
selectTagInputRef: selectTagInputRef,
|
3370
|
+
virtualRenderRef: virtualRenderRef,
|
3386
3371
|
popoverRef: popoverRef,
|
3387
3372
|
searchLoading: searchLoading,
|
3388
3373
|
isOptionsEmpty: isOptionsEmpty,
|
@@ -3397,7 +3382,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3397
3382
|
isShowAll: isShowAll,
|
3398
3383
|
isShowSelectAll: isShowSelectAll,
|
3399
3384
|
virtualHeight: virtualHeight,
|
3400
|
-
|
3385
|
+
virtualList: virtualList,
|
3401
3386
|
isCollapseTags: isCollapseTags,
|
3402
3387
|
popoverConfig: popoverConfig,
|
3403
3388
|
isAllSelected: isAllSelected,
|
@@ -3419,33 +3404,26 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3419
3404
|
handleDeleteTag: handleDeleteTag,
|
3420
3405
|
handleInputChange: handleInputChange,
|
3421
3406
|
handleSelectedAllOptionMouseEnter: handleSelectedAllOptionMouseEnter,
|
3407
|
+
handlePopoverShow: handlePopoverShow,
|
3422
3408
|
localLoadingText: localLoadingText,
|
3423
3409
|
localPlaceholder: localPlaceholder,
|
3424
3410
|
localSearchPlaceholder: localSearchPlaceholder,
|
3425
3411
|
localSelectAllText: localSelectAllText,
|
3426
3412
|
resolveClassName: resolveClassName,
|
3427
|
-
handleCreateCustomOption: handleCreateCustomOption
|
3428
|
-
handlePopoverShown: handlePopoverShown,
|
3429
|
-
virtualLineHeight: virtualLineHeight,
|
3430
|
-
isEnableVirtualRender: isEnableVirtualRender,
|
3431
|
-
preloadItemCount: preloadItemCount,
|
3432
|
-
virtualRenderRef: virtualRenderRef,
|
3433
|
-
setSelected: setSelected
|
3413
|
+
handleCreateCustomOption: handleCreateCustomOption
|
3434
3414
|
};
|
3435
3415
|
},
|
3436
3416
|
render: function render() {
|
3437
3417
|
var _this = this;
|
3438
3418
|
var selectClass = (0,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));
|
3439
|
-
// 右侧ICON
|
3440
3419
|
var suffixIcon = function suffixIcon() {
|
3441
|
-
var _this$$slots, _this$$slots2, _this$$slots2$suffix;
|
3442
3420
|
if (_this.loading) {
|
3443
3421
|
return (0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
|
3444
|
-
"class": "spinner",
|
3445
3422
|
"loading": true,
|
3423
|
+
"theme": "primary",
|
3424
|
+
"class": "spinner",
|
3446
3425
|
"mode": "spin",
|
3447
|
-
"size": "mini"
|
3448
|
-
"theme": "primary"
|
3426
|
+
"size": "mini"
|
3449
3427
|
}, null);
|
3450
3428
|
}
|
3451
3429
|
if (_this.clearable && _this.isHover && _this.selected.length && !_this.isDisabled) {
|
@@ -3454,14 +3432,12 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3454
3432
|
"onClick": _this.handleClear
|
3455
3433
|
}, null);
|
3456
3434
|
}
|
3457
|
-
return (
|
3458
|
-
"class": "angle-
|
3459
|
-
}, [(_this$$slots2 = _this.$slots) === null || _this$$slots2 === void 0 || (_this$$slots2$suffix = _this$$slots2.suffix) === null || _this$$slots2$suffix === void 0 ? void 0 : _this$$slots2$suffix.call(_this$$slots2)]) : (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleDown, {
|
3460
|
-
"class": "angle-down"
|
3435
|
+
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleUp, {
|
3436
|
+
"class": "angle-up"
|
3461
3437
|
}, null);
|
3462
3438
|
};
|
3463
3439
|
var renderPrefix = function renderPrefix() {
|
3464
|
-
var _this$$
|
3440
|
+
var _this$$slots;
|
3465
3441
|
if (_this.prefix) {
|
3466
3442
|
return function () {
|
3467
3443
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -3469,9 +3445,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3469
3445
|
}, [(0,external_vue_namespaceObject.createVNode)("span", null, [_this.prefix])]);
|
3470
3446
|
};
|
3471
3447
|
}
|
3472
|
-
return (_this$$
|
3473
|
-
var _this$$
|
3474
|
-
return (_this$$
|
3448
|
+
return (_this$$slots = _this.$slots) !== null && _this$$slots !== void 0 && _this$$slots.prefix ? function () {
|
3449
|
+
var _this$$slots2, _this$$slots2$prefix;
|
3450
|
+
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);
|
3475
3451
|
} : undefined;
|
3476
3452
|
};
|
3477
3453
|
// 全选
|
@@ -3479,12 +3455,12 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3479
3455
|
if (!_this.isShowSelectAll) return;
|
3480
3456
|
return (0,external_vue_namespaceObject.createVNode)("li", {
|
3481
3457
|
"class": _this.resolveClassName('select-option'),
|
3482
|
-
"
|
3483
|
-
"
|
3458
|
+
"onMouseenter": _this.handleSelectedAllOptionMouseEnter,
|
3459
|
+
"onClick": _this.toggleSelectAll
|
3484
3460
|
}, [_this.selectedStyle === 'checkbox' && (0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
3485
3461
|
"class": _this.resolveClassName('select-checkbox'),
|
3486
|
-
"
|
3487
|
-
"
|
3462
|
+
"modelValue": _this.isAllSelected,
|
3463
|
+
"indeterminate": !_this.isAllSelected && !!_this.selected.length && !_this.isAll
|
3488
3464
|
}, null), _this.t.selectAll]);
|
3489
3465
|
};
|
3490
3466
|
// 全部
|
@@ -3500,38 +3476,33 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3500
3476
|
"class": "select-all-icon"
|
3501
3477
|
}, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.t.all])])]);
|
3502
3478
|
};
|
3503
|
-
// 默认trigger输入框渲染
|
3504
3479
|
var renderTriggerInput = function renderTriggerInput() {
|
3505
|
-
var _this$$
|
3480
|
+
var _this$$slots5;
|
3506
3481
|
if (_this.multipleMode === 'tag') {
|
3507
|
-
var _this$$
|
3482
|
+
var _this$$slots3;
|
3508
3483
|
return (0,external_vue_namespaceObject.createVNode)(selectTagInput, {
|
3509
3484
|
"ref": "selectTagInputRef",
|
3510
3485
|
"modelValue": _this.customOptionName,
|
3511
3486
|
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
3512
3487
|
return _this.customOptionName = $event;
|
3513
3488
|
},
|
3514
|
-
"behavior": _this.behavior,
|
3515
|
-
"collapseTags": _this.isCollapseTags,
|
3516
|
-
"disabled": _this.isDisabled,
|
3517
|
-
"filterable": _this.isInput,
|
3518
|
-
"placeholder": _this.localPlaceholder,
|
3519
3489
|
"selected": _this.selected,
|
3520
3490
|
"tagTheme": _this.tagTheme,
|
3521
|
-
"
|
3522
|
-
"
|
3491
|
+
"placeholder": _this.localPlaceholder,
|
3492
|
+
"filterable": _this.isInput,
|
3493
|
+
"disabled": _this.isDisabled,
|
3494
|
+
"behavior": _this.behavior,
|
3495
|
+
"onRemove": _this.handleDeleteTag,
|
3496
|
+
"collapseTags": _this.isCollapseTags,
|
3497
|
+
"onEnter": _this.handleCreateCustomOption
|
3523
3498
|
}, {
|
3524
3499
|
prefix: renderPrefix(),
|
3525
|
-
"default": ((_this$$
|
3526
|
-
var _this$$
|
3527
|
-
return (_this$$
|
3500
|
+
"default": ((_this$$slots3 = _this.$slots) === null || _this$$slots3 === void 0 ? void 0 : _this$$slots3.tag) && function () {
|
3501
|
+
var _this$$slots4;
|
3502
|
+
return (_this$$slots4 = _this.$slots) === null || _this$$slots4 === void 0 ? void 0 : _this$$slots4.tag({
|
3528
3503
|
selected: _this.selected
|
3529
3504
|
});
|
3530
3505
|
},
|
3531
|
-
tagRender: ((_this$$slots7 = _this.$slots) === null || _this$$slots7 === void 0 ? void 0 : _this$$slots7.tagRender) && function (item) {
|
3532
|
-
var _this$$slots8;
|
3533
|
-
return (_this$$slots8 = _this.$slots) === null || _this$$slots8 === void 0 ? void 0 : _this$$slots8.tagRender(item);
|
3534
|
-
},
|
3535
3506
|
suffix: function suffix() {
|
3536
3507
|
return suffixIcon();
|
3537
3508
|
}
|
@@ -3539,24 +3510,24 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3539
3510
|
}
|
3540
3511
|
return (0,external_vue_namespaceObject.createVNode)(input_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
|
3541
3512
|
"ref": "inputRef",
|
3542
|
-
"
|
3543
|
-
"disabled": _this.isDisabled,
|
3513
|
+
"type": "text",
|
3544
3514
|
"modelValue": _this.isInput ? _this.customOptionName : _this.selectedLabel.join(','),
|
3545
3515
|
"placeholder": _this.isInput ? _this.selectedLabel.join(',') || _this.localPlaceholder : _this.localPlaceholder,
|
3546
3516
|
"readonly": !_this.isInput,
|
3547
3517
|
"selectReadonly": true,
|
3518
|
+
"disabled": _this.isDisabled,
|
3519
|
+
"behavior": _this.behavior,
|
3548
3520
|
"size": _this.size,
|
3549
|
-
"stopPropagation": false,
|
3550
|
-
"type": "text",
|
3551
3521
|
"withValidate": false,
|
3552
|
-
"
|
3553
|
-
"onInput": _this.handleInputChange
|
3522
|
+
"stopPropagation": false,
|
3523
|
+
"onInput": _this.handleInputChange,
|
3524
|
+
"onEnter": _this.handleCreateCustomOption
|
3554
3525
|
}, _this.prefix ? {
|
3555
3526
|
prefix: _this.prefix
|
3556
|
-
} : null), select_objectSpread(select_objectSpread({}, typeof ((_this$$
|
3527
|
+
} : null), select_objectSpread(select_objectSpread({}, typeof ((_this$$slots5 = _this.$slots) === null || _this$$slots5 === void 0 ? void 0 : _this$$slots5.prefix) === 'function' ? {
|
3557
3528
|
prefix: function prefix() {
|
3558
|
-
var _this$$
|
3559
|
-
return (_this$$
|
3529
|
+
var _this$$slots6, _this$$slots6$prefix;
|
3530
|
+
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);
|
3560
3531
|
}
|
3561
3532
|
} : null), {}, {
|
3562
3533
|
suffix: function suffix() {
|
@@ -3564,44 +3535,71 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3564
3535
|
}
|
3565
3536
|
}));
|
3566
3537
|
};
|
3567
|
-
// 渲染trigger
|
3568
3538
|
var renderSelectTrigger = function renderSelectTrigger() {
|
3569
|
-
var _this$$
|
3539
|
+
var _this$$slots7, _this$$slots7$trigger;
|
3570
3540
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
3571
|
-
"
|
3541
|
+
"class": _this.resolveClassName('select-trigger'),
|
3572
3542
|
"style": {
|
3573
3543
|
height: _this.autoHeight && _this.collapseTags ? '32px' : ''
|
3574
3544
|
},
|
3575
|
-
"
|
3545
|
+
"ref": "triggerRef",
|
3576
3546
|
"onClick": _this.handleTogglePopover,
|
3577
3547
|
"onMouseenter": _this.setHover,
|
3578
3548
|
"onMouseleave": _this.cancelHover
|
3579
|
-
}, [((_this$$
|
3549
|
+
}, [((_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, {
|
3580
3550
|
selected: _this.selected
|
3581
3551
|
})) || renderTriggerInput()]);
|
3582
3552
|
};
|
3583
|
-
|
3584
|
-
|
3585
|
-
return
|
3586
|
-
"
|
3587
|
-
"
|
3588
|
-
|
3589
|
-
"
|
3590
|
-
|
3591
|
-
"
|
3592
|
-
|
3593
|
-
|
3553
|
+
var renderSelectContent = function renderSelectContent() {
|
3554
|
+
var _this$$slots12, _this$$slots12$defaul, _this$$slots13, _this$$slots14;
|
3555
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
3556
|
+
"class": _this.resolveClassName('select-content-wrapper'),
|
3557
|
+
"ref": "contentRef"
|
3558
|
+
}, [renderAll(), _this.filterable && !_this.inputSearch && (0,external_vue_namespaceObject.createVNode)("div", {
|
3559
|
+
"class": _this.resolveClassName('select-search-wrapper')
|
3560
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Search, {
|
3561
|
+
"class": "icon-search",
|
3562
|
+
"width": 16,
|
3563
|
+
"height": 16
|
3564
|
+
}, null), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("input", {
|
3565
|
+
"ref": "searchRef",
|
3566
|
+
"class": _this.resolveClassName('select-search-input'),
|
3567
|
+
"placeholder": _this.localSearchPlaceholder,
|
3568
|
+
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
3569
|
+
return _this.searchValue = $event;
|
3594
3570
|
}
|
3571
|
+
}, null), [[external_vue_namespaceObject.vModelText, _this.searchValue]])]), !_this.isShowSelectContent && (0,external_vue_namespaceObject.createVNode)("div", {
|
3572
|
+
"class": _this.resolveClassName('select-empty')
|
3573
|
+
}, [_this.searchLoading && (0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
|
3574
|
+
"class": "mr5",
|
3575
|
+
"theme": "primary",
|
3576
|
+
"loading": true,
|
3577
|
+
"mode": "spin",
|
3578
|
+
"size": "mini"
|
3579
|
+
}, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.curContentText])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
3580
|
+
"class": _this.resolveClassName('select-content')
|
3581
|
+
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
3582
|
+
"class": _this.enableVirtualRender ? '' : _this.resolveClassName('select-dropdown'),
|
3583
|
+
"style": {
|
3584
|
+
maxHeight: "".concat(_this.scrollHeight, "px")
|
3585
|
+
},
|
3586
|
+
"onScroll": _this.handleScroll
|
3587
|
+
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("ul", {
|
3588
|
+
"class": _this.resolveClassName('select-options')
|
3589
|
+
}, [renderSelectAll(), _this.enableVirtualRender ? (0,external_vue_namespaceObject.createVNode)(virtual_render_namespaceObject["default"], {
|
3590
|
+
"list": _this.virtualList,
|
3591
|
+
"height": _this.virtualHeight,
|
3592
|
+
"lineHeight": 32,
|
3593
|
+
"ref": "virtualRenderRef"
|
3595
3594
|
}, {
|
3596
3595
|
"default": function _default(_ref3) {
|
3597
|
-
var _this$$
|
3596
|
+
var _this$$slots8, _this$$slots9;
|
3598
3597
|
var data = _ref3.data;
|
3599
|
-
|
3600
|
-
var optionRender = ((_this$$slots12 = _this.$slots) === null || _this$$slots12 === void 0 ? void 0 : _this$$slots12.optionRender) || ((_this$$slots13 = _this.$slots) === null || _this$$slots13 === void 0 ? void 0 : _this$$slots13.virtualScrollRender);
|
3598
|
+
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);
|
3601
3599
|
return data.map(function (item) {
|
3602
3600
|
return (0,external_vue_namespaceObject.createVNode)(src_option, {
|
3603
|
-
"id": item[_this.idKey],
|
3604
3601
|
"key": item[_this.idKey],
|
3602
|
+
"id": item[_this.idKey],
|
3605
3603
|
"name": item[_this.displayKey]
|
3606
3604
|
}, typeof optionRender === 'function' ? {
|
3607
3605
|
"default": function _default() {
|
@@ -3612,79 +3610,38 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3612
3610
|
} : null);
|
3613
3611
|
});
|
3614
3612
|
}
|
3615
|
-
}) : _this.
|
3616
|
-
var _this$$
|
3617
|
-
// 兼容以前slots
|
3618
|
-
var optionRender = ((_this$$slots14 = _this.$slots) === null || _this$$slots14 === void 0 ? void 0 : _this$$slots14.optionRender) || ((_this$$slots15 = _this.$slots) === null || _this$$slots15 === void 0 ? void 0 : _this$$slots15.virtualScrollRender);
|
3613
|
+
}) : _this.list.map(function (item) {
|
3614
|
+
var _this$$slots10;
|
3619
3615
|
return (0,external_vue_namespaceObject.createVNode)(src_option, {
|
3620
|
-
"id": item[_this.idKey],
|
3621
3616
|
"key": item[_this.idKey],
|
3617
|
+
"id": item[_this.idKey],
|
3622
3618
|
"name": item[_this.displayKey]
|
3623
|
-
},
|
3619
|
+
}, (_this$$slots10 = _this.$slots) !== null && _this$$slots10 !== void 0 && _this$$slots10.optionRender ? {
|
3624
3620
|
"default": function _default() {
|
3625
|
-
|
3621
|
+
var _this$$slots11, _this$$slots11$option;
|
3622
|
+
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, {
|
3626
3623
|
item: item
|
3627
3624
|
});
|
3628
3625
|
}
|
3629
3626
|
} : null);
|
3630
|
-
})
|
3631
|
-
};
|
3632
|
-
// 渲染内容
|
3633
|
-
var renderSelectContent = function renderSelectContent() {
|
3634
|
-
var _this$$slots16, _this$$slots16$defaul, _this$$slots17, _this$$slots18;
|
3635
|
-
return (0,external_vue_namespaceObject.createVNode)("div", {
|
3636
|
-
"ref": "contentRef",
|
3637
|
-
"class": _this.resolveClassName('select-content-wrapper')
|
3638
|
-
}, [renderAll(), _this.filterable && !_this.inputSearch && (0,external_vue_namespaceObject.createVNode)("div", {
|
3639
|
-
"class": _this.resolveClassName('select-search-wrapper')
|
3640
|
-
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Search, {
|
3641
|
-
"width": 16,
|
3642
|
-
"height": 16,
|
3643
|
-
"class": "icon-search"
|
3644
|
-
}, null), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("input", {
|
3645
|
-
"ref": "searchRef",
|
3646
|
-
"class": _this.resolveClassName('select-search-input'),
|
3647
|
-
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
3648
|
-
return _this.searchValue = $event;
|
3649
|
-
},
|
3650
|
-
"placeholder": _this.localSearchPlaceholder
|
3651
|
-
}, null), [[external_vue_namespaceObject.vModelText, _this.searchValue]])]), !_this.isShowSelectContent && (0,external_vue_namespaceObject.createVNode)("div", {
|
3652
|
-
"class": _this.resolveClassName('select-empty')
|
3653
|
-
}, [_this.searchLoading && (0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
|
3654
|
-
"class": "mr5",
|
3655
|
-
"loading": true,
|
3656
|
-
"mode": "spin",
|
3657
|
-
"size": "mini",
|
3658
|
-
"theme": "primary"
|
3659
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.curContentText])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
3660
|
-
"class": _this.resolveClassName('select-content')
|
3661
|
-
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
3662
|
-
"style": {
|
3663
|
-
maxHeight: "".concat(_this.scrollHeight, "px"),
|
3664
|
-
minHeight: "".concat(_this.minHeight, "px")
|
3665
|
-
},
|
3666
|
-
"class": _this.isEnableVirtualRender ? '' : _this.resolveClassName('select-dropdown'),
|
3667
|
-
"onScroll": _this.handleScroll
|
3668
|
-
}, [(0,external_vue_namespaceObject.createVNode)("ul", {
|
3669
|
-
"class": _this.resolveClassName('select-options')
|
3670
|
-
}, [renderSelectAll(), renderList(), (_this$$slots16 = _this.$slots) === null || _this$$slots16 === void 0 || (_this$$slots16$defaul = _this$$slots16["default"]) === null || _this$$slots16$defaul === void 0 ? void 0 : _this$$slots16$defaul.call(_this$$slots16), _this.scrollLoading && (0,external_vue_namespaceObject.createVNode)("li", {
|
3627
|
+
}), (_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", {
|
3671
3628
|
"class": _this.resolveClassName('select-options-loading')
|
3672
3629
|
}, [(0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
|
3673
3630
|
"class": "spinner mr5",
|
3631
|
+
"theme": "primary",
|
3674
3632
|
"loading": true,
|
3675
3633
|
"mode": "spin",
|
3676
|
-
"size": "mini"
|
3677
|
-
|
3678
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.localLoadingText])])])]), ((_this$$slots17 = _this.$slots) === null || _this$$slots17 === void 0 ? void 0 : _this$$slots17.extension) && (0,external_vue_namespaceObject.createVNode)("div", {
|
3634
|
+
"size": "mini"
|
3635
|
+
}, 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", {
|
3679
3636
|
"class": _this.resolveClassName('select-extension')
|
3680
|
-
}, [(_this$$
|
3637
|
+
}, [(_this$$slots14 = _this.$slots) === null || _this$$slots14 === void 0 ? void 0 : _this$$slots14.extension()])])]);
|
3681
3638
|
};
|
3682
3639
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
3683
3640
|
"class": selectClass
|
3684
3641
|
}, [(0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)(this.popoverConfig, {
|
3685
|
-
"
|
3686
|
-
"onAfterShow": this.
|
3687
|
-
"
|
3642
|
+
"onClickoutside": this.handleClickOutside,
|
3643
|
+
"onAfterShow": this.handlePopoverShow,
|
3644
|
+
"ref": "popoverRef"
|
3688
3645
|
}), {
|
3689
3646
|
"default": function _default() {
|
3690
3647
|
return renderSelectTrigger();
|