bkui-vue 0.0.1-beta.13 → 0.0.1-beta.132
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 +31 -19
- package/dist/index.cjs.js +171 -0
- package/dist/index.esm.js +31713 -0
- package/dist/index.umd.js +171 -0
- package/dist/style.css +1 -4051
- package/dist/style.variable.css +1 -0
- package/lib/affix/affix.css +3 -0
- package/lib/affix/affix.d.ts +47 -0
- package/lib/affix/affix.less +5 -0
- package/lib/affix/affix.variable.css +105 -0
- package/lib/affix/index.d.ts +190 -0
- package/lib/affix/index.js +1 -0
- package/lib/alert/alert.css +5 -3
- package/lib/alert/alert.d.ts +24 -15
- package/lib/alert/alert.less +7 -3
- package/lib/alert/alert.variable.css +24 -6
- package/lib/alert/index.d.ts +159 -61
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +12 -7
- package/lib/animate-number/index.d.ts +76 -29
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.d.ts +28 -14
- package/lib/backtop/backtop.variable.css +19 -3
- package/lib/backtop/index.d.ts +172 -56
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.css +5 -5
- package/lib/badge/badge.d.ts +64 -22
- package/lib/badge/badge.less +5 -6
- package/lib/badge/badge.variable.css +24 -8
- package/lib/badge/index.d.ts +305 -85
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
- package/lib/breadcrumb/breadcrumb.css +61 -1
- package/lib/breadcrumb/breadcrumb.d.ts +37 -9
- package/lib/breadcrumb/breadcrumb.less +13 -2
- package/lib/breadcrumb/breadcrumb.variable.css +80 -4
- package/lib/breadcrumb/index.d.ts +172 -46
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button-group.d.ts +3 -5
- package/lib/button/button.css +92 -44
- package/lib/button/button.d.ts +76 -26
- package/lib/button/button.less +89 -47
- package/lib/button/button.variable.css +111 -47
- package/lib/button/index.d.ts +288 -103
- package/lib/button/index.js +1 -1
- package/lib/card/card.css +96 -1
- package/lib/card/card.d.ts +74 -18
- package/lib/card/card.less +50 -2
- package/lib/card/card.variable.css +115 -4
- package/lib/card/index.d.ts +336 -70
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +48 -0
- package/lib/cascader/cascader.css +130 -0
- package/lib/cascader/cascader.d.ts +271 -0
- package/lib/cascader/cascader.less +146 -0
- package/lib/cascader/cascader.variable.css +232 -0
- package/lib/cascader/index.d.ts +991 -0
- package/lib/cascader/index.js +1 -0
- package/lib/cascader/interface.d.ts +44 -0
- package/lib/cascader/node.d.ts +24 -0
- package/lib/cascader/store.d.ts +15 -0
- package/lib/checkbox/checkbox-group.d.ts +13 -9
- package/lib/checkbox/checkbox.css +33 -6
- package/lib/checkbox/checkbox.d.ts +43 -32
- package/lib/checkbox/checkbox.less +44 -6
- package/lib/checkbox/checkbox.variable.css +52 -9
- package/lib/checkbox/common.d.ts +3 -3
- package/lib/checkbox/index.d.ts +234 -105
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +4 -8
- package/lib/code-diff/code-diff.css +186 -0
- package/lib/code-diff/code-diff.d.ts +80 -0
- package/lib/code-diff/code-diff.less +238 -0
- package/lib/code-diff/code-diff.variable.css +288 -0
- package/lib/code-diff/index.d.ts +204 -0
- package/lib/code-diff/index.js +1 -0
- package/lib/collapse/collapse.css +17 -1
- package/lib/collapse/collapse.d.ts +51 -22
- package/lib/collapse/collapse.less +24 -2
- package/lib/collapse/collapse.variable.css +119 -1
- package/lib/collapse/index.d.ts +191 -76
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/utils.d.ts +11 -0
- package/lib/components.d.ts +26 -5
- package/lib/components.js +1 -0
- package/lib/container/col.d.ts +51 -0
- package/lib/container/container.css +91 -0
- package/lib/container/container.d.ts +83 -0
- package/lib/container/container.less +20 -0
- package/lib/container/container.variable.css +193 -0
- package/lib/container/index.d.ts +281 -0
- package/lib/container/index.js +1 -0
- package/lib/container/row.d.ts +4 -0
- package/lib/date-picker/date-picker.css +3 -2
- package/lib/date-picker/date-picker.d.ts +92 -137
- package/lib/date-picker/date-picker.less +5 -2
- package/lib/date-picker/date-picker.variable.css +22 -5
- package/lib/date-picker/index.d.ts +816 -277
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/interface.d.ts +1 -1
- package/lib/date-picker/props.d.ts +118 -0
- package/lib/date-picker/utils.d.ts +1 -1
- package/lib/dialog/dialog.css +68 -16
- package/lib/dialog/dialog.d.ts +285 -52
- package/lib/dialog/dialog.less +43 -17
- package/lib/dialog/dialog.variable.css +68 -16
- package/lib/dialog/index.d.ts +982 -116
- package/lib/dialog/index.js +1 -1
- package/lib/directives/clickoutside.d.ts +3 -23
- package/lib/directives/index.js +2 -15
- package/lib/directives/index.js.LICENSE.txt +14 -0
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +1 -0
- package/lib/divider/divider.d.ts +21 -13
- package/lib/divider/divider.variable.css +19 -3
- package/lib/divider/index.d.ts +133 -53
- package/lib/divider/index.js +1 -1
- package/lib/divider/props.d.ts +21 -0
- package/lib/dropdown/dropdown-item.d.ts +6 -5
- package/lib/dropdown/dropdown-menu.d.ts +6 -5
- package/lib/dropdown/dropdown.css +4 -0
- package/lib/dropdown/dropdown.d.ts +29 -15
- package/lib/dropdown/dropdown.less +5 -0
- package/lib/dropdown/dropdown.variable.css +23 -3
- package/lib/dropdown/index.d.ts +168 -73
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/exception.d.ts +11 -9
- package/lib/exception/exception.variable.css +19 -3
- package/lib/exception/index.d.ts +71 -37
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/fixed-navbar.d.ts +29 -9
- package/lib/fixed-navbar/fixed-navbar.variable.css +19 -3
- package/lib/fixed-navbar/index.d.ts +145 -38
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/compose-form-item.d.ts +16 -0
- package/lib/form/form-item.d.ts +61 -45
- package/lib/form/form.css +96 -10
- package/lib/form/form.d.ts +45 -40
- package/lib/form/form.less +136 -34
- package/lib/form/form.variable.css +198 -10
- package/lib/form/index.d.ts +361 -3
- package/lib/form/index.js +1 -1
- package/lib/form/type.d.ts +8 -6
- package/lib/form/validator.d.ts +1 -0
- package/lib/icon/angle-double-down-line.d.ts +4 -0
- package/lib/icon/angle-double-down-line.js +1 -0
- package/lib/icon/angle-double-left-line.d.ts +4 -0
- package/lib/icon/angle-double-left-line.js +1 -0
- package/lib/icon/angle-double-left.js +1 -0
- package/lib/icon/angle-double-right-line.d.ts +4 -0
- package/lib/icon/angle-double-right-line.js +1 -0
- package/lib/icon/angle-double-right.js +1 -0
- package/lib/icon/angle-double-up-line.d.ts +4 -0
- package/lib/icon/angle-double-up-line.js +1 -0
- package/lib/icon/angle-down-fill.d.ts +4 -0
- package/lib/icon/angle-down-fill.js +1 -0
- package/lib/icon/angle-down-line.js +1 -0
- package/lib/icon/angle-down.js +1 -0
- package/lib/icon/angle-left.js +1 -0
- package/lib/icon/angle-right.js +1 -0
- package/lib/icon/angle-up-fill.d.ts +4 -0
- package/lib/icon/angle-up-fill.js +1 -0
- package/lib/icon/angle-up.js +1 -0
- package/lib/icon/archive-fill.d.ts +4 -0
- package/lib/icon/archive-fill.js +1 -0
- package/lib/icon/arrows-left.d.ts +4 -0
- package/lib/icon/arrows-left.js +1 -0
- package/lib/icon/arrows-right.d.ts +4 -0
- package/lib/icon/arrows-right.js +1 -0
- package/lib/icon/audio-fill.d.ts +4 -0
- package/lib/icon/audio-fill.js +1 -0
- package/lib/icon/bk.d.ts +4 -0
- package/lib/icon/bk.js +1 -0
- package/lib/icon/circle.js +1 -0
- package/lib/icon/close-line.d.ts +4 -0
- package/lib/icon/close-line.js +1 -0
- package/lib/icon/close.js +1 -0
- package/lib/icon/code.js +1 -0
- package/lib/icon/cog-shape.js +1 -0
- package/lib/icon/collapse-left.js +1 -0
- package/lib/icon/copy.js +1 -0
- package/lib/icon/data-shape.d.ts +4 -0
- package/lib/icon/data-shape.js +1 -0
- package/lib/icon/del.d.ts +4 -0
- package/lib/icon/del.js +1 -0
- package/lib/icon/doc-fill.d.ts +4 -0
- package/lib/icon/doc-fill.js +1 -0
- package/lib/icon/done.js +1 -0
- package/lib/icon/down-shape.js +1 -0
- package/lib/icon/down-small.js +1 -0
- package/lib/icon/edit-line.d.ts +4 -0
- package/lib/icon/edit-line.js +1 -0
- package/lib/icon/ellipsis.d.ts +4 -0
- package/lib/icon/ellipsis.js +1 -0
- package/lib/icon/error.js +1 -0
- package/lib/icon/excel-fill.d.ts +4 -0
- package/lib/icon/excel-fill.js +1 -0
- package/lib/icon/exclamation-circle-shape.d.ts +4 -0
- package/lib/icon/exclamation-circle-shape.js +1 -0
- package/lib/icon/eye.js +1 -0
- package/lib/icon/folder-open.js +1 -0
- package/lib/icon/folder-shape-open.js +1 -0
- package/lib/icon/folder-shape.js +1 -0
- package/lib/icon/funnel.d.ts +4 -0
- package/lib/icon/funnel.js +1 -0
- package/lib/icon/help-document-fill.js +1 -0
- package/lib/icon/help-fill.js +1 -0
- package/lib/icon/help.js +1 -0
- package/lib/icon/image-fill.d.ts +4 -0
- package/lib/icon/image-fill.js +1 -0
- package/lib/icon/index.d.ts +34 -3
- package/lib/icon/index.js +1 -15
- package/lib/icon/info-line.js +1 -0
- package/lib/icon/info.js +1 -0
- package/lib/icon/left-shape.d.ts +4 -0
- package/lib/icon/left-shape.js +1 -0
- package/lib/icon/pdf-fill.d.ts +4 -0
- package/lib/icon/pdf-fill.js +1 -0
- package/lib/icon/play-shape.js +1 -0
- package/lib/icon/plus.js +1 -0
- package/lib/icon/ppt-fill.d.ts +4 -0
- package/lib/icon/ppt-fill.js +1 -0
- package/lib/icon/qq.d.ts +4 -0
- package/lib/icon/qq.js +1 -0
- package/lib/icon/right-shape.js +1 -0
- package/lib/icon/search.js +1 -0
- package/lib/icon/share.js +1 -0
- package/lib/icon/spinner.d.ts +4 -0
- package/lib/icon/spinner.js +1 -0
- package/lib/icon/success.js +1 -0
- package/lib/icon/switcher-loading.js +1 -0
- package/lib/icon/text-file.js +1 -0
- package/lib/icon/text-fill.d.ts +4 -0
- package/lib/icon/text-fill.js +1 -0
- package/lib/icon/tree-application-shape.js +1 -0
- package/lib/icon/unvisible.js +1 -0
- package/lib/icon/up-shape.d.ts +4 -0
- package/lib/icon/up-shape.js +1 -0
- package/lib/icon/upload.d.ts +4 -0
- package/lib/icon/upload.js +1 -0
- package/lib/icon/video-fill.d.ts +4 -0
- package/lib/icon/video-fill.js +1 -0
- package/lib/icon/warn.js +1 -0
- package/lib/icon/weixin.d.ts +4 -0
- package/lib/icon/weixin.js +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -0
- package/lib/input/index.d.ts +688 -197
- package/lib/input/index.js +1 -15
- package/lib/input/input.css +232 -16
- package/lib/input/input.d.ts +182 -52
- package/lib/input/input.less +182 -19
- package/lib/input/input.variable.css +248 -15
- package/lib/link/index.d.ts +161 -55
- package/lib/link/index.js +1 -1
- package/lib/link/link.d.ts +25 -13
- package/lib/link/link.variable.css +19 -3
- package/lib/loading/index.d.ts +281 -72
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +177 -98
- package/lib/loading/loading.d.ts +109 -25
- package/lib/loading/loading.less +84 -73
- package/lib/loading/loading.variable.css +196 -101
- package/lib/menu/index.d.ts +122 -72
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu-group.d.ts +6 -5
- package/lib/menu/menu-item.d.ts +6 -5
- package/lib/menu/menu.css +51 -0
- package/lib/menu/menu.d.ts +16 -21
- package/lib/menu/menu.variable.css +70 -3
- package/lib/menu/submenu.css +3 -0
- package/lib/menu/submenu.d.ts +6 -5
- package/lib/menu/submenu.less +1 -1
- package/lib/menu/submenu.variable.css +22 -3
- package/lib/menu/utils.d.ts +1 -1
- package/lib/message/index.js +1 -1
- package/lib/message/message.css +16 -2
- package/lib/message/message.less +18 -1
- package/lib/message/message.variable.css +35 -5
- package/lib/message/messageConstructor.d.ts +68 -20
- package/lib/modal/index.d.ts +732 -69
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +25 -1
- package/lib/modal/modal.d.ts +191 -24
- package/lib/modal/modal.less +33 -1
- package/lib/modal/modal.variable.css +25 -1
- package/lib/modal/props.mixin.d.ts +77 -10
- package/lib/navigation/index.d.ts +428 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation-title.d.ts +10 -7
- package/lib/navigation/navigation.css +1 -1
- package/lib/navigation/navigation.d.ts +50 -24
- package/lib/navigation/navigation.less +1 -1
- package/lib/navigation/navigation.variable.css +20 -4
- package/lib/notify/index.js +1 -1
- package/lib/notify/notify.css +17 -1
- package/lib/notify/notify.less +19 -1
- package/lib/notify/notify.variable.css +36 -4
- package/lib/notify/notifyConstructor.d.ts +83 -23
- package/lib/pagination/index.d.ts +552 -0
- package/lib/pagination/index.js +1 -0
- package/lib/pagination/pagination.css +179 -0
- package/lib/pagination/pagination.d.ts +220 -0
- package/lib/pagination/pagination.less +201 -0
- package/lib/pagination/pagination.variable.css +281 -0
- package/lib/pagination/type.d.ts +6 -0
- package/lib/pagination/use-limit.d.ts +8 -0
- package/lib/pagination/use-list.d.ts +8 -0
- package/lib/pagination/use-small-list.d.ts +5 -0
- package/lib/pagination/use-total.d.ts +5 -0
- package/lib/popover/index.d.ts +488 -138
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +26 -13
- package/lib/popover/popover.d.ts +122 -45
- package/lib/popover/popover.less +59 -45
- package/lib/popover/popover.variable.css +45 -16
- package/lib/popover/props.d.ts +104 -0
- package/lib/popover2/arrow.d.ts +2 -0
- package/lib/popover2/const.d.ts +10 -0
- package/lib/popover2/content.d.ts +24 -0
- package/lib/popover2/index.d.ts +704 -0
- package/lib/popover2/index.js +1 -0
- package/lib/popover2/popover2.css +25 -0
- package/lib/popover2/popover2.d.ts +209 -0
- package/lib/popover2/popover2.less +35 -0
- package/lib/popover2/popover2.variable.css +127 -0
- package/lib/popover2/props.d.ts +108 -0
- package/lib/popover2/reference.d.ts +2 -0
- package/lib/popover2/root.d.ts +16 -0
- package/lib/popover2/use-floating.d.ts +20 -0
- package/lib/popover2/use-platform.d.ts +30 -0
- package/lib/popover2/use-popper-id.d.ts +7 -0
- package/lib/preset.d.ts +2 -3
- package/lib/preset.js +1 -0
- package/lib/process/index.d.ts +279 -0
- package/lib/process/index.js +1 -0
- package/lib/process/process.css +138 -0
- package/lib/process/process.d.ts +131 -0
- package/lib/process/process.less +178 -0
- package/lib/process/process.variable.css +240 -0
- package/lib/progress/index.d.ts +474 -136
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +51 -3
- package/lib/progress/progress.d.ts +89 -36
- package/lib/progress/progress.less +0 -4
- package/lib/progress/progress.variable.css +70 -6
- package/lib/radio/common.d.ts +5 -5
- package/lib/radio/index.d.ts +206 -95
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +30 -23
- package/lib/radio/radio-group.d.ts +11 -10
- package/lib/radio/radio.css +12 -13
- package/lib/radio/radio.d.ts +27 -17
- package/lib/radio/radio.less +13 -14
- package/lib/radio/radio.variable.css +32 -17
- package/lib/radio/type.d.ts +10 -5
- package/lib/rate/index.d.ts +85 -41
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +13 -10
- package/lib/rate/star.d.ts +33 -16
- package/lib/resize-layout/index.d.ts +463 -0
- package/lib/resize-layout/index.js +1 -0
- package/lib/resize-layout/resize-layout.css +189 -0
- package/lib/resize-layout/resize-layout.d.ts +127 -0
- package/lib/resize-layout/resize-layout.less +233 -0
- package/lib/resize-layout/resize-layout.variable.css +291 -0
- package/lib/select/common.d.ts +20 -22
- package/lib/select/index.d.ts +1522 -698
- package/lib/select/index.js +1 -15
- package/lib/select/option.d.ts +23 -19
- package/lib/select/optionGroup.d.ts +36 -97
- package/lib/select/select.css +226 -71
- package/lib/select/select.d.ts +376 -192
- package/lib/select/select.less +270 -130
- package/lib/select/select.variable.css +245 -74
- package/lib/select/selectTagInput.d.ts +72 -0
- package/lib/select/type.d.ts +38 -0
- package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
- package/lib/shared/index.d.ts +32 -6
- package/lib/shared/index.js +1 -1
- package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +33 -3
- package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +10 -2
- package/lib/shared/{bk-popover.d.ts → popover.d.ts} +50 -5
- package/lib/shared/token.d.ts +4 -0
- package/lib/shared/utils.d.ts +18 -0
- package/lib/shared/vue-types.d.ts +11 -7
- package/lib/sideslider/index.d.ts +630 -81
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.css +48 -3
- package/lib/sideslider/sideslider.d.ts +181 -30
- package/lib/sideslider/sideslider.less +65 -6
- package/lib/sideslider/sideslider.variable.css +67 -6
- package/lib/slider/index.d.ts +588 -1
- package/lib/slider/index.js +1 -15
- package/lib/slider/slider-button.d.ts +15 -7
- package/lib/slider/slider.d.ts +84 -42
- package/lib/slider/slider.variable.css +19 -3
- package/lib/steps/index.d.ts +258 -111
- package/lib/steps/index.js +1 -15
- package/lib/steps/steps.css +17 -3
- package/lib/steps/steps.d.ts +41 -28
- package/lib/steps/steps.less +27 -3
- package/lib/steps/steps.variable.css +36 -6
- package/lib/styles/index.d.ts +14 -0
- package/lib/styles/mixins/clearfix.css +8 -0
- package/lib/styles/mixins/clearfix.less +10 -0
- package/lib/styles/mixins/clearfix.variable.css +8 -0
- package/lib/styles/mixins/mixins.css +51 -0
- package/lib/styles/mixins/mixins.less +2 -0
- package/lib/styles/mixins/mixins.variable.css +51 -0
- package/lib/styles/mixins/scroll.css +17 -0
- package/lib/styles/mixins/scroll.less +22 -0
- package/lib/styles/mixins/scroll.variable.css +119 -0
- package/lib/styles/themes/themes.less +27 -3
- package/lib/swiper/index.d.ts +246 -0
- package/lib/swiper/index.js +1 -0
- package/lib/swiper/swiper.css +91 -0
- package/lib/swiper/swiper.d.ts +65 -0
- package/lib/swiper/swiper.less +107 -0
- package/lib/swiper/swiper.variable.css +91 -0
- package/lib/switcher/index.d.ts +315 -138
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +200 -135
- package/lib/switcher/switcher.d.ts +52 -36
- package/lib/switcher/switcher.less +211 -153
- package/lib/switcher/switcher.variable.css +219 -138
- package/lib/tab/index.d.ts +445 -282
- package/lib/tab/index.js +1 -1
- package/lib/tab/props.d.ts +194 -0
- package/lib/tab/tab-nav.d.ts +102 -87
- package/lib/tab/tab-panel.d.ts +53 -26
- package/lib/tab/tab.css +25 -1
- package/lib/tab/tab.d.ts +59 -51
- package/lib/tab/tab.less +31 -19
- package/lib/tab/tab.variable.css +44 -4
- package/lib/table/const.d.ts +67 -0
- package/lib/table/index.d.ts +728 -71
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.css +68 -0
- package/lib/table/plugins/head-filter.less +88 -0
- package/lib/table/plugins/head-filter.variable.css +170 -0
- package/lib/table/plugins/head-sort.css +22 -0
- package/lib/table/plugins/head-sort.less +28 -0
- package/lib/table/plugins/head-sort.variable.css +124 -0
- package/lib/table/plugins/settings.css +129 -0
- package/lib/table/plugins/settings.less +157 -0
- package/lib/table/plugins/settings.variable.css +231 -0
- package/lib/table/props.d.ts +210 -2
- package/lib/table/render.d.ts +76 -5
- package/lib/table/table.css +1089 -15
- package/lib/table/table.d.ts +221 -14
- package/lib/table/table.less +251 -24
- package/lib/table/table.variable.css +1109 -19
- package/lib/table/use-common.d.ts +72 -0
- package/lib/table/utils.d.ts +84 -2
- package/lib/tag/index.d.ts +249 -274
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +97 -0
- package/lib/tag/tag.d.ts +83 -53
- package/lib/tag/tag.less +110 -2
- package/lib/tag/tag.variable.css +116 -3
- package/lib/tag-input/common.d.ts +24 -0
- package/lib/tag-input/index.d.ts +1267 -0
- package/lib/tag-input/index.js +1 -0
- package/lib/tag-input/list-tag-render.d.ts +47 -0
- package/lib/tag-input/tag-input.css +209 -0
- package/lib/tag-input/tag-input.d.ts +374 -0
- package/lib/tag-input/tag-input.less +251 -0
- package/lib/tag-input/tag-input.variable.css +311 -0
- package/lib/tag-input/tag-props.d.ts +131 -0
- package/lib/tag-input/tag-render.d.ts +38 -0
- package/lib/timeline/index.d.ts +168 -0
- package/lib/timeline/index.js +1 -0
- package/lib/timeline/timeline.css +235 -0
- package/lib/timeline/timeline.d.ts +81 -0
- package/lib/timeline/timeline.less +240 -0
- package/lib/timeline/timeline.variable.css +337 -0
- package/lib/transfer/const.d.ts +5 -0
- package/lib/transfer/index.d.ts +500 -0
- package/lib/transfer/index.js +1 -0
- package/lib/transfer/props.d.ts +54 -0
- package/lib/transfer/transfer.css +139 -0
- package/lib/transfer/transfer.d.ts +160 -0
- package/lib/transfer/transfer.less +144 -0
- package/lib/transfer/transfer.variable.css +241 -0
- package/lib/tree/constant.d.ts +45 -0
- package/lib/tree/index.d.ts +695 -94
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +184 -0
- package/lib/tree/tree.css +176 -15
- package/lib/tree/tree.d.ts +201 -31
- package/lib/tree/tree.less +75 -38
- package/lib/tree/tree.variable.css +278 -15
- package/lib/tree/use-empty.d.ts +6 -0
- package/lib/tree/use-node-action.d.ts +12 -0
- package/lib/tree/use-node-async.d.ts +5 -0
- package/lib/tree/use-node-attribute.d.ts +33 -0
- package/lib/tree/use-node-drag.d.ts +3 -0
- package/lib/tree/use-search.d.ts +11 -0
- package/lib/tree/use-tree-init.d.ts +15 -0
- package/lib/tree/util.d.ts +34 -57
- package/lib/upload/index.d.ts +831 -0
- package/lib/upload/index.js +1 -0
- package/lib/upload/props.d.ts +113 -0
- package/lib/upload/upload-list.d.ts +46 -0
- package/lib/upload/upload-trigger.d.ts +54 -0
- package/lib/upload/upload.css +417 -0
- package/lib/upload/upload.d.ts +252 -0
- package/lib/upload/upload.less +455 -0
- package/lib/upload/upload.type.d.ts +78 -0
- package/lib/upload/upload.variable.css +519 -0
- package/lib/upload/use-ajax-upload.d.ts +3 -0
- package/lib/upload/use-file-handler.d.ts +44 -0
- package/lib/virtual-render/index.d.ts +834 -0
- package/lib/virtual-render/index.js +1 -0
- package/lib/virtual-render/props.d.ts +167 -0
- package/lib/virtual-render/use-tag-render.d.ts +7 -0
- package/lib/virtual-render/v-virtual-render.d.ts +6 -0
- package/lib/virtual-render/virtual-render.css +33 -0
- package/lib/virtual-render/virtual-render.d.ts +255 -0
- package/lib/virtual-render/virtual-render.less +22 -0
- package/lib/virtual-render/virtual-render.variable.css +135 -0
- package/lib/volar.components.d.ts +31 -0
- package/package.json +107 -84
- package/dist/bkui-vue.cjs.js +0 -9999
- package/dist/bkui-vue.esm.js +0 -9958
- package/dist/bkui-vue.umd.js +0 -10002
- package/lib/form/common.d.ts +0 -3
- package/lib/styles/index.js +0 -1
package/lib/tab/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../icon/"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon/"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../icon/")):t(e["../shared"],e.vue,e["../icon/"]);for(var a in n)("object"==typeof exports?exports:e)[a]=n[a]}}(self,((e,t,n)=>(()=>{"use strict";var a={7685:e=>{e.exports=n},4212:t=>{t.exports=e},748:e=>{e.exports=t}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return a[e](n,n.exports,o),n.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{o.r(l),o.d(l,{BkTab:()=>b,BkTabPanel:()=>u,default:()=>f});var e=o(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var n=o(748),a={tabAdd:{type:Function,default:function(){return{}}},tabChange:{type:Function,default:function(e){return e}},tabRemove:{type:Function,default:function(e){return e}},tabSort:{type:Function,default:function(){return{}}},tabDrag:{type:Function,default:function(){return{}}}},r={active:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]).def(""),type:e.PropTypes.commonType(["card","border-card","unborder-card"],"type").def("border-card"),tabPosition:e.PropTypes.commonType(["left","right","top"],"position").def("top"),closable:Boolean,addable:Boolean,sortable:Boolean,sortType:e.PropTypes.commonType(["replace","insert","top"],"sortType").def("replace"),labelHeight:e.PropTypes.number.def(50),scrollStep:e.PropTypes.number.def(200),extCls:e.PropTypes.string.def(""),validateActive:e.PropTypes.bool.def(!0),showHeader:e.PropTypes.bool.def(!0),changeOnHover:e.PropTypes.bool.def(!1),changeOnHoverDelay:e.PropTypes.number.def(1e3)},i=Object.assign({active:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]).def(""),panels:{type:Array,default:function(){return[]}},tabPosition:e.PropTypes.commonType(["left","right","top"],"position").def("top"),closable:Boolean,addable:Boolean,sortable:Boolean,sortType:e.PropTypes.commonType(["replace","insert","top"],"sortType").def("replace"),labelHeight:e.PropTypes.number.def(50),scrollStep:e.PropTypes.number.def(200),validateActive:e.PropTypes.bool.def(!0),changeOnHover:e.PropTypes.bool.def(!1),changeOnHoverDelay:e.PropTypes.number.def(1e3)},a),s={name:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]).def(""),label:e.PropTypes.string||e.PropTypes.func,closable:e.PropTypes.bool,visible:e.PropTypes.bool.def(!0),disabled:e.PropTypes.bool,sortable:e.PropTypes.bool,renderDirective:e.PropTypes.commonType(["if","show"],"render").def("show"),panel:e.PropTypes.string||e.PropTypes.func},p=o(7685);const c=(0,n.defineComponent)({name:"TabNav",props:i,setup:function(e){var t=(0,n.computed)((function(){if(!Array.isArray(e.panels)||!e.panels.length)return[];var t=[],a=!1;return e.panels.filter((function(r,o){if(!r.props)return null;var l=r.props,i=l.name,s=l.label,p=l.closable,c=l.visible,d=l.disabled,u=l.sortable;return!!c&&(e.active===i&&(a=!0),t.push({name:i,closable:p,visible:c,disabled:d,sortable:u,tabLabel:function(e){return r.slots.label?(0,n.h)(r.slots.label):[void 0,""].includes(e)?"选项卡".concat(o+1):"string"==typeof e?e:"function"==typeof e?(0,n.h)(e):e}(s)}),!0)})),!a&&e.validateActive&&e.panels[0].props&&e.tabChange(e.panels[0].props.name),t})),a=(0,n.ref)(-1),r=(0,n.ref)(-1),o=(0,n.ref)(""),l=function(e,t){return e===t},i={handleTabAdd:function(t){e.tabAdd(t)},dragstart:function(t,n){r.value=t,o.value=e.guid,Object.assign(n.dataTransfer,{effectAllowed:"move"}),e.tabDrag(t,n)},dragenter:function(t){l(o.value,e.guid)&&(a.value=t)},dragend:function(){a.value=-1,r.value=-1,o.value=null},drop:function(t,n){if(!l(o.value,e.guid))return!1;e.tabSort(r.value,t,n)},handleTabChange:function(t){e.tabChange(t)},handleTabRemove:function(t,n){e.tabRemove(t,n)}};return Object.assign(Object.assign({},i),{navs:t,dragenterIndex:a,dragStartIndex:r,draggingEle:o,guid:Math.random().toString(16).substr(4)+Math.random().toString(16).substr(4)})},render:function(){var e,t,a,r=this,o=this.active,l=this.closable,i=this.addable,s=this.sortable,c=this.sortType,d=this.labelHeight,u=this.dragstart,b=this.dragenter,f=this.dragend,v=this.drop;return(0,n.createVNode)("div",{style:{lineHeight:"".concat(d,"px")},class:"bk-tab-header"},[(0,n.createVNode)("div",{class:"bk-tab-header-nav"},[r.navs.map((function(e,t){if(!e)return null;var a,i=e.name,d=e.disabled,y=e.tabLabel,h=function(e,t){return e||t};return(0,n.createVNode)("div",{key:i,onClick:function(){return r.handleTabChange(i)},draggable:h(e.sortable,s),onDragstart:function(e){return u(t,e)},onDragenter:function(e){e.preventDefault(),b(t)},onDragleave:function(e){e.preventDefault()},onDragover:function(e){e.preventDefault()},onDragend:function(e){e.preventDefault(),f()},onDrop:function(e){e.preventDefault(),v(t,c)},class:(a=["bk-tab-header-item"],d&&a.push("bk-tab-header--disabled"),o===i&&a.push("bk-tab-header--active"),a.join(" "))},[(0,n.createVNode)("div",null,[y]),h(e.closable,l)&&(0,n.createVNode)(p.Close,{class:"bk-tab-header-item-close",onClick:function(){return r.handleTabRemove(t,e)}},null)])}))]),(a=[],"function"==typeof r.$slots.add?a.push(null===(t=(e=r.$slots).add)||void 0===t?void 0:t.call(e,n.h)):i&&a.push((0,n.createVNode)("div",{onClick:r.handleTabAdd},[(0,n.createVNode)(p.Plus,{width:26,height:26},null)])),a.length?(0,n.createVNode)("div",{class:"bk-tab-header-operation"},[a.map((function(e,t){return(0,n.createVNode)("div",{class:"bk-tab-header-item",key:t},[e])}))]):null),"function"==typeof this.$slots.setting&&(0,n.createVNode)("div",{class:"bk-tab-header-setting"},[this.$slots.setting()])])}}),d=(0,n.defineComponent)({name:"Tab",components:{TabNav:c},props:r,emits:["add-panel","tab-change","remove-panel","sort-change","on-drag-tab","add","change","remove","update:active","sort","drag"],setup:function(e,a){var r=a.slots,o=a.emit,l=(0,n.ref)(!1),i=(0,n.ref)([]),s=(0,n.getCurrentInstance)(),p=function e(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t.children;return(r||[]).forEach((function(t){var r=t.type;"TabPanel"===(r=r.name||r)&&t.component?a.push(t.component):r!==n.Fragment&&"template"!==r||e(t,a)})),a},c=function(){if(r.default){var e=s.subTree.children[1].children;if(!e)return;var t=e[0],n=p(t);n.length!==i.value.length&&(i.value=n)}};(0,n.onMounted)((function(){c(),l.value=!0})),(0,n.onUpdated)((function(){c()}));var d={tabAdd:function(e){o("add",{e}),o("add-panel",{e})},tabChange:function(e){o("change",e),o("tab-change",e),o("update:active",e)},tabRemove:function(e,t){o("remove",e,t),o("remove-panel",e,t)},tabSort:function(e,n,a){var r,l=i.value;if("insert"===a)if(e<n)l.splice(n+1,0,i[e]),l.splice(e,1);else{if(!(e>n))return!1;l.splice(n,0,i[e]),l.splice(e+1,1)}else{var s=l[n];l[n]=l[e],l[e]=s}i.value=function(e){if(Array.isArray(e))return t(e)}(r=l)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?t(e,n):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o("sort",e,n,a),o("sort-change",e,n,a)},tabDrag:function(e,t){o("drag",e,t),o("on-drag-tab",e,t)}};return Object.assign(Object.assign({},d),{isMounted:l,panels:i})},render:function(){var e,t,a,r,o=this;return(0,n.createVNode)("div",{class:"top"===o.tabPosition?"bk-tab bk-tab--".concat(o.tabPosition," bk-tab--").concat(o.type," ").concat(o.extCls):"bk-tab bk-tab--".concat(o.tabPosition," ").concat(o.extCls)},[(a=o.panels,r={panels:a,active:o.active,type:o.type,closable:o.closable,addable:o.addable,sortable:o.sortable,sortType:o.sortType,labelHeight:o.labelHeight,scrollStep:o.scrollStep,validateActive:o.validateActive,changeOnHover:o.changeOnHover,changeOnHoverDelay:o.changeOnHoverDelay,tabPosition:o.tabPosition,tabAdd:o.tabAdd,tabChange:o.tabChange,tabRemove:o.tabRemove,tabSort:o.tabSort,tabDrag:o.tabDrag},a&&Array.isArray(a)?(0,n.createVNode)(c,r,o.$slots):null),(0,n.createVNode)("div",{class:"bk-tab-content"},[null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])])}}),u=(0,n.defineComponent)({name:"TabPanel",props:s,render:function(){var e=this,t=this.name===this.$parent.active;return(0,n.withDirectives)((0,n.createVNode)("div",{ref:"content",class:"bk-tab-panel"},[!e.visible||"if"===e.renderDirective&&!t?null:"function"==typeof e.panel?e.panel(n.h):"function"==typeof e.$slots.default?e.$slots.default(null):"function"==typeof e.$slots.panel?e.$slots.panel(null):null]),[[n.vShow,t]])}});var b=(0,e.withInstallProps)(d,{TabPanel:u});const f=b})(),l})()));
|
@@ -0,0 +1,194 @@
|
|
1
|
+
import { PropType, VNode } from 'vue';
|
2
|
+
export declare const tabNavEventProps: {
|
3
|
+
tabAdd: {
|
4
|
+
type: FunctionConstructor;
|
5
|
+
default: () => any;
|
6
|
+
};
|
7
|
+
tabChange: {
|
8
|
+
type: FunctionConstructor;
|
9
|
+
default: (name: string) => string;
|
10
|
+
};
|
11
|
+
tabRemove: {
|
12
|
+
type: FunctionConstructor;
|
13
|
+
default: (name: string) => string;
|
14
|
+
};
|
15
|
+
tabSort: {
|
16
|
+
type: FunctionConstructor;
|
17
|
+
default: () => any;
|
18
|
+
};
|
19
|
+
tabDrag: {
|
20
|
+
type: FunctionConstructor;
|
21
|
+
default: () => any;
|
22
|
+
};
|
23
|
+
};
|
24
|
+
export declare const tabEventProps: {
|
25
|
+
add: {
|
26
|
+
type: FunctionConstructor;
|
27
|
+
default: () => any;
|
28
|
+
};
|
29
|
+
change: {
|
30
|
+
type: FunctionConstructor;
|
31
|
+
default: () => any;
|
32
|
+
};
|
33
|
+
remove: {
|
34
|
+
type: FunctionConstructor;
|
35
|
+
default: () => any;
|
36
|
+
};
|
37
|
+
sort: {
|
38
|
+
type: FunctionConstructor;
|
39
|
+
default: () => any;
|
40
|
+
};
|
41
|
+
drag: {
|
42
|
+
type: FunctionConstructor;
|
43
|
+
default: () => any;
|
44
|
+
};
|
45
|
+
};
|
46
|
+
export declare const tabProps: {
|
47
|
+
active: import("vue-types").VueTypeDef<string | number> & {
|
48
|
+
default: string | number;
|
49
|
+
};
|
50
|
+
type: import("vue-types").VueTypeDef<string> & {
|
51
|
+
default: string;
|
52
|
+
};
|
53
|
+
tabPosition: import("vue-types").VueTypeDef<string> & {
|
54
|
+
default: string;
|
55
|
+
};
|
56
|
+
closable: BooleanConstructor;
|
57
|
+
addable: BooleanConstructor;
|
58
|
+
sortable: BooleanConstructor;
|
59
|
+
sortType: import("vue-types").VueTypeDef<string> & {
|
60
|
+
default: string;
|
61
|
+
};
|
62
|
+
labelHeight: import("vue-types").VueTypeValidableDef<number> & {
|
63
|
+
default: number;
|
64
|
+
} & {
|
65
|
+
default: number;
|
66
|
+
};
|
67
|
+
scrollStep: import("vue-types").VueTypeValidableDef<number> & {
|
68
|
+
default: number;
|
69
|
+
} & {
|
70
|
+
default: number;
|
71
|
+
};
|
72
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
73
|
+
default: string;
|
74
|
+
} & {
|
75
|
+
default: string;
|
76
|
+
};
|
77
|
+
validateActive: import("vue-types").VueTypeValidableDef<boolean> & {
|
78
|
+
default: boolean;
|
79
|
+
} & {
|
80
|
+
default: boolean;
|
81
|
+
};
|
82
|
+
showHeader: import("vue-types").VueTypeValidableDef<boolean> & {
|
83
|
+
default: boolean;
|
84
|
+
} & {
|
85
|
+
default: boolean;
|
86
|
+
};
|
87
|
+
changeOnHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
88
|
+
default: boolean;
|
89
|
+
} & {
|
90
|
+
default: boolean;
|
91
|
+
};
|
92
|
+
changeOnHoverDelay: import("vue-types").VueTypeValidableDef<number> & {
|
93
|
+
default: number;
|
94
|
+
} & {
|
95
|
+
default: number;
|
96
|
+
};
|
97
|
+
};
|
98
|
+
export declare const tabNavProps: {
|
99
|
+
tabAdd: {
|
100
|
+
type: FunctionConstructor;
|
101
|
+
default: () => any;
|
102
|
+
};
|
103
|
+
tabChange: {
|
104
|
+
type: FunctionConstructor;
|
105
|
+
default: (name: string) => string;
|
106
|
+
};
|
107
|
+
tabRemove: {
|
108
|
+
type: FunctionConstructor;
|
109
|
+
default: (name: string) => string;
|
110
|
+
};
|
111
|
+
tabSort: {
|
112
|
+
type: FunctionConstructor;
|
113
|
+
default: () => any;
|
114
|
+
};
|
115
|
+
tabDrag: {
|
116
|
+
type: FunctionConstructor;
|
117
|
+
default: () => any;
|
118
|
+
};
|
119
|
+
active: import("vue-types").VueTypeDef<string | number> & {
|
120
|
+
default: string | number;
|
121
|
+
};
|
122
|
+
panels: {
|
123
|
+
type: PropType<VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
124
|
+
[key: string]: any;
|
125
|
+
}>[]>;
|
126
|
+
default: () => any[];
|
127
|
+
};
|
128
|
+
tabPosition: import("vue-types").VueTypeDef<string> & {
|
129
|
+
default: string;
|
130
|
+
};
|
131
|
+
closable: BooleanConstructor;
|
132
|
+
addable: BooleanConstructor;
|
133
|
+
sortable: BooleanConstructor;
|
134
|
+
sortType: import("vue-types").VueTypeDef<string> & {
|
135
|
+
default: string;
|
136
|
+
};
|
137
|
+
labelHeight: import("vue-types").VueTypeValidableDef<number> & {
|
138
|
+
default: number;
|
139
|
+
} & {
|
140
|
+
default: number;
|
141
|
+
};
|
142
|
+
scrollStep: import("vue-types").VueTypeValidableDef<number> & {
|
143
|
+
default: number;
|
144
|
+
} & {
|
145
|
+
default: number;
|
146
|
+
};
|
147
|
+
validateActive: import("vue-types").VueTypeValidableDef<boolean> & {
|
148
|
+
default: boolean;
|
149
|
+
} & {
|
150
|
+
default: boolean;
|
151
|
+
};
|
152
|
+
changeOnHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
153
|
+
default: boolean;
|
154
|
+
} & {
|
155
|
+
default: boolean;
|
156
|
+
};
|
157
|
+
changeOnHoverDelay: import("vue-types").VueTypeValidableDef<number> & {
|
158
|
+
default: number;
|
159
|
+
} & {
|
160
|
+
default: number;
|
161
|
+
};
|
162
|
+
};
|
163
|
+
export declare const tabPanelProps: {
|
164
|
+
name: import("vue-types").VueTypeDef<string | number> & {
|
165
|
+
default: string | number;
|
166
|
+
};
|
167
|
+
label: (import("vue-types").VueTypeValidableDef<string> & {
|
168
|
+
default: string;
|
169
|
+
}) | (import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
170
|
+
default: (...args: any[]) => any;
|
171
|
+
});
|
172
|
+
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
173
|
+
default: boolean;
|
174
|
+
};
|
175
|
+
visible: import("vue-types").VueTypeValidableDef<boolean> & {
|
176
|
+
default: boolean;
|
177
|
+
} & {
|
178
|
+
default: boolean;
|
179
|
+
};
|
180
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
181
|
+
default: boolean;
|
182
|
+
};
|
183
|
+
sortable: import("vue-types").VueTypeValidableDef<boolean> & {
|
184
|
+
default: boolean;
|
185
|
+
};
|
186
|
+
renderDirective: import("vue-types").VueTypeDef<string> & {
|
187
|
+
default: string;
|
188
|
+
};
|
189
|
+
panel: (import("vue-types").VueTypeValidableDef<string> & {
|
190
|
+
default: string;
|
191
|
+
}) | (import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
192
|
+
default: (...args: any[]) => any;
|
193
|
+
});
|
194
|
+
};
|
package/lib/tab/tab-nav.d.ts
CHANGED
@@ -1,29 +1,39 @@
|
|
1
|
-
import { VNode, PropType } from 'vue';
|
2
1
|
declare const _default: import("vue").DefineComponent<{
|
3
|
-
|
4
|
-
type:
|
2
|
+
tabAdd: {
|
3
|
+
type: FunctionConstructor;
|
4
|
+
default: () => any;
|
5
|
+
};
|
6
|
+
tabChange: {
|
7
|
+
type: FunctionConstructor;
|
8
|
+
default: (name: string) => string;
|
9
|
+
};
|
10
|
+
tabRemove: {
|
11
|
+
type: FunctionConstructor;
|
12
|
+
default: (name: string) => string;
|
13
|
+
};
|
14
|
+
tabSort: {
|
15
|
+
type: FunctionConstructor;
|
16
|
+
default: () => any;
|
17
|
+
};
|
18
|
+
tabDrag: {
|
19
|
+
type: FunctionConstructor;
|
20
|
+
default: () => any;
|
21
|
+
};
|
22
|
+
active: import("vue-types").VueTypeDef<string | number> & {
|
23
|
+
default: string | number;
|
5
24
|
};
|
6
25
|
panels: {
|
7
|
-
type: PropType<VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
26
|
+
type: import("vue").PropType<import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
8
27
|
[key: string]: any;
|
9
28
|
}>[]>;
|
10
29
|
default: () => any[];
|
11
30
|
};
|
12
|
-
|
13
|
-
default:
|
14
|
-
} & {
|
15
|
-
default: boolean;
|
16
|
-
};
|
17
|
-
addable: import("vue-types").VueTypeValidableDef<boolean> & {
|
18
|
-
default: boolean;
|
19
|
-
} & {
|
20
|
-
default: boolean;
|
21
|
-
};
|
22
|
-
sortable: import("vue-types").VueTypeValidableDef<boolean> & {
|
23
|
-
default: boolean;
|
24
|
-
} & {
|
25
|
-
default: boolean;
|
31
|
+
tabPosition: import("vue-types").VueTypeDef<string> & {
|
32
|
+
default: string;
|
26
33
|
};
|
34
|
+
closable: BooleanConstructor;
|
35
|
+
addable: BooleanConstructor;
|
36
|
+
sortable: BooleanConstructor;
|
27
37
|
sortType: import("vue-types").VueTypeDef<string> & {
|
28
38
|
default: string;
|
29
39
|
};
|
@@ -52,17 +62,37 @@ declare const _default: import("vue").DefineComponent<{
|
|
52
62
|
} & {
|
53
63
|
default: number;
|
54
64
|
};
|
65
|
+
}, {
|
66
|
+
navs: import("vue").ComputedRef<any[]>;
|
67
|
+
dragenterIndex: import("vue").Ref<number>;
|
68
|
+
dragStartIndex: import("vue").Ref<number>;
|
69
|
+
draggingEle: import("vue").Ref<string>;
|
70
|
+
guid: string;
|
71
|
+
/**
|
72
|
+
* @description 判断拖动的元素是否是在同一个tab。
|
73
|
+
* 使用guid,相比 el1.parentNode === el2.parentNode 判断,性能要高
|
74
|
+
* @param e {event} 触发的元素
|
75
|
+
* @return {boolean}
|
76
|
+
*/
|
77
|
+
handleTabAdd(e: any): void;
|
78
|
+
dragstart(index: number, $event: DragEvent): void;
|
79
|
+
dragenter(index: any): void;
|
80
|
+
dragend(): void;
|
81
|
+
drop(index: any, sortType: any): boolean;
|
82
|
+
handleTabChange(name: string): void;
|
83
|
+
handleTabRemove(index: number, panel: any): void;
|
84
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
55
85
|
tabAdd: {
|
56
86
|
type: FunctionConstructor;
|
57
87
|
default: () => any;
|
58
88
|
};
|
59
89
|
tabChange: {
|
60
90
|
type: FunctionConstructor;
|
61
|
-
default: () =>
|
91
|
+
default: (name: string) => string;
|
62
92
|
};
|
63
93
|
tabRemove: {
|
64
94
|
type: FunctionConstructor;
|
65
|
-
default: () =>
|
95
|
+
default: (name: string) => string;
|
66
96
|
};
|
67
97
|
tabSort: {
|
68
98
|
type: FunctionConstructor;
|
@@ -72,72 +102,62 @@ declare const _default: import("vue").DefineComponent<{
|
|
72
102
|
type: FunctionConstructor;
|
73
103
|
default: () => any;
|
74
104
|
};
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
}
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
changeOnHover
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
} & {
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
[key: string]: any;
|
120
|
-
}>[];
|
121
|
-
addable: boolean;
|
122
|
-
sortable: boolean;
|
123
|
-
labelHeight: number;
|
124
|
-
scrollStep: number;
|
125
|
-
validateActive: boolean;
|
126
|
-
changeOnHover: boolean;
|
127
|
-
changeOnHoverDelay: number;
|
128
|
-
} & {
|
129
|
-
active?: string | number;
|
130
|
-
tabAdd?: Function;
|
131
|
-
tabChange?: Function;
|
132
|
-
tabRemove?: Function;
|
133
|
-
tabSort?: Function;
|
134
|
-
tabDrag?: Function;
|
135
|
-
}> & {}, {
|
105
|
+
active: import("vue-types").VueTypeDef<string | number> & {
|
106
|
+
default: string | number;
|
107
|
+
};
|
108
|
+
panels: {
|
109
|
+
type: import("vue").PropType<import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
110
|
+
[key: string]: any;
|
111
|
+
}>[]>;
|
112
|
+
default: () => any[];
|
113
|
+
};
|
114
|
+
tabPosition: import("vue-types").VueTypeDef<string> & {
|
115
|
+
default: string;
|
116
|
+
};
|
117
|
+
closable: BooleanConstructor;
|
118
|
+
addable: BooleanConstructor;
|
119
|
+
sortable: BooleanConstructor;
|
120
|
+
sortType: import("vue-types").VueTypeDef<string> & {
|
121
|
+
default: string;
|
122
|
+
};
|
123
|
+
labelHeight: import("vue-types").VueTypeValidableDef<number> & {
|
124
|
+
default: number;
|
125
|
+
} & {
|
126
|
+
default: number;
|
127
|
+
};
|
128
|
+
scrollStep: import("vue-types").VueTypeValidableDef<number> & {
|
129
|
+
default: number;
|
130
|
+
} & {
|
131
|
+
default: number;
|
132
|
+
};
|
133
|
+
validateActive: import("vue-types").VueTypeValidableDef<boolean> & {
|
134
|
+
default: boolean;
|
135
|
+
} & {
|
136
|
+
default: boolean;
|
137
|
+
};
|
138
|
+
changeOnHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
139
|
+
default: boolean;
|
140
|
+
} & {
|
141
|
+
default: boolean;
|
142
|
+
};
|
143
|
+
changeOnHoverDelay: import("vue-types").VueTypeValidableDef<number> & {
|
144
|
+
default: number;
|
145
|
+
} & {
|
146
|
+
default: number;
|
147
|
+
};
|
148
|
+
}>>, {
|
136
149
|
closable: boolean;
|
150
|
+
active: string | number;
|
137
151
|
sortType: string;
|
138
|
-
|
152
|
+
tabAdd: Function;
|
153
|
+
tabChange: Function;
|
154
|
+
tabRemove: Function;
|
155
|
+
tabSort: Function;
|
156
|
+
tabDrag: Function;
|
157
|
+
panels: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
139
158
|
[key: string]: any;
|
140
159
|
}>[];
|
160
|
+
tabPosition: string;
|
141
161
|
addable: boolean;
|
142
162
|
sortable: boolean;
|
143
163
|
labelHeight: number;
|
@@ -145,10 +165,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
145
165
|
validateActive: boolean;
|
146
166
|
changeOnHover: boolean;
|
147
167
|
changeOnHoverDelay: number;
|
148
|
-
tabAdd: Function;
|
149
|
-
tabChange: Function;
|
150
|
-
tabRemove: Function;
|
151
|
-
tabSort: Function;
|
152
|
-
tabDrag: Function;
|
153
168
|
}>;
|
154
169
|
export default _default;
|
package/lib/tab/tab-panel.d.ts
CHANGED
@@ -1,9 +1,15 @@
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
2
|
-
name: {
|
3
|
-
|
2
|
+
name: import("vue-types").VueTypeDef<string | number> & {
|
3
|
+
default: string | number;
|
4
|
+
};
|
5
|
+
label: (import("vue-types").VueTypeValidableDef<string> & {
|
6
|
+
default: string;
|
7
|
+
}) | (import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
8
|
+
default: (...args: any[]) => any;
|
9
|
+
});
|
10
|
+
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
11
|
+
default: boolean;
|
4
12
|
};
|
5
|
-
label: StringConstructor | FunctionConstructor;
|
6
|
-
closable: BooleanConstructor | FunctionConstructor;
|
7
13
|
visible: import("vue-types").VueTypeValidableDef<boolean> & {
|
8
14
|
default: boolean;
|
9
15
|
} & {
|
@@ -11,36 +17,57 @@ declare const _default: import("vue").DefineComponent<{
|
|
11
17
|
};
|
12
18
|
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
13
19
|
default: boolean;
|
20
|
+
};
|
21
|
+
sortable: import("vue-types").VueTypeValidableDef<boolean> & {
|
22
|
+
default: boolean;
|
23
|
+
};
|
24
|
+
renderDirective: import("vue-types").VueTypeDef<string> & {
|
25
|
+
default: string;
|
26
|
+
};
|
27
|
+
panel: (import("vue-types").VueTypeValidableDef<string> & {
|
28
|
+
default: string;
|
29
|
+
}) | (import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
30
|
+
default: (...args: any[]) => any;
|
31
|
+
});
|
32
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
33
|
+
name: import("vue-types").VueTypeDef<string | number> & {
|
34
|
+
default: string | number;
|
35
|
+
};
|
36
|
+
label: (import("vue-types").VueTypeValidableDef<string> & {
|
37
|
+
default: string;
|
38
|
+
}) | (import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
39
|
+
default: (...args: any[]) => any;
|
40
|
+
});
|
41
|
+
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
42
|
+
default: boolean;
|
43
|
+
};
|
44
|
+
visible: import("vue-types").VueTypeValidableDef<boolean> & {
|
45
|
+
default: boolean;
|
14
46
|
} & {
|
15
47
|
default: boolean;
|
16
48
|
};
|
17
|
-
|
49
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
50
|
+
default: boolean;
|
51
|
+
};
|
52
|
+
sortable: import("vue-types").VueTypeValidableDef<boolean> & {
|
53
|
+
default: boolean;
|
54
|
+
};
|
18
55
|
renderDirective: import("vue-types").VueTypeDef<string> & {
|
19
56
|
default: string;
|
20
57
|
};
|
21
|
-
panel:
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
renderDirective?: unknown;
|
30
|
-
panel?: unknown;
|
31
|
-
} & {
|
32
|
-
visible: boolean;
|
58
|
+
panel: (import("vue-types").VueTypeValidableDef<string> & {
|
59
|
+
default: string;
|
60
|
+
}) | (import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
61
|
+
default: (...args: any[]) => any;
|
62
|
+
});
|
63
|
+
}>>, {
|
64
|
+
label: string | ((...args: any[]) => any);
|
65
|
+
name: string | number;
|
33
66
|
disabled: boolean;
|
34
|
-
|
35
|
-
} & {
|
36
|
-
label?: string | Function;
|
37
|
-
name?: string | number;
|
38
|
-
closable?: boolean | Function;
|
39
|
-
panel?: string | Function;
|
40
|
-
sortable?: boolean | Function;
|
41
|
-
}> & {}, {
|
67
|
+
closable: boolean;
|
42
68
|
visible: boolean;
|
43
|
-
|
69
|
+
panel: string | ((...args: any[]) => any);
|
44
70
|
renderDirective: string;
|
71
|
+
sortable: boolean;
|
45
72
|
}>;
|
46
73
|
export default _default;
|
package/lib/tab/tab.css
CHANGED
@@ -10,6 +10,7 @@
|
|
10
10
|
flex-direction: row-reverse;
|
11
11
|
}
|
12
12
|
.bk-tab-header {
|
13
|
+
position: relative;
|
13
14
|
display: flex;
|
14
15
|
color: #63656e;
|
15
16
|
}
|
@@ -22,6 +23,9 @@
|
|
22
23
|
.bk-tab--border-card .bk-tab-header > div {
|
23
24
|
border-right: 1px solid #dcdee5;
|
24
25
|
}
|
26
|
+
.bk-tab-header-navs {
|
27
|
+
flex: 1;
|
28
|
+
}
|
25
29
|
.bk-tab--top .bk-tab-header-nav {
|
26
30
|
overflow-x: auto;
|
27
31
|
overflow-y: visible;
|
@@ -40,9 +44,28 @@
|
|
40
44
|
width: 0;
|
41
45
|
height: 0;
|
42
46
|
}
|
47
|
+
.bk-tab-header-next,
|
48
|
+
.bk-tab-header-prev {
|
49
|
+
position: absolute;
|
50
|
+
top: 1px;
|
51
|
+
bottom: 1px;
|
52
|
+
width: 15px;
|
53
|
+
background: #fff;
|
54
|
+
content: '';
|
55
|
+
}
|
56
|
+
.bk-tab-header-prev {
|
57
|
+
left: 1px;
|
58
|
+
}
|
59
|
+
.bk-tab-header-next {
|
60
|
+
right: 1px;
|
61
|
+
}
|
43
62
|
.bk-tab-header-operation .bk-tab-header-item {
|
44
63
|
padding: 0 12px;
|
45
64
|
}
|
65
|
+
.bk-tab-header-setting {
|
66
|
+
justify-self: flex-end;
|
67
|
+
margin-left: auto;
|
68
|
+
}
|
46
69
|
.bk-tab--left .bk-tab-header {
|
47
70
|
border-right: 1px solid #dcdee5;
|
48
71
|
}
|
@@ -80,7 +103,7 @@
|
|
80
103
|
}
|
81
104
|
.bk-tab-header-item:hover .bk-tab-header-item-close {
|
82
105
|
display: block;
|
83
|
-
margin-left:
|
106
|
+
margin-left: 5px;
|
84
107
|
color: #ea3636;
|
85
108
|
}
|
86
109
|
.bk-tab--top .bk-tab-header-item {
|
@@ -111,6 +134,7 @@
|
|
111
134
|
}
|
112
135
|
.bk-tab-header-item-close {
|
113
136
|
display: none;
|
137
|
+
font-size: 16px;
|
114
138
|
color: #c4c6cc;
|
115
139
|
}
|
116
140
|
.bk-tab-header--active {
|