bkui-vue 0.0.1-beta.10 → 0.0.1-beta.102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -19
- package/dist/index.cjs.js +57 -0
- package/dist/index.esm.js +26854 -0
- package/dist/index.umd.js +57 -0
- package/dist/style.css +1 -2348
- 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 +102 -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.d.ts +24 -15
- package/lib/alert/alert.less +7 -3
- package/lib/alert/alert.variable.css +34 -3
- package/lib/alert/index.d.ts +96 -60
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +12 -7
- package/lib/animate-number/index.d.ts +48 -28
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.d.ts +27 -13
- package/lib/backtop/backtop.variable.css +29 -0
- package/lib/backtop/index.d.ts +108 -52
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.css +5 -5
- package/lib/badge/badge.d.ts +64 -22
- package/lib/badge/badge.less +5 -6
- package/lib/badge/badge.variable.css +34 -5
- package/lib/badge/index.d.ts +202 -84
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
- package/lib/breadcrumb/breadcrumb.css +18 -1
- package/lib/breadcrumb/breadcrumb.d.ts +37 -9
- package/lib/breadcrumb/breadcrumb.less +13 -2
- package/lib/breadcrumb/breadcrumb.variable.css +47 -1
- package/lib/breadcrumb/index.d.ts +118 -46
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button-group.d.ts +3 -5
- package/lib/button/button.css +73 -44
- package/lib/button/button.d.ts +67 -31
- package/lib/button/button.less +68 -47
- package/lib/button/button.variable.css +102 -44
- package/lib/button/index.d.ts +172 -108
- package/lib/button/index.js +1 -1
- package/lib/card/card.css +53 -1
- package/lib/card/card.d.ts +74 -18
- package/lib/card/card.less +50 -2
- package/lib/card/card.variable.css +82 -1
- package/lib/card/index.d.ts +225 -69
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +48 -0
- package/lib/cascader/cascader.css +130 -0
- package/lib/cascader/cascader.d.ts +271 -0
- package/lib/cascader/cascader.less +146 -0
- package/lib/cascader/cascader.variable.css +229 -0
- package/lib/cascader/index.d.ts +721 -0
- package/lib/cascader/index.js +1 -0
- package/lib/cascader/interface.d.ts +44 -0
- package/lib/cascader/node.d.ts +24 -0
- package/lib/cascader/store.d.ts +15 -0
- package/lib/checkbox/checkbox-group.d.ts +13 -9
- package/lib/checkbox/checkbox.css +15 -2
- package/lib/checkbox/checkbox.d.ts +33 -30
- package/lib/checkbox/checkbox.less +20 -2
- package/lib/checkbox/checkbox.variable.css +44 -2
- package/lib/checkbox/common.d.ts +3 -3
- package/lib/checkbox/index.d.ts +136 -104
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +4 -8
- package/lib/code-diff/code-diff.css +186 -0
- package/lib/code-diff/code-diff.d.ts +80 -0
- package/lib/code-diff/code-diff.less +238 -0
- package/lib/code-diff/code-diff.variable.css +285 -0
- package/lib/code-diff/index.d.ts +154 -0
- package/lib/code-diff/index.js +1 -0
- package/lib/collapse/collapse.css +25 -1
- package/lib/collapse/collapse.d.ts +51 -22
- package/lib/collapse/collapse.less +34 -2
- package/lib/collapse/collapse.variable.css +124 -1
- package/lib/collapse/index.d.ts +127 -75
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/utils.d.ts +11 -0
- package/lib/components.d.ts +28 -4
- package/lib/components.js +1 -0
- package/lib/container/col.d.ts +51 -0
- package/lib/container/container.css +48 -0
- package/lib/container/container.d.ts +83 -0
- package/lib/container/container.less +20 -0
- package/lib/container/container.variable.css +147 -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 +408 -0
- package/lib/date-picker/date-picker.d.ts +312 -0
- package/lib/date-picker/date-picker.less +527 -0
- package/lib/date-picker/date-picker.variable.css +507 -0
- package/lib/date-picker/fecha.d.ts +6 -0
- package/lib/date-picker/index.d.ts +753 -0
- package/lib/date-picker/index.js +1 -0
- package/lib/date-picker/interface.d.ts +22 -0
- package/lib/date-picker/props.d.ts +118 -0
- package/lib/date-picker/utils.d.ts +97 -0
- package/lib/dialog/dialog.css +66 -14
- package/lib/dialog/dialog.d.ts +305 -52
- package/lib/dialog/dialog.less +34 -14
- package/lib/dialog/dialog.variable.css +66 -14
- package/lib/dialog/index.d.ts +704 -115
- package/lib/dialog/index.js +1 -1
- package/lib/directives/clickoutside.d.ts +3 -23
- 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 +17 -0
- package/lib/dist.index.js +1 -0
- package/lib/divider/divider.css +38 -0
- package/lib/divider/divider.d.ts +48 -0
- package/lib/divider/divider.less +53 -0
- package/lib/divider/divider.variable.css +137 -0
- package/lib/divider/index.d.ts +142 -0
- package/lib/divider/index.js +1 -0
- package/lib/divider/props.d.ts +21 -0
- package/lib/dropdown/dropdown-item.d.ts +19 -0
- package/lib/dropdown/dropdown-menu.d.ts +16 -0
- package/lib/dropdown/dropdown.css +47 -0
- package/lib/dropdown/dropdown.d.ts +63 -0
- package/lib/dropdown/dropdown.less +59 -0
- package/lib/dropdown/dropdown.variable.css +146 -0
- package/lib/dropdown/index.d.ts +200 -0
- package/lib/dropdown/index.js +1 -0
- package/lib/exception/exception.d.ts +11 -9
- package/lib/exception/exception.variable.css +29 -0
- package/lib/exception/index.d.ts +44 -36
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/fixed-navbar.d.ts +29 -9
- package/lib/fixed-navbar/fixed-navbar.variable.css +29 -0
- package/lib/fixed-navbar/index.d.ts +96 -37
- 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 +155 -0
- package/lib/form/form.css +125 -0
- package/lib/form/form.d.ts +81 -0
- package/lib/form/form.less +152 -0
- package/lib/form/form.variable.css +224 -0
- package/lib/form/index.d.ts +303 -0
- package/lib/form/index.js +1 -0
- package/lib/form/type.d.ts +23 -0
- package/lib/form/validator.d.ts +9 -0
- package/lib/icon/angle-double-down-line.d.ts +4 -0
- package/lib/icon/angle-double-down-line.js +1 -0
- package/lib/icon/angle-double-left-line.d.ts +4 -0
- package/lib/icon/angle-double-left-line.js +1 -0
- package/lib/icon/angle-double-left.d.ts +4 -0
- package/lib/icon/angle-double-left.js +1 -0
- package/lib/icon/angle-double-right-line.d.ts +4 -0
- package/lib/icon/angle-double-right-line.js +1 -0
- package/lib/icon/angle-double-right.d.ts +4 -0
- package/lib/icon/angle-double-right.js +1 -0
- package/lib/icon/angle-double-up-line.d.ts +4 -0
- package/lib/icon/angle-double-up-line.js +1 -0
- package/lib/icon/angle-down-fill.d.ts +4 -0
- package/lib/icon/angle-down-fill.js +1 -0
- package/lib/icon/angle-down-line.d.ts +4 -0
- package/lib/icon/angle-down-line.js +1 -0
- package/lib/icon/angle-down.d.ts +4 -0
- package/lib/icon/angle-down.js +1 -0
- package/lib/icon/angle-left.d.ts +4 -0
- package/lib/icon/angle-left.js +1 -0
- package/lib/icon/angle-right.d.ts +4 -0
- package/lib/icon/angle-right.js +1 -0
- package/lib/icon/angle-up-fill.d.ts +4 -0
- package/lib/icon/angle-up-fill.js +1 -0
- package/lib/icon/angle-up.js +1 -0
- package/lib/icon/archive-fill.d.ts +4 -0
- package/lib/icon/archive-fill.js +1 -0
- package/lib/icon/arrows-left.d.ts +4 -0
- package/lib/icon/arrows-left.js +1 -0
- package/lib/icon/arrows-right.d.ts +4 -0
- package/lib/icon/arrows-right.js +1 -0
- package/lib/icon/audio-fill.d.ts +4 -0
- package/lib/icon/audio-fill.js +1 -0
- package/lib/icon/bk.d.ts +4 -0
- package/lib/icon/bk.js +1 -0
- package/lib/icon/circle.d.ts +4 -0
- package/lib/icon/circle.js +1 -0
- package/lib/icon/close-line.d.ts +4 -0
- package/lib/icon/close-line.js +1 -0
- package/lib/icon/close.js +1 -0
- package/lib/icon/code.d.ts +4 -0
- package/lib/icon/code.js +1 -0
- package/lib/icon/cog-shape.d.ts +4 -0
- package/lib/icon/cog-shape.js +1 -0
- package/lib/icon/collapse-left.d.ts +4 -0
- package/lib/icon/collapse-left.js +1 -0
- package/lib/icon/copy.d.ts +4 -0
- package/lib/icon/copy.js +1 -0
- package/lib/icon/data-shape.d.ts +4 -0
- package/lib/icon/data-shape.js +1 -0
- package/lib/icon/del.d.ts +4 -0
- package/lib/icon/del.js +1 -0
- package/lib/icon/doc-fill.d.ts +4 -0
- package/lib/icon/doc-fill.js +1 -0
- package/lib/icon/done.d.ts +4 -0
- package/lib/icon/done.js +1 -0
- package/lib/icon/down-shape.d.ts +4 -0
- package/lib/icon/down-shape.js +1 -0
- package/lib/icon/down-small.js +1 -0
- package/lib/icon/edit-line.d.ts +4 -0
- package/lib/icon/edit-line.js +1 -0
- package/lib/icon/ellipsis.d.ts +4 -0
- package/lib/icon/ellipsis.js +1 -0
- package/lib/icon/error.d.ts +4 -0
- package/lib/icon/error.js +1 -0
- package/lib/icon/excel-fill.d.ts +4 -0
- package/lib/icon/excel-fill.js +1 -0
- package/lib/icon/exclamation-circle-shape.d.ts +4 -0
- package/lib/icon/exclamation-circle-shape.js +1 -0
- package/lib/icon/eye.js +1 -0
- package/lib/icon/folder-open.d.ts +4 -0
- package/lib/icon/folder-open.js +1 -0
- package/lib/icon/folder-shape-open.d.ts +4 -0
- package/lib/icon/folder-shape-open.js +1 -0
- package/lib/icon/folder-shape.d.ts +4 -0
- package/lib/icon/folder-shape.js +1 -0
- package/lib/icon/folder.d.ts +4 -0
- package/lib/icon/folder.js +1 -0
- package/lib/icon/funnel.d.ts +4 -0
- package/lib/icon/help-document-fill.js +1 -0
- package/lib/icon/help-fill.js +1 -0
- package/lib/icon/help.js +1 -0
- package/lib/icon/image-fill.d.ts +4 -0
- package/lib/icon/image-fill.js +1 -0
- package/lib/icon/index.d.ts +58 -0
- package/lib/icon/index.js +1 -15
- package/lib/icon/info-line.js +1 -0
- package/lib/icon/info.d.ts +4 -0
- package/lib/icon/info.js +1 -0
- package/lib/icon/left-shape.d.ts +4 -0
- package/lib/icon/left-shape.js +1 -0
- package/lib/icon/pdf-fill.d.ts +4 -0
- package/lib/icon/pdf-fill.js +1 -0
- package/lib/icon/play-shape.d.ts +4 -0
- package/lib/icon/play-shape.js +1 -0
- package/lib/icon/plus.d.ts +4 -0
- package/lib/icon/plus.js +1 -0
- package/lib/icon/ppt-fill.d.ts +4 -0
- package/lib/icon/ppt-fill.js +1 -0
- package/lib/icon/qq.d.ts +4 -0
- package/lib/icon/qq.js +1 -0
- package/lib/icon/right-shape.d.ts +4 -0
- package/lib/icon/right-shape.js +1 -0
- package/lib/icon/search.js +1 -0
- package/lib/icon/share.d.ts +4 -0
- package/lib/icon/share.js +1 -0
- package/lib/icon/spinner.d.ts +4 -0
- package/lib/icon/spinner.js +1 -0
- package/lib/icon/success.d.ts +4 -0
- package/lib/icon/success.js +1 -0
- package/lib/icon/switcher-loading.js +1 -0
- package/lib/icon/text-file.d.ts +4 -0
- package/lib/icon/text-file.js +1 -0
- package/lib/icon/text-fill.d.ts +4 -0
- package/lib/icon/text-fill.js +1 -0
- package/lib/icon/tree-application-shape.d.ts +4 -0
- package/lib/icon/tree-application-shape.js +1 -0
- package/lib/icon/unvisible.js +1 -0
- package/lib/icon/up-shape.d.ts +4 -0
- package/lib/icon/up-shape.js +1 -0
- package/lib/icon/upload.d.ts +4 -0
- package/lib/icon/upload.js +1 -0
- package/lib/icon/video-fill.d.ts +4 -0
- package/lib/icon/video-fill.js +1 -0
- package/lib/icon/warn.d.ts +4 -0
- package/lib/icon/warn.js +1 -0
- package/lib/icon/weixin.d.ts +4 -0
- package/lib/icon/weixin.js +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -0
- package/lib/input/index.d.ts +459 -193
- package/lib/input/index.js +1 -15
- package/lib/input/input.css +85 -5
- package/lib/input/input.d.ts +181 -51
- package/lib/input/input.less +96 -9
- package/lib/input/input.variable.css +115 -5
- package/lib/link/index.d.ts +102 -54
- package/lib/link/index.js +1 -1
- package/lib/link/link.d.ts +25 -13
- package/lib/link/link.variable.css +29 -0
- package/lib/loading/index.d.ts +190 -57
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +118 -84
- package/lib/loading/loading.d.ts +115 -20
- package/lib/loading/loading.less +76 -71
- package/lib/loading/loading.variable.css +147 -84
- package/lib/menu/index.d.ts +176 -0
- package/lib/menu/index.js +1 -0
- package/lib/menu/menu-group.d.ts +14 -0
- package/lib/menu/menu-item.d.ts +16 -0
- package/lib/menu/menu.css +190 -0
- package/lib/menu/menu.d.ts +55 -0
- package/lib/menu/menu.less +180 -0
- package/lib/menu/menu.variable.css +289 -0
- package/lib/menu/submenu.css +3 -0
- package/lib/menu/submenu.d.ts +22 -0
- package/lib/menu/submenu.less +5 -0
- package/lib/menu/submenu.variable.css +102 -0
- package/lib/menu/utils.d.ts +41 -0
- package/lib/message/index.d.ts +1 -1
- package/lib/message/index.js +1 -1
- package/lib/message/message.css +27 -1
- package/lib/message/message.less +30 -1
- package/lib/message/message.variable.css +56 -1
- package/lib/message/messageConstructor.d.ts +71 -20
- package/lib/modal/index.d.ts +517 -67
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +30 -1
- package/lib/modal/modal.d.ts +195 -24
- package/lib/modal/modal.less +39 -1
- package/lib/modal/modal.variable.css +30 -1
- package/lib/modal/props.mixin.d.ts +82 -10
- package/lib/navigation/index.d.ts +311 -0
- package/lib/navigation/index.js +1 -0
- package/lib/navigation/navigation-title.d.ts +25 -0
- package/lib/navigation/navigation.css +184 -0
- package/lib/navigation/navigation.d.ts +120 -0
- package/lib/navigation/navigation.less +210 -0
- package/lib/navigation/navigation.variable.css +283 -0
- package/lib/notify/index.d.ts +2 -0
- package/lib/notify/index.js +1 -0
- package/lib/notify/notify.css +65 -0
- package/lib/notify/notify.less +76 -0
- package/lib/notify/notify.variable.css +164 -0
- package/lib/notify/notifyConstructor.d.ts +135 -0
- package/lib/pagination/index.d.ts +395 -0
- package/lib/pagination/index.js +1 -0
- package/lib/pagination/pagination.css +179 -0
- package/lib/pagination/pagination.d.ts +220 -0
- package/lib/pagination/pagination.less +201 -0
- package/lib/pagination/pagination.variable.css +278 -0
- package/lib/pagination/type.d.ts +6 -0
- package/lib/pagination/use-limit.d.ts +8 -0
- package/lib/pagination/use-list.d.ts +8 -0
- package/lib/pagination/use-small-list.d.ts +5 -0
- package/lib/pagination/use-total.d.ts +5 -0
- package/lib/popover/index.d.ts +322 -137
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +28 -16
- package/lib/popover/popover.d.ts +122 -45
- package/lib/popover/popover.less +59 -46
- package/lib/popover/popover.variable.css +57 -16
- package/lib/popover/props.d.ts +104 -0
- package/lib/popover2/arrow.d.ts +2 -0
- package/lib/popover2/const.d.ts +10 -0
- package/lib/popover2/content.d.ts +24 -0
- package/lib/popover2/index.d.ts +501 -0
- package/lib/popover2/index.js +1 -0
- package/lib/popover2/popover2.css +24 -0
- package/lib/popover2/popover2.d.ts +211 -0
- package/lib/popover2/popover2.less +34 -0
- package/lib/popover2/popover2.variable.css +123 -0
- package/lib/popover2/props.d.ts +105 -0
- package/lib/popover2/reference.d.ts +2 -0
- package/lib/popover2/use-floating.d.ts +17 -0
- package/lib/popover2/use-popper-id.d.ts +5 -0
- package/lib/preset.d.ts +2 -3
- package/lib/preset.js +1 -0
- package/lib/process/index.d.ts +205 -0
- package/lib/process/index.js +1 -0
- package/lib/process/process.css +138 -0
- package/lib/process/process.d.ts +131 -0
- package/lib/process/process.less +178 -0
- package/lib/process/process.variable.css +237 -0
- package/lib/progress/index.d.ts +305 -135
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +8 -3
- package/lib/progress/progress.d.ts +89 -36
- package/lib/progress/progress.less +0 -4
- package/lib/progress/progress.variable.css +37 -3
- package/lib/radio/common.d.ts +5 -5
- package/lib/radio/index.d.ts +146 -97
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +28 -20
- package/lib/radio/radio-group.d.ts +11 -10
- package/lib/radio/radio.css +14 -8
- package/lib/radio/radio.d.ts +27 -17
- package/lib/radio/radio.less +16 -9
- package/lib/radio/radio.variable.css +44 -9
- package/lib/radio/type.d.ts +10 -5
- package/lib/rate/index.d.ts +52 -40
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +13 -10
- package/lib/rate/star.d.ts +33 -16
- package/lib/resize-layout/index.d.ts +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 +288 -0
- package/lib/select/common.d.ts +23 -17
- package/lib/select/index.d.ts +1430 -478
- package/lib/select/index.js +1 -1
- package/lib/select/option.d.ts +15 -20
- package/lib/select/optionGroup.d.ts +54 -0
- package/lib/select/select.css +283 -50
- package/lib/select/select.d.ts +417 -157
- package/lib/select/select.less +243 -53
- package/lib/select/select.variable.css +312 -50
- package/lib/select/selectTagInput.d.ts +71 -0
- package/lib/select/type.d.ts +35 -0
- package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
- package/lib/shared/index.d.ts +33 -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/popover.d.ts +131 -0
- package/lib/shared/token.d.ts +4 -0
- package/lib/shared/utils.d.ts +6 -0
- package/lib/shared/vue-types.d.ts +12 -7
- package/lib/shared/z-index-manager.d.ts +6 -1
- package/lib/sideslider/index.d.ts +474 -80
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.css +48 -3
- package/lib/sideslider/sideslider.d.ts +205 -30
- package/lib/sideslider/sideslider.less +65 -6
- package/lib/sideslider/sideslider.variable.css +77 -3
- package/lib/slider/index.d.ts +440 -0
- package/lib/slider/index.js +1 -0
- package/lib/slider/slider-button.d.ts +80 -0
- package/lib/slider/slider.css +149 -0
- package/lib/slider/slider.d.ts +201 -0
- package/lib/slider/slider.less +179 -0
- package/lib/slider/slider.variable.css +248 -0
- package/lib/steps/index.d.ts +164 -112
- package/lib/steps/index.js +1 -15
- package/lib/steps/steps.css +18 -4
- package/lib/steps/steps.d.ts +42 -29
- package/lib/steps/steps.less +28 -4
- package/lib/steps/steps.variable.css +47 -4
- package/lib/styles/index.d.ts +25 -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 +8 -0
- package/lib/styles/mixins/mixins.less +1 -0
- package/lib/styles/mixins/mixins.variable.css +8 -0
- package/lib/styles/mixins/popper.css +43 -0
- package/lib/styles/mixins/popper.less +52 -0
- package/lib/styles/mixins/popper.variable.css +43 -0
- package/lib/styles/mixins/size.less +9 -0
- package/lib/styles/reset.css +273 -0
- package/lib/styles/reset.less +313 -0
- package/lib/styles/reset.variable.css +273 -0
- package/lib/styles/themes/themes.less +45 -1
- 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 +198 -134
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +157 -135
- package/lib/switcher/switcher.d.ts +51 -35
- package/lib/switcher/switcher.less +211 -153
- package/lib/switcher/switcher.variable.css +186 -135
- package/lib/tab/index.d.ts +440 -0
- package/lib/tab/index.js +1 -0
- package/lib/tab/props.d.ts +194 -0
- package/lib/tab/tab-nav.d.ts +169 -0
- package/lib/tab/tab-panel.d.ts +73 -0
- package/lib/tab/tab.css +167 -0
- package/lib/tab/tab.d.ts +139 -0
- package/lib/tab/tab.less +228 -0
- package/lib/tab/tab.variable.css +266 -0
- package/lib/table/const.d.ts +49 -0
- package/lib/table/index.d.ts +491 -52
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.css +68 -0
- package/lib/table/plugins/head-filter.less +83 -0
- package/lib/table/plugins/head-filter.variable.css +167 -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 +121 -0
- package/lib/table/plugins/settings.css +110 -0
- package/lib/table/plugins/settings.less +136 -0
- package/lib/table/plugins/settings.variable.css +209 -0
- package/lib/table/props.d.ts +243 -0
- package/lib/table/render.d.ts +118 -0
- package/lib/table/table.css +441 -0
- package/lib/table/table.d.ts +194 -32
- package/lib/table/table.less +288 -1
- package/lib/table/table.variable.css +470 -0
- package/lib/table/use-common.d.ts +54 -0
- package/lib/table/utils.d.ts +104 -0
- package/lib/tag/index.d.ts +165 -274
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +97 -0
- package/lib/tag/tag.d.ts +83 -53
- package/lib/tag/tag.less +110 -2
- package/lib/tag/tag.variable.css +126 -0
- package/lib/tag-input/common.d.ts +24 -0
- package/lib/tag-input/index.d.ts +894 -0
- package/lib/tag-input/index.js +1 -0
- package/lib/tag-input/list-tag-render.d.ts +47 -0
- package/lib/tag-input/tag-input.css +209 -0
- package/lib/tag-input/tag-input.d.ts +374 -0
- package/lib/tag-input/tag-input.less +251 -0
- package/lib/tag-input/tag-input.variable.css +308 -0
- package/lib/tag-input/tag-props.d.ts +131 -0
- package/lib/tag-input/tag-render.d.ts +38 -0
- package/lib/timeline/index.d.ts +129 -0
- package/lib/timeline/index.js +1 -0
- package/lib/timeline/timeline.css +235 -0
- package/lib/timeline/timeline.d.ts +81 -0
- package/lib/timeline/timeline.less +240 -0
- package/lib/timeline/timeline.variable.css +334 -0
- 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 +238 -0
- package/lib/tree/constant.d.ts +43 -0
- package/lib/tree/index.d.ts +472 -0
- package/lib/tree/index.js +1 -0
- package/lib/tree/props.d.ts +168 -0
- package/lib/tree/tree.css +53 -0
- package/lib/tree/tree.d.ts +204 -0
- package/lib/tree/tree.less +66 -0
- package/lib/tree/tree.variable.css +152 -0
- package/lib/tree/use-empty.d.ts +6 -0
- package/lib/tree/use-node-action.d.ts +11 -0
- package/lib/tree/use-node-async.d.ts +5 -0
- package/lib/tree/use-node-attribute.d.ts +31 -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 +66 -0
- package/lib/upload/index.d.ts +2 -0
- package/lib/upload/index.js +1 -0
- package/lib/upload/props.d.ts +113 -0
- package/lib/upload/upload-list.d.ts +46 -0
- package/lib/upload/upload-trigger.d.ts +54 -0
- package/lib/upload/upload.css +374 -0
- package/lib/upload/upload.d.ts +252 -0
- package/lib/upload/upload.less +455 -0
- package/lib/upload/upload.type.d.ts +78 -0
- package/lib/upload/upload.variable.css +473 -0
- package/lib/upload/use-ajax-upload.d.ts +3 -0
- package/lib/upload/use-file-handler.d.ts +44 -0
- package/lib/use-message.d.ts +2 -0
- package/lib/virtual-render/index.d.ts +579 -0
- package/lib/virtual-render/index.js +1 -0
- package/lib/virtual-render/props.d.ts +167 -0
- package/lib/virtual-render/use-tag-render.d.ts +7 -0
- package/lib/virtual-render/v-virtual-render.d.ts +6 -0
- package/lib/virtual-render/virtual-render.css +33 -0
- package/lib/virtual-render/virtual-render.d.ts +255 -0
- package/lib/virtual-render/virtual-render.less +43 -0
- package/lib/virtual-render/virtual-render.variable.css +33 -0
- package/package.json +109 -81
- package/dist/bkui-vue.cjs.js +0 -5171
- package/dist/bkui-vue.esm.js +0 -5137
- package/dist/bkui-vue.umd.js +0 -5174
- package/lib/message/message.d.ts +0 -2
- package/lib/shared/bk-popover.d.ts +0 -76
- package/lib/styles/index.js +0 -1
- package/lib/table/common.d.ts +0 -3
- package/lib/table/table-layout.d.ts +0 -14
- package/lib/table/type.d.ts +0 -12
@@ -0,0 +1,501 @@
|
|
1
|
+
declare const BkPopover2: {
|
2
|
+
new (...args: any[]): {
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
4
|
+
$data: {};
|
5
|
+
$props: Partial<{
|
6
|
+
placement: string;
|
7
|
+
offset: number;
|
8
|
+
zIndex: number;
|
9
|
+
content: string | number;
|
10
|
+
trigger: string;
|
11
|
+
disabled: boolean;
|
12
|
+
arrow: boolean;
|
13
|
+
theme: string;
|
14
|
+
width: string | number;
|
15
|
+
height: string | number;
|
16
|
+
always: boolean;
|
17
|
+
padding: number;
|
18
|
+
isShow: boolean;
|
19
|
+
boundary: string;
|
20
|
+
disableTeleport: boolean;
|
21
|
+
autoPlacement: boolean;
|
22
|
+
autoVisibility: boolean;
|
23
|
+
disableOutsideClick: boolean;
|
24
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
25
|
+
onAfterHidden: FunctionConstructor;
|
26
|
+
onAfterShow: FunctionConstructor;
|
27
|
+
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
28
|
+
default: boolean;
|
29
|
+
} & {
|
30
|
+
default: boolean;
|
31
|
+
};
|
32
|
+
always: import("vue-types").VueTypeValidableDef<boolean> & {
|
33
|
+
default: boolean;
|
34
|
+
} & {
|
35
|
+
default: boolean;
|
36
|
+
};
|
37
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
38
|
+
default: boolean;
|
39
|
+
} & {
|
40
|
+
default: boolean;
|
41
|
+
};
|
42
|
+
width: import("vue-types").VueTypeDef<string | number> & {
|
43
|
+
default: string | number;
|
44
|
+
};
|
45
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
46
|
+
default: string | number;
|
47
|
+
};
|
48
|
+
content: import("vue-types").VueTypeDef<string | number> & {
|
49
|
+
default: string | number;
|
50
|
+
};
|
51
|
+
placement: import("vue-types").VueTypeDef<string> & {
|
52
|
+
default: string;
|
53
|
+
};
|
54
|
+
theme: import("vue-types").VueTypeValidableDef<string> & {
|
55
|
+
default: string;
|
56
|
+
} & {
|
57
|
+
default: string;
|
58
|
+
};
|
59
|
+
trigger: import("vue-types").VueTypeValidableDef<string> & {
|
60
|
+
default: string;
|
61
|
+
} & {
|
62
|
+
default: string;
|
63
|
+
};
|
64
|
+
arrow: import("vue-types").VueTypeValidableDef<boolean> & {
|
65
|
+
default: boolean;
|
66
|
+
} & {
|
67
|
+
default: boolean;
|
68
|
+
};
|
69
|
+
padding: import("vue-types").VueTypeValidableDef<number> & {
|
70
|
+
default: number;
|
71
|
+
} & {
|
72
|
+
default: number;
|
73
|
+
};
|
74
|
+
offset: import("vue-types").VueTypeValidableDef<number> & {
|
75
|
+
default: number;
|
76
|
+
} & {
|
77
|
+
default: number;
|
78
|
+
};
|
79
|
+
boundary: import("vue-types").VueTypeValidableDef<string> & {
|
80
|
+
default: string;
|
81
|
+
} & {
|
82
|
+
default: string;
|
83
|
+
};
|
84
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
85
|
+
default: number;
|
86
|
+
} & {
|
87
|
+
default: number;
|
88
|
+
};
|
89
|
+
disableTeleport: import("vue-types").VueTypeValidableDef<boolean> & {
|
90
|
+
default: boolean;
|
91
|
+
} & {
|
92
|
+
default: boolean;
|
93
|
+
};
|
94
|
+
autoPlacement: import("vue-types").VueTypeValidableDef<boolean> & {
|
95
|
+
default: boolean;
|
96
|
+
} & {
|
97
|
+
default: boolean;
|
98
|
+
};
|
99
|
+
autoVisibility: import("vue-types").VueTypeValidableDef<boolean> & {
|
100
|
+
default: boolean;
|
101
|
+
} & {
|
102
|
+
default: boolean;
|
103
|
+
};
|
104
|
+
disableOutsideClick: import("vue-types").VueTypeValidableDef<boolean> & {
|
105
|
+
default: boolean;
|
106
|
+
} & {
|
107
|
+
default: boolean;
|
108
|
+
};
|
109
|
+
}>> & {
|
110
|
+
onShow?: (...args: any[]) => any;
|
111
|
+
onHide?: (...args: any[]) => any;
|
112
|
+
onClickoutside?: (...args: any[]) => any;
|
113
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placement" | "offset" | "zIndex" | "content" | "trigger" | "disabled" | "arrow" | "theme" | "width" | "height" | "always" | "padding" | "isShow" | "boundary" | "disableTeleport" | "autoPlacement" | "autoVisibility" | "disableOutsideClick">;
|
114
|
+
$attrs: {
|
115
|
+
[x: string]: unknown;
|
116
|
+
};
|
117
|
+
$refs: {
|
118
|
+
[x: string]: unknown;
|
119
|
+
};
|
120
|
+
$slots: Readonly<{
|
121
|
+
[name: string]: import("vue").Slot;
|
122
|
+
}>;
|
123
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
124
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
125
|
+
$emit: ((event: import("./const").EMITEVENTS.SHOW, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.HIDE, ...args: any[]) => void) & ((event: import("./const").EMITEVENTS.CLICK_OUTSIDE, ...args: any[]) => void);
|
126
|
+
$el: any;
|
127
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
128
|
+
onAfterHidden: FunctionConstructor;
|
129
|
+
onAfterShow: FunctionConstructor;
|
130
|
+
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
131
|
+
default: boolean;
|
132
|
+
} & {
|
133
|
+
default: boolean;
|
134
|
+
};
|
135
|
+
always: import("vue-types").VueTypeValidableDef<boolean> & {
|
136
|
+
default: boolean;
|
137
|
+
} & {
|
138
|
+
default: boolean;
|
139
|
+
};
|
140
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
141
|
+
default: boolean;
|
142
|
+
} & {
|
143
|
+
default: boolean;
|
144
|
+
};
|
145
|
+
width: import("vue-types").VueTypeDef<string | number> & {
|
146
|
+
default: string | number;
|
147
|
+
};
|
148
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
149
|
+
default: string | number;
|
150
|
+
};
|
151
|
+
content: import("vue-types").VueTypeDef<string | number> & {
|
152
|
+
default: string | number;
|
153
|
+
};
|
154
|
+
placement: import("vue-types").VueTypeDef<string> & {
|
155
|
+
default: string;
|
156
|
+
};
|
157
|
+
theme: import("vue-types").VueTypeValidableDef<string> & {
|
158
|
+
default: string;
|
159
|
+
} & {
|
160
|
+
default: string;
|
161
|
+
};
|
162
|
+
trigger: import("vue-types").VueTypeValidableDef<string> & {
|
163
|
+
default: string;
|
164
|
+
} & {
|
165
|
+
default: string;
|
166
|
+
};
|
167
|
+
arrow: import("vue-types").VueTypeValidableDef<boolean> & {
|
168
|
+
default: boolean;
|
169
|
+
} & {
|
170
|
+
default: boolean;
|
171
|
+
};
|
172
|
+
padding: import("vue-types").VueTypeValidableDef<number> & {
|
173
|
+
default: number;
|
174
|
+
} & {
|
175
|
+
default: number;
|
176
|
+
};
|
177
|
+
offset: import("vue-types").VueTypeValidableDef<number> & {
|
178
|
+
default: number;
|
179
|
+
} & {
|
180
|
+
default: number;
|
181
|
+
};
|
182
|
+
boundary: import("vue-types").VueTypeValidableDef<string> & {
|
183
|
+
default: string;
|
184
|
+
} & {
|
185
|
+
default: string;
|
186
|
+
};
|
187
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
188
|
+
default: number;
|
189
|
+
} & {
|
190
|
+
default: number;
|
191
|
+
};
|
192
|
+
disableTeleport: import("vue-types").VueTypeValidableDef<boolean> & {
|
193
|
+
default: boolean;
|
194
|
+
} & {
|
195
|
+
default: boolean;
|
196
|
+
};
|
197
|
+
autoPlacement: import("vue-types").VueTypeValidableDef<boolean> & {
|
198
|
+
default: boolean;
|
199
|
+
} & {
|
200
|
+
default: boolean;
|
201
|
+
};
|
202
|
+
autoVisibility: import("vue-types").VueTypeValidableDef<boolean> & {
|
203
|
+
default: boolean;
|
204
|
+
} & {
|
205
|
+
default: boolean;
|
206
|
+
};
|
207
|
+
disableOutsideClick: import("vue-types").VueTypeValidableDef<boolean> & {
|
208
|
+
default: boolean;
|
209
|
+
} & {
|
210
|
+
default: boolean;
|
211
|
+
};
|
212
|
+
}>> & {
|
213
|
+
onShow?: (...args: any[]) => any;
|
214
|
+
onHide?: (...args: any[]) => any;
|
215
|
+
onClickoutside?: (...args: any[]) => any;
|
216
|
+
}, {
|
217
|
+
boundary: string;
|
218
|
+
arrow: boolean;
|
219
|
+
refReference: import("vue").Ref<any>;
|
220
|
+
refContent: import("vue").Ref<any>;
|
221
|
+
refArrow: import("vue").Ref<any>;
|
222
|
+
content: string | number;
|
223
|
+
theme: string;
|
224
|
+
transBoundary: import("vue").ComputedRef<boolean>;
|
225
|
+
width: string | number;
|
226
|
+
height: string | number;
|
227
|
+
handleClickOutside: (_e: MouseEvent) => void;
|
228
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
229
|
+
show: (..._args: any[]) => boolean;
|
230
|
+
hide: (..._args: any[]) => boolean;
|
231
|
+
clickoutside: (..._args: any[]) => boolean;
|
232
|
+
}, string, {
|
233
|
+
placement: string;
|
234
|
+
offset: number;
|
235
|
+
zIndex: number;
|
236
|
+
content: string | number;
|
237
|
+
trigger: string;
|
238
|
+
disabled: boolean;
|
239
|
+
arrow: boolean;
|
240
|
+
theme: string;
|
241
|
+
width: string | number;
|
242
|
+
height: string | number;
|
243
|
+
always: boolean;
|
244
|
+
padding: number;
|
245
|
+
isShow: boolean;
|
246
|
+
boundary: string;
|
247
|
+
disableTeleport: boolean;
|
248
|
+
autoPlacement: boolean;
|
249
|
+
autoVisibility: boolean;
|
250
|
+
disableOutsideClick: boolean;
|
251
|
+
}> & {
|
252
|
+
beforeCreate?: (() => void) | (() => void)[];
|
253
|
+
created?: (() => void) | (() => void)[];
|
254
|
+
beforeMount?: (() => void) | (() => void)[];
|
255
|
+
mounted?: (() => void) | (() => void)[];
|
256
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
257
|
+
updated?: (() => void) | (() => void)[];
|
258
|
+
activated?: (() => void) | (() => void)[];
|
259
|
+
deactivated?: (() => void) | (() => void)[];
|
260
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
261
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
262
|
+
destroyed?: (() => void) | (() => void)[];
|
263
|
+
unmounted?: (() => void) | (() => void)[];
|
264
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
265
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
266
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
|
267
|
+
};
|
268
|
+
$forceUpdate: () => void;
|
269
|
+
$nextTick: typeof import("vue").nextTick;
|
270
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
271
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
272
|
+
onAfterHidden: FunctionConstructor;
|
273
|
+
onAfterShow: FunctionConstructor;
|
274
|
+
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
275
|
+
default: boolean;
|
276
|
+
} & {
|
277
|
+
default: boolean;
|
278
|
+
};
|
279
|
+
always: import("vue-types").VueTypeValidableDef<boolean> & {
|
280
|
+
default: boolean;
|
281
|
+
} & {
|
282
|
+
default: boolean;
|
283
|
+
};
|
284
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
285
|
+
default: boolean;
|
286
|
+
} & {
|
287
|
+
default: boolean;
|
288
|
+
};
|
289
|
+
width: import("vue-types").VueTypeDef<string | number> & {
|
290
|
+
default: string | number;
|
291
|
+
};
|
292
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
293
|
+
default: string | number;
|
294
|
+
};
|
295
|
+
content: import("vue-types").VueTypeDef<string | number> & {
|
296
|
+
default: string | number;
|
297
|
+
};
|
298
|
+
placement: import("vue-types").VueTypeDef<string> & {
|
299
|
+
default: string;
|
300
|
+
};
|
301
|
+
theme: import("vue-types").VueTypeValidableDef<string> & {
|
302
|
+
default: string;
|
303
|
+
} & {
|
304
|
+
default: string;
|
305
|
+
};
|
306
|
+
trigger: import("vue-types").VueTypeValidableDef<string> & {
|
307
|
+
default: string;
|
308
|
+
} & {
|
309
|
+
default: string;
|
310
|
+
};
|
311
|
+
arrow: import("vue-types").VueTypeValidableDef<boolean> & {
|
312
|
+
default: boolean;
|
313
|
+
} & {
|
314
|
+
default: boolean;
|
315
|
+
};
|
316
|
+
padding: import("vue-types").VueTypeValidableDef<number> & {
|
317
|
+
default: number;
|
318
|
+
} & {
|
319
|
+
default: number;
|
320
|
+
};
|
321
|
+
offset: import("vue-types").VueTypeValidableDef<number> & {
|
322
|
+
default: number;
|
323
|
+
} & {
|
324
|
+
default: number;
|
325
|
+
};
|
326
|
+
boundary: import("vue-types").VueTypeValidableDef<string> & {
|
327
|
+
default: string;
|
328
|
+
} & {
|
329
|
+
default: string;
|
330
|
+
};
|
331
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
332
|
+
default: number;
|
333
|
+
} & {
|
334
|
+
default: number;
|
335
|
+
};
|
336
|
+
disableTeleport: import("vue-types").VueTypeValidableDef<boolean> & {
|
337
|
+
default: boolean;
|
338
|
+
} & {
|
339
|
+
default: boolean;
|
340
|
+
};
|
341
|
+
autoPlacement: import("vue-types").VueTypeValidableDef<boolean> & {
|
342
|
+
default: boolean;
|
343
|
+
} & {
|
344
|
+
default: boolean;
|
345
|
+
};
|
346
|
+
autoVisibility: import("vue-types").VueTypeValidableDef<boolean> & {
|
347
|
+
default: boolean;
|
348
|
+
} & {
|
349
|
+
default: boolean;
|
350
|
+
};
|
351
|
+
disableOutsideClick: import("vue-types").VueTypeValidableDef<boolean> & {
|
352
|
+
default: boolean;
|
353
|
+
} & {
|
354
|
+
default: boolean;
|
355
|
+
};
|
356
|
+
}>> & {
|
357
|
+
onShow?: (...args: any[]) => any;
|
358
|
+
onHide?: (...args: any[]) => any;
|
359
|
+
onClickoutside?: (...args: any[]) => any;
|
360
|
+
} & import("vue").ShallowUnwrapRef<{
|
361
|
+
boundary: string;
|
362
|
+
arrow: boolean;
|
363
|
+
refReference: import("vue").Ref<any>;
|
364
|
+
refContent: import("vue").Ref<any>;
|
365
|
+
refArrow: import("vue").Ref<any>;
|
366
|
+
content: string | number;
|
367
|
+
theme: string;
|
368
|
+
transBoundary: import("vue").ComputedRef<boolean>;
|
369
|
+
width: string | number;
|
370
|
+
height: string | number;
|
371
|
+
handleClickOutside: (_e: MouseEvent) => void;
|
372
|
+
}> & {} & {} & import("vue").ComponentCustomProperties;
|
373
|
+
__isFragment?: never;
|
374
|
+
__isTeleport?: never;
|
375
|
+
__isSuspense?: never;
|
376
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
377
|
+
onAfterHidden: FunctionConstructor;
|
378
|
+
onAfterShow: FunctionConstructor;
|
379
|
+
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
380
|
+
default: boolean;
|
381
|
+
} & {
|
382
|
+
default: boolean;
|
383
|
+
};
|
384
|
+
always: import("vue-types").VueTypeValidableDef<boolean> & {
|
385
|
+
default: boolean;
|
386
|
+
} & {
|
387
|
+
default: boolean;
|
388
|
+
};
|
389
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
390
|
+
default: boolean;
|
391
|
+
} & {
|
392
|
+
default: boolean;
|
393
|
+
};
|
394
|
+
width: import("vue-types").VueTypeDef<string | number> & {
|
395
|
+
default: string | number;
|
396
|
+
};
|
397
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
398
|
+
default: string | number;
|
399
|
+
};
|
400
|
+
content: import("vue-types").VueTypeDef<string | number> & {
|
401
|
+
default: string | number;
|
402
|
+
};
|
403
|
+
placement: import("vue-types").VueTypeDef<string> & {
|
404
|
+
default: string;
|
405
|
+
};
|
406
|
+
theme: import("vue-types").VueTypeValidableDef<string> & {
|
407
|
+
default: string;
|
408
|
+
} & {
|
409
|
+
default: string;
|
410
|
+
};
|
411
|
+
trigger: import("vue-types").VueTypeValidableDef<string> & {
|
412
|
+
default: string;
|
413
|
+
} & {
|
414
|
+
default: string;
|
415
|
+
};
|
416
|
+
arrow: import("vue-types").VueTypeValidableDef<boolean> & {
|
417
|
+
default: boolean;
|
418
|
+
} & {
|
419
|
+
default: boolean;
|
420
|
+
};
|
421
|
+
padding: import("vue-types").VueTypeValidableDef<number> & {
|
422
|
+
default: number;
|
423
|
+
} & {
|
424
|
+
default: number;
|
425
|
+
};
|
426
|
+
offset: import("vue-types").VueTypeValidableDef<number> & {
|
427
|
+
default: number;
|
428
|
+
} & {
|
429
|
+
default: number;
|
430
|
+
};
|
431
|
+
boundary: import("vue-types").VueTypeValidableDef<string> & {
|
432
|
+
default: string;
|
433
|
+
} & {
|
434
|
+
default: string;
|
435
|
+
};
|
436
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
437
|
+
default: number;
|
438
|
+
} & {
|
439
|
+
default: number;
|
440
|
+
};
|
441
|
+
disableTeleport: import("vue-types").VueTypeValidableDef<boolean> & {
|
442
|
+
default: boolean;
|
443
|
+
} & {
|
444
|
+
default: boolean;
|
445
|
+
};
|
446
|
+
autoPlacement: import("vue-types").VueTypeValidableDef<boolean> & {
|
447
|
+
default: boolean;
|
448
|
+
} & {
|
449
|
+
default: boolean;
|
450
|
+
};
|
451
|
+
autoVisibility: import("vue-types").VueTypeValidableDef<boolean> & {
|
452
|
+
default: boolean;
|
453
|
+
} & {
|
454
|
+
default: boolean;
|
455
|
+
};
|
456
|
+
disableOutsideClick: import("vue-types").VueTypeValidableDef<boolean> & {
|
457
|
+
default: boolean;
|
458
|
+
} & {
|
459
|
+
default: boolean;
|
460
|
+
};
|
461
|
+
}>> & {
|
462
|
+
onShow?: (...args: any[]) => any;
|
463
|
+
onHide?: (...args: any[]) => any;
|
464
|
+
onClickoutside?: (...args: any[]) => any;
|
465
|
+
}, {
|
466
|
+
boundary: string;
|
467
|
+
arrow: boolean;
|
468
|
+
refReference: import("vue").Ref<any>;
|
469
|
+
refContent: import("vue").Ref<any>;
|
470
|
+
refArrow: import("vue").Ref<any>;
|
471
|
+
content: string | number;
|
472
|
+
theme: string;
|
473
|
+
transBoundary: import("vue").ComputedRef<boolean>;
|
474
|
+
width: string | number;
|
475
|
+
height: string | number;
|
476
|
+
handleClickOutside: (_e: MouseEvent) => void;
|
477
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
478
|
+
show: (..._args: any[]) => boolean;
|
479
|
+
hide: (..._args: any[]) => boolean;
|
480
|
+
clickoutside: (..._args: any[]) => boolean;
|
481
|
+
}, string, {
|
482
|
+
placement: string;
|
483
|
+
offset: number;
|
484
|
+
zIndex: number;
|
485
|
+
content: string | number;
|
486
|
+
trigger: string;
|
487
|
+
disabled: boolean;
|
488
|
+
arrow: boolean;
|
489
|
+
theme: string;
|
490
|
+
width: string | number;
|
491
|
+
height: string | number;
|
492
|
+
always: boolean;
|
493
|
+
padding: number;
|
494
|
+
isShow: boolean;
|
495
|
+
boundary: string;
|
496
|
+
disableTeleport: boolean;
|
497
|
+
autoPlacement: boolean;
|
498
|
+
autoVisibility: boolean;
|
499
|
+
disableOutsideClick: boolean;
|
500
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
501
|
+
export default BkPopover2;
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../directives"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../directives"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../directives")):t(e["../shared"],e.vue,e["../directives"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n)=>(()=>{var o={8022:(e,t,n)=>{var o=n(4481),r=n(6426),i=r;i.v1=o,i.v4=r,e.exports=i},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var o=n||0,r=t;return[r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},4481:(e,t,n)=>{var o,r,i=n(9157),l=n(8725),a=0,s=0;e.exports=function(e,t,n){var c=t&&n||0,u=t||[],f=(e=e||{}).node||o,d=void 0!==e.clockseq?e.clockseq:r;if(null==f||null==d){var p=i();null==f&&(f=o=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=r=16383&(p[6]<<8|p[7]))}var m=void 0!==e.msecs?e.msecs:(new Date).getTime(),h=void 0!==e.nsecs?e.nsecs:s+1,v=m-a+(h-s)/1e4;if(v<0&&void 0===e.clockseq&&(d=d+1&16383),(v<0||m>a)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=m,s=h,r=d;var g=(1e4*(268435455&(m+=122192928e5))+h)%4294967296;u[c++]=g>>>24&255,u[c++]=g>>>16&255,u[c++]=g>>>8&255,u[c++]=255&g;var y=m/4294967296*1e4&268435455;u[c++]=y>>>8&255,u[c++]=255&y,u[c++]=y>>>24&15|16,u[c++]=y>>>16&255,u[c++]=d>>>8|128,u[c++]=255&d;for(var w=0;w<6;++w)u[c+w]=f[w];return t||l(u)}},6426:(e,t,n)=>{var o=n(9157),r=n(8725);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var l=(e=e||{}).random||(e.rng||o)();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t)for(var a=0;a<16;++a)t[i+a]=l[a];return t||r(l)}},4061:e=>{"use strict";e.exports=n},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,i),n.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";i.r(l),i.d(l,{default:()=>we});var e=i(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function n(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var o=i(748),r=i(4061);const a=(0,o.defineComponent)({name:"PopArrow",render:function(){var t=(0,e.resolveClassName)("pop2-arrow");return(0,o.createVNode)("div",{class:t},null)}});function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c,u,f=function(){return!0};!function(e){e.SHOW="show",e.HIDE="hide",e.CLICK_OUTSIDE="clickoutside"}(u||(u={}));var d=(s(c={},u.SHOW,f),s(c,u.HIDE,f),s(c,u.CLICK_OUTSIDE,f),c);const p=(0,o.defineComponent)({name:"PopContent",props:{width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto")},setup:function(e){var t=function(e){return/^\d+\.?\d*$/.test("".concat(e))?"".concat(e,"px"):e};return{style:(0,o.computed)((function(){return{width:t(e.width),height:t(e.height)}}))}},render:function(){var t,n,r,i,l,a,s=[(0,e.resolveClassName)("popover2"),(0,e.resolveClassName)("pop2-content")];return(0,o.createVNode)("div",{class:s,tabindex:"-1",style:this.style},[null!==(r=null===(n=(t=this.$slots).default)||void 0===n?void 0:n.call(t))&&void 0!==r?r:"",null!==(a=null===(l=(i=this.$slots).arrow)||void 0===l?void 0:l.call(i))&&void 0!==a?a:""])}});var m={onAfterHidden:Function,onAfterShow:Function},h=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(""),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"),trigger:e.PropTypes.string.def("hover"),arrow:e.PropTypes.bool.def(!0),padding:e.PropTypes.number.def(5),offset:e.PropTypes.number.def(6),boundary:e.PropTypes.string.def(void 0),zIndex:e.PropTypes.number.def(void 0),disableTeleport:e.PropTypes.bool.def(!0),autoPlacement:e.PropTypes.bool.def(!1),autoVisibility:e.PropTypes.bool.def(!1),disableOutsideClick:e.PropTypes.bool.def(!1)},m);const v=(0,o.defineComponent)({name:"PopReference",render:function(){var e,t,n;return null!==(n=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:""}});function g(e){return e.split("-")[0]}function y(e){return e.split("-")[1]}function w(e){return["top","bottom"].includes(g(e))?"x":"y"}function b(e){return"y"===e?"height":"width"}function x(e,t,n){let{reference:o,floating:r}=e;const i=o.x+o.width/2-r.width/2,l=o.y+o.height/2-r.height/2,a=w(t),s=b(a),c=o[s]/2-r[s]/2,u="x"===a;let f;switch(g(t)){case"top":f={x:i,y:o.y-r.height};break;case"bottom":f={x:i,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:l};break;case"left":f={x:o.x-r.width,y:l};break;default:f={x:o.x,y:o.y}}switch(y(t)){case"start":f[a]-=c*(n&&u?-1:1);break;case"end":f[a]+=c*(n&&u?-1:1)}return f}function T(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function P(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function R(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,m=T(p),h=a[d?"floating"===f?"reference":"floating":f],v=P(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:s})),g=P(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...l.floating,x:o,y:r}:l.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),strategy:s}):l[f]);return{top:v.top-g.top+m.top,bottom:g.bottom-v.bottom+m.bottom,left:v.left-g.left+m.left,right:g.right-v.right+m.right}}const C=Math.min,O=Math.max;function A(e,t,n){return O(e,C(t,n))}const E=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=null!=e?e:{},{x:r,y:i,placement:l,rects:a,platform:s}=t;if(null==n)return{};const c=T(o),u={x:r,y:i},f=w(l),d=y(l),p=b(f),m=await s.getDimensions(n),h="y"===f?"top":"left",v="y"===f?"bottom":"right",g=a.reference[p]+a.reference[f]-u[f]-a.floating[p],x=u[f]-a.reference[f],P=await(null==s.getOffsetParent?void 0:s.getOffsetParent(n));let R=P?"y"===f?P.clientHeight||0:P.clientWidth||0:0;0===R&&(R=a.floating[p]);const C=g/2-x/2,O=c[h],E=R-m[p]-c[v],S=R/2-m[p]/2+C,L=A(O,S,E),H=("start"===d?c[h]:c[v])>0&&S!==L&&a.reference[p]<=a.floating[p];return{[f]:u[f]-(H?S<O?O-S:E-S:0),data:{[f]:L,centerOffset:S-L}}}}),S={left:"right",right:"left",bottom:"top",top:"bottom"};function L(e){return e.replace(/left|right|bottom|top/g,(e=>S[e]))}function H(e,t,n){void 0===n&&(n=!1);const o=y(e),r=w(e),i=b(r);let l="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=L(l)),{main:l,cross:L(l)}}const k={start:"end",end:"start"};function D(e){return e.replace(/start|end/g,(e=>k[e]))}const V=["top","right","bottom","left"],I=V.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function N(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function j(e){return V.some((t=>e[t]>=0))}const M=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),l=g(n),a=y(n),s="x"===w(n),c=["left","top"].includes(l)?-1:1,u=i&&s?-1:1,f="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),s?{x:p*u,y:d*c}:{x:d*c,y:p*u}}(t,e);return{x:n+r.x,y:o+r.y,data:r}}}};const W=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=e,c={x:n,y:o},u=await R(t,s),f=w(g(r)),d=function(e){return"x"===e?"y":"x"}(f);let p=c[f],m=c[d];if(i){const e="y"===f?"bottom":"right";p=A(p+u["y"===f?"top":"left"],p,p-u[e])}if(l){const e="y"===d?"bottom":"right";m=A(m+u["y"===d?"top":"left"],m,m-u[e])}const h=a.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-o}}}}};function $(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function q(e){if(null==e)return window;if(!$(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function B(e){return q(e).getComputedStyle(e)}function F(e){return $(e)?"":e?(e.nodeName||"").toLowerCase():""}function z(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function U(e){return e instanceof q(e).HTMLElement}function _(e){return e instanceof q(e).Element}function K(e){return"undefined"!=typeof ShadowRoot&&(e instanceof q(e).ShadowRoot||e instanceof ShadowRoot)}function X(e){const{overflow:t,overflowX:n,overflowY:o}=B(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function Y(e){return["table","td","th"].includes(F(e))}function Z(e){const t=/firefox/i.test(z()),n=B(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function G(){return!/^((?!chrome|android).)*safari/i.test(z())}const J=Math.min,Q=Math.max,ee=Math.round;function te(e,t,n){var o,r,i,l;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect();let s=1,c=1;t&&U(e)&&(s=e.offsetWidth>0&&ee(a.width)/e.offsetWidth||1,c=e.offsetHeight>0&&ee(a.height)/e.offsetHeight||1);const u=_(e)?q(e):window,f=!G()&&n,d=(a.left+(f&&null!=(o=null==(r=u.visualViewport)?void 0:r.offsetLeft)?o:0))/s,p=(a.top+(f&&null!=(i=null==(l=u.visualViewport)?void 0:l.offsetTop)?i:0))/c,m=a.width/s,h=a.height/c;return{width:m,height:h,top:p,right:d+m,bottom:p+h,left:d,x:d,y:p}}function ne(e){return(t=e,(t instanceof q(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function oe(e){return _(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function re(e){return te(ne(e)).left+oe(e).scrollLeft}function ie(e,t,n){const o=U(t),r=ne(t),i=te(e,o&&function(e){const t=te(e);return ee(t.width)!==e.offsetWidth||ee(t.height)!==e.offsetHeight}(t),"fixed"===n);let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==F(t)||X(r))&&(l=oe(t)),U(t)){const e=te(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else r&&(a.x=re(r));return{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function le(e){return"html"===F(e)?e:e.assignedSlot||e.parentNode||(K(e)?e.host:null)||ne(e)}function ae(e){return U(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function se(e){const t=q(e);let n=ae(e);for(;n&&Y(n)&&"static"===getComputedStyle(n).position;)n=ae(n);return n&&("html"===F(n)||"body"===F(n)&&"static"===getComputedStyle(n).position&&!Z(n))?t:n||function(e){let t=le(e);for(K(t)&&(t=t.host);U(t)&&!["html","body"].includes(F(t));){if(Z(t))return t;t=t.parentNode}return null}(e)||t}function ce(e){if(U(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=te(e);return{width:t.width,height:t.height}}function ue(e){const t=le(e);return["html","body","#document"].includes(F(t))?e.ownerDocument.body:U(t)&&X(t)?t:ue(t)}function fe(e,t){var n;void 0===t&&(t=[]);const o=ue(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=q(o),l=r?[i].concat(i.visualViewport||[],X(o)?o:[]):o,a=t.concat(l);return r?a:a.concat(fe(l))}function de(e,t,n){return"viewport"===t?P(function(e,t){const n=q(e),o=ne(e),r=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,a=0,s=0;if(r){i=r.width,l=r.height;const e=G();(e||!e&&"fixed"===t)&&(a=r.offsetLeft,s=r.offsetTop)}return{width:i,height:l,x:a,y:s}}(e,n)):_(t)?function(e,t){const n=te(e,!1,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft;return{top:o,left:r,x:r,y:o,right:r+e.clientWidth,bottom:o+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):P(function(e){var t;const n=ne(e),o=oe(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=Q(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=Q(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-o.scrollLeft+re(e);const s=-o.scrollTop;return"rtl"===B(r||n).direction&&(a+=Q(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:l,x:a,y:s}}(ne(e)))}function pe(e){const t=fe(e),n=["absolute","fixed"].includes(B(e).position)&&U(e)?se(e):e;return _(n)?t.filter((e=>_(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&K(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==F(e))):[]}const me={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?pe(t):[].concat(n),o],l=i[0],a=i.reduce(((e,n)=>{const o=de(t,n,r);return e.top=Q(o.top,e.top),e.right=J(o.right,e.right),e.bottom=J(o.bottom,e.bottom),e.left=Q(o.left,e.left),e}),de(t,l,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=U(n),i=ne(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==F(n)||X(i))&&(l=oe(n)),U(n))){const e=te(n,!0);a.x=e.x+n.clientLeft,a.y=e.y+n.clientTop}return{...t,x:t.x-l.scrollLeft+a.x,y:t.y-l.scrollTop+a.y}},isElement:_,getDimensions:ce,getOffsetParent:se,getDocumentElement:ne,getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:ie(t,se(n),o),floating:{...ce(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===B(e).direction},he=function(t,r,i,l,a){var c=(0,o.ref)(!1),u=["dark","light"],f=(0,o.computed)((function(){var e=t.theme.split(/\s+/);return e.sort((function(e,t){return Number(u.includes(t))-Number(u.includes(e))})),{systemThemes:e,customThemes:e.filter((function(e){return!u.includes(e)}))}})),d=function(){var e,n,o;return{elReference:p(null===(e=i.value)||void 0===e?void 0:e.$el),elContent:p(null===(n=l.value)||void 0===n?void 0:n.$el),elArrow:t.arrow?p(null===(o=a.value)||void 0===o?void 0:o.$el):null}},p=function e(t){return t instanceof HTMLElement?t:t instanceof Text?e(t.nextElementSibling):null},m=f.value.customThemes.join(" "),h=f.value.customThemes.reduce((function(e,t){return Object.assign(s({},"data-".concat(t,"-theme"),!0),e)}),{}),v="".concat(m),b=null,A=function(e){var t=window.devicePixelRatio||1;return Math.round(e*t)/t||0},S=function(){return null!==document.fullscreenElement},k=function(){var e=d(),o=e.elReference,r=e.elContent,i=e.elArrow,l=function(e){var n=[M(t.offset),W({padding:t.padding}),E({element:e})],o={placement:t.placement,middleware:n};return t.autoPlacement?n.push(function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r,i,l;const{x:a,y:s,rects:c,middlewareData:u,placement:f,platform:d,elements:p}=t,{alignment:m=null,allowedPlacements:h=I,autoAlignment:v=!0,...w}=e,b=function(e,t,n){return(e?[...n.filter((t=>y(t)===e)),...n.filter((t=>y(t)!==e))]:n.filter((e=>g(e)===e))).filter((n=>!e||y(n)===e||!!t&&D(n)!==n))}(m,v,h),x=await R(t,w),T=null!=(n=null==(o=u.autoPlacement)?void 0:o.index)?n:0,P=b[T];if(null==P)return{};const{main:C,cross:O}=H(P,c,await(null==d.isRTL?void 0:d.isRTL(p.floating)));if(f!==P)return{x:a,y:s,reset:{placement:b[0]}};const A=[x[g(P)],x[C],x[O]],E=[...null!=(r=null==(i=u.autoPlacement)?void 0:i.overflows)?r:[],{placement:P,overflows:A}],S=b[T+1];if(S)return{data:{index:T+1,overflows:E},reset:{placement:S}};const L=E.slice().sort(((e,t)=>e.overflows[0]-t.overflows[0])),k=null==(l=L.find((e=>{let{overflows:t}=e;return t.every((e=>e<=0))})))?void 0:l.placement,V=null!=k?k:L[0].placement;return V!==f?{data:{index:T+1,overflows:E},reset:{placement:V}}:{}}}}()):(n.unshift(function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){var n;const{placement:o,elements:r,rects:i,platform:l,strategy:a}=t,{padding:s=2,x:c,y:u}=e,f=P(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:i.reference,offsetParent:await(null==l.getOffsetParent?void 0:l.getOffsetParent(r.floating)),strategy:a}):i.reference),d=null!=(n=await(null==l.getClientRects?void 0:l.getClientRects(r.reference)))?n:[],p=T(s),m=await l.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===d.length&&d[0].left>d[1].right&&null!=c&&null!=u)return null!=(e=d.find((e=>c>e.left-p.left&&c<e.right+p.right&&u>e.top-p.top&&u<e.bottom+p.bottom)))?e:f;if(d.length>=2){if("x"===w(o)){const e=d[0],t=d[d.length-1],n="top"===g(o),r=e.top,i=t.bottom,l=n?e.left:t.left,a=n?e.right:t.right;return{top:r,bottom:i,left:l,right:a,width:a-l,height:i-r,x:l,y:r}}const e="left"===g(o),t=O(...d.map((e=>e.right))),n=C(...d.map((e=>e.left))),r=d.filter((o=>e?o.left===n:o.right===t)),i=r[0].top,l=r[r.length-1].bottom;return{top:i,bottom:l,left:n,right:t,width:t-n,height:l-i,x:n,y:i}}return f}},floating:r.floating,strategy:a});return i.reference.x!==m.reference.x||i.reference.y!==m.reference.y||i.reference.width!==m.reference.width||i.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}}()),n.push(function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:r,rects:i,initialPlacement:l,platform:a,elements:s}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...m}=e,h=g(o),v=f||(h!==l&&p?function(e){const t=L(e);return[D(e),t,D(t)]}(l):[L(l)]),y=[l,...v],w=await R(t,m),b=[];let x=(null==(n=r.flip)?void 0:n.overflows)||[];if(c&&b.push(w[h]),u){const{main:e,cross:t}=H(o,i,await(null==a.isRTL?void 0:a.isRTL(s.floating)));b.push(w[e],w[t])}if(x=[...x,{placement:o,overflows:b}],!b.every((e=>e<=0))){var T,P;const e=(null!=(T=null==(P=r.flip)?void 0:P.index)?T:0)+1,t=y[e];if(t)return{data:{index:e,overflows:x},reset:{placement:t}};let n="bottom";switch(d){case"bestFit":{var C;const e=null==(C=x.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:C[0].placement;e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}}())),t.autoVisibility&&o.middleware.push(function(e){let{strategy:t="referenceHidden",...n}={};return{name:"hide",async fn(e){const{rects:o}=e;switch(t){case"referenceHidden":{const t=N(await R(e,{...n,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:j(t)}}}case"escaped":{const t=N(await R(e,{...n,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:j(t)}}}default:return{}}}}}()),o}(i);b=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:a=!1}=o,s=r&&!a,c=i&&!a,u=s||c?[..._(e)?fe(e):[],...fe(t)]:[];u.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));let f,d=null;l&&(d=new ResizeObserver(n),_(e)&&!a&&d.observe(e),d.observe(t));let p=a?te(e):null;return a&&function t(){const o=te(e);!p||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||n(),p=o,f=requestAnimationFrame(t)}(),l||n(),()=>{var e;u.forEach((e=>{s&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,a&&cancelAnimationFrame(f)}}(o,r,(function(){((e,t,n)=>(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=n,a=await(null==l.isRTL?void 0:l.isRTL(t));let s=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:u}=x(s,o,a),f=o,d={};for(let n=0;n<i.length;n++){const{name:p,fn:m}=i[n],{x:h,y:v,data:g,reset:y}=await m({x:c,y:u,initialPlacement:o,placement:f,strategy:r,middlewareData:d,rects:s,platform:l,elements:{reference:e,floating:t}});c=null!=h?h:c,u=null!=v?v:u,d={...d,[p]:{...d[p],...g}},y&&("object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(s=!0===y.rects?await l.getElementRects({reference:e,floating:t,strategy:r}):y.rects),({x:c,y:u}=x(s,f,a))),n=-1)}return{x:c,y:u,placement:f,strategy:r,middlewareData:d}})(e,t,{platform:me,...n}))(o,r,l).then((function(e){var l=e.x,a=e.y,c=e.placement,u=e.middlewareData,f=r.className;r.className="".concat(f.replace(v,"")," ").concat(v).replace(/\s+/gm," ").replace(/^\s+|\s+$/g,""),Object.keys(h).forEach((function(e){r.setAttribute(e,h[e])}));var d=c.split("-")[0],p=d;["left","right","top","bottom"].includes(d)||(p="top"),function(e,n,o,r,i,l){var a,s,c=l.getBoundingClientRect(),u=c.left,f=c.top;if(Object.assign(e.style,{left:"0",top:"0",transform:"translate3d(".concat(S()?(s=n,["left","right"].includes(r)?A(s):u):A(n),"px,").concat(S()?(a=o,["top","bottom"].includes(r)?A(a):f):A(o),"px,0)")}),t.autoVisibility){var d=i.hide.referenceHidden;Object.assign(e.style,{visibility:d?"hidden":"visible"})}}(r,l,a,p,u,o),function(e,o,r,i){var l=i.getBoundingClientRect(),a=l.left,c=l.top,u=l.bottom,f=l.right;if(t.arrow){var d,p=r.arrow,m=p.x,h=p.y,v={top:1,right:-1,bottom:-1,left:1}[o],g=function(e,t,n){var r,i;return[e,null!==(i=null===(r={x:{left:"right",right:"left"},y:{top:"bottom",bottom:"top"}}[t])||void 0===r?void 0:r[o])&&void 0!==i?i:n]},y=function(e){if(S()){if(["left","right"].includes(o))return A((u-c)/2)-2;if(["top","bottom"].includes(o))return A((f-a)/2)-2}return V(e)?A(e):0};e.setAttribute("data-arrow",o);var w=n(g(["left","right"].includes(o)?4*v:y(m),"x","left"),2),b=w[0],x=w[1],T=n(g(["top","bottom"].includes(o)?4*v:y(h),"y","top"),2),P=T[0],R=T[1];Object.assign(e.style,(s(d={},x,"0"),s(d,R,"0"),s(d,"transform","translate(".concat(b,"px,").concat(P,"px) rotate(45deg)")),d))}}(i,p,u,o)}))}))},V=function(e){return/^-?\d+\.?\d*$/.test("".concat(e))},$=function(){c.value=!0},q=function(){c.value=!1},B=function(){c.value?q():$()},F=function(e){e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),B()};return(0,o.watch)(c,(function(n){var o,i;n?((i=p(null===(o=l.value)||void 0===o?void 0:o.$el)).style.setProperty("display","block"),i.style.setProperty("z-index","".concat(t.zIndex?t.zIndex:e.bkZIndexManager.getModalNextIndex())),k(),r.emit("afterShow",{isSHow:!0})):function(){var e;p(null===(e=l.value)||void 0===e?void 0:e.$el).style.setProperty("display","none"),r.emit("afterHidden",{isSHow:!1})}()})),{showPopover:$,hidePopover:q,resolveTriggerEvents:function(){var e;return null!==(e={hover:[["mouseenter",$],["mouseleave",q],["focus",$],["blur",q]],click:[["click",F]],manual:[[]]}[t.trigger])&&void 0!==e?e:[]},updatePopover:k,triggerPopover:B,resolvePopElements:d,isElementFullScreen:S,localIsShow:c,cleanup:b}};var ve=i(8022),ge=null;const ye=(0,o.defineComponent)({name:"Popover2",components:{Content:p,Arrow:a},directives:{clickoutside:r.clickoutside},props:h,emits:d,setup:function(e,t){var r=e.content,i=e.theme,l=e.width,a=e.height,s=e.disableTeleport,c=(0,o.ref)(),f=(0,o.ref)(),d=(0,o.ref)(),p=null,m=he(e,t,c,f,d),h=m.localIsShow,v=m.showPopover,g=m.hidePopover,y=m.resolveTriggerEvents,w=m.updatePopover,b=m.resolvePopElements,x=m.isElementFullScreen,T=m.cleanup,P=function(){g()},R=function(){w(),e.always?v():C()};e.always||e.disabled||(0,o.watch)((function(){return e.isShow}),(function(){e.isShow?v():g()}),{immediate:!0}),(0,o.watch)((function(){return[e.disabled]}),(function(e){e[0]?R():O()}));var C=function(){var e=b().elReference;(p=y()).forEach((function(t){var o=n(t,2),r=o[0],i=o[1];e.addEventListener(r,i)}))},O=function(){"function"==typeof T&&T(),function(){if(null==p?void 0:p.length){var e=b().elReference;e&&p.forEach((function(t){var o=n(t,2),r=o[0],i=o[1];e.removeEventListener(r,i)})),p=null}}()};(0,o.onMounted)((function(){e.disabled||R()})),(0,o.onUnmounted)((function(){O()})),t.expose({show:function(){v()},hide:P});var A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#",t=function(){return"".concat(e).concat(ge)},n=function(){return document.querySelector(t())instanceof HTMLElement};if(null===ge||!n()){ge="id_".concat((0,ve.v4)());var o=document.createElement("div");o.setAttribute("id",ge),o.setAttribute("data-popper-id",ge),document.body.append(o)}return{popContainerId:ge,prefixId:t()}}(),E=A.prefixId,S="string"==typeof e.boundary?e.boundary:E,L=(0,o.computed)((function(){return!x()&&!s}));return{boundary:S,arrow:e.arrow,refReference:c,refContent:f,refArrow:d,content:r,theme:i,transBoundary:L,width:l,height:a,handleClickOutside:function(n){t.emit(u.CLICK_OUTSIDE,{isShow:h.value}),e.disableOutsideClick||e.always||e.disabled||"manual"===e.trigger||h.value&&P()}}},render:function(){var e,t,n,r,i,l,s=this;return(0,o.createVNode)(o.Fragment,null,[(0,o.createVNode)(v,{ref:"refReference"},{default:function(){return[null!==(n=null===(t=(e=s.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:(0,o.createVNode)("span",null,null)]}}),(0,o.createVNode)(o.Teleport,{to:this.boundary,disabled:!this.transBoundary},{default:function(){return[(0,o.withDirectives)((0,o.createVNode)(p,{ref:"refContent","data-theme":s.theme,width:s.width,height:s.height},{default:function(){return[null!==(l=null===(i=(r=s.$slots).content)||void 0===i?void 0:i.call(r))&&void 0!==l?l:s.content]},arrow:function(){var e,t;return s.arrow?(0,o.createVNode)(a,{ref:"refArrow"},{default:function(){return[null===(t=(e=s.$slots).arrow)||void 0===t?void 0:t.call(e)]}}):""}}),[[(0,o.resolveDirective)("clickoutside"),s.handleClickOutside]])]}})])}}),we=(0,e.withInstall)(ye)})(),l})()));
|
@@ -0,0 +1,24 @@
|
|
1
|
+
.bk-popover2.bk-pop2-content {
|
2
|
+
position: absolute;
|
3
|
+
display: none;
|
4
|
+
padding: 7px 14px;
|
5
|
+
font-size: 12px;
|
6
|
+
color: #fff;
|
7
|
+
background: #26323d;
|
8
|
+
border-radius: 4px;
|
9
|
+
box-sizing: border-box;
|
10
|
+
}
|
11
|
+
.bk-popover2.bk-pop2-content .bk-pop2-arrow {
|
12
|
+
position: absolute;
|
13
|
+
width: 8px;
|
14
|
+
height: 8px;
|
15
|
+
background: #333;
|
16
|
+
}
|
17
|
+
.bk-popover2.bk-pop2-content[data-theme='light'] {
|
18
|
+
color: #26323d;
|
19
|
+
background-color: #fff;
|
20
|
+
box-shadow: 0 0 6px 0 #dcdee5;
|
21
|
+
}
|
22
|
+
.bk-popover2.bk-pop2-content[data-theme='light'] .bk-pop2-arrow {
|
23
|
+
background-color: #fff;
|
24
|
+
}
|