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
@@ -493,7 +493,7 @@ const directives_namespaceObject = directives_x({ ["clickoutside"]: () => __WEBP
|
|
493
493
|
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
494
494
|
var icon_y = x => () => x
|
495
495
|
const icon_namespaceObject = icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error, ["ExclamationCircleShape"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.ExclamationCircleShape, ["Search"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Search });
|
496
|
-
;// CONCATENATED MODULE: ../../node_modules/resize-detector/esm/index.js
|
496
|
+
;// CONCATENATED MODULE: ../../node_modules/@blueking/fork-resize-detector/esm/index.js
|
497
497
|
var raf = null;
|
498
498
|
function requestAnimationFrame (callback) {
|
499
499
|
if (!raf) {
|
@@ -559,7 +559,7 @@ function getComputedStyle (elem, prop, pseudo) {
|
|
559
559
|
}
|
560
560
|
|
561
561
|
function getRenderInfo (elem) {
|
562
|
-
if (!document.documentElement.contains(elem)) {
|
562
|
+
if (!elem || !document.documentElement.contains(elem)) {
|
563
563
|
return {
|
564
564
|
detached: true,
|
565
565
|
rendered: false
|
@@ -567,7 +567,7 @@ function getRenderInfo (elem) {
|
|
567
567
|
}
|
568
568
|
|
569
569
|
var current = elem;
|
570
|
-
while (current !== document) {
|
570
|
+
while (current && current !== document) {
|
571
571
|
if (getComputedStyle(current, 'display') === 'none') {
|
572
572
|
return {
|
573
573
|
detached: false,
|
@@ -1308,12 +1308,6 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1308
1308
|
logical: {
|
1309
1309
|
type: String,
|
1310
1310
|
"default": SearchLogical.OR
|
1311
|
-
},
|
1312
|
-
maxHeight: {
|
1313
|
-
type: Number,
|
1314
|
-
"default": function _default() {
|
1315
|
-
return 392;
|
1316
|
-
}
|
1317
1311
|
}
|
1318
1312
|
},
|
1319
1313
|
emits: ['selectItem', 'selectCondition', 'footerClick', 'update:logical'],
|
@@ -1335,11 +1329,6 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1335
1329
|
}
|
1336
1330
|
return props.footerBtns;
|
1337
1331
|
});
|
1338
|
-
var resolveContentStyles = (0,external_vue_namespaceObject.computed)(function () {
|
1339
|
-
return {
|
1340
|
-
maxHeight: "".concat(props.maxHeight, "px")
|
1341
|
-
};
|
1342
|
-
});
|
1343
1332
|
// events
|
1344
1333
|
function handleClick(item) {
|
1345
1334
|
emit('selectItem', item);
|
@@ -1409,7 +1398,6 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1409
1398
|
getSearchNode: getSearchNode,
|
1410
1399
|
localFooterBtns: localFooterBtns,
|
1411
1400
|
resolveClassName: resolveClassName,
|
1412
|
-
resolveContentStyles: resolveContentStyles,
|
1413
1401
|
t: t
|
1414
1402
|
};
|
1415
1403
|
},
|
@@ -1464,7 +1452,6 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1464
1452
|
})])]);
|
1465
1453
|
};
|
1466
1454
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
1467
|
-
"style": this.resolveContentStyles,
|
1468
1455
|
"class": this.resolveClassName('search-select-menu')
|
1469
1456
|
}, [!!((_this$conditions = this.conditions) !== null && _this$conditions !== void 0 && _this$conditions.length) && (0,external_vue_namespaceObject.createVNode)("ul", {
|
1470
1457
|
"class": "menu-header"
|
@@ -1484,6 +1471,9 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1484
1471
|
|
1485
1472
|
|
1486
1473
|
|
1474
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = input_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
1475
|
+
function input_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return input_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return input_arrayLikeToArray(o, minLen); }
|
1476
|
+
function input_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; }
|
1487
1477
|
|
1488
1478
|
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; }
|
1489
1479
|
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; }
|
@@ -1520,6 +1510,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1520
1510
|
|
1521
1511
|
|
1522
1512
|
|
1513
|
+
|
1523
1514
|
/* harmony default export */ const input = ((0,external_vue_namespaceObject.defineComponent)({
|
1524
1515
|
name: 'SearchSelectInput',
|
1525
1516
|
directives: {
|
@@ -1545,12 +1536,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1545
1536
|
type: String,
|
1546
1537
|
"default": SearchInputMode.DEFAULT
|
1547
1538
|
},
|
1548
|
-
maxHeight: {
|
1549
|
-
type: Number,
|
1550
|
-
"default": function _default() {
|
1551
|
-
return 392;
|
1552
|
-
}
|
1553
|
-
},
|
1554
1539
|
getMenuList: Function,
|
1555
1540
|
validateValues: Function,
|
1556
1541
|
valueBehavior: String
|
@@ -2074,7 +2059,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2074
2059
|
function _setMenuList() {
|
2075
2060
|
_setMenuList = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee5() {
|
2076
2061
|
var _props$data, _usingItem$value$sear, _usingItem$value$valu;
|
2077
|
-
var list, _usingItem$value14, _keyword$value3, hoverItem;
|
2062
|
+
var list, _usingItem$value14, _keyword$value3, _iterator, _step, item, isMatched, _list, filterList, _iterator2, _step2, child, _list2, _filterList, _iterator3, _step3, _child, hoverItem;
|
2078
2063
|
return regenerator_default().wrap(function _callee5$(_context5) {
|
2079
2064
|
while (1) switch (_context5.prev = _context5.next) {
|
2080
2065
|
case 0:
|
@@ -2099,51 +2084,79 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2099
2084
|
list = props.data.filter(function (item) {
|
2100
2085
|
return !item.isSelected;
|
2101
2086
|
}).slice();
|
2102
|
-
} else
|
2103
|
-
|
2104
|
-
|
2105
|
-
|
2106
|
-
|
2107
|
-
|
2108
|
-
|
2109
|
-
|
2110
|
-
|
2111
|
-
|
2112
|
-
|
2113
|
-
|
2114
|
-
|
2115
|
-
|
2116
|
-
|
2117
|
-
|
2118
|
-
|
2119
|
-
|
2120
|
-
|
2121
|
-
|
2122
|
-
|
2123
|
-
|
2124
|
-
|
2125
|
-
|
2126
|
-
|
2127
|
-
|
2128
|
-
|
2129
|
-
|
2130
|
-
|
2131
|
-
|
2132
|
-
|
2133
|
-
|
2134
|
-
|
2135
|
-
|
2136
|
-
|
2137
|
-
|
2138
|
-
|
2139
|
-
|
2140
|
-
|
2141
|
-
|
2087
|
+
} else {
|
2088
|
+
_iterator = _createForOfIteratorHelper(props.data.filter(function (item) {
|
2089
|
+
return !item.isSelected;
|
2090
|
+
}));
|
2091
|
+
try {
|
2092
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
2093
|
+
item = _step.value;
|
2094
|
+
isMatched = item.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase());
|
2095
|
+
if (isMatched) {
|
2096
|
+
list.push(item);
|
2097
|
+
filterList = [];
|
2098
|
+
_iterator2 = _createForOfIteratorHelper(item.children || []);
|
2099
|
+
try {
|
2100
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
2101
|
+
child = _step2.value;
|
2102
|
+
filterList.push(_objectSpread(_objectSpread({}, item), {}, {
|
2103
|
+
realId: item.id,
|
2104
|
+
id: (0,shared_namespaceObject.random)(10),
|
2105
|
+
value: child
|
2106
|
+
}));
|
2107
|
+
}
|
2108
|
+
} catch (err) {
|
2109
|
+
_iterator2.e(err);
|
2110
|
+
} finally {
|
2111
|
+
_iterator2.f();
|
2112
|
+
}
|
2113
|
+
if (!filterList.length && !item.onlyRecommendChildren) {
|
2114
|
+
filterList.push(_objectSpread(_objectSpread({}, item), {}, {
|
2115
|
+
realId: item.id,
|
2116
|
+
id: (0,shared_namespaceObject.random)(10),
|
2117
|
+
value: {
|
2118
|
+
id: keyword.value,
|
2119
|
+
name: keyword.value
|
2120
|
+
}
|
2121
|
+
}));
|
2122
|
+
}
|
2123
|
+
(_list = list).push.apply(_list, filterList);
|
2124
|
+
} else {
|
2125
|
+
_filterList = [];
|
2126
|
+
_iterator3 = _createForOfIteratorHelper(item.children || []);
|
2127
|
+
try {
|
2128
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
2129
|
+
_child = _step3.value;
|
2130
|
+
if (_child.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase())) {
|
2131
|
+
_filterList.push(_objectSpread(_objectSpread({}, item), {}, {
|
2132
|
+
realId: item.id,
|
2133
|
+
id: (0,shared_namespaceObject.random)(10),
|
2134
|
+
value: _child
|
2135
|
+
}));
|
2136
|
+
}
|
2137
|
+
}
|
2138
|
+
} catch (err) {
|
2139
|
+
_iterator3.e(err);
|
2140
|
+
} finally {
|
2141
|
+
_iterator3.f();
|
2142
|
+
}
|
2143
|
+
if (!_filterList.length && !item.onlyRecommendChildren) {
|
2144
|
+
_filterList.push(_objectSpread(_objectSpread({}, item), {}, {
|
2145
|
+
value: {
|
2146
|
+
id: keyword.value,
|
2147
|
+
name: keyword.value
|
2148
|
+
}
|
2149
|
+
}));
|
2150
|
+
}
|
2151
|
+
(_list2 = list).push.apply(_list2, _filterList);
|
2142
2152
|
}
|
2143
|
-
}
|
2144
|
-
|
2153
|
+
}
|
2154
|
+
} catch (err) {
|
2155
|
+
_iterator.e(err);
|
2156
|
+
} finally {
|
2157
|
+
_iterator.f();
|
2145
2158
|
}
|
2146
|
-
}
|
2159
|
+
}
|
2147
2160
|
} else if (usingItem.value.type === 'condition') {
|
2148
2161
|
list = props.conditions;
|
2149
2162
|
} else if (!((_usingItem$value$valu = usingItem.value.values) !== null && _usingItem$value$valu !== void 0 && _usingItem$value$valu.length) || usingItem.value.multiple || props.mode === SearchInputMode.EDIT) {
|
@@ -2498,7 +2511,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2498
2511
|
"keyword": _this.keyword,
|
2499
2512
|
"list": _this.menuList,
|
2500
2513
|
"logical": (_this$usingItem4 = _this.usingItem) === null || _this$usingItem4 === void 0 ? void 0 : _this$usingItem4.logical,
|
2501
|
-
"maxHeight": _this.maxHeight,
|
2502
2514
|
"multiple": !!multiple,
|
2503
2515
|
"selected": (values === null || values === void 0 ? void 0 : values.map(function (item) {
|
2504
2516
|
return item.id;
|
@@ -2572,12 +2584,6 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
2572
2584
|
type: Number,
|
2573
2585
|
"default": -1
|
2574
2586
|
},
|
2575
|
-
maxHeight: {
|
2576
|
-
type: Number,
|
2577
|
-
"default": function _default() {
|
2578
|
-
return 392;
|
2579
|
-
}
|
2580
|
-
},
|
2581
2587
|
conditions: {
|
2582
2588
|
type: Array,
|
2583
2589
|
"default": function _default() {
|
@@ -2659,7 +2665,6 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
2659
2665
|
"data": _this.data,
|
2660
2666
|
"defaultUsingItem": _this.copySelectedItem(item),
|
2661
2667
|
"getMenuList": _this.getMenuList,
|
2662
|
-
"maxHeight": _this.maxHeight,
|
2663
2668
|
"mode": SearchInputMode.EDIT,
|
2664
2669
|
"showCondition": false,
|
2665
2670
|
"validateValues": _this.validateValues,
|
@@ -2695,6 +2700,9 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
2695
2700
|
|
2696
2701
|
function search_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; }
|
2697
2702
|
function search_select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? search_select_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : search_select_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
2703
|
+
function search_select_createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = search_select_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
2704
|
+
function search_select_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return search_select_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return search_select_arrayLikeToArray(o, minLen); }
|
2705
|
+
function search_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; }
|
2698
2706
|
/*
|
2699
2707
|
* Tencent is pleased to support the open source community by making
|
2700
2708
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2732,7 +2740,6 @@ function search_select_objectSpread(e) { for (var r = 1; r < arguments.length; r
|
|
2732
2740
|
var INPUT_PADDING_WIDTH = 40;
|
2733
2741
|
var SELECTED_MARGIN_RIGHT = 6;
|
2734
2742
|
var INPUT_MIN_HEIGHT = 26;
|
2735
|
-
var MENU_ITEM_MIN_HEIGHT = 32;
|
2736
2743
|
var SearchSelectProps = {
|
2737
2744
|
data: {
|
2738
2745
|
type: Array,
|
@@ -2748,8 +2755,7 @@ var SearchSelectProps = {
|
|
2748
2755
|
},
|
2749
2756
|
maxHeight: {
|
2750
2757
|
type: Number,
|
2751
|
-
|
2752
|
-
"default": MENU_ITEM_MIN_HEIGHT * 12 + 8
|
2758
|
+
"default": 120
|
2753
2759
|
},
|
2754
2760
|
conditions: {
|
2755
2761
|
type: Array,
|
@@ -2822,13 +2828,24 @@ var SearchSelectProps = {
|
|
2822
2828
|
(0,external_vue_namespaceObject.watch)(function () {
|
2823
2829
|
return props.data;
|
2824
2830
|
}, function () {
|
2825
|
-
var _copyData$value;
|
2826
2831
|
copyData.value = JSON.parse(JSON.stringify(props.data));
|
2827
|
-
|
2828
|
-
|
2829
|
-
|
2830
|
-
|
2831
|
-
|
2832
|
+
var _iterator = search_select_createForOfIteratorHelper(copyData.value || []),
|
2833
|
+
_step;
|
2834
|
+
try {
|
2835
|
+
var _loop = function _loop() {
|
2836
|
+
var item = _step.value;
|
2837
|
+
item.isSelected = props.uniqueSelect && props.modelValue.some(function (set) {
|
2838
|
+
return set.id === item.id;
|
2839
|
+
});
|
2840
|
+
};
|
2841
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
2842
|
+
_loop();
|
2843
|
+
}
|
2844
|
+
} catch (err) {
|
2845
|
+
_iterator.e(err);
|
2846
|
+
} finally {
|
2847
|
+
_iterator.f();
|
2848
|
+
}
|
2832
2849
|
}, {
|
2833
2850
|
immediate: true
|
2834
2851
|
});
|
@@ -2837,50 +2854,84 @@ var SearchSelectProps = {
|
|
2837
2854
|
return props.modelValue;
|
2838
2855
|
}, function (v) {
|
2839
2856
|
if (!(v !== null && v !== void 0 && v.length)) {
|
2840
|
-
var _copyData$value2;
|
2841
2857
|
selectedList.value = [];
|
2842
|
-
|
2843
|
-
|
2844
|
-
|
2858
|
+
var _iterator2 = search_select_createForOfIteratorHelper(copyData.value || []),
|
2859
|
+
_step2;
|
2860
|
+
try {
|
2861
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
2862
|
+
var item = _step2.value;
|
2863
|
+
item.isSelected = false;
|
2864
|
+
}
|
2865
|
+
} catch (err) {
|
2866
|
+
_iterator2.e(err);
|
2867
|
+
} finally {
|
2868
|
+
_iterator2.f();
|
2869
|
+
}
|
2845
2870
|
return;
|
2846
2871
|
}
|
2847
2872
|
var list = [];
|
2848
|
-
|
2849
|
-
|
2850
|
-
|
2851
|
-
|
2852
|
-
|
2853
|
-
selected
|
2854
|
-
|
2855
|
-
list.push(selected);
|
2856
|
-
} else {
|
2857
|
-
var _item$values;
|
2858
|
-
var searchItem = props.data.find(function (set) {
|
2859
|
-
return set.id === item.id;
|
2873
|
+
var _iterator3 = search_select_createForOfIteratorHelper(v),
|
2874
|
+
_step3;
|
2875
|
+
try {
|
2876
|
+
var _loop2 = function _loop2() {
|
2877
|
+
var item = _step3.value;
|
2878
|
+
var selected = selectedList.value.find(function (set) {
|
2879
|
+
return set.id === item.id && set.name === item.name;
|
2860
2880
|
});
|
2861
|
-
|
2862
|
-
|
2863
|
-
|
2881
|
+
if ((selected === null || selected === void 0 ? void 0 : selected.toValueKey()) === JSON.stringify(item)) {
|
2882
|
+
selected.values = item.values || [];
|
2883
|
+
selected.logical = item.logical || SearchLogical.OR;
|
2884
|
+
list.push(selected);
|
2885
|
+
} else {
|
2886
|
+
var _item$values;
|
2887
|
+
var searchItem = props.data.find(function (set) {
|
2864
2888
|
return set.id === item.id;
|
2865
2889
|
});
|
2866
|
-
|
2867
|
-
|
2868
|
-
|
2869
|
-
|
2890
|
+
var searchType = 'default';
|
2891
|
+
if (!searchItem) {
|
2892
|
+
searchItem = props.conditions.find(function (set) {
|
2893
|
+
return set.id === item.id;
|
2894
|
+
});
|
2895
|
+
if (searchItem) {
|
2896
|
+
searchType = 'condition';
|
2897
|
+
}
|
2898
|
+
}
|
2899
|
+
if (!searchItem && !((_item$values = item.values) !== null && _item$values !== void 0 && _item$values.length)) {
|
2900
|
+
searchType = 'text';
|
2901
|
+
}
|
2902
|
+
var newSelected = new SelectedItem(searchItem || item, searchType);
|
2903
|
+
newSelected.values = item.values || [];
|
2904
|
+
newSelected.logical = item.logical || SearchLogical.OR;
|
2905
|
+
list.push(newSelected);
|
2870
2906
|
}
|
2871
|
-
|
2872
|
-
|
2873
|
-
|
2874
|
-
list.push(newSelected);
|
2907
|
+
};
|
2908
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
2909
|
+
_loop2();
|
2875
2910
|
}
|
2876
|
-
})
|
2911
|
+
} catch (err) {
|
2912
|
+
_iterator3.e(err);
|
2913
|
+
} finally {
|
2914
|
+
_iterator3.f();
|
2915
|
+
}
|
2877
2916
|
selectedList.value = list;
|
2878
2917
|
copyData.value = JSON.parse(JSON.stringify(props.data || []));
|
2879
|
-
copyData.value
|
2880
|
-
|
2881
|
-
|
2882
|
-
|
2883
|
-
|
2918
|
+
var _iterator4 = search_select_createForOfIteratorHelper(copyData.value),
|
2919
|
+
_step4;
|
2920
|
+
try {
|
2921
|
+
var _loop3 = function _loop3() {
|
2922
|
+
var item = _step4.value;
|
2923
|
+
item.isSelected = props.uniqueSelect && !!list.some(function (set) {
|
2924
|
+
return set.id === item.id;
|
2925
|
+
});
|
2926
|
+
};
|
2927
|
+
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
2928
|
+
_loop3();
|
2929
|
+
}
|
2930
|
+
} catch (err) {
|
2931
|
+
_iterator4.e(err);
|
2932
|
+
} finally {
|
2933
|
+
_iterator4.f();
|
2934
|
+
}
|
2884
2935
|
}, {
|
2885
2936
|
immediate: true,
|
2886
2937
|
deep: true
|
@@ -2985,7 +3036,9 @@ var SearchSelectProps = {
|
|
2985
3036
|
}));
|
2986
3037
|
}
|
2987
3038
|
function handleInputFocus(v) {
|
2988
|
-
|
3039
|
+
if (v) {
|
3040
|
+
overflowIndex.value = -1;
|
3041
|
+
}
|
2989
3042
|
if (v === false) {
|
2990
3043
|
var _wrapRef$value$queryS;
|
2991
3044
|
(_wrapRef$value$queryS = wrapRef.value.querySelector(".".concat(resolveClassName('search-select-container')))) === null || _wrapRef$value$queryS === void 0 || _wrapRef$value$queryS.scrollTo(0, 0);
|
@@ -3046,14 +3099,13 @@ var SearchSelectProps = {
|
|
3046
3099
|
"class": "search-prefix"
|
3047
3100
|
}, [(_this$$slots$prepend = (_this$$slots2 = this.$slots).prepend) === null || _this$$slots$prepend === void 0 ? void 0 : _this$$slots$prepend.call(_this$$slots2)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
3048
3101
|
"style": {
|
3049
|
-
|
3102
|
+
maxHeight: maxHeight
|
3050
3103
|
},
|
3051
3104
|
"class": "search-container"
|
3052
3105
|
}, [(0,external_vue_namespaceObject.createVNode)(selected, {
|
3053
3106
|
"conditions": this.localConditions,
|
3054
3107
|
"data": this.copyData,
|
3055
3108
|
"getMenuList": this.getMenuList,
|
3056
|
-
"maxHeight": this.maxHeight,
|
3057
3109
|
"overflowIndex": this.overflowIndex,
|
3058
3110
|
"selectedList": this.selectedList,
|
3059
3111
|
"validateValues": this.validateValues,
|
@@ -3068,7 +3120,6 @@ var SearchSelectProps = {
|
|
3068
3120
|
"conditions": this.localConditions,
|
3069
3121
|
"data": this.copyData,
|
3070
3122
|
"getMenuList": this.getMenuList,
|
3071
|
-
"maxHeight": this.maxHeight,
|
3072
3123
|
"placeholder": this.placeholder || this.t.pleaseSelect,
|
3073
3124
|
"showCondition": showCondition,
|
3074
3125
|
"showInputBefore": !this.selectedList.length,
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { PropType, Ref, SlotsType } from 'vue';
|
2
1
|
import { GetMenuListFunc, ICommonItem, IMenuFooterItem, ISearchItem, MenuSlotParams, SearchInputMode, SearchItemType, SearchLogical, SelectedItem, ValidateValuesFunc, ValueBehavior } from './utils';
|
2
|
+
import type { PropType, Ref, SlotsType } from 'vue';
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
4
4
|
data: {
|
5
5
|
type: PropType<ISearchItem[]>;
|
@@ -18,10 +18,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
18
18
|
type: PropType<SearchInputMode>;
|
19
19
|
default: SearchInputMode;
|
20
20
|
};
|
21
|
-
maxHeight: {
|
22
|
-
type: NumberConstructor;
|
23
|
-
default: () => number;
|
24
|
-
};
|
25
21
|
getMenuList: PropType<GetMenuListFunc>;
|
26
22
|
validateValues: PropType<ValidateValuesFunc>;
|
27
23
|
valueBehavior: PropType<ValueBehavior>;
|
@@ -100,10 +96,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
100
96
|
type: PropType<SearchInputMode>;
|
101
97
|
default: SearchInputMode;
|
102
98
|
};
|
103
|
-
maxHeight: {
|
104
|
-
type: NumberConstructor;
|
105
|
-
default: () => number;
|
106
|
-
};
|
107
99
|
getMenuList: PropType<GetMenuListFunc>;
|
108
100
|
validateValues: PropType<ValidateValuesFunc>;
|
109
101
|
valueBehavior: PropType<ValueBehavior>;
|
@@ -113,7 +105,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
113
105
|
onAdd?: (...args: any[]) => any;
|
114
106
|
onSelectKey?: (...args: any[]) => any;
|
115
107
|
}, {
|
116
|
-
maxHeight: number;
|
117
108
|
mode: SearchInputMode;
|
118
109
|
conditions: ICommonItem[];
|
119
110
|
showInputBefore: boolean;
|
@@ -32,10 +32,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
32
32
|
type: PropType<SearchLogical>;
|
33
33
|
default: SearchLogical;
|
34
34
|
};
|
35
|
-
maxHeight: {
|
36
|
-
type: NumberConstructor;
|
37
|
-
default: () => number;
|
38
|
-
};
|
39
35
|
}, {
|
40
36
|
handleClick: (item: ICommonItem) => void;
|
41
37
|
handleClickCondition: (item: ICommonItem) => void;
|
@@ -54,9 +50,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
54
50
|
disabled: boolean;
|
55
51
|
})[]>;
|
56
52
|
resolveClassName: (cls: string) => string;
|
57
|
-
resolveContentStyles: import("vue").ComputedRef<{
|
58
|
-
maxHeight: string;
|
59
|
-
}>;
|
60
53
|
t: import("vue").ComputedRef<{
|
61
54
|
pleaseSelect: string;
|
62
55
|
loading: string;
|
@@ -99,17 +92,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
99
92
|
type: PropType<SearchLogical>;
|
100
93
|
default: SearchLogical;
|
101
94
|
};
|
102
|
-
maxHeight: {
|
103
|
-
type: NumberConstructor;
|
104
|
-
default: () => number;
|
105
|
-
};
|
106
95
|
}>> & {
|
107
96
|
onSelectItem?: (...args: any[]) => any;
|
108
97
|
onSelectCondition?: (...args: any[]) => any;
|
109
98
|
onFooterClick?: (...args: any[]) => any;
|
110
99
|
"onUpdate:logical"?: (...args: any[]) => any;
|
111
100
|
}, {
|
112
|
-
maxHeight: number;
|
113
101
|
multiple: boolean;
|
114
102
|
selected: string[];
|
115
103
|
logical: SearchLogical;
|