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
package/lib/input/index.js
CHANGED
@@ -5,395 +5,10 @@ import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
8
|
-
/******/
|
9
|
-
|
10
|
-
/***/ 7609:
|
11
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
12
|
-
|
13
|
-
var _typeof = (__webpack_require__(7425)["default"]);
|
14
|
-
function _regeneratorRuntime() {
|
15
|
-
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
16
|
-
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
17
|
-
return e;
|
18
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
19
|
-
var t,
|
20
|
-
e = {},
|
21
|
-
r = Object.prototype,
|
22
|
-
n = r.hasOwnProperty,
|
23
|
-
o = Object.defineProperty || function (t, e, r) {
|
24
|
-
t[e] = r.value;
|
25
|
-
},
|
26
|
-
i = "function" == typeof Symbol ? Symbol : {},
|
27
|
-
a = i.iterator || "@@iterator",
|
28
|
-
c = i.asyncIterator || "@@asyncIterator",
|
29
|
-
u = i.toStringTag || "@@toStringTag";
|
30
|
-
function define(t, e, r) {
|
31
|
-
return Object.defineProperty(t, e, {
|
32
|
-
value: r,
|
33
|
-
enumerable: !0,
|
34
|
-
configurable: !0,
|
35
|
-
writable: !0
|
36
|
-
}), t[e];
|
37
|
-
}
|
38
|
-
try {
|
39
|
-
define({}, "");
|
40
|
-
} catch (t) {
|
41
|
-
define = function define(t, e, r) {
|
42
|
-
return t[e] = r;
|
43
|
-
};
|
44
|
-
}
|
45
|
-
function wrap(t, e, r, n) {
|
46
|
-
var i = e && e.prototype instanceof Generator ? e : Generator,
|
47
|
-
a = Object.create(i.prototype),
|
48
|
-
c = new Context(n || []);
|
49
|
-
return o(a, "_invoke", {
|
50
|
-
value: makeInvokeMethod(t, r, c)
|
51
|
-
}), a;
|
52
|
-
}
|
53
|
-
function tryCatch(t, e, r) {
|
54
|
-
try {
|
55
|
-
return {
|
56
|
-
type: "normal",
|
57
|
-
arg: t.call(e, r)
|
58
|
-
};
|
59
|
-
} catch (t) {
|
60
|
-
return {
|
61
|
-
type: "throw",
|
62
|
-
arg: t
|
63
|
-
};
|
64
|
-
}
|
65
|
-
}
|
66
|
-
e.wrap = wrap;
|
67
|
-
var h = "suspendedStart",
|
68
|
-
l = "suspendedYield",
|
69
|
-
f = "executing",
|
70
|
-
s = "completed",
|
71
|
-
y = {};
|
72
|
-
function Generator() {}
|
73
|
-
function GeneratorFunction() {}
|
74
|
-
function GeneratorFunctionPrototype() {}
|
75
|
-
var p = {};
|
76
|
-
define(p, a, function () {
|
77
|
-
return this;
|
78
|
-
});
|
79
|
-
var d = Object.getPrototypeOf,
|
80
|
-
v = d && d(d(values([])));
|
81
|
-
v && v !== r && n.call(v, a) && (p = v);
|
82
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
83
|
-
function defineIteratorMethods(t) {
|
84
|
-
["next", "throw", "return"].forEach(function (e) {
|
85
|
-
define(t, e, function (t) {
|
86
|
-
return this._invoke(e, t);
|
87
|
-
});
|
88
|
-
});
|
89
|
-
}
|
90
|
-
function AsyncIterator(t, e) {
|
91
|
-
function invoke(r, o, i, a) {
|
92
|
-
var c = tryCatch(t[r], t, o);
|
93
|
-
if ("throw" !== c.type) {
|
94
|
-
var u = c.arg,
|
95
|
-
h = u.value;
|
96
|
-
return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
97
|
-
invoke("next", t, i, a);
|
98
|
-
}, function (t) {
|
99
|
-
invoke("throw", t, i, a);
|
100
|
-
}) : e.resolve(h).then(function (t) {
|
101
|
-
u.value = t, i(u);
|
102
|
-
}, function (t) {
|
103
|
-
return invoke("throw", t, i, a);
|
104
|
-
});
|
105
|
-
}
|
106
|
-
a(c.arg);
|
107
|
-
}
|
108
|
-
var r;
|
109
|
-
o(this, "_invoke", {
|
110
|
-
value: function value(t, n) {
|
111
|
-
function callInvokeWithMethodAndArg() {
|
112
|
-
return new e(function (e, r) {
|
113
|
-
invoke(t, n, e, r);
|
114
|
-
});
|
115
|
-
}
|
116
|
-
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
117
|
-
}
|
118
|
-
});
|
119
|
-
}
|
120
|
-
function makeInvokeMethod(e, r, n) {
|
121
|
-
var o = h;
|
122
|
-
return function (i, a) {
|
123
|
-
if (o === f) throw new Error("Generator is already running");
|
124
|
-
if (o === s) {
|
125
|
-
if ("throw" === i) throw a;
|
126
|
-
return {
|
127
|
-
value: t,
|
128
|
-
done: !0
|
129
|
-
};
|
130
|
-
}
|
131
|
-
for (n.method = i, n.arg = a;;) {
|
132
|
-
var c = n.delegate;
|
133
|
-
if (c) {
|
134
|
-
var u = maybeInvokeDelegate(c, n);
|
135
|
-
if (u) {
|
136
|
-
if (u === y) continue;
|
137
|
-
return u;
|
138
|
-
}
|
139
|
-
}
|
140
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
141
|
-
if (o === h) throw o = s, n.arg;
|
142
|
-
n.dispatchException(n.arg);
|
143
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
144
|
-
o = f;
|
145
|
-
var p = tryCatch(e, r, n);
|
146
|
-
if ("normal" === p.type) {
|
147
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
148
|
-
return {
|
149
|
-
value: p.arg,
|
150
|
-
done: n.done
|
151
|
-
};
|
152
|
-
}
|
153
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
154
|
-
}
|
155
|
-
};
|
156
|
-
}
|
157
|
-
function maybeInvokeDelegate(e, r) {
|
158
|
-
var n = r.method,
|
159
|
-
o = e.iterator[n];
|
160
|
-
if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
161
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
162
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
163
|
-
var a = i.arg;
|
164
|
-
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
165
|
-
}
|
166
|
-
function pushTryEntry(t) {
|
167
|
-
var e = {
|
168
|
-
tryLoc: t[0]
|
169
|
-
};
|
170
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
171
|
-
}
|
172
|
-
function resetTryEntry(t) {
|
173
|
-
var e = t.completion || {};
|
174
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
175
|
-
}
|
176
|
-
function Context(t) {
|
177
|
-
this.tryEntries = [{
|
178
|
-
tryLoc: "root"
|
179
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
180
|
-
}
|
181
|
-
function values(e) {
|
182
|
-
if (e || "" === e) {
|
183
|
-
var r = e[a];
|
184
|
-
if (r) return r.call(e);
|
185
|
-
if ("function" == typeof e.next) return e;
|
186
|
-
if (!isNaN(e.length)) {
|
187
|
-
var o = -1,
|
188
|
-
i = function next() {
|
189
|
-
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
190
|
-
return next.value = t, next.done = !0, next;
|
191
|
-
};
|
192
|
-
return i.next = i;
|
193
|
-
}
|
194
|
-
}
|
195
|
-
throw new TypeError(_typeof(e) + " is not iterable");
|
196
|
-
}
|
197
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
198
|
-
value: GeneratorFunctionPrototype,
|
199
|
-
configurable: !0
|
200
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
201
|
-
value: GeneratorFunction,
|
202
|
-
configurable: !0
|
203
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
204
|
-
var e = "function" == typeof t && t.constructor;
|
205
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
206
|
-
}, e.mark = function (t) {
|
207
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
208
|
-
}, e.awrap = function (t) {
|
209
|
-
return {
|
210
|
-
__await: t
|
211
|
-
};
|
212
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
213
|
-
return this;
|
214
|
-
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
215
|
-
void 0 === i && (i = Promise);
|
216
|
-
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
217
|
-
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
218
|
-
return t.done ? t.value : a.next();
|
219
|
-
});
|
220
|
-
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
221
|
-
return this;
|
222
|
-
}), define(g, "toString", function () {
|
223
|
-
return "[object Generator]";
|
224
|
-
}), e.keys = function (t) {
|
225
|
-
var e = Object(t),
|
226
|
-
r = [];
|
227
|
-
for (var n in e) r.push(n);
|
228
|
-
return r.reverse(), function next() {
|
229
|
-
for (; r.length;) {
|
230
|
-
var t = r.pop();
|
231
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
232
|
-
}
|
233
|
-
return next.done = !0, next;
|
234
|
-
};
|
235
|
-
}, e.values = values, Context.prototype = {
|
236
|
-
constructor: Context,
|
237
|
-
reset: function reset(e) {
|
238
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
239
|
-
},
|
240
|
-
stop: function stop() {
|
241
|
-
this.done = !0;
|
242
|
-
var t = this.tryEntries[0].completion;
|
243
|
-
if ("throw" === t.type) throw t.arg;
|
244
|
-
return this.rval;
|
245
|
-
},
|
246
|
-
dispatchException: function dispatchException(e) {
|
247
|
-
if (this.done) throw e;
|
248
|
-
var r = this;
|
249
|
-
function handle(n, o) {
|
250
|
-
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
251
|
-
}
|
252
|
-
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
253
|
-
var i = this.tryEntries[o],
|
254
|
-
a = i.completion;
|
255
|
-
if ("root" === i.tryLoc) return handle("end");
|
256
|
-
if (i.tryLoc <= this.prev) {
|
257
|
-
var c = n.call(i, "catchLoc"),
|
258
|
-
u = n.call(i, "finallyLoc");
|
259
|
-
if (c && u) {
|
260
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
261
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
262
|
-
} else if (c) {
|
263
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
264
|
-
} else {
|
265
|
-
if (!u) throw new Error("try statement without catch or finally");
|
266
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
267
|
-
}
|
268
|
-
}
|
269
|
-
}
|
270
|
-
},
|
271
|
-
abrupt: function abrupt(t, e) {
|
272
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
273
|
-
var o = this.tryEntries[r];
|
274
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
275
|
-
var i = o;
|
276
|
-
break;
|
277
|
-
}
|
278
|
-
}
|
279
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
280
|
-
var a = i ? i.completion : {};
|
281
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
282
|
-
},
|
283
|
-
complete: function complete(t, e) {
|
284
|
-
if ("throw" === t.type) throw t.arg;
|
285
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
286
|
-
},
|
287
|
-
finish: function finish(t) {
|
288
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
289
|
-
var r = this.tryEntries[e];
|
290
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
291
|
-
}
|
292
|
-
},
|
293
|
-
"catch": function _catch(t) {
|
294
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
295
|
-
var r = this.tryEntries[e];
|
296
|
-
if (r.tryLoc === t) {
|
297
|
-
var n = r.completion;
|
298
|
-
if ("throw" === n.type) {
|
299
|
-
var o = n.arg;
|
300
|
-
resetTryEntry(r);
|
301
|
-
}
|
302
|
-
return o;
|
303
|
-
}
|
304
|
-
}
|
305
|
-
throw new Error("illegal catch attempt");
|
306
|
-
},
|
307
|
-
delegateYield: function delegateYield(e, r, n) {
|
308
|
-
return this.delegate = {
|
309
|
-
iterator: values(e),
|
310
|
-
resultName: r,
|
311
|
-
nextLoc: n
|
312
|
-
}, "next" === this.method && (this.arg = t), y;
|
313
|
-
}
|
314
|
-
}, e;
|
315
|
-
}
|
316
|
-
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
317
|
-
|
318
|
-
/***/ }),
|
319
|
-
|
320
|
-
/***/ 7425:
|
321
|
-
/***/ ((module) => {
|
322
|
-
|
323
|
-
function _typeof(o) {
|
324
|
-
"@babel/helpers - typeof";
|
325
|
-
|
326
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
327
|
-
return typeof o;
|
328
|
-
} : function (o) {
|
329
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
330
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
|
331
|
-
}
|
332
|
-
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
333
|
-
|
334
|
-
/***/ }),
|
335
|
-
|
336
|
-
/***/ 2841:
|
337
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
338
|
-
|
339
|
-
// TODO(Babel 8): Remove this file.
|
340
|
-
|
341
|
-
var runtime = __webpack_require__(7609)();
|
342
|
-
module.exports = runtime;
|
343
|
-
|
344
|
-
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
345
|
-
try {
|
346
|
-
regeneratorRuntime = runtime;
|
347
|
-
} catch (accidentalStrictMode) {
|
348
|
-
if (typeof globalThis === "object") {
|
349
|
-
globalThis.regeneratorRuntime = runtime;
|
350
|
-
} else {
|
351
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
352
|
-
}
|
353
|
-
}
|
354
|
-
|
355
|
-
|
356
|
-
/***/ })
|
357
|
-
|
358
|
-
/******/ });
|
359
|
-
/************************************************************************/
|
360
|
-
/******/ // The module cache
|
361
|
-
/******/ var __webpack_module_cache__ = {};
|
362
|
-
/******/
|
363
|
-
/******/ // The require function
|
364
|
-
/******/ function __webpack_require__(moduleId) {
|
365
|
-
/******/ // Check if module is in cache
|
366
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
367
|
-
/******/ if (cachedModule !== undefined) {
|
368
|
-
/******/ return cachedModule.exports;
|
369
|
-
/******/ }
|
370
|
-
/******/ // Create a new module (and put it into the cache)
|
371
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
372
|
-
/******/ // no module.id needed
|
373
|
-
/******/ // no module.loaded needed
|
374
|
-
/******/ exports: {}
|
375
|
-
/******/ };
|
376
|
-
/******/
|
377
|
-
/******/ // Execute the module function
|
378
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
379
|
-
/******/
|
380
|
-
/******/ // Return the exports of the module
|
381
|
-
/******/ return module.exports;
|
382
|
-
/******/ }
|
8
|
+
/******/ // The require scope
|
9
|
+
/******/ var __webpack_require__ = {};
|
383
10
|
/******/
|
384
11
|
/************************************************************************/
|
385
|
-
/******/ /* webpack/runtime/compat get default export */
|
386
|
-
/******/ (() => {
|
387
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
388
|
-
/******/ __webpack_require__.n = (module) => {
|
389
|
-
/******/ var getter = module && module.__esModule ?
|
390
|
-
/******/ () => (module['default']) :
|
391
|
-
/******/ () => (module);
|
392
|
-
/******/ __webpack_require__.d(getter, { a: getter });
|
393
|
-
/******/ return getter;
|
394
|
-
/******/ };
|
395
|
-
/******/ })();
|
396
|
-
/******/
|
397
12
|
/******/ /* webpack/runtime/define property getters */
|
398
13
|
/******/ (() => {
|
399
14
|
/******/ // define getter functions for harmony exports
|
@@ -413,8 +28,6 @@ try {
|
|
413
28
|
/******/
|
414
29
|
/************************************************************************/
|
415
30
|
var __webpack_exports__ = {};
|
416
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
417
|
-
(() => {
|
418
31
|
|
419
32
|
// EXPORTS
|
420
33
|
__webpack_require__.d(__webpack_exports__, {
|
@@ -430,31 +43,31 @@ function _arrayWithHoles(arr) {
|
|
430
43
|
if (Array.isArray(arr)) return arr;
|
431
44
|
}
|
432
45
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
433
|
-
function _iterableToArrayLimit(
|
434
|
-
var
|
435
|
-
if (null !=
|
436
|
-
var
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
46
|
+
function _iterableToArrayLimit(arr, i) {
|
47
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
48
|
+
if (null != _i) {
|
49
|
+
var _s,
|
50
|
+
_e,
|
51
|
+
_x,
|
52
|
+
_r,
|
53
|
+
_arr = [],
|
54
|
+
_n = !0,
|
55
|
+
_d = !1;
|
443
56
|
try {
|
444
|
-
if (
|
445
|
-
if (Object(
|
446
|
-
|
447
|
-
} else for (; !(
|
448
|
-
} catch (
|
449
|
-
|
57
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
58
|
+
if (Object(_i) !== _i) return;
|
59
|
+
_n = !1;
|
60
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
61
|
+
} catch (err) {
|
62
|
+
_d = !0, _e = err;
|
450
63
|
} finally {
|
451
64
|
try {
|
452
|
-
if (!
|
65
|
+
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
|
453
66
|
} finally {
|
454
|
-
if (
|
67
|
+
if (_d) throw _e;
|
455
68
|
}
|
456
69
|
}
|
457
|
-
return
|
70
|
+
return _arr;
|
458
71
|
}
|
459
72
|
}
|
460
73
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
@@ -485,37 +98,6 @@ function _nonIterableRest() {
|
|
485
98
|
function _slicedToArray(arr, i) {
|
486
99
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
487
100
|
}
|
488
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
489
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
490
|
-
try {
|
491
|
-
var info = gen[key](arg);
|
492
|
-
var value = info.value;
|
493
|
-
} catch (error) {
|
494
|
-
reject(error);
|
495
|
-
return;
|
496
|
-
}
|
497
|
-
if (info.done) {
|
498
|
-
resolve(value);
|
499
|
-
} else {
|
500
|
-
Promise.resolve(value).then(_next, _throw);
|
501
|
-
}
|
502
|
-
}
|
503
|
-
function _asyncToGenerator(fn) {
|
504
|
-
return function () {
|
505
|
-
var self = this,
|
506
|
-
args = arguments;
|
507
|
-
return new Promise(function (resolve, reject) {
|
508
|
-
var gen = fn.apply(self, args);
|
509
|
-
function _next(value) {
|
510
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
511
|
-
}
|
512
|
-
function _throw(err) {
|
513
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
514
|
-
}
|
515
|
-
_next(undefined);
|
516
|
-
});
|
517
|
-
};
|
518
|
-
}
|
519
101
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
520
102
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
521
103
|
if (source == null) return {};
|
@@ -547,38 +129,38 @@ function _objectWithoutProperties(source, excluded) {
|
|
547
129
|
return target;
|
548
130
|
}
|
549
131
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
550
|
-
function _typeof(
|
132
|
+
function _typeof(obj) {
|
551
133
|
"@babel/helpers - typeof";
|
552
134
|
|
553
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
554
|
-
return typeof
|
555
|
-
} : function (
|
556
|
-
return
|
557
|
-
}, _typeof(
|
135
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
136
|
+
return typeof obj;
|
137
|
+
} : function (obj) {
|
138
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
139
|
+
}, _typeof(obj);
|
558
140
|
}
|
559
141
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
560
142
|
|
561
|
-
function
|
562
|
-
if ("object"
|
563
|
-
var
|
564
|
-
if (
|
565
|
-
var
|
566
|
-
if ("object"
|
143
|
+
function _toPrimitive(input, hint) {
|
144
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
145
|
+
var prim = input[Symbol.toPrimitive];
|
146
|
+
if (prim !== undefined) {
|
147
|
+
var res = prim.call(input, hint || "default");
|
148
|
+
if (_typeof(res) !== "object") return res;
|
567
149
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
568
150
|
}
|
569
|
-
return ("string"
|
151
|
+
return (hint === "string" ? String : Number)(input);
|
570
152
|
}
|
571
153
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
572
154
|
|
573
155
|
|
574
|
-
function
|
575
|
-
var
|
576
|
-
return "symbol"
|
156
|
+
function _toPropertyKey(arg) {
|
157
|
+
var key = _toPrimitive(arg, "string");
|
158
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
577
159
|
}
|
578
160
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
579
161
|
|
580
162
|
function _defineProperty(obj, key, value) {
|
581
|
-
key =
|
163
|
+
key = _toPropertyKey(key);
|
582
164
|
if (key in obj) {
|
583
165
|
Object.defineProperty(obj, key, {
|
584
166
|
value: value,
|
@@ -594,10 +176,7 @@ function _defineProperty(obj, key, value) {
|
|
594
176
|
;// CONCATENATED MODULE: external "vue"
|
595
177
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
596
178
|
var external_vue_y = x => () => x
|
597
|
-
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, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["
|
598
|
-
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
|
599
|
-
var regenerator = __webpack_require__(2841);
|
600
|
-
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
179
|
+
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, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
601
180
|
;// CONCATENATED MODULE: external "../config-provider"
|
602
181
|
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
603
182
|
var config_provider_y = x => () => x
|
@@ -638,7 +217,7 @@ const icon_namespaceObject = icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE
|
|
638
217
|
*/
|
639
218
|
var hiddenTextarea = undefined;
|
640
219
|
// ${isFirefox() ? '' : 'overflow:hidden !important;'}
|
641
|
-
var HIDDEN_STYLE = "\n height:0 !important;\n visibility:hidden !important;\n
|
220
|
+
var HIDDEN_STYLE = "\n height:0 !important;\n visibility:hidden !important;\n\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n";
|
642
221
|
var CONTEXT_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing'];
|
643
222
|
function calculateNodeStyling(targetElement) {
|
644
223
|
var style = window.getComputedStyle(targetElement);
|
@@ -695,7 +274,7 @@ function calcTextareaHeight(targetElement) {
|
|
695
274
|
height = Math.min(maxHeight, height);
|
696
275
|
}
|
697
276
|
result.height = "".concat(height, "px");
|
698
|
-
(_hiddenTextarea$paren = hiddenTextarea.parentNode) === null || _hiddenTextarea$paren === void 0
|
277
|
+
(_hiddenTextarea$paren = hiddenTextarea.parentNode) === null || _hiddenTextarea$paren === void 0 ? void 0 : _hiddenTextarea$paren.removeChild(hiddenTextarea);
|
699
278
|
hiddenTextarea = undefined;
|
700
279
|
return result;
|
701
280
|
}
|
@@ -703,11 +282,9 @@ function calcTextareaHeight(targetElement) {
|
|
703
282
|
|
704
283
|
|
705
284
|
|
706
|
-
|
707
285
|
var _excluded = ["class", "style"];
|
708
286
|
var _inputEmitEventsType;
|
709
287
|
|
710
|
-
|
711
288
|
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; }
|
712
289
|
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; }
|
713
290
|
/*
|
@@ -776,39 +353,40 @@ var inputType = {
|
|
776
353
|
};
|
777
354
|
var EVENTS;
|
778
355
|
(function (EVENTS) {
|
779
|
-
EVENTS["UPDATE"] = "update:modelValue";
|
780
|
-
EVENTS["FOCUS"] = "focus";
|
781
356
|
EVENTS["BLUR"] = "blur";
|
782
357
|
EVENTS["CHANGE"] = "change";
|
783
358
|
EVENTS["CLEAR"] = "clear";
|
359
|
+
EVENTS["COMPOSITIONEND"] = "compositionend";
|
360
|
+
EVENTS["COMPOSITIONSTART"] = "compositionstart";
|
361
|
+
EVENTS["COMPOSITIONUPDATE"] = "compositionupdate";
|
362
|
+
EVENTS["ENTER"] = "enter";
|
363
|
+
EVENTS["FOCUS"] = "focus";
|
784
364
|
EVENTS["INPUT"] = "input";
|
785
|
-
EVENTS["KEYPRESS"] = "keypress";
|
786
365
|
EVENTS["KEYDOWN"] = "keydown";
|
366
|
+
EVENTS["KEYPRESS"] = "keypress";
|
787
367
|
EVENTS["KEYUP"] = "keyup";
|
788
|
-
EVENTS["ENTER"] = "enter";
|
789
368
|
EVENTS["PASTE"] = "paste";
|
790
|
-
EVENTS["
|
791
|
-
EVENTS["COMPOSITIONUPDATE"] = "compositionupdate";
|
792
|
-
EVENTS["COMPOSITIONEND"] = "compositionend";
|
369
|
+
EVENTS["UPDATE"] = "update:modelValue";
|
793
370
|
})(EVENTS || (EVENTS = {}));
|
371
|
+
/* eslint-disable-next-line */
|
794
372
|
function EventFunction(_value, _evt) {
|
795
373
|
return true;
|
796
374
|
}
|
375
|
+
/* eslint-disable-next-line */
|
797
376
|
function PastEventFunction(_value, _e) {
|
798
377
|
return true;
|
799
378
|
}
|
800
379
|
function CompositionEventFunction(evt) {
|
801
380
|
return evt;
|
802
381
|
}
|
803
|
-
var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(
|
382
|
+
var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_inputEmitEventsType, EVENTS.UPDATE, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.FOCUS, function (evt) {
|
804
383
|
return evt;
|
805
|
-
}), EVENTS.BLUR, function (evt) {
|
384
|
+
}), _defineProperty(_inputEmitEventsType, EVENTS.BLUR, function (evt) {
|
806
385
|
return evt;
|
807
|
-
}), EVENTS.CHANGE, EventFunction), EVENTS.CLEAR, function () {
|
386
|
+
}), _defineProperty(_inputEmitEventsType, EVENTS.CHANGE, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.CLEAR, function () {
|
808
387
|
return true;
|
809
|
-
}), EVENTS.INPUT, EventFunction), EVENTS.KEYPRESS, EventFunction), EVENTS.KEYDOWN, EventFunction), EVENTS.KEYUP, EventFunction), EVENTS.ENTER, EventFunction), _defineProperty(
|
388
|
+
}), _defineProperty(_inputEmitEventsType, EVENTS.INPUT, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.KEYPRESS, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.KEYDOWN, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.KEYUP, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.ENTER, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.PASTE, PastEventFunction), _defineProperty(_inputEmitEventsType, EVENTS.COMPOSITIONSTART, CompositionEventFunction), _defineProperty(_inputEmitEventsType, EVENTS.COMPOSITIONUPDATE, CompositionEventFunction), _defineProperty(_inputEmitEventsType, EVENTS.COMPOSITIONEND, CompositionEventFunction), _inputEmitEventsType);
|
810
389
|
/* harmony default export */ const input = ((0,external_vue_namespaceObject.defineComponent)({
|
811
|
-
// eslint-disable-next-line vue/no-reserved-component-names
|
812
390
|
name: 'Input',
|
813
391
|
directives: {
|
814
392
|
bkTooltips: directives_namespaceObject.bkTooltips
|
@@ -838,42 +416,11 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
838
416
|
value: props.modelValue
|
839
417
|
});
|
840
418
|
var inputCls = (0,external_vue_namespaceObject.computed)(function () {
|
841
|
-
|
419
|
+
var _classes;
|
420
|
+
return (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(inputClsPrefix.value, "--").concat(props.size), !!props.size), _defineProperty(_classes, "resizable", props.resize), _defineProperty(_classes, 'is-focused', isFocused.value), _defineProperty(_classes, 'is-readonly', props.readonly && !props.selectReadonly), _defineProperty(_classes, 'is-disabled', props.disabled), _defineProperty(_classes, 'is-simplicity', props.behavior === 'simplicity'), _defineProperty(_classes, "".concat(ctx.attrs["class"]), !!ctx.attrs["class"]), _classes), inputClsPrefix.value);
|
842
421
|
});
|
843
422
|
var isOverflow = (0,external_vue_namespaceObject.ref)(false);
|
844
|
-
var textareaCalcStyle = (0,external_vue_namespaceObject.ref)(
|
845
|
-
var resizeTextarea = function resizeTextarea() {
|
846
|
-
if (!isTextArea.value) return;
|
847
|
-
if (props.autosize) {
|
848
|
-
var _props$autosize, _props$autosize2;
|
849
|
-
var minRows = (_props$autosize = props.autosize) === null || _props$autosize === void 0 ? void 0 : _props$autosize.minRows;
|
850
|
-
var maxRows = (_props$autosize2 = props.autosize) === null || _props$autosize2 === void 0 ? void 0 : _props$autosize2.maxRows;
|
851
|
-
var textareaStyle = calcTextareaHeight(inputRef.value, minRows, maxRows);
|
852
|
-
textareaCalcStyle.value = _objectSpread({
|
853
|
-
overflowY: 'hidden'
|
854
|
-
}, textareaStyle);
|
855
|
-
(0,external_vue_namespaceObject.nextTick)(function () {
|
856
|
-
textareaCalcStyle.value = textareaStyle;
|
857
|
-
});
|
858
|
-
} else {
|
859
|
-
textareaCalcStyle.value = {
|
860
|
-
minHeight: calcTextareaHeight(inputRef.value).minHeight
|
861
|
-
};
|
862
|
-
}
|
863
|
-
};
|
864
|
-
var createOnceInitResize = function createOnceInitResize(resizeTextarea) {
|
865
|
-
var isInit = false;
|
866
|
-
return function () {
|
867
|
-
var _inputRef$value;
|
868
|
-
if (isInit || !props.autosize) return;
|
869
|
-
var isElHidden = ((_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 ? void 0 : _inputRef$value.offsetParent) === null;
|
870
|
-
if (!isElHidden) {
|
871
|
-
resizeTextarea();
|
872
|
-
isInit = true;
|
873
|
-
}
|
874
|
-
};
|
875
|
-
};
|
876
|
-
var onceInitSizeTextarea = createOnceInitResize(resizeTextarea);
|
423
|
+
var textareaCalcStyle = (0,external_vue_namespaceObject.ref)();
|
877
424
|
var suffixCls = getCls('suffix-icon');
|
878
425
|
var suffixIconMap = {
|
879
426
|
search: function search() {
|
@@ -881,8 +428,8 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
881
428
|
},
|
882
429
|
password: function password() {
|
883
430
|
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Unvisible, {
|
884
|
-
"
|
885
|
-
"
|
431
|
+
"class": suffixCls,
|
432
|
+
"onClick": handleVisibleChange
|
886
433
|
}, null);
|
887
434
|
}
|
888
435
|
};
|
@@ -912,7 +459,8 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
912
459
|
}, "".concat(inputClsPrefix.value, "--clear-icon"), true), suffixCls);
|
913
460
|
});
|
914
461
|
var maxLengthCls = (0,external_vue_namespaceObject.computed)(function () {
|
915
|
-
|
462
|
+
var _classes3;
|
463
|
+
return (0,shared_namespaceObject.classes)((_classes3 = {}, _defineProperty(_classes3, getCls('max-length'), true), _defineProperty(_classes3, 'is-over-limit', ceilMaxLength.value - modelValueLength.value < 0), _classes3));
|
916
464
|
});
|
917
465
|
var getValueLimits = function getValueLimits(val) {
|
918
466
|
if (typeof props.maxcharacter === 'number') {
|
@@ -964,56 +512,31 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
964
512
|
var showMaxLimit = (0,external_vue_namespaceObject.computed)(function () {
|
965
513
|
return typeof props.maxlength === 'number' || typeof props.maxcharacter === 'number';
|
966
514
|
});
|
967
|
-
var resizeObserver = new ResizeObserver(function () {
|
968
|
-
onceInitSizeTextarea();
|
969
|
-
setOverflow();
|
970
|
-
});
|
971
515
|
(0,external_vue_namespaceObject.watch)(function () {
|
972
516
|
return props.type;
|
973
|
-
},
|
974
|
-
|
975
|
-
|
976
|
-
case 0:
|
977
|
-
_context.next = 2;
|
978
|
-
return (0,external_vue_namespaceObject.nextTick)();
|
979
|
-
case 2:
|
980
|
-
resizeTextarea();
|
981
|
-
case 3:
|
982
|
-
case "end":
|
983
|
-
return _context.stop();
|
984
|
-
}
|
985
|
-
}, _callee);
|
986
|
-
})));
|
517
|
+
}, function () {
|
518
|
+
(0,external_vue_namespaceObject.nextTick)(onResize);
|
519
|
+
});
|
987
520
|
(0,external_vue_namespaceObject.watch)(function () {
|
988
521
|
return props.modelValue;
|
989
522
|
}, function (val) {
|
990
523
|
if (props.withValidate) {
|
991
524
|
var _formItem$validate;
|
992
|
-
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0
|
525
|
+
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 ? void 0 : _formItem$validate.call(formItem, 'change');
|
993
526
|
}
|
994
527
|
innerInputValue.value = {
|
995
528
|
value: val
|
996
529
|
};
|
997
|
-
(0,external_vue_namespaceObject.nextTick)(
|
998
|
-
return resizeTextarea();
|
999
|
-
});
|
1000
|
-
setOverflow();
|
530
|
+
(0,external_vue_namespaceObject.nextTick)(onResize);
|
1001
531
|
});
|
1002
532
|
(0,external_vue_namespaceObject.onMounted)(function () {
|
1003
|
-
|
1004
|
-
resizeObserver.observe(inputRef.value);
|
1005
|
-
(0,external_vue_namespaceObject.nextTick)(function () {
|
1006
|
-
return resizeTextarea();
|
1007
|
-
});
|
533
|
+
(0,external_vue_namespaceObject.nextTick)(onResize);
|
1008
534
|
// Hack: 修复autofocus属性失效问题 原生autofocus属性只在页面加载时生效
|
1009
535
|
if (Object.prototype.hasOwnProperty.call(ctx.attrs, 'autofocus')) {
|
1010
|
-
var _inputRef$
|
1011
|
-
(_inputRef$
|
536
|
+
var _inputRef$value, _inputRef$value$focus;
|
537
|
+
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || (_inputRef$value$focus = _inputRef$value.focus) === null || _inputRef$value$focus === void 0 ? void 0 : _inputRef$value$focus.call(_inputRef$value);
|
1012
538
|
}
|
1013
539
|
});
|
1014
|
-
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
1015
|
-
resizeObserver.disconnect();
|
1016
|
-
});
|
1017
540
|
ctx.expose({
|
1018
541
|
focus: function focus() {
|
1019
542
|
inputRef.value.focus();
|
@@ -1024,6 +547,31 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
1024
547
|
},
|
1025
548
|
clear: clear
|
1026
549
|
});
|
550
|
+
function onResize() {
|
551
|
+
autoResizeTextarea();
|
552
|
+
setOverflow();
|
553
|
+
}
|
554
|
+
function autoResizeTextarea() {
|
555
|
+
var _inputRef$value2;
|
556
|
+
var isElHidden = ((_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 ? void 0 : _inputRef$value2.offsetParent) === null;
|
557
|
+
if (!isTextArea.value || isElHidden || props.resize) return;
|
558
|
+
if (props.autosize) {
|
559
|
+
var _props$autosize, _props$autosize2;
|
560
|
+
var minRows = (_props$autosize = props.autosize) === null || _props$autosize === void 0 ? void 0 : _props$autosize.minRows;
|
561
|
+
var maxRows = (_props$autosize2 = props.autosize) === null || _props$autosize2 === void 0 ? void 0 : _props$autosize2.maxRows;
|
562
|
+
var textareaStyle = calcTextareaHeight(inputRef.value, minRows, maxRows);
|
563
|
+
textareaCalcStyle.value = _objectSpread({
|
564
|
+
overflowY: 'hidden'
|
565
|
+
}, textareaStyle);
|
566
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
567
|
+
textareaCalcStyle.value = textareaStyle;
|
568
|
+
});
|
569
|
+
} else {
|
570
|
+
textareaCalcStyle.value = {
|
571
|
+
minHeight: calcTextareaHeight(inputRef.value).minHeight
|
572
|
+
};
|
573
|
+
}
|
574
|
+
}
|
1027
575
|
function detectOverflow() {
|
1028
576
|
var _inputRef$value3, _inputRef$value4;
|
1029
577
|
return ((_inputRef$value3 = inputRef.value) === null || _inputRef$value3 === void 0 ? void 0 : _inputRef$value3.scrollWidth) > ((_inputRef$value4 = inputRef.value) === null || _inputRef$value4 === void 0 ? void 0 : _inputRef$value4.clientWidth) + 2;
|
@@ -1049,7 +597,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
1049
597
|
ctx.emit(EVENTS.BLUR, e);
|
1050
598
|
if (props.withValidate) {
|
1051
599
|
var _formItem$validate2;
|
1052
|
-
formItem === null || formItem === void 0 || (_formItem$validate2 = formItem.validate) === null || _formItem$validate2 === void 0
|
600
|
+
formItem === null || formItem === void 0 || (_formItem$validate2 = formItem.validate) === null || _formItem$validate2 === void 0 ? void 0 : _formItem$validate2.call(formItem, 'blur');
|
1053
601
|
}
|
1054
602
|
}
|
1055
603
|
// 事件句柄生成器
|
@@ -1102,20 +650,23 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
1102
650
|
isCNInput.value = false;
|
1103
651
|
handleInput(e);
|
1104
652
|
}
|
653
|
+
function isNum(num) {
|
654
|
+
return typeof num === 'number' && !Number.isNaN(num);
|
655
|
+
}
|
1105
656
|
function handleNumber(modelValue, step) {
|
1106
657
|
var INC = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
1107
658
|
var numStep = Number(step);
|
659
|
+
var factor = isNum(numStep) ? numStep : 1;
|
1108
660
|
var precision = Number.isInteger(props.precision) ? props.precision : 0;
|
1109
661
|
var val = Number(modelValue);
|
1110
|
-
var factor = Number.isInteger(numStep) ? numStep : 1;
|
1111
662
|
if (Number.isNaN(val)) {
|
1112
|
-
return
|
663
|
+
return isNum(props.min) ? props.min : 0;
|
1113
664
|
}
|
1114
665
|
var newVal = val + (INC ? factor : -1 * factor);
|
1115
|
-
if (
|
666
|
+
if (isNum(props.max)) {
|
1116
667
|
newVal = Math.min(newVal, props.max);
|
1117
668
|
}
|
1118
|
-
if (
|
669
|
+
if (isNum(props.min)) {
|
1119
670
|
newVal = Math.max(newVal, props.min);
|
1120
671
|
}
|
1121
672
|
return +newVal.toFixed(precision);
|
@@ -1161,8 +712,8 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
1161
712
|
return function () {
|
1162
713
|
var _ctx$slots$prefix, _ctx$slots, _ctx$slots$prefix2, _ctx$slots$suffix, _ctx$slots2, _ctx$slots2$suffix;
|
1163
714
|
return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
1164
|
-
"
|
1165
|
-
"
|
715
|
+
"style": style,
|
716
|
+
"class": inputCls.value
|
1166
717
|
}, [(_ctx$slots$prefix = (_ctx$slots = ctx.slots) === null || _ctx$slots === void 0 || (_ctx$slots$prefix2 = _ctx$slots.prefix) === null || _ctx$slots$prefix2 === void 0 ? void 0 : _ctx$slots$prefix2.call(_ctx$slots)) !== null && _ctx$slots$prefix !== void 0 ? _ctx$slots$prefix : props.prefix && (0,external_vue_namespaceObject.createVNode)("div", {
|
1167
718
|
"class": getCls('prefix-area')
|
1168
719
|
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
@@ -1171,18 +722,18 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
1171
722
|
"ref": inputRef,
|
1172
723
|
"spellcheck": false
|
1173
724
|
}, inputAttrs, eventListener, bindProps.value, {
|
1174
|
-
"
|
1175
|
-
"
|
725
|
+
"style": textareaCalcStyle.value,
|
726
|
+
"rows": props.rows
|
1176
727
|
}, innerInputValue.value), null) : (0,external_vue_namespaceObject.createVNode)("input", (0,external_vue_namespaceObject.mergeProps)({
|
1177
728
|
"spellcheck": false
|
1178
729
|
}, inputAttrs, {
|
1179
730
|
"ref": inputRef,
|
1180
731
|
"class": "".concat(inputClsPrefix.value, "--text"),
|
1181
|
-
"type": pwdVisible.value && props.type === 'password' ? 'text' : props.type,
|
1182
|
-
"step": props.step,
|
1183
732
|
"max": props.max,
|
1184
|
-
"min": props.min
|
1185
|
-
|
733
|
+
"min": props.min,
|
734
|
+
"step": props.step,
|
735
|
+
"type": pwdVisible.value && props.type === 'password' ? 'text' : props.type
|
736
|
+
}, eventListener, bindProps.value, innerInputValue.value), null), props.clearable && !!props.modelValue && (0,external_vue_namespaceObject.createVNode)("span", {
|
1186
737
|
"class": clearCls.value,
|
1187
738
|
"onClick": clear
|
1188
739
|
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, null, null)]), suffixIcon.value, showMaxLimit.value && (props.showWordLimit || isTextArea.value) && (0,external_vue_namespaceObject.createVNode)("p", {
|
@@ -1233,7 +784,5 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
1233
784
|
|
1234
785
|
var BkInput = (0,shared_namespaceObject.withInstall)(input);
|
1235
786
|
/* harmony default export */ const src = (BkInput);
|
1236
|
-
})();
|
1237
|
-
|
1238
787
|
var __webpack_exports__default = __webpack_exports__["default"];
|
1239
788
|
export { __webpack_exports__default as default };
|