bkui-vue 0.0.1-beta.17 → 0.0.1-beta.170
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 +35199 -0
- package/dist/index.umd.js +171 -0
- package/dist/style.css +1 -4602
- 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 +29 -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 +32 -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 +29 -8
- package/lib/badge/badge.less +5 -6
- package/lib/badge/badge.variable.css +29 -8
- package/lib/badge/index.d.ts +71 -21
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +1 -1
- package/lib/breadcrumb/breadcrumb.css +51 -0
- package/lib/breadcrumb/breadcrumb.d.ts +1 -1
- package/lib/breadcrumb/breadcrumb.variable.css +75 -3
- package/lib/breadcrumb/index.d.ts +5 -5
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button.css +92 -45
- package/lib/button/button.d.ts +51 -6
- package/lib/button/button.less +88 -47
- package/lib/button/button.variable.css +116 -48
- package/lib/button/index.d.ts +85 -14
- 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 +120 -4
- package/lib/card/index.d.ts +113 -17
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +66 -0
- package/lib/cascader/cascader.css +150 -0
- package/lib/cascader/cascader.d.ts +289 -0
- package/lib/cascader/cascader.less +170 -0
- package/lib/cascader/cascader.variable.css +263 -0
- package/lib/cascader/index.d.ts +792 -0
- package/lib/cascader/index.js +1 -0
- package/lib/cascader/interface.d.ts +47 -0
- package/lib/cascader/node.d.ts +25 -0
- package/lib/cascader/store.d.ts +19 -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 +62 -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 +26 -6
- 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 +54 -137
- package/lib/date-picker/date-picker.less +23 -2
- package/lib/date-picker/date-picker.variable.css +42 -5
- package/lib/date-picker/index.d.ts +93 -32
- 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 +78 -21
- package/lib/dialog/dialog.d.ts +264 -52
- package/lib/dialog/dialog.less +56 -22
- package/lib/dialog/dialog.variable.css +78 -21
- package/lib/dialog/index.d.ts +581 -115
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/props.d.ts +132 -0
- 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 +1 -1
- package/lib/divider/divider.variable.css +24 -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 +12 -5
- package/lib/dropdown/dropdown.d.ts +35 -4
- package/lib/dropdown/dropdown.less +48 -34
- package/lib/dropdown/dropdown.variable.css +36 -8
- 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 +64 -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 +24 -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 +38 -41
- package/lib/form/form.less +145 -34
- package/lib/form/form.variable.css +215 -10
- package/lib/form/index.d.ts +303 -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 -15
- 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 -15
- 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.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.d.ts +4 -0
- package/lib/icon/ellipsis.js +1 -0
- 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/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 +36 -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.d.ts +4 -0
- package/lib/icon/left-shape.js +1 -0
- 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.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 -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 +0 -1
- package/lib/index.js +1 -0
- package/lib/info-box/index.d.ts +23 -0
- package/lib/info-box/index.js +1 -0
- package/lib/input/index.d.ts +212 -47
- package/lib/input/index.js +1 -15
- package/lib/input/input.css +232 -17
- package/lib/input/input.d.ts +143 -13
- package/lib/input/input.less +180 -18
- package/lib/input/input.variable.css +253 -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 +36 -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 +201 -101
- package/lib/menu/index.d.ts +12 -20
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu.css +51 -0
- package/lib/menu/menu.d.ts +6 -15
- package/lib/menu/menu.variable.css +75 -3
- package/lib/menu/submenu.variable.css +24 -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 +48 -6
- package/lib/message/messageConstructor.d.ts +43 -7
- package/lib/modal/index.d.ts +473 -60
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +25 -1
- package/lib/modal/modal.d.ts +181 -23
- 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 +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 +25 -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 +48 -7
- package/lib/notify/notifyConstructor.d.ts +50 -6
- package/lib/pagination/index.d.ts +410 -0
- package/lib/pagination/index.js +1 -0
- package/lib/pagination/pagination.css +205 -0
- package/lib/pagination/pagination.d.ts +230 -0
- package/lib/pagination/pagination.less +228 -0
- package/lib/pagination/pagination.variable.css +318 -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 +114 -14
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +4 -0
- package/lib/popover/popover.d.ts +53 -5
- package/lib/popover/popover.less +4 -0
- package/lib/popover/popover.variable.css +28 -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 +505 -0
- package/lib/popover2/index.js +1 -0
- package/lib/popover2/plugin-popover.d.ts +7 -0
- package/lib/popover2/popover2.css +25 -0
- package/lib/popover2/popover2.d.ts +213 -0
- package/lib/popover2/popover2.less +35 -0
- package/lib/popover2/popover2.variable.css +138 -0
- package/lib/popover2/props.d.ts +112 -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/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 +24 -3
- package/lib/progress/index.d.ts +16 -16
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +51 -0
- package/lib/progress/progress.d.ts +5 -5
- package/lib/progress/progress.variable.css +75 -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 +88 -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 +1095 -458
- 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 +265 -81
- package/lib/select/select.d.ts +435 -126
- package/lib/select/select.less +364 -184
- package/lib/select/select.variable.css +290 -85
- 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} +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} +7 -3
- package/lib/shared/token.d.ts +4 -0
- package/lib/shared/utils.d.ts +12 -0
- package/lib/shared/vue-types.d.ts +11 -7
- package/lib/sideslider/index.d.ts +365 -61
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.css +54 -10
- package/lib/sideslider/sideslider.d.ts +169 -26
- package/lib/sideslider/sideslider.less +71 -13
- package/lib/sideslider/sideslider.variable.css +78 -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 +24 -3
- package/lib/steps/index.d.ts +7 -7
- package/lib/steps/index.js +1 -15
- package/lib/steps/steps.css +14 -3
- package/lib/steps/steps.d.ts +2 -2
- package/lib/steps/steps.less +23 -3
- package/lib/steps/steps.variable.css +38 -6
- package/lib/styles/index.d.ts +13 -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 +30 -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 +81 -9
- package/lib/tab/index.d.ts +110 -222
- 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 +18 -42
- package/lib/tab/tab.less +31 -19
- package/lib/tab/tab.variable.css +49 -4
- package/lib/table/const.d.ts +66 -1
- package/lib/table/index.d.ts +347 -12
- 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 +156 -4
- package/lib/table/render.d.ts +61 -6
- package/lib/table/table.css +1124 -15
- package/lib/table/table.d.ts +158 -8
- package/lib/table/table.less +217 -24
- package/lib/table/table.variable.css +1159 -29
- package/lib/table/use-common.d.ts +72 -0
- package/lib/table/utils.d.ts +52 -3
- 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 +136 -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 +29 -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 +340 -44
- 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 +157 -15
- 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 +30 -7
- 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 +15 -4
- 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 +104 -84
- package/README_EN.md +0 -89
- package/dist/bkui-vue.cjs.js +0 -12058
- package/dist/bkui-vue.esm.js +0 -12009
- package/dist/bkui-vue.umd.js +0 -12061
- package/lib/form/common.d.ts +0 -3
- package/lib/icon/help.js +0 -15
- package/lib/icon/icon.js +0 -15
- package/lib/styles/index.js +0 -1
@@ -0,0 +1,318 @@
|
|
1
|
+
:root {
|
2
|
+
--bk-prefix: bk;
|
3
|
+
--popover-max-height: 216px;
|
4
|
+
--primary-color: #3a84ff;
|
5
|
+
--success-color: #2dcb56;
|
6
|
+
--warning-color: #ff9c01;
|
7
|
+
--danger-color: #ea3636;
|
8
|
+
--default-color: #63656e;
|
9
|
+
--gray-color: #979ba5;
|
10
|
+
--light-gray: #c4c6cc;
|
11
|
+
--white-color: white;
|
12
|
+
--whitesmoke-color: #fafbfd;
|
13
|
+
--disable-color: #dcdee5;
|
14
|
+
--font-size-base: 12px;
|
15
|
+
--font-size-medium: 14px;
|
16
|
+
--font-size-large: 16px;
|
17
|
+
--line-height-base: 16px;
|
18
|
+
--line-height-medium: 16px;
|
19
|
+
--line-height-large: 18px;
|
20
|
+
--component-size-small: 26px;
|
21
|
+
--component-size-base: 32px;
|
22
|
+
--component-size-large: 40px;
|
23
|
+
--border-width-base: 1px;
|
24
|
+
--border-style-base: solid;
|
25
|
+
--border-radius-base: 2px;
|
26
|
+
--input-disabled-bg: #fafbfd;
|
27
|
+
--input-disabled-border: var(--disable-color);
|
28
|
+
--input-height-base: var(--component-size-base);
|
29
|
+
--input-color: var(--default-color);
|
30
|
+
--input-bg: white;
|
31
|
+
--input-border-color: var(--light-gray);
|
32
|
+
--input-broder-radius: 3px;
|
33
|
+
--input-shadow-color: #a3c5fd;
|
34
|
+
--input-horizontal-padding: 10px;
|
35
|
+
--input-block-color: #f5f7fa;
|
36
|
+
--input-block-hover-color: #eaebf0;
|
37
|
+
--input-icon-size: var(--font-size-medium);
|
38
|
+
--input-maxlength-color: #979ba5;
|
39
|
+
--button-primary-hover-color: #5594fa;
|
40
|
+
--button-danger-hover-color: #ff5656;
|
41
|
+
--button-success-hover-color: #45e35f;
|
42
|
+
--button-warning-hover-color: #ffb848;
|
43
|
+
--button-default-hover-border-color: #979ba5;
|
44
|
+
--button-primary-active-color: #2c77f4;
|
45
|
+
--button-danger-active-color: #db2626;
|
46
|
+
--button-success-active-color: #1ab943;
|
47
|
+
--button-warning-active-color: #eb9000;
|
48
|
+
--button-selected-bg-color: #e1ecff;
|
49
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
50
|
+
--radio-font-color: #63656e;
|
51
|
+
--radio-active-color: #5594fa;
|
52
|
+
--radio-hover-border-color: #979ba5;
|
53
|
+
--radio-disabled-border: #dcdee5;
|
54
|
+
--radio-disabled-font-color: #c4c6c;
|
55
|
+
--radio-distable-checked-bg: #fafbfd;
|
56
|
+
--radio-button-checked-bg: #e1ecff;
|
57
|
+
--fixed-navbar-background: #fff;
|
58
|
+
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
59
|
+
--switch-default-color: #fff;
|
60
|
+
--switch-grey-color: #c4c6cc;
|
61
|
+
--breadcrumb-black-color: #979ba5;
|
62
|
+
--breadcrumb-primary-hover-color: #0082ff;
|
63
|
+
--breadcrumb-fn-main-color: #63656e;
|
64
|
+
--link-default-hover-color: #979ba5;
|
65
|
+
--link-primary-hover-color: #699df4;
|
66
|
+
--link-success-hover-color: #45e35f;
|
67
|
+
--link-warning-hover-color: #ffb848;
|
68
|
+
--link-danger-hover-color: #ff5656;
|
69
|
+
--link-default-disabled-color: #dcdee5;
|
70
|
+
--link-primary-disabled-color: #a3c5fd;
|
71
|
+
--link-success-disabled-color: #94f5a4;
|
72
|
+
--link-warning-disabled-color: #ffd695;
|
73
|
+
--link-danger-disabled-color: #fd9c9c;
|
74
|
+
--message-color: var(--default-color);
|
75
|
+
--message-primary-bg-color: #f0f8ff;
|
76
|
+
--message-primary-border-color: #e1ecff;
|
77
|
+
--message-primary-shadow-color: #e1e8f4;
|
78
|
+
--message-warning-bg-color: #fff4e2;
|
79
|
+
--message-warning-border-color: #ffe8c3;
|
80
|
+
--message-warning-shadow-color: #ede6db;
|
81
|
+
--message-success-bg-color: #f2fff4;
|
82
|
+
--message-success-border-color: #dcffe2;
|
83
|
+
--message-success-shadow-color: #cef0d7;
|
84
|
+
--message-danger-bg-color: #ffeded;
|
85
|
+
--message-danger-border-color: #ffdddd;
|
86
|
+
--message-danger-shadow-color: #f6dada;
|
87
|
+
--slider-default-bg: #dcdee5;
|
88
|
+
--slider-disable-bar-bg: #979ba5;
|
89
|
+
--menu-bg-color: #182132;
|
90
|
+
--submenu-bg-color: #151d2c;
|
91
|
+
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
92
|
+
--menu-color: #96a2b9;
|
93
|
+
--menu-group-color: var(--default-color);
|
94
|
+
--menu-width: 260px;
|
95
|
+
--menu-collapse-width: 60px;
|
96
|
+
--menu-active-color: white;
|
97
|
+
--nav-header-bg-color: #182132;
|
98
|
+
--nav-bg-color: #182132;
|
99
|
+
--date-picker-disabled-bg: #fafbfd;
|
100
|
+
--date-picker-dropdown-mb: 4px;
|
101
|
+
--date-picker-dropdown-bg: #fff;
|
102
|
+
--table-bg-color: var(--white-color);
|
103
|
+
--table-border-color: #dcdee5;
|
104
|
+
--table-head-bg-color: #fafbfd;
|
105
|
+
--table-head-font-color: #313238;
|
106
|
+
--table-body-font-color: #575961;
|
107
|
+
--table-row-hover-bg-color: #f5f7fa;
|
108
|
+
--table-row-active-bg-color: #f0f1f5;
|
109
|
+
--cascader-panel-border-color: #dcdee5;
|
110
|
+
--cascader-panel-hover: #f5f7fa;
|
111
|
+
--cascader-panel-active: #e1ecff;
|
112
|
+
--cascader-panel-disabled-bg: #fff;
|
113
|
+
}
|
114
|
+
.bk-pagination {
|
115
|
+
display: flex;
|
116
|
+
align-items: center;
|
117
|
+
font-size: 12px;
|
118
|
+
letter-spacing: normal;
|
119
|
+
color: #63656e;
|
120
|
+
user-select: none;
|
121
|
+
}
|
122
|
+
.bk-pagination.is-disabled {
|
123
|
+
cursor: not-allowed;
|
124
|
+
}
|
125
|
+
.bk-pagination.is-align-left {
|
126
|
+
justify-content: flex-start;
|
127
|
+
}
|
128
|
+
.bk-pagination.is-align-center {
|
129
|
+
justify-content: center;
|
130
|
+
}
|
131
|
+
.bk-pagination.is-align-right {
|
132
|
+
justify-content: flex-end;
|
133
|
+
}
|
134
|
+
.bk-pagination > * {
|
135
|
+
margin: 0 6px;
|
136
|
+
}
|
137
|
+
.bk-pagination > .is-first {
|
138
|
+
margin-left: 0;
|
139
|
+
}
|
140
|
+
.bk-pagination > .is-last {
|
141
|
+
margin-right: 0;
|
142
|
+
}
|
143
|
+
.bk-pagination-total {
|
144
|
+
display: flex;
|
145
|
+
user-select: none;
|
146
|
+
}
|
147
|
+
.bk-pagination-total-num {
|
148
|
+
padding: 0 2px;
|
149
|
+
}
|
150
|
+
.bk-pagination-list {
|
151
|
+
display: flex;
|
152
|
+
}
|
153
|
+
.bk-pagination-list-pre-batch,
|
154
|
+
.bk-pagination-list-next-batch,
|
155
|
+
.bk-pagination-list-pre,
|
156
|
+
.bk-pagination-list-next,
|
157
|
+
.bk-pagination-list-item {
|
158
|
+
display: flex;
|
159
|
+
align-items: center;
|
160
|
+
justify-content: center;
|
161
|
+
height: 32px;
|
162
|
+
min-width: 32px;
|
163
|
+
padding: 0 4px;
|
164
|
+
margin-right: 2px;
|
165
|
+
margin-left: 2px;
|
166
|
+
color: #63656e;
|
167
|
+
cursor: pointer;
|
168
|
+
background: #fff;
|
169
|
+
border-radius: 2px;
|
170
|
+
user-select: none;
|
171
|
+
}
|
172
|
+
.bk-pagination-list-pre-batch.is-active,
|
173
|
+
.bk-pagination-list-next-batch.is-active,
|
174
|
+
.bk-pagination-list-pre.is-active,
|
175
|
+
.bk-pagination-list-next.is-active,
|
176
|
+
.bk-pagination-list-item.is-active {
|
177
|
+
color: #3a84ff;
|
178
|
+
background: #e1ecff;
|
179
|
+
}
|
180
|
+
.bk-pagination-list-pre-batch:hover,
|
181
|
+
.bk-pagination-list-next-batch:hover,
|
182
|
+
.bk-pagination-list-pre:hover,
|
183
|
+
.bk-pagination-list-next:hover,
|
184
|
+
.bk-pagination-list-item:hover {
|
185
|
+
background: #f0f1f5;
|
186
|
+
}
|
187
|
+
.bk-pagination-list-pre-batch.is-disabled,
|
188
|
+
.bk-pagination-list-next-batch.is-disabled,
|
189
|
+
.bk-pagination-list-pre.is-disabled,
|
190
|
+
.bk-pagination-list-next.is-disabled,
|
191
|
+
.bk-pagination-list-item.is-disabled {
|
192
|
+
color: #c4c6cc;
|
193
|
+
cursor: not-allowed;
|
194
|
+
background-color: #fafbfd;
|
195
|
+
border-color: #dcdee5;
|
196
|
+
}
|
197
|
+
.bk-pagination-list-pre,
|
198
|
+
.bk-pagination-list-next {
|
199
|
+
font-size: 20px;
|
200
|
+
color: #979ba5;
|
201
|
+
}
|
202
|
+
.bk-pagination-list-pre.is-disabled,
|
203
|
+
.bk-pagination-list-next.is-disabled {
|
204
|
+
color: #dcdee5;
|
205
|
+
cursor: not-allowed;
|
206
|
+
background-color: transparent;
|
207
|
+
}
|
208
|
+
.bk-pagination-list-item {
|
209
|
+
margin-right: 2px;
|
210
|
+
margin-left: 2px;
|
211
|
+
}
|
212
|
+
.bk-pagination-limit {
|
213
|
+
display: flex;
|
214
|
+
align-items: center;
|
215
|
+
user-select: none;
|
216
|
+
}
|
217
|
+
.bk-pagination-limit-select {
|
218
|
+
width: 60px;
|
219
|
+
margin: 0 4px;
|
220
|
+
}
|
221
|
+
.bk-pagination-limit-select .bk-input {
|
222
|
+
border-color: #f0f1f5;
|
223
|
+
}
|
224
|
+
.bk-pagination-limit-select .bk-input--text {
|
225
|
+
background-color: #f0f1f5;
|
226
|
+
}
|
227
|
+
.bk-pagination-limit-select:hover .bk-input {
|
228
|
+
border-color: #eaebf0;
|
229
|
+
}
|
230
|
+
.bk-pagination-limit-select:hover .bk-input--text {
|
231
|
+
background-color: #eaebf0;
|
232
|
+
}
|
233
|
+
.bk-pagination-limit-select .bk-input.is-focused {
|
234
|
+
border-color: #3a84ff;
|
235
|
+
}
|
236
|
+
.bk-pagination-limit-select .bk-input.is-focused .bk-input--text {
|
237
|
+
background-color: #fff;
|
238
|
+
}
|
239
|
+
.bk-pagination-small-list {
|
240
|
+
display: flex;
|
241
|
+
align-items: center;
|
242
|
+
}
|
243
|
+
.bk-pagination-small-list .bk-pagination-picker {
|
244
|
+
display: flex;
|
245
|
+
height: 26px;
|
246
|
+
margin: 0 4px;
|
247
|
+
cursor: pointer;
|
248
|
+
background-color: #f0f1f5;
|
249
|
+
border: 1px solid #f0f1f5;
|
250
|
+
border-radius: 2px;
|
251
|
+
align-items: center;
|
252
|
+
}
|
253
|
+
.bk-pagination-small-list .bk-pagination-picker:hover {
|
254
|
+
background-color: #eaebf0;
|
255
|
+
border-color: #eaebf0;
|
256
|
+
}
|
257
|
+
.bk-pagination-small-list .bk-pagination-picker.is-focused {
|
258
|
+
background-color: #fff;
|
259
|
+
border-color: #3a84ff;
|
260
|
+
box-shadow: 0px 0px 4px rgba(58, 132, 255, 0.4);
|
261
|
+
}
|
262
|
+
.bk-pagination-editor {
|
263
|
+
height: 16px;
|
264
|
+
min-width: 23px;
|
265
|
+
padding-right: 4px;
|
266
|
+
padding-left: 8px;
|
267
|
+
line-height: 16px;
|
268
|
+
text-align: center;
|
269
|
+
background-color: transparent;
|
270
|
+
border: 0;
|
271
|
+
border-radius: 2px;
|
272
|
+
outline: none;
|
273
|
+
transition: all 0.15s;
|
274
|
+
}
|
275
|
+
.bk-pagination-small-list-total {
|
276
|
+
padding-right: 8px;
|
277
|
+
padding-left: 4px;
|
278
|
+
}
|
279
|
+
.bk-pagination-btn-pre,
|
280
|
+
.bk-pagination-btn-next {
|
281
|
+
display: flex;
|
282
|
+
width: 26px;
|
283
|
+
height: 26px;
|
284
|
+
font-size: 20px;
|
285
|
+
color: #979ba5;
|
286
|
+
cursor: pointer;
|
287
|
+
justify-content: center;
|
288
|
+
align-items: center;
|
289
|
+
}
|
290
|
+
.bk-pagination-btn-pre:hover,
|
291
|
+
.bk-pagination-btn-next:hover {
|
292
|
+
color: #3a84ff;
|
293
|
+
background: #f0f1f5;
|
294
|
+
}
|
295
|
+
.bk-pagination-btn-pre.is-disabled,
|
296
|
+
.bk-pagination-btn-next.is-disabled {
|
297
|
+
color: #dcdee5;
|
298
|
+
cursor: not-allowed;
|
299
|
+
}
|
300
|
+
.bk-pagination-picker-list {
|
301
|
+
max-height: var(--popover-max-height);
|
302
|
+
padding: 7px 0;
|
303
|
+
margin: -7px -14px;
|
304
|
+
overflow: auto;
|
305
|
+
}
|
306
|
+
.bk-pagination-picker-list .item {
|
307
|
+
height: 32px;
|
308
|
+
padding: 0 10px;
|
309
|
+
font-size: 12px;
|
310
|
+
line-height: 32px;
|
311
|
+
color: #63656e;
|
312
|
+
cursor: pointer;
|
313
|
+
}
|
314
|
+
.bk-pagination-picker-list .item:hover,
|
315
|
+
.bk-pagination-picker-list .item.is-actived {
|
316
|
+
color: #3a84ff;
|
317
|
+
background: #f4f6fa;
|
318
|
+
}
|
package/lib/popover/index.d.ts
CHANGED
@@ -5,19 +5,37 @@ declare const BkPopover: {
|
|
5
5
|
$props: Partial<{
|
6
6
|
placement: string;
|
7
7
|
modifiers: unknown[];
|
8
|
-
|
9
|
-
height: string | number;
|
10
|
-
theme: string;
|
8
|
+
zIndex: number;
|
11
9
|
content: string | number;
|
10
|
+
disabled: boolean;
|
12
11
|
trigger: string;
|
13
12
|
arrow: boolean;
|
14
|
-
|
13
|
+
theme: string;
|
14
|
+
width: string | number;
|
15
|
+
height: string | number;
|
16
|
+
always: boolean;
|
15
17
|
transition: string;
|
18
|
+
isShow: boolean;
|
19
|
+
stopBehaviors: string | string[];
|
16
20
|
handleFirstUpdate: import("@bkui-vue/shared").OnFirstUpdateFnType;
|
17
21
|
fixOnBoundary: boolean;
|
18
22
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
23
|
+
onAfterHidden: FunctionConstructor;
|
24
|
+
onAfterShow: FunctionConstructor;
|
19
25
|
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
20
26
|
default: boolean;
|
27
|
+
} & {
|
28
|
+
default: boolean;
|
29
|
+
};
|
30
|
+
always: import("vue-types").VueTypeValidableDef<boolean> & {
|
31
|
+
default: boolean;
|
32
|
+
} & {
|
33
|
+
default: boolean;
|
34
|
+
};
|
35
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
36
|
+
default: boolean;
|
37
|
+
} & {
|
38
|
+
default: boolean;
|
21
39
|
};
|
22
40
|
width: import("vue-types").VueTypeDef<string | number> & {
|
23
41
|
default: string | number;
|
@@ -66,7 +84,15 @@ declare const BkPopover: {
|
|
66
84
|
} & {
|
67
85
|
default: boolean;
|
68
86
|
};
|
69
|
-
|
87
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
88
|
+
default: number;
|
89
|
+
} & {
|
90
|
+
default: number;
|
91
|
+
};
|
92
|
+
stopBehaviors: import("vue-types").VueTypeDef<string | string[]> & {
|
93
|
+
default: string | (() => string[]);
|
94
|
+
};
|
95
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placement" | "modifiers" | "zIndex" | "content" | "disabled" | "trigger" | "arrow" | "theme" | "width" | "height" | "always" | "transition" | "isShow" | "stopBehaviors" | "handleFirstUpdate" | "fixOnBoundary">;
|
70
96
|
$attrs: {
|
71
97
|
[x: string]: unknown;
|
72
98
|
};
|
@@ -81,8 +107,22 @@ declare const BkPopover: {
|
|
81
107
|
$emit: ((event: string, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
|
82
108
|
$el: any;
|
83
109
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
110
|
+
onAfterHidden: FunctionConstructor;
|
111
|
+
onAfterShow: FunctionConstructor;
|
84
112
|
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
85
113
|
default: boolean;
|
114
|
+
} & {
|
115
|
+
default: boolean;
|
116
|
+
};
|
117
|
+
always: import("vue-types").VueTypeValidableDef<boolean> & {
|
118
|
+
default: boolean;
|
119
|
+
} & {
|
120
|
+
default: boolean;
|
121
|
+
};
|
122
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
123
|
+
default: boolean;
|
124
|
+
} & {
|
125
|
+
default: boolean;
|
86
126
|
};
|
87
127
|
width: import("vue-types").VueTypeDef<string | number> & {
|
88
128
|
default: string | number;
|
@@ -131,17 +171,29 @@ declare const BkPopover: {
|
|
131
171
|
} & {
|
132
172
|
default: boolean;
|
133
173
|
};
|
174
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
175
|
+
default: number;
|
176
|
+
} & {
|
177
|
+
default: number;
|
178
|
+
};
|
179
|
+
stopBehaviors: import("vue-types").VueTypeDef<string | string[]> & {
|
180
|
+
default: string | (() => string[]);
|
181
|
+
};
|
134
182
|
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, {
|
135
183
|
placement: string;
|
136
184
|
modifiers: unknown[];
|
137
|
-
|
138
|
-
height: string | number;
|
139
|
-
theme: string;
|
185
|
+
zIndex: number;
|
140
186
|
content: string | number;
|
187
|
+
disabled: boolean;
|
141
188
|
trigger: string;
|
142
189
|
arrow: boolean;
|
143
|
-
|
190
|
+
theme: string;
|
191
|
+
width: string | number;
|
192
|
+
height: string | number;
|
193
|
+
always: boolean;
|
144
194
|
transition: string;
|
195
|
+
isShow: boolean;
|
196
|
+
stopBehaviors: string | string[];
|
145
197
|
handleFirstUpdate: import("@bkui-vue/shared").OnFirstUpdateFnType;
|
146
198
|
fixOnBoundary: boolean;
|
147
199
|
}> & {
|
@@ -165,8 +217,22 @@ declare const BkPopover: {
|
|
165
217
|
$nextTick: typeof import("vue").nextTick;
|
166
218
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
167
219
|
} & Readonly<import("vue").ExtractPropTypes<{
|
220
|
+
onAfterHidden: FunctionConstructor;
|
221
|
+
onAfterShow: FunctionConstructor;
|
168
222
|
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
169
223
|
default: boolean;
|
224
|
+
} & {
|
225
|
+
default: boolean;
|
226
|
+
};
|
227
|
+
always: import("vue-types").VueTypeValidableDef<boolean> & {
|
228
|
+
default: boolean;
|
229
|
+
} & {
|
230
|
+
default: boolean;
|
231
|
+
};
|
232
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
233
|
+
default: boolean;
|
234
|
+
} & {
|
235
|
+
default: boolean;
|
170
236
|
};
|
171
237
|
width: import("vue-types").VueTypeDef<string | number> & {
|
172
238
|
default: string | number;
|
@@ -215,13 +281,35 @@ declare const BkPopover: {
|
|
215
281
|
} & {
|
216
282
|
default: boolean;
|
217
283
|
};
|
284
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
285
|
+
default: number;
|
286
|
+
} & {
|
287
|
+
default: number;
|
288
|
+
};
|
289
|
+
stopBehaviors: import("vue-types").VueTypeDef<string | string[]> & {
|
290
|
+
default: string | (() => string[]);
|
291
|
+
};
|
218
292
|
}>> & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
|
219
293
|
__isFragment?: never;
|
220
294
|
__isTeleport?: never;
|
221
295
|
__isSuspense?: never;
|
222
296
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
297
|
+
onAfterHidden: FunctionConstructor;
|
298
|
+
onAfterShow: FunctionConstructor;
|
223
299
|
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
224
300
|
default: boolean;
|
301
|
+
} & {
|
302
|
+
default: boolean;
|
303
|
+
};
|
304
|
+
always: import("vue-types").VueTypeValidableDef<boolean> & {
|
305
|
+
default: boolean;
|
306
|
+
} & {
|
307
|
+
default: boolean;
|
308
|
+
};
|
309
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
310
|
+
default: boolean;
|
311
|
+
} & {
|
312
|
+
default: boolean;
|
225
313
|
};
|
226
314
|
width: import("vue-types").VueTypeDef<string | number> & {
|
227
315
|
default: string | number;
|
@@ -270,17 +358,29 @@ declare const BkPopover: {
|
|
270
358
|
} & {
|
271
359
|
default: boolean;
|
272
360
|
};
|
273
|
-
|
361
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
362
|
+
default: number;
|
363
|
+
} & {
|
364
|
+
default: number;
|
365
|
+
};
|
366
|
+
stopBehaviors: import("vue-types").VueTypeDef<string | string[]> & {
|
367
|
+
default: string | (() => string[]);
|
368
|
+
};
|
369
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "afterShow" | "afterHidden" | "update:isShow", {
|
274
370
|
placement: string;
|
275
371
|
modifiers: unknown[];
|
276
|
-
|
277
|
-
height: string | number;
|
278
|
-
theme: string;
|
372
|
+
zIndex: number;
|
279
373
|
content: string | number;
|
374
|
+
disabled: boolean;
|
280
375
|
trigger: string;
|
281
376
|
arrow: boolean;
|
282
|
-
|
377
|
+
theme: string;
|
378
|
+
width: string | number;
|
379
|
+
height: string | number;
|
380
|
+
always: boolean;
|
283
381
|
transition: string;
|
382
|
+
isShow: boolean;
|
383
|
+
stopBehaviors: string | string[];
|
284
384
|
handleFirstUpdate: import("@bkui-vue/shared").OnFirstUpdateFnType;
|
285
385
|
fixOnBoundary: boolean;
|
286
386
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
package/lib/popover/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"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue")):t(e["../shared"],e.vue);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t)=>(()=>{"use strict";var o={4212:t=>{t.exports=e},748:e=>{e.exports=t}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return o[e](a,a.exports,n),a.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{n.r(a),n.d(a,{default:()=>s});var e=n(4212),t=n(748),o={onAfterHidden:Function,onAfterShow:Function},r=Object.assign({isShow:e.PropTypes.bool.def(!1),always:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),content:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def(""),transition:e.PropTypes.string.def("fade-in"),placement:e.PropTypes.placement(["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"]).def("top"),theme:e.PropTypes.string.def("dark"),handleFirstUpdate:{type:Function,default:function(){}},trigger:e.PropTypes.string.def("hover"),arrow:e.PropTypes.bool.def(!0),modifiers:e.PropTypes.array.def([{name:"offset",options:{offset:[0,8]}}]),boundary:e.PropTypes.oneOfType([e.PropTypes.string.def("parent"),e.PropTypes.instanceOf(HTMLElement)]),fixOnBoundary:e.PropTypes.bool.def(!1),zIndex:e.PropTypes.number.def(void 0),stopBehaviors:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.commonType(["stopPropagation","stopImmediatePropagation","preventDefault"],"stopBehaviors")),e.PropTypes.string]).def([])},o);const i=(0,t.defineComponent)({name:"Popover",props:r,emits:["afterHidden","afterShow","update:isShow"],setup:function(o,r){var n=!1,a=Object.create(null),i=(0,t.ref)(0),s=(0,t.toRefs)(o),p=s.width,u=s.height,d=s.theme,f=s.trigger,l=s.isShow,c=s.placement,v=s.modifiers,y=s.arrow,m=s.content,h=(0,t.ref)(),b=(0,t.ref)(),T=(0,t.computed)((function(){return{width:/^\d+$/.test(String(p.value))?"".concat(p.value,"px"):p.value,height:/^\d+$/.test(String(u.value))?"".concat(u.value,"px"):u.value,zIndex:i.value}})),g=["dark","light"],P=(0,t.computed)((function(){var e=d.value.split(/\s+/);return e.sort((function(e,t){return Number(g.includes(t))-Number(g.includes(e))})),{systemThemes:e,customThemes:e.filter((function(e){return!g.includes(e)}))}})),w=function(t){var r,s;if(n){if(t)return i.value="number"==typeof o.zIndex?o.zIndex:e.bkZIndexManager.getModalNextIndex(),void(null===(r=a.show)||void 0===r||r.call(a));null===(s=a.hide)||void 0===s||s.call(a)}};(0,t.watch)((function(){return o.isShow}),(function(e){w(e)}),{immediate:!0});var x=function(){r.emit("update:isShow",!1),r.emit("afterHidden",!1)},O=function(){r.emit("update:isShow",!0),r.emit("afterShow",!1)},S=function(){var e=a;e.constructor&&(e.isShow&&e.hide(),e.destroy(),a=Object.create(null))},j=function(){a=new e.BKPopover(h.value,b.value,{theme:P.value.systemThemes.join(" "),placement:c.value,trigger:f.value,modifiers:v.value,onFirstUpdate:o.handleFirstUpdate,afterShow:O,afterHidden:x,appendTo:o.boundary,always:o.always,disabled:o.disabled,fixOnBoundary:o.fixOnBoundary}),n=!0,l.value&&w(l.value)},B=function(){S(),(0,t.nextTick)(j)};r.expose({update:B}),(0,t.onMounted)(B),(0,t.onBeforeUnmount)(S);var k=function(){r.emit("after-enter")},I=function(){r.emit("after-leave")},N=P.value.customThemes.join(" "),A=P.value.customThemes.reduce((function(e,t){return Object.assign((o={},!0,(r="data-".concat(t,"-theme"))in o?Object.defineProperty(o,r,{value:true,enumerable:!0,configurable:!0,writable:!0}):o[r]=true,o),e);var o,r}),{}),F="bk-popover-content ".concat(N),M=function(e){var t=function(t){"function"==typeof e[t]&&e[t]()};Array.isArray(o.stopBehaviors)&&o.stopBehaviors.forEach(t),"string"==typeof o.stopBehaviors&&t(o.stopBehaviors)};return function(){var e,n,a,i,s;return(0,t.createVNode)("div",{class:"bk-popover","data-bk-pop-container":!0},[(0,t.createVNode)("div",{ref:h,class:"bk-popover-reference"},[null===(n=(e=r.slots).default)||void 0===n?void 0:n.call(e)]),(0,t.createVNode)(t.Transition,{name:o.transition,onAfterEnter:k,onAfterLeave:I},{default:function(){return[(0,t.createVNode)("div",(0,t.mergeProps)({ref:b,class:F,style:T.value},A,{onClick:M}),[null!==(s=null===(i=(a=r.slots).content)||void 0===i?void 0:i.call(a))&&void 0!==s?s:m.value,y.value&&(0,t.createVNode)("div",{class:"arrow","data-popper-arrow":!0},null)])]}})])}}}),s=(0,e.withInstall)(i)})(),a})()));
|
package/lib/popover/popover.css
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
.bk-popover {
|
2
|
+
display: inline-block;
|
3
|
+
}
|
1
4
|
.bk-popover .bk-popover-reference {
|
2
5
|
display: inline-block;
|
3
6
|
}
|
@@ -36,6 +39,7 @@
|
|
36
39
|
}
|
37
40
|
.bk-popover-content .arrow {
|
38
41
|
position: absolute;
|
42
|
+
z-index: -1;
|
39
43
|
width: 8px;
|
40
44
|
height: 8px;
|
41
45
|
background: inherit;
|