bkui-vue 0.0.1-beta.4 → 0.0.1-beta.40
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 +20295 -0
- package/dist/index.umd.js +57 -0
- package/dist/style.css +1 -2009
- package/lib/alert/alert.d.ts +24 -15
- package/lib/alert/alert.js +1 -0
- package/lib/alert/alert.variable.css +32 -0
- package/lib/alert/index.d.ts +180 -0
- package/lib/animate-number/animate-number.d.ts +12 -7
- package/lib/animate-number/animate-number.js +1 -0
- package/lib/animate-number/index.d.ts +97 -0
- package/lib/backtop/backtop.d.ts +27 -13
- package/lib/backtop/backtop.js +1 -0
- package/lib/backtop/backtop.variable.css +32 -0
- package/lib/backtop/index.d.ts +166 -0
- package/lib/badge/badge.d.ts +40 -19
- package/lib/badge/badge.js +1 -0
- package/lib/badge/badge.variable.css +32 -0
- package/lib/badge/index.d.ts +217 -0
- package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
- package/lib/breadcrumb/breadcrumb.css +10 -1
- package/lib/breadcrumb/breadcrumb.d.ts +37 -9
- package/lib/breadcrumb/breadcrumb.js +1 -0
- package/lib/breadcrumb/breadcrumb.less +13 -2
- package/lib/breadcrumb/breadcrumb.variable.css +42 -1
- package/lib/breadcrumb/index.d.ts +194 -0
- package/lib/button/button-group.d.ts +3 -5
- package/lib/button/button.css +12 -0
- package/lib/button/button.d.ts +57 -28
- package/lib/button/button.js +1 -0
- package/lib/button/button.less +26 -15
- package/lib/button/button.variable.css +44 -0
- package/lib/button/index.d.ts +226 -0
- package/lib/card/card.d.ts +30 -15
- package/lib/card/card.js +1 -0
- package/lib/card/card.variable.css +32 -0
- package/lib/card/index.d.ts +187 -0
- package/lib/checkbox/checkbox-group.d.ts +13 -9
- package/lib/checkbox/checkbox.d.ts +31 -22
- package/lib/checkbox/checkbox.js +1 -0
- package/lib/checkbox/checkbox.variable.css +32 -0
- package/lib/checkbox/common.d.ts +1 -1
- package/lib/checkbox/index.d.ts +261 -0
- package/lib/checkbox/type.d.ts +7 -6
- 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.js +1 -0
- package/lib/code-diff/code-diff.less +238 -0
- package/lib/code-diff/code-diff.variable.css +279 -0
- package/lib/code-diff/index.d.ts +154 -0
- package/lib/collapse/collapse.css +8 -0
- package/lib/collapse/collapse.d.ts +50 -18
- package/lib/collapse/collapse.js +1 -0
- package/lib/collapse/collapse.less +10 -0
- package/lib/collapse/collapse.variable.css +8 -0
- package/lib/collapse/index.d.ts +166 -0
- package/lib/components.d.ts +41 -0
- package/lib/date-picker/date-picker.css +407 -0
- package/lib/date-picker/date-picker.d.ts +294 -0
- package/lib/date-picker/date-picker.js +1 -0
- package/lib/date-picker/date-picker.less +526 -0
- package/lib/date-picker/date-picker.variable.css +500 -0
- package/lib/date-picker/fecha.d.ts +6 -0
- package/lib/date-picker/index.d.ts +713 -0
- package/lib/date-picker/interface.d.ts +22 -0
- package/lib/date-picker/props.d.ts +111 -0
- package/lib/date-picker/utils.d.ts +97 -0
- package/lib/dialog/dialog.d.ts +57 -27
- package/lib/dialog/dialog.js +1 -0
- package/lib/dialog/index.d.ts +286 -0
- package/lib/directives/clickoutside.d.ts +3 -0
- package/lib/directives/directives.js +2 -0
- package/lib/directives/directives.js.LICENSE.txt +14 -0
- package/lib/directives/index.d.ts +3 -0
- package/lib/directives/tooltips.d.ts +17 -0
- package/lib/divider/divider.css +38 -0
- package/lib/divider/divider.d.ts +48 -0
- package/lib/divider/divider.js +1 -0
- package/lib/divider/divider.less +53 -0
- package/lib/divider/divider.variable.css +131 -0
- package/lib/divider/index.d.ts +142 -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 +43 -0
- package/lib/dropdown/dropdown.d.ts +61 -0
- package/lib/dropdown/dropdown.js +1 -0
- package/lib/dropdown/dropdown.less +54 -0
- package/lib/dropdown/dropdown.variable.css +136 -0
- package/lib/dropdown/index.d.ts +192 -0
- package/lib/exception/exception.d.ts +11 -9
- package/lib/exception/exception.js +1 -0
- package/lib/exception/exception.variable.css +32 -0
- package/lib/exception/index.d.ts +96 -0
- package/lib/fixed-navbar/fixed-navbar.d.ts +15 -9
- package/lib/fixed-navbar/fixed-navbar.js +1 -0
- package/lib/fixed-navbar/fixed-navbar.variable.css +32 -0
- package/lib/fixed-navbar/index.d.ts +112 -0
- package/lib/form/common.d.ts +3 -0
- package/lib/form/form-item.d.ts +145 -0
- package/lib/form/form.css +48 -0
- package/lib/form/form.d.ts +64 -0
- package/lib/form/form.js +1 -0
- package/lib/form/form.less +63 -0
- package/lib/form/form.variable.css +48 -0
- package/lib/form/index.d.ts +246 -0
- package/lib/form/type.d.ts +21 -0
- package/lib/form/validator.d.ts +8 -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.d.ts +4 -0
- package/lib/icon/angle-up.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/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.d.ts +4 -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/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.d.ts +4 -0
- package/lib/icon/down-small.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/eye.d.ts +4 -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/help-document-fill.d.ts +4 -0
- package/lib/icon/help-document-fill.js +1 -0
- package/lib/icon/help-fill.d.ts +4 -0
- package/lib/icon/help-fill.js +1 -0
- package/lib/icon/help.d.ts +4 -0
- package/lib/icon/help.js +1 -0
- package/lib/icon/icon.d.ts +12 -0
- package/lib/icon/icon.js +1 -0
- package/lib/icon/index.d.ts +53 -0
- package/lib/icon/info-line.d.ts +4 -0
- 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/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/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.d.ts +4 -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.d.ts +4 -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/tree-application-shape.d.ts +4 -0
- package/lib/icon/tree-application-shape.js +1 -0
- package/lib/icon/unvisible.d.ts +4 -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/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 +4 -0
- package/lib/input/index.d.ts +443 -0
- package/lib/input/input.css +61 -3
- package/lib/input/input.d.ts +116 -47
- package/lib/input/input.js +1 -0
- package/lib/input/input.less +79 -7
- package/lib/input/input.variable.css +94 -3
- package/lib/link/index.d.ts +164 -0
- package/lib/link/link.d.ts +25 -13
- package/lib/link/link.js +1 -0
- package/lib/link/link.variable.css +32 -0
- package/lib/loading/index.d.ts +164 -0
- package/lib/loading/loading.css +109 -73
- package/lib/loading/loading.d.ts +61 -20
- package/lib/loading/loading.js +1 -0
- package/lib/loading/loading.less +74 -58
- package/lib/loading/loading.variable.css +141 -73
- package/lib/menu/index.d.ts +188 -0
- package/lib/menu/menu-group.d.ts +14 -0
- package/lib/menu/menu-item.d.ts +16 -0
- package/lib/menu/menu.css +182 -0
- package/lib/menu/menu.d.ts +64 -0
- package/lib/menu/menu.js +1 -0
- package/lib/menu/menu.less +180 -0
- package/lib/menu/menu.variable.css +275 -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 +96 -0
- package/lib/menu/utils.d.ts +41 -0
- package/lib/message/index.d.ts +2 -0
- package/lib/message/message.css +53 -0
- package/lib/message/message.js +1 -0
- package/lib/message/message.less +61 -0
- package/lib/message/message.variable.css +146 -0
- package/lib/message/messageConstructor.d.ts +73 -0
- package/lib/modal/index.d.ts +214 -0
- package/lib/modal/modal.d.ts +33 -15
- package/lib/modal/modal.js +1 -0
- package/lib/modal/props.mixin.d.ts +5 -1
- package/lib/navigation/index.d.ts +2 -0
- package/lib/navigation/navigation-title.d.ts +25 -0
- package/lib/navigation/navigation.css +184 -0
- package/lib/navigation/navigation.d.ts +111 -0
- package/lib/navigation/navigation.js +1 -0
- package/lib/navigation/navigation.less +210 -0
- package/lib/navigation/navigation.variable.css +277 -0
- package/lib/notify/index.d.ts +2 -0
- package/lib/notify/notify.css +49 -0
- package/lib/notify/notify.js +1 -0
- package/lib/notify/notify.less +58 -0
- package/lib/notify/notify.variable.css +142 -0
- package/lib/notify/notifyConstructor.d.ts +91 -0
- package/lib/pagination/index.d.ts +395 -0
- package/lib/pagination/pagination.css +179 -0
- package/lib/pagination/pagination.d.ts +220 -0
- package/lib/pagination/pagination.js +1 -0
- package/lib/pagination/pagination.less +201 -0
- package/lib/pagination/pagination.variable.css +272 -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 +287 -0
- package/lib/popover/popover.css +23 -14
- package/lib/popover/popover.d.ts +75 -46
- package/lib/popover/popover.js +1 -0
- package/lib/popover/popover.less +57 -46
- package/lib/popover/popover.variable.css +55 -14
- package/lib/popover/props.d.ts +77 -0
- package/lib/preset.d.ts +7 -0
- package/lib/process/index.d.ts +205 -0
- package/lib/process/process.css +138 -0
- package/lib/process/process.d.ts +131 -0
- package/lib/process/process.js +1 -0
- package/lib/process/process.less +178 -0
- package/lib/process/process.variable.css +231 -0
- package/lib/progress/index.d.ts +398 -0
- package/lib/progress/progress.css +0 -3
- package/lib/progress/progress.d.ts +88 -35
- package/lib/progress/progress.js +1 -0
- package/lib/progress/progress.less +0 -4
- package/lib/progress/progress.variable.css +32 -3
- package/lib/radio/common.d.ts +1 -1
- package/lib/radio/index.d.ts +277 -0
- package/lib/radio/radio-button.d.ts +24 -16
- package/lib/radio/radio-group.d.ts +11 -10
- package/lib/radio/radio.css +8 -2
- package/lib/radio/radio.d.ts +23 -13
- package/lib/radio/radio.js +1 -0
- package/lib/radio/radio.less +9 -2
- package/lib/radio/radio.variable.css +40 -2
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.d.ts +113 -0
- package/lib/rate/rate.d.ts +13 -10
- package/lib/rate/rate.js +1 -0
- package/lib/rate/star.d.ts +33 -16
- package/lib/resize-layout/index.d.ts +336 -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.js +1 -0
- package/lib/resize-layout/resize-layout.less +233 -0
- package/lib/resize-layout/resize-layout.variable.css +282 -0
- package/lib/select/common.d.ts +23 -17
- package/lib/select/index.d.ts +1347 -0
- package/lib/select/option.d.ts +12 -19
- package/lib/select/optionGroup.d.ts +54 -0
- package/lib/select/select.css +243 -17
- package/lib/select/select.d.ts +268 -155
- package/lib/select/select.js +1 -0
- package/lib/select/select.less +245 -46
- package/lib/select/select.variable.css +275 -17
- package/lib/select/type.d.ts +31 -0
- package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
- package/lib/shared/index.d.ts +52 -0
- package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +32 -3
- package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +8 -1
- package/lib/shared/{bk-popover.d.ts → popover.d.ts} +57 -6
- package/lib/shared/shared.js +1 -0
- package/lib/shared/utils.d.ts +6 -0
- package/lib/shared/vue-types.d.ts +8 -7
- package/lib/shared/z-index-manager.d.ts +6 -1
- package/lib/sideslider/index.d.ts +206 -0
- package/lib/sideslider/sideslider.d.ts +39 -18
- package/lib/sideslider/sideslider.js +1 -0
- package/lib/sideslider/sideslider.variable.css +32 -0
- package/{changelog.config.js → lib/slider/index.d.ts} +2 -8
- 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.js +1 -0
- package/lib/slider/slider.less +179 -0
- package/lib/slider/slider.variable.css +242 -0
- package/lib/steps/index.d.ts +250 -0
- package/lib/steps/steps.css +288 -0
- package/lib/steps/steps.d.ts +161 -0
- package/lib/steps/steps.js +1 -0
- package/lib/steps/steps.less +324 -0
- package/lib/steps/steps.variable.css +381 -0
- package/lib/styles/index.d.ts +47 -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 +52 -2
- package/lib/swiper/index.d.ts +181 -0
- package/lib/swiper/swiper.css +91 -0
- package/lib/swiper/swiper.d.ts +65 -0
- package/lib/swiper/swiper.js +1 -0
- package/lib/swiper/swiper.less +107 -0
- package/lib/swiper/swiper.variable.css +91 -0
- package/lib/switcher/index.d.ts +286 -0
- package/lib/switcher/switcher.css +149 -135
- package/lib/switcher/switcher.d.ts +48 -32
- package/lib/switcher/switcher.js +1 -0
- package/lib/switcher/switcher.less +210 -154
- package/lib/switcher/switcher.variable.css +181 -135
- package/lib/tab/index.d.ts +443 -0
- package/lib/tab/props.d.ts +191 -0
- package/lib/tab/tab-nav.d.ts +165 -0
- package/lib/tab/tab-panel.d.ts +73 -0
- package/lib/tab/tab.css +148 -0
- package/lib/tab/tab.d.ts +140 -0
- package/lib/tab/tab.js +1 -0
- package/lib/tab/tab.less +222 -0
- package/lib/tab/tab.variable.css +241 -0
- package/lib/table/const.d.ts +4 -0
- package/lib/table/index.d.ts +302 -0
- package/lib/table/props.d.ts +117 -0
- package/lib/table/render.d.ts +83 -0
- package/lib/table/table.css +91 -0
- package/lib/table/table.d.ts +88 -36
- package/lib/table/table.js +1 -0
- package/lib/table/table.less +111 -1
- package/lib/table/table.variable.css +123 -0
- package/lib/table/utils.d.ts +69 -0
- package/lib/tag/index.d.ts +229 -0
- package/lib/tag/tag.css +97 -0
- package/lib/tag/tag.d.ts +83 -53
- package/lib/tag/tag.js +1 -0
- package/lib/tag/tag.less +110 -2
- package/lib/tag/tag.variable.css +129 -0
- package/lib/tag-input/common.d.ts +24 -0
- package/lib/tag-input/index.d.ts +2 -0
- package/lib/tag-input/list-tag-render.d.ts +47 -0
- package/lib/tag-input/tag-input.css +208 -0
- package/lib/tag-input/tag-input.d.ts +374 -0
- package/lib/tag-input/tag-input.js +1 -0
- package/lib/tag-input/tag-input.less +250 -0
- package/lib/tag-input/tag-input.variable.css +301 -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/timeline.css +235 -0
- package/lib/timeline/timeline.d.ts +81 -0
- package/lib/timeline/timeline.js +1 -0
- package/lib/timeline/timeline.less +239 -0
- package/lib/timeline/timeline.variable.css +328 -0
- package/lib/transfer/index.d.ts +351 -0
- package/lib/transfer/transfer.css +158 -0
- package/lib/transfer/transfer.d.ts +185 -0
- package/lib/transfer/transfer.js +1 -0
- package/lib/transfer/transfer.less +171 -0
- package/lib/transfer/transfer.variable.css +251 -0
- package/lib/tree/index.d.ts +287 -0
- package/lib/tree/props.d.ts +89 -0
- package/lib/tree/tree.css +50 -0
- package/lib/tree/tree.d.ts +111 -0
- package/lib/tree/tree.js +1 -0
- package/lib/tree/tree.less +63 -0
- package/lib/tree/tree.variable.css +143 -0
- package/lib/tree/util.d.ts +70 -0
- package/lib/use-form.d.ts +3 -0
- package/lib/use-message.d.ts +2 -0
- package/lib/virtual-render/index.d.ts +556 -0
- package/lib/virtual-render/props.d.ts +157 -0
- package/lib/virtual-render/v-virtual-render.d.ts +7 -0
- package/lib/virtual-render/virtual-render.css +33 -0
- package/lib/virtual-render/virtual-render.d.ts +244 -0
- package/lib/virtual-render/virtual-render.js +1 -0
- package/lib/virtual-render/virtual-render.less +43 -0
- package/lib/virtual-render/virtual-render.variable.css +33 -0
- package/package.json +74 -74
- package/dist/bkui-vue.cjs.js +0 -4887
- package/dist/bkui-vue.esm.js +0 -4883
- package/dist/bkui-vue.umd.js +0 -4890
- package/lib/alert/index.js +0 -1
- package/lib/animate-number/index.js +0 -1
- package/lib/backtop/index.js +0 -1
- package/lib/badge/index.js +0 -1
- package/lib/breadcrumb/index.js +0 -1
- package/lib/button/index.js +0 -1
- package/lib/card/index.js +0 -1
- package/lib/checkbox/index.js +0 -1
- package/lib/checkbox-group/index.js +0 -1
- package/lib/collapse/index.js +0 -1
- package/lib/dialog/index.js +0 -1
- package/lib/directives/index.js +0 -15
- package/lib/exception/index.js +0 -1
- package/lib/fixed-navbar/index.js +0 -1
- package/lib/icon/index.js +0 -15
- package/lib/input/index.js +0 -15
- package/lib/link/index.js +0 -1
- package/lib/loading/index.js +0 -1
- package/lib/modal/index.js +0 -1
- package/lib/popover/index.js +0 -1
- package/lib/progress/index.js +0 -1
- package/lib/radio/index.js +0 -1
- package/lib/radio-button/index.js +0 -1
- package/lib/radio-group/index.js +0 -1
- package/lib/rate/index.js +0 -1
- package/lib/select/index.js +0 -1
- package/lib/shared/index.js +0 -1
- package/lib/sideslider/index.js +0 -1
- package/lib/styles/index.js +0 -1
- package/lib/switcher/index.js +0 -1
- package/lib/table/common.d.ts +0 -3
- package/lib/table/index.js +0 -1
- package/lib/table/table-layout.d.ts +0 -14
- package/lib/table/type.d.ts +0 -12
- package/lib/tag/index.js +0 -1
@@ -0,0 +1,22 @@
|
|
1
|
+
import type { ComputedPlacement } from '@popperjs/core';
|
2
|
+
import type { DatePickerProps } from './props';
|
3
|
+
export declare type DatePickerPlacementType = ComputedPlacement;
|
4
|
+
export declare type DatePickerTypeType = 'year' | 'month' | 'date' | 'daterange' | 'datetime' | 'datetimerange';
|
5
|
+
export declare type TimePickerTypeType = 'time' | 'timerange';
|
6
|
+
export declare type PickerTypeType = DatePickerTypeType | TimePickerTypeType;
|
7
|
+
export interface IDatePickerShortcut {
|
8
|
+
text: string;
|
9
|
+
value?: () => Date[];
|
10
|
+
onClick?: (picker: any) => void;
|
11
|
+
}
|
12
|
+
export declare type DatePickerShortcutsType = IDatePickerShortcut[];
|
13
|
+
declare type ValueType = Date | string | number;
|
14
|
+
export declare type DatePickerValueType = ValueType | [ValueType, ValueType];
|
15
|
+
export declare type DisableDateType = (date: number | Date) => boolean;
|
16
|
+
export interface IDatePickerCtx {
|
17
|
+
props: DatePickerProps;
|
18
|
+
focus: () => void;
|
19
|
+
}
|
20
|
+
export declare type DatePickerPanelType = 'DateRangePanel' | 'DatePanel' | 'RangeTimePickerPanel' | 'TimePickerPanel';
|
21
|
+
export declare type SelectionModeType = 'year' | 'month' | 'date' | 'time';
|
22
|
+
export {};
|
@@ -0,0 +1,111 @@
|
|
1
|
+
import type { ExtractPropTypes } from 'vue';
|
2
|
+
import { PropType } from 'vue';
|
3
|
+
import type { DatePickerShortcutsType, DatePickerValueType, DisableDateType, PickerTypeType } from './interface';
|
4
|
+
export declare const datePickerProps: {
|
5
|
+
readonly type: {
|
6
|
+
readonly type: PropType<PickerTypeType>;
|
7
|
+
readonly default: "date";
|
8
|
+
readonly validator: (value: any) => boolean;
|
9
|
+
};
|
10
|
+
readonly extPopoverCls: {
|
11
|
+
readonly type: StringConstructor;
|
12
|
+
readonly default: "";
|
13
|
+
};
|
14
|
+
readonly format: StringConstructor;
|
15
|
+
readonly readonly: {
|
16
|
+
readonly type: BooleanConstructor;
|
17
|
+
readonly default: false;
|
18
|
+
};
|
19
|
+
readonly disabled: {
|
20
|
+
readonly type: BooleanConstructor;
|
21
|
+
readonly default: false;
|
22
|
+
};
|
23
|
+
readonly editable: {
|
24
|
+
readonly type: BooleanConstructor;
|
25
|
+
readonly default: true;
|
26
|
+
};
|
27
|
+
readonly clearable: {
|
28
|
+
readonly type: BooleanConstructor;
|
29
|
+
readonly default: true;
|
30
|
+
};
|
31
|
+
readonly open: {
|
32
|
+
readonly type: BooleanConstructor;
|
33
|
+
readonly default: any;
|
34
|
+
};
|
35
|
+
readonly multiple: {
|
36
|
+
readonly type: BooleanConstructor;
|
37
|
+
readonly default: false;
|
38
|
+
};
|
39
|
+
readonly timePickerOptions: {
|
40
|
+
readonly type: PropType<Record<string, any>>;
|
41
|
+
readonly default: () => {};
|
42
|
+
};
|
43
|
+
readonly splitPanels: {
|
44
|
+
readonly type: BooleanConstructor;
|
45
|
+
readonly default: true;
|
46
|
+
};
|
47
|
+
readonly startDate: DateConstructor;
|
48
|
+
readonly placeholder: {
|
49
|
+
readonly type: StringConstructor;
|
50
|
+
readonly default: "";
|
51
|
+
};
|
52
|
+
readonly placement: {
|
53
|
+
readonly type: PropType<import("@popperjs/core").ComputedPlacement>;
|
54
|
+
readonly default: "bottom-start";
|
55
|
+
readonly validator: (value: any) => boolean;
|
56
|
+
};
|
57
|
+
readonly transfer: {
|
58
|
+
readonly type: BooleanConstructor;
|
59
|
+
readonly default: false;
|
60
|
+
};
|
61
|
+
readonly appendToBody: {
|
62
|
+
readonly type: BooleanConstructor;
|
63
|
+
readonly default: false;
|
64
|
+
};
|
65
|
+
readonly shortcuts: {
|
66
|
+
readonly type: PropType<DatePickerShortcutsType>;
|
67
|
+
readonly default: () => any[];
|
68
|
+
};
|
69
|
+
readonly shortcutClose: {
|
70
|
+
readonly type: BooleanConstructor;
|
71
|
+
readonly default: false;
|
72
|
+
};
|
73
|
+
readonly modelValue: {
|
74
|
+
readonly type: PropType<DatePickerValueType>;
|
75
|
+
};
|
76
|
+
readonly options: {
|
77
|
+
readonly type: ObjectConstructor;
|
78
|
+
readonly default: () => {};
|
79
|
+
};
|
80
|
+
readonly fontSize: {
|
81
|
+
readonly type: PropType<"large" | "normal" | "medium">;
|
82
|
+
readonly default: "normal";
|
83
|
+
};
|
84
|
+
readonly upToNow: {
|
85
|
+
readonly type: BooleanConstructor;
|
86
|
+
readonly default: false;
|
87
|
+
};
|
88
|
+
readonly useShortcutText: {
|
89
|
+
readonly type: BooleanConstructor;
|
90
|
+
readonly default: false;
|
91
|
+
};
|
92
|
+
readonly shortcutSelectedIndex: {
|
93
|
+
readonly type: NumberConstructor;
|
94
|
+
readonly default: -1;
|
95
|
+
};
|
96
|
+
readonly footerSlotCls: {
|
97
|
+
readonly type: StringConstructor;
|
98
|
+
readonly default: "";
|
99
|
+
};
|
100
|
+
readonly allowCrossDay: {
|
101
|
+
readonly type: BooleanConstructor;
|
102
|
+
readonly default: false;
|
103
|
+
};
|
104
|
+
readonly behavior: {
|
105
|
+
readonly type: PropType<"normal" | "simplicity">;
|
106
|
+
readonly default: "normal";
|
107
|
+
readonly validator: (v: any) => boolean;
|
108
|
+
};
|
109
|
+
readonly disableDate: PropType<DisableDateType>;
|
110
|
+
};
|
111
|
+
export declare type DatePickerProps = Readonly<ExtractPropTypes<typeof datePickerProps>>;
|
@@ -0,0 +1,97 @@
|
|
1
|
+
import type { InjectionKey } from 'vue';
|
2
|
+
import type { IDatePickerCtx, PickerTypeType } from './interface';
|
3
|
+
export declare const RANGE_SEPARATOR = " - ";
|
4
|
+
export declare const typeValueResolver: {
|
5
|
+
default: {
|
6
|
+
formatter(value: any): string;
|
7
|
+
parser(text: any): any;
|
8
|
+
};
|
9
|
+
date: {
|
10
|
+
formatter: (value: any, format: any) => string;
|
11
|
+
parser: (text: any, format: any) => any;
|
12
|
+
};
|
13
|
+
datetime: {
|
14
|
+
formatter: (value: any, format: any) => string;
|
15
|
+
parser: (text: any, format: any) => any;
|
16
|
+
};
|
17
|
+
daterange: {
|
18
|
+
formatter: (value: any, format: any) => string;
|
19
|
+
parser: (text: any, format: any) => any[];
|
20
|
+
};
|
21
|
+
datetimerange: {
|
22
|
+
formatter: (value: any, format: any) => string;
|
23
|
+
parser: (text: any, format: any) => any[];
|
24
|
+
};
|
25
|
+
timerange: {
|
26
|
+
formatter: (value: any, format: any) => string;
|
27
|
+
parser: (text: any, format: any) => any[];
|
28
|
+
};
|
29
|
+
time: {
|
30
|
+
formatter: (value: any, format: any) => string;
|
31
|
+
parser: (text: any, format: any) => any;
|
32
|
+
};
|
33
|
+
month: {
|
34
|
+
formatter: (value: any, format: any) => string;
|
35
|
+
parser: (text: any, format: any) => any;
|
36
|
+
};
|
37
|
+
year: {
|
38
|
+
formatter: (value: any, format: any) => string;
|
39
|
+
parser: (text: any, format: any) => any;
|
40
|
+
};
|
41
|
+
multiple: {
|
42
|
+
formatter(value: any, format: any): any;
|
43
|
+
parser(v: any, format: any): any;
|
44
|
+
};
|
45
|
+
number: {
|
46
|
+
formatter(value: any): string;
|
47
|
+
parser(text: any): number;
|
48
|
+
};
|
49
|
+
};
|
50
|
+
/**
|
51
|
+
* 设置时间,当天的零点时间
|
52
|
+
*
|
53
|
+
* @return {Date} date 对象
|
54
|
+
*/
|
55
|
+
export declare const initTime: () => Date;
|
56
|
+
/**
|
57
|
+
* 判断数组中的每个值是否为空
|
58
|
+
* 0, '', null, undefined 均判断为空
|
59
|
+
*
|
60
|
+
* @param {Array} arr 待判断的数组
|
61
|
+
*
|
62
|
+
* @return {boolean} 判断结果
|
63
|
+
*/
|
64
|
+
export declare const isAllEmptyArr: (arr: any[]) => boolean;
|
65
|
+
export declare const keyValueMapper: {
|
66
|
+
40: string;
|
67
|
+
39: string;
|
68
|
+
38: string;
|
69
|
+
37: string;
|
70
|
+
};
|
71
|
+
export declare const mapPossibleValues: (key: string, horizontal: number, vertical: number) => number;
|
72
|
+
export declare const extractTime: (date: Date) => number[];
|
73
|
+
export declare const DEFAULT_FORMATS: Record<PickerTypeType, string>;
|
74
|
+
export declare const parseDate: (val: any, type: any, multiple: any, format: any) => any;
|
75
|
+
export declare const formatDate: (val: any, type: any, multiple: any, format: any) => any;
|
76
|
+
export declare const datePickerKey: InjectionKey<IDatePickerCtx>;
|
77
|
+
/**
|
78
|
+
* 寻找子组件
|
79
|
+
*
|
80
|
+
* @param {Object} context 上下文
|
81
|
+
* @param {string} componentName 要找的组件类型名称
|
82
|
+
*
|
83
|
+
* @return {Array} 组件集合
|
84
|
+
*/
|
85
|
+
export declare function findChildComponents(context: any, componentName: any): any;
|
86
|
+
export declare function iconBtnCls(direction: any, type?: string): string[];
|
87
|
+
export declare const getDayCountOfMonth: (year: any, month: any) => number;
|
88
|
+
export declare const siblingMonth: (src: any, diff: any) => Date;
|
89
|
+
export declare const formatDateLabels: (locale: any, format: any, date: any) => {
|
90
|
+
separator: any;
|
91
|
+
labels: {
|
92
|
+
label: any;
|
93
|
+
type: string;
|
94
|
+
}[];
|
95
|
+
};
|
96
|
+
export declare const clearHours: (time: any) => number;
|
97
|
+
export declare const isInRange: (time: any, a: any, b: any) => boolean;
|
package/lib/dialog/dialog.d.ts
CHANGED
@@ -7,7 +7,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
7
7
|
type: StringConstructor;
|
8
8
|
default: string;
|
9
9
|
};
|
10
|
-
|
10
|
+
title: {
|
11
11
|
type: StringConstructor;
|
12
12
|
default: string;
|
13
13
|
};
|
@@ -34,47 +34,77 @@ declare const _default: import("vue").DefineComponent<{
|
|
34
34
|
default: string;
|
35
35
|
};
|
36
36
|
customClass: {
|
37
|
-
type: (
|
37
|
+
type: (ArrayConstructor | StringConstructor)[];
|
38
38
|
default: string;
|
39
39
|
};
|
40
40
|
scrollable: {
|
41
41
|
type: BooleanConstructor;
|
42
42
|
default: boolean;
|
43
43
|
};
|
44
|
+
showMask: {
|
45
|
+
type: BooleanConstructor;
|
46
|
+
default: boolean;
|
47
|
+
};
|
44
48
|
}, unknown, unknown, {}, {
|
45
49
|
handleClose(): void;
|
46
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "update:isShow")[], "closed" | "update:isShow", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
47
|
-
confirmText
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
}
|
50
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "update:isShow")[], "closed" | "update:isShow", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
51
|
+
confirmText: {
|
52
|
+
type: StringConstructor;
|
53
|
+
default: string;
|
54
|
+
};
|
55
|
+
cancelText: {
|
56
|
+
type: StringConstructor;
|
57
|
+
default: string;
|
58
|
+
};
|
59
|
+
title: {
|
60
|
+
type: StringConstructor;
|
61
|
+
default: string;
|
62
|
+
};
|
63
|
+
headerAlign: {
|
64
|
+
type: StringConstructor;
|
65
|
+
default: string;
|
66
|
+
validator: (value: string) => boolean;
|
67
|
+
};
|
68
|
+
footerAlign: {
|
69
|
+
type: StringConstructor;
|
70
|
+
default: string;
|
71
|
+
validator: (value: string) => boolean;
|
72
|
+
};
|
73
|
+
isShow: {
|
74
|
+
type: BooleanConstructor;
|
75
|
+
default: boolean;
|
76
|
+
};
|
77
|
+
width: {
|
78
|
+
type: (NumberConstructor | StringConstructor)[];
|
79
|
+
default: string;
|
80
|
+
};
|
81
|
+
height: {
|
82
|
+
type: (NumberConstructor | StringConstructor)[];
|
83
|
+
default: string;
|
84
|
+
};
|
85
|
+
customClass: {
|
86
|
+
type: (ArrayConstructor | StringConstructor)[];
|
87
|
+
default: string;
|
88
|
+
};
|
89
|
+
scrollable: {
|
90
|
+
type: BooleanConstructor;
|
91
|
+
default: boolean;
|
92
|
+
};
|
93
|
+
showMask: {
|
94
|
+
type: BooleanConstructor;
|
95
|
+
default: boolean;
|
96
|
+
};
|
97
|
+
}>> & {
|
69
98
|
onClosed?: (...args: any[]) => any;
|
70
99
|
"onUpdate:isShow"?: (...args: any[]) => any;
|
71
100
|
}, {
|
72
101
|
width: string | number;
|
73
102
|
height: string | number;
|
103
|
+
title: string;
|
104
|
+
showMask: boolean;
|
74
105
|
isShow: boolean;
|
75
|
-
customClass: string;
|
106
|
+
customClass: string | unknown[];
|
76
107
|
scrollable: boolean;
|
77
|
-
Title: string;
|
78
108
|
confirmText: string;
|
79
109
|
cancelText: string;
|
80
110
|
headerAlign: string;
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../button"),require("../modal"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../button","../modal"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("../button"),require("../modal")):t(e["../shared"],e.vue,e["../button"],e["../modal"]);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t,o,r)=>(()=>{"use strict";var n={4976:e=>{e.exports=o},8014:e=>{e.exports=r},4212:t=>{t.exports=e},748:e=>{e.exports=t}},l={};function a(e){var t=l[e];if(void 0!==t)return t.exports;var o=l[e]={exports:{}};return n[e](o,o.exports,a),o.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var o in t)a.o(t,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{a.r(i),a.d(i,{default:()=>c});var e=a(4212),t=a(748),o=a(4976),r=a.n(o),n=a(8014),l=a.n(n);const d=(0,t.defineComponent)({name:"Dialog",components:{BkModal:l(),BkButton:r()},props:Object.assign(Object.assign({},n.propsMixin),{confirmText:{type:String,default:"确定"},cancelText:{type:String,default:"取消"},title:{type:String,default:"Title"},headerAlign:{type:String,default:"left",validator:function(e){var t=["left","center","right"];return!(t.indexOf(e)<0&&(console.error("headerAlign property is not valid: '".concat(e,"',【").concat(t.join(" | "),"】")),1))}},footerAlign:{type:String,default:"right",validator:function(e){var t=["left","center","right"];return!(t.indexOf(e)<0&&(console.error("footerAlign property is not valid: '".concat(e,"',【").concat(t.join(" | "),"】")),1))}}}),emits:["closed","update:isShow"],methods:{handleClose:function(){this.$emit("update:isShow",!1),this.$emit("closed")}},render:function(){var e,o=this,n={header:function(){var e,r,n;return(0,t.createVNode)(t.Fragment,null,[(0,t.createVNode)("div",{class:"bk-dialog-tool"},[(0,t.createVNode)("span",{class:"bk-dialog-close",onClick:o.handleClose},[(0,t.createTextVNode)("+")])]),(0,t.createVNode)("div",{class:"bk-dialog-header"},[(0,t.createVNode)("span",{class:"bk-dialog-title",style:"text-align: ".concat(o.headerAlign)},[null!==(n=null===(r=(e=o.$slots).header)||void 0===r?void 0:r.call(e))&&void 0!==n?n:o.title])])])},default:function(){var e,t,r;return null!==(r=null===(t=(e=o.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==r?r:"default"},footer:function(){var e,n,l;return(0,t.createVNode)("div",{class:"bk-dialog-footer",style:"text-align: ".concat(o.footerAlign)},[null!==(l=null===(n=(e=o.$slots).footer)||void 0===n?void 0:n.call(e))&&void 0!==l?l:(0,t.createVNode)(t.Fragment,null,[(0,t.createVNode)(r(),{onClick:o.handleClose,theme:"primary"},{default:function(){return[o.confirmText]}}),(0,t.createVNode)(r(),{onClick:o.handleClose},{default:function(){return[o.cancelText]}})])])}},a="bk-dialog-wrapper ".concat(this.scrollable?"scroll-able":"");return(0,t.createVNode)(l(),(0,t.mergeProps)(this.$props,{class:a}),"function"==typeof(e=n)||"[object Object]"===Object.prototype.toString.call(e)&&!(0,t.isVNode)(e)?n:{default:function(){return[n]}})}}),c=(0,e.withInstall)(d)})(),i})()));
|
@@ -0,0 +1,286 @@
|
|
1
|
+
declare const BkDialog: {
|
2
|
+
new (...args: any[]): {
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
4
|
+
$data: {};
|
5
|
+
$props: Partial<{
|
6
|
+
width: string | number;
|
7
|
+
height: string | number;
|
8
|
+
title: string;
|
9
|
+
showMask: boolean;
|
10
|
+
isShow: boolean;
|
11
|
+
customClass: string | unknown[];
|
12
|
+
scrollable: boolean;
|
13
|
+
confirmText: string;
|
14
|
+
cancelText: string;
|
15
|
+
headerAlign: string;
|
16
|
+
footerAlign: string;
|
17
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
18
|
+
confirmText: {
|
19
|
+
type: StringConstructor;
|
20
|
+
default: string;
|
21
|
+
};
|
22
|
+
cancelText: {
|
23
|
+
type: StringConstructor;
|
24
|
+
default: string;
|
25
|
+
};
|
26
|
+
title: {
|
27
|
+
type: StringConstructor;
|
28
|
+
default: string;
|
29
|
+
};
|
30
|
+
headerAlign: {
|
31
|
+
type: StringConstructor;
|
32
|
+
default: string;
|
33
|
+
validator: (value: string) => boolean;
|
34
|
+
};
|
35
|
+
footerAlign: {
|
36
|
+
type: StringConstructor;
|
37
|
+
default: string;
|
38
|
+
validator: (value: string) => boolean;
|
39
|
+
};
|
40
|
+
isShow: {
|
41
|
+
type: BooleanConstructor;
|
42
|
+
default: boolean;
|
43
|
+
};
|
44
|
+
width: {
|
45
|
+
type: (NumberConstructor | StringConstructor)[];
|
46
|
+
default: string;
|
47
|
+
};
|
48
|
+
height: {
|
49
|
+
type: (NumberConstructor | StringConstructor)[];
|
50
|
+
default: string;
|
51
|
+
};
|
52
|
+
customClass: {
|
53
|
+
type: (ArrayConstructor | StringConstructor)[];
|
54
|
+
default: string;
|
55
|
+
};
|
56
|
+
scrollable: {
|
57
|
+
type: BooleanConstructor;
|
58
|
+
default: boolean;
|
59
|
+
};
|
60
|
+
showMask: {
|
61
|
+
type: BooleanConstructor;
|
62
|
+
default: boolean;
|
63
|
+
};
|
64
|
+
}>> & {
|
65
|
+
onClosed?: (...args: any[]) => any;
|
66
|
+
"onUpdate:isShow"?: (...args: any[]) => any;
|
67
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "width" | "height" | "title" | "showMask" | "isShow" | "customClass" | "scrollable" | "confirmText" | "cancelText" | "headerAlign" | "footerAlign">;
|
68
|
+
$attrs: {
|
69
|
+
[x: string]: unknown;
|
70
|
+
};
|
71
|
+
$refs: {
|
72
|
+
[x: string]: unknown;
|
73
|
+
};
|
74
|
+
$slots: Readonly<{
|
75
|
+
[name: string]: import("vue").Slot;
|
76
|
+
}>;
|
77
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
78
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
79
|
+
$emit: (event: "closed" | "update:isShow", ...args: any[]) => void;
|
80
|
+
$el: any;
|
81
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
82
|
+
confirmText: {
|
83
|
+
type: StringConstructor;
|
84
|
+
default: string;
|
85
|
+
};
|
86
|
+
cancelText: {
|
87
|
+
type: StringConstructor;
|
88
|
+
default: string;
|
89
|
+
};
|
90
|
+
title: {
|
91
|
+
type: StringConstructor;
|
92
|
+
default: string;
|
93
|
+
};
|
94
|
+
headerAlign: {
|
95
|
+
type: StringConstructor;
|
96
|
+
default: string;
|
97
|
+
validator: (value: string) => boolean;
|
98
|
+
};
|
99
|
+
footerAlign: {
|
100
|
+
type: StringConstructor;
|
101
|
+
default: string;
|
102
|
+
validator: (value: string) => boolean;
|
103
|
+
};
|
104
|
+
isShow: {
|
105
|
+
type: BooleanConstructor;
|
106
|
+
default: boolean;
|
107
|
+
};
|
108
|
+
width: {
|
109
|
+
type: (NumberConstructor | StringConstructor)[];
|
110
|
+
default: string;
|
111
|
+
};
|
112
|
+
height: {
|
113
|
+
type: (NumberConstructor | StringConstructor)[];
|
114
|
+
default: string;
|
115
|
+
};
|
116
|
+
customClass: {
|
117
|
+
type: (ArrayConstructor | StringConstructor)[];
|
118
|
+
default: string;
|
119
|
+
};
|
120
|
+
scrollable: {
|
121
|
+
type: BooleanConstructor;
|
122
|
+
default: boolean;
|
123
|
+
};
|
124
|
+
showMask: {
|
125
|
+
type: BooleanConstructor;
|
126
|
+
default: boolean;
|
127
|
+
};
|
128
|
+
}>> & {
|
129
|
+
onClosed?: (...args: any[]) => any;
|
130
|
+
"onUpdate:isShow"?: (...args: any[]) => any;
|
131
|
+
}, unknown, unknown, {}, {
|
132
|
+
handleClose(): void;
|
133
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "update:isShow")[], string, {
|
134
|
+
width: string | number;
|
135
|
+
height: string | number;
|
136
|
+
title: string;
|
137
|
+
showMask: boolean;
|
138
|
+
isShow: boolean;
|
139
|
+
customClass: string | unknown[];
|
140
|
+
scrollable: boolean;
|
141
|
+
confirmText: string;
|
142
|
+
cancelText: string;
|
143
|
+
headerAlign: string;
|
144
|
+
footerAlign: string;
|
145
|
+
}> & {
|
146
|
+
beforeCreate?: (() => void) | (() => void)[];
|
147
|
+
created?: (() => void) | (() => void)[];
|
148
|
+
beforeMount?: (() => void) | (() => void)[];
|
149
|
+
mounted?: (() => void) | (() => void)[];
|
150
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
151
|
+
updated?: (() => void) | (() => void)[];
|
152
|
+
activated?: (() => void) | (() => void)[];
|
153
|
+
deactivated?: (() => void) | (() => void)[];
|
154
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
155
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
156
|
+
destroyed?: (() => void) | (() => void)[];
|
157
|
+
unmounted?: (() => void) | (() => void)[];
|
158
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
159
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
160
|
+
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)[];
|
161
|
+
};
|
162
|
+
$forceUpdate: () => void;
|
163
|
+
$nextTick: typeof import("vue").nextTick;
|
164
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
165
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
166
|
+
confirmText: {
|
167
|
+
type: StringConstructor;
|
168
|
+
default: string;
|
169
|
+
};
|
170
|
+
cancelText: {
|
171
|
+
type: StringConstructor;
|
172
|
+
default: string;
|
173
|
+
};
|
174
|
+
title: {
|
175
|
+
type: StringConstructor;
|
176
|
+
default: string;
|
177
|
+
};
|
178
|
+
headerAlign: {
|
179
|
+
type: StringConstructor;
|
180
|
+
default: string;
|
181
|
+
validator: (value: string) => boolean;
|
182
|
+
};
|
183
|
+
footerAlign: {
|
184
|
+
type: StringConstructor;
|
185
|
+
default: string;
|
186
|
+
validator: (value: string) => boolean;
|
187
|
+
};
|
188
|
+
isShow: {
|
189
|
+
type: BooleanConstructor;
|
190
|
+
default: boolean;
|
191
|
+
};
|
192
|
+
width: {
|
193
|
+
type: (NumberConstructor | StringConstructor)[];
|
194
|
+
default: string;
|
195
|
+
};
|
196
|
+
height: {
|
197
|
+
type: (NumberConstructor | StringConstructor)[];
|
198
|
+
default: string;
|
199
|
+
};
|
200
|
+
customClass: {
|
201
|
+
type: (ArrayConstructor | StringConstructor)[];
|
202
|
+
default: string;
|
203
|
+
};
|
204
|
+
scrollable: {
|
205
|
+
type: BooleanConstructor;
|
206
|
+
default: boolean;
|
207
|
+
};
|
208
|
+
showMask: {
|
209
|
+
type: BooleanConstructor;
|
210
|
+
default: boolean;
|
211
|
+
};
|
212
|
+
}>> & {
|
213
|
+
onClosed?: (...args: any[]) => any;
|
214
|
+
"onUpdate:isShow"?: (...args: any[]) => any;
|
215
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & {} & {
|
216
|
+
handleClose(): void;
|
217
|
+
} & import("vue").ComponentCustomProperties;
|
218
|
+
__isFragment?: never;
|
219
|
+
__isTeleport?: never;
|
220
|
+
__isSuspense?: never;
|
221
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
222
|
+
confirmText: {
|
223
|
+
type: StringConstructor;
|
224
|
+
default: string;
|
225
|
+
};
|
226
|
+
cancelText: {
|
227
|
+
type: StringConstructor;
|
228
|
+
default: string;
|
229
|
+
};
|
230
|
+
title: {
|
231
|
+
type: StringConstructor;
|
232
|
+
default: string;
|
233
|
+
};
|
234
|
+
headerAlign: {
|
235
|
+
type: StringConstructor;
|
236
|
+
default: string;
|
237
|
+
validator: (value: string) => boolean;
|
238
|
+
};
|
239
|
+
footerAlign: {
|
240
|
+
type: StringConstructor;
|
241
|
+
default: string;
|
242
|
+
validator: (value: string) => boolean;
|
243
|
+
};
|
244
|
+
isShow: {
|
245
|
+
type: BooleanConstructor;
|
246
|
+
default: boolean;
|
247
|
+
};
|
248
|
+
width: {
|
249
|
+
type: (NumberConstructor | StringConstructor)[];
|
250
|
+
default: string;
|
251
|
+
};
|
252
|
+
height: {
|
253
|
+
type: (NumberConstructor | StringConstructor)[];
|
254
|
+
default: string;
|
255
|
+
};
|
256
|
+
customClass: {
|
257
|
+
type: (ArrayConstructor | StringConstructor)[];
|
258
|
+
default: string;
|
259
|
+
};
|
260
|
+
scrollable: {
|
261
|
+
type: BooleanConstructor;
|
262
|
+
default: boolean;
|
263
|
+
};
|
264
|
+
showMask: {
|
265
|
+
type: BooleanConstructor;
|
266
|
+
default: boolean;
|
267
|
+
};
|
268
|
+
}>> & {
|
269
|
+
onClosed?: (...args: any[]) => any;
|
270
|
+
"onUpdate:isShow"?: (...args: any[]) => any;
|
271
|
+
}, unknown, unknown, {}, {
|
272
|
+
handleClose(): void;
|
273
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "update:isShow")[], "closed" | "update:isShow", {
|
274
|
+
width: string | number;
|
275
|
+
height: string | number;
|
276
|
+
title: string;
|
277
|
+
showMask: boolean;
|
278
|
+
isShow: boolean;
|
279
|
+
customClass: string | unknown[];
|
280
|
+
scrollable: boolean;
|
281
|
+
confirmText: string;
|
282
|
+
cancelText: string;
|
283
|
+
headerAlign: string;
|
284
|
+
footerAlign: string;
|
285
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
286
|
+
export default BkDialog;
|
@@ -0,0 +1,2 @@
|
|
1
|
+
/*! For license information please see directives.js.LICENSE.txt */
|
2
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/typeof"),require("../shared"),require("@popperjs/core"),require("../styles/mixins/popper.less"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/toConsumableArray","@babel/runtime/helpers/typeof","../shared","@popperjs/core","../styles/mixins/popper.less"],t);else{var n="object"==typeof exports?t(require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/typeof"),require("../shared"),require("@popperjs/core"),require("../styles/mixins/popper.less")):t(e["@babel/runtime/helpers/toConsumableArray"],e["@babel/runtime/helpers/typeof"],e["../shared"],e["@popperjs/core"],e["../styles/mixins/popper.less"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n,r,o)=>(()=>{var i={2439:(e,t,n)=>{e.exports=n(2527)},7430:e=>{"use strict";var t=!("undefined"==typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=n},6377:e=>{var t,n,r,o,i,a,s,u,c,d,l,p,f,m,v,b=!1;function h(){if(!b){b=!0;var e=navigator.userAgent,h=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),y=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(p=/\b(iPhone|iP[ao]d)/.exec(e),f=/\b(iP[ao]d)/.exec(e),d=/Android/i.exec(e),m=/FBAN\/\w+;/i.exec(e),v=/Mobile/i.exec(e),l=!!/Win64/.exec(e),h){(t=h[1]?parseFloat(h[1]):h[5]?parseFloat(h[5]):NaN)&&document&&document.documentMode&&(t=document.documentMode);var w=/(?:Trident\/(\d+.\d+))/.exec(e);a=w?parseFloat(w[1])+4:t,n=h[2]?parseFloat(h[2]):NaN,r=h[3]?parseFloat(h[3]):NaN,(o=h[4]?parseFloat(h[4]):NaN)?(h=/(?:Chrome\/(\d+\.\d+))/.exec(e),i=h&&h[1]?parseFloat(h[1]):NaN):i=NaN}else t=n=r=i=o=NaN;if(y){if(y[1]){var x=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);s=!x||parseFloat(x[1].replace("_","."))}else s=!1;u=!!y[2],c=!!y[3]}else s=u=c=!1}}var y={ie:function(){return h()||t},ieCompatibilityMode:function(){return h()||a>t},ie64:function(){return y.ie()&&l},firefox:function(){return h()||n},opera:function(){return h()||r},webkit:function(){return h()||o},safari:function(){return y.webkit()},chrome:function(){return h()||i},windows:function(){return h()||u},osx:function(){return h()||s},linux:function(){return h()||c},iphone:function(){return h()||p},mobile:function(){return h()||p||f||d||v},nativeApp:function(){return h()||m},android:function(){return h()||d},ipad:function(){return h()||f}};e.exports=y},3541:(e,t,n)=>{"use strict";var r,o=n(7430);o.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=function(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,i=n in document;if(!i){var a=document.createElement("div");a.setAttribute(n,"return;"),i="function"==typeof a[n]}return!i&&r&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}},2527:(e,t,n)=>{"use strict";var r=n(6377),o=n(3541);function i(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,o=10*n,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=40,o*=40):(r*=800,o*=800)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}i.getEventType=function(){return r.firefox()?"DOMMouseScroll":o("wheel")?"wheel":"mousewheel"},e.exports=i},4212:e=>{"use strict";e.exports=n},7018:e=>{"use strict";e.exports=o},642:t=>{"use strict";t.exports=e},8541:e=>{"use strict";e.exports=t},5798:e=>{"use strict";e.exports=r}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return i[e](n,n.exports,s),n.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return(()=>{"use strict";s.r(u),s.d(u,{bkTooltips:()=>y,clickoutside:()=>l,mousewheel:()=>r});var e=s(2439),t=s.n(e),n="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1;const r={beforeMount:function(e,r){var o,i;console.error(e,r),o=e,i=r.value,(null==o?void 0:o.addEventListener)&&o.addEventListener(n?"DOMMouseScroll":"mousewheel",(function(e){var n=t()(e);null==i||i.apply(this,[e,n])}))}};function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a,c=new Map;function d(e,t){var n,r=[];return Array.isArray(t.arg)?r=t.arg:(n=t.arg,"undefined"!=typeof Element&&n instanceof Element&&r.push(t.arg)),function(n,o){var i=t.instance.popperRef,a=n.target,s=null==o?void 0:o.target,u=!t||!t.instance,c=!a||!s,d=e.contains(a)||e.contains(s),l=e===a,p=r.length&&r.some((function(e){return null==e?void 0:e.contains(a)}))||r.length&&r.includes(s),f=i&&(i.contains(a)||i.contains(s));u||c||d||l||p||f||t.value(n,o)}}document.addEventListener("mousedown",(function(e){return a=e})),document.addEventListener("mouseup",(function(e){var t,n=o(c.values());try{for(n.s();!(t=n.n()).done;){var r,i=o(t.value);try{for(i.s();!(r=i.n()).done;)(0,r.value.documentHandler)(e,a)}catch(e){i.e(e)}finally{i.f()}}}catch(e){n.e(e)}finally{n.f()}}));const l={beforeMount:function(e,t){c.has(e)||c.set(e,[]),c.get(e).push({documentHandler:d(e,t),bindingFn:t.value})},updated:function(e,t){c.has(e)||c.set(e,[]);var n=c.get(e),r=n.findIndex((function(e){return e.bindingFn===t.oldValue})),o={documentHandler:d(e,t),bindingFn:t.value};r>=0?n.splice(r,1,o):n.push(o)},unmounted:function(e){c.delete(e)}};var p=s(642),f=s.n(p),m=s(8541),v=s.n(m),b=s(4212),h=s(5798);s(7018);const y={mounted:function(e,t){var n={arrow:!0,disabled:!1,trigger:"hover",theme:"dark",content:"",showOnInit:!1,placement:"top",distance:8,onShow:function(){},onHide:function(){}};"object"===v()(t.value)?Object.assign(n,t.value):n.content=t.value;var r=n.disabled,o=n.arrow,i=n.theme;if(!r){var a=function(e,t,n){var r=b.bkZIndexManager.getPopperIndex(),o=document.createElement("div");if(o.className="bk-popper ".concat(n?"light":"dark"),o.innerText=e,o.style.zIndex=String(r),t){var i=function(){var e=document.createElement("div");return e.className="bk-popper-arrow",e.setAttribute("data-popper-arrow",""),e}();o.appendChild(i)}return document.body.appendChild(o),o}(n.content,o,"light"===i);!function(e,t,n){var r=n.placement,o=n.distance,i=n.trigger,a=n.showOnInit,s=n.onShow,u=n.onHide,c=(0,h.createPopper)(e,t,{placement:r,modifiers:[{name:"offset",options:{offset:[0,o]}}]});if("hover"===i){["mouseenter","focus"].forEach((function(t){e.addEventListener(t,d)})),["mouseleave","blur"].forEach((function(t){e.addEventListener(t,l)}))}else"click"===i&&document.body.addEventListener("click",(function(n){e.contains(n.target)&&!t.hasAttribute("data-show")?d():t.hasAttribute("data-show")&&l()}));function d(){t.setAttribute("data-show",""),s(),c.setOptions((function(e){return Object.assign(Object.assign({},e),{modifiers:[].concat(f()(e.modifiers),[{name:"eventListeners",enabled:!0}])})})),c.update()}function l(){t.removeAttribute("data-show"),u(),c.setOptions((function(e){return Object.assign(Object.assign({},e),{modifiers:[].concat(f()(e.modifiers),[{name:"eventListeners",enabled:!1}])})}))}a&&d()}(e,a,n)}}}})(),u})()));
|