bkui-vue 2.0.1-beta.70 → 2.0.1-beta.70.search.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 +167 -167
- package/dist/index.esm.js +30199 -31633
- package/dist/index.umd.js +167 -167
- 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 +6 -6
- 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 +42 -43
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox-group.d.ts +16 -0
- package/lib/checkbox/checkbox.css +9 -147
- package/lib/checkbox/checkbox.d.ts +7 -39
- package/lib/checkbox/checkbox.less +0 -12
- package/lib/checkbox/checkbox.variable.css +1 -270
- package/lib/checkbox/index.d.ts +22 -57
- package/lib/checkbox/index.js +8 -21
- 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.d.ts +0 -16
- package/lib/color-picker/color-picker.less +3 -3
- package/lib/color-picker/color-picker.variable.css +4 -265
- package/lib/color-picker/index.d.ts +0 -23
- package/lib/color-picker/index.js +46 -53
- 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 +234 -346
- 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 +11 -2
- 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 +152 -74
- package/lib/dialog/dialog.less +76 -9
- package/lib/dialog/dialog.variable.css +89 -531
- package/lib/dialog/index.d.ts +352 -171
- package/lib/dialog/index.js +222 -200
- package/lib/dialog/props.d.ts +55 -25
- package/lib/directives/index.d.ts +3 -3
- package/lib/directives/index.js +172 -178
- 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 +18 -6
- 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 +13 -6
- package/lib/form/index.js +21 -22
- 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 +517 -65
- package/lib/input/input.css +73 -225
- package/lib/input/input.d.ts +15 -15
- package/lib/input/input.less +1 -30
- package/lib/input/input.variable.css +74 -487
- 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 +22 -153
- package/lib/message/message.less +2 -3
- package/lib/message/message.variable.css +2 -264
- 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 +696 -265
- 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 -61
- 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 +21 -20
- 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 +21 -20
- 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 -33
- 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 +18 -48
- package/lib/search-select/index.js +171 -120
- package/lib/search-select/input.d.ts +1 -10
- package/lib/search-select/menu.d.ts +0 -12
- package/lib/search-select/search-select.css +34 -163
- package/lib/search-select/search-select.d.ts +4 -18
- package/lib/search-select/search-select.less +1 -1
- package/lib/search-select/search-select.variable.css +35 -425
- package/lib/search-select/selected.d.ts +0 -23
- package/lib/select/common.d.ts +4 -4
- package/lib/select/index.d.ts +74 -107
- package/lib/select/index.js +183 -262
- package/lib/select/option.d.ts +6 -5
- package/lib/select/select.css +45 -176
- package/lib/select/select.d.ts +27 -40
- package/lib/select/select.less +6 -8
- package/lib/select/select.variable.css +46 -438
- package/lib/select/selectTagInput.d.ts +6 -7
- 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 -44
- package/lib/tab/index.js +38 -47
- package/lib/tab/props.d.ts +50 -25
- package/lib/tab/tab-nav.d.ts +57 -24
- package/lib/tab/tab-panel.d.ts +0 -22
- package/lib/tab/tab.css +17 -211
- package/lib/tab/tab.d.ts +54 -10
- package/lib/tab/tab.less +4 -91
- package/lib/tab/tab.variable.css +1 -326
- 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 -26
- package/lib/table/events.d.ts +112 -16
- package/lib/table/index.d.ts +738 -135
- package/lib/table/index.js +5781 -23555
- package/lib/table/plugins/col-group.d.ts +38 -0
- package/lib/table/plugins/head-filter.css +4 -139
- package/lib/table/plugins/head-filter.d.ts +1 -2
- package/lib/table/plugins/head-filter.less +3 -7
- package/lib/table/plugins/head-filter.variable.css +5 -271
- 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 -135
- package/lib/table/table.css +303 -638
- package/lib/table/table.d.ts +185 -62
- package/lib/table/table.less +148 -266
- package/lib/table/table.variable.css +312 -908
- 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 -49
- package/lib/table-column/index.d.ts +579 -30
- package/lib/table-column/index.js +317 -17398
- 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 +33 -37
- 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 -17660
- package/lib/tree/props.d.ts +10 -35
- package/lib/tree/tree.css +18 -256
- package/lib/tree/tree.d.ts +8 -34
- package/lib/tree/tree.less +1 -1
- package/lib/tree/tree.variable.css +19 -518
- 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 +4 -27
- package/lib/upload/index.js +51 -102
- package/lib/upload/props.d.ts +2 -7
- package/lib/upload/upload.css +27 -157
- package/lib/upload/upload.d.ts +2 -13
- package/lib/upload/upload.type.d.ts +7 -13
- 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 +130 -17665
- 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 -9
- 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 -1661
- 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 -25
- package/lib/table/hooks/use-pagination.d.ts +0 -16
- package/lib/table/hooks/use-render.d.ts +0 -21
- package/lib/table/hooks/use-rows.d.ts +0 -30
- package/lib/table/hooks/use-settings.d.ts +0 -136
- 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 -11
- /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 {
|
@@ -597,16 +596,15 @@ function useRegistry(data) {
|
|
597
596
|
// 注册item
|
598
597
|
var register = function register(key, item) {
|
599
598
|
if (!item) return;
|
599
|
+
if (data.value.has(key)) {
|
600
|
+
// console.warn(`repeat ${key}`, item);
|
601
|
+
return;
|
602
|
+
}
|
600
603
|
return data.value.set(key, item);
|
601
604
|
};
|
602
605
|
// 删除item
|
603
|
-
var unregister = function unregister(key
|
604
|
-
|
605
|
-
if (data.value.get(key) !== item) return;
|
606
|
-
data.value["delete"](key);
|
607
|
-
} else {
|
608
|
-
data.value["delete"](key);
|
609
|
-
}
|
606
|
+
var unregister = function unregister(key) {
|
607
|
+
data.value["delete"](key);
|
610
608
|
};
|
611
609
|
return {
|
612
610
|
register: register,
|
@@ -623,7 +621,6 @@ function useDebouncedRef(value) {
|
|
623
621
|
track();
|
624
622
|
return innerValue;
|
625
623
|
},
|
626
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
627
624
|
set: function set(newValue) {
|
628
625
|
clearTimeout(timeout);
|
629
626
|
if (newValue === undefined || newValue === '') {
|
@@ -735,6 +732,7 @@ function isInViewPort(el, client) {
|
|
735
732
|
|
736
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; }
|
737
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 */
|
738
736
|
/*
|
739
737
|
* Tencent is pleased to support the open source community by making
|
740
738
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -772,7 +770,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
772
770
|
name: 'Option',
|
773
771
|
props: {
|
774
772
|
id: {
|
775
|
-
type: [String, Number],
|
773
|
+
type: [String, Number, Object],
|
776
774
|
require: true
|
777
775
|
},
|
778
776
|
name: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]),
|
@@ -781,7 +779,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
781
779
|
},
|
782
780
|
setup: function setup(props, _ref) {
|
783
781
|
var attrs = _ref.attrs;
|
784
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
785
782
|
var _getCurrentInstance = (0,external_vue_namespaceObject.getCurrentInstance)(),
|
786
783
|
proxy = _getCurrentInstance.proxy;
|
787
784
|
var states = (0,external_vue_namespaceObject.reactive)({
|
@@ -863,8 +860,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
863
860
|
group === null || group === void 0 || group.register(optionID.value, proxy);
|
864
861
|
});
|
865
862
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
866
|
-
select === null || select === void 0 || select.unregister(optionID.value
|
867
|
-
group === null || group === void 0 || group.unregister(optionID.value
|
863
|
+
select === null || select === void 0 || select.unregister(optionID.value);
|
864
|
+
group === null || group === void 0 || group.unregister(optionID.value);
|
868
865
|
});
|
869
866
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
870
867
|
resolveClassName = _usePrefix.resolveClassName;
|
@@ -897,16 +894,16 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
897
894
|
"onClick": this.handleOptionClick,
|
898
895
|
"onMouseenter": this.handleMouseEnter
|
899
896
|
}, [this.showSelectedIcon && this.selectedStyle === shared_namespaceObject.SelectedTypeEnum.CHECKBOX && (0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
900
|
-
"class": this.resolveClassName('select-checkbox'),
|
901
897
|
"disabled": this.disabled,
|
898
|
+
"class": this.resolveClassName('select-checkbox'),
|
902
899
|
"modelValue": this.selected
|
903
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", {
|
904
901
|
"class": this.resolveClassName('select-option-item'),
|
905
902
|
"title": String(this.optionName)
|
906
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'),
|
907
905
|
"width": 22,
|
908
|
-
"height": 22
|
909
|
-
"class": this.resolveClassName('select-selected-icon')
|
906
|
+
"height": 22
|
910
907
|
}, null)]), [[external_vue_namespaceObject.vShow, this.visible]]);
|
911
908
|
}
|
912
909
|
}));
|
@@ -1057,6 +1054,10 @@ function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
1057
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]]);
|
1058
1055
|
}
|
1059
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"] });
|
1060
1061
|
;// CONCATENATED MODULE: external "../directives"
|
1061
1062
|
var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1062
1063
|
var directives_y = x => () => x
|
@@ -1093,10 +1094,6 @@ const virtual_render_namespaceObject = virtual_render_x({ ["default"]: () => __W
|
|
1093
1094
|
var virtual_render_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1094
1095
|
var virtual_render_less_y = x => () => x
|
1095
1096
|
const virtual_render_less_namespaceObject = virtual_render_less_x({ });
|
1096
|
-
;// CONCATENATED MODULE: external "lodash/merge"
|
1097
|
-
var merge_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1098
|
-
var merge_y = x => () => x
|
1099
|
-
const merge_namespaceObject = merge_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__["default"] });
|
1100
1097
|
;// CONCATENATED MODULE: ../../packages/select/src/pinyin/dict.js
|
1101
1098
|
/*
|
1102
1099
|
* Tencent is pleased to support the open source community by making
|
@@ -1124,6 +1121,8 @@ const merge_namespaceObject = merge_x({ ["default"]: () => __WEBPACK_EXTERNAL_MO
|
|
1124
1121
|
* IN THE SOFTWARE.
|
1125
1122
|
*/
|
1126
1123
|
|
1124
|
+
/* eslint-disable max-len */
|
1125
|
+
|
1127
1126
|
/**
|
1128
1127
|
* Source: <https://android.googlesource.com/platform/packages/providers/ContactsProvider/+/0c49720fb3d58e346739c2ccd56ed2b739249e07/src/com/android/providers/contacts/HanziToPinyin.java>
|
1129
1128
|
* Updated by creeper
|
@@ -2037,6 +2036,7 @@ let COLLATOR;
|
|
2037
2036
|
function patchDict(patchers) {
|
2038
2037
|
if (!patchers) return;
|
2039
2038
|
if (typeof patchers === 'function') {
|
2039
|
+
// eslint-disable-next-line no-param-reassign
|
2040
2040
|
patchers = [patchers];
|
2041
2041
|
}
|
2042
2042
|
if (patchers.forEach) {
|
@@ -2127,6 +2127,7 @@ function genToken(ch) {
|
|
2127
2127
|
}
|
2128
2128
|
|
2129
2129
|
if (cmp < 0) {
|
2130
|
+
// eslint-disable-next-line no-plusplus
|
2130
2131
|
offset--;
|
2131
2132
|
}
|
2132
2133
|
|
@@ -2295,10 +2296,10 @@ if (core.isSupported() && _56l.shouldPatch(core.genToken)) {
|
|
2295
2296
|
|
2296
2297
|
/* harmony default export */ const pinyin = (core);
|
2297
2298
|
|
2298
|
-
;// CONCATENATED MODULE: external "
|
2299
|
-
var
|
2300
|
-
var
|
2301
|
-
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"] });
|
2302
2303
|
;// CONCATENATED MODULE: external "../tag"
|
2303
2304
|
var tag_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
2304
2305
|
var tag_y = x => () => x
|
@@ -2307,10 +2308,6 @@ const tag_namespaceObject = tag_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE
|
|
2307
2308
|
var tag_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
2308
2309
|
var tag_less_y = x => () => x
|
2309
2310
|
const tag_less_namespaceObject = tag_less_x({ });
|
2310
|
-
;// CONCATENATED MODULE: external "lodash/debounce"
|
2311
|
-
var debounce_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
2312
|
-
var debounce_y = x => () => x
|
2313
|
-
const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__["default"] });
|
2314
2311
|
;// CONCATENATED MODULE: ../../packages/select/src/selectTagInput.tsx
|
2315
2312
|
|
2316
2313
|
|
@@ -2347,7 +2344,6 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2347
2344
|
|
2348
2345
|
|
2349
2346
|
|
2350
|
-
|
2351
2347
|
/* harmony default export */ const selectTagInput = ((0,external_vue_namespaceObject.defineComponent)({
|
2352
2348
|
name: 'SelectTagInput',
|
2353
2349
|
directives: {
|
@@ -2384,7 +2380,7 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2384
2380
|
var overflowTagIndex = (0,external_vue_namespaceObject.ref)(null);
|
2385
2381
|
var overflowContent = (0,external_vue_namespaceObject.computed)(function () {
|
2386
2382
|
return selected.value.slice(overflowTagIndex.value, selected.value.length).map(function (item) {
|
2387
|
-
return
|
2383
|
+
return item.label;
|
2388
2384
|
}).join(', ');
|
2389
2385
|
});
|
2390
2386
|
(0,external_vue_namespaceObject.watch)(modelValue, function () {
|
@@ -2406,9 +2402,6 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2406
2402
|
var _inputRef$value2;
|
2407
2403
|
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || _inputRef$value2.blur();
|
2408
2404
|
};
|
2409
|
-
var updateModelValue = function updateModelValue(data) {
|
2410
|
-
emit('update:modelValue', data);
|
2411
|
-
};
|
2412
2405
|
var handleInput = function handleInput(e) {
|
2413
2406
|
emit('update:modelValue', e.target.value);
|
2414
2407
|
};
|
@@ -2478,7 +2471,6 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2478
2471
|
handleRemoveTag: handleRemoveTag,
|
2479
2472
|
focus: focus,
|
2480
2473
|
blur: blur,
|
2481
|
-
updateModelValue: updateModelValue,
|
2482
2474
|
handleInput: handleInput,
|
2483
2475
|
handleKeydown: handleKeydown,
|
2484
2476
|
resolveClassName: resolveClassName
|
@@ -2493,8 +2485,8 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2493
2485
|
_this$$slots$default2,
|
2494
2486
|
_this$$slots3,
|
2495
2487
|
_this = this,
|
2496
|
-
_this$$
|
2497
|
-
_this$$
|
2488
|
+
_this$$slots4,
|
2489
|
+
_this$$slots4$suffix;
|
2498
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);
|
2499
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'));
|
2500
2492
|
var tagWrapperClass = (0,shared_namespaceObject.classes)(_defineProperty({}, this.resolveClassName('select-tag-wrapper'), true));
|
@@ -2502,62 +2494,54 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2502
2494
|
display: this.selected.length && !this.filterable ? 'none' : ''
|
2503
2495
|
};
|
2504
2496
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
2505
|
-
"
|
2506
|
-
"
|
2497
|
+
"class": selectTagClass,
|
2498
|
+
"ref": "tagWrapperRef"
|
2507
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", {
|
2508
2500
|
"class": tagWrapperClass
|
2509
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) {
|
2510
|
-
var _this
|
2502
|
+
var _this$select;
|
2511
2503
|
return (0,external_vue_namespaceObject.createVNode)(tag_namespaceObject["default"], {
|
2512
|
-
"
|
2513
|
-
|
2514
|
-
},
|
2504
|
+
"closable": true,
|
2505
|
+
"theme": _this.tagTheme,
|
2515
2506
|
"style": {
|
2516
2507
|
display: _this.collapseTags && _this.overflowTagIndex && index >= _this.overflowTagIndex ? 'none' : ''
|
2517
2508
|
},
|
2518
|
-
"
|
2519
|
-
|
2520
|
-
|
2509
|
+
"ref": function ref(el) {
|
2510
|
+
return _this.tagsRefs[index] = el;
|
2511
|
+
},
|
2521
2512
|
"onClose": function onClose() {
|
2522
2513
|
return _this.handleRemoveTag(item.value);
|
2523
2514
|
}
|
2524
2515
|
}, {
|
2525
2516
|
"default": function _default() {
|
2526
|
-
return [(_this
|
2527
|
-
"type": "tips"
|
2528
|
-
}, {
|
2529
|
-
"default": function _default() {
|
2530
|
-
return [(_this$select = _this.select) === null || _this$select === void 0 ? void 0 : _this$select.handleGetLabelByValue(item.value)];
|
2531
|
-
}
|
2532
|
-
})];
|
2517
|
+
return [(_this$select = _this.select) === null || _this$select === void 0 ? void 0 : _this$select.handleGetLabelByValue(item.value)];
|
2533
2518
|
}
|
2534
2519
|
});
|
2535
2520
|
}), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(tag_namespaceObject["default"], {
|
2536
|
-
"
|
2521
|
+
"class": this.resolveClassName('select-overflow-tag'),
|
2537
2522
|
"style": {
|
2538
2523
|
display: !!this.overflowTagIndex && this.collapseTags ? '' : 'none'
|
2539
2524
|
},
|
2540
|
-
"
|
2525
|
+
"ref": "collapseTagRef"
|
2541
2526
|
}, {
|
2542
2527
|
"default": function _default() {
|
2543
2528
|
return [(0,external_vue_namespaceObject.createTextVNode)("+"), _this.selected.length - _this.overflowTagIndex];
|
2544
2529
|
}
|
2545
2530
|
}), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), {
|
2546
2531
|
content: this.overflowContent,
|
2547
|
-
disabled: !this.overflowTagIndex || !this.collapseTags
|
2548
|
-
extCls: this.resolveClassName('select-tooltips')
|
2532
|
+
disabled: !this.overflowTagIndex || !this.collapseTags
|
2549
2533
|
}]]), (0,external_vue_namespaceObject.createVNode)("input", {
|
2534
|
+
"class": this.resolveClassName('select-tag-input'),
|
2550
2535
|
"ref": "inputRef",
|
2536
|
+
"type": "text",
|
2551
2537
|
"style": inputStyle,
|
2552
|
-
"class": this.resolveClassName('select-tag-input'),
|
2553
|
-
"disabled": this.disabled,
|
2554
2538
|
"placeholder": !this.selected.length ? this.placeholder : '',
|
2555
2539
|
"readonly": !this.filterable,
|
2556
|
-
"
|
2540
|
+
"disabled": this.disabled,
|
2557
2541
|
"value": !this.filterable ? '' : this.value,
|
2558
2542
|
"onInput": this.handleInput,
|
2559
2543
|
"onKeydown": this.handleKeydown
|
2560
|
-
}, 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)]);
|
2561
2545
|
}
|
2562
2546
|
}));
|
2563
2547
|
;// CONCATENATED MODULE: ../../packages/select/src/select.tsx
|
@@ -2570,6 +2554,7 @@ function select_unsupportedIterableToArray(o, minLen) { if (!o) return; if (type
|
|
2570
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; }
|
2571
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; }
|
2572
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 */
|
2573
2558
|
/*
|
2574
2559
|
* Tencent is pleased to support the open source community by making
|
2575
2560
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2630,8 +2615,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2630
2615
|
loading: shared_namespaceObject.PropTypes.bool.def(false),
|
2631
2616
|
filterable: shared_namespaceObject.PropTypes.bool.def(true),
|
2632
2617
|
remoteMethod: shared_namespaceObject.PropTypes.func,
|
2633
|
-
scrollHeight: shared_namespaceObject.PropTypes.number.def(
|
2634
|
-
minHeight: shared_namespaceObject.PropTypes.number,
|
2618
|
+
scrollHeight: shared_namespaceObject.PropTypes.number.def(200),
|
2635
2619
|
showAll: shared_namespaceObject.PropTypes.bool.def(false),
|
2636
2620
|
allOptionId: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]),
|
2637
2621
|
showSelectAll: shared_namespaceObject.PropTypes.bool.def(false),
|
@@ -2715,7 +2699,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2715
2699
|
highlightKeyword = _toRefs.highlightKeyword,
|
2716
2700
|
disableFocusBehavior = _toRefs.disableFocusBehavior,
|
2717
2701
|
trigger = _toRefs.trigger;
|
2718
|
-
var virtualRenderRef = (0,external_vue_namespaceObject.ref)(null);
|
2719
2702
|
var localNoDataText = (0,external_vue_namespaceObject.computed)(function () {
|
2720
2703
|
if (props.noDataText === undefined) {
|
2721
2704
|
return t.value.noData;
|
@@ -2758,6 +2741,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2758
2741
|
var contentRef = (0,external_vue_namespaceObject.ref)();
|
2759
2742
|
var searchRef = (0,external_vue_namespaceObject.ref)();
|
2760
2743
|
var selectTagInputRef = (0,external_vue_namespaceObject.ref)();
|
2744
|
+
var virtualRenderRef = (0,external_vue_namespaceObject.ref)();
|
2761
2745
|
var popoverRef = (0,external_vue_namespaceObject.ref)();
|
2762
2746
|
var optionsMap = (0,external_vue_namespaceObject.ref)(new Map());
|
2763
2747
|
var options = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -2773,7 +2757,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2773
2757
|
return pre;
|
2774
2758
|
}, {});
|
2775
2759
|
});
|
2776
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2777
2760
|
var activeOptionValue = (0,external_vue_namespaceObject.ref)(); // 当前悬浮的option
|
2778
2761
|
var listMap = (0,external_vue_namespaceObject.computed)(function () {
|
2779
2762
|
return list.value.reduce(function (pre, item) {
|
@@ -2797,8 +2780,8 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2797
2780
|
var _popoverRef$value;
|
2798
2781
|
(_popoverRef$value = popoverRef.value) === null || _popoverRef$value === void 0 || _popoverRef$value.updatePopover(null, popoverConfig.value);
|
2799
2782
|
});
|
2800
|
-
//
|
2801
|
-
var
|
2783
|
+
// 虚拟滚动模式下搜索后的值
|
2784
|
+
var virtualList = (0,external_vue_namespaceObject.computed)(function () {
|
2802
2785
|
return isRemoteSearch.value ? list.value : list.value.filter(function (item) {
|
2803
2786
|
return defaultSearchMethod(curSearchValue.value, String(item[displayKey.value]), item);
|
2804
2787
|
});
|
@@ -2871,22 +2854,12 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2871
2854
|
var virtualHeight = (0,external_vue_namespaceObject.computed)(function () {
|
2872
2855
|
return scrollHeight.value - 12 - (isShowSelectAll.value ? 32 : 0);
|
2873
2856
|
});
|
2874
|
-
var virtualLineHeight = (0,external_vue_namespaceObject.ref)(32);
|
2875
|
-
// 是否启用虚拟滚动(如果配置了启用,但是数据小于滚动高度则不开启)
|
2876
|
-
var isEnableVirtualRender = (0,external_vue_namespaceObject.computed)(function () {
|
2877
|
-
if (enableVirtualRender.value) return filterList.value.length * virtualLineHeight.value > virtualHeight.value;
|
2878
|
-
return false;
|
2879
|
-
});
|
2880
|
-
// 预加载滚动数据
|
2881
|
-
var preloadItemCount = (0,external_vue_namespaceObject.computed)(function () {
|
2882
|
-
return Math.ceil(virtualHeight.value / virtualLineHeight.value);
|
2883
|
-
});
|
2884
2857
|
// 当前空状态时显示文案
|
2885
2858
|
var curContentText = (0,external_vue_namespaceObject.computed)(function () {
|
2886
2859
|
if (searchLoading.value) {
|
2887
2860
|
return localLoadingText.value;
|
2888
2861
|
}
|
2889
|
-
if (isSearchEmpty.value || list.value.length && !
|
2862
|
+
if (isSearchEmpty.value || list.value.length && !virtualList.value.length) {
|
2890
2863
|
return localNoMatchText.value;
|
2891
2864
|
}
|
2892
2865
|
if (isOptionsEmpty.value) {
|
@@ -2951,12 +2924,8 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2951
2924
|
showPopover();
|
2952
2925
|
};
|
2953
2926
|
// 输入框是否可以输入内容
|
2954
|
-
// const isInput = computed(
|
2955
|
-
// () => ((filterable.value && inputSearch.value) || allowCreate.value) && isPopoverShow.value,
|
2956
|
-
// );
|
2957
|
-
// 自定义创建失焦后仍保留输入框内的内容
|
2958
2927
|
var isInput = (0,external_vue_namespaceObject.computed)(function () {
|
2959
|
-
return filterable.value && inputSearch.value
|
2928
|
+
return (filterable.value && inputSearch.value || allowCreate.value) && isPopoverShow.value;
|
2960
2929
|
});
|
2961
2930
|
(0,external_vue_namespaceObject.watch)(isPopoverShow, function (isShow) {
|
2962
2931
|
emit('toggle', isPopoverShow.value);
|
@@ -2977,7 +2946,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2977
2946
|
// 滚动到当前选中的options中
|
2978
2947
|
var scrollActiveOptionIntoView = function scrollActiveOptionIntoView() {
|
2979
2948
|
var _contentRef$value, _contentRef$value$que, _optionsDom$;
|
2980
|
-
if (isEnableVirtualRender.value) return;
|
2981
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');
|
2982
2950
|
optionsDom === null || optionsDom === void 0 || (_optionsDom$ = optionsDom[0]) === null || _optionsDom$ === void 0 || _optionsDom$.scrollIntoView({
|
2983
2951
|
block: 'center'
|
@@ -2998,17 +2966,14 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2998
2966
|
}
|
2999
2967
|
};
|
3000
2968
|
// 默认搜索方法
|
3001
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
3002
2969
|
var defaultSearchMethod = function defaultSearchMethod(searchValue, optionName) {
|
3003
2970
|
var _toLowerCase2;
|
3004
2971
|
var filterData = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
3005
2972
|
if (hasFilterOptionFunc.value) {
|
3006
|
-
// 是否配置了单个options过滤
|
3007
2973
|
return !!filterOption.value(searchValue, select_objectSpread({}, filterData));
|
3008
2974
|
}
|
3009
2975
|
if (searchWithPinyin.value) {
|
3010
2976
|
var _toLowerCase;
|
3011
|
-
// 是否配置了拼音过滤
|
3012
2977
|
var pinyinList = pinyin.parse(optionName).map(function (v) {
|
3013
2978
|
if (v.type === 2) {
|
3014
2979
|
return v.target.toLowerCase();
|
@@ -3127,7 +3092,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3127
3092
|
return item.value;
|
3128
3093
|
}));
|
3129
3094
|
emit('select', option.optionID);
|
3130
|
-
clearMultipleInputValue();
|
3131
3095
|
}
|
3132
3096
|
focusInput();
|
3133
3097
|
} else {
|
@@ -3136,22 +3100,12 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3136
3100
|
label: option.optionName || option.optionID,
|
3137
3101
|
value: option.optionID
|
3138
3102
|
}];
|
3139
|
-
if (filterable.value && allowCreate.value) {
|
3140
|
-
customOptionName.value = '';
|
3141
|
-
}
|
3142
3103
|
emitChange(option.optionID);
|
3143
3104
|
emit('select', option.optionID);
|
3144
3105
|
handleHidePopover();
|
3145
3106
|
handleBlur();
|
3146
3107
|
}
|
3147
3108
|
};
|
3148
|
-
// 是否需要清空多选输入框内容
|
3149
|
-
var clearMultipleInputValue = function clearMultipleInputValue() {
|
3150
|
-
if (['tag'].includes(multipleMode.value) && isInput.value) {
|
3151
|
-
var _selectTagInputRef$va;
|
3152
|
-
(_selectTagInputRef$va = selectTagInputRef.value) === null || _selectTagInputRef$va === void 0 || _selectTagInputRef$va.updateModelValue('');
|
3153
|
-
}
|
3154
|
-
};
|
3155
3109
|
// 聚焦输入框
|
3156
3110
|
var focusInput = function focusInput() {
|
3157
3111
|
if (disableFocusBehavior.value) return;
|
@@ -3161,8 +3115,8 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3161
3115
|
(_searchRef$value = searchRef.value) === null || _searchRef$value === void 0 || _searchRef$value.focus();
|
3162
3116
|
} else {
|
3163
3117
|
if (multipleMode.value === 'tag') {
|
3164
|
-
var _selectTagInputRef$
|
3165
|
-
(_selectTagInputRef$
|
3118
|
+
var _selectTagInputRef$va;
|
3119
|
+
(_selectTagInputRef$va = selectTagInputRef.value) === null || _selectTagInputRef$va === void 0 || _selectTagInputRef$va.focus();
|
3166
3120
|
} else {
|
3167
3121
|
var _inputRef$value;
|
3168
3122
|
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || _inputRef$value.focus();
|
@@ -3174,8 +3128,8 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3174
3128
|
var blurInput = function blurInput() {
|
3175
3129
|
setTimeout(function () {
|
3176
3130
|
if (multipleMode.value === 'tag') {
|
3177
|
-
var _selectTagInputRef$
|
3178
|
-
(_selectTagInputRef$
|
3131
|
+
var _selectTagInputRef$va2;
|
3132
|
+
(_selectTagInputRef$va2 = selectTagInputRef.value) === null || _selectTagInputRef$va2 === void 0 || _selectTagInputRef$va2.blur();
|
3179
3133
|
} else {
|
3180
3134
|
var _inputRef$value2;
|
3181
3135
|
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || _inputRef$value2.blur();
|
@@ -3186,7 +3140,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3186
3140
|
var handleClear = function handleClear(e) {
|
3187
3141
|
e.stopPropagation();
|
3188
3142
|
selected.value = [];
|
3189
|
-
clearMultipleInputValue();
|
3190
3143
|
emitChange(multiple.value ? [] : '');
|
3191
3144
|
emit('clear', multiple.value ? [] : '');
|
3192
3145
|
handleHidePopover();
|
@@ -3200,21 +3153,22 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3200
3153
|
selected.value = [];
|
3201
3154
|
} else {
|
3202
3155
|
var _list$value;
|
3203
|
-
var
|
3156
|
+
var tmpSelected = [];
|
3204
3157
|
options.value.forEach(function (option) {
|
3205
|
-
if (option.disabled
|
3206
|
-
|
3158
|
+
if (option.disabled) return;
|
3159
|
+
tmpSelected.push({
|
3160
|
+
value: option.optionID,
|
3161
|
+
label: option.optionName || option.optionID
|
3162
|
+
});
|
3207
3163
|
});
|
3208
3164
|
(_list$value = list.value) === null || _list$value === void 0 || _list$value.forEach(function (item) {
|
3209
|
-
if (item.disabled
|
3210
|
-
|
3211
|
-
|
3212
|
-
|
3213
|
-
|
3214
|
-
value: key,
|
3215
|
-
label: tmpSelectedMap.get(key)
|
3216
|
-
};
|
3165
|
+
if (item.disabled) return;
|
3166
|
+
tmpSelected.push({
|
3167
|
+
value: item[idKey.value],
|
3168
|
+
label: item[displayKey.value]
|
3169
|
+
});
|
3217
3170
|
});
|
3171
|
+
selected.value = tmpSelected;
|
3218
3172
|
}
|
3219
3173
|
emitChange(selected.value.map(function (item) {
|
3220
3174
|
return item.value;
|
@@ -3299,7 +3253,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3299
3253
|
};
|
3300
3254
|
}));
|
3301
3255
|
} else {
|
3302
|
-
if (modelValue.value || allowEmptyValues.value.includes(modelValue.value)) {
|
3256
|
+
if (modelValue.value !== undefined || allowEmptyValues.value.includes(modelValue.value)) {
|
3303
3257
|
selected.value = [{
|
3304
3258
|
value: modelValue.value,
|
3305
3259
|
label: handleGetLabelByValue(modelValue.value)
|
@@ -3309,18 +3263,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3309
3263
|
}
|
3310
3264
|
}
|
3311
3265
|
};
|
3312
|
-
// 手动设置selected值
|
3313
|
-
var setSelected = function setSelected(data) {
|
3314
|
-
selected.value = data.map(function (item) {
|
3315
|
-
return {
|
3316
|
-
label: item[displayKey.value],
|
3317
|
-
value: item[idKey.value]
|
3318
|
-
};
|
3319
|
-
});
|
3320
|
-
};
|
3321
3266
|
// 处理键盘事件
|
3322
3267
|
var handleDocumentKeydown = function handleDocumentKeydown(e) {
|
3323
|
-
if (!isPopoverShow.value ||
|
3268
|
+
if (!isPopoverShow.value || enableVirtualRender.value) return;
|
3324
3269
|
var availableOptions = options.value.filter(function (option) {
|
3325
3270
|
return !option.disabled && option.visible;
|
3326
3271
|
});
|
@@ -3378,6 +3323,13 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3378
3323
|
handleHidePopover();
|
3379
3324
|
handleBlur();
|
3380
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
|
+
};
|
3381
3333
|
(0,external_vue_namespaceObject.provide)(selectKey, (0,external_vue_namespaceObject.reactive)({
|
3382
3334
|
multiple: multiple,
|
3383
3335
|
selected: selected,
|
@@ -3400,10 +3352,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3400
3352
|
autoFocus.value && focusInput();
|
3401
3353
|
});
|
3402
3354
|
});
|
3403
|
-
var handlePopoverShown = function handlePopoverShown() {
|
3404
|
-
var _virtualRenderRef$val;
|
3405
|
-
(_virtualRenderRef$val = virtualRenderRef.value) === null || _virtualRenderRef$val === void 0 || _virtualRenderRef$val.scrollTo(0, 1);
|
3406
|
-
};
|
3407
3355
|
return {
|
3408
3356
|
t: t,
|
3409
3357
|
selected: selected,
|
@@ -3419,6 +3367,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3419
3367
|
contentRef: contentRef,
|
3420
3368
|
searchRef: searchRef,
|
3421
3369
|
selectTagInputRef: selectTagInputRef,
|
3370
|
+
virtualRenderRef: virtualRenderRef,
|
3422
3371
|
popoverRef: popoverRef,
|
3423
3372
|
searchLoading: searchLoading,
|
3424
3373
|
isOptionsEmpty: isOptionsEmpty,
|
@@ -3433,7 +3382,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3433
3382
|
isShowAll: isShowAll,
|
3434
3383
|
isShowSelectAll: isShowSelectAll,
|
3435
3384
|
virtualHeight: virtualHeight,
|
3436
|
-
|
3385
|
+
virtualList: virtualList,
|
3437
3386
|
isCollapseTags: isCollapseTags,
|
3438
3387
|
popoverConfig: popoverConfig,
|
3439
3388
|
isAllSelected: isAllSelected,
|
@@ -3455,33 +3404,26 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3455
3404
|
handleDeleteTag: handleDeleteTag,
|
3456
3405
|
handleInputChange: handleInputChange,
|
3457
3406
|
handleSelectedAllOptionMouseEnter: handleSelectedAllOptionMouseEnter,
|
3407
|
+
handlePopoverShow: handlePopoverShow,
|
3458
3408
|
localLoadingText: localLoadingText,
|
3459
3409
|
localPlaceholder: localPlaceholder,
|
3460
3410
|
localSearchPlaceholder: localSearchPlaceholder,
|
3461
3411
|
localSelectAllText: localSelectAllText,
|
3462
3412
|
resolveClassName: resolveClassName,
|
3463
|
-
handleCreateCustomOption: handleCreateCustomOption
|
3464
|
-
handlePopoverShown: handlePopoverShown,
|
3465
|
-
virtualLineHeight: virtualLineHeight,
|
3466
|
-
isEnableVirtualRender: isEnableVirtualRender,
|
3467
|
-
preloadItemCount: preloadItemCount,
|
3468
|
-
virtualRenderRef: virtualRenderRef,
|
3469
|
-
setSelected: setSelected
|
3413
|
+
handleCreateCustomOption: handleCreateCustomOption
|
3470
3414
|
};
|
3471
3415
|
},
|
3472
3416
|
render: function render() {
|
3473
3417
|
var _this = this;
|
3474
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));
|
3475
|
-
// 右侧ICON
|
3476
3419
|
var suffixIcon = function suffixIcon() {
|
3477
|
-
var _this$$slots, _this$$slots2, _this$$slots2$suffix;
|
3478
3420
|
if (_this.loading) {
|
3479
3421
|
return (0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
|
3480
|
-
"class": "spinner",
|
3481
3422
|
"loading": true,
|
3423
|
+
"theme": "primary",
|
3424
|
+
"class": "spinner",
|
3482
3425
|
"mode": "spin",
|
3483
|
-
"size": "mini"
|
3484
|
-
"theme": "primary"
|
3426
|
+
"size": "mini"
|
3485
3427
|
}, null);
|
3486
3428
|
}
|
3487
3429
|
if (_this.clearable && _this.isHover && _this.selected.length && !_this.isDisabled) {
|
@@ -3490,14 +3432,12 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3490
3432
|
"onClick": _this.handleClear
|
3491
3433
|
}, null);
|
3492
3434
|
}
|
3493
|
-
return (
|
3494
|
-
"class": "angle-
|
3495
|
-
}, [(_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, {
|
3496
|
-
"class": "angle-down"
|
3435
|
+
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleUp, {
|
3436
|
+
"class": "angle-up"
|
3497
3437
|
}, null);
|
3498
3438
|
};
|
3499
3439
|
var renderPrefix = function renderPrefix() {
|
3500
|
-
var _this$$
|
3440
|
+
var _this$$slots;
|
3501
3441
|
if (_this.prefix) {
|
3502
3442
|
return function () {
|
3503
3443
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -3505,9 +3445,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3505
3445
|
}, [(0,external_vue_namespaceObject.createVNode)("span", null, [_this.prefix])]);
|
3506
3446
|
};
|
3507
3447
|
}
|
3508
|
-
return (_this$$
|
3509
|
-
var _this$$
|
3510
|
-
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);
|
3511
3451
|
} : undefined;
|
3512
3452
|
};
|
3513
3453
|
// 全选
|
@@ -3515,12 +3455,12 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3515
3455
|
if (!_this.isShowSelectAll) return;
|
3516
3456
|
return (0,external_vue_namespaceObject.createVNode)("li", {
|
3517
3457
|
"class": _this.resolveClassName('select-option'),
|
3518
|
-
"
|
3519
|
-
"
|
3458
|
+
"onMouseenter": _this.handleSelectedAllOptionMouseEnter,
|
3459
|
+
"onClick": _this.toggleSelectAll
|
3520
3460
|
}, [_this.selectedStyle === 'checkbox' && (0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
3521
3461
|
"class": _this.resolveClassName('select-checkbox'),
|
3522
|
-
"
|
3523
|
-
"
|
3462
|
+
"modelValue": _this.isAllSelected,
|
3463
|
+
"indeterminate": !_this.isAllSelected && !!_this.selected.length && !_this.isAll
|
3524
3464
|
}, null), _this.t.selectAll]);
|
3525
3465
|
};
|
3526
3466
|
// 全部
|
@@ -3536,38 +3476,33 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3536
3476
|
"class": "select-all-icon"
|
3537
3477
|
}, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.t.all])])]);
|
3538
3478
|
};
|
3539
|
-
// 默认trigger输入框渲染
|
3540
3479
|
var renderTriggerInput = function renderTriggerInput() {
|
3541
|
-
var _this$$
|
3480
|
+
var _this$$slots5;
|
3542
3481
|
if (_this.multipleMode === 'tag') {
|
3543
|
-
var _this$$
|
3482
|
+
var _this$$slots3;
|
3544
3483
|
return (0,external_vue_namespaceObject.createVNode)(selectTagInput, {
|
3545
3484
|
"ref": "selectTagInputRef",
|
3546
3485
|
"modelValue": _this.customOptionName,
|
3547
3486
|
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
3548
3487
|
return _this.customOptionName = $event;
|
3549
3488
|
},
|
3550
|
-
"behavior": _this.behavior,
|
3551
|
-
"collapseTags": _this.isCollapseTags,
|
3552
|
-
"disabled": _this.isDisabled,
|
3553
|
-
"filterable": _this.isInput,
|
3554
|
-
"placeholder": _this.localPlaceholder,
|
3555
3489
|
"selected": _this.selected,
|
3556
3490
|
"tagTheme": _this.tagTheme,
|
3557
|
-
"
|
3558
|
-
"
|
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
|
3559
3498
|
}, {
|
3560
3499
|
prefix: renderPrefix(),
|
3561
|
-
"default": ((_this$$
|
3562
|
-
var _this$$
|
3563
|
-
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({
|
3564
3503
|
selected: _this.selected
|
3565
3504
|
});
|
3566
3505
|
},
|
3567
|
-
tagRender: ((_this$$slots7 = _this.$slots) === null || _this$$slots7 === void 0 ? void 0 : _this$$slots7.tagRender) && function (item) {
|
3568
|
-
var _this$$slots8;
|
3569
|
-
return (_this$$slots8 = _this.$slots) === null || _this$$slots8 === void 0 ? void 0 : _this$$slots8.tagRender(item);
|
3570
|
-
},
|
3571
3506
|
suffix: function suffix() {
|
3572
3507
|
return suffixIcon();
|
3573
3508
|
}
|
@@ -3575,24 +3510,24 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3575
3510
|
}
|
3576
3511
|
return (0,external_vue_namespaceObject.createVNode)(input_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
|
3577
3512
|
"ref": "inputRef",
|
3578
|
-
"
|
3579
|
-
"disabled": _this.isDisabled,
|
3513
|
+
"type": "text",
|
3580
3514
|
"modelValue": _this.isInput ? _this.customOptionName : _this.selectedLabel.join(','),
|
3581
3515
|
"placeholder": _this.isInput ? _this.selectedLabel.join(',') || _this.localPlaceholder : _this.localPlaceholder,
|
3582
3516
|
"readonly": !_this.isInput,
|
3583
3517
|
"selectReadonly": true,
|
3518
|
+
"disabled": _this.isDisabled,
|
3519
|
+
"behavior": _this.behavior,
|
3584
3520
|
"size": _this.size,
|
3585
|
-
"stopPropagation": false,
|
3586
|
-
"type": "text",
|
3587
3521
|
"withValidate": false,
|
3588
|
-
"
|
3589
|
-
"onInput": _this.handleInputChange
|
3522
|
+
"stopPropagation": false,
|
3523
|
+
"onInput": _this.handleInputChange,
|
3524
|
+
"onEnter": _this.handleCreateCustomOption
|
3590
3525
|
}, _this.prefix ? {
|
3591
3526
|
prefix: _this.prefix
|
3592
|
-
} : 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' ? {
|
3593
3528
|
prefix: function prefix() {
|
3594
|
-
var _this$$
|
3595
|
-
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);
|
3596
3531
|
}
|
3597
3532
|
} : null), {}, {
|
3598
3533
|
suffix: function suffix() {
|
@@ -3600,44 +3535,71 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3600
3535
|
}
|
3601
3536
|
}));
|
3602
3537
|
};
|
3603
|
-
// 渲染trigger
|
3604
3538
|
var renderSelectTrigger = function renderSelectTrigger() {
|
3605
|
-
var _this$$
|
3539
|
+
var _this$$slots7, _this$$slots7$trigger;
|
3606
3540
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
3607
|
-
"
|
3541
|
+
"class": _this.resolveClassName('select-trigger'),
|
3608
3542
|
"style": {
|
3609
3543
|
height: _this.autoHeight && _this.collapseTags ? '32px' : ''
|
3610
3544
|
},
|
3611
|
-
"
|
3545
|
+
"ref": "triggerRef",
|
3612
3546
|
"onClick": _this.handleTogglePopover,
|
3613
3547
|
"onMouseenter": _this.setHover,
|
3614
3548
|
"onMouseleave": _this.cancelHover
|
3615
|
-
}, [((_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, {
|
3616
3550
|
selected: _this.selected
|
3617
3551
|
})) || renderTriggerInput()]);
|
3618
3552
|
};
|
3619
|
-
|
3620
|
-
|
3621
|
-
return
|
3622
|
-
"
|
3623
|
-
"
|
3624
|
-
|
3625
|
-
"
|
3626
|
-
|
3627
|
-
"
|
3628
|
-
|
3629
|
-
|
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;
|
3630
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"
|
3631
3594
|
}, {
|
3632
3595
|
"default": function _default(_ref3) {
|
3633
|
-
var _this$$
|
3596
|
+
var _this$$slots8, _this$$slots9;
|
3634
3597
|
var data = _ref3.data;
|
3635
|
-
|
3636
|
-
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);
|
3637
3599
|
return data.map(function (item) {
|
3638
3600
|
return (0,external_vue_namespaceObject.createVNode)(src_option, {
|
3639
|
-
"id": item[_this.idKey],
|
3640
3601
|
"key": item[_this.idKey],
|
3602
|
+
"id": item[_this.idKey],
|
3641
3603
|
"name": item[_this.displayKey]
|
3642
3604
|
}, typeof optionRender === 'function' ? {
|
3643
3605
|
"default": function _default() {
|
@@ -3648,79 +3610,38 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3648
3610
|
} : null);
|
3649
3611
|
});
|
3650
3612
|
}
|
3651
|
-
}) : _this.
|
3652
|
-
var _this$$
|
3653
|
-
// 兼容以前slots
|
3654
|
-
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;
|
3655
3615
|
return (0,external_vue_namespaceObject.createVNode)(src_option, {
|
3656
|
-
"id": item[_this.idKey],
|
3657
3616
|
"key": item[_this.idKey],
|
3617
|
+
"id": item[_this.idKey],
|
3658
3618
|
"name": item[_this.displayKey]
|
3659
|
-
},
|
3619
|
+
}, (_this$$slots10 = _this.$slots) !== null && _this$$slots10 !== void 0 && _this$$slots10.optionRender ? {
|
3660
3620
|
"default": function _default() {
|
3661
|
-
|
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, {
|
3662
3623
|
item: item
|
3663
3624
|
});
|
3664
3625
|
}
|
3665
3626
|
} : null);
|
3666
|
-
})
|
3667
|
-
};
|
3668
|
-
// 渲染内容
|
3669
|
-
var renderSelectContent = function renderSelectContent() {
|
3670
|
-
var _this$$slots16, _this$$slots16$defaul, _this$$slots17, _this$$slots18;
|
3671
|
-
return (0,external_vue_namespaceObject.createVNode)("div", {
|
3672
|
-
"ref": "contentRef",
|
3673
|
-
"class": _this.resolveClassName('select-content-wrapper')
|
3674
|
-
}, [renderAll(), _this.filterable && !_this.inputSearch && (0,external_vue_namespaceObject.createVNode)("div", {
|
3675
|
-
"class": _this.resolveClassName('select-search-wrapper')
|
3676
|
-
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Search, {
|
3677
|
-
"width": 16,
|
3678
|
-
"height": 16,
|
3679
|
-
"class": "icon-search"
|
3680
|
-
}, null), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("input", {
|
3681
|
-
"ref": "searchRef",
|
3682
|
-
"class": _this.resolveClassName('select-search-input'),
|
3683
|
-
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
3684
|
-
return _this.searchValue = $event;
|
3685
|
-
},
|
3686
|
-
"placeholder": _this.localSearchPlaceholder
|
3687
|
-
}, null), [[external_vue_namespaceObject.vModelText, _this.searchValue]])]), !_this.isShowSelectContent && (0,external_vue_namespaceObject.createVNode)("div", {
|
3688
|
-
"class": _this.resolveClassName('select-empty')
|
3689
|
-
}, [_this.searchLoading && (0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
|
3690
|
-
"class": "mr5",
|
3691
|
-
"loading": true,
|
3692
|
-
"mode": "spin",
|
3693
|
-
"size": "mini",
|
3694
|
-
"theme": "primary"
|
3695
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.curContentText])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
3696
|
-
"class": _this.resolveClassName('select-content')
|
3697
|
-
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
3698
|
-
"style": {
|
3699
|
-
maxHeight: "".concat(_this.scrollHeight, "px"),
|
3700
|
-
minHeight: "".concat(_this.minHeight, "px")
|
3701
|
-
},
|
3702
|
-
"class": _this.isEnableVirtualRender ? '' : _this.resolveClassName('select-dropdown'),
|
3703
|
-
"onScroll": _this.handleScroll
|
3704
|
-
}, [(0,external_vue_namespaceObject.createVNode)("ul", {
|
3705
|
-
"class": _this.resolveClassName('select-options')
|
3706
|
-
}, [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", {
|
3707
3628
|
"class": _this.resolveClassName('select-options-loading')
|
3708
3629
|
}, [(0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
|
3709
3630
|
"class": "spinner mr5",
|
3631
|
+
"theme": "primary",
|
3710
3632
|
"loading": true,
|
3711
3633
|
"mode": "spin",
|
3712
|
-
"size": "mini"
|
3713
|
-
|
3714
|
-
}, 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", {
|
3715
3636
|
"class": _this.resolveClassName('select-extension')
|
3716
|
-
}, [(_this$$
|
3637
|
+
}, [(_this$$slots14 = _this.$slots) === null || _this$$slots14 === void 0 ? void 0 : _this$$slots14.extension()])])]);
|
3717
3638
|
};
|
3718
3639
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
3719
3640
|
"class": selectClass
|
3720
3641
|
}, [(0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)(this.popoverConfig, {
|
3721
|
-
"
|
3722
|
-
"onAfterShow": this.
|
3723
|
-
"
|
3642
|
+
"onClickoutside": this.handleClickOutside,
|
3643
|
+
"onAfterShow": this.handlePopoverShow,
|
3644
|
+
"ref": "popoverRef"
|
3724
3645
|
}), {
|
3725
3646
|
"default": function _default() {
|
3726
3647
|
return renderSelectTrigger();
|