bkui-vue 2.0.1-beta.11 → 2.0.1-beta.111
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 +328 -442
- 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 +328 -442
- 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/tab/index.js
CHANGED
@@ -5,7 +5,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
|
8
|
-
import * as
|
8
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
9
9
|
/******/ // The require scope
|
10
10
|
/******/ var __webpack_require__ = {};
|
11
11
|
/******/
|
@@ -44,38 +44,38 @@ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
44
44
|
var y = x => () => x
|
45
45
|
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
|
46
46
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
47
|
-
function _typeof(
|
47
|
+
function _typeof(obj) {
|
48
48
|
"@babel/helpers - typeof";
|
49
49
|
|
50
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
51
|
-
return typeof
|
52
|
-
} : function (
|
53
|
-
return
|
54
|
-
}, _typeof(
|
50
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
51
|
+
return typeof obj;
|
52
|
+
} : function (obj) {
|
53
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
54
|
+
}, _typeof(obj);
|
55
55
|
}
|
56
56
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
57
57
|
|
58
|
-
function
|
59
|
-
if ("object"
|
60
|
-
var
|
61
|
-
if (
|
62
|
-
var
|
63
|
-
if ("object"
|
58
|
+
function _toPrimitive(input, hint) {
|
59
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
60
|
+
var prim = input[Symbol.toPrimitive];
|
61
|
+
if (prim !== undefined) {
|
62
|
+
var res = prim.call(input, hint || "default");
|
63
|
+
if (_typeof(res) !== "object") return res;
|
64
64
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
65
65
|
}
|
66
|
-
return ("string"
|
66
|
+
return (hint === "string" ? String : Number)(input);
|
67
67
|
}
|
68
68
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
69
69
|
|
70
70
|
|
71
|
-
function
|
72
|
-
var
|
73
|
-
return "symbol"
|
71
|
+
function _toPropertyKey(arg) {
|
72
|
+
var key = _toPrimitive(arg, "string");
|
73
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
74
74
|
}
|
75
75
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
76
76
|
|
77
77
|
function _defineProperty(obj, key, value) {
|
78
|
-
key =
|
78
|
+
key = _toPropertyKey(key);
|
79
79
|
if (key in obj) {
|
80
80
|
Object.defineProperty(obj, key, {
|
81
81
|
value: value,
|
@@ -100,11 +100,11 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
100
100
|
|
101
101
|
var TabTypeEnum;
|
102
102
|
(function (TabTypeEnum) {
|
103
|
-
TabTypeEnum["CARD"] = "card";
|
104
103
|
TabTypeEnum["BORDER_CARD"] = "border-card";
|
105
|
-
TabTypeEnum["
|
106
|
-
TabTypeEnum["CARD_TAB"] = "card-tab";
|
104
|
+
TabTypeEnum["CARD"] = "card";
|
107
105
|
TabTypeEnum["CARD_GRID"] = "card-grid";
|
106
|
+
TabTypeEnum["CARD_TAB"] = "card-tab";
|
107
|
+
TabTypeEnum["UNBORDER_CARD"] = "unborder-card";
|
108
108
|
})(TabTypeEnum || (TabTypeEnum = {}));
|
109
109
|
var PositionEnum;
|
110
110
|
(function (PositionEnum) {
|
@@ -115,8 +115,8 @@ var PositionEnum;
|
|
115
115
|
var TabPositionType = (0,external_vue_types_namespaceObject.toType)('position', {}).def(PositionEnum.TOP);
|
116
116
|
var SortTypeEnum;
|
117
117
|
(function (SortTypeEnum) {
|
118
|
-
SortTypeEnum["REPLACE"] = "replace";
|
119
118
|
SortTypeEnum["INSERT"] = "insert";
|
119
|
+
SortTypeEnum["REPLACE"] = "replace";
|
120
120
|
})(SortTypeEnum || (SortTypeEnum = {}));
|
121
121
|
var SortTypeUnion = (0,external_vue_types_namespaceObject.toType)('sortType', {}).def(SortTypeEnum.REPLACE);
|
122
122
|
var tabNavEventProps = {
|
@@ -195,7 +195,9 @@ var tabPanelProps = {
|
|
195
195
|
disabled: shared_namespaceObject.PropTypes.bool,
|
196
196
|
sortable: shared_namespaceObject.PropTypes.bool,
|
197
197
|
renderDirective: (0,shared_namespaceObject.renderDirectiveType)(),
|
198
|
-
panel: shared_namespaceObject.PropTypes.string || shared_namespaceObject.PropTypes.func
|
198
|
+
panel: shared_namespaceObject.PropTypes.string || shared_namespaceObject.PropTypes.func,
|
199
|
+
num: shared_namespaceObject.PropTypes.number.def(undefined),
|
200
|
+
numDisplayType: shared_namespaceObject.PropTypes.string.def('default')
|
199
201
|
};
|
200
202
|
var tabProps = {
|
201
203
|
active: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]).def(''),
|
@@ -206,12 +208,8 @@ var tabProps = {
|
|
206
208
|
sortable: Boolean,
|
207
209
|
sortType: SortTypeUnion,
|
208
210
|
labelHeight: shared_namespaceObject.PropTypes.number.def(50),
|
209
|
-
scrollStep: shared_namespaceObject.PropTypes.number.def(200),
|
210
211
|
extCls: shared_namespaceObject.PropTypes.string.def(''),
|
211
212
|
validateActive: shared_namespaceObject.PropTypes.bool.def(true),
|
212
|
-
showHeader: shared_namespaceObject.PropTypes.bool.def(true),
|
213
|
-
changeOnHover: shared_namespaceObject.PropTypes.bool.def(false),
|
214
|
-
changeOnHoverDelay: shared_namespaceObject.PropTypes.number.def(1000),
|
215
213
|
activeBarSize: shared_namespaceObject.PropTypes.number.def(2),
|
216
214
|
activeBarColor: shared_namespaceObject.PropTypes.string.def('#3a84ff')
|
217
215
|
};
|
@@ -232,10 +230,7 @@ var tabNavProps = _objectSpread({
|
|
232
230
|
sortable: Boolean,
|
233
231
|
sortType: SortTypeUnion,
|
234
232
|
labelHeight: shared_namespaceObject.PropTypes.number.def(50),
|
235
|
-
|
236
|
-
validateActive: shared_namespaceObject.PropTypes.bool.def(true),
|
237
|
-
changeOnHover: shared_namespaceObject.PropTypes.bool.def(false),
|
238
|
-
changeOnHoverDelay: shared_namespaceObject.PropTypes.number.def(1000)
|
233
|
+
validateActive: shared_namespaceObject.PropTypes.bool.def(true)
|
239
234
|
}, tabNavEventProps);
|
240
235
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
241
236
|
function _arrayLikeToArray(arr, len) {
|
@@ -286,10 +281,10 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
286
281
|
var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
287
282
|
var directives_y = x => () => x
|
288
283
|
const directives_namespaceObject = directives_x({ ["bkTooltips"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkTooltips });
|
289
|
-
;// CONCATENATED MODULE: external "../icon
|
290
|
-
var
|
291
|
-
var
|
292
|
-
const
|
284
|
+
;// CONCATENATED MODULE: external "../icon"
|
285
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
286
|
+
var icon_y = x => () => x
|
287
|
+
const icon_namespaceObject = icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Plus"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Plus });
|
293
288
|
;// CONCATENATED MODULE: ../../packages/tab/src/tab-nav.tsx
|
294
289
|
|
295
290
|
|
@@ -343,7 +338,8 @@ function tab_nav_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
343
338
|
if (!activeRef.value) {
|
344
339
|
return initStyle;
|
345
340
|
}
|
346
|
-
|
341
|
+
var positionArr = [PositionEnum.LEFT, PositionEnum.RIGHT];
|
342
|
+
if (positionArr.includes(props.tabPosition)) {
|
347
343
|
var _activeRef$value = activeRef.value,
|
348
344
|
clientHeight = _activeRef$value.clientHeight,
|
349
345
|
offsetTop = _activeRef$value.offsetTop;
|
@@ -374,24 +370,27 @@ function tab_nav_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
374
370
|
}
|
375
371
|
return initStyle;
|
376
372
|
});
|
377
|
-
var
|
373
|
+
var tableNavList = (0,external_vue_namespaceObject.computed)(function () {
|
378
374
|
if (!Array.isArray(props.panels) || !props.panels.length) {
|
379
375
|
return [];
|
380
376
|
}
|
381
377
|
var list = [];
|
382
378
|
var hasFindActive = false;
|
383
|
-
props.panels
|
379
|
+
var panels = props.panels;
|
380
|
+
panels.filter(function (item, index) {
|
384
381
|
if (!item.props) {
|
385
382
|
return null;
|
386
383
|
}
|
387
384
|
var _item$props = item.props,
|
388
385
|
name = _item$props.name,
|
389
386
|
label = _item$props.label,
|
387
|
+
num = _item$props.num,
|
390
388
|
closable = _item$props.closable,
|
391
389
|
visible = _item$props.visible,
|
392
390
|
disabled = _item$props.disabled,
|
393
391
|
sortable = _item$props.sortable,
|
394
|
-
tips = _item$props.tips
|
392
|
+
tips = _item$props.tips,
|
393
|
+
numDisplayType = _item$props.numDisplayType;
|
395
394
|
if (!visible) {
|
396
395
|
return false;
|
397
396
|
}
|
@@ -420,7 +419,9 @@ function tab_nav_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
420
419
|
disabled: disabled,
|
421
420
|
sortable: sortable,
|
422
421
|
tips: tips,
|
423
|
-
|
422
|
+
numDisplayType: numDisplayType,
|
423
|
+
tabLabel: renderLabel(label),
|
424
|
+
tabNum: num
|
424
425
|
});
|
425
426
|
return true;
|
426
427
|
});
|
@@ -485,7 +486,7 @@ function tab_nav_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
485
486
|
return tab_nav_objectSpread(tab_nav_objectSpread({}, methods), {}, {
|
486
487
|
activeRef: activeRef,
|
487
488
|
activeBarStyle: activeBarStyle,
|
488
|
-
|
489
|
+
tableNavList: tableNavList,
|
489
490
|
dragenterIndex: dragenterIndex,
|
490
491
|
dragStartIndex: dragStartIndex,
|
491
492
|
draggingEle: draggingEle,
|
@@ -506,13 +507,15 @@ function tab_nav_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
506
507
|
dragend = this.dragend,
|
507
508
|
drop = this.drop;
|
508
509
|
var renderNavs = function renderNavs() {
|
509
|
-
return _this.
|
510
|
+
return _this.tableNavList.map(function (item, index) {
|
510
511
|
if (!item) {
|
511
512
|
return null;
|
512
513
|
}
|
513
514
|
var name = item.name,
|
514
515
|
disabled = item.disabled,
|
515
|
-
tabLabel = item.tabLabel
|
516
|
+
tabLabel = item.tabLabel,
|
517
|
+
tabNum = item.tabNum,
|
518
|
+
numDisplayType = item.numDisplayType;
|
516
519
|
var getNavItemClass = function getNavItemClass() {
|
517
520
|
var classNames = [_this.resolveClassName('tab-header-item')];
|
518
521
|
if (disabled) {
|
@@ -526,16 +529,29 @@ function tab_nav_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
526
529
|
var getValue = function getValue(curentValue, parentValue) {
|
527
530
|
return !disabled && (curentValue || parentValue);
|
528
531
|
};
|
532
|
+
var getCloseTag = function getCloseTag(item, index) {
|
533
|
+
return getValue(item.closable, closable) ? (0,external_vue_namespaceObject.createVNode)("span", {
|
534
|
+
"class": _this.resolveClassName('tab-header--close'),
|
535
|
+
"onClick": function onClick() {
|
536
|
+
return _this.handleTabRemove(index, item);
|
537
|
+
}
|
538
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, null, null)]) : '';
|
539
|
+
};
|
540
|
+
var getNumType = function getNumType() {
|
541
|
+
return ['bracket'].includes(numDisplayType) ? "(".concat(tabNum, ")") : tabNum;
|
542
|
+
};
|
529
543
|
return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
530
544
|
"key": name,
|
545
|
+
"ref": active === name ? 'activeRef' : 'tabLabelRef',
|
546
|
+
"class": getNavItemClass(),
|
547
|
+
"draggable": getValue(item.sortable, sortable),
|
531
548
|
"onClick": function onClick() {
|
532
549
|
return !disabled && _this.handleTabChange(name);
|
533
550
|
},
|
534
|
-
"
|
535
|
-
|
536
|
-
|
551
|
+
"onDragend": function onDragend(e) {
|
552
|
+
e.preventDefault();
|
553
|
+
dragend();
|
537
554
|
},
|
538
|
-
"ref": active === name ? 'activeRef' : '',
|
539
555
|
"onDragenter": function onDragenter(e) {
|
540
556
|
e.preventDefault();
|
541
557
|
dragenter(index);
|
@@ -546,21 +562,22 @@ function tab_nav_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
546
562
|
"onDragover": function onDragover(e) {
|
547
563
|
e.preventDefault();
|
548
564
|
},
|
549
|
-
"
|
550
|
-
e
|
551
|
-
dragend();
|
565
|
+
"onDragstart": function onDragstart(e) {
|
566
|
+
return dragstart(index, e);
|
552
567
|
},
|
553
568
|
"onDrop": function onDrop(e) {
|
554
569
|
e.preventDefault();
|
555
570
|
drop(index, sortType);
|
556
|
-
},
|
557
|
-
"class": getNavItemClass()
|
558
|
-
}, [(0,external_vue_namespaceObject.createVNode)("div", null, [tabLabel]), getValue(item.closable, closable) ? (0,external_vue_namespaceObject.createVNode)("span", {
|
559
|
-
"class": _this.resolveClassName('tab-header--close'),
|
560
|
-
"onClick": function onClick() {
|
561
|
-
return _this.handleTabRemove(index, item);
|
562
571
|
}
|
563
|
-
}, [(
|
572
|
+
}, [!isNaN(tabNum) ? (0,external_vue_namespaceObject.createVNode)("div", {
|
573
|
+
"class": _this.resolveClassName('tab-header--has-num')
|
574
|
+
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
575
|
+
"class": _this.resolveClassName('tab-header--has-num-left')
|
576
|
+
}, [tabLabel]), (0,external_vue_namespaceObject.createVNode)("div", {
|
577
|
+
"class": _this.resolveClassName('tab-header--has-num-right')
|
578
|
+
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
579
|
+
"class": _this.resolveClassName("tab-header--has-num-".concat(numDisplayType))
|
580
|
+
}, [getNumType()]), getCloseTag === null || getCloseTag === void 0 ? void 0 : getCloseTag(item, index)])]) : (0,external_vue_namespaceObject.createVNode)("div", null, [tabLabel]), isNaN(tabNum) ? getCloseTag === null || getCloseTag === void 0 ? void 0 : getCloseTag(item, index) : '']), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), {
|
564
581
|
content: item.tips || '',
|
565
582
|
disabled: !item.tips
|
566
583
|
}]]);
|
@@ -574,7 +591,7 @@ function tab_nav_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
574
591
|
} else if (addable) {
|
575
592
|
list.push((0,external_vue_namespaceObject.createVNode)("div", {
|
576
593
|
"onClick": _this.handleTabAdd
|
577
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
594
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Plus, {
|
578
595
|
"style": "display:flex;",
|
579
596
|
"width": 26,
|
580
597
|
"height": 26
|
@@ -585,8 +602,8 @@ function tab_nav_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
585
602
|
"class": _this.resolveClassName('tab-header-operation')
|
586
603
|
}, [list.map(function (item, index) {
|
587
604
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
588
|
-
"
|
589
|
-
"
|
605
|
+
"key": index,
|
606
|
+
"class": _this.resolveClassName('tab-header-item')
|
590
607
|
}, [item]);
|
591
608
|
})]);
|
592
609
|
}
|
@@ -789,10 +806,7 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
789
806
|
sortable = _this.sortable,
|
790
807
|
sortType = _this.sortType,
|
791
808
|
labelHeight = _this.labelHeight,
|
792
|
-
scrollStep = _this.scrollStep,
|
793
809
|
validateActive = _this.validateActive,
|
794
|
-
changeOnHover = _this.changeOnHover,
|
795
|
-
changeOnHoverDelay = _this.changeOnHoverDelay,
|
796
810
|
tabPosition = _this.tabPosition,
|
797
811
|
activeBarSize = _this.activeBarSize,
|
798
812
|
activeBarColor = _this.activeBarColor,
|
@@ -810,10 +824,7 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
810
824
|
sortable: sortable,
|
811
825
|
sortType: sortType,
|
812
826
|
labelHeight: labelHeight,
|
813
|
-
scrollStep: scrollStep,
|
814
827
|
validateActive: validateActive,
|
815
|
-
changeOnHover: changeOnHover,
|
816
|
-
changeOnHoverDelay: changeOnHoverDelay,
|
817
828
|
tabPosition: tabPosition,
|
818
829
|
activeBarSize: activeBarSize,
|
819
830
|
activeBarColor: activeBarColor,
|
@@ -865,8 +876,7 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
865
876
|
*/
|
866
877
|
|
867
878
|
|
868
|
-
|
869
|
-
/* harmony default export */ const tab_panel = ((0,external_vue_namespaceObject.defineComponent)({
|
879
|
+
/* harmony default export */ const tab_panel = (defineComponent({
|
870
880
|
name: 'TabPanel',
|
871
881
|
props: tabPanelProps,
|
872
882
|
render: function render() {
|
@@ -878,7 +888,7 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
878
888
|
return null;
|
879
889
|
}
|
880
890
|
if (typeof _this.panel === 'function') {
|
881
|
-
return _this.panel(
|
891
|
+
return _this.panel(h);
|
882
892
|
}
|
883
893
|
if (typeof _this.$slots["default"] === 'function') {
|
884
894
|
return _this.$slots["default"](null);
|
package/lib/tab/props.d.ts
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
import { ExtractPropTypes, PropType, VNode } from 'vue';
|
2
2
|
export declare enum TabTypeEnum {
|
3
|
-
CARD = "card",
|
4
3
|
BORDER_CARD = "border-card",
|
5
|
-
|
4
|
+
CARD = "card",
|
5
|
+
CARD_GRID = "card-grid",
|
6
6
|
CARD_TAB = "card-tab",
|
7
|
-
|
7
|
+
UNBORDER_CARD = "unborder-card"
|
8
8
|
}
|
9
9
|
export declare enum PositionEnum {
|
10
10
|
LEFT = "left",
|
11
11
|
RIGHT = "right",
|
12
12
|
TOP = "top"
|
13
13
|
}
|
14
|
-
export declare const TabPositionType: import("vue-types").VueTypeDef<"
|
15
|
-
default: "
|
14
|
+
export declare const TabPositionType: import("vue-types").VueTypeDef<"left" | "right" | "top"> & {
|
15
|
+
default: "left" | "right" | "top";
|
16
16
|
};
|
17
17
|
export declare enum SortTypeEnum {
|
18
|
-
|
19
|
-
|
18
|
+
INSERT = "insert",
|
19
|
+
REPLACE = "replace"
|
20
20
|
}
|
21
21
|
export declare const SortTypeUnion: import("vue-types").VueTypeDef<"replace" | "insert"> & {
|
22
22
|
default: "replace" | "insert";
|
@@ -91,25 +91,35 @@ export declare const tabPanelProps: {
|
|
91
91
|
sortable: import("vue-types").VueTypeValidableDef<boolean> & {
|
92
92
|
default: boolean;
|
93
93
|
};
|
94
|
-
renderDirective: import("vue-types").VueTypeValidableDef<"
|
95
|
-
default: "
|
94
|
+
renderDirective: import("vue-types").VueTypeValidableDef<"if" | "show"> & {
|
95
|
+
default: "if" | "show";
|
96
96
|
};
|
97
97
|
panel: (import("vue-types").VueTypeValidableDef<string> & {
|
98
98
|
default: string;
|
99
99
|
}) | (import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
100
100
|
default: (...args: any[]) => any;
|
101
101
|
});
|
102
|
+
num: import("vue-types").VueTypeValidableDef<number> & {
|
103
|
+
default: number;
|
104
|
+
} & {
|
105
|
+
default: number;
|
106
|
+
};
|
107
|
+
numDisplayType: import("vue-types").VueTypeValidableDef<string> & {
|
108
|
+
default: string;
|
109
|
+
} & {
|
110
|
+
default: string;
|
111
|
+
};
|
102
112
|
};
|
103
113
|
export type TabPanelProps = ExtractPropTypes<typeof tabPanelProps>;
|
104
114
|
export declare const tabProps: {
|
105
115
|
active: import("vue-types").VueTypeDef<string | number> & {
|
106
116
|
default: string | number;
|
107
117
|
};
|
108
|
-
type: import("vue-types").VueTypeDef<"card" | "border-card" | "
|
109
|
-
default: "card" | "border-card" | "
|
118
|
+
type: import("vue-types").VueTypeDef<"card" | "border-card" | "card-grid" | "card-tab" | "unborder-card"> & {
|
119
|
+
default: "card" | "border-card" | "card-grid" | "card-tab" | "unborder-card";
|
110
120
|
};
|
111
|
-
tabPosition: import("vue-types").VueTypeDef<"
|
112
|
-
default: "
|
121
|
+
tabPosition: import("vue-types").VueTypeDef<"left" | "right" | "top"> & {
|
122
|
+
default: "left" | "right" | "top";
|
113
123
|
};
|
114
124
|
closable: BooleanConstructor;
|
115
125
|
addable: BooleanConstructor;
|
@@ -122,11 +132,6 @@ export declare const tabProps: {
|
|
122
132
|
} & {
|
123
133
|
default: number;
|
124
134
|
};
|
125
|
-
scrollStep: import("vue-types").VueTypeValidableDef<number> & {
|
126
|
-
default: number;
|
127
|
-
} & {
|
128
|
-
default: number;
|
129
|
-
};
|
130
135
|
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
131
136
|
default: string;
|
132
137
|
} & {
|
@@ -137,21 +142,6 @@ export declare const tabProps: {
|
|
137
142
|
} & {
|
138
143
|
default: boolean;
|
139
144
|
};
|
140
|
-
showHeader: import("vue-types").VueTypeValidableDef<boolean> & {
|
141
|
-
default: boolean;
|
142
|
-
} & {
|
143
|
-
default: boolean;
|
144
|
-
};
|
145
|
-
changeOnHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
146
|
-
default: boolean;
|
147
|
-
} & {
|
148
|
-
default: boolean;
|
149
|
-
};
|
150
|
-
changeOnHoverDelay: import("vue-types").VueTypeValidableDef<number> & {
|
151
|
-
default: number;
|
152
|
-
} & {
|
153
|
-
default: number;
|
154
|
-
};
|
155
145
|
activeBarSize: import("vue-types").VueTypeValidableDef<number> & {
|
156
146
|
default: number;
|
157
147
|
} & {
|
@@ -187,8 +177,8 @@ export declare const tabNavProps: {
|
|
187
177
|
active: import("vue-types").VueTypeDef<string | number> & {
|
188
178
|
default: string | number;
|
189
179
|
};
|
190
|
-
type: import("vue-types").VueTypeDef<"card" | "border-card" | "
|
191
|
-
default: "card" | "border-card" | "
|
180
|
+
type: import("vue-types").VueTypeDef<"card" | "border-card" | "card-grid" | "card-tab" | "unborder-card"> & {
|
181
|
+
default: "card" | "border-card" | "card-grid" | "card-tab" | "unborder-card";
|
192
182
|
};
|
193
183
|
activeBarColor: import("vue-types").VueTypeValidableDef<string> & {
|
194
184
|
default: string;
|
@@ -206,8 +196,8 @@ export declare const tabNavProps: {
|
|
206
196
|
}>[]>;
|
207
197
|
default: () => any[];
|
208
198
|
};
|
209
|
-
tabPosition: import("vue-types").VueTypeDef<"
|
210
|
-
default: "
|
199
|
+
tabPosition: import("vue-types").VueTypeDef<"left" | "right" | "top"> & {
|
200
|
+
default: "left" | "right" | "top";
|
211
201
|
};
|
212
202
|
closable: BooleanConstructor;
|
213
203
|
addable: BooleanConstructor;
|
@@ -220,24 +210,9 @@ export declare const tabNavProps: {
|
|
220
210
|
} & {
|
221
211
|
default: number;
|
222
212
|
};
|
223
|
-
scrollStep: import("vue-types").VueTypeValidableDef<number> & {
|
224
|
-
default: number;
|
225
|
-
} & {
|
226
|
-
default: number;
|
227
|
-
};
|
228
213
|
validateActive: import("vue-types").VueTypeValidableDef<boolean> & {
|
229
214
|
default: boolean;
|
230
215
|
} & {
|
231
216
|
default: boolean;
|
232
217
|
};
|
233
|
-
changeOnHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
234
|
-
default: boolean;
|
235
|
-
} & {
|
236
|
-
default: boolean;
|
237
|
-
};
|
238
|
-
changeOnHoverDelay: import("vue-types").VueTypeValidableDef<number> & {
|
239
|
-
default: number;
|
240
|
-
} & {
|
241
|
-
default: number;
|
242
|
-
};
|
243
218
|
};
|
package/lib/tab/tab-nav.d.ts
CHANGED
@@ -1,4 +1,7 @@
|
|
1
|
-
import { CSSProperties } from 'vue';
|
1
|
+
import { CSSProperties, type Ref, type ComponentInternalInstance, type ExtractPropTypes } from 'vue';
|
2
|
+
import { tabNavProps, TabPanelProps } from './props';
|
3
|
+
export type TabNavProps = ExtractPropTypes<typeof tabNavProps & ComponentInternalInstance>;
|
4
|
+
export type StringOrFunction = ((...args: unknown[]) => unknown) | string;
|
2
5
|
declare const _default: import("vue").DefineComponent<{
|
3
6
|
tabAdd: {
|
4
7
|
type: FunctionConstructor;
|
@@ -23,8 +26,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
23
26
|
active: import("vue-types").VueTypeDef<string | number> & {
|
24
27
|
default: string | number;
|
25
28
|
};
|
26
|
-
type: import("vue-types").VueTypeDef<"card" | "border-card" | "
|
27
|
-
default: "card" | "border-card" | "
|
29
|
+
type: import("vue-types").VueTypeDef<"card" | "border-card" | "card-grid" | "card-tab" | "unborder-card"> & {
|
30
|
+
default: "card" | "border-card" | "card-grid" | "card-tab" | "unborder-card";
|
28
31
|
};
|
29
32
|
activeBarColor: import("vue-types").VueTypeValidableDef<string> & {
|
30
33
|
default: string;
|
@@ -40,15 +43,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
40
43
|
type: import("vue").PropType<import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
41
44
|
[key: string]: any;
|
42
45
|
}>[]>;
|
43
|
-
default: () => any[];
|
44
|
-
* @description 判断拖动的元素是否是在同一个tab。
|
45
|
-
* 使用guid,相比 el1.parentNode === el2.parentNode 判断,性能要高
|
46
|
-
* @param e {event} 触发的元素
|
47
|
-
* @return {boolean}
|
48
|
-
*/
|
46
|
+
default: () => any[];
|
49
47
|
};
|
50
|
-
tabPosition: import("vue-types").VueTypeDef<"
|
51
|
-
default: "
|
48
|
+
tabPosition: import("vue-types").VueTypeDef<"left" | "right" | "top"> & {
|
49
|
+
default: "left" | "right" | "top";
|
52
50
|
};
|
53
51
|
closable: BooleanConstructor;
|
54
52
|
addable: BooleanConstructor;
|
@@ -61,33 +59,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
61
59
|
} & {
|
62
60
|
default: number;
|
63
61
|
};
|
64
|
-
scrollStep: import("vue-types").VueTypeValidableDef<number> & {
|
65
|
-
default: number;
|
66
|
-
} & {
|
67
|
-
default: number;
|
68
|
-
};
|
69
62
|
validateActive: import("vue-types").VueTypeValidableDef<boolean> & {
|
70
63
|
default: boolean;
|
71
64
|
} & {
|
72
65
|
default: boolean;
|
73
66
|
};
|
74
|
-
changeOnHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
75
|
-
default: boolean;
|
76
|
-
} & {
|
77
|
-
default: boolean;
|
78
|
-
};
|
79
|
-
changeOnHoverDelay: import("vue-types").VueTypeValidableDef<number> & {
|
80
|
-
default: number;
|
81
|
-
} & {
|
82
|
-
default: number;
|
83
|
-
};
|
84
67
|
}, {
|
85
|
-
activeRef:
|
68
|
+
activeRef: Ref<HTMLElement>;
|
86
69
|
activeBarStyle: import("vue").ComputedRef<CSSProperties>;
|
87
|
-
|
88
|
-
dragenterIndex:
|
89
|
-
dragStartIndex:
|
90
|
-
draggingEle:
|
70
|
+
tableNavList: import("vue").ComputedRef<any[]>;
|
71
|
+
dragenterIndex: Ref<number>;
|
72
|
+
dragStartIndex: Ref<number>;
|
73
|
+
draggingEle: Ref<string>;
|
91
74
|
guid: string;
|
92
75
|
resolveClassName: (cls: string) => string;
|
93
76
|
/**
|
@@ -96,14 +79,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
96
79
|
* @param e {event} 触发的元素
|
97
80
|
* @return {boolean}
|
98
81
|
*/
|
99
|
-
handleTabAdd(e:
|
82
|
+
handleTabAdd(e: MouseEvent): void;
|
100
83
|
dragstart(index: number, $event: DragEvent): void;
|
101
|
-
dragenter(index:
|
84
|
+
dragenter(index: number): void;
|
102
85
|
dragend(): void;
|
103
|
-
drop(index:
|
86
|
+
drop(index: number, sortType: string): boolean;
|
104
87
|
handleTabChange(name: string): void;
|
105
|
-
handleTabRemove(index: number, panel:
|
106
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<
|
88
|
+
handleTabRemove(index: number, panel: TabPanelProps): void;
|
89
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
107
90
|
tabAdd: {
|
108
91
|
type: FunctionConstructor;
|
109
92
|
default: () => any;
|
@@ -127,8 +110,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
127
110
|
active: import("vue-types").VueTypeDef<string | number> & {
|
128
111
|
default: string | number;
|
129
112
|
};
|
130
|
-
type: import("vue-types").VueTypeDef<"card" | "border-card" | "
|
131
|
-
default: "card" | "border-card" | "
|
113
|
+
type: import("vue-types").VueTypeDef<"card" | "border-card" | "card-grid" | "card-tab" | "unborder-card"> & {
|
114
|
+
default: "card" | "border-card" | "card-grid" | "card-tab" | "unborder-card";
|
132
115
|
};
|
133
116
|
activeBarColor: import("vue-types").VueTypeValidableDef<string> & {
|
134
117
|
default: string;
|
@@ -144,15 +127,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
144
127
|
type: import("vue").PropType<import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
145
128
|
[key: string]: any;
|
146
129
|
}>[]>;
|
147
|
-
default: () => any[];
|
148
|
-
* @description 判断拖动的元素是否是在同一个tab。
|
149
|
-
* 使用guid,相比 el1.parentNode === el2.parentNode 判断,性能要高
|
150
|
-
* @param e {event} 触发的元素
|
151
|
-
* @return {boolean}
|
152
|
-
*/
|
130
|
+
default: () => any[];
|
153
131
|
};
|
154
|
-
tabPosition: import("vue-types").VueTypeDef<"
|
155
|
-
default: "
|
132
|
+
tabPosition: import("vue-types").VueTypeDef<"left" | "right" | "top"> & {
|
133
|
+
default: "left" | "right" | "top";
|
156
134
|
};
|
157
135
|
closable: BooleanConstructor;
|
158
136
|
addable: BooleanConstructor;
|
@@ -165,28 +143,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
165
143
|
} & {
|
166
144
|
default: number;
|
167
145
|
};
|
168
|
-
scrollStep: import("vue-types").VueTypeValidableDef<number> & {
|
169
|
-
default: number;
|
170
|
-
} & {
|
171
|
-
default: number;
|
172
|
-
};
|
173
146
|
validateActive: import("vue-types").VueTypeValidableDef<boolean> & {
|
174
147
|
default: boolean;
|
175
148
|
} & {
|
176
149
|
default: boolean;
|
177
150
|
};
|
178
|
-
changeOnHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
179
|
-
default: boolean;
|
180
|
-
} & {
|
181
|
-
default: boolean;
|
182
|
-
};
|
183
|
-
changeOnHoverDelay: import("vue-types").VueTypeValidableDef<number> & {
|
184
|
-
default: number;
|
185
|
-
} & {
|
186
|
-
default: number;
|
187
|
-
};
|
188
151
|
}>>, {
|
189
|
-
type: "card" | "border-card" | "
|
152
|
+
type: "card" | "border-card" | "card-grid" | "card-tab" | "unborder-card";
|
190
153
|
active: string | number;
|
191
154
|
closable: boolean;
|
192
155
|
sortType: "replace" | "insert";
|
@@ -201,12 +164,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
201
164
|
panels: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
202
165
|
[key: string]: any;
|
203
166
|
}>[];
|
204
|
-
tabPosition: "
|
167
|
+
tabPosition: "left" | "right" | "top";
|
205
168
|
addable: boolean;
|
206
169
|
labelHeight: number;
|
207
|
-
scrollStep: number;
|
208
170
|
validateActive: boolean;
|
209
|
-
changeOnHover: boolean;
|
210
|
-
changeOnHoverDelay: number;
|
211
171
|
}, {}>;
|
212
172
|
export default _default;
|