bkui-vue 0.0.1-beta.23 → 0.0.1-beta.230
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/dist/index.cjs.js +173 -0
- package/dist/index.esm.js +38108 -0
- package/dist/index.umd.js +173 -0
- package/dist/style.css +1 -5099
- 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 +122 -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 +34 -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 +37 -3
- package/lib/backtop/index.d.ts +7 -7
- package/lib/backtop/index.js +1 -10
- package/lib/badge/badge.css +5 -5
- package/lib/badge/badge.d.ts +28 -7
- package/lib/badge/badge.less +5 -6
- package/lib/badge/badge.variable.css +34 -8
- package/lib/badge/index.d.ts +68 -18
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.css +51 -0
- package/lib/breadcrumb/breadcrumb.variable.css +80 -3
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button.css +87 -49
- package/lib/button/button.d.ts +28 -7
- package/lib/button/button.less +74 -41
- package/lib/button/button.variable.css +116 -52
- package/lib/button/index.d.ts +45 -12
- 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 +125 -4
- package/lib/card/index.d.ts +113 -17
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +100 -0
- package/lib/cascader/cascader.css +173 -0
- package/lib/cascader/cascader.d.ts +303 -0
- package/lib/cascader/cascader.less +196 -0
- package/lib/cascader/cascader.variable.css +292 -0
- package/lib/cascader/index.d.ts +868 -0
- package/lib/cascader/index.js +1 -0
- package/lib/cascader/interface.d.ts +51 -0
- package/lib/cascader/node.d.ts +31 -0
- package/lib/cascader/store.d.ts +23 -0
- package/lib/checkbox/checkbox-group.d.ts +16 -0
- package/lib/checkbox/checkbox.css +38 -6
- package/lib/checkbox/checkbox.d.ts +16 -14
- package/lib/checkbox/checkbox.less +48 -6
- package/lib/checkbox/checkbox.variable.css +67 -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 +2 -6
- package/lib/code-diff/code-diff.css +72 -1
- package/lib/code-diff/code-diff.d.ts +10 -1
- package/lib/code-diff/code-diff.less +94 -1
- package/lib/code-diff/code-diff.variable.css +101 -4
- package/lib/code-diff/index.d.ts +151 -3
- package/lib/code-diff/index.js +1 -0
- package/lib/collapse/collapse-panel.d.ts +72 -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 +147 -12
- package/lib/collapse/index.d.ts +113 -16
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/props.d.ts +121 -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 +394 -0
- package/lib/color-picker/components/color-input.d.ts +42 -0
- package/lib/color-picker/components/hue-slider.d.ts +41 -0
- package/lib/color-picker/components/input-container.d.ts +42 -0
- package/lib/color-picker/components/recommend-colors.d.ts +51 -0
- package/lib/color-picker/components/saturation-panel.d.ts +41 -0
- package/lib/color-picker/index.d.ts +254 -0
- package/lib/color-picker/index.js +1 -0
- package/lib/color-picker/utils.d.ts +37 -0
- package/lib/components.d.ts +28 -7
- package/lib/components.js +1 -0
- package/lib/container/col.d.ts +51 -0
- package/lib/container/container.css +91 -0
- package/lib/container/container.d.ts +83 -0
- package/lib/container/container.less +20 -0
- package/lib/container/container.variable.css +210 -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/base/confirm.d.ts +74 -0
- package/lib/date-picker/base/date-table.d.ts +102 -0
- package/lib/date-picker/base/picker-dropdown.d.ts +73 -0
- package/lib/date-picker/base/time-spinner.d.ts +153 -0
- package/lib/date-picker/date-picker.css +18 -2
- package/lib/date-picker/date-picker.d.ts +40 -13
- package/lib/date-picker/date-picker.less +23 -2
- package/lib/date-picker/date-picker.variable.css +47 -5
- package/lib/date-picker/index.d.ts +100 -39
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/interface.d.ts +9 -0
- package/lib/date-picker/panel/date-range.d.ts +452 -0
- package/lib/date-picker/panel/date.d.ts +550 -0
- package/lib/date-picker/panel/time.d.ts +450 -0
- package/lib/date-picker/props.d.ts +51 -1
- package/lib/date-picker/time-picker.d.ts +381 -0
- package/lib/date-picker/utils.d.ts +22 -1
- package/lib/dialog/dialog.css +144 -22
- package/lib/dialog/dialog.d.ts +275 -58
- package/lib/dialog/dialog.less +97 -23
- package/lib/dialog/dialog.variable.css +144 -22
- package/lib/dialog/index.d.ts +607 -130
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/props.d.ts +138 -0
- 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 +29 -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 +34 -3
- package/lib/dropdown/dropdown.less +47 -34
- package/lib/dropdown/dropdown.variable.css +42 -10
- package/lib/dropdown/index.d.ts +71 -10
- 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 +69 -17
- package/lib/exception/index.d.ts +23 -8
- package/lib/exception/index.js +1 -1
- package/lib/exception/typings/index.d.ts +4 -0
- package/lib/fixed-navbar/fixed-navbar.d.ts +16 -2
- package/lib/fixed-navbar/fixed-navbar.variable.css +29 -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 +16 -5
- package/lib/form/form.css +96 -12
- package/lib/form/form.d.ts +28 -11
- package/lib/form/form.less +144 -45
- package/lib/form/form.variable.css +215 -12
- package/lib/form/index.d.ts +88 -30
- 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.js +1 -15
- package/lib/icon/audio-fill.d.ts +4 -0
- package/lib/icon/audio-fill.js +1 -0
- package/lib/icon/bk.js +1 -15
- package/lib/icon/circle.js +1 -15
- package/lib/icon/close-line.d.ts +4 -0
- package/lib/icon/close-line.js +1 -0
- package/lib/icon/close.js +1 -15
- package/lib/icon/code.js +1 -15
- package/lib/icon/cog-shape.js +1 -15
- package/lib/icon/collapse-left.js +1 -15
- package/lib/icon/copy.js +1 -15
- package/lib/icon/data-shape.d.ts +4 -0
- package/lib/icon/data-shape.js +1 -0
- package/lib/icon/del.d.ts +4 -0
- package/lib/icon/del.js +1 -0
- package/lib/icon/doc-fill.d.ts +4 -0
- package/lib/icon/doc-fill.js +1 -0
- package/lib/icon/done.js +1 -15
- package/lib/icon/down-shape.js +1 -15
- package/lib/icon/down-small.js +1 -15
- package/lib/icon/edit-line.d.ts +4 -0
- package/lib/icon/edit-line.js +1 -0
- package/lib/icon/ellipsis.js +1 -15
- package/lib/icon/enlarge-line.d.ts +4 -0
- package/lib/icon/enlarge-line.js +1 -0
- package/lib/icon/error.js +1 -15
- package/lib/icon/excel-fill.d.ts +4 -0
- package/lib/icon/excel-fill.js +1 -0
- package/lib/icon/exclamation-circle-shape.d.ts +4 -0
- package/lib/icon/exclamation-circle-shape.js +1 -0
- package/lib/icon/eye.js +1 -15
- package/lib/icon/filliscreen-line.d.ts +4 -0
- package/lib/icon/filliscreen-line.js +1 -0
- package/lib/icon/folder-open.js +1 -15
- package/lib/icon/folder-shape-open.js +1 -15
- package/lib/icon/folder-shape.js +1 -15
- package/lib/icon/folder.js +1 -15
- package/lib/icon/funnel.d.ts +4 -0
- package/lib/icon/funnel.js +1 -0
- package/lib/icon/help-document-fill.js +1 -15
- package/lib/icon/help-fill.js +1 -15
- package/lib/icon/help.js +1 -15
- package/lib/icon/image-fill.d.ts +4 -0
- package/lib/icon/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 +27 -1
- 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.js +1 -15
- 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/transfer.d.ts +4 -0
- package/lib/icon/transfer.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.js +1 -15
- package/lib/image/image-viewer.css +142 -0
- package/lib/image/image-viewer.d.ts +73 -0
- package/lib/image/image-viewer.less +168 -0
- package/lib/image/image-viewer.variable.css +142 -0
- package/lib/image/image.css +37 -0
- package/lib/image/image.d.ts +93 -0
- package/lib/image/image.less +44 -0
- package/lib/image/image.variable.css +37 -0
- package/lib/image/index.d.ts +246 -0
- package/lib/image/index.js +1 -0
- package/lib/image/props.d.ts +71 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -0
- package/lib/info-box/index.d.ts +6 -0
- package/lib/info-box/index.js +1 -0
- package/lib/info-box/info-box.css +37 -0
- package/lib/info-box/info-box.d.ts +26 -0
- package/lib/info-box/info-box.less +50 -0
- package/lib/info-box/info-box.variable.css +37 -0
- package/lib/input/index.d.ts +171 -60
- package/lib/input/index.js +1 -15
- package/lib/input/input.css +216 -18
- package/lib/input/input.d.ts +116 -16
- package/lib/input/input.less +157 -17
- package/lib/input/input.variable.css +242 -17
- 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 +41 -15
- package/lib/loading/index.d.ts +107 -13
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +83 -31
- package/lib/loading/loading.d.ts +74 -5
- package/lib/loading/loading.less +28 -30
- package/lib/loading/loading.variable.css +112 -34
- 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 +80 -3
- package/lib/menu/submenu.variable.css +29 -3
- 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 +53 -6
- package/lib/message/messageConstructor.d.ts +43 -7
- package/lib/modal/index.d.ts +508 -78
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +63 -1
- package/lib/modal/modal.d.ts +194 -30
- package/lib/modal/modal.less +36 -1
- package/lib/modal/modal.variable.css +63 -1
- package/lib/modal/props.mixin.d.ts +82 -13
- package/lib/navigation/index.d.ts +310 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation.css +1 -1
- package/lib/navigation/navigation.d.ts +10 -1
- package/lib/navigation/navigation.less +1 -1
- package/lib/navigation/navigation.variable.css +30 -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 +53 -7
- package/lib/notify/notifyConstructor.d.ts +51 -7
- 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 +83 -31
- package/lib/pagination/type.d.ts +1 -1
- package/lib/plugin-popover/index.d.ts +27 -0
- package/lib/plugin-popover/index.js +1 -0
- package/lib/plugins/index.d.ts +1 -0
- package/lib/plugins/index.js +1 -0
- package/lib/popover/index.d.ts +146 -21
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +3 -0
- package/lib/popover/popover.d.ts +67 -8
- package/lib/popover/popover.less +2 -0
- package/lib/popover/popover.variable.css +32 -3
- package/lib/popover/props.d.ts +34 -2
- package/lib/popover2/arrow.d.ts +2 -0
- package/lib/popover2/const.d.ts +16 -0
- package/lib/popover2/content.d.ts +24 -0
- package/lib/popover2/index.d.ts +545 -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 +228 -0
- package/lib/popover2/popover2.less +35 -0
- package/lib/popover2/popover2.variable.css +144 -0
- package/lib/popover2/props.d.ts +118 -0
- package/lib/popover2/reference.d.ts +2 -0
- package/lib/popover2/root.d.ts +16 -0
- package/lib/popover2/use-floating.d.ts +31 -0
- package/lib/popover2/use-platform.d.ts +30 -0
- package/lib/popover2/use-popover-init.d.ts +22 -0
- package/lib/popover2/use-popper-id.d.ts +6 -0
- package/lib/popover2/utils.d.ts +2 -0
- package/lib/preset.js +1 -0
- package/lib/process/index.d.ts +9 -9
- package/lib/process/index.js +1 -15
- package/lib/process/process.css +13 -0
- package/lib/process/process.d.ts +2 -2
- package/lib/process/process.less +17 -0
- package/lib/process/process.variable.css +42 -3
- package/lib/progress/index.d.ts +10 -10
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +51 -0
- package/lib/progress/progress.d.ts +3 -3
- package/lib/progress/progress.variable.css +80 -3
- package/lib/radio/common.d.ts +5 -5
- package/lib/radio/index.d.ts +29 -18
- 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 +61 -56
- package/lib/radio/radio.d.ts +4 -4
- package/lib/radio/radio.less +181 -172
- package/lib/radio/radio.variable.css +93 -62
- package/lib/radio/type.d.ts +9 -4
- 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 +177 -0
- package/lib/resize-layout/resize-layout.d.ts +127 -0
- package/lib/resize-layout/resize-layout.less +217 -0
- package/lib/resize-layout/resize-layout.variable.css +296 -0
- package/lib/search-select/index.d.ts +681 -0
- package/lib/search-select/index.js +1 -0
- package/lib/search-select/input.d.ts +85 -0
- package/lib/search-select/menu.d.ts +83 -0
- package/lib/search-select/search-select.css +423 -0
- package/lib/search-select/search-select.d.ts +273 -0
- package/lib/search-select/search-select.less +375 -0
- package/lib/search-select/search-select.variable.css +542 -0
- package/lib/search-select/selected.d.ts +137 -0
- package/lib/search-select/utils.d.ts +79 -0
- package/lib/select/common.d.ts +20 -31
- package/lib/select/index.d.ts +1422 -451
- package/lib/select/index.js +1 -15
- package/lib/select/option.d.ts +16 -4
- package/lib/select/optionGroup.d.ts +1 -77
- package/lib/select/select.css +265 -80
- package/lib/select/select.d.ts +553 -126
- package/lib/select/select.less +366 -185
- package/lib/select/select.variable.css +295 -84
- package/lib/select/selectTagInput.d.ts +93 -0
- package/lib/select/type.d.ts +39 -0
- package/lib/shared/dom.d.ts +3 -0
- package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +0 -0
- package/lib/shared/hooks/use-form-item.d.ts +2 -0
- package/lib/shared/hooks/use-form.d.ts +2 -0
- package/lib/shared/index.d.ts +27 -4
- package/lib/shared/index.js +1 -1
- package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +6 -2
- package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +8 -4
- package/lib/shared/{bk-popover.d.ts → popover.d.ts} +6 -2
- package/lib/shared/token.d.ts +4 -0
- package/lib/shared/utils.d.ts +13 -0
- package/lib/shared/vue-types.d.ts +4 -0
- package/lib/sideslider/index.d.ts +391 -76
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.css +55 -10
- package/lib/sideslider/sideslider.d.ts +181 -33
- package/lib/sideslider/sideslider.less +72 -13
- package/lib/sideslider/sideslider.variable.css +84 -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 +29 -3
- package/lib/steps/index.d.ts +4 -4
- package/lib/steps/index.js +1 -15
- package/lib/steps/steps.css +14 -3
- package/lib/steps/steps.d.ts +1 -1
- package/lib/steps/steps.less +23 -3
- package/lib/steps/steps.variable.css +43 -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 +136 -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 +38 -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 +34 -11
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +57 -6
- package/lib/switcher/switcher.d.ts +15 -4
- package/lib/switcher/switcher.less +5 -26
- package/lib/switcher/switcher.variable.css +86 -9
- package/lib/tab/index.d.ts +107 -219
- package/lib/tab/index.js +1 -1
- package/lib/tab/props.d.ts +194 -0
- package/lib/tab/tab-nav.d.ts +66 -87
- package/lib/tab/tab-panel.d.ts +40 -15
- package/lib/tab/tab.css +25 -1
- package/lib/tab/tab.d.ts +17 -41
- package/lib/tab/tab.less +31 -19
- package/lib/tab/tab.variable.css +54 -4
- package/lib/table/components/index.d.ts +3 -0
- package/lib/table/components/table-cell.d.ts +38 -0
- package/lib/table/components/table-column.d.ts +142 -0
- package/lib/table/components/table-row.d.ts +2 -0
- package/lib/table/const.d.ts +108 -1
- package/lib/table/index.d.ts +781 -27
- package/lib/table/index.js +1 -10
- package/lib/table/plugins/body-empty.d.ts +40 -0
- package/lib/table/plugins/col-group.d.ts +38 -0
- package/lib/table/plugins/common.d.ts +6 -0
- package/lib/table/plugins/head-filter.css +71 -0
- package/lib/table/plugins/head-filter.d.ts +26 -0
- package/lib/table/plugins/head-filter.less +92 -0
- package/lib/table/plugins/head-filter.variable.css +190 -0
- package/lib/table/plugins/head-sort.css +25 -0
- package/lib/table/plugins/head-sort.d.ts +22 -0
- package/lib/table/plugins/head-sort.less +31 -0
- package/lib/table/plugins/head-sort.variable.css +144 -0
- package/lib/table/plugins/index.d.ts +5 -0
- package/lib/table/plugins/settings.css +129 -0
- package/lib/table/plugins/settings.d.ts +37 -0
- package/lib/table/plugins/settings.less +157 -0
- package/lib/table/plugins/settings.variable.css +248 -0
- package/lib/table/plugins/use-active-columns.d.ts +16 -0
- package/lib/table/plugins/use-column-resize.d.ts +15 -0
- package/lib/table/plugins/use-fixed-column.d.ts +12 -0
- package/lib/table/plugins/use-pagination.d.ts +16 -0
- package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
- package/lib/table/props.d.ts +282 -7
- package/lib/table/render.d.ts +53 -6
- package/lib/table/table.css +1143 -17
- package/lib/table/table.d.ts +196 -13
- package/lib/table/table.less +237 -25
- package/lib/table/table.variable.css +1182 -30
- package/lib/table/use-column.d.ts +11 -0
- package/lib/table/use-common.d.ts +97 -0
- package/lib/table/utils.d.ts +65 -9
- package/lib/table-column/index.d.ts +336 -0
- package/lib/table-column/index.js +1 -0
- package/lib/tag/index.d.ts +7 -7
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +57 -18
- package/lib/tag/tag.d.ts +2 -2
- package/lib/tag/tag.less +58 -15
- package/lib/tag/tag.variable.css +86 -21
- package/lib/tag-input/common.d.ts +36 -0
- package/lib/tag-input/index.d.ts +1211 -0
- package/lib/tag-input/index.js +1 -0
- package/lib/tag-input/list-tag-render.d.ts +44 -0
- package/lib/tag-input/tag-input.css +209 -0
- package/lib/tag-input/tag-input.d.ts +536 -0
- package/lib/tag-input/tag-input.less +251 -0
- package/lib/tag-input/tag-input.variable.css +328 -0
- package/lib/tag-input/tag-props.d.ts +216 -0
- package/lib/tag-input/tag-render.d.ts +35 -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 +334 -0
- package/lib/timeline/index.d.ts +6 -6
- 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 +34 -8
- package/lib/transfer/const.d.ts +5 -0
- package/lib/transfer/index.d.ts +339 -1
- package/lib/transfer/index.js +1 -1
- package/lib/transfer/props.d.ts +54 -0
- package/lib/transfer/transfer.css +89 -86
- package/lib/transfer/transfer.d.ts +70 -95
- package/lib/transfer/transfer.less +93 -113
- package/lib/transfer/transfer.variable.css +123 -94
- package/lib/tree/constant.d.ts +57 -0
- package/lib/tree/index.d.ts +419 -48
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +124 -0
- package/lib/tree/tree.css +183 -11
- package/lib/tree/tree.d.ts +194 -23
- package/lib/tree/tree.less +72 -10
- package/lib/tree/tree.variable.css +302 -11
- 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 +5 -7
- package/lib/upload/index.d.ts +566 -0
- package/lib/upload/index.js +1 -0
- package/lib/upload/props.d.ts +111 -0
- package/lib/upload/upload-list.d.ts +47 -0
- package/lib/upload/upload-trigger.d.ts +51 -0
- package/lib/upload/upload.css +425 -0
- package/lib/upload/upload.d.ts +246 -0
- package/lib/upload/upload.less +464 -0
- package/lib/upload/upload.type.d.ts +78 -0
- package/lib/upload/upload.variable.css +544 -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 +27 -4
- package/lib/virtual-render/index.js +1 -10
- 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 +14 -3
- package/lib/virtual-render/virtual-render.less +2 -31
- package/lib/virtual-render/virtual-render.variable.css +136 -24
- package/lib/volar.components.d.ts +101 -0
- package/package.json +59 -46
- package/README_EN.md +0 -93
- package/dist/bkui-vue.cjs.js +0 -18938
- package/dist/bkui-vue.esm.js +0 -18887
- package/dist/bkui-vue.umd.js +0 -18941
- package/lib/form/common.d.ts +0 -3
- package/lib/icon/icon.js +0 -15
- package/lib/styles/index.js +0 -1
- package/lib/use-form.d.ts +0 -3
package/lib/popover/index.d.ts
CHANGED
@@ -1,23 +1,49 @@
|
|
1
|
+
export { PopoverProps } from './props';
|
2
|
+
export type { PopoverPropTypes } from './props';
|
1
3
|
declare const BkPopover: {
|
2
4
|
new (...args: any[]): {
|
3
5
|
$: import("vue").ComponentInternalInstance;
|
4
6
|
$data: {};
|
5
7
|
$props: Partial<{
|
6
|
-
width: string | number;
|
7
|
-
height: string | number;
|
8
8
|
placement: string;
|
9
9
|
modifiers: unknown[];
|
10
|
+
zIndex: number;
|
10
11
|
content: string | number;
|
12
|
+
arrow: boolean;
|
11
13
|
theme: string;
|
12
|
-
|
14
|
+
disabled: boolean;
|
13
15
|
trigger: string;
|
14
|
-
|
16
|
+
width: string | number;
|
17
|
+
height: string | number;
|
15
18
|
isShow: boolean;
|
16
|
-
|
19
|
+
always: boolean;
|
20
|
+
transition: string;
|
21
|
+
stopBehaviors: string | string[];
|
22
|
+
contentCls: string;
|
23
|
+
handleFirstUpdate: import("../shared").OnFirstUpdateFnType;
|
17
24
|
fixOnBoundary: boolean;
|
18
25
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
26
|
+
onAfterHidden: FunctionConstructor;
|
27
|
+
onAfterShow: FunctionConstructor;
|
28
|
+
contentCls: import("vue-types").VueTypeValidableDef<string> & {
|
29
|
+
default: string;
|
30
|
+
} & {
|
31
|
+
default: string;
|
32
|
+
};
|
19
33
|
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
20
34
|
default: boolean;
|
35
|
+
} & {
|
36
|
+
default: boolean;
|
37
|
+
};
|
38
|
+
always: import("vue-types").VueTypeValidableDef<boolean> & {
|
39
|
+
default: boolean;
|
40
|
+
} & {
|
41
|
+
default: boolean;
|
42
|
+
};
|
43
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
44
|
+
default: boolean;
|
45
|
+
} & {
|
46
|
+
default: boolean;
|
21
47
|
};
|
22
48
|
width: import("vue-types").VueTypeDef<string | number> & {
|
23
49
|
default: string | number;
|
@@ -42,7 +68,7 @@ declare const BkPopover: {
|
|
42
68
|
default: string;
|
43
69
|
};
|
44
70
|
handleFirstUpdate: {
|
45
|
-
type: import("vue").PropType<import("
|
71
|
+
type: import("vue").PropType<import("../shared").OnFirstUpdateFnType>;
|
46
72
|
default: () => void;
|
47
73
|
};
|
48
74
|
trigger: import("vue-types").VueTypeValidableDef<string> & {
|
@@ -66,7 +92,15 @@ declare const BkPopover: {
|
|
66
92
|
} & {
|
67
93
|
default: boolean;
|
68
94
|
};
|
69
|
-
|
95
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
96
|
+
default: number;
|
97
|
+
} & {
|
98
|
+
default: number;
|
99
|
+
};
|
100
|
+
stopBehaviors: import("vue-types").VueTypeDef<string | string[]> & {
|
101
|
+
default: string | (() => string[]);
|
102
|
+
};
|
103
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placement" | "modifiers" | "zIndex" | "content" | "arrow" | "theme" | "disabled" | "trigger" | "width" | "height" | "isShow" | "always" | "transition" | "stopBehaviors" | "contentCls" | "handleFirstUpdate" | "fixOnBoundary">;
|
70
104
|
$attrs: {
|
71
105
|
[x: string]: unknown;
|
72
106
|
};
|
@@ -81,8 +115,27 @@ declare const BkPopover: {
|
|
81
115
|
$emit: ((event: string, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
|
82
116
|
$el: any;
|
83
117
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
118
|
+
onAfterHidden: FunctionConstructor;
|
119
|
+
onAfterShow: FunctionConstructor;
|
120
|
+
contentCls: import("vue-types").VueTypeValidableDef<string> & {
|
121
|
+
default: string;
|
122
|
+
} & {
|
123
|
+
default: string;
|
124
|
+
};
|
84
125
|
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
85
126
|
default: boolean;
|
127
|
+
} & {
|
128
|
+
default: boolean;
|
129
|
+
};
|
130
|
+
always: import("vue-types").VueTypeValidableDef<boolean> & {
|
131
|
+
default: boolean;
|
132
|
+
} & {
|
133
|
+
default: boolean;
|
134
|
+
};
|
135
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
136
|
+
default: boolean;
|
137
|
+
} & {
|
138
|
+
default: boolean;
|
86
139
|
};
|
87
140
|
width: import("vue-types").VueTypeDef<string | number> & {
|
88
141
|
default: string | number;
|
@@ -107,7 +160,7 @@ declare const BkPopover: {
|
|
107
160
|
default: string;
|
108
161
|
};
|
109
162
|
handleFirstUpdate: {
|
110
|
-
type: import("vue").PropType<import("
|
163
|
+
type: import("vue").PropType<import("../shared").OnFirstUpdateFnType>;
|
111
164
|
default: () => void;
|
112
165
|
};
|
113
166
|
trigger: import("vue-types").VueTypeValidableDef<string> & {
|
@@ -131,18 +184,31 @@ declare const BkPopover: {
|
|
131
184
|
} & {
|
132
185
|
default: boolean;
|
133
186
|
};
|
187
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
188
|
+
default: number;
|
189
|
+
} & {
|
190
|
+
default: number;
|
191
|
+
};
|
192
|
+
stopBehaviors: import("vue-types").VueTypeDef<string | string[]> & {
|
193
|
+
default: string | (() => string[]);
|
194
|
+
};
|
134
195
|
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, {
|
135
|
-
width: string | number;
|
136
|
-
height: string | number;
|
137
196
|
placement: string;
|
138
197
|
modifiers: unknown[];
|
198
|
+
zIndex: number;
|
139
199
|
content: string | number;
|
200
|
+
arrow: boolean;
|
140
201
|
theme: string;
|
141
|
-
|
202
|
+
disabled: boolean;
|
142
203
|
trigger: string;
|
143
|
-
|
204
|
+
width: string | number;
|
205
|
+
height: string | number;
|
144
206
|
isShow: boolean;
|
145
|
-
|
207
|
+
always: boolean;
|
208
|
+
transition: string;
|
209
|
+
stopBehaviors: string | string[];
|
210
|
+
contentCls: string;
|
211
|
+
handleFirstUpdate: import("../shared").OnFirstUpdateFnType;
|
146
212
|
fixOnBoundary: boolean;
|
147
213
|
}> & {
|
148
214
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -165,8 +231,27 @@ declare const BkPopover: {
|
|
165
231
|
$nextTick: typeof import("vue").nextTick;
|
166
232
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
167
233
|
} & Readonly<import("vue").ExtractPropTypes<{
|
234
|
+
onAfterHidden: FunctionConstructor;
|
235
|
+
onAfterShow: FunctionConstructor;
|
236
|
+
contentCls: import("vue-types").VueTypeValidableDef<string> & {
|
237
|
+
default: string;
|
238
|
+
} & {
|
239
|
+
default: string;
|
240
|
+
};
|
168
241
|
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
169
242
|
default: boolean;
|
243
|
+
} & {
|
244
|
+
default: boolean;
|
245
|
+
};
|
246
|
+
always: import("vue-types").VueTypeValidableDef<boolean> & {
|
247
|
+
default: boolean;
|
248
|
+
} & {
|
249
|
+
default: boolean;
|
250
|
+
};
|
251
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
252
|
+
default: boolean;
|
253
|
+
} & {
|
254
|
+
default: boolean;
|
170
255
|
};
|
171
256
|
width: import("vue-types").VueTypeDef<string | number> & {
|
172
257
|
default: string | number;
|
@@ -191,7 +276,7 @@ declare const BkPopover: {
|
|
191
276
|
default: string;
|
192
277
|
};
|
193
278
|
handleFirstUpdate: {
|
194
|
-
type: import("vue").PropType<import("
|
279
|
+
type: import("vue").PropType<import("../shared").OnFirstUpdateFnType>;
|
195
280
|
default: () => void;
|
196
281
|
};
|
197
282
|
trigger: import("vue-types").VueTypeValidableDef<string> & {
|
@@ -215,13 +300,40 @@ declare const BkPopover: {
|
|
215
300
|
} & {
|
216
301
|
default: boolean;
|
217
302
|
};
|
303
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
304
|
+
default: number;
|
305
|
+
} & {
|
306
|
+
default: number;
|
307
|
+
};
|
308
|
+
stopBehaviors: import("vue-types").VueTypeDef<string | string[]> & {
|
309
|
+
default: string | (() => string[]);
|
310
|
+
};
|
218
311
|
}>> & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
|
219
312
|
__isFragment?: never;
|
220
313
|
__isTeleport?: never;
|
221
314
|
__isSuspense?: never;
|
222
315
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
316
|
+
onAfterHidden: FunctionConstructor;
|
317
|
+
onAfterShow: FunctionConstructor;
|
318
|
+
contentCls: import("vue-types").VueTypeValidableDef<string> & {
|
319
|
+
default: string;
|
320
|
+
} & {
|
321
|
+
default: string;
|
322
|
+
};
|
223
323
|
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
224
324
|
default: boolean;
|
325
|
+
} & {
|
326
|
+
default: boolean;
|
327
|
+
};
|
328
|
+
always: import("vue-types").VueTypeValidableDef<boolean> & {
|
329
|
+
default: boolean;
|
330
|
+
} & {
|
331
|
+
default: boolean;
|
332
|
+
};
|
333
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
334
|
+
default: boolean;
|
335
|
+
} & {
|
336
|
+
default: boolean;
|
225
337
|
};
|
226
338
|
width: import("vue-types").VueTypeDef<string | number> & {
|
227
339
|
default: string | number;
|
@@ -246,7 +358,7 @@ declare const BkPopover: {
|
|
246
358
|
default: string;
|
247
359
|
};
|
248
360
|
handleFirstUpdate: {
|
249
|
-
type: import("vue").PropType<import("
|
361
|
+
type: import("vue").PropType<import("../shared").OnFirstUpdateFnType>;
|
250
362
|
default: () => void;
|
251
363
|
};
|
252
364
|
trigger: import("vue-types").VueTypeValidableDef<string> & {
|
@@ -270,18 +382,31 @@ declare const BkPopover: {
|
|
270
382
|
} & {
|
271
383
|
default: boolean;
|
272
384
|
};
|
273
|
-
|
274
|
-
|
275
|
-
|
385
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
386
|
+
default: number;
|
387
|
+
} & {
|
388
|
+
default: number;
|
389
|
+
};
|
390
|
+
stopBehaviors: import("vue-types").VueTypeDef<string | string[]> & {
|
391
|
+
default: string | (() => string[]);
|
392
|
+
};
|
393
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "afterShow" | "afterHidden" | "update:isShow", {
|
276
394
|
placement: string;
|
277
395
|
modifiers: unknown[];
|
396
|
+
zIndex: number;
|
278
397
|
content: string | number;
|
398
|
+
arrow: boolean;
|
279
399
|
theme: string;
|
280
|
-
|
400
|
+
disabled: boolean;
|
281
401
|
trigger: string;
|
282
|
-
|
402
|
+
width: string | number;
|
403
|
+
height: string | number;
|
283
404
|
isShow: boolean;
|
284
|
-
|
405
|
+
always: boolean;
|
406
|
+
transition: string;
|
407
|
+
stopBehaviors: string | string[];
|
408
|
+
contentCls: string;
|
409
|
+
handleFirstUpdate: import("../shared").OnFirstUpdateFnType;
|
285
410
|
fixOnBoundary: boolean;
|
286
411
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
287
412
|
export default BkPopover;
|
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,{PopoverProps:()=>r,default:()=>s});var e=n(4212),t=n(748),o={onAfterHidden:Function,onAfterShow:Function},r=Object.assign({contentCls:e.PropTypes.string.def(""),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}})),P=["dark","light"],g=(0,t.computed)((function(){var e=d.value.split(/\s+/);return e.sort((function(e,t){return Number(P.includes(t))-Number(P.includes(e))})),{systemThemes:e,customThemes:e.filter((function(e){return!P.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:g.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=(0,t.computed)((function(){return g.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}),{})})),A=(0,t.computed)((function(){var e=g.value.customThemes.join(" ");return"bk-popover-content ".concat(e," ").concat(o.contentCls).trim()})),F=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:A.value,style:T.value},N.value,{onClick:F}),[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
package/lib/popover/popover.d.ts
CHANGED
@@ -1,6 +1,25 @@
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
2
|
+
onAfterHidden: FunctionConstructor;
|
3
|
+
onAfterShow: FunctionConstructor;
|
4
|
+
contentCls: import("vue-types").VueTypeValidableDef<string> & {
|
5
|
+
default: string;
|
6
|
+
} & {
|
7
|
+
default: string;
|
8
|
+
};
|
2
9
|
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
3
10
|
default: boolean;
|
11
|
+
} & {
|
12
|
+
default: boolean;
|
13
|
+
};
|
14
|
+
always: import("vue-types").VueTypeValidableDef<boolean> & {
|
15
|
+
default: boolean;
|
16
|
+
} & {
|
17
|
+
default: boolean;
|
18
|
+
};
|
19
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
20
|
+
default: boolean;
|
21
|
+
} & {
|
22
|
+
default: boolean;
|
4
23
|
};
|
5
24
|
width: import("vue-types").VueTypeDef<string | number> & {
|
6
25
|
default: string | number;
|
@@ -25,7 +44,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
25
44
|
default: string;
|
26
45
|
};
|
27
46
|
handleFirstUpdate: {
|
28
|
-
type: import("vue").PropType<import("
|
47
|
+
type: import("vue").PropType<import("../shared").OnFirstUpdateFnType>;
|
29
48
|
default: () => void;
|
30
49
|
};
|
31
50
|
trigger: import("vue-types").VueTypeValidableDef<string> & {
|
@@ -49,9 +68,36 @@ declare const _default: import("vue").DefineComponent<{
|
|
49
68
|
} & {
|
50
69
|
default: boolean;
|
51
70
|
};
|
52
|
-
|
71
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
72
|
+
default: number;
|
73
|
+
} & {
|
74
|
+
default: number;
|
75
|
+
};
|
76
|
+
stopBehaviors: import("vue-types").VueTypeDef<string | string[]> & {
|
77
|
+
default: string | (() => string[]);
|
78
|
+
};
|
79
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "afterShow" | "afterHidden" | "update:isShow", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
80
|
+
onAfterHidden: FunctionConstructor;
|
81
|
+
onAfterShow: FunctionConstructor;
|
82
|
+
contentCls: import("vue-types").VueTypeValidableDef<string> & {
|
83
|
+
default: string;
|
84
|
+
} & {
|
85
|
+
default: string;
|
86
|
+
};
|
53
87
|
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
54
88
|
default: boolean;
|
89
|
+
} & {
|
90
|
+
default: boolean;
|
91
|
+
};
|
92
|
+
always: import("vue-types").VueTypeValidableDef<boolean> & {
|
93
|
+
default: boolean;
|
94
|
+
} & {
|
95
|
+
default: boolean;
|
96
|
+
};
|
97
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
98
|
+
default: boolean;
|
99
|
+
} & {
|
100
|
+
default: boolean;
|
55
101
|
};
|
56
102
|
width: import("vue-types").VueTypeDef<string | number> & {
|
57
103
|
default: string | number;
|
@@ -76,7 +122,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
76
122
|
default: string;
|
77
123
|
};
|
78
124
|
handleFirstUpdate: {
|
79
|
-
type: import("vue").PropType<import("
|
125
|
+
type: import("vue").PropType<import("../shared").OnFirstUpdateFnType>;
|
80
126
|
default: () => void;
|
81
127
|
};
|
82
128
|
trigger: import("vue-types").VueTypeValidableDef<string> & {
|
@@ -100,18 +146,31 @@ declare const _default: import("vue").DefineComponent<{
|
|
100
146
|
} & {
|
101
147
|
default: boolean;
|
102
148
|
};
|
149
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
150
|
+
default: number;
|
151
|
+
} & {
|
152
|
+
default: number;
|
153
|
+
};
|
154
|
+
stopBehaviors: import("vue-types").VueTypeDef<string | string[]> & {
|
155
|
+
default: string | (() => string[]);
|
156
|
+
};
|
103
157
|
}>>, {
|
104
|
-
width: string | number;
|
105
|
-
height: string | number;
|
106
158
|
placement: string;
|
107
159
|
modifiers: unknown[];
|
160
|
+
zIndex: number;
|
108
161
|
content: string | number;
|
162
|
+
arrow: boolean;
|
109
163
|
theme: string;
|
110
|
-
|
164
|
+
disabled: boolean;
|
111
165
|
trigger: string;
|
112
|
-
|
166
|
+
width: string | number;
|
167
|
+
height: string | number;
|
113
168
|
isShow: boolean;
|
114
|
-
|
169
|
+
always: boolean;
|
170
|
+
transition: string;
|
171
|
+
stopBehaviors: string | string[];
|
172
|
+
contentCls: string;
|
173
|
+
handleFirstUpdate: import("../shared").OnFirstUpdateFnType;
|
115
174
|
fixOnBoundary: boolean;
|
116
175
|
}>;
|
117
176
|
export default _default;
|
package/lib/popover/popover.less
CHANGED
@@ -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,10 +19,11 @@
|
|
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;
|
26
|
+
--border-style-color: var(--light-gray);
|
25
27
|
--input-disabled-bg: #fafbfd;
|
26
28
|
--input-disabled-border: var(--disable-color);
|
27
29
|
--input-height-base: var(--component-size-base);
|
@@ -31,8 +33,9 @@
|
|
31
33
|
--input-broder-radius: 3px;
|
32
34
|
--input-shadow-color: #a3c5fd;
|
33
35
|
--input-horizontal-padding: 10px;
|
34
|
-
--input-block-color: #
|
35
|
-
--input-
|
36
|
+
--input-block-color: #f5f7fa;
|
37
|
+
--input-block-hover-color: #eaebf0;
|
38
|
+
--input-icon-size: var(--font-size-medium);
|
36
39
|
--input-maxlength-color: #979ba5;
|
37
40
|
--button-primary-hover-color: #5594fa;
|
38
41
|
--button-danger-hover-color: #ff5656;
|
@@ -43,6 +46,15 @@
|
|
43
46
|
--button-danger-active-color: #db2626;
|
44
47
|
--button-success-active-color: #1ab943;
|
45
48
|
--button-warning-active-color: #eb9000;
|
49
|
+
--button-selected-bg-color: #e1ecff;
|
50
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
51
|
+
--radio-font-color: #63656e;
|
52
|
+
--radio-active-color: #5594fa;
|
53
|
+
--radio-hover-border-color: #979ba5;
|
54
|
+
--radio-disabled-border: #dcdee5;
|
55
|
+
--radio-disabled-font-color: #c4c6cc;
|
56
|
+
--radio-distable-checked-bg: #fafbfd;
|
57
|
+
--radio-button-checked-bg: #e1ecff;
|
46
58
|
--fixed-navbar-background: #fff;
|
47
59
|
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
48
60
|
--switch-default-color: #fff;
|
@@ -63,12 +75,16 @@
|
|
63
75
|
--message-color: var(--default-color);
|
64
76
|
--message-primary-bg-color: #f0f8ff;
|
65
77
|
--message-primary-border-color: #e1ecff;
|
78
|
+
--message-primary-shadow-color: #e1e8f4;
|
66
79
|
--message-warning-bg-color: #fff4e2;
|
67
80
|
--message-warning-border-color: #ffe8c3;
|
81
|
+
--message-warning-shadow-color: #ede6db;
|
68
82
|
--message-success-bg-color: #f2fff4;
|
69
83
|
--message-success-border-color: #dcffe2;
|
84
|
+
--message-success-shadow-color: #cef0d7;
|
70
85
|
--message-danger-bg-color: #ffeded;
|
71
86
|
--message-danger-border-color: #ffdddd;
|
87
|
+
--message-danger-shadow-color: #f6dada;
|
72
88
|
--slider-default-bg: #dcdee5;
|
73
89
|
--slider-disable-bar-bg: #979ba5;
|
74
90
|
--menu-bg-color: #182132;
|
@@ -90,6 +106,19 @@
|
|
90
106
|
--table-head-font-color: #313238;
|
91
107
|
--table-body-font-color: #575961;
|
92
108
|
--table-row-hover-bg-color: #f5f7fa;
|
109
|
+
--table-row-active-bg-color: #f0f1f5;
|
110
|
+
--cascader-panel-border-color: #dcdee5;
|
111
|
+
--cascader-panel-hover: #f5f7fa;
|
112
|
+
--cascader-panel-active: #e1ecff;
|
113
|
+
--cascader-panel-disabled-bg: #fff;
|
114
|
+
--search-select-focus-border-color: var(--primary-color);
|
115
|
+
--search-select-focus-color: #3c96ff;
|
116
|
+
--search-select-font-color: var(--default-color);
|
117
|
+
--search-select-placeholder-color: var(--light-gray);
|
118
|
+
--search-select-message-color: var(--danger-color);
|
119
|
+
}
|
120
|
+
.bk-popover {
|
121
|
+
display: inline-block;
|
93
122
|
}
|
94
123
|
.bk-popover .bk-popover-reference {
|
95
124
|
display: inline-block;
|
package/lib/popover/props.d.ts
CHANGED
@@ -1,8 +1,27 @@
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
-
import { OnFirstUpdateFnType } from '
|
2
|
+
import { OnFirstUpdateFnType } from '../shared';
|
3
3
|
export declare const PopoverProps: {
|
4
|
+
onAfterHidden: FunctionConstructor;
|
5
|
+
onAfterShow: FunctionConstructor;
|
6
|
+
contentCls: import("vue-types").VueTypeValidableDef<string> & {
|
7
|
+
default: string;
|
8
|
+
} & {
|
9
|
+
default: string;
|
10
|
+
};
|
4
11
|
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
5
12
|
default: boolean;
|
13
|
+
} & {
|
14
|
+
default: boolean;
|
15
|
+
};
|
16
|
+
always: import("vue-types").VueTypeValidableDef<boolean> & {
|
17
|
+
default: boolean;
|
18
|
+
} & {
|
19
|
+
default: boolean;
|
20
|
+
};
|
21
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
22
|
+
default: boolean;
|
23
|
+
} & {
|
24
|
+
default: boolean;
|
6
25
|
};
|
7
26
|
width: import("vue-types").VueTypeDef<string | number> & {
|
8
27
|
default: string | number;
|
@@ -22,7 +41,7 @@ export declare const PopoverProps: {
|
|
22
41
|
default: string;
|
23
42
|
};
|
24
43
|
/**
|
25
|
-
*
|
44
|
+
* 组件显示位置
|
26
45
|
*/
|
27
46
|
placement: import("vue-types").VueTypeDef<string> & {
|
28
47
|
default: string;
|
@@ -73,5 +92,18 @@ export declare const PopoverProps: {
|
|
73
92
|
} & {
|
74
93
|
default: boolean;
|
75
94
|
};
|
95
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
96
|
+
default: number;
|
97
|
+
} & {
|
98
|
+
default: number;
|
99
|
+
};
|
100
|
+
/**
|
101
|
+
* 弹出框鼠标点击事件是否阻止的点击事件行为
|
102
|
+
* 支持 stopPropagation stopImmediatePropagation preventDefault
|
103
|
+
* 用于在嵌套弹出或者元素定位导致的点击触发关闭问题
|
104
|
+
*/
|
105
|
+
stopBehaviors: import("vue-types").VueTypeDef<string | string[]> & {
|
106
|
+
default: string | (() => string[]);
|
107
|
+
};
|
76
108
|
};
|
77
109
|
export declare type PopoverPropTypes = Readonly<ExtractPropTypes<typeof PopoverProps>>;
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
2
|
+
export default _default;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
export declare const enum EMIT_EVENTS {
|
2
|
+
SHOW = "show",
|
3
|
+
HIDE = "hide",
|
4
|
+
CLICK_OUTSIDE = "clickoutside",
|
5
|
+
CONTENT_MOUSEENTER = "contentMouseenter",
|
6
|
+
CONTENT_MOUSELEAVE = "contentMouseleave",
|
7
|
+
STOP_HIDE = "stopHide"
|
8
|
+
}
|
9
|
+
export declare const EMIT_EVENT_TYPES: {
|
10
|
+
show: (..._args: any[]) => boolean;
|
11
|
+
hide: (..._args: any[]) => boolean;
|
12
|
+
clickoutside: (..._args: any[]) => boolean;
|
13
|
+
contentMouseenter: (..._args: any[]) => boolean;
|
14
|
+
contentMouseleave: (..._args: any[]) => boolean;
|
15
|
+
stopHide: (..._args: any[]) => boolean;
|
16
|
+
};
|
@@ -0,0 +1,24 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
width: import("vue-types").VueTypeDef<string | number> & {
|
3
|
+
default: string | number;
|
4
|
+
};
|
5
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
6
|
+
default: string | number;
|
7
|
+
};
|
8
|
+
}, {
|
9
|
+
style: import("vue").ComputedRef<{
|
10
|
+
width: string | number;
|
11
|
+
height: string | number;
|
12
|
+
}>;
|
13
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
14
|
+
width: import("vue-types").VueTypeDef<string | number> & {
|
15
|
+
default: string | number;
|
16
|
+
};
|
17
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
18
|
+
default: string | number;
|
19
|
+
};
|
20
|
+
}>>, {
|
21
|
+
width: string | number;
|
22
|
+
height: string | number;
|
23
|
+
}>;
|
24
|
+
export default _default;
|