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