bkui-vue 2.0.1-beta.11 → 2.0.1-beta.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/dist/index.cjs.js +142 -168
- package/dist/index.esm.js +29125 -32074
- package/dist/index.umd.js +142 -168
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +1 -0
- package/lib/affix/index.d.ts +111 -57
- package/lib/affix/index.js +24 -24
- package/lib/alert/alert.d.ts +5 -12
- package/lib/alert/alert.variable.css +1 -0
- package/lib/alert/index.d.ts +131 -93
- package/lib/alert/index.js +25 -25
- package/lib/animate-number/index.d.ts +96 -33
- package/lib/animate-number/index.js +7 -8
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/backtop.variable.css +1 -0
- package/lib/backtop/index.d.ts +118 -70
- package/lib/backtop/index.js +16 -17
- package/lib/badge/badge.variable.css +1 -0
- package/lib/badge/index.d.ts +152 -119
- package/lib/badge/index.js +20 -20
- package/lib/breadcrumb/breadcrumb.variable.css +1 -0
- package/lib/breadcrumb/index.d.ts +119 -67
- package/lib/breadcrumb/index.js +17 -17
- package/lib/button/button.css +188 -144
- package/lib/button/button.d.ts +10 -10
- package/lib/button/button.less +74 -71
- package/lib/button/button.variable.css +189 -144
- package/lib/button/index.d.ts +160 -124
- package/lib/button/index.js +26 -26
- package/lib/card/card.variable.css +1 -0
- package/lib/card/index.d.ts +157 -128
- package/lib/card/index.js +22 -20
- package/lib/cascader/cascader-panel.d.ts +6 -1
- package/lib/cascader/cascader.css +4 -0
- package/lib/cascader/cascader.d.ts +8 -4
- package/lib/cascader/cascader.less +5 -0
- package/lib/cascader/cascader.variable.css +5 -0
- package/lib/cascader/index.d.ts +355 -393
- package/lib/cascader/index.js +377 -308
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox-group.d.ts +0 -16
- package/lib/checkbox/checkbox.css +8 -0
- package/lib/checkbox/checkbox.d.ts +40 -8
- package/lib/checkbox/checkbox.less +12 -0
- package/lib/checkbox/checkbox.variable.css +9 -0
- package/lib/checkbox/index.d.ts +194 -127
- package/lib/checkbox/index.js +65 -52
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/code-diff.variable.css +1 -0
- package/lib/code-diff/index.d.ts +82 -65
- package/lib/code-diff/index.js +446 -389
- package/lib/collapse/collapse-panel.d.ts +5 -5
- package/lib/collapse/collapse.variable.css +1 -0
- package/lib/collapse/index.d.ts +180 -161
- package/lib/collapse/index.js +31 -30
- package/lib/collapse/props.d.ts +2 -2
- package/lib/collapse/utils.d.ts +2 -2
- package/lib/collapse-transition/collapse-transition.variable.css +1 -0
- package/lib/collapse-transition/index.d.ts +94 -19
- package/lib/collapse-transition/index.js +3 -4
- package/lib/color-picker/color-picker.d.ts +17 -1
- package/lib/color-picker/color-picker.variable.css +1 -0
- package/lib/color-picker/index.d.ts +168 -124
- package/lib/color-picker/index.js +93 -88
- package/lib/components.d.ts +30 -32
- package/lib/components.js +29 -31
- package/lib/config-provider/config-provider.variable.css +1 -0
- package/lib/config-provider/index.d.ts +228 -161
- package/lib/config-provider/index.js +17 -17
- package/lib/container/container.d.ts +1 -1
- package/lib/container/container.variable.css +1 -0
- package/lib/container/index.d.ts +85 -74
- package/lib/container/index.js +32 -35
- 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 +2 -2
- package/lib/date-picker/base/time-spinner.d.ts +3 -3
- package/lib/date-picker/base/year-table.d.ts +1 -1
- package/lib/date-picker/date-picker.d.ts +7 -15
- package/lib/date-picker/date-picker.variable.css +1 -0
- package/lib/date-picker/index.d.ts +356 -399
- package/lib/date-picker/index.js +343 -297
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +6 -6
- package/lib/date-picker/panel/date.d.ts +2 -2
- package/lib/date-picker/panel/time-range.d.ts +3 -12
- package/lib/date-picker/panel/time.d.ts +3 -12
- package/lib/date-picker/props.d.ts +1 -5
- package/lib/date-picker/time-picker.d.ts +7 -14
- package/lib/date-picker/utils.d.ts +1 -1
- package/lib/dialog/dialog.d.ts +47 -31
- package/lib/dialog/dialog.variable.css +1 -0
- package/lib/dialog/index.d.ts +309 -305
- package/lib/dialog/index.js +252 -249
- package/lib/dialog/props.d.ts +20 -13
- package/lib/directives/index.d.ts +4 -3
- package/lib/directives/index.js +219 -197
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +2 -4
- package/lib/divider/divider.d.ts +5 -5
- package/lib/divider/divider.variable.css +1 -0
- package/lib/divider/index.d.ts +116 -62
- package/lib/divider/index.js +4 -5
- 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.d.ts +7 -7
- package/lib/dropdown/dropdown.variable.css +1 -0
- package/lib/dropdown/index.d.ts +144 -102
- package/lib/dropdown/index.js +32 -32
- package/lib/exception/exception.d.ts +9 -9
- package/lib/exception/exception.variable.css +1 -0
- package/lib/exception/index.d.ts +107 -46
- package/lib/exception/index.js +31 -31
- package/lib/exception/typings/index.d.ts +1 -1
- package/lib/fixed-navbar/fixed-navbar.variable.css +1 -0
- package/lib/fixed-navbar/index.d.ts +113 -59
- package/lib/fixed-navbar/index.js +4 -5
- package/lib/form/form-item.d.ts +7 -19
- package/lib/form/form.d.ts +3 -3
- package/lib/form/form.variable.css +1 -0
- package/lib/form/index.d.ts +139 -94
- package/lib/form/index.js +44 -42
- package/lib/form/type.d.ts +2 -2
- package/lib/icon/angle-double-down-line.js +17 -17
- package/lib/icon/angle-double-left-line.js +17 -17
- package/lib/icon/angle-double-left.js +17 -17
- package/lib/icon/angle-double-right-line.js +17 -17
- package/lib/icon/angle-double-right.js +17 -17
- package/lib/icon/angle-double-up-line.js +17 -17
- package/lib/icon/angle-down-fill.js +17 -17
- package/lib/icon/angle-down-line.js +17 -17
- package/lib/icon/angle-down.js +17 -17
- package/lib/icon/angle-left.js +17 -17
- package/lib/icon/angle-right.js +17 -17
- package/lib/icon/angle-up-fill.js +17 -17
- package/lib/icon/angle-up.js +17 -17
- package/lib/icon/archive-fill.js +17 -17
- package/lib/icon/arrows-left.js +17 -17
- package/lib/icon/arrows-right.js +17 -17
- package/lib/icon/assistant.js +17 -17
- package/lib/icon/audio-fill.js +17 -17
- package/lib/icon/bk.js +17 -17
- package/lib/icon/circle.js +17 -17
- package/lib/icon/close-line.js +17 -17
- package/lib/icon/close.js +17 -17
- package/lib/icon/code.js +17 -17
- package/lib/icon/cog-shape.js +17 -17
- package/lib/icon/collapse-left.js +17 -17
- package/lib/icon/copy-shape.js +17 -17
- package/lib/icon/copy.js +17 -17
- package/lib/icon/data-shape.js +17 -17
- package/lib/icon/del.js +17 -17
- package/lib/icon/doc-fill.js +17 -17
- package/lib/icon/done.js +17 -17
- package/lib/icon/down-shape.js +17 -17
- package/lib/icon/down-small.js +17 -17
- package/lib/icon/edit-line.js +17 -17
- package/lib/icon/ellipsis.js +17 -17
- package/lib/icon/enlarge-line.js +17 -17
- package/lib/icon/error.js +17 -17
- package/lib/icon/excel-fill.js +17 -17
- package/lib/icon/exclamation-circle-shape.js +17 -17
- package/lib/icon/eye.js +17 -17
- package/lib/icon/filliscreen-line.js +17 -17
- package/lib/icon/fix-line.js +17 -17
- package/lib/icon/fix-shape.js +17 -17
- package/lib/icon/folder-open.js +17 -17
- package/lib/icon/folder-shape-open.js +17 -17
- package/lib/icon/folder-shape.js +17 -17
- package/lib/icon/folder.js +17 -17
- package/lib/icon/funnel.js +17 -17
- package/lib/icon/grag-fill.js +17 -17
- package/lib/icon/help-document-fill.js +17 -17
- package/lib/icon/help-fill.js +17 -17
- package/lib/icon/help.js +17 -17
- package/lib/icon/image-fill.js +17 -17
- package/lib/icon/img-error.js +17 -17
- package/lib/icon/img-placehoulder.js +17 -17
- package/lib/icon/index.d.ts +11 -11
- package/lib/icon/index.js +11 -11
- package/lib/icon/info-line.js +17 -17
- package/lib/icon/info.js +17 -17
- package/lib/icon/left-shape.js +17 -17
- package/lib/icon/left-turn-line.js +17 -17
- package/lib/icon/loading.js +17 -17
- package/lib/icon/narrow-line.js +17 -17
- package/lib/icon/original.js +17 -17
- package/lib/icon/pdf-fill.js +17 -17
- package/lib/icon/play-shape.js +17 -17
- package/lib/icon/plus.js +17 -17
- package/lib/icon/ppt-fill.js +17 -17
- package/lib/icon/qq.js +17 -17
- package/lib/icon/right-shape.js +17 -17
- package/lib/icon/right-turn-line.js +17 -17
- package/lib/icon/search.js +17 -17
- package/lib/icon/share.js +17 -17
- package/lib/icon/spinner.js +17 -17
- package/lib/icon/success.js +17 -17
- package/lib/icon/switcher-loading.js +17 -17
- package/lib/icon/text-all.js +17 -17
- package/lib/icon/text-file.js +17 -17
- package/lib/icon/text-fill.js +17 -17
- package/lib/icon/transfer.js +17 -17
- package/lib/icon/tree-application-shape.js +17 -17
- package/lib/icon/unfull-screen.js +17 -17
- package/lib/icon/unvisible.js +17 -17
- package/lib/icon/up-shape.js +17 -17
- package/lib/icon/upload.js +17 -17
- package/lib/icon/video-fill.js +17 -17
- package/lib/icon/warn.js +17 -17
- package/lib/icon/weixin-pro.js +17 -17
- package/lib/icon/weixin.js +17 -17
- package/lib/image/image-viewer.d.ts +1 -1
- package/lib/image/image-viewer.variable.css +1 -0
- package/lib/image/image.variable.css +1 -0
- package/lib/image/index.d.ts +149 -113
- package/lib/image/index.js +46 -48
- package/lib/index.d.ts +9 -3
- package/lib/index.js +5 -29
- package/lib/info-box/index.js +250 -250
- package/lib/info-box/info-box.d.ts +15 -15
- package/lib/info-box/info-box.variable.css +1 -0
- package/lib/input/index.d.ts +299 -332
- package/lib/input/index.js +110 -561
- package/lib/input/input.css +23 -1
- package/lib/input/input.d.ts +15 -15
- package/lib/input/input.less +30 -1
- package/lib/input/input.variable.css +24 -1
- package/lib/link/index.d.ts +127 -78
- package/lib/link/index.js +5 -5
- package/lib/link/link.d.ts +5 -5
- package/lib/link/link.variable.css +1 -0
- package/lib/loading/index.d.ts +162 -135
- package/lib/loading/index.js +43 -40
- package/lib/loading/loading.d.ts +9 -9
- package/lib/loading/loading.variable.css +1 -0
- package/lib/locale/index.d.ts +1 -1
- package/lib/menu/index.d.ts +131 -51
- package/lib/menu/index.js +46 -27
- package/lib/menu/menu-group.d.ts +9 -0
- package/lib/menu/menu-item.d.ts +9 -0
- package/lib/menu/menu.css +29 -17
- package/lib/menu/menu.less +33 -18
- package/lib/menu/menu.variable.css +30 -17
- package/lib/menu/submenu.d.ts +1 -0
- package/lib/menu/submenu.variable.css +1 -0
- package/lib/menu/utils.d.ts +3 -3
- package/lib/message/index.js +43 -42
- package/lib/message/message.css +2 -1
- package/lib/message/message.less +3 -2
- package/lib/message/message.variable.css +3 -1
- package/lib/message/messageConstructor.d.ts +21 -21
- package/lib/modal/index.d.ts +214 -159
- package/lib/modal/index.js +68 -47
- package/lib/modal/modal.d.ts +24 -8
- package/lib/modal/modal.variable.css +1 -0
- package/lib/modal/props.mixin.d.ts +10 -3
- package/lib/navigation/index.d.ts +188 -152
- package/lib/navigation/index.js +27 -29
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/navigation/navigation.variable.css +1 -0
- package/lib/notify/index.js +25 -24
- package/lib/notify/notify.variable.css +1 -0
- package/lib/notify/notifyConstructor.d.ts +5 -5
- package/lib/overflow-title/components/overflow-title.d.ts +45 -16
- package/lib/overflow-title/index.d.ts +298 -328
- package/lib/overflow-title/index.js +85 -28
- package/lib/overflow-title/overflow-title.css +3 -0
- package/lib/overflow-title/overflow-title.less +4 -0
- package/lib/overflow-title/overflow-title.variable.css +3 -0
- package/lib/overflow-title/props.d.ts +36 -21
- package/lib/pagination/index.d.ts +198 -203
- package/lib/pagination/index.js +128 -68
- package/lib/pagination/pagination.css +8 -8
- package/lib/pagination/pagination.d.ts +0 -13
- package/lib/pagination/pagination.less +14 -13
- package/lib/pagination/pagination.variable.css +9 -8
- 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 +311 -304
- package/lib/pop-confirm/index.d.ts +162 -148
- package/lib/pop-confirm/index.js +40 -35
- package/lib/pop-confirm/pop-confirm.css +3 -1
- package/lib/pop-confirm/pop-confirm.d.ts +10 -20
- package/lib/pop-confirm/pop-confirm.less +3 -1
- package/lib/pop-confirm/pop-confirm.variable.css +4 -1
- package/lib/pop-confirm/props.d.ts +8 -11
- package/lib/popover/const.d.ts +3 -3
- package/lib/popover/content.d.ts +6 -3
- package/lib/popover/index.d.ts +411 -380
- package/lib/popover/index.js +311 -304
- package/lib/popover/plugin-popover.d.ts +1 -1
- package/lib/popover/popover.d.ts +51 -8
- package/lib/popover/popover.variable.css +1 -0
- package/lib/popover/props.d.ts +28 -4
- package/lib/popover/use-floating.d.ts +2 -2
- package/lib/popover/use-popover-init.d.ts +2 -1
- package/lib/popover/utils.d.ts +2 -0
- package/lib/popover2/index.d.ts +83 -8
- package/lib/popover2/index.js +2 -2
- package/lib/preset.d.ts +0 -1
- package/lib/preset.js +0 -1
- package/lib/process/index.d.ts +137 -93
- package/lib/process/index.js +229 -229
- package/lib/process/process.variable.css +1 -0
- package/lib/progress/index.d.ts +192 -183
- package/lib/progress/index.js +31 -33
- package/lib/progress/progress.d.ts +9 -9
- package/lib/progress/progress.variable.css +1 -0
- package/lib/radio/index.d.ts +155 -106
- package/lib/radio/index.js +76 -63
- package/lib/radio/radio-button.d.ts +7 -7
- package/lib/radio/radio-group.d.ts +7 -7
- package/lib/radio/radio.d.ts +7 -7
- package/lib/radio/radio.variable.css +1 -0
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.d.ts +112 -55
- package/lib/rate/index.js +28 -27
- package/lib/rate/rate.variable.css +1 -0
- package/lib/resize-layout/index.d.ts +204 -157
- package/lib/resize-layout/index.js +54 -34
- package/lib/resize-layout/resize-layout.d.ts +18 -7
- package/lib/resize-layout/resize-layout.variable.css +1 -0
- package/lib/scrollbar/css/scrollbar.css +109 -0
- package/lib/scrollbar/css/scrollbar.less +139 -0
- package/lib/scrollbar/{scrollbar.variable.css → css/scrollbar.variable.css} +96 -61
- package/lib/scrollbar/handlers/click-rail.d.ts +2 -0
- package/lib/scrollbar/handlers/drag-thumb.d.ts +1 -0
- package/lib/scrollbar/handlers/keyboard.d.ts +2 -0
- package/lib/scrollbar/handlers/mouse-wheel.d.ts +2 -0
- package/lib/scrollbar/handlers/touch.d.ts +4 -0
- package/lib/scrollbar/helper/class-names.d.ts +21 -0
- package/lib/scrollbar/helper/css.d.ts +3 -0
- package/lib/scrollbar/helper/dom.d.ts +4 -0
- package/lib/scrollbar/helper/event-manager.d.ts +20 -0
- package/lib/scrollbar/helper/util.d.ts +11 -0
- package/lib/scrollbar/index.d.ts +133 -13
- package/lib/scrollbar/index.js +1380 -18482
- package/lib/scrollbar/process-scroll-diff.d.ts +1 -0
- package/lib/scrollbar/update-geometry.d.ts +8 -0
- package/lib/search-select/index.d.ts +946 -701
- package/lib/search-select/index.js +644 -486
- package/lib/search-select/input.d.ts +20 -8
- package/lib/search-select/menu.d.ts +13 -1
- package/lib/search-select/search-select.css +45 -47
- package/lib/search-select/search-select.d.ts +207 -160
- package/lib/search-select/search-select.less +41 -41
- package/lib/search-select/search-select.variable.css +46 -47
- package/lib/search-select/selected.d.ts +209 -127
- package/lib/search-select/utils.d.ts +6 -6
- package/lib/select/common.d.ts +4 -4
- package/lib/select/index.d.ts +1457 -1384
- package/lib/select/index.js +603 -477
- package/lib/select/option.d.ts +6 -6
- package/lib/select/select.css +9 -4
- package/lib/select/select.d.ts +285 -148
- package/lib/select/select.less +11 -4
- package/lib/select/select.variable.css +10 -4
- package/lib/select/selectTagInput.d.ts +9 -8
- package/lib/select/type.d.ts +10 -11
- package/lib/shared/frame-throttle.d.ts +15 -0
- package/lib/shared/index.d.ts +2 -1
- package/lib/shared/index.js +166 -101
- package/lib/shared/popover.d.ts +3 -3
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/vue-types.d.ts +50 -50
- package/lib/shared/z-index-manager.d.ts +6 -6
- package/lib/sideslider/index.d.ts +220 -182
- package/lib/sideslider/index.js +239 -237
- package/lib/sideslider/sideslider.css +7 -8
- package/lib/sideslider/sideslider.d.ts +24 -8
- package/lib/sideslider/sideslider.less +7 -8
- package/lib/sideslider/sideslider.variable.css +8 -8
- package/lib/slider/index.d.ts +210 -214
- package/lib/slider/index.js +246 -249
- package/lib/slider/slider.variable.css +1 -0
- package/lib/steps/index.d.ts +155 -131
- package/lib/steps/index.js +234 -234
- package/lib/steps/steps.d.ts +8 -18
- package/lib/steps/steps.variable.css +1 -0
- package/lib/styles/index.d.ts +1 -0
- package/lib/styles/mixins/animate.variable.css +1 -0
- package/lib/styles/mixins/popper.variable.css +1 -0
- package/lib/styles/mixins/scroll.variable.css +1 -0
- package/lib/styles/reset.variable.css +1 -0
- package/lib/styles/themes/themes.less +1 -0
- package/lib/swiper/index.d.ts +127 -81
- package/lib/swiper/index.js +23 -23
- package/lib/swiper/swiper.variable.css +1 -0
- package/lib/switcher/index.d.ts +179 -157
- package/lib/switcher/index.js +24 -22
- package/lib/switcher/switcher.d.ts +9 -9
- package/lib/switcher/switcher.variable.css +1 -0
- package/lib/tab/index.d.ts +220 -258
- package/lib/tab/index.js +79 -69
- package/lib/tab/props.d.ts +27 -52
- package/lib/tab/tab-nav.d.ts +26 -66
- package/lib/tab/tab-panel.d.ts +27 -5
- package/lib/tab/tab.css +64 -0
- package/lib/tab/tab.d.ts +10 -54
- package/lib/tab/tab.less +91 -4
- package/lib/tab/tab.variable.css +65 -0
- package/lib/table/components/ghost-body.d.ts +2 -0
- package/lib/table/components/table-cell.d.ts +22 -0
- package/lib/table/components/table-column.d.ts +24 -127
- package/lib/table/const.d.ts +23 -10
- package/lib/table/events.d.ts +16 -112
- package/lib/table/hooks/use-cell.d.ts +20 -0
- package/lib/table/hooks/use-checkbox-tooltip.d.ts +11 -0
- package/lib/table/hooks/use-column-resize.d.ts +7 -0
- package/lib/table/hooks/use-column-template.d.ts +5 -0
- package/lib/table/hooks/use-columns.d.ts +69 -0
- package/lib/table/{plugins → hooks}/use-draggable.d.ts +2 -2
- package/lib/table/hooks/use-fixed-column.d.ts +10 -0
- package/lib/table/hooks/use-head.d.ts +16 -0
- package/lib/table/hooks/use-layout.d.ts +25 -0
- package/lib/table/hooks/use-pagination.d.ts +16 -0
- package/lib/table/hooks/use-render.d.ts +21 -0
- package/lib/table/hooks/use-rows.d.ts +30 -0
- package/lib/table/hooks/use-settings.d.ts +138 -0
- package/lib/table/{plugins → hooks}/use-shift-key.d.ts +4 -2
- package/lib/table/index.d.ts +412 -1029
- package/lib/table/index.js +4698 -20825
- package/lib/table/plugins/head-filter.css +5 -0
- package/lib/table/plugins/head-filter.d.ts +2 -1
- package/lib/table/plugins/head-filter.less +4 -0
- package/lib/table/plugins/head-filter.variable.css +6 -0
- package/lib/table/plugins/head-sort.variable.css +1 -0
- package/lib/table/plugins/settings.css +11 -1
- package/lib/table/plugins/settings.less +12 -1
- package/lib/table/plugins/settings.variable.css +12 -1
- package/lib/table/props.d.ts +127 -62
- package/lib/table/table.css +503 -302
- package/lib/table/table.d.ts +51 -185
- package/lib/table/table.less +244 -112
- package/lib/table/table.variable.css +504 -302
- package/lib/table/utils.d.ts +44 -21
- package/lib/table-column/index.d.ts +156 -369
- package/lib/table-column/index.js +143 -62
- package/lib/tag/index.d.ts +147 -100
- package/lib/tag/index.js +21 -22
- package/lib/tag/tag.css +1 -1
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag/tag.less +1 -1
- package/lib/tag/tag.variable.css +2 -1
- package/lib/tag-input/common.d.ts +2 -2
- package/lib/tag-input/index.d.ts +595 -712
- package/lib/tag-input/index.js +150 -17391
- package/lib/tag-input/tag-input.css +12 -9
- package/lib/tag-input/tag-input.d.ts +60 -24
- package/lib/tag-input/tag-input.less +13 -9
- package/lib/tag-input/tag-input.variable.css +13 -9
- package/lib/tag-input/tag-props.d.ts +25 -2
- package/lib/time-picker/index.d.ts +391 -455
- package/lib/time-picker/time-picker.variable.css +1 -0
- package/lib/timeline/index.d.ts +131 -64
- package/lib/timeline/index.js +8 -8
- package/lib/timeline/timeline.variable.css +1 -0
- package/lib/transfer/const.d.ts +2 -2
- package/lib/transfer/index.d.ts +206 -191
- package/lib/transfer/index.js +3 -5
- package/lib/transfer/transfer.variable.css +1 -0
- package/lib/tree/constant.d.ts +22 -20
- package/lib/tree/index.d.ts +329 -357
- package/lib/tree/index.js +176 -17389
- package/lib/tree/props.d.ts +18 -11
- package/lib/tree/tree.css +103 -69
- package/lib/tree/tree.d.ts +16 -10
- package/lib/tree/tree.variable.css +104 -69
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-node-action.d.ts +10 -9
- package/lib/tree/use-node-async.d.ts +2 -1
- package/lib/tree/use-node-attribute.d.ts +42 -34
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +8 -5
- package/lib/tree/util.d.ts +21 -21
- package/lib/upload/index.d.ts +294 -286
- package/lib/upload/index.js +398 -316
- package/lib/upload/props.d.ts +11 -2
- package/lib/upload/upload-list.d.ts +11 -1
- package/lib/upload/upload-trigger.d.ts +11 -1
- package/lib/upload/upload.d.ts +25 -4
- package/lib/upload/upload.type.d.ts +12 -6
- package/lib/upload/upload.variable.css +1 -0
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/lib/virtual-render/index.d.ts +247 -373
- package/lib/virtual-render/index.js +223 -162
- package/lib/virtual-render/props.d.ts +2 -9
- package/lib/virtual-render/use-fix-top.d.ts +1 -1
- package/lib/virtual-render/use-scrollbar.d.ts +4 -17
- package/lib/virtual-render/v-virtual-render.d.ts +7 -1
- package/lib/virtual-render/virtual-render.css +96 -70
- package/lib/virtual-render/virtual-render.d.ts +7 -23
- package/lib/virtual-render/virtual-render.less +2 -11
- package/lib/virtual-render/virtual-render.variable.css +96 -69
- package/lib/volar.components.d.ts +2 -0
- package/package.json +17 -55
- package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +0 -2
- package/lib/scrollbar/scrollbar-core/helpers.d.ts +0 -5
- package/lib/scrollbar/scrollbar-core/index.d.ts +0 -241
- package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +0 -5
- package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +0 -1
- package/lib/scrollbar/scrollbar.css +0 -75
- package/lib/scrollbar/scrollbar.less +0 -94
- package/lib/table/plugins/col-group.d.ts +0 -38
- package/lib/table/plugins/settings.d.ts +0 -16
- package/lib/table/plugins/use-active-columns.d.ts +0 -16
- package/lib/table/plugins/use-column-resize.d.ts +0 -35
- package/lib/table/plugins/use-column-template.d.ts +0 -7
- package/lib/table/plugins/use-fixed-column.d.ts +0 -27
- package/lib/table/plugins/use-head-cell.d.ts +0 -7
- package/lib/table/plugins/use-pagination.d.ts +0 -23
- package/lib/table/use-attributes.d.ts +0 -62
- package/lib/table/use-column.d.ts +0 -275
- package/lib/table/use-common.d.ts +0 -1679
- package/lib/table/use-render.d.ts +0 -11
- /package/lib/table/{plugins → components}/body-empty.d.ts +0 -0
- /package/lib/table/{plugins → hooks}/use-observer-resize.d.ts +0 -0
- /package/lib/table/{plugins → hooks}/use-scroll-loading.d.ts +0 -0
@@ -20,304 +20,304 @@ var _typeof = (__webpack_require__(7425)["default"]);
|
|
20
20
|
function _regeneratorRuntime() {
|
21
21
|
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
22
22
|
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
23
|
-
return
|
23
|
+
return exports;
|
24
24
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
25
|
-
var
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
t[e] = r.value;
|
25
|
+
var exports = {},
|
26
|
+
Op = Object.prototype,
|
27
|
+
hasOwn = Op.hasOwnProperty,
|
28
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
29
|
+
obj[key] = desc.value;
|
31
30
|
},
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
function define(
|
37
|
-
return Object.defineProperty(
|
38
|
-
value:
|
31
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
32
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
33
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
34
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
35
|
+
function define(obj, key, value) {
|
36
|
+
return Object.defineProperty(obj, key, {
|
37
|
+
value: value,
|
39
38
|
enumerable: !0,
|
40
39
|
configurable: !0,
|
41
40
|
writable: !0
|
42
|
-
}),
|
41
|
+
}), obj[key];
|
43
42
|
}
|
44
43
|
try {
|
45
44
|
define({}, "");
|
46
|
-
} catch (
|
47
|
-
define = function define(
|
48
|
-
return
|
45
|
+
} catch (err) {
|
46
|
+
define = function define(obj, key, value) {
|
47
|
+
return obj[key] = value;
|
49
48
|
};
|
50
49
|
}
|
51
|
-
function wrap(
|
52
|
-
var
|
53
|
-
|
54
|
-
|
55
|
-
return
|
56
|
-
value: makeInvokeMethod(
|
57
|
-
}),
|
50
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
51
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
52
|
+
generator = Object.create(protoGenerator.prototype),
|
53
|
+
context = new Context(tryLocsList || []);
|
54
|
+
return defineProperty(generator, "_invoke", {
|
55
|
+
value: makeInvokeMethod(innerFn, self, context)
|
56
|
+
}), generator;
|
58
57
|
}
|
59
|
-
function tryCatch(
|
58
|
+
function tryCatch(fn, obj, arg) {
|
60
59
|
try {
|
61
60
|
return {
|
62
61
|
type: "normal",
|
63
|
-
arg:
|
62
|
+
arg: fn.call(obj, arg)
|
64
63
|
};
|
65
|
-
} catch (
|
64
|
+
} catch (err) {
|
66
65
|
return {
|
67
66
|
type: "throw",
|
68
|
-
arg:
|
67
|
+
arg: err
|
69
68
|
};
|
70
69
|
}
|
71
70
|
}
|
72
|
-
|
73
|
-
var
|
74
|
-
l = "suspendedYield",
|
75
|
-
f = "executing",
|
76
|
-
s = "completed",
|
77
|
-
y = {};
|
71
|
+
exports.wrap = wrap;
|
72
|
+
var ContinueSentinel = {};
|
78
73
|
function Generator() {}
|
79
74
|
function GeneratorFunction() {}
|
80
75
|
function GeneratorFunctionPrototype() {}
|
81
|
-
var
|
82
|
-
define(
|
76
|
+
var IteratorPrototype = {};
|
77
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
83
78
|
return this;
|
84
79
|
});
|
85
|
-
var
|
86
|
-
|
87
|
-
|
88
|
-
var
|
89
|
-
function defineIteratorMethods(
|
90
|
-
["next", "throw", "return"].forEach(function (
|
91
|
-
define(
|
92
|
-
return this._invoke(
|
80
|
+
var getProto = Object.getPrototypeOf,
|
81
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
82
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
83
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
84
|
+
function defineIteratorMethods(prototype) {
|
85
|
+
["next", "throw", "return"].forEach(function (method) {
|
86
|
+
define(prototype, method, function (arg) {
|
87
|
+
return this._invoke(method, arg);
|
93
88
|
});
|
94
89
|
});
|
95
90
|
}
|
96
|
-
function AsyncIterator(
|
97
|
-
function invoke(
|
98
|
-
var
|
99
|
-
if ("throw" !==
|
100
|
-
var
|
101
|
-
|
102
|
-
return
|
103
|
-
invoke("next",
|
104
|
-
}, function (
|
105
|
-
invoke("throw",
|
106
|
-
}) :
|
107
|
-
|
108
|
-
}, function (
|
109
|
-
return invoke("throw",
|
91
|
+
function AsyncIterator(generator, PromiseImpl) {
|
92
|
+
function invoke(method, arg, resolve, reject) {
|
93
|
+
var record = tryCatch(generator[method], generator, arg);
|
94
|
+
if ("throw" !== record.type) {
|
95
|
+
var result = record.arg,
|
96
|
+
value = result.value;
|
97
|
+
return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
98
|
+
invoke("next", value, resolve, reject);
|
99
|
+
}, function (err) {
|
100
|
+
invoke("throw", err, resolve, reject);
|
101
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
102
|
+
result.value = unwrapped, resolve(result);
|
103
|
+
}, function (error) {
|
104
|
+
return invoke("throw", error, resolve, reject);
|
110
105
|
});
|
111
106
|
}
|
112
|
-
|
107
|
+
reject(record.arg);
|
113
108
|
}
|
114
|
-
var
|
115
|
-
|
116
|
-
value: function value(
|
109
|
+
var previousPromise;
|
110
|
+
defineProperty(this, "_invoke", {
|
111
|
+
value: function value(method, arg) {
|
117
112
|
function callInvokeWithMethodAndArg() {
|
118
|
-
return new
|
119
|
-
invoke(
|
113
|
+
return new PromiseImpl(function (resolve, reject) {
|
114
|
+
invoke(method, arg, resolve, reject);
|
120
115
|
});
|
121
116
|
}
|
122
|
-
return
|
117
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
123
118
|
}
|
124
119
|
});
|
125
120
|
}
|
126
|
-
function makeInvokeMethod(
|
127
|
-
var
|
128
|
-
return function (
|
129
|
-
if (
|
130
|
-
if (
|
131
|
-
if ("throw" ===
|
132
|
-
return
|
133
|
-
value: t,
|
134
|
-
done: !0
|
135
|
-
};
|
121
|
+
function makeInvokeMethod(innerFn, self, context) {
|
122
|
+
var state = "suspendedStart";
|
123
|
+
return function (method, arg) {
|
124
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
125
|
+
if ("completed" === state) {
|
126
|
+
if ("throw" === method) throw arg;
|
127
|
+
return doneResult();
|
136
128
|
}
|
137
|
-
for (
|
138
|
-
var
|
139
|
-
if (
|
140
|
-
var
|
141
|
-
if (
|
142
|
-
if (
|
143
|
-
return
|
129
|
+
for (context.method = method, context.arg = arg;;) {
|
130
|
+
var delegate = context.delegate;
|
131
|
+
if (delegate) {
|
132
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
133
|
+
if (delegateResult) {
|
134
|
+
if (delegateResult === ContinueSentinel) continue;
|
135
|
+
return delegateResult;
|
144
136
|
}
|
145
137
|
}
|
146
|
-
if ("next" ===
|
147
|
-
if (
|
148
|
-
|
149
|
-
} else "return" ===
|
150
|
-
|
151
|
-
var
|
152
|
-
if ("normal" ===
|
153
|
-
if (
|
138
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
139
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
140
|
+
context.dispatchException(context.arg);
|
141
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
142
|
+
state = "executing";
|
143
|
+
var record = tryCatch(innerFn, self, context);
|
144
|
+
if ("normal" === record.type) {
|
145
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
154
146
|
return {
|
155
|
-
value:
|
156
|
-
done:
|
147
|
+
value: record.arg,
|
148
|
+
done: context.done
|
157
149
|
};
|
158
150
|
}
|
159
|
-
"throw" ===
|
151
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
160
152
|
}
|
161
153
|
};
|
162
154
|
}
|
163
|
-
function maybeInvokeDelegate(
|
164
|
-
var
|
165
|
-
|
166
|
-
if (
|
167
|
-
var
|
168
|
-
if ("throw" ===
|
169
|
-
var
|
170
|
-
return
|
155
|
+
function maybeInvokeDelegate(delegate, context) {
|
156
|
+
var methodName = context.method,
|
157
|
+
method = delegate.iterator[methodName];
|
158
|
+
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
159
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
160
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
161
|
+
var info = record.arg;
|
162
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
171
163
|
}
|
172
|
-
function pushTryEntry(
|
173
|
-
var
|
174
|
-
tryLoc:
|
164
|
+
function pushTryEntry(locs) {
|
165
|
+
var entry = {
|
166
|
+
tryLoc: locs[0]
|
175
167
|
};
|
176
|
-
1 in
|
168
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
177
169
|
}
|
178
|
-
function resetTryEntry(
|
179
|
-
var
|
180
|
-
|
170
|
+
function resetTryEntry(entry) {
|
171
|
+
var record = entry.completion || {};
|
172
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
181
173
|
}
|
182
|
-
function Context(
|
174
|
+
function Context(tryLocsList) {
|
183
175
|
this.tryEntries = [{
|
184
176
|
tryLoc: "root"
|
185
|
-
}],
|
177
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
186
178
|
}
|
187
|
-
function values(
|
188
|
-
if (
|
189
|
-
var
|
190
|
-
if (
|
191
|
-
if ("function" == typeof
|
192
|
-
if (!isNaN(
|
193
|
-
var
|
194
|
-
|
195
|
-
for (; ++
|
196
|
-
return next.value =
|
179
|
+
function values(iterable) {
|
180
|
+
if (iterable) {
|
181
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
182
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
183
|
+
if ("function" == typeof iterable.next) return iterable;
|
184
|
+
if (!isNaN(iterable.length)) {
|
185
|
+
var i = -1,
|
186
|
+
next = function next() {
|
187
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
188
|
+
return next.value = undefined, next.done = !0, next;
|
197
189
|
};
|
198
|
-
return
|
190
|
+
return next.next = next;
|
199
191
|
}
|
200
192
|
}
|
201
|
-
|
193
|
+
return {
|
194
|
+
next: doneResult
|
195
|
+
};
|
202
196
|
}
|
203
|
-
|
197
|
+
function doneResult() {
|
198
|
+
return {
|
199
|
+
value: undefined,
|
200
|
+
done: !0
|
201
|
+
};
|
202
|
+
}
|
203
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
204
204
|
value: GeneratorFunctionPrototype,
|
205
205
|
configurable: !0
|
206
|
-
}),
|
206
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
207
207
|
value: GeneratorFunction,
|
208
208
|
configurable: !0
|
209
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
210
|
-
var
|
211
|
-
return !!
|
212
|
-
},
|
213
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
214
|
-
},
|
209
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
210
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
211
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
212
|
+
}, exports.mark = function (genFun) {
|
213
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
214
|
+
}, exports.awrap = function (arg) {
|
215
215
|
return {
|
216
|
-
__await:
|
216
|
+
__await: arg
|
217
217
|
};
|
218
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
218
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
219
219
|
return this;
|
220
|
-
}),
|
221
|
-
void 0 ===
|
222
|
-
var
|
223
|
-
return
|
224
|
-
return
|
220
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
221
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
222
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
223
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
224
|
+
return result.done ? result.value : iter.next();
|
225
225
|
});
|
226
|
-
}, defineIteratorMethods(
|
226
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
227
227
|
return this;
|
228
|
-
}), define(
|
228
|
+
}), define(Gp, "toString", function () {
|
229
229
|
return "[object Generator]";
|
230
|
-
}),
|
231
|
-
var
|
232
|
-
|
233
|
-
for (var
|
234
|
-
return
|
235
|
-
for (;
|
236
|
-
var
|
237
|
-
if (
|
230
|
+
}), exports.keys = function (val) {
|
231
|
+
var object = Object(val),
|
232
|
+
keys = [];
|
233
|
+
for (var key in object) keys.push(key);
|
234
|
+
return keys.reverse(), function next() {
|
235
|
+
for (; keys.length;) {
|
236
|
+
var key = keys.pop();
|
237
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
238
238
|
}
|
239
239
|
return next.done = !0, next;
|
240
240
|
};
|
241
|
-
},
|
241
|
+
}, exports.values = values, Context.prototype = {
|
242
242
|
constructor: Context,
|
243
|
-
reset: function reset(
|
244
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
243
|
+
reset: function reset(skipTempReset) {
|
244
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
245
245
|
},
|
246
246
|
stop: function stop() {
|
247
247
|
this.done = !0;
|
248
|
-
var
|
249
|
-
if ("throw" ===
|
248
|
+
var rootRecord = this.tryEntries[0].completion;
|
249
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
250
250
|
return this.rval;
|
251
251
|
},
|
252
|
-
dispatchException: function dispatchException(
|
253
|
-
if (this.done) throw
|
254
|
-
var
|
255
|
-
function handle(
|
256
|
-
return
|
257
|
-
}
|
258
|
-
for (var
|
259
|
-
var
|
260
|
-
|
261
|
-
if ("root" ===
|
262
|
-
if (
|
263
|
-
var
|
264
|
-
|
265
|
-
if (
|
266
|
-
if (this.prev <
|
267
|
-
if (this.prev <
|
268
|
-
} else if (
|
269
|
-
if (this.prev <
|
252
|
+
dispatchException: function dispatchException(exception) {
|
253
|
+
if (this.done) throw exception;
|
254
|
+
var context = this;
|
255
|
+
function handle(loc, caught) {
|
256
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
257
|
+
}
|
258
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
259
|
+
var entry = this.tryEntries[i],
|
260
|
+
record = entry.completion;
|
261
|
+
if ("root" === entry.tryLoc) return handle("end");
|
262
|
+
if (entry.tryLoc <= this.prev) {
|
263
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
264
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
265
|
+
if (hasCatch && hasFinally) {
|
266
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
267
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
268
|
+
} else if (hasCatch) {
|
269
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
270
270
|
} else {
|
271
|
-
if (!
|
272
|
-
if (this.prev <
|
271
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
272
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
273
273
|
}
|
274
274
|
}
|
275
275
|
}
|
276
276
|
},
|
277
|
-
abrupt: function abrupt(
|
278
|
-
for (var
|
279
|
-
var
|
280
|
-
if (
|
281
|
-
var
|
277
|
+
abrupt: function abrupt(type, arg) {
|
278
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
279
|
+
var entry = this.tryEntries[i];
|
280
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
281
|
+
var finallyEntry = entry;
|
282
282
|
break;
|
283
283
|
}
|
284
284
|
}
|
285
|
-
|
286
|
-
var
|
287
|
-
return
|
285
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
286
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
287
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
288
288
|
},
|
289
|
-
complete: function complete(
|
290
|
-
if ("throw" ===
|
291
|
-
return "break" ===
|
289
|
+
complete: function complete(record, afterLoc) {
|
290
|
+
if ("throw" === record.type) throw record.arg;
|
291
|
+
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
292
292
|
},
|
293
|
-
finish: function finish(
|
294
|
-
for (var
|
295
|
-
var
|
296
|
-
if (
|
293
|
+
finish: function finish(finallyLoc) {
|
294
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
295
|
+
var entry = this.tryEntries[i];
|
296
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
297
297
|
}
|
298
298
|
},
|
299
|
-
"catch": function _catch(
|
300
|
-
for (var
|
301
|
-
var
|
302
|
-
if (
|
303
|
-
var
|
304
|
-
if ("throw" ===
|
305
|
-
var
|
306
|
-
resetTryEntry(
|
299
|
+
"catch": function _catch(tryLoc) {
|
300
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
301
|
+
var entry = this.tryEntries[i];
|
302
|
+
if (entry.tryLoc === tryLoc) {
|
303
|
+
var record = entry.completion;
|
304
|
+
if ("throw" === record.type) {
|
305
|
+
var thrown = record.arg;
|
306
|
+
resetTryEntry(entry);
|
307
307
|
}
|
308
|
-
return
|
308
|
+
return thrown;
|
309
309
|
}
|
310
310
|
}
|
311
311
|
throw new Error("illegal catch attempt");
|
312
312
|
},
|
313
|
-
delegateYield: function delegateYield(
|
313
|
+
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
314
314
|
return this.delegate = {
|
315
|
-
iterator: values(
|
316
|
-
resultName:
|
317
|
-
nextLoc:
|
318
|
-
}, "next" === this.method && (this.arg =
|
315
|
+
iterator: values(iterable),
|
316
|
+
resultName: resultName,
|
317
|
+
nextLoc: nextLoc
|
318
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
319
319
|
}
|
320
|
-
},
|
320
|
+
}, exports;
|
321
321
|
}
|
322
322
|
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
323
323
|
|
@@ -326,14 +326,14 @@ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.e
|
|
326
326
|
/***/ 7425:
|
327
327
|
/***/ ((module) => {
|
328
328
|
|
329
|
-
function _typeof(
|
329
|
+
function _typeof(obj) {
|
330
330
|
"@babel/helpers - typeof";
|
331
331
|
|
332
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
333
|
-
return typeof
|
334
|
-
} : function (
|
335
|
-
return
|
336
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(
|
332
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
333
|
+
return typeof obj;
|
334
|
+
} : function (obj) {
|
335
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
336
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
337
337
|
}
|
338
338
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
339
339
|
|
@@ -433,38 +433,38 @@ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
433
433
|
var y = x => () => x
|
434
434
|
const shared_namespaceObject = x({ ["debounce"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.debounce, ["random"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.random, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
435
435
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
436
|
-
function _typeof(
|
436
|
+
function _typeof(obj) {
|
437
437
|
"@babel/helpers - typeof";
|
438
438
|
|
439
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
440
|
-
return typeof
|
441
|
-
} : function (
|
442
|
-
return
|
443
|
-
}, _typeof(
|
439
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
440
|
+
return typeof obj;
|
441
|
+
} : function (obj) {
|
442
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
443
|
+
}, _typeof(obj);
|
444
444
|
}
|
445
445
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
446
446
|
|
447
|
-
function
|
448
|
-
if ("object"
|
449
|
-
var
|
450
|
-
if (
|
451
|
-
var
|
452
|
-
if ("object"
|
447
|
+
function _toPrimitive(input, hint) {
|
448
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
449
|
+
var prim = input[Symbol.toPrimitive];
|
450
|
+
if (prim !== undefined) {
|
451
|
+
var res = prim.call(input, hint || "default");
|
452
|
+
if (_typeof(res) !== "object") return res;
|
453
453
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
454
454
|
}
|
455
|
-
return ("string"
|
455
|
+
return (hint === "string" ? String : Number)(input);
|
456
456
|
}
|
457
457
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
458
458
|
|
459
459
|
|
460
|
-
function
|
461
|
-
var
|
462
|
-
return "symbol"
|
460
|
+
function _toPropertyKey(arg) {
|
461
|
+
var key = _toPrimitive(arg, "string");
|
462
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
463
463
|
}
|
464
464
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
465
465
|
|
466
466
|
function _defineProperty(obj, key, value) {
|
467
|
-
key =
|
467
|
+
key = _toPropertyKey(key);
|
468
468
|
if (key in obj) {
|
469
469
|
Object.defineProperty(obj, key, {
|
470
470
|
value: value,
|
@@ -481,7 +481,19 @@ function _defineProperty(obj, key, value) {
|
|
481
481
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
482
482
|
var external_vue_y = x => () => x
|
483
483
|
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["shallowRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.shallowRef, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
484
|
-
;// CONCATENATED MODULE:
|
484
|
+
;// CONCATENATED MODULE: external "../config-provider"
|
485
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
486
|
+
var config_provider_y = x => () => x
|
487
|
+
const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
488
|
+
;// CONCATENATED MODULE: external "../directives"
|
489
|
+
var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
490
|
+
var directives_y = x => () => x
|
491
|
+
const directives_namespaceObject = directives_x({ ["clickoutside"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.clickoutside });
|
492
|
+
;// CONCATENATED MODULE: external "../icon"
|
493
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
494
|
+
var icon_y = x => () => x
|
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/@blueking/fork-resize-detector/esm/index.js
|
485
497
|
var raf = null;
|
486
498
|
function requestAnimationFrame (callback) {
|
487
499
|
if (!raf) {
|
@@ -547,7 +559,7 @@ function getComputedStyle (elem, prop, pseudo) {
|
|
547
559
|
}
|
548
560
|
|
549
561
|
function getRenderInfo (elem) {
|
550
|
-
if (!document.documentElement.contains(elem)) {
|
562
|
+
if (!elem || !document.documentElement.contains(elem)) {
|
551
563
|
return {
|
552
564
|
detached: true,
|
553
565
|
rendered: false
|
@@ -555,7 +567,7 @@ function getRenderInfo (elem) {
|
|
555
567
|
}
|
556
568
|
|
557
569
|
var current = elem;
|
558
|
-
while (current !== document) {
|
570
|
+
while (current && current !== document) {
|
559
571
|
if (getComputedStyle(current, 'display') === 'none') {
|
560
572
|
return {
|
561
573
|
detached: false,
|
@@ -797,48 +809,36 @@ function resetTriggers (elem) {
|
|
797
809
|
|
798
810
|
|
799
811
|
|
800
|
-
;// CONCATENATED MODULE: external "../config-provider"
|
801
|
-
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
802
|
-
var config_provider_y = x => () => x
|
803
|
-
const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
804
|
-
;// CONCATENATED MODULE: external "../directives"
|
805
|
-
var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
806
|
-
var directives_y = x => () => x
|
807
|
-
const directives_namespaceObject = directives_x({ ["clickoutside"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.clickoutside });
|
808
|
-
;// CONCATENATED MODULE: external "../icon"
|
809
|
-
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
810
|
-
var icon_y = x => () => x
|
811
|
-
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 });
|
812
812
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
813
813
|
function _arrayWithHoles(arr) {
|
814
814
|
if (Array.isArray(arr)) return arr;
|
815
815
|
}
|
816
816
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
817
|
-
function _iterableToArrayLimit(
|
818
|
-
var
|
819
|
-
if (null !=
|
820
|
-
var
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
817
|
+
function _iterableToArrayLimit(arr, i) {
|
818
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
819
|
+
if (null != _i) {
|
820
|
+
var _s,
|
821
|
+
_e,
|
822
|
+
_x,
|
823
|
+
_r,
|
824
|
+
_arr = [],
|
825
|
+
_n = !0,
|
826
|
+
_d = !1;
|
827
827
|
try {
|
828
|
-
if (
|
829
|
-
if (Object(
|
830
|
-
|
831
|
-
} else for (; !(
|
832
|
-
} catch (
|
833
|
-
|
828
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
829
|
+
if (Object(_i) !== _i) return;
|
830
|
+
_n = !1;
|
831
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
832
|
+
} catch (err) {
|
833
|
+
_d = !0, _e = err;
|
834
834
|
} finally {
|
835
835
|
try {
|
836
|
-
if (!
|
836
|
+
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
|
837
837
|
} finally {
|
838
|
-
if (
|
838
|
+
if (_d) throw _e;
|
839
839
|
}
|
840
840
|
}
|
841
|
-
return
|
841
|
+
return _arr;
|
842
842
|
}
|
843
843
|
}
|
844
844
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
@@ -962,7 +962,7 @@ function _defineProperties(target, props) {
|
|
962
962
|
descriptor.enumerable = descriptor.enumerable || false;
|
963
963
|
descriptor.configurable = true;
|
964
964
|
if ("value" in descriptor) descriptor.writable = true;
|
965
|
-
Object.defineProperty(target,
|
965
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
966
966
|
}
|
967
967
|
}
|
968
968
|
function _createClass(Constructor, protoProps, staticProps) {
|
@@ -1014,27 +1014,27 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
1014
1014
|
var ValueBehavior;
|
1015
1015
|
(function (ValueBehavior) {
|
1016
1016
|
ValueBehavior["ALL"] = "all";
|
1017
|
-
ValueBehavior["
|
1017
|
+
ValueBehavior["NEED_KEY"] = "need-key";
|
1018
1018
|
})(ValueBehavior || (ValueBehavior = {}));
|
1019
1019
|
var DeleteBehavior;
|
1020
1020
|
(function (DeleteBehavior) {
|
1021
1021
|
DeleteBehavior["CHAR"] = "delete-char";
|
1022
1022
|
DeleteBehavior["VALUE"] = "delete-value";
|
1023
1023
|
})(DeleteBehavior || (DeleteBehavior = {}));
|
1024
|
-
var
|
1024
|
+
var SEARCH_SELECT_PROVIDER_KEY = Symbol('SEARCH_SELECT_PROVIDER_KEY');
|
1025
1025
|
var useSearchSelectProvider = function useSearchSelectProvider(data) {
|
1026
|
-
(0,external_vue_namespaceObject.provide)(
|
1026
|
+
(0,external_vue_namespaceObject.provide)(SEARCH_SELECT_PROVIDER_KEY, data);
|
1027
1027
|
};
|
1028
1028
|
var useSearchSelectInject = function useSearchSelectInject() {
|
1029
|
-
return (0,external_vue_namespaceObject.inject)(
|
1029
|
+
return (0,external_vue_namespaceObject.inject)(SEARCH_SELECT_PROVIDER_KEY);
|
1030
1030
|
};
|
1031
1031
|
var SearchInputMode;
|
1032
1032
|
(function (SearchInputMode) {
|
1033
1033
|
SearchInputMode["DEFAULT"] = "default";
|
1034
1034
|
SearchInputMode["EDIT"] = "edit";
|
1035
1035
|
})(SearchInputMode || (SearchInputMode = {}));
|
1036
|
-
var ValueSplitRegex = /(
|
1037
|
-
var ValueSplitTestRegex = /^(
|
1036
|
+
var ValueSplitRegex = /(\||,|、|\r\n|\n)/gm;
|
1037
|
+
var ValueSplitTestRegex = /^(\||,|、|\r\n|\n)$/;
|
1038
1038
|
var SearchLogical;
|
1039
1039
|
(function (SearchLogical) {
|
1040
1040
|
SearchLogical["AND"] = "&";
|
@@ -1045,7 +1045,7 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1045
1045
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
|
1046
1046
|
_classCallCheck(this, SelectedItem);
|
1047
1047
|
_defineProperty(this, "values", []);
|
1048
|
-
_defineProperty(this, "
|
1048
|
+
_defineProperty(this, "nameRenderKey", (0,shared_namespaceObject.random)(4));
|
1049
1049
|
this.searchItem = searchItem;
|
1050
1050
|
this.type = type;
|
1051
1051
|
this.id = searchItem.id;
|
@@ -1121,7 +1121,7 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1121
1121
|
}, {
|
1122
1122
|
key: "addValue",
|
1123
1123
|
value: function addValue(item) {
|
1124
|
-
this.
|
1124
|
+
this.nameRenderKey = (0,shared_namespaceObject.random)(4);
|
1125
1125
|
if (this.multiple) {
|
1126
1126
|
var index = this.values.findIndex(function (val) {
|
1127
1127
|
return val.id === item.id;
|
@@ -1268,10 +1268,9 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1268
1268
|
|
1269
1269
|
|
1270
1270
|
|
1271
|
-
|
1272
1271
|
// import { Done } from '@bkui-vue/icon';
|
1273
1272
|
|
1274
|
-
/* harmony default export */ const menu = (
|
1273
|
+
/* harmony default export */ const menu = (defineComponent({
|
1275
1274
|
name: 'SearchSelectMenu',
|
1276
1275
|
props: {
|
1277
1276
|
list: {
|
@@ -1308,6 +1307,12 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1308
1307
|
logical: {
|
1309
1308
|
type: String,
|
1310
1309
|
"default": SearchLogical.OR
|
1310
|
+
},
|
1311
|
+
maxHeight: {
|
1312
|
+
type: Number,
|
1313
|
+
"default": function _default() {
|
1314
|
+
return 392;
|
1315
|
+
}
|
1311
1316
|
}
|
1312
1317
|
},
|
1313
1318
|
emits: ['selectItem', 'selectCondition', 'footerClick', 'update:logical'],
|
@@ -1316,7 +1321,7 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1316
1321
|
var t = (0,config_provider_namespaceObject.useLocale)('searchSelect');
|
1317
1322
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1318
1323
|
resolveClassName = _usePrefix.resolveClassName;
|
1319
|
-
var localFooterBtns =
|
1324
|
+
var localFooterBtns = computed(function () {
|
1320
1325
|
if (props.footerBtns === undefined || props.footerBtns.length === 0) {
|
1321
1326
|
return [{
|
1322
1327
|
id: 'confirm',
|
@@ -1329,6 +1334,11 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1329
1334
|
}
|
1330
1335
|
return props.footerBtns;
|
1331
1336
|
});
|
1337
|
+
var resolveContentStyles = computed(function () {
|
1338
|
+
return {
|
1339
|
+
maxHeight: "".concat(props.maxHeight, "px")
|
1340
|
+
};
|
1341
|
+
});
|
1332
1342
|
// events
|
1333
1343
|
function handleClick(item) {
|
1334
1344
|
emit('selectItem', item);
|
@@ -1339,7 +1349,7 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1339
1349
|
function handleClickFooterBtn(item) {
|
1340
1350
|
emit('footerClick', item);
|
1341
1351
|
}
|
1342
|
-
var filterList =
|
1352
|
+
var filterList = computed(function () {
|
1343
1353
|
var _props$list, _props$keyword;
|
1344
1354
|
if (!((_props$list = props.list) !== null && _props$list !== void 0 && _props$list.length)) return [];
|
1345
1355
|
if (!((_props$keyword = props.keyword) !== null && _props$keyword !== void 0 && _props$keyword.length)) return props.list;
|
@@ -1398,6 +1408,7 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1398
1408
|
getSearchNode: getSearchNode,
|
1399
1409
|
localFooterBtns: localFooterBtns,
|
1400
1410
|
resolveClassName: resolveClassName,
|
1411
|
+
resolveContentStyles: resolveContentStyles,
|
1401
1412
|
t: t
|
1402
1413
|
};
|
1403
1414
|
},
|
@@ -1409,9 +1420,9 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1409
1420
|
"class": "menu-content"
|
1410
1421
|
}, [(_this$list = this.list) === null || _this$list === void 0 ? void 0 : _this$list.map(function (item) {
|
1411
1422
|
return (0,external_vue_namespaceObject.createVNode)("li", {
|
1412
|
-
"class": "menu-item ".concat(item.disabled ? 'is-disabled' : '', " ").concat(_this.hoverId === item.id && !item.disabled ? 'is-hover' : ''),
|
1413
|
-
"key": item.id,
|
1414
1423
|
"id": item.id,
|
1424
|
+
"key": item.id,
|
1425
|
+
"class": "menu-item ".concat(item.disabled ? 'is-disabled' : '', " ").concat(_this.hoverId === item.id && !item.disabled ? 'is-hover' : ''),
|
1415
1426
|
"tabindex": "-1",
|
1416
1427
|
"onClick": function onClick() {
|
1417
1428
|
return !item.disabled && _this.handleClick(item);
|
@@ -1421,8 +1432,8 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1421
1432
|
return _this.handleSelectedChange(e, item);
|
1422
1433
|
}
|
1423
1434
|
}, [(0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
1424
|
-
"
|
1425
|
-
"
|
1435
|
+
"class": "is-selected",
|
1436
|
+
"modelValue": _this.selected.includes(item.id)
|
1426
1437
|
}, null)]), _this.getSearchNode(item)])]);
|
1427
1438
|
})]);
|
1428
1439
|
var getListMenu = function getListMenu() {
|
@@ -1434,17 +1445,17 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1434
1445
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
1435
1446
|
"class": "menu-condition-title"
|
1436
1447
|
}, [_this.t.logical]), (0,external_vue_namespaceObject.createVNode)(radio_namespaceObject["default"], {
|
1448
|
+
"label": "|",
|
1437
1449
|
"modelValue": _this.logical,
|
1438
|
-
"onChange": _this.handleLogicalChange
|
1439
|
-
"label": "|"
|
1450
|
+
"onChange": _this.handleLogicalChange
|
1440
1451
|
}, {
|
1441
1452
|
"default": function _default() {
|
1442
1453
|
return [_this.t.or, (0,external_vue_namespaceObject.createTextVNode)(" |")];
|
1443
1454
|
}
|
1444
1455
|
}), (0,external_vue_namespaceObject.createVNode)(radio_namespaceObject["default"], {
|
1456
|
+
"label": "&",
|
1445
1457
|
"modelValue": _this.logical,
|
1446
|
-
"onChange": _this.handleLogicalChange
|
1447
|
-
"label": "&"
|
1458
|
+
"onChange": _this.handleLogicalChange
|
1448
1459
|
}, {
|
1449
1460
|
"default": function _default() {
|
1450
1461
|
return [_this.t.and, (0,external_vue_namespaceObject.createTextVNode)(" &")];
|
@@ -1452,6 +1463,7 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1452
1463
|
})])]);
|
1453
1464
|
};
|
1454
1465
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
1466
|
+
"style": this.resolveContentStyles,
|
1455
1467
|
"class": this.resolveClassName('search-select-menu')
|
1456
1468
|
}, [!!((_this$conditions = this.conditions) !== null && _this$conditions !== void 0 && _this$conditions.length) && (0,external_vue_namespaceObject.createVNode)("ul", {
|
1457
1469
|
"class": "menu-header"
|
@@ -1471,6 +1483,9 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1471
1483
|
|
1472
1484
|
|
1473
1485
|
|
1486
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = input_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
1487
|
+
function input_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return input_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? input_arrayLikeToArray(r, a) : void 0; } }
|
1488
|
+
function input_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
1474
1489
|
|
1475
1490
|
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; }
|
1476
1491
|
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; }
|
@@ -1527,11 +1542,17 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1527
1542
|
return [];
|
1528
1543
|
}
|
1529
1544
|
},
|
1530
|
-
|
1545
|
+
defaultUsingItem: Object,
|
1531
1546
|
mode: {
|
1532
1547
|
type: String,
|
1533
1548
|
"default": SearchInputMode.DEFAULT
|
1534
1549
|
},
|
1550
|
+
maxHeight: {
|
1551
|
+
type: Number,
|
1552
|
+
"default": function _default() {
|
1553
|
+
return 392;
|
1554
|
+
}
|
1555
|
+
},
|
1535
1556
|
getMenuList: Function,
|
1536
1557
|
validateValues: Function,
|
1537
1558
|
valueBehavior: String
|
@@ -1550,10 +1571,10 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1550
1571
|
var showNoSelectValueError = (0,external_vue_namespaceObject.ref)(false);
|
1551
1572
|
var isFocus = (0,external_vue_namespaceObject.ref)(false);
|
1552
1573
|
var showPopover = (0,external_vue_namespaceObject.ref)(false);
|
1553
|
-
var usingItem = (0,external_vue_namespaceObject.ref)(props.
|
1574
|
+
var usingItem = (0,external_vue_namespaceObject.ref)(props.defaultUsingItem);
|
1554
1575
|
var menuHoverId = (0,external_vue_namespaceObject.ref)('');
|
1555
1576
|
var loading = (0,external_vue_namespaceObject.ref)(false);
|
1556
|
-
var debounceSetMenuList = (0,shared_namespaceObject.debounce)(
|
1577
|
+
var debounceSetMenuList = (0,shared_namespaceObject.debounce)(100, setMenuList);
|
1557
1578
|
// const selectMenuList = ref<ICommonItem[]>([]);
|
1558
1579
|
var isBindEvent = false;
|
1559
1580
|
var remoteMenuList = (0,external_vue_namespaceObject.ref)([]);
|
@@ -1562,10 +1583,11 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1562
1583
|
editKey = _useSearchSelectInjec.editKey,
|
1563
1584
|
onValidate = _useSearchSelectInjec.onValidate,
|
1564
1585
|
searchData = _useSearchSelectInjec.searchData;
|
1565
|
-
var
|
1586
|
+
var valueLogic = (0,external_vue_namespaceObject.computed)(function () {
|
1566
1587
|
var _usingItem$value;
|
1567
1588
|
return ((_usingItem$value = usingItem.value) === null || _usingItem$value === void 0 ? void 0 : _usingItem$value.logical) || SearchLogical.OR;
|
1568
1589
|
});
|
1590
|
+
var inputKey = (0,external_vue_namespaceObject.ref)((0,shared_namespaceObject.random)(10));
|
1569
1591
|
(0,external_vue_namespaceObject.watch)(editKey, function () {
|
1570
1592
|
if (props.mode === SearchInputMode.DEFAULT && editKey.value) {
|
1571
1593
|
showPopover.value = false;
|
@@ -1588,7 +1610,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1588
1610
|
if (shouldBindEvent) {
|
1589
1611
|
if (!isBindEvent) {
|
1590
1612
|
var _menuList$value$find;
|
1591
|
-
menuHoverId.value = props.valueBehavior === ValueBehavior.
|
1613
|
+
menuHoverId.value = props.valueBehavior === ValueBehavior.NEED_KEY ? ((_menuList$value$find = menuList.value.find(function (item) {
|
1592
1614
|
return !item.disabled;
|
1593
1615
|
})) === null || _menuList$value$find === void 0 ? void 0 : _menuList$value$find.id) || '' : '';
|
1594
1616
|
isBindEvent = true;
|
@@ -1597,7 +1619,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1597
1619
|
} else {
|
1598
1620
|
document.removeEventListener('keydown', handleDocumentKeydown);
|
1599
1621
|
isBindEvent = false;
|
1600
|
-
if (props.valueBehavior !== ValueBehavior.
|
1622
|
+
if (props.valueBehavior !== ValueBehavior.NEED_KEY) {
|
1601
1623
|
menuHoverId.value = '';
|
1602
1624
|
}
|
1603
1625
|
}
|
@@ -1618,7 +1640,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1618
1640
|
function documentArrowEvent(e) {
|
1619
1641
|
var _inputRef$value;
|
1620
1642
|
e.preventDefault();
|
1621
|
-
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0
|
1643
|
+
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 ? void 0 : _inputRef$value.blur();
|
1622
1644
|
var len = menuList.value.length;
|
1623
1645
|
var index = menuList.value.findIndex(function (set) {
|
1624
1646
|
return set.id === menuHoverId.value;
|
@@ -1628,16 +1650,17 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1628
1650
|
var item = menuList.value[index];
|
1629
1651
|
if (item && !item.disabled) {
|
1630
1652
|
var dom = document.getElementById(item.id);
|
1631
|
-
dom === null || dom === void 0
|
1653
|
+
dom === null || dom === void 0 ? void 0 : dom.focus();
|
1632
1654
|
menuHoverId.value = item.id;
|
1633
1655
|
break;
|
1634
1656
|
}
|
1635
1657
|
}
|
1636
1658
|
}
|
1637
1659
|
function documentEnterEvent(e) {
|
1660
|
+
var _menuList$value2;
|
1638
1661
|
if (!isBindEvent) return;
|
1639
1662
|
e.preventDefault();
|
1640
|
-
var item = menuList.value.find(function (item) {
|
1663
|
+
var item = (_menuList$value2 = menuList.value) === null || _menuList$value2 === void 0 ? void 0 : _menuList$value2.find(function (item) {
|
1641
1664
|
return item.id === menuHoverId.value;
|
1642
1665
|
});
|
1643
1666
|
item && handleSelectItem(item);
|
@@ -1669,16 +1692,23 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1669
1692
|
showPopover.value = false;
|
1670
1693
|
emit('focus', isFocus.value);
|
1671
1694
|
}
|
1672
|
-
|
1695
|
+
var isOriginFocus = false;
|
1696
|
+
function handleInputFocus(event) {
|
1697
|
+
if (isOriginFocus) return;
|
1673
1698
|
showNoSelectValueError.value = false;
|
1674
1699
|
if (props.mode === SearchInputMode.EDIT && usingItem.value && !isFocus.value) {
|
1675
1700
|
var nodeList = Array.from(inputRef.value.querySelectorAll("[data-type=\"".concat(usingItem.value.values.length ? 'value' : usingItem.value.type, "\"]")));
|
1676
1701
|
if (!nodeList.length) return;
|
1702
|
+
event === null || event === void 0 ? void 0 : event.preventDefault();
|
1677
1703
|
var range = document.createRange();
|
1678
1704
|
var selection = window.getSelection();
|
1679
1705
|
range.selectNodeContents(nodeList.at(-1));
|
1680
|
-
selection === null || selection === void 0
|
1681
|
-
|
1706
|
+
selection === null || selection === void 0 ? void 0 : selection.removeAllRanges();
|
1707
|
+
isOriginFocus = true;
|
1708
|
+
setTimeout(function () {
|
1709
|
+
isOriginFocus = false;
|
1710
|
+
}, 200);
|
1711
|
+
selection.addRange(range); // 注意这里会触发focus事件
|
1682
1712
|
setInputFocus(true, false);
|
1683
1713
|
return;
|
1684
1714
|
}
|
@@ -1689,7 +1719,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1689
1719
|
event.preventDefault();
|
1690
1720
|
var formattedText = event.clipboardData.getData('text').trim();
|
1691
1721
|
if (!usingItem.value) {
|
1692
|
-
var formateItem =
|
1722
|
+
var formateItem = str2SelectedItem(formattedText);
|
1693
1723
|
if (formateItem) {
|
1694
1724
|
usingItem.value = formateItem;
|
1695
1725
|
setInputFocus(true, true);
|
@@ -1697,7 +1727,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1697
1727
|
}
|
1698
1728
|
keyword.value = formattedText.split(ValueSplitRegex).filter(function (v) {
|
1699
1729
|
return v.trim() && !ValueSplitTestRegex.test(v);
|
1700
|
-
}).join(" ".concat(
|
1730
|
+
}).join(" ".concat(valueLogic.value, " "));
|
1701
1731
|
inputRef.value.innerText = keyword.value;
|
1702
1732
|
setInputFocus();
|
1703
1733
|
debounceSetMenuList();
|
@@ -1712,17 +1742,45 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1712
1742
|
keyword.value = text;
|
1713
1743
|
debounceSetMenuList();
|
1714
1744
|
return;
|
1745
|
+
} else {
|
1746
|
+
// command + a 全选删除特殊逻辑
|
1747
|
+
if (usingItem.value && !text) {
|
1748
|
+
inputKey.value = (0,shared_namespaceObject.random)(10);
|
1749
|
+
menuHoverId.value = '';
|
1750
|
+
usingItem.value = null;
|
1751
|
+
keyword.value = '';
|
1752
|
+
setTimeout(function () {
|
1753
|
+
setInputFocus(true, true);
|
1754
|
+
(0,external_vue_namespaceObject.nextTick)(setCursorToEnd);
|
1755
|
+
}, 200);
|
1756
|
+
return;
|
1757
|
+
}
|
1715
1758
|
}
|
1716
1759
|
keyword.value = usingItem.value.isSpecialType() ? text : text.replace(usingItem.value.name, '').replace(':', '').trim();
|
1717
1760
|
debounceSetMenuList();
|
1718
1761
|
}
|
1719
1762
|
function handleInputKeyup(event) {
|
1763
|
+
// if ((event.ctrlKey || event.metaKey) && event.key === 'a') {
|
1764
|
+
// const selection = window.getSelection();
|
1765
|
+
// const range = selection.getRangeAt(0);
|
1766
|
+
// const startContainer = range.startContainer;
|
1767
|
+
// if (startContainer === inputRef.value) {
|
1768
|
+
// event?.preventDefault();
|
1769
|
+
// }
|
1770
|
+
// return;
|
1771
|
+
// }
|
1720
1772
|
switch (event.code) {
|
1721
1773
|
case 'Enter':
|
1722
1774
|
case 'NumpadEnter':
|
1723
|
-
if (props.valueBehavior === ValueBehavior.
|
1775
|
+
if (props.valueBehavior === ValueBehavior.NEED_KEY && menuList.value.some(function (item) {
|
1724
1776
|
return item.id === menuHoverId.value;
|
1725
|
-
}))
|
1777
|
+
})) {
|
1778
|
+
var _keyword$value;
|
1779
|
+
if (!usingItem.value && (_keyword$value = keyword.value) !== null && _keyword$value !== void 0 && _keyword$value.length) {
|
1780
|
+
event.preventDefault();
|
1781
|
+
}
|
1782
|
+
return;
|
1783
|
+
}
|
1726
1784
|
handleKeyEnter(event).then(function (v) {
|
1727
1785
|
return v && clearInput();
|
1728
1786
|
});
|
@@ -1738,13 +1796,13 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1738
1796
|
return _handleKeyEnter.apply(this, arguments);
|
1739
1797
|
}
|
1740
1798
|
function _handleKeyEnter() {
|
1741
|
-
_handleKeyEnter = _asyncToGenerator(
|
1799
|
+
_handleKeyEnter = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee(event) {
|
1742
1800
|
var _usingItem$value6, _usingItem$value7, _usingItem$value8;
|
1743
1801
|
var isValid;
|
1744
1802
|
return regenerator_default().wrap(function _callee$(_context) {
|
1745
1803
|
while (1) switch (_context.prev = _context.next) {
|
1746
1804
|
case 0:
|
1747
|
-
event === null || event === void 0
|
1805
|
+
event === null || event === void 0 ? void 0 : event.preventDefault();
|
1748
1806
|
// 异步延迟解决确保响应时机问题
|
1749
1807
|
_context.next = 3;
|
1750
1808
|
return new Promise(function (resolve) {
|
@@ -1755,7 +1813,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1755
1813
|
_context.next = 9;
|
1756
1814
|
break;
|
1757
1815
|
}
|
1758
|
-
if (!(!keyword.value || props.valueBehavior === ValueBehavior.
|
1816
|
+
if (!(!keyword.value || props.valueBehavior === ValueBehavior.NEED_KEY)) {
|
1759
1817
|
_context.next = 6;
|
1760
1818
|
break;
|
1761
1819
|
}
|
@@ -1809,7 +1867,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1809
1867
|
var _usingItem$value3;
|
1810
1868
|
// 删除已选择项
|
1811
1869
|
if (!usingItem.value && !keyword.value) {
|
1870
|
+
menuHoverId.value = '';
|
1812
1871
|
emit('delete');
|
1872
|
+
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
1813
1873
|
setTimeout(setMenuList, 16);
|
1814
1874
|
return;
|
1815
1875
|
}
|
@@ -1843,7 +1903,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1843
1903
|
return _handleSelectItem.apply(this, arguments);
|
1844
1904
|
}
|
1845
1905
|
function _handleSelectItem() {
|
1846
|
-
_handleSelectItem = _asyncToGenerator(
|
1906
|
+
_handleSelectItem = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2(item, type) {
|
1847
1907
|
var _item$value, _usingItem$value9, _usingItem$value12;
|
1848
1908
|
var _item$realId, selectedItem, _usingItem$value10, _usingItem$value11, isCondition;
|
1849
1909
|
return regenerator_default().wrap(function _callee2$(_context2) {
|
@@ -1857,7 +1917,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1857
1917
|
id: (_item$realId = item.realId) !== null && _item$realId !== void 0 ? _item$realId : item.id
|
1858
1918
|
}), type);
|
1859
1919
|
selectedItem.addValues(item.value.name, false);
|
1860
|
-
if (!(props.valueBehavior === ValueBehavior.
|
1920
|
+
if (!(props.valueBehavior === ValueBehavior.NEED_KEY && menuHoverId.value)) {
|
1861
1921
|
_context2.next = 8;
|
1862
1922
|
break;
|
1863
1923
|
}
|
@@ -1883,7 +1943,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1883
1943
|
return _context2.abrupt("return");
|
1884
1944
|
case 18:
|
1885
1945
|
if (!(!usingItem.value || ((_usingItem$value9 = usingItem.value) === null || _usingItem$value9 === void 0 ? void 0 : _usingItem$value9.type) === 'condition')) {
|
1886
|
-
_context2.next =
|
1946
|
+
_context2.next = 28;
|
1887
1947
|
break;
|
1888
1948
|
}
|
1889
1949
|
usingItem.value = new SelectedItem(item, type !== null && type !== void 0 ? type : (_usingItem$value10 = usingItem.value) === null || _usingItem$value10 === void 0 ? void 0 : _usingItem$value10.type);
|
@@ -1900,29 +1960,30 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1900
1960
|
setSelectedItem();
|
1901
1961
|
}
|
1902
1962
|
showPopover.value = isCondition || !!usingItem.value.children.length;
|
1903
|
-
setInputFocus(props.valueBehavior === ValueBehavior.
|
1963
|
+
setInputFocus(props.valueBehavior === ValueBehavior.NEED_KEY && !!menuHoverId.value);
|
1964
|
+
typeof props.getMenuList === 'function' && (0,external_vue_namespaceObject.nextTick)(setCursorToEnd);
|
1904
1965
|
return _context2.abrupt("return");
|
1905
|
-
case
|
1966
|
+
case 28:
|
1906
1967
|
if (usingItem.value) {
|
1907
1968
|
usingItem.value.addValue(item);
|
1908
1969
|
(0,external_vue_namespaceObject.nextTick)(deleteInputTextNode);
|
1909
1970
|
}
|
1910
|
-
_context2.next =
|
1971
|
+
_context2.next = 31;
|
1911
1972
|
return validateUsingItemValues(usingItem.value.values);
|
1912
|
-
case
|
1973
|
+
case 31:
|
1913
1974
|
if (_context2.sent) {
|
1914
|
-
_context2.next =
|
1975
|
+
_context2.next = 33;
|
1915
1976
|
break;
|
1916
1977
|
}
|
1917
1978
|
return _context2.abrupt("return");
|
1918
|
-
case
|
1979
|
+
case 33:
|
1919
1980
|
if (!usingItem.value.multiple) {
|
1920
1981
|
setSelectedItem();
|
1921
1982
|
}
|
1922
|
-
if (props.valueBehavior === ValueBehavior.
|
1983
|
+
if (props.valueBehavior === ValueBehavior.NEED_KEY && (_usingItem$value12 = usingItem.value) !== null && _usingItem$value12 !== void 0 && _usingItem$value12.multiple) {
|
1923
1984
|
setInputFocus();
|
1924
1985
|
}
|
1925
|
-
case
|
1986
|
+
case 35:
|
1926
1987
|
case "end":
|
1927
1988
|
return _context2.stop();
|
1928
1989
|
}
|
@@ -1930,7 +1991,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1930
1991
|
}));
|
1931
1992
|
return _handleSelectItem.apply(this, arguments);
|
1932
1993
|
}
|
1933
|
-
function
|
1994
|
+
function handleSelectConditionItem(item) {
|
1934
1995
|
handleSelectItem(item, 'condition');
|
1935
1996
|
}
|
1936
1997
|
function handleMenuFooterClick(item) {
|
@@ -1956,7 +2017,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1956
2017
|
return _validateValues.apply(this, arguments);
|
1957
2018
|
}
|
1958
2019
|
function _validateValues() {
|
1959
|
-
_validateValues = _asyncToGenerator(
|
2020
|
+
_validateValues = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee3(searchItem, value) {
|
1960
2021
|
var validateStr;
|
1961
2022
|
return regenerator_default().wrap(function _callee3$(_context3) {
|
1962
2023
|
while (1) switch (_context3.prev = _context3.next) {
|
@@ -1999,7 +2060,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1999
2060
|
return _validateUsingItemValues.apply(this, arguments);
|
2000
2061
|
}
|
2001
2062
|
function _validateUsingItemValues() {
|
2002
|
-
_validateUsingItemValues = _asyncToGenerator(
|
2063
|
+
_validateUsingItemValues = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee4(preValues) {
|
2003
2064
|
var _usingItem$value13, searchItem, validate, values;
|
2004
2065
|
return regenerator_default().wrap(function _callee4$(_context4) {
|
2005
2066
|
while (1) switch (_context4.prev = _context4.next) {
|
@@ -2037,9 +2098,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2037
2098
|
return _setMenuList.apply(this, arguments);
|
2038
2099
|
}
|
2039
2100
|
function _setMenuList() {
|
2040
|
-
_setMenuList = _asyncToGenerator(
|
2101
|
+
_setMenuList = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee5() {
|
2041
2102
|
var _props$data, _usingItem$value$sear, _usingItem$value$valu;
|
2042
|
-
var list, _usingItem$value14, _keyword$
|
2103
|
+
var list, _usingItem$value14, _keyword$value3, _iterator, _step, item, isMatched, _list, filterList, _iterator2, _step2, child, _list2, _filterList, _iterator3, _step3, _child, hoverItem;
|
2043
2104
|
return regenerator_default().wrap(function _callee5$(_context5) {
|
2044
2105
|
while (1) switch (_context5.prev = _context5.next) {
|
2045
2106
|
case 0:
|
@@ -2060,55 +2121,83 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2060
2121
|
break;
|
2061
2122
|
case 9:
|
2062
2123
|
if (!(usingItem !== null && usingItem !== void 0 && usingItem.value)) {
|
2063
|
-
if (!((_keyword$
|
2124
|
+
if (!((_keyword$value3 = keyword.value) !== null && _keyword$value3 !== void 0 && _keyword$value3.length)) {
|
2064
2125
|
list = props.data.filter(function (item) {
|
2065
2126
|
return !item.isSelected;
|
2066
2127
|
}).slice();
|
2067
|
-
} else
|
2068
|
-
|
2069
|
-
|
2070
|
-
|
2071
|
-
|
2072
|
-
|
2073
|
-
|
2074
|
-
|
2075
|
-
|
2076
|
-
|
2077
|
-
|
2078
|
-
|
2079
|
-
|
2080
|
-
|
2081
|
-
|
2082
|
-
|
2083
|
-
|
2084
|
-
|
2085
|
-
|
2086
|
-
|
2087
|
-
|
2088
|
-
|
2089
|
-
|
2090
|
-
|
2091
|
-
|
2092
|
-
|
2093
|
-
|
2094
|
-
|
2095
|
-
|
2096
|
-
|
2097
|
-
|
2098
|
-
|
2099
|
-
|
2100
|
-
|
2101
|
-
|
2102
|
-
|
2103
|
-
|
2104
|
-
|
2105
|
-
|
2106
|
-
|
2128
|
+
} else {
|
2129
|
+
_iterator = _createForOfIteratorHelper(props.data.filter(function (item) {
|
2130
|
+
return !item.isSelected;
|
2131
|
+
}));
|
2132
|
+
try {
|
2133
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
2134
|
+
item = _step.value;
|
2135
|
+
isMatched = item.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase());
|
2136
|
+
if (isMatched) {
|
2137
|
+
list.push(item);
|
2138
|
+
filterList = [];
|
2139
|
+
_iterator2 = _createForOfIteratorHelper(item.children || []);
|
2140
|
+
try {
|
2141
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
2142
|
+
child = _step2.value;
|
2143
|
+
filterList.push(_objectSpread(_objectSpread({}, item), {}, {
|
2144
|
+
realId: item.id,
|
2145
|
+
id: (0,shared_namespaceObject.random)(10),
|
2146
|
+
value: child
|
2147
|
+
}));
|
2148
|
+
}
|
2149
|
+
} catch (err) {
|
2150
|
+
_iterator2.e(err);
|
2151
|
+
} finally {
|
2152
|
+
_iterator2.f();
|
2153
|
+
}
|
2154
|
+
if (!filterList.length && !item.onlyRecommendChildren) {
|
2155
|
+
filterList.push(_objectSpread(_objectSpread({}, item), {}, {
|
2156
|
+
realId: item.id,
|
2157
|
+
id: (0,shared_namespaceObject.random)(10),
|
2158
|
+
value: {
|
2159
|
+
id: keyword.value,
|
2160
|
+
name: keyword.value
|
2161
|
+
}
|
2162
|
+
}));
|
2163
|
+
}
|
2164
|
+
(_list = list).push.apply(_list, filterList);
|
2165
|
+
} else {
|
2166
|
+
_filterList = [];
|
2167
|
+
_iterator3 = _createForOfIteratorHelper(item.children || []);
|
2168
|
+
try {
|
2169
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
2170
|
+
_child = _step3.value;
|
2171
|
+
if (_child.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase())) {
|
2172
|
+
_filterList.push(_objectSpread(_objectSpread({}, item), {}, {
|
2173
|
+
realId: item.id,
|
2174
|
+
id: (0,shared_namespaceObject.random)(10),
|
2175
|
+
value: _child
|
2176
|
+
}));
|
2177
|
+
}
|
2178
|
+
}
|
2179
|
+
} catch (err) {
|
2180
|
+
_iterator3.e(err);
|
2181
|
+
} finally {
|
2182
|
+
_iterator3.f();
|
2183
|
+
}
|
2184
|
+
if (!_filterList.length && !item.onlyRecommendChildren) {
|
2185
|
+
_filterList.push(_objectSpread(_objectSpread({}, item), {}, {
|
2186
|
+
value: {
|
2187
|
+
id: keyword.value,
|
2188
|
+
name: keyword.value
|
2189
|
+
}
|
2190
|
+
}));
|
2191
|
+
}
|
2192
|
+
(_list2 = list).push.apply(_list2, _filterList);
|
2107
2193
|
}
|
2108
|
-
}
|
2109
|
-
|
2194
|
+
}
|
2195
|
+
} catch (err) {
|
2196
|
+
_iterator.e(err);
|
2197
|
+
} finally {
|
2198
|
+
_iterator.f();
|
2110
2199
|
}
|
2111
|
-
}
|
2200
|
+
}
|
2112
2201
|
} else if (usingItem.value.type === 'condition') {
|
2113
2202
|
list = props.conditions;
|
2114
2203
|
} 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) {
|
@@ -2118,7 +2207,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2118
2207
|
}
|
2119
2208
|
case 10:
|
2120
2209
|
menuList.value = list;
|
2121
|
-
if (props.valueBehavior === ValueBehavior.
|
2210
|
+
if (props.valueBehavior === ValueBehavior.NEED_KEY) {
|
2122
2211
|
hoverItem = list.find(function (item) {
|
2123
2212
|
return !item.disabled;
|
2124
2213
|
});
|
@@ -2140,12 +2229,12 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2140
2229
|
return _enterNewItemSelected.apply(this, arguments);
|
2141
2230
|
}
|
2142
2231
|
function _enterNewItemSelected() {
|
2143
|
-
_enterNewItemSelected = _asyncToGenerator(
|
2232
|
+
_enterNewItemSelected = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee6() {
|
2144
2233
|
var formatItem, valueList, res;
|
2145
2234
|
return regenerator_default().wrap(function _callee6$(_context6) {
|
2146
2235
|
while (1) switch (_context6.prev = _context6.next) {
|
2147
2236
|
case 0:
|
2148
|
-
formatItem =
|
2237
|
+
formatItem = str2SelectedItem(keyword.value);
|
2149
2238
|
valueList = (formatItem === null || formatItem === void 0 ? void 0 : formatItem.values) || [{
|
2150
2239
|
id: keyword.value,
|
2151
2240
|
name: keyword.value
|
@@ -2176,14 +2265,14 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2176
2265
|
return _enterExistingItemSelected.apply(this, arguments);
|
2177
2266
|
}
|
2178
2267
|
function _enterExistingItemSelected() {
|
2179
|
-
_enterExistingItemSelected = _asyncToGenerator(
|
2268
|
+
_enterExistingItemSelected = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee7() {
|
2180
2269
|
var valueList, formatItem, isValid;
|
2181
2270
|
return regenerator_default().wrap(function _callee7$(_context7) {
|
2182
2271
|
while (1) switch (_context7.prev = _context7.next) {
|
2183
2272
|
case 0:
|
2184
2273
|
valueList = [];
|
2185
2274
|
if (usingItem.value.isSpecialType()) {
|
2186
|
-
formatItem =
|
2275
|
+
formatItem = str2SelectedItem(keyword.value);
|
2187
2276
|
if (formatItem) {
|
2188
2277
|
usingItem.value = formatItem;
|
2189
2278
|
valueList = formatItem.values;
|
@@ -2229,15 +2318,16 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2229
2318
|
selection.addRange(range);
|
2230
2319
|
}
|
2231
2320
|
function setInputFocus() {
|
2232
|
-
var
|
2321
|
+
var refreshMenuList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
2233
2322
|
var needCursorToEnd = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
2234
|
-
if (
|
2323
|
+
if (refreshMenuList) {
|
2324
|
+
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
2235
2325
|
setTimeout(setMenuList, 16);
|
2236
2326
|
}
|
2237
2327
|
isFocus.value = true;
|
2238
2328
|
showPopover.value = true;
|
2239
2329
|
showNoSelectValueError.value = false;
|
2240
|
-
needCursorToEnd && (0,external_vue_namespaceObject.nextTick)(setCursorToEnd);
|
2330
|
+
!props.getMenuList && needCursorToEnd && (0,external_vue_namespaceObject.nextTick)(setCursorToEnd);
|
2241
2331
|
emit('focus', isFocus.value);
|
2242
2332
|
}
|
2243
2333
|
function setSelectedItem(item) {
|
@@ -2258,7 +2348,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2258
2348
|
return inputRef.value.innerText = '';
|
2259
2349
|
});
|
2260
2350
|
}
|
2261
|
-
function
|
2351
|
+
function str2SelectedItem(str) {
|
2262
2352
|
var _str$split = str.split(':'),
|
2263
2353
|
_str$split2 = _slicedToArray(_str$split, 2),
|
2264
2354
|
key = _str$split2[0],
|
@@ -2276,8 +2366,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2276
2366
|
return undefined;
|
2277
2367
|
}
|
2278
2368
|
function deleteInputTextNode() {
|
2279
|
-
var _keyword$
|
2280
|
-
if ((_keyword$
|
2369
|
+
var _keyword$value2;
|
2370
|
+
if ((_keyword$value2 = keyword.value) !== null && _keyword$value2 !== void 0 && _keyword$value2.length) {
|
2281
2371
|
keyword.value = '';
|
2282
2372
|
var nodes = Array.from(inputRef.value.childNodes);
|
2283
2373
|
nodes.forEach(function (node) {
|
@@ -2290,13 +2380,13 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2290
2380
|
}
|
2291
2381
|
function inputFocusForWrapper() {
|
2292
2382
|
var _inputRef$value2;
|
2293
|
-
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0
|
2383
|
+
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 ? void 0 : _inputRef$value2.focus();
|
2294
2384
|
}
|
2295
2385
|
function inputEnterForWrapper() {
|
2296
2386
|
return _inputEnterForWrapper.apply(this, arguments);
|
2297
2387
|
}
|
2298
2388
|
function _inputEnterForWrapper() {
|
2299
|
-
_inputEnterForWrapper = _asyncToGenerator(
|
2389
|
+
_inputEnterForWrapper = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee8() {
|
2300
2390
|
return regenerator_default().wrap(function _callee8$(_context8) {
|
2301
2391
|
while (1) switch (_context8.prev = _context8.next) {
|
2302
2392
|
case 0:
|
@@ -2331,13 +2421,19 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2331
2421
|
return v && clearInput();
|
2332
2422
|
});
|
2333
2423
|
}
|
2424
|
+
function refleshMenuHover() {
|
2425
|
+
if (!usingItem.value) {
|
2426
|
+
menuHoverId.value = '';
|
2427
|
+
}
|
2428
|
+
}
|
2334
2429
|
// expose
|
2335
2430
|
expose({
|
2336
2431
|
inputFocusForWrapper: inputFocusForWrapper,
|
2337
2432
|
inputEnterForWrapper: inputEnterForWrapper,
|
2338
2433
|
inputClearForWrapper: inputClearForWrapper,
|
2339
2434
|
handleInputFocus: handleInputFocus,
|
2340
|
-
isFocus: isFocus
|
2435
|
+
isFocus: isFocus,
|
2436
|
+
refleshMenuHover: refleshMenuHover
|
2341
2437
|
});
|
2342
2438
|
return {
|
2343
2439
|
popoverRef: popoverRef,
|
@@ -2360,7 +2456,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2360
2456
|
handleLogicalChange: handleLogicalChange,
|
2361
2457
|
handleInputKeyup: handleInputKeyup,
|
2362
2458
|
handleSelectItem: handleSelectItem,
|
2363
|
-
|
2459
|
+
handleSelectConditionItem: handleSelectConditionItem,
|
2364
2460
|
handleMenuFooterClick: handleMenuFooterClick,
|
2365
2461
|
resolveClassName: resolveClassName,
|
2366
2462
|
inputFocusForWrapper: inputFocusForWrapper,
|
@@ -2368,7 +2464,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2368
2464
|
inputClearForWrapper: inputClearForWrapper,
|
2369
2465
|
deleteInputTextNode: deleteInputTextNode,
|
2370
2466
|
customPanelSubmit: customPanelSubmit,
|
2371
|
-
|
2467
|
+
refleshMenuHover: refleshMenuHover,
|
2468
|
+
t: t,
|
2469
|
+
inputKey: inputKey
|
2372
2470
|
};
|
2373
2471
|
},
|
2374
2472
|
render: function render() {
|
@@ -2387,6 +2485,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2387
2485
|
var inputContent = function inputContent() {
|
2388
2486
|
var _this$keyword2, _this$usingItem, _this$usingItem2;
|
2389
2487
|
return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
2488
|
+
"key": _this.inputKey,
|
2390
2489
|
"ref": "inputRef",
|
2391
2490
|
"class": {
|
2392
2491
|
'div-input': true,
|
@@ -2397,32 +2496,32 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2397
2496
|
"data-placeholder": !inputInnerHtml && !_this.keyword ? _this.placeholder : '',
|
2398
2497
|
"data-tips": placeholder || '',
|
2399
2498
|
"spellcheck": "false",
|
2400
|
-
"onPaste": _this.handleInputPaste,
|
2401
2499
|
"onFocus": _this.handleInputFocus,
|
2402
2500
|
"onInput": _this.handleInputChange,
|
2403
|
-
"onKeydown": _this.handleInputKeyup
|
2501
|
+
"onKeydown": _this.handleInputKeyup,
|
2502
|
+
"onPaste": _this.handleInputPaste
|
2404
2503
|
}, [((_this$usingItem = _this.usingItem) === null || _this$usingItem === void 0 ? void 0 : _this$usingItem.name) && (!_this.usingItem.isSpecialType() ? (0,external_vue_namespaceObject.createVNode)("span", {
|
2504
|
+
"key": _this.usingItem.nameRenderKey,
|
2505
|
+
"style": {
|
2506
|
+
color: '#979BA5'
|
2507
|
+
},
|
2508
|
+
"contenteditable": false,
|
2405
2509
|
"data-key": _this.usingItem.name,
|
2406
2510
|
"data-type": _this.usingItem.type,
|
2407
|
-
"key": _this.usingItem.nameRenderkey,
|
2408
2511
|
"onMousedown": function onMousedown(e) {
|
2409
2512
|
return e.preventDefault();
|
2410
|
-
},
|
2411
|
-
"contenteditable": false,
|
2412
|
-
"style": {
|
2413
|
-
color: '#979BA5'
|
2414
2513
|
}
|
2415
2514
|
}, [_this.usingItem.name, (0,external_vue_namespaceObject.createTextVNode)(":\xA0")]) : (0,external_vue_namespaceObject.createVNode)("span", {
|
2515
|
+
"key": _this.usingItem.nameRenderKey,
|
2416
2516
|
"data-key": _this.usingItem.name,
|
2417
|
-
"data-type": _this.usingItem.type
|
2418
|
-
"key": _this.usingItem.nameRenderkey
|
2517
|
+
"data-type": _this.usingItem.type
|
2419
2518
|
}, [_this.usingItem.name])), (_this$usingItem2 = _this.usingItem) === null || _this$usingItem2 === void 0 || (_this$usingItem2 = _this$usingItem2.values) === null || _this$usingItem2 === void 0 ? void 0 : _this$usingItem2.map(function (item, index) {
|
2420
2519
|
return (0,external_vue_namespaceObject.createVNode)("span", {
|
2421
2520
|
"key": index,
|
2422
|
-
"data-key": item.name,
|
2423
|
-
"data-type": "value",
|
2424
2521
|
"data-id": item.id,
|
2425
|
-
"data-index": index
|
2522
|
+
"data-index": index,
|
2523
|
+
"data-key": item.name,
|
2524
|
+
"data-type": "value"
|
2426
2525
|
}, [item.name, index < _this.usingItem.values.length - 1 ? " ".concat(_this.usingItem.logical, " ") : '']);
|
2427
2526
|
})]), [[(0,external_vue_namespaceObject.resolveDirective)("clickoutside"), _this.handleClickOutside]]);
|
2428
2527
|
};
|
@@ -2450,29 +2549,31 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2450
2549
|
"ref": "popoverRef",
|
2451
2550
|
"class": _this.resolveClassName('search-select-popover')
|
2452
2551
|
}, [(0,external_vue_namespaceObject.createVNode)(menu, {
|
2453
|
-
"
|
2552
|
+
"conditions": showCondition ? _this.conditions : [],
|
2553
|
+
"hoverId": _this.menuHoverId,
|
2454
2554
|
"keyword": _this.keyword,
|
2555
|
+
"list": _this.menuList,
|
2556
|
+
"logical": (_this$usingItem4 = _this.usingItem) === null || _this$usingItem4 === void 0 ? void 0 : _this$usingItem4.logical,
|
2557
|
+
"maxHeight": _this.maxHeight,
|
2455
2558
|
"multiple": !!multiple,
|
2456
|
-
"hoverId": _this.menuHoverId,
|
2457
2559
|
"selected": (values === null || values === void 0 ? void 0 : values.map(function (item) {
|
2458
2560
|
return item.id;
|
2459
2561
|
})) || [],
|
2460
|
-
"conditions": showCondition ? _this.conditions : [],
|
2461
|
-
"logical": (_this$usingItem4 = _this.usingItem) === null || _this$usingItem4 === void 0 ? void 0 : _this$usingItem4.logical,
|
2462
2562
|
"showLogical": (_this$usingItem5 = _this.usingItem) === null || _this$usingItem5 === void 0 ? void 0 : _this$usingItem5.showLogical,
|
2463
|
-
"
|
2563
|
+
"onFooterClick": _this.handleMenuFooterClick,
|
2564
|
+
"onSelectCondition": _this.handleSelectConditionItem,
|
2464
2565
|
"onSelectItem": _this.handleSelectItem,
|
2465
|
-
"
|
2466
|
-
"onFooterClick": _this.handleMenuFooterClick
|
2566
|
+
"onUpdate:logical": _this.handleLogicalChange
|
2467
2567
|
}, null)]) : undefined;
|
2468
2568
|
};
|
2469
2569
|
return (0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], {
|
2470
|
-
"
|
2471
|
-
"theme": "light",
|
2472
|
-
"placement": "bottom-start",
|
2570
|
+
"key": this.inputKey,
|
2473
2571
|
"arrow": false,
|
2474
2572
|
"disableOutsideClick": true,
|
2475
|
-
"isShow": showPopover
|
2573
|
+
"isShow": showPopover,
|
2574
|
+
"placement": "bottom-start",
|
2575
|
+
"theme": "light",
|
2576
|
+
"trigger": "manual"
|
2476
2577
|
}, {
|
2477
2578
|
"default": inputContent,
|
2478
2579
|
content: popoverContent
|
@@ -2528,6 +2629,12 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
2528
2629
|
type: Number,
|
2529
2630
|
"default": -1
|
2530
2631
|
},
|
2632
|
+
maxHeight: {
|
2633
|
+
type: Number,
|
2634
|
+
"default": function _default() {
|
2635
|
+
return 392;
|
2636
|
+
}
|
2637
|
+
},
|
2531
2638
|
conditions: {
|
2532
2639
|
type: Array,
|
2533
2640
|
"default": function _default() {
|
@@ -2551,7 +2658,7 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
2551
2658
|
function handleDeleteSelected(index) {
|
2552
2659
|
emit('delete', index);
|
2553
2660
|
}
|
2554
|
-
function
|
2661
|
+
function handleEditSelected(e, item, index) {
|
2555
2662
|
e.preventDefault();
|
2556
2663
|
e.stopPropagation();
|
2557
2664
|
onEditClick(item, index);
|
@@ -2576,7 +2683,7 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
2576
2683
|
var _selectedInputRef$val;
|
2577
2684
|
return !((_selectedInputRef$val = selectedInputRef.value) !== null && _selectedInputRef$val !== void 0 && _selectedInputRef$val.contains(target));
|
2578
2685
|
}
|
2579
|
-
function
|
2686
|
+
function copySelectedItem(item) {
|
2580
2687
|
var newItem = new SelectedItem(item.searchItem, item.type);
|
2581
2688
|
newItem.values = item.values.slice();
|
2582
2689
|
newItem.logical = item.logical || SearchLogical.OR;
|
@@ -2586,9 +2693,9 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
2586
2693
|
inputRef: inputRef,
|
2587
2694
|
selectedInputRef: selectedInputRef,
|
2588
2695
|
editKey: editKey,
|
2589
|
-
|
2696
|
+
copySelectedItem: copySelectedItem,
|
2590
2697
|
handleDeleteSelected: handleDeleteSelected,
|
2591
|
-
|
2698
|
+
handleEditSelected: handleEditSelected,
|
2592
2699
|
handleInputOutside: handleInputOutside,
|
2593
2700
|
handleAddSelected: handleAddSelected,
|
2594
2701
|
handleInputFocus: handleInputFocus
|
@@ -2598,19 +2705,20 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
2598
2705
|
var _this = this;
|
2599
2706
|
var contentComponent = function contentComponent(item, index) {
|
2600
2707
|
return _this.editKey === "".concat(item.id, "_").concat(index) ? (0,external_vue_namespaceObject.createVNode)("div", {
|
2601
|
-
"class": "selected-input",
|
2602
2708
|
"key": _this.editKey.toString(),
|
2603
|
-
"ref": "selectedInputRef"
|
2709
|
+
"ref": "selectedInputRef",
|
2710
|
+
"class": "selected-input"
|
2604
2711
|
}, [(0,external_vue_namespaceObject.createVNode)(input, {
|
2605
|
-
"ref": "inputRef",
|
2606
2712
|
"key": _this.editKey.toString(),
|
2607
|
-
"
|
2608
|
-
"data": _this.data,
|
2609
|
-
"showCondition": false,
|
2610
|
-
"conditions": _this.conditions,
|
2611
|
-
"defautUsingItem": _this.copySeletedItem(item),
|
2713
|
+
"ref": "inputRef",
|
2612
2714
|
"clickOutside": _this.handleInputOutside,
|
2715
|
+
"conditions": _this.conditions,
|
2716
|
+
"data": _this.data,
|
2717
|
+
"defaultUsingItem": _this.copySelectedItem(item),
|
2613
2718
|
"getMenuList": _this.getMenuList,
|
2719
|
+
"maxHeight": _this.maxHeight,
|
2720
|
+
"mode": SearchInputMode.EDIT,
|
2721
|
+
"showCondition": false,
|
2614
2722
|
"validateValues": _this.validateValues,
|
2615
2723
|
"valueBehavior": _this.valueBehavior,
|
2616
2724
|
"onAdd": function onAdd(v) {
|
@@ -2618,12 +2726,12 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
2618
2726
|
},
|
2619
2727
|
"onFocus": _this.handleInputFocus
|
2620
2728
|
}, selected_objectSpread({}, _this.$slots))]) : (0,external_vue_namespaceObject.createVNode)("li", {
|
2621
|
-
"
|
2622
|
-
"
|
2729
|
+
"key": "".concat(item.id, "_").concat(index),
|
2730
|
+
"class": "search-container-selected ".concat(!(_this.overflowIndex >= 0 ? index < _this.overflowIndex : index >= 0) ? 'hidden-selected' : '')
|
2623
2731
|
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
2624
2732
|
"class": "selected-name",
|
2625
2733
|
"onClick": function onClick(e) {
|
2626
|
-
return _this.
|
2734
|
+
return _this.handleEditSelected(e, item, index);
|
2627
2735
|
}
|
2628
2736
|
}, [item.inputInnerText]), (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Error, {
|
2629
2737
|
"class": "selected-clear",
|
@@ -2644,6 +2752,9 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
2644
2752
|
|
2645
2753
|
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; }
|
2646
2754
|
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; }
|
2755
|
+
function search_select_createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = search_select_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
2756
|
+
function search_select_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return search_select_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? search_select_arrayLikeToArray(r, a) : void 0; } }
|
2757
|
+
function search_select_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
2647
2758
|
/*
|
2648
2759
|
* Tencent is pleased to support the open source community by making
|
2649
2760
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2679,7 +2790,9 @@ function search_select_objectSpread(e) { for (var r = 1; r < arguments.length; r
|
|
2679
2790
|
|
2680
2791
|
|
2681
2792
|
var INPUT_PADDING_WIDTH = 40;
|
2682
|
-
var
|
2793
|
+
var SELECTED_MARGIN_RIGHT = 6;
|
2794
|
+
var INPUT_MIN_HEIGHT = 26;
|
2795
|
+
var MENU_ITEM_MIN_HEIGHT = 32;
|
2683
2796
|
var SearchSelectProps = {
|
2684
2797
|
data: {
|
2685
2798
|
type: Array,
|
@@ -2693,17 +2806,10 @@ var SearchSelectProps = {
|
|
2693
2806
|
return [];
|
2694
2807
|
}
|
2695
2808
|
},
|
2696
|
-
shrink: {
|
2697
|
-
type: Boolean,
|
2698
|
-
"default": true
|
2699
|
-
},
|
2700
2809
|
maxHeight: {
|
2701
2810
|
type: Number,
|
2702
|
-
|
2703
|
-
|
2704
|
-
minHeight: {
|
2705
|
-
type: Number,
|
2706
|
-
"default": 26
|
2811
|
+
// 默认展示12条,加上列表8px的padding
|
2812
|
+
"default": MENU_ITEM_MIN_HEIGHT * 12 + 8
|
2707
2813
|
},
|
2708
2814
|
conditions: {
|
2709
2815
|
type: Array,
|
@@ -2726,7 +2832,7 @@ var SearchSelectProps = {
|
|
2726
2832
|
type: String,
|
2727
2833
|
"default": ValueBehavior.ALL,
|
2728
2834
|
validator: function validator(v) {
|
2729
|
-
return [ValueBehavior.ALL, ValueBehavior.
|
2835
|
+
return [ValueBehavior.ALL, ValueBehavior.NEED_KEY].includes(v);
|
2730
2836
|
}
|
2731
2837
|
}
|
2732
2838
|
// deleteBehavior: {
|
@@ -2776,13 +2882,24 @@ var SearchSelectProps = {
|
|
2776
2882
|
(0,external_vue_namespaceObject.watch)(function () {
|
2777
2883
|
return props.data;
|
2778
2884
|
}, function () {
|
2779
|
-
var _copyData$value;
|
2780
2885
|
copyData.value = JSON.parse(JSON.stringify(props.data));
|
2781
|
-
|
2782
|
-
|
2783
|
-
|
2784
|
-
|
2785
|
-
|
2886
|
+
var _iterator = search_select_createForOfIteratorHelper(copyData.value || []),
|
2887
|
+
_step;
|
2888
|
+
try {
|
2889
|
+
var _loop = function _loop() {
|
2890
|
+
var item = _step.value;
|
2891
|
+
item.isSelected = props.uniqueSelect && props.modelValue.some(function (set) {
|
2892
|
+
return set.id === item.id;
|
2893
|
+
});
|
2894
|
+
};
|
2895
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
2896
|
+
_loop();
|
2897
|
+
}
|
2898
|
+
} catch (err) {
|
2899
|
+
_iterator.e(err);
|
2900
|
+
} finally {
|
2901
|
+
_iterator.f();
|
2902
|
+
}
|
2786
2903
|
}, {
|
2787
2904
|
immediate: true
|
2788
2905
|
});
|
@@ -2791,50 +2908,84 @@ var SearchSelectProps = {
|
|
2791
2908
|
return props.modelValue;
|
2792
2909
|
}, function (v) {
|
2793
2910
|
if (!(v !== null && v !== void 0 && v.length)) {
|
2794
|
-
var _copyData$value2;
|
2795
2911
|
selectedList.value = [];
|
2796
|
-
|
2797
|
-
|
2798
|
-
|
2912
|
+
var _iterator2 = search_select_createForOfIteratorHelper(copyData.value || []),
|
2913
|
+
_step2;
|
2914
|
+
try {
|
2915
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
2916
|
+
var item = _step2.value;
|
2917
|
+
item.isSelected = false;
|
2918
|
+
}
|
2919
|
+
} catch (err) {
|
2920
|
+
_iterator2.e(err);
|
2921
|
+
} finally {
|
2922
|
+
_iterator2.f();
|
2923
|
+
}
|
2799
2924
|
return;
|
2800
2925
|
}
|
2801
2926
|
var list = [];
|
2802
|
-
|
2803
|
-
|
2804
|
-
|
2805
|
-
|
2806
|
-
|
2807
|
-
|
2808
|
-
|
2809
|
-
list.push(seleted);
|
2810
|
-
} else {
|
2811
|
-
var _item$values;
|
2812
|
-
var searchItem = props.data.find(function (set) {
|
2813
|
-
return set.id === item.id;
|
2927
|
+
var _iterator3 = search_select_createForOfIteratorHelper(v),
|
2928
|
+
_step3;
|
2929
|
+
try {
|
2930
|
+
var _loop2 = function _loop2() {
|
2931
|
+
var item = _step3.value;
|
2932
|
+
var selected = selectedList.value.find(function (set) {
|
2933
|
+
return set.id === item.id && set.name === item.name;
|
2814
2934
|
});
|
2815
|
-
|
2816
|
-
|
2817
|
-
|
2935
|
+
if ((selected === null || selected === void 0 ? void 0 : selected.toValueKey()) === JSON.stringify(item)) {
|
2936
|
+
selected.values = item.values || [];
|
2937
|
+
selected.logical = item.logical || SearchLogical.OR;
|
2938
|
+
list.push(selected);
|
2939
|
+
} else {
|
2940
|
+
var _item$values;
|
2941
|
+
var searchItem = props.data.find(function (set) {
|
2818
2942
|
return set.id === item.id;
|
2819
2943
|
});
|
2820
|
-
|
2821
|
-
|
2822
|
-
|
2823
|
-
|
2944
|
+
var searchType = 'default';
|
2945
|
+
if (!searchItem) {
|
2946
|
+
searchItem = props.conditions.find(function (set) {
|
2947
|
+
return set.id === item.id;
|
2948
|
+
});
|
2949
|
+
if (searchItem) {
|
2950
|
+
searchType = 'condition';
|
2951
|
+
}
|
2952
|
+
}
|
2953
|
+
if (!searchItem && !((_item$values = item.values) !== null && _item$values !== void 0 && _item$values.length)) {
|
2954
|
+
searchType = 'text';
|
2955
|
+
}
|
2956
|
+
var newSelected = new SelectedItem(searchItem || item, searchType);
|
2957
|
+
newSelected.values = item.values || [];
|
2958
|
+
newSelected.logical = item.logical || SearchLogical.OR;
|
2959
|
+
list.push(newSelected);
|
2824
2960
|
}
|
2825
|
-
|
2826
|
-
|
2827
|
-
|
2828
|
-
list.push(newSelected);
|
2961
|
+
};
|
2962
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
2963
|
+
_loop2();
|
2829
2964
|
}
|
2830
|
-
})
|
2965
|
+
} catch (err) {
|
2966
|
+
_iterator3.e(err);
|
2967
|
+
} finally {
|
2968
|
+
_iterator3.f();
|
2969
|
+
}
|
2831
2970
|
selectedList.value = list;
|
2832
2971
|
copyData.value = JSON.parse(JSON.stringify(props.data || []));
|
2833
|
-
copyData.value
|
2834
|
-
|
2835
|
-
|
2836
|
-
|
2837
|
-
|
2972
|
+
var _iterator4 = search_select_createForOfIteratorHelper(copyData.value),
|
2973
|
+
_step4;
|
2974
|
+
try {
|
2975
|
+
var _loop3 = function _loop3() {
|
2976
|
+
var item = _step4.value;
|
2977
|
+
item.isSelected = props.uniqueSelect && !!list.some(function (set) {
|
2978
|
+
return set.id === item.id;
|
2979
|
+
});
|
2980
|
+
};
|
2981
|
+
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
2982
|
+
_loop3();
|
2983
|
+
}
|
2984
|
+
} catch (err) {
|
2985
|
+
_iterator4.e(err);
|
2986
|
+
} finally {
|
2987
|
+
_iterator4.f();
|
2988
|
+
}
|
2838
2989
|
}, {
|
2839
2990
|
immediate: true,
|
2840
2991
|
deep: true
|
@@ -2842,6 +2993,7 @@ var SearchSelectProps = {
|
|
2842
2993
|
// life hooks
|
2843
2994
|
(0,external_vue_namespaceObject.onMounted)(function () {
|
2844
2995
|
addListener(wrapRef.value.querySelector(".".concat(resolveClassName('search-select-container'))), debounceResize);
|
2996
|
+
debounceResize();
|
2845
2997
|
});
|
2846
2998
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
2847
2999
|
removeListener(wrapRef.value.querySelector(".".concat(resolveClassName('search-select-container'))), debounceResize);
|
@@ -2883,18 +3035,18 @@ var SearchSelectProps = {
|
|
2883
3035
|
return;
|
2884
3036
|
}
|
2885
3037
|
var inputEl = wrapRef.value.querySelector(".".concat(resolveClassName('search-select-container')));
|
2886
|
-
var maxWidth = wrapRef.value.querySelector('.search-container').clientWidth -
|
3038
|
+
var maxWidth = wrapRef.value.querySelector('.search-container').clientWidth - SELECTED_MARGIN_RIGHT - 2;
|
2887
3039
|
var tagList = inputEl.querySelectorAll('.search-container-selected:not(.overflow-selected)');
|
2888
3040
|
var width = 0;
|
2889
3041
|
var index = 0;
|
2890
3042
|
var i = 0;
|
2891
3043
|
while (index === 0 && width <= maxWidth - INPUT_PADDING_WIDTH && i <= tagList.length - 1) {
|
2892
3044
|
var el = tagList[i];
|
2893
|
-
if (el.clientHeight >
|
3045
|
+
if (el.clientHeight > INPUT_MIN_HEIGHT) {
|
2894
3046
|
overflowIndex.value = i;
|
2895
3047
|
return;
|
2896
3048
|
}
|
2897
|
-
width += el ? el.clientWidth +
|
3049
|
+
width += el ? el.clientWidth + SELECTED_MARGIN_RIGHT : 0;
|
2898
3050
|
if (width >= maxWidth - INPUT_PADDING_WIDTH) {
|
2899
3051
|
index = i;
|
2900
3052
|
}
|
@@ -2933,15 +3085,18 @@ var SearchSelectProps = {
|
|
2933
3085
|
var list = selectedList.value.slice();
|
2934
3086
|
list.splice(typeof index === 'number' ? index : selectedList.value.length - 1, 1);
|
2935
3087
|
onValidate('');
|
3088
|
+
inputRef.value.refleshMenuHover();
|
2936
3089
|
emit('update:modelValue', list.map(function (item) {
|
2937
3090
|
return item.toValue();
|
2938
3091
|
}));
|
2939
3092
|
}
|
2940
3093
|
function handleInputFocus(v) {
|
2941
|
-
|
3094
|
+
if (v) {
|
3095
|
+
overflowIndex.value = -1;
|
3096
|
+
}
|
2942
3097
|
if (v === false) {
|
2943
3098
|
var _wrapRef$value$queryS;
|
2944
|
-
(_wrapRef$value$queryS = wrapRef.value.querySelector(".".concat(resolveClassName('search-select-container')))) === null || _wrapRef$value$queryS === void 0
|
3099
|
+
(_wrapRef$value$queryS = wrapRef.value.querySelector(".".concat(resolveClassName('search-select-container')))) === null || _wrapRef$value$queryS === void 0 ? void 0 : _wrapRef$value$queryS.scrollTo(0, 0);
|
2945
3100
|
}
|
2946
3101
|
isFocus.value = v;
|
2947
3102
|
}
|
@@ -2978,9 +3133,10 @@ var SearchSelectProps = {
|
|
2978
3133
|
},
|
2979
3134
|
render: function render() {
|
2980
3135
|
var _this = this,
|
3136
|
+
_ref2,
|
2981
3137
|
_this$$slots$prepend,
|
2982
3138
|
_this$$slots2;
|
2983
|
-
var maxHeight = "".concat(
|
3139
|
+
var maxHeight = "".concat(this.isFocus ? this.maxHeight : INPUT_MIN_HEIGHT).replace('px', '');
|
2984
3140
|
var showCondition = !!this.selectedList.length && this.selectedList.slice(-1)[0].type !== 'condition';
|
2985
3141
|
var menuSlots = Object.assign({}, this.$slots.menu ? {
|
2986
3142
|
menu: function menu(data) {
|
@@ -2990,24 +3146,25 @@ var SearchSelectProps = {
|
|
2990
3146
|
} : {});
|
2991
3147
|
// render
|
2992
3148
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
2993
|
-
"
|
2994
|
-
"
|
3149
|
+
"ref": "wrapRef",
|
3150
|
+
"class": this.resolveClassName('search-select')
|
2995
3151
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
2996
|
-
"class":
|
3152
|
+
"class": (_ref2 = {}, _defineProperty(_ref2, this.resolveClassName('search-select-container'), true), _defineProperty(_ref2, 'is-focus', this.isFocus), _ref2),
|
2997
3153
|
"onClick": this.handleWrapClick
|
2998
3154
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
2999
3155
|
"class": "search-prefix"
|
3000
3156
|
}, [(_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", {
|
3001
|
-
"class": "search-container",
|
3002
3157
|
"style": {
|
3003
|
-
|
3004
|
-
}
|
3158
|
+
'max-height': "".concat(maxHeight, "px")
|
3159
|
+
},
|
3160
|
+
"class": "search-container"
|
3005
3161
|
}, [(0,external_vue_namespaceObject.createVNode)(selected, {
|
3006
|
-
"data": this.copyData,
|
3007
3162
|
"conditions": this.localConditions,
|
3008
|
-
"
|
3009
|
-
"overflowIndex": this.overflowIndex,
|
3163
|
+
"data": this.copyData,
|
3010
3164
|
"getMenuList": this.getMenuList,
|
3165
|
+
"maxHeight": this.maxHeight,
|
3166
|
+
"overflowIndex": this.overflowIndex,
|
3167
|
+
"selectedList": this.selectedList,
|
3011
3168
|
"validateValues": this.validateValues,
|
3012
3169
|
"valueBehavior": this.valueBehavior,
|
3013
3170
|
"onDelete": this.handleDeleteSelected,
|
@@ -3016,13 +3173,14 @@ var SearchSelectProps = {
|
|
3016
3173
|
"class": "search-container-input"
|
3017
3174
|
}, [(0,external_vue_namespaceObject.createVNode)(input, {
|
3018
3175
|
"ref": "inputRef",
|
3019
|
-
"data": this.copyData,
|
3020
|
-
"showInputBefore": !this.selectedList.length,
|
3021
|
-
"showCondition": showCondition,
|
3022
|
-
"conditions": this.localConditions,
|
3023
|
-
"placeholder": this.placeholder || this.t.pleaseSelect,
|
3024
3176
|
"clickOutside": this.handleInputOutside,
|
3177
|
+
"conditions": this.localConditions,
|
3178
|
+
"data": this.copyData,
|
3025
3179
|
"getMenuList": this.getMenuList,
|
3180
|
+
"maxHeight": this.maxHeight,
|
3181
|
+
"placeholder": this.placeholder || this.t.pleaseSelect,
|
3182
|
+
"showCondition": showCondition,
|
3183
|
+
"showInputBefore": !this.selectedList.length,
|
3026
3184
|
"validateValues": this.validateValues,
|
3027
3185
|
"valueBehavior": this.valueBehavior,
|
3028
3186
|
"onAdd": this.handleAddSelected,
|
@@ -3035,8 +3193,8 @@ var SearchSelectProps = {
|
|
3035
3193
|
"class": "search-clear",
|
3036
3194
|
"onClick": this.handleClearAll
|
3037
3195
|
}, null), this.$slots.append ? this.$slots.append() : (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Search, {
|
3038
|
-
"
|
3039
|
-
"
|
3196
|
+
"class": "search-nextfix-icon ".concat(this.isFocus ? 'is-focus' : ''),
|
3197
|
+
"onClick": this.handleClickSearch
|
3040
3198
|
}, null)])]), !!this.validateStr.length && (0,external_vue_namespaceObject.createVNode)("div", {
|
3041
3199
|
"class": this.resolveClassName('search-select-tips')
|
3042
3200
|
}, [this.$slots.validate ? this.$slots.validate() : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.ExclamationCircleShape, {
|