bkui-vue 0.0.1-beta.18 → 0.0.1-beta.180
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 +35605 -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 +29 -8
- package/lib/badge/badge.less +5 -6
- package/lib/badge/badge.variable.css +28 -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 +74 -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 +115 -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 +119 -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 +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 +27 -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 +54 -137
- 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 +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/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/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 +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 +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 +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 +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 +38 -23
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/pagination.css +54 -28
- package/lib/pagination/pagination.d.ts +17 -7
- 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/plugins/index.d.ts +1 -0
- package/lib/plugins/index.js +1 -0
- package/lib/popover/index.d.ts +111 -11
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +3 -0
- package/lib/popover/popover.d.ts +52 -4
- 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 +562 -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 +239 -0
- package/lib/popover2/popover2.less +35 -0
- package/lib/popover2/popover2.variable.css +138 -0
- package/lib/popover2/props.d.ts +126 -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 +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 +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 -450
- 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 +546 -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} +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 +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 +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 +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 +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 +48 -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 +211 -4
- package/lib/table/render.d.ts +61 -6
- package/lib/table/table.css +1128 -15
- package/lib/table/table.d.ts +154 -8
- package/lib/table/table.less +223 -24
- package/lib/table/table.variable.css +1162 -29
- package/lib/table/use-common.d.ts +72 -0
- package/lib/table/utils.d.ts +58 -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 +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 +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 -12360
- package/dist/bkui-vue.esm.js +0 -12309
- package/dist/bkui-vue.umd.js +0 -12363
- 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
- package/lib/use-form.d.ts +0 -3
@@ -36,7 +36,6 @@
|
|
36
36
|
margin-right: 0;
|
37
37
|
}
|
38
38
|
|
39
|
-
|
40
39
|
}
|
41
40
|
.@{bk-prefix}-pagination-total {
|
42
41
|
display: flex;
|
@@ -45,13 +44,14 @@
|
|
45
44
|
|
46
45
|
.@{bk-prefix}-pagination-total-num {
|
47
46
|
padding: 0 2px;
|
48
|
-
color: #3f4046;
|
49
47
|
}
|
50
48
|
|
51
49
|
.@{bk-prefix}-pagination-list {
|
52
50
|
display: flex;
|
53
51
|
}
|
54
52
|
|
53
|
+
.@{bk-prefix}-pagination-list-pre-batch,
|
54
|
+
.@{bk-prefix}-pagination-list-next-batch,
|
55
55
|
.@{bk-prefix}-pagination-list-pre,
|
56
56
|
.@{bk-prefix}-pagination-list-next,
|
57
57
|
.@{bk-prefix}-pagination-list-item {
|
@@ -66,14 +66,16 @@
|
|
66
66
|
color: #63656e;
|
67
67
|
cursor: pointer;
|
68
68
|
background: #fff;
|
69
|
-
border: 1px solid #c4c6cc;
|
70
69
|
border-radius: 2px;
|
71
70
|
user-select: none;
|
72
71
|
|
73
|
-
&:hover,
|
74
72
|
&.is-active {
|
75
73
|
color: #3a84ff;
|
76
|
-
|
74
|
+
background: #e1ecff;
|
75
|
+
}
|
76
|
+
|
77
|
+
&:hover {
|
78
|
+
background: #f0f1f5;
|
77
79
|
}
|
78
80
|
|
79
81
|
&.is-disabled {
|
@@ -84,28 +86,21 @@
|
|
84
86
|
}
|
85
87
|
}
|
86
88
|
|
87
|
-
.@{bk-prefix}-pagination-list-pre-batch,
|
88
|
-
.@{bk-prefix}-pagination-list-next-batch {
|
89
|
-
display: flex;
|
90
|
-
align-items: center;
|
91
|
-
justify-content: center;
|
92
|
-
height: 32px;
|
93
|
-
cursor: pointer;
|
94
|
-
user-select: none;
|
95
|
-
|
96
|
-
&:hover {
|
97
|
-
color: #3a84ff;
|
98
|
-
}
|
99
|
-
}
|
100
|
-
|
101
89
|
.@{bk-prefix}-pagination-list-pre,
|
102
90
|
.@{bk-prefix}-pagination-list-next {
|
103
|
-
font-size:
|
91
|
+
font-size: 20px;
|
92
|
+
color: #979ba5;
|
93
|
+
|
94
|
+
&.is-disabled {
|
95
|
+
color: #dcdee5;
|
96
|
+
cursor: not-allowed;
|
97
|
+
background-color: transparent;
|
98
|
+
}
|
104
99
|
}
|
105
100
|
|
106
101
|
.@{bk-prefix}-pagination-list-item {
|
107
|
-
margin-right:
|
108
|
-
margin-left:
|
102
|
+
margin-right: 2px;
|
103
|
+
margin-left: 2px;
|
109
104
|
}
|
110
105
|
|
111
106
|
.@{bk-prefix}-pagination-limit {
|
@@ -117,14 +112,42 @@
|
|
117
112
|
.@{bk-prefix}-pagination-limit-select {
|
118
113
|
width: 60px;
|
119
114
|
margin: 0 4px;
|
115
|
+
|
116
|
+
.bk-input {
|
117
|
+
border-color: #f0f1f5;
|
118
|
+
}
|
119
|
+
|
120
|
+
.bk-input--text {
|
121
|
+
background-color: #f0f1f5;
|
122
|
+
}
|
123
|
+
|
124
|
+
&:hover {
|
125
|
+
.bk-input {
|
126
|
+
border-color: #eaebf0;
|
127
|
+
}
|
128
|
+
|
129
|
+
.bk-input--text {
|
130
|
+
background-color: #eaebf0;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
|
134
|
+
.bk-input {
|
135
|
+
&.is-focused {
|
136
|
+
border-color: #3a84ff;
|
137
|
+
|
138
|
+
.bk-input--text {
|
139
|
+
background-color: #fff;
|
140
|
+
}
|
141
|
+
}
|
142
|
+
}
|
120
143
|
}
|
121
144
|
.@{bk-prefix}-pagination-small-list {
|
122
145
|
display: flex;
|
123
|
-
|
146
|
+
align-items: center;
|
124
147
|
.@{bk-prefix}-pagination-picker {
|
125
148
|
display: flex;
|
126
|
-
height:
|
127
|
-
|
149
|
+
height: 26px;
|
150
|
+
margin: 0 4px;
|
128
151
|
cursor: pointer;
|
129
152
|
background-color: #f0f1f5;
|
130
153
|
border: 1px solid #f0f1f5;
|
@@ -132,8 +155,8 @@
|
|
132
155
|
align-items: center;
|
133
156
|
|
134
157
|
&:hover {
|
135
|
-
background-color: #
|
136
|
-
border-color: #
|
158
|
+
background-color: #eaebf0;
|
159
|
+
border-color: #eaebf0;
|
137
160
|
}
|
138
161
|
|
139
162
|
&.is-focused {
|
@@ -146,7 +169,7 @@
|
|
146
169
|
|
147
170
|
.@{bk-prefix}-pagination-editor {
|
148
171
|
height: 16px;
|
149
|
-
min-width:
|
172
|
+
min-width: 23px;
|
150
173
|
padding-right: 4px;
|
151
174
|
padding-left: 8px;
|
152
175
|
line-height: 16px;
|
@@ -164,13 +187,17 @@
|
|
164
187
|
.@{bk-prefix}-pagination-btn-pre,
|
165
188
|
.@{bk-prefix}-pagination-btn-next {
|
166
189
|
display: flex;
|
190
|
+
width: 26px;
|
191
|
+
height: 26px;
|
192
|
+
font-size: 20px;
|
193
|
+
color: #979ba5;
|
194
|
+
cursor: pointer;
|
167
195
|
justify-content: center;
|
168
196
|
align-items: center;
|
169
|
-
width: 24px;
|
170
|
-
cursor: pointer;
|
171
197
|
|
172
198
|
&:hover {
|
173
|
-
color: #3a84ff
|
199
|
+
color: #3a84ff;
|
200
|
+
background: #f0f1f5;
|
174
201
|
}
|
175
202
|
|
176
203
|
&.is-disabled {
|
@@ -9,6 +9,7 @@
|
|
9
9
|
--gray-color: #979ba5;
|
10
10
|
--light-gray: #c4c6cc;
|
11
11
|
--white-color: white;
|
12
|
+
--whitesmoke-color: #fafbfd;
|
12
13
|
--disable-color: #dcdee5;
|
13
14
|
--font-size-base: 12px;
|
14
15
|
--font-size-medium: 14px;
|
@@ -18,7 +19,7 @@
|
|
18
19
|
--line-height-large: 18px;
|
19
20
|
--component-size-small: 26px;
|
20
21
|
--component-size-base: 32px;
|
21
|
-
--component-size-large:
|
22
|
+
--component-size-large: 40px;
|
22
23
|
--border-width-base: 1px;
|
23
24
|
--border-style-base: solid;
|
24
25
|
--border-radius-base: 2px;
|
@@ -31,8 +32,9 @@
|
|
31
32
|
--input-broder-radius: 3px;
|
32
33
|
--input-shadow-color: #a3c5fd;
|
33
34
|
--input-horizontal-padding: 10px;
|
34
|
-
--input-block-color: #
|
35
|
-
--input-
|
35
|
+
--input-block-color: #f5f7fa;
|
36
|
+
--input-block-hover-color: #eaebf0;
|
37
|
+
--input-icon-size: var(--font-size-medium);
|
36
38
|
--input-maxlength-color: #979ba5;
|
37
39
|
--button-primary-hover-color: #5594fa;
|
38
40
|
--button-danger-hover-color: #ff5656;
|
@@ -43,6 +45,15 @@
|
|
43
45
|
--button-danger-active-color: #db2626;
|
44
46
|
--button-success-active-color: #1ab943;
|
45
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;
|
46
57
|
--fixed-navbar-background: #fff;
|
47
58
|
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
48
59
|
--switch-default-color: #fff;
|
@@ -63,12 +74,16 @@
|
|
63
74
|
--message-color: var(--default-color);
|
64
75
|
--message-primary-bg-color: #f0f8ff;
|
65
76
|
--message-primary-border-color: #e1ecff;
|
77
|
+
--message-primary-shadow-color: #e1e8f4;
|
66
78
|
--message-warning-bg-color: #fff4e2;
|
67
79
|
--message-warning-border-color: #ffe8c3;
|
80
|
+
--message-warning-shadow-color: #ede6db;
|
68
81
|
--message-success-bg-color: #f2fff4;
|
69
82
|
--message-success-border-color: #dcffe2;
|
83
|
+
--message-success-shadow-color: #cef0d7;
|
70
84
|
--message-danger-bg-color: #ffeded;
|
71
85
|
--message-danger-border-color: #ffdddd;
|
86
|
+
--message-danger-shadow-color: #f6dada;
|
72
87
|
--slider-default-bg: #dcdee5;
|
73
88
|
--slider-disable-bar-bg: #979ba5;
|
74
89
|
--menu-bg-color: #182132;
|
@@ -90,6 +105,11 @@
|
|
90
105
|
--table-head-font-color: #313238;
|
91
106
|
--table-body-font-color: #575961;
|
92
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;
|
93
113
|
}
|
94
114
|
.bk-pagination {
|
95
115
|
display: flex;
|
@@ -126,11 +146,12 @@
|
|
126
146
|
}
|
127
147
|
.bk-pagination-total-num {
|
128
148
|
padding: 0 2px;
|
129
|
-
color: #3f4046;
|
130
149
|
}
|
131
150
|
.bk-pagination-list {
|
132
151
|
display: flex;
|
133
152
|
}
|
153
|
+
.bk-pagination-list-pre-batch,
|
154
|
+
.bk-pagination-list-next-batch,
|
134
155
|
.bk-pagination-list-pre,
|
135
156
|
.bk-pagination-list-next,
|
136
157
|
.bk-pagination-list-item {
|
@@ -145,19 +166,26 @@
|
|
145
166
|
color: #63656e;
|
146
167
|
cursor: pointer;
|
147
168
|
background: #fff;
|
148
|
-
border: 1px solid #c4c6cc;
|
149
169
|
border-radius: 2px;
|
150
170
|
user-select: none;
|
151
171
|
}
|
152
|
-
.bk-pagination-list-pre
|
153
|
-
.bk-pagination-list-next
|
154
|
-
.bk-pagination-list-item:hover,
|
172
|
+
.bk-pagination-list-pre-batch.is-active,
|
173
|
+
.bk-pagination-list-next-batch.is-active,
|
155
174
|
.bk-pagination-list-pre.is-active,
|
156
175
|
.bk-pagination-list-next.is-active,
|
157
176
|
.bk-pagination-list-item.is-active {
|
158
177
|
color: #3a84ff;
|
159
|
-
|
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;
|
160
186
|
}
|
187
|
+
.bk-pagination-list-pre-batch.is-disabled,
|
188
|
+
.bk-pagination-list-next-batch.is-disabled,
|
161
189
|
.bk-pagination-list-pre.is-disabled,
|
162
190
|
.bk-pagination-list-next.is-disabled,
|
163
191
|
.bk-pagination-list-item.is-disabled {
|
@@ -166,26 +194,20 @@
|
|
166
194
|
background-color: #fafbfd;
|
167
195
|
border-color: #dcdee5;
|
168
196
|
}
|
169
|
-
.bk-pagination-list-pre-batch,
|
170
|
-
.bk-pagination-list-next-batch {
|
171
|
-
display: flex;
|
172
|
-
align-items: center;
|
173
|
-
justify-content: center;
|
174
|
-
height: 32px;
|
175
|
-
cursor: pointer;
|
176
|
-
user-select: none;
|
177
|
-
}
|
178
|
-
.bk-pagination-list-pre-batch:hover,
|
179
|
-
.bk-pagination-list-next-batch:hover {
|
180
|
-
color: #3a84ff;
|
181
|
-
}
|
182
197
|
.bk-pagination-list-pre,
|
183
198
|
.bk-pagination-list-next {
|
184
|
-
font-size:
|
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;
|
185
207
|
}
|
186
208
|
.bk-pagination-list-item {
|
187
|
-
margin-right:
|
188
|
-
margin-left:
|
209
|
+
margin-right: 2px;
|
210
|
+
margin-left: 2px;
|
189
211
|
}
|
190
212
|
.bk-pagination-limit {
|
191
213
|
display: flex;
|
@@ -196,12 +218,32 @@
|
|
196
218
|
width: 60px;
|
197
219
|
margin: 0 4px;
|
198
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
|
+
}
|
199
239
|
.bk-pagination-small-list {
|
200
240
|
display: flex;
|
241
|
+
align-items: center;
|
201
242
|
}
|
202
243
|
.bk-pagination-small-list .bk-pagination-picker {
|
203
244
|
display: flex;
|
204
|
-
height:
|
245
|
+
height: 26px;
|
246
|
+
margin: 0 4px;
|
205
247
|
cursor: pointer;
|
206
248
|
background-color: #f0f1f5;
|
207
249
|
border: 1px solid #f0f1f5;
|
@@ -209,8 +251,8 @@
|
|
209
251
|
align-items: center;
|
210
252
|
}
|
211
253
|
.bk-pagination-small-list .bk-pagination-picker:hover {
|
212
|
-
background-color: #
|
213
|
-
border-color: #
|
254
|
+
background-color: #eaebf0;
|
255
|
+
border-color: #eaebf0;
|
214
256
|
}
|
215
257
|
.bk-pagination-small-list .bk-pagination-picker.is-focused {
|
216
258
|
background-color: #fff;
|
@@ -219,7 +261,7 @@
|
|
219
261
|
}
|
220
262
|
.bk-pagination-editor {
|
221
263
|
height: 16px;
|
222
|
-
min-width:
|
264
|
+
min-width: 23px;
|
223
265
|
padding-right: 4px;
|
224
266
|
padding-left: 8px;
|
225
267
|
line-height: 16px;
|
@@ -237,14 +279,18 @@
|
|
237
279
|
.bk-pagination-btn-pre,
|
238
280
|
.bk-pagination-btn-next {
|
239
281
|
display: flex;
|
282
|
+
width: 26px;
|
283
|
+
height: 26px;
|
284
|
+
font-size: 20px;
|
285
|
+
color: #979ba5;
|
286
|
+
cursor: pointer;
|
240
287
|
justify-content: center;
|
241
288
|
align-items: center;
|
242
|
-
width: 24px;
|
243
|
-
cursor: pointer;
|
244
289
|
}
|
245
290
|
.bk-pagination-btn-pre:hover,
|
246
291
|
.bk-pagination-btn-next:hover {
|
247
292
|
color: #3a84ff;
|
293
|
+
background: #f0f1f5;
|
248
294
|
}
|
249
295
|
.bk-pagination-btn-pre.is-disabled,
|
250
296
|
.bk-pagination-btn-next.is-disabled {
|
package/lib/pagination/type.d.ts
CHANGED
@@ -2,5 +2,5 @@ import type { ComponentPublicInstance } from 'vue';
|
|
2
2
|
import type { PaginationProps } from './pagination';
|
3
3
|
export declare type IPaginationInstance = ComponentPublicInstance<PaginationProps, {
|
4
4
|
limit: PaginationProps['limit'];
|
5
|
-
|
5
|
+
totalPageNum: number;
|
6
6
|
}>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { $bkPopover } from '@bkui-vue/popover2';
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../popover2"));else if("function"==typeof define&&define.amd)define(["../popover2"],o);else{var r="object"==typeof exports?o(require("../popover2")):o(e["../popover2"]);for(var t in r)("object"==typeof exports?exports:e)[t]=r[t]}}(self,(e=>(()=>{"use strict";var o={6175:o=>{o.exports=e}},r={};function t(e){var p=r[e];if(void 0!==p)return p.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,t),n.exports}t.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o},t.d=(e,o)=>{for(var r in o)t.o(o,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var p={};return(()=>{t.r(p),t.d(p,{$bkPopover:()=>e.$bkPopover});var e=t(6175)})(),p})()));
|
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;
|
13
|
+
theme: string;
|
14
|
+
width: string | number;
|
15
|
+
height: string | number;
|
14
16
|
isShow: boolean;
|
17
|
+
always: boolean;
|
15
18
|
transition: string;
|
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" | "isShow" | "always" | "transition" | "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;
|
190
|
+
theme: string;
|
191
|
+
width: string | number;
|
192
|
+
height: string | number;
|
143
193
|
isShow: boolean;
|
194
|
+
always: boolean;
|
144
195
|
transition: string;
|
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;
|
377
|
+
theme: string;
|
378
|
+
width: string | number;
|
379
|
+
height: string | number;
|
282
380
|
isShow: boolean;
|
381
|
+
always: boolean;
|
283
382
|
transition: string;
|
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})()));
|