bkui-vue 0.0.1-beta.19 → 0.0.1-beta.191
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 +7 -3
- package/dist/index.cjs.js +171 -0
- package/dist/index.esm.js +36112 -0
- package/dist/index.umd.js +171 -0
- package/dist/style.css +1 -4783
- 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 +116 -0
- package/lib/affix/index.d.ts +143 -0
- package/lib/affix/index.js +1 -0
- package/lib/alert/alert.css +5 -3
- package/lib/alert/alert.less +7 -3
- package/lib/alert/alert.variable.css +28 -6
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.css +8 -0
- package/lib/backtop/backtop.d.ts +2 -2
- package/lib/backtop/backtop.less +8 -0
- package/lib/backtop/backtop.variable.css +31 -3
- package/lib/backtop/index.d.ts +7 -7
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.css +5 -5
- package/lib/badge/badge.d.ts +28 -7
- package/lib/badge/badge.less +5 -6
- package/lib/badge/badge.variable.css +28 -8
- package/lib/badge/index.d.ts +68 -18
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.css +51 -0
- package/lib/breadcrumb/breadcrumb.variable.css +74 -3
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button.css +92 -45
- package/lib/button/button.d.ts +50 -5
- package/lib/button/button.less +88 -47
- package/lib/button/button.variable.css +115 -48
- package/lib/button/index.d.ts +82 -11
- package/lib/button/index.js +1 -1
- package/lib/card/card.css +96 -1
- package/lib/card/card.d.ts +47 -6
- package/lib/card/card.less +50 -2
- package/lib/card/card.variable.css +119 -4
- package/lib/card/index.d.ts +113 -17
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +100 -0
- package/lib/cascader/cascader.css +173 -0
- package/lib/cascader/cascader.d.ts +303 -0
- package/lib/cascader/cascader.less +196 -0
- package/lib/cascader/cascader.variable.css +286 -0
- package/lib/cascader/index.d.ts +868 -0
- package/lib/cascader/index.js +1 -0
- package/lib/cascader/interface.d.ts +51 -0
- package/lib/cascader/node.d.ts +31 -0
- package/lib/cascader/store.d.ts +23 -0
- package/lib/checkbox/checkbox-group.d.ts +16 -0
- package/lib/checkbox/checkbox.css +38 -6
- package/lib/checkbox/checkbox.d.ts +16 -14
- package/lib/checkbox/checkbox.less +48 -6
- package/lib/checkbox/checkbox.variable.css +61 -9
- package/lib/checkbox/common.d.ts +3 -3
- package/lib/checkbox/index.d.ts +40 -23
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +3 -7
- 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 +299 -0
- package/lib/code-diff/index.d.ts +154 -0
- package/lib/code-diff/index.js +1 -0
- package/lib/collapse/collapse-panel.d.ts +75 -0
- package/lib/collapse/collapse.css +28 -12
- package/lib/collapse/collapse.d.ts +11 -52
- package/lib/collapse/collapse.less +54 -29
- package/lib/collapse/collapse.variable.css +141 -12
- package/lib/collapse/index.d.ts +116 -16
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/props.d.ts +123 -0
- package/lib/collapse/utils.d.ts +11 -0
- package/lib/color-picker/color-picker.css +275 -0
- package/lib/color-picker/color-picker.d.ts +144 -0
- package/lib/color-picker/color-picker.less +325 -0
- package/lib/color-picker/color-picker.variable.css +388 -0
- package/lib/color-picker/index.d.ts +254 -0
- package/lib/color-picker/index.js +1 -0
- package/lib/color-picker/utils.d.ts +37 -0
- package/lib/components.d.ts +28 -7
- 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 +204 -0
- package/lib/container/index.d.ts +223 -0
- package/lib/container/index.js +1 -0
- package/lib/container/row.d.ts +4 -0
- package/lib/date-picker/date-picker.css +18 -2
- package/lib/date-picker/date-picker.d.ts +53 -136
- package/lib/date-picker/date-picker.less +23 -2
- package/lib/date-picker/date-picker.variable.css +41 -5
- package/lib/date-picker/index.d.ts +87 -26
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/interface.d.ts +10 -1
- package/lib/date-picker/props.d.ts +161 -0
- package/lib/date-picker/time-picker.d.ts +381 -0
- package/lib/date-picker/utils.d.ts +22 -1
- package/lib/dialog/dialog.css +132 -21
- package/lib/dialog/dialog.d.ts +266 -56
- package/lib/dialog/dialog.less +77 -22
- package/lib/dialog/dialog.variable.css +132 -21
- package/lib/dialog/index.d.ts +586 -124
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/props.d.ts +135 -0
- package/lib/directives/clickoutside.d.ts +3 -23
- package/lib/directives/ellipsis.d.ts +7 -0
- package/lib/directives/index.d.ts +1 -0
- 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 +1 -1
- package/lib/divider/divider.variable.css +23 -3
- package/lib/divider/index.d.ts +4 -4
- package/lib/divider/index.js +1 -1
- package/lib/divider/props.d.ts +21 -0
- package/lib/dropdown/const.d.ts +4 -0
- package/lib/dropdown/dropdown.css +13 -7
- package/lib/dropdown/dropdown.d.ts +35 -4
- package/lib/dropdown/dropdown.less +47 -34
- package/lib/dropdown/dropdown.variable.css +36 -10
- package/lib/dropdown/index.d.ts +75 -14
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/exception.css +40 -14
- package/lib/exception/exception.d.ts +10 -3
- package/lib/exception/exception.less +59 -22
- package/lib/exception/exception.variable.css +63 -17
- package/lib/exception/index.d.ts +23 -8
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/fixed-navbar.d.ts +16 -2
- package/lib/fixed-navbar/fixed-navbar.variable.css +23 -3
- package/lib/fixed-navbar/index.d.ts +40 -5
- 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 +21 -24
- package/lib/form/form.css +102 -10
- package/lib/form/form.d.ts +37 -40
- package/lib/form/form.less +145 -34
- package/lib/form/form.variable.css +215 -10
- package/lib/form/index.d.ts +103 -85
- 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.js +1 -15
- package/lib/icon/angle-double-left-line.js +1 -15
- package/lib/icon/angle-double-left.js +1 -15
- package/lib/icon/angle-double-right-line.js +1 -15
- package/lib/icon/angle-double-right.js +1 -15
- package/lib/icon/angle-double-up-line.js +1 -15
- package/lib/icon/angle-down-fill.js +1 -15
- package/lib/icon/angle-down-line.js +1 -15
- package/lib/icon/angle-down.js +1 -15
- package/lib/icon/angle-left.js +1 -15
- package/lib/icon/angle-right.js +1 -15
- package/lib/icon/angle-up-fill.js +1 -15
- package/lib/icon/angle-up.js +1 -15
- package/lib/icon/archive-fill.d.ts +4 -0
- package/lib/icon/archive-fill.js +1 -0
- package/lib/icon/arrows-left.js +1 -15
- 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 -15
- package/lib/icon/close-line.d.ts +4 -0
- package/lib/icon/close-line.js +1 -0
- package/lib/icon/close.js +1 -15
- package/lib/icon/code.js +1 -15
- package/lib/icon/cog-shape.js +1 -15
- package/lib/icon/collapse-left.js +1 -15
- package/lib/icon/copy.js +1 -15
- 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 -15
- package/lib/icon/down-shape.js +1 -15
- package/lib/icon/down-small.js +1 -15
- package/lib/icon/edit-line.d.ts +4 -0
- package/lib/icon/edit-line.js +1 -0
- package/lib/icon/ellipsis.js +1 -15
- package/lib/icon/enlarge-line.d.ts +4 -0
- package/lib/icon/enlarge-line.js +1 -0
- package/lib/icon/error.js +1 -15
- 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 -15
- package/lib/icon/filliscreen-line.d.ts +4 -0
- package/lib/icon/filliscreen-line.js +1 -0
- package/lib/icon/folder-open.js +1 -15
- package/lib/icon/folder-shape-open.js +1 -15
- package/lib/icon/folder-shape.js +1 -15
- package/lib/icon/folder.js +1 -15
- package/lib/icon/funnel.d.ts +4 -0
- package/lib/icon/funnel.js +1 -0
- package/lib/icon/help-document-fill.js +1 -15
- package/lib/icon/help-fill.js +1 -15
- package/lib/icon/help.js +1 -15
- package/lib/icon/image-fill.d.ts +4 -0
- package/lib/icon/image-fill.js +1 -0
- package/lib/icon/img-error.d.ts +4 -0
- package/lib/icon/img-error.js +1 -0
- package/lib/icon/img-placehoulder.d.ts +4 -0
- package/lib/icon/img-placehoulder.js +1 -0
- package/lib/icon/index.d.ts +29 -0
- package/lib/icon/index.js +1 -15
- package/lib/icon/info-line.js +1 -15
- package/lib/icon/info.js +1 -15
- package/lib/icon/left-shape.js +1 -15
- package/lib/icon/left-turn-line.d.ts +4 -0
- package/lib/icon/left-turn-line.js +1 -0
- package/lib/icon/narrow-line.d.ts +4 -0
- package/lib/icon/narrow-line.js +1 -0
- package/lib/icon/original .d.ts +4 -0
- package/lib/icon/original .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 -15
- package/lib/icon/plus.js +1 -15
- 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 -15
- package/lib/icon/right-turn-line.d.ts +4 -0
- package/lib/icon/right-turn-line.js +1 -0
- package/lib/icon/search.js +1 -15
- package/lib/icon/share.js +1 -15
- package/lib/icon/spinner.js +1 -15
- package/lib/icon/success.js +1 -15
- package/lib/icon/switcher-loading.js +1 -15
- package/lib/icon/text-file.js +1 -15
- 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 -15
- package/lib/icon/unfull-screen.d.ts +4 -0
- package/lib/icon/unfull-screen.js +1 -0
- package/lib/icon/unvisible.js +1 -15
- package/lib/icon/up-shape.js +1 -15
- 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 -15
- package/lib/icon/weixin.d.ts +4 -0
- package/lib/icon/weixin.js +1 -0
- package/lib/image/image-viewer.css +142 -0
- package/lib/image/image-viewer.d.ts +73 -0
- package/lib/image/image-viewer.less +168 -0
- package/lib/image/image-viewer.variable.css +142 -0
- package/lib/image/image.css +37 -0
- package/lib/image/image.d.ts +93 -0
- package/lib/image/image.less +44 -0
- package/lib/image/image.variable.css +37 -0
- package/lib/image/index.d.ts +246 -0
- package/lib/image/index.js +1 -0
- package/lib/image/props.d.ts +71 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -0
- package/lib/info-box/index.css +37 -0
- package/lib/info-box/index.d.ts +26 -0
- package/lib/info-box/index.js +1 -0
- package/lib/info-box/index.less +50 -0
- package/lib/info-box/index.variable.css +37 -0
- package/lib/input/index.d.ts +209 -44
- package/lib/input/index.js +1 -15
- package/lib/input/input.css +232 -17
- package/lib/input/input.d.ts +142 -12
- package/lib/input/input.less +180 -18
- package/lib/input/input.variable.css +252 -16
- package/lib/link/index.d.ts +4 -4
- package/lib/link/index.js +1 -1
- package/lib/link/link.css +12 -12
- package/lib/link/link.d.ts +1 -1
- package/lib/link/link.less +16 -14
- package/lib/link/link.variable.css +35 -15
- package/lib/loading/index.d.ts +135 -19
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +177 -98
- package/lib/loading/loading.d.ts +96 -12
- package/lib/loading/loading.less +84 -73
- package/lib/loading/loading.variable.css +200 -101
- package/lib/menu/index.d.ts +16 -24
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu.css +51 -0
- package/lib/menu/menu.d.ts +7 -16
- package/lib/menu/menu.variable.css +74 -3
- package/lib/menu/submenu.variable.css +23 -3
- package/lib/menu/utils.d.ts +1 -1
- package/lib/message/index.js +1 -1
- package/lib/message/message.css +24 -3
- package/lib/message/message.less +27 -2
- package/lib/message/message.variable.css +47 -6
- package/lib/message/messageConstructor.d.ts +43 -7
- package/lib/modal/index.d.ts +483 -75
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +63 -1
- package/lib/modal/modal.d.ts +185 -29
- package/lib/modal/modal.less +36 -1
- package/lib/modal/modal.variable.css +63 -1
- package/lib/modal/props.mixin.d.ts +79 -13
- package/lib/navigation/index.d.ts +310 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation.css +1 -1
- package/lib/navigation/navigation.d.ts +10 -1
- package/lib/navigation/navigation.less +1 -1
- package/lib/navigation/navigation.variable.css +24 -4
- package/lib/notify/index.js +1 -1
- package/lib/notify/notify.css +24 -4
- package/lib/notify/notify.less +27 -4
- package/lib/notify/notify.variable.css +47 -7
- package/lib/notify/notifyConstructor.d.ts +50 -6
- package/lib/pagination/index.d.ts +35 -20
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/pagination.css +54 -28
- package/lib/pagination/pagination.d.ts +16 -6
- package/lib/pagination/pagination.less +58 -31
- package/lib/pagination/pagination.variable.css +77 -31
- package/lib/pagination/type.d.ts +1 -1
- package/lib/plugin-popover/index.d.ts +27 -0
- package/lib/plugin-popover/index.js +1 -0
- package/lib/plugins/index.d.ts +1 -0
- package/lib/plugins/index.js +1 -0
- package/lib/popover/index.d.ts +114 -14
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +3 -0
- package/lib/popover/popover.d.ts +53 -5
- package/lib/popover/popover.less +2 -0
- package/lib/popover/popover.variable.css +26 -3
- package/lib/popover/props.d.ts +28 -1
- 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 +524 -0
- package/lib/popover2/index.js +1 -0
- package/lib/popover2/plugin-popover.d.ts +12 -0
- package/lib/popover2/popover2.css +25 -0
- package/lib/popover2/popover2.d.ts +221 -0
- package/lib/popover2/popover2.less +35 -0
- package/lib/popover2/popover2.variable.css +138 -0
- package/lib/popover2/props.d.ts +118 -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-popover-init.d.ts +13 -0
- package/lib/popover2/use-popper-id.d.ts +7 -0
- package/lib/popover2/utils.d.ts +1 -0
- package/lib/preset.js +1 -0
- package/lib/process/index.d.ts +7 -7
- package/lib/process/index.js +1 -15
- package/lib/process/process.d.ts +2 -2
- package/lib/process/process.variable.css +23 -3
- package/lib/progress/index.d.ts +7 -7
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +51 -0
- package/lib/progress/progress.d.ts +2 -2
- package/lib/progress/progress.variable.css +74 -3
- package/lib/radio/common.d.ts +5 -5
- package/lib/radio/index.d.ts +30 -19
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +7 -8
- package/lib/radio/radio-group.d.ts +16 -0
- package/lib/radio/radio.css +62 -57
- package/lib/radio/radio.d.ts +4 -4
- package/lib/radio/radio.less +181 -172
- package/lib/radio/radio.variable.css +87 -62
- package/lib/radio/type.d.ts +10 -5
- package/lib/rate/index.d.ts +24 -1
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +11 -0
- package/lib/rate/star.d.ts +1 -1
- package/lib/resize-layout/index.d.ts +336 -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 +302 -0
- package/lib/select/common.d.ts +20 -31
- package/lib/select/index.d.ts +1410 -451
- package/lib/select/index.js +1 -15
- package/lib/select/option.d.ts +16 -4
- package/lib/select/optionGroup.d.ts +1 -77
- package/lib/select/select.css +263 -80
- package/lib/select/select.d.ts +549 -126
- package/lib/select/select.less +364 -185
- package/lib/select/select.variable.css +287 -84
- package/lib/select/selectTagInput.d.ts +92 -0
- package/lib/select/type.d.ts +38 -0
- package/lib/shared/dom.d.ts +3 -0
- package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +0 -1
- package/lib/shared/index.d.ts +17 -4
- package/lib/shared/index.js +1 -1
- package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +3 -2
- package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +3 -2
- package/lib/shared/{bk-popover.d.ts → popover.d.ts} +7 -3
- package/lib/shared/token.d.ts +4 -0
- package/lib/shared/utils.d.ts +13 -0
- package/lib/shared/vue-types.d.ts +9 -1
- package/lib/sideslider/index.d.ts +373 -73
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.css +54 -10
- package/lib/sideslider/sideslider.d.ts +173 -32
- package/lib/sideslider/sideslider.less +71 -13
- package/lib/sideslider/sideslider.variable.css +77 -13
- package/lib/slider/index.d.ts +414 -1
- package/lib/slider/index.js +1 -15
- package/lib/slider/slider-button.d.ts +5 -0
- package/lib/slider/slider.d.ts +14 -2
- package/lib/slider/slider.variable.css +23 -3
- package/lib/steps/index.d.ts +4 -4
- package/lib/steps/index.js +1 -15
- package/lib/steps/steps.css +14 -3
- package/lib/steps/steps.d.ts +1 -1
- package/lib/steps/steps.less +23 -3
- package/lib/steps/steps.variable.css +37 -6
- package/lib/styles/index.d.ts +12 -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 +130 -0
- package/lib/styles/reset.css +36 -0
- package/lib/styles/reset.less +26 -0
- package/lib/styles/reset.variable.css +36 -0
- package/lib/styles/themes/themes.less +29 -3
- package/lib/swiper/index.d.ts +181 -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 +37 -14
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +57 -6
- package/lib/switcher/switcher.d.ts +16 -5
- package/lib/switcher/switcher.less +5 -26
- package/lib/switcher/switcher.variable.css +80 -9
- package/lib/tab/index.d.ts +107 -219
- package/lib/tab/index.js +1 -1
- package/lib/tab/props.d.ts +194 -0
- package/lib/tab/tab-nav.d.ts +66 -87
- package/lib/tab/tab-panel.d.ts +40 -15
- package/lib/tab/tab.css +25 -1
- package/lib/tab/tab.d.ts +17 -41
- package/lib/tab/tab.less +31 -19
- package/lib/tab/tab.variable.css +48 -4
- package/lib/table/const.d.ts +80 -1
- package/lib/table/index.d.ts +774 -9
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.css +72 -0
- package/lib/table/plugins/head-filter.less +93 -0
- package/lib/table/plugins/head-filter.variable.css +185 -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 +135 -0
- package/lib/table/plugins/settings.css +129 -0
- package/lib/table/plugins/settings.less +157 -0
- package/lib/table/plugins/settings.variable.css +242 -0
- package/lib/table/props.d.ts +257 -4
- package/lib/table/render.d.ts +64 -6
- package/lib/table/table.css +1128 -15
- package/lib/table/table.d.ts +197 -5
- package/lib/table/table.less +223 -24
- package/lib/table/table.variable.css +1162 -29
- package/lib/table/use-column.d.ts +11 -0
- package/lib/table/use-common.d.ts +94 -0
- package/lib/table/utils.d.ts +52 -3
- package/lib/table-column/index.d.ts +328 -0
- package/lib/table-column/index.js +1 -0
- package/lib/tag/index.d.ts +189 -22
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +112 -0
- package/lib/tag/tag.d.ts +83 -7
- package/lib/tag/tag.less +127 -2
- package/lib/tag/tag.variable.css +135 -3
- package/lib/tag-input/common.d.ts +24 -0
- package/lib/tag-input/index.d.ts +913 -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 +383 -0
- package/lib/tag-input/tag-input.less +251 -0
- package/lib/tag-input/tag-input.variable.css +322 -0
- package/lib/tag-input/tag-props.d.ts +135 -0
- package/lib/tag-input/tag-render.d.ts +38 -0
- package/lib/time-picker/index.d.ts +904 -0
- package/lib/time-picker/index.js +1 -0
- package/lib/time-picker/time-picker.css +215 -0
- package/lib/time-picker/time-picker.less +260 -0
- package/lib/time-picker/time-picker.variable.css +328 -0
- package/lib/timeline/index.d.ts +4 -4
- package/lib/timeline/index.js +1 -1
- package/lib/timeline/timeline.css +5 -5
- package/lib/timeline/timeline.d.ts +1 -1
- package/lib/timeline/timeline.less +6 -5
- package/lib/timeline/timeline.variable.css +28 -8
- package/lib/transfer/const.d.ts +5 -0
- package/lib/transfer/index.d.ts +365 -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 +252 -0
- package/lib/tree/constant.d.ts +45 -0
- package/lib/tree/index.d.ts +337 -41
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +114 -0
- package/lib/tree/tree.css +175 -14
- package/lib/tree/tree.d.ts +156 -14
- package/lib/tree/tree.less +70 -26
- package/lib/tree/tree.variable.css +288 -14
- 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 +31 -13
- package/lib/upload/index.d.ts +580 -0
- package/lib/upload/index.js +1 -0
- package/lib/upload/props.d.ts +113 -0
- package/lib/upload/upload-list.d.ts +47 -0
- package/lib/upload/upload-trigger.d.ts +54 -0
- package/lib/upload/upload.css +422 -0
- package/lib/upload/upload.d.ts +252 -0
- package/lib/upload/upload.less +461 -0
- package/lib/upload/upload.type.d.ts +78 -0
- package/lib/upload/upload.variable.css +535 -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 +24 -1
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +10 -0
- package/lib/virtual-render/use-tag-render.d.ts +7 -0
- package/lib/virtual-render/v-virtual-render.d.ts +0 -1
- package/lib/virtual-render/virtual-render.css +17 -24
- package/lib/virtual-render/virtual-render.d.ts +13 -2
- package/lib/virtual-render/virtual-render.less +2 -31
- package/lib/virtual-render/virtual-render.variable.css +130 -24
- package/lib/volar.components.d.ts +100 -0
- package/package.json +71 -51
- package/README_EN.md +0 -89
- package/dist/bkui-vue.cjs.js +0 -12407
- package/dist/bkui-vue.esm.js +0 -12357
- package/dist/bkui-vue.umd.js +0 -12410
- package/lib/form/common.d.ts +0 -3
- package/lib/icon/icon.js +0 -15
- package/lib/styles/index.js +0 -1
- package/lib/styles/mixins/animate.css +0 -21
- package/lib/use-form.d.ts +0 -3
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,54 +102,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
72
102
|
type: FunctionConstructor;
|
73
103
|
default: () => any;
|
74
104
|
};
|
75
|
-
|
76
|
-
|
77
|
-
dragenterIndex: import("vue").Ref<number>;
|
78
|
-
dragStartIndex: import("vue").Ref<number>;
|
79
|
-
draggingEle: import("vue").Ref<string>;
|
80
|
-
guid: string;
|
81
|
-
}, unknown, {}, {
|
82
|
-
/**
|
83
|
-
* @description 判断拖动的元素是否是在同一个tab。
|
84
|
-
* 使用guid,相比 el1.parentNode === el2.parentNode 判断,性能要高
|
85
|
-
* @param el1 {string} 拖动的元素
|
86
|
-
* @param el2 {string} 触发的元素
|
87
|
-
* @return {boolean}
|
88
|
-
*/
|
89
|
-
distinctRoots(el1: string, el2: string): boolean;
|
90
|
-
swapArr(arr: any[], a: number, b: number): void;
|
91
|
-
handleTabAdd(e: MouseEvent): void;
|
92
|
-
dragstart(index: number, $event: DragEvent): void;
|
93
|
-
dragenter(index: any): void;
|
94
|
-
dragend(): void;
|
95
|
-
drop(index: any, sortType: any): false;
|
96
|
-
handleTabChange(name: string): void;
|
97
|
-
handleTabRemove(index: number, panel: any): void;
|
98
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
99
|
-
active: {
|
100
|
-
type: NumberConstructor | StringConstructor;
|
105
|
+
active: import("vue-types").VueTypeDef<string | number> & {
|
106
|
+
default: string | number;
|
101
107
|
};
|
102
108
|
panels: {
|
103
|
-
type: PropType<VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
109
|
+
type: import("vue").PropType<import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
104
110
|
[key: string]: any;
|
105
111
|
}>[]>;
|
106
112
|
default: () => any[];
|
107
113
|
};
|
108
|
-
|
109
|
-
default:
|
110
|
-
} & {
|
111
|
-
default: boolean;
|
112
|
-
};
|
113
|
-
addable: import("vue-types").VueTypeValidableDef<boolean> & {
|
114
|
-
default: boolean;
|
115
|
-
} & {
|
116
|
-
default: boolean;
|
117
|
-
};
|
118
|
-
sortable: import("vue-types").VueTypeValidableDef<boolean> & {
|
119
|
-
default: boolean;
|
120
|
-
} & {
|
121
|
-
default: boolean;
|
114
|
+
tabPosition: import("vue-types").VueTypeDef<string> & {
|
115
|
+
default: string;
|
122
116
|
};
|
117
|
+
closable: BooleanConstructor;
|
118
|
+
addable: BooleanConstructor;
|
119
|
+
sortable: BooleanConstructor;
|
123
120
|
sortType: import("vue-types").VueTypeDef<string> & {
|
124
121
|
default: string;
|
125
122
|
};
|
@@ -148,32 +145,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
148
145
|
} & {
|
149
146
|
default: number;
|
150
147
|
};
|
151
|
-
tabAdd: {
|
152
|
-
type: FunctionConstructor;
|
153
|
-
default: () => any;
|
154
|
-
};
|
155
|
-
tabChange: {
|
156
|
-
type: FunctionConstructor;
|
157
|
-
default: () => any;
|
158
|
-
};
|
159
|
-
tabRemove: {
|
160
|
-
type: FunctionConstructor;
|
161
|
-
default: () => any;
|
162
|
-
};
|
163
|
-
tabSort: {
|
164
|
-
type: FunctionConstructor;
|
165
|
-
default: () => any;
|
166
|
-
};
|
167
|
-
tabDrag: {
|
168
|
-
type: FunctionConstructor;
|
169
|
-
default: () => any;
|
170
|
-
};
|
171
148
|
}>>, {
|
172
149
|
closable: boolean;
|
150
|
+
active: string | number;
|
173
151
|
sortType: string;
|
174
|
-
|
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, {
|
175
158
|
[key: string]: any;
|
176
159
|
}>[];
|
160
|
+
tabPosition: string;
|
177
161
|
addable: boolean;
|
178
162
|
sortable: boolean;
|
179
163
|
labelHeight: number;
|
@@ -181,10 +165,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
181
165
|
validateActive: boolean;
|
182
166
|
changeOnHover: boolean;
|
183
167
|
changeOnHoverDelay: number;
|
184
|
-
tabAdd: Function;
|
185
|
-
tabChange: Function;
|
186
|
-
tabRemove: Function;
|
187
|
-
tabSort: Function;
|
188
|
-
tabDrag: Function;
|
189
168
|
}>;
|
190
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,20 +17,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
11
17
|
};
|
12
18
|
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
13
19
|
default: boolean;
|
14
|
-
}
|
20
|
+
};
|
21
|
+
sortable: import("vue-types").VueTypeValidableDef<boolean> & {
|
15
22
|
default: boolean;
|
16
23
|
};
|
17
|
-
sortable: BooleanConstructor | FunctionConstructor;
|
18
24
|
renderDirective: import("vue-types").VueTypeDef<string> & {
|
19
25
|
default: string;
|
20
26
|
};
|
21
|
-
panel:
|
27
|
+
panel: (import("vue-types").VueTypeValidableDef<string> & {
|
28
|
+
default: string;
|
29
|
+
}) | (import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
30
|
+
default: (...args: any[]) => any;
|
31
|
+
});
|
22
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<{
|
23
|
-
name: {
|
24
|
-
|
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;
|
25
43
|
};
|
26
|
-
label: StringConstructor | FunctionConstructor;
|
27
|
-
closable: BooleanConstructor | FunctionConstructor;
|
28
44
|
visible: import("vue-types").VueTypeValidableDef<boolean> & {
|
29
45
|
default: boolean;
|
30
46
|
} & {
|
@@ -32,17 +48,26 @@ declare const _default: import("vue").DefineComponent<{
|
|
32
48
|
};
|
33
49
|
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
34
50
|
default: boolean;
|
35
|
-
}
|
51
|
+
};
|
52
|
+
sortable: import("vue-types").VueTypeValidableDef<boolean> & {
|
36
53
|
default: boolean;
|
37
54
|
};
|
38
|
-
sortable: BooleanConstructor | FunctionConstructor;
|
39
55
|
renderDirective: import("vue-types").VueTypeDef<string> & {
|
40
56
|
default: string;
|
41
57
|
};
|
42
|
-
panel:
|
58
|
+
panel: (import("vue-types").VueTypeValidableDef<string> & {
|
59
|
+
default: string;
|
60
|
+
}) | (import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
61
|
+
default: (...args: any[]) => any;
|
62
|
+
});
|
43
63
|
}>>, {
|
44
|
-
|
64
|
+
label: string | ((...args: any[]) => any);
|
65
|
+
name: string | number;
|
45
66
|
disabled: boolean;
|
67
|
+
visible: boolean;
|
68
|
+
closable: boolean;
|
46
69
|
renderDirective: string;
|
70
|
+
panel: string | ((...args: any[]) => any);
|
71
|
+
sortable: boolean;
|
47
72
|
}>;
|
48
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 {
|