bkui-vue 0.0.1-beta.6 → 0.0.1-beta.60
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 +21606 -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.variable.css +33 -0
- package/lib/alert/index.d.ts +180 -0
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +12 -7
- package/lib/animate-number/index.d.ts +97 -0
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.d.ts +27 -13
- package/lib/backtop/backtop.variable.css +33 -0
- package/lib/backtop/index.d.ts +166 -0
- 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 +38 -5
- package/lib/badge/index.d.ts +267 -0
- 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 +51 -1
- package/lib/breadcrumb/index.d.ts +194 -0
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button-group.d.ts +3 -5
- package/lib/button/button.css +41 -21
- package/lib/button/button.d.ts +66 -30
- package/lib/button/button.less +44 -28
- package/lib/button/button.variable.css +74 -21
- package/lib/button/index.d.ts +237 -0
- 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 +86 -1
- package/lib/card/index.d.ts +283 -0
- package/lib/card/index.js +1 -1
- package/lib/checkbox/checkbox-group.d.ts +13 -9
- package/lib/checkbox/checkbox.css +12 -0
- package/lib/checkbox/checkbox.d.ts +33 -30
- package/lib/checkbox/checkbox.less +17 -0
- package/lib/checkbox/checkbox.variable.css +45 -0
- package/lib/checkbox/common.d.ts +3 -3
- package/lib/checkbox/index.d.ts +253 -0
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +9 -12
- 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 +280 -0
- package/lib/code-diff/index.d.ts +154 -0
- package/lib/code-diff/index.js +1 -0
- package/lib/collapse/collapse.css +8 -0
- package/lib/collapse/collapse.d.ts +50 -18
- 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/collapse/index.js +1 -1
- package/lib/components.d.ts +42 -0
- 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 +142 -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 +407 -0
- package/lib/date-picker/date-picker.d.ts +294 -0
- package/lib/date-picker/date-picker.less +526 -0
- package/lib/date-picker/date-picker.variable.css +501 -0
- package/lib/date-picker/fecha.d.ts +6 -0
- package/lib/date-picker/index.d.ts +713 -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 +111 -0
- package/lib/date-picker/utils.d.ts +97 -0
- package/lib/dialog/dialog.css +40 -0
- package/lib/dialog/dialog.d.ts +226 -51
- package/lib/dialog/dialog.less +16 -0
- package/lib/dialog/dialog.variable.css +40 -0
- package/lib/dialog/index.d.ts +608 -0
- package/lib/dialog/index.js +1 -1
- package/lib/directives/clickoutside.d.ts +3 -0
- package/lib/directives/index.d.ts +3 -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 +132 -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 +43 -0
- package/lib/dropdown/dropdown.d.ts +63 -0
- package/lib/dropdown/dropdown.less +54 -0
- package/lib/dropdown/dropdown.variable.css +137 -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 +33 -0
- package/lib/exception/index.d.ts +96 -0
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/fixed-navbar.d.ts +15 -9
- package/lib/fixed-navbar/fixed-navbar.variable.css +33 -0
- package/lib/fixed-navbar/index.d.ts +112 -0
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/common.d.ts +3 -0
- package/lib/form/compose-form-item.d.ts +16 -0
- package/lib/form/form-item.d.ts +145 -0
- package/lib/form/form.css +113 -0
- package/lib/form/form.d.ts +64 -0
- package/lib/form/form.less +141 -0
- package/lib/form/form.variable.css +207 -0
- package/lib/form/index.d.ts +262 -0
- package/lib/form/index.js +1 -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-line.d.ts +4 -0
- package/lib/icon/close-line.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/data-shape.d.ts +4 -0
- package/lib/icon/data-shape.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/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/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/funnel.d.ts +4 -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/index.d.ts +57 -0
- package/lib/icon/index.js +1 -15
- 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 +3 -0
- package/lib/index.js +1 -0
- package/lib/input/index.d.ts +451 -0
- package/lib/input/index.js +1 -15
- package/lib/input/input.css +75 -4
- package/lib/input/input.d.ts +118 -43
- package/lib/input/input.less +86 -8
- package/lib/input/input.variable.css +109 -4
- package/lib/link/index.d.ts +164 -0
- package/lib/link/index.js +1 -1
- package/lib/link/link.d.ts +25 -13
- package/lib/link/link.variable.css +33 -0
- package/lib/loading/index.d.ts +172 -0
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +118 -73
- package/lib/loading/loading.d.ts +67 -20
- package/lib/loading/loading.less +75 -58
- package/lib/loading/loading.variable.css +151 -73
- package/lib/menu/index.d.ts +188 -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 +64 -0
- package/lib/menu/menu.less +180 -0
- package/lib/menu/menu.variable.css +284 -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 +97 -0
- package/lib/menu/utils.d.ts +41 -0
- package/lib/message/index.d.ts +2 -0
- package/lib/message/index.js +1 -0
- package/lib/message/message.css +62 -0
- package/lib/message/message.less +72 -0
- package/lib/message/message.variable.css +156 -0
- package/lib/message/messageConstructor.d.ts +106 -0
- package/lib/modal/index.d.ts +374 -0
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +20 -0
- package/lib/modal/modal.d.ts +108 -27
- package/lib/modal/modal.less +27 -0
- package/lib/modal/modal.variable.css +20 -0
- package/lib/modal/props.mixin.d.ts +44 -11
- package/lib/navigation/index.d.ts +2 -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 +111 -0
- package/lib/navigation/navigation.less +210 -0
- package/lib/navigation/navigation.variable.css +278 -0
- package/lib/notify/index.d.ts +2 -0
- package/lib/notify/index.js +1 -0
- package/lib/notify/notify.css +49 -0
- package/lib/notify/notify.less +58 -0
- package/lib/notify/notify.variable.css +143 -0
- package/lib/notify/notifyConstructor.d.ts +91 -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 +273 -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 +318 -0
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +23 -14
- package/lib/popover/popover.d.ts +90 -46
- package/lib/popover/popover.less +57 -46
- package/lib/popover/popover.variable.css +56 -14
- package/lib/popover/props.d.ts +89 -0
- package/lib/preset.d.ts +7 -0
- 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 +232 -0
- package/lib/progress/index.d.ts +398 -0
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +8 -3
- package/lib/progress/progress.d.ts +88 -35
- package/lib/progress/progress.less +0 -4
- package/lib/progress/progress.variable.css +41 -3
- package/lib/radio/common.d.ts +5 -5
- package/lib/radio/index.d.ts +278 -0
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +29 -20
- package/lib/radio/radio-group.d.ts +11 -10
- package/lib/radio/radio.css +8 -2
- package/lib/radio/radio.d.ts +27 -17
- package/lib/radio/radio.less +9 -2
- package/lib/radio/radio.variable.css +41 -2
- package/lib/radio/type.d.ts +10 -5
- package/lib/rate/index.d.ts +113 -0
- 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 +283 -0
- package/lib/select/common.d.ts +23 -17
- package/lib/select/index.d.ts +1377 -0
- package/lib/select/index.js +1 -1
- package/lib/select/option.d.ts +12 -19
- package/lib/select/optionGroup.d.ts +54 -0
- package/lib/select/select.css +248 -17
- package/lib/select/select.d.ts +282 -156
- package/lib/select/select.less +251 -46
- package/lib/select/select.variable.css +281 -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/index.js +1 -1
- 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/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 +337 -0
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.d.ts +114 -30
- package/lib/sideslider/sideslider.variable.css +33 -0
- package/lib/slider/index.d.ts +27 -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 +243 -0
- package/lib/steps/index.d.ts +250 -0
- package/lib/steps/index.js +1 -0
- package/lib/steps/steps.css +288 -0
- package/lib/steps/steps.d.ts +161 -0
- package/lib/steps/steps.less +324 -0
- package/lib/steps/steps.variable.css +382 -0
- package/lib/styles/index.d.ts +48 -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 +53 -2
- 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 +286 -0
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +157 -135
- package/lib/switcher/switcher.d.ts +48 -32
- package/lib/switcher/switcher.less +211 -153
- package/lib/switcher/switcher.variable.css +190 -135
- package/lib/tab/index.d.ts +443 -0
- package/lib/tab/index.js +1 -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.less +222 -0
- package/lib/tab/tab.variable.css +242 -0
- package/lib/table/const.d.ts +4 -0
- package/lib/table/index.d.ts +359 -0
- 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 +162 -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 +116 -0
- package/lib/table/plugins/settings.css +110 -0
- package/lib/table/plugins/settings.less +136 -0
- package/lib/table/plugins/settings.variable.css +204 -0
- package/lib/table/props.d.ts +184 -0
- package/lib/table/render.d.ts +120 -0
- package/lib/table/table.css +321 -0
- package/lib/table/table.d.ts +114 -36
- package/lib/table/table.less +160 -1
- package/lib/table/table.variable.css +354 -0
- package/lib/table/use-common.d.ts +20 -0
- package/lib/table/utils.d.ts +83 -0
- package/lib/tag/index.d.ts +229 -0
- 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 +130 -0
- package/lib/tag-input/common.d.ts +24 -0
- package/lib/tag-input/index.d.ts +2 -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 +208 -0
- package/lib/tag-input/tag-input.d.ts +374 -0
- package/lib/tag-input/tag-input.less +250 -0
- package/lib/tag-input/tag-input.variable.css +302 -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 +239 -0
- package/lib/timeline/timeline.variable.css +329 -0
- package/lib/transfer/index.d.ts +351 -0
- package/lib/transfer/index.js +1 -0
- package/lib/transfer/transfer.css +158 -0
- package/lib/transfer/transfer.d.ts +185 -0
- package/lib/transfer/transfer.less +171 -0
- package/lib/transfer/transfer.variable.css +252 -0
- package/lib/tree/index.d.ts +266 -0
- package/lib/tree/index.js +1 -0
- package/lib/tree/props.d.ts +99 -0
- package/lib/tree/tree.css +50 -0
- package/lib/tree/tree.d.ts +110 -0
- package/lib/tree/tree.less +63 -0
- package/lib/tree/tree.variable.css +144 -0
- package/lib/tree/use-async.d.ts +5 -0
- package/lib/tree/use-node-action.d.ts +6 -0
- package/lib/tree/use-node-attribute.d.ts +13 -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/index.js +1 -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.less +43 -0
- package/lib/virtual-render/virtual-render.variable.css +33 -0
- package/package.json +108 -79
- 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/checkbox-group/index.js +0 -1
- package/lib/radio-button/index.js +0 -1
- package/lib/radio-group/index.js +0 -1
- 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,608 @@
|
|
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
|
+
draggable: boolean;
|
9
|
+
title: string;
|
10
|
+
showMask: boolean;
|
11
|
+
theme: string;
|
12
|
+
size: string;
|
13
|
+
dialogType: string;
|
14
|
+
isShow: boolean;
|
15
|
+
customClass: string | unknown[];
|
16
|
+
scrollable: boolean;
|
17
|
+
closeIcon: boolean;
|
18
|
+
escClose: boolean;
|
19
|
+
maskClose: boolean;
|
20
|
+
fullscreen: boolean;
|
21
|
+
headerAlign: string;
|
22
|
+
footerAlign: string;
|
23
|
+
confirmText: string;
|
24
|
+
cancelText: string;
|
25
|
+
prevText: string;
|
26
|
+
nextText: string;
|
27
|
+
current: number;
|
28
|
+
totalStep: number;
|
29
|
+
isLoading: boolean;
|
30
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
31
|
+
width: import("vue-types").VueTypeDef<string | number> & {
|
32
|
+
default: string | number;
|
33
|
+
};
|
34
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
35
|
+
default: string | number;
|
36
|
+
};
|
37
|
+
confirmText: import("vue-types").VueTypeValidableDef<string> & {
|
38
|
+
default: string;
|
39
|
+
} & {
|
40
|
+
default: string;
|
41
|
+
};
|
42
|
+
cancelText: import("vue-types").VueTypeValidableDef<string> & {
|
43
|
+
default: string;
|
44
|
+
} & {
|
45
|
+
default: string;
|
46
|
+
};
|
47
|
+
prevText: import("vue-types").VueTypeValidableDef<string> & {
|
48
|
+
default: string;
|
49
|
+
} & {
|
50
|
+
default: string;
|
51
|
+
};
|
52
|
+
nextText: import("vue-types").VueTypeValidableDef<string> & {
|
53
|
+
default: string;
|
54
|
+
} & {
|
55
|
+
default: string;
|
56
|
+
};
|
57
|
+
current: import("vue-types").VueTypeValidableDef<number> & {
|
58
|
+
default: number;
|
59
|
+
} & {
|
60
|
+
default: number;
|
61
|
+
};
|
62
|
+
totalStep: import("vue-types").VueTypeValidableDef<number> & {
|
63
|
+
default: number;
|
64
|
+
};
|
65
|
+
title: import("vue-types").VueTypeValidableDef<string> & {
|
66
|
+
default: string;
|
67
|
+
} & {
|
68
|
+
default: string;
|
69
|
+
};
|
70
|
+
headerAlign: import("vue-types").VueTypeDef<string> & {
|
71
|
+
default: string;
|
72
|
+
};
|
73
|
+
footerAlign: import("vue-types").VueTypeDef<string> & {
|
74
|
+
default: string;
|
75
|
+
};
|
76
|
+
theme: import("vue-types").VueTypeDef<string> & {
|
77
|
+
default: string;
|
78
|
+
};
|
79
|
+
isLoading: import("vue-types").VueTypeValidableDef<boolean> & {
|
80
|
+
default: boolean;
|
81
|
+
} & {
|
82
|
+
default: boolean;
|
83
|
+
};
|
84
|
+
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
85
|
+
default: boolean;
|
86
|
+
} & {
|
87
|
+
default: boolean;
|
88
|
+
};
|
89
|
+
customClass: (import("vue-types").VueTypeValidableDef<string> & {
|
90
|
+
default: string;
|
91
|
+
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
92
|
+
default: () => unknown[];
|
93
|
+
});
|
94
|
+
scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
|
95
|
+
default: boolean;
|
96
|
+
} & {
|
97
|
+
default: boolean;
|
98
|
+
};
|
99
|
+
showMask: import("vue-types").VueTypeValidableDef<boolean> & {
|
100
|
+
default: boolean;
|
101
|
+
} & {
|
102
|
+
default: boolean;
|
103
|
+
};
|
104
|
+
closeIcon: import("vue-types").VueTypeValidableDef<boolean> & {
|
105
|
+
default: boolean;
|
106
|
+
} & {
|
107
|
+
default: boolean;
|
108
|
+
};
|
109
|
+
escClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
110
|
+
default: boolean;
|
111
|
+
} & {
|
112
|
+
default: boolean;
|
113
|
+
};
|
114
|
+
maskClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
115
|
+
default: boolean;
|
116
|
+
} & {
|
117
|
+
default: boolean;
|
118
|
+
};
|
119
|
+
fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
|
120
|
+
default: boolean;
|
121
|
+
} & {
|
122
|
+
default: boolean;
|
123
|
+
};
|
124
|
+
size: import("vue-types").VueTypeDef<string> & {
|
125
|
+
default: string;
|
126
|
+
};
|
127
|
+
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
128
|
+
default: boolean;
|
129
|
+
} & {
|
130
|
+
default: boolean;
|
131
|
+
};
|
132
|
+
dialogType: import("vue-types").VueTypeDef<string> & {
|
133
|
+
default: string;
|
134
|
+
};
|
135
|
+
}>> & {
|
136
|
+
onPrev?: (...args: any[]) => any;
|
137
|
+
onNext?: (...args: any[]) => any;
|
138
|
+
onConfirm?: (...args: any[]) => any;
|
139
|
+
onClosed?: (...args: any[]) => any;
|
140
|
+
"onUpdate:isShow"?: (...args: any[]) => any;
|
141
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "width" | "height" | "draggable" | "title" | "showMask" | "theme" | "size" | "dialogType" | "isShow" | "customClass" | "scrollable" | "closeIcon" | "escClose" | "maskClose" | "fullscreen" | "headerAlign" | "footerAlign" | "confirmText" | "cancelText" | "prevText" | "nextText" | "current" | "totalStep" | "isLoading">;
|
142
|
+
$attrs: {
|
143
|
+
[x: string]: unknown;
|
144
|
+
};
|
145
|
+
$refs: {
|
146
|
+
[x: string]: unknown;
|
147
|
+
};
|
148
|
+
$slots: Readonly<{
|
149
|
+
[name: string]: import("vue").Slot;
|
150
|
+
}>;
|
151
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
152
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
153
|
+
$emit: (event: "prev" | "next" | "confirm" | "closed" | "update:isShow", ...args: any[]) => void;
|
154
|
+
$el: any;
|
155
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
156
|
+
width: import("vue-types").VueTypeDef<string | number> & {
|
157
|
+
default: string | number;
|
158
|
+
};
|
159
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
160
|
+
default: string | number;
|
161
|
+
};
|
162
|
+
confirmText: import("vue-types").VueTypeValidableDef<string> & {
|
163
|
+
default: string;
|
164
|
+
} & {
|
165
|
+
default: string;
|
166
|
+
};
|
167
|
+
cancelText: import("vue-types").VueTypeValidableDef<string> & {
|
168
|
+
default: string;
|
169
|
+
} & {
|
170
|
+
default: string;
|
171
|
+
};
|
172
|
+
prevText: import("vue-types").VueTypeValidableDef<string> & {
|
173
|
+
default: string;
|
174
|
+
} & {
|
175
|
+
default: string;
|
176
|
+
};
|
177
|
+
nextText: import("vue-types").VueTypeValidableDef<string> & {
|
178
|
+
default: string;
|
179
|
+
} & {
|
180
|
+
default: string;
|
181
|
+
};
|
182
|
+
current: import("vue-types").VueTypeValidableDef<number> & {
|
183
|
+
default: number;
|
184
|
+
} & {
|
185
|
+
default: number;
|
186
|
+
};
|
187
|
+
totalStep: import("vue-types").VueTypeValidableDef<number> & {
|
188
|
+
default: number;
|
189
|
+
};
|
190
|
+
title: import("vue-types").VueTypeValidableDef<string> & {
|
191
|
+
default: string;
|
192
|
+
} & {
|
193
|
+
default: string;
|
194
|
+
};
|
195
|
+
headerAlign: import("vue-types").VueTypeDef<string> & {
|
196
|
+
default: string;
|
197
|
+
};
|
198
|
+
footerAlign: import("vue-types").VueTypeDef<string> & {
|
199
|
+
default: string;
|
200
|
+
};
|
201
|
+
theme: import("vue-types").VueTypeDef<string> & {
|
202
|
+
default: string;
|
203
|
+
};
|
204
|
+
isLoading: import("vue-types").VueTypeValidableDef<boolean> & {
|
205
|
+
default: boolean;
|
206
|
+
} & {
|
207
|
+
default: boolean;
|
208
|
+
};
|
209
|
+
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
210
|
+
default: boolean;
|
211
|
+
} & {
|
212
|
+
default: boolean;
|
213
|
+
};
|
214
|
+
customClass: (import("vue-types").VueTypeValidableDef<string> & {
|
215
|
+
default: string;
|
216
|
+
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
217
|
+
default: () => unknown[];
|
218
|
+
});
|
219
|
+
scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
|
220
|
+
default: boolean;
|
221
|
+
} & {
|
222
|
+
default: boolean;
|
223
|
+
};
|
224
|
+
showMask: import("vue-types").VueTypeValidableDef<boolean> & {
|
225
|
+
default: boolean;
|
226
|
+
} & {
|
227
|
+
default: boolean;
|
228
|
+
};
|
229
|
+
closeIcon: import("vue-types").VueTypeValidableDef<boolean> & {
|
230
|
+
default: boolean;
|
231
|
+
} & {
|
232
|
+
default: boolean;
|
233
|
+
};
|
234
|
+
escClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
235
|
+
default: boolean;
|
236
|
+
} & {
|
237
|
+
default: boolean;
|
238
|
+
};
|
239
|
+
maskClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
240
|
+
default: boolean;
|
241
|
+
} & {
|
242
|
+
default: boolean;
|
243
|
+
};
|
244
|
+
fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
|
245
|
+
default: boolean;
|
246
|
+
} & {
|
247
|
+
default: boolean;
|
248
|
+
};
|
249
|
+
size: import("vue-types").VueTypeDef<string> & {
|
250
|
+
default: string;
|
251
|
+
};
|
252
|
+
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
253
|
+
default: boolean;
|
254
|
+
} & {
|
255
|
+
default: boolean;
|
256
|
+
};
|
257
|
+
dialogType: import("vue-types").VueTypeDef<string> & {
|
258
|
+
default: string;
|
259
|
+
};
|
260
|
+
}>> & {
|
261
|
+
onPrev?: (...args: any[]) => any;
|
262
|
+
onNext?: (...args: any[]) => any;
|
263
|
+
onConfirm?: (...args: any[]) => any;
|
264
|
+
onClosed?: (...args: any[]) => any;
|
265
|
+
"onUpdate:isShow"?: (...args: any[]) => any;
|
266
|
+
}, {
|
267
|
+
data: {
|
268
|
+
positionX: number;
|
269
|
+
positionY: number;
|
270
|
+
moveStyle: {
|
271
|
+
top: string;
|
272
|
+
left: string;
|
273
|
+
};
|
274
|
+
};
|
275
|
+
handleClose: () => void;
|
276
|
+
handleConfirm: () => void;
|
277
|
+
escCloseHandler: (e: any) => void;
|
278
|
+
moveHandler: (e: any) => boolean;
|
279
|
+
handlePrevStep: () => void;
|
280
|
+
handleNextStep: () => void;
|
281
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("prev" | "next" | "confirm" | "closed" | "update:isShow")[], string, {
|
282
|
+
width: string | number;
|
283
|
+
height: string | number;
|
284
|
+
draggable: boolean;
|
285
|
+
title: string;
|
286
|
+
showMask: boolean;
|
287
|
+
theme: string;
|
288
|
+
size: string;
|
289
|
+
dialogType: string;
|
290
|
+
isShow: boolean;
|
291
|
+
customClass: string | unknown[];
|
292
|
+
scrollable: boolean;
|
293
|
+
closeIcon: boolean;
|
294
|
+
escClose: boolean;
|
295
|
+
maskClose: boolean;
|
296
|
+
fullscreen: boolean;
|
297
|
+
headerAlign: string;
|
298
|
+
footerAlign: string;
|
299
|
+
confirmText: string;
|
300
|
+
cancelText: string;
|
301
|
+
prevText: string;
|
302
|
+
nextText: string;
|
303
|
+
current: number;
|
304
|
+
totalStep: number;
|
305
|
+
isLoading: boolean;
|
306
|
+
}> & {
|
307
|
+
beforeCreate?: (() => void) | (() => void)[];
|
308
|
+
created?: (() => void) | (() => void)[];
|
309
|
+
beforeMount?: (() => void) | (() => void)[];
|
310
|
+
mounted?: (() => void) | (() => void)[];
|
311
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
312
|
+
updated?: (() => void) | (() => void)[];
|
313
|
+
activated?: (() => void) | (() => void)[];
|
314
|
+
deactivated?: (() => void) | (() => void)[];
|
315
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
316
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
317
|
+
destroyed?: (() => void) | (() => void)[];
|
318
|
+
unmounted?: (() => void) | (() => void)[];
|
319
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
320
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
321
|
+
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)[];
|
322
|
+
};
|
323
|
+
$forceUpdate: () => void;
|
324
|
+
$nextTick: typeof import("vue").nextTick;
|
325
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
326
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
327
|
+
width: import("vue-types").VueTypeDef<string | number> & {
|
328
|
+
default: string | number;
|
329
|
+
};
|
330
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
331
|
+
default: string | number;
|
332
|
+
};
|
333
|
+
confirmText: import("vue-types").VueTypeValidableDef<string> & {
|
334
|
+
default: string;
|
335
|
+
} & {
|
336
|
+
default: string;
|
337
|
+
};
|
338
|
+
cancelText: import("vue-types").VueTypeValidableDef<string> & {
|
339
|
+
default: string;
|
340
|
+
} & {
|
341
|
+
default: string;
|
342
|
+
};
|
343
|
+
prevText: import("vue-types").VueTypeValidableDef<string> & {
|
344
|
+
default: string;
|
345
|
+
} & {
|
346
|
+
default: string;
|
347
|
+
};
|
348
|
+
nextText: import("vue-types").VueTypeValidableDef<string> & {
|
349
|
+
default: string;
|
350
|
+
} & {
|
351
|
+
default: string;
|
352
|
+
};
|
353
|
+
current: import("vue-types").VueTypeValidableDef<number> & {
|
354
|
+
default: number;
|
355
|
+
} & {
|
356
|
+
default: number;
|
357
|
+
};
|
358
|
+
totalStep: import("vue-types").VueTypeValidableDef<number> & {
|
359
|
+
default: number;
|
360
|
+
};
|
361
|
+
title: import("vue-types").VueTypeValidableDef<string> & {
|
362
|
+
default: string;
|
363
|
+
} & {
|
364
|
+
default: string;
|
365
|
+
};
|
366
|
+
headerAlign: import("vue-types").VueTypeDef<string> & {
|
367
|
+
default: string;
|
368
|
+
};
|
369
|
+
footerAlign: import("vue-types").VueTypeDef<string> & {
|
370
|
+
default: string;
|
371
|
+
};
|
372
|
+
theme: import("vue-types").VueTypeDef<string> & {
|
373
|
+
default: string;
|
374
|
+
};
|
375
|
+
isLoading: import("vue-types").VueTypeValidableDef<boolean> & {
|
376
|
+
default: boolean;
|
377
|
+
} & {
|
378
|
+
default: boolean;
|
379
|
+
};
|
380
|
+
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
381
|
+
default: boolean;
|
382
|
+
} & {
|
383
|
+
default: boolean;
|
384
|
+
};
|
385
|
+
customClass: (import("vue-types").VueTypeValidableDef<string> & {
|
386
|
+
default: string;
|
387
|
+
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
388
|
+
default: () => unknown[];
|
389
|
+
});
|
390
|
+
scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
|
391
|
+
default: boolean;
|
392
|
+
} & {
|
393
|
+
default: boolean;
|
394
|
+
};
|
395
|
+
showMask: import("vue-types").VueTypeValidableDef<boolean> & {
|
396
|
+
default: boolean;
|
397
|
+
} & {
|
398
|
+
default: boolean;
|
399
|
+
};
|
400
|
+
closeIcon: import("vue-types").VueTypeValidableDef<boolean> & {
|
401
|
+
default: boolean;
|
402
|
+
} & {
|
403
|
+
default: boolean;
|
404
|
+
};
|
405
|
+
escClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
406
|
+
default: boolean;
|
407
|
+
} & {
|
408
|
+
default: boolean;
|
409
|
+
};
|
410
|
+
maskClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
411
|
+
default: boolean;
|
412
|
+
} & {
|
413
|
+
default: boolean;
|
414
|
+
};
|
415
|
+
fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
|
416
|
+
default: boolean;
|
417
|
+
} & {
|
418
|
+
default: boolean;
|
419
|
+
};
|
420
|
+
size: import("vue-types").VueTypeDef<string> & {
|
421
|
+
default: string;
|
422
|
+
};
|
423
|
+
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
424
|
+
default: boolean;
|
425
|
+
} & {
|
426
|
+
default: boolean;
|
427
|
+
};
|
428
|
+
dialogType: import("vue-types").VueTypeDef<string> & {
|
429
|
+
default: string;
|
430
|
+
};
|
431
|
+
}>> & {
|
432
|
+
onPrev?: (...args: any[]) => any;
|
433
|
+
onNext?: (...args: any[]) => any;
|
434
|
+
onConfirm?: (...args: any[]) => any;
|
435
|
+
onClosed?: (...args: any[]) => any;
|
436
|
+
"onUpdate:isShow"?: (...args: any[]) => any;
|
437
|
+
} & import("vue").ShallowUnwrapRef<{
|
438
|
+
data: {
|
439
|
+
positionX: number;
|
440
|
+
positionY: number;
|
441
|
+
moveStyle: {
|
442
|
+
top: string;
|
443
|
+
left: string;
|
444
|
+
};
|
445
|
+
};
|
446
|
+
handleClose: () => void;
|
447
|
+
handleConfirm: () => void;
|
448
|
+
escCloseHandler: (e: any) => void;
|
449
|
+
moveHandler: (e: any) => boolean;
|
450
|
+
handlePrevStep: () => void;
|
451
|
+
handleNextStep: () => void;
|
452
|
+
}> & {} & {} & import("vue").ComponentCustomProperties;
|
453
|
+
__isFragment?: never;
|
454
|
+
__isTeleport?: never;
|
455
|
+
__isSuspense?: never;
|
456
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
457
|
+
width: import("vue-types").VueTypeDef<string | number> & {
|
458
|
+
default: string | number;
|
459
|
+
};
|
460
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
461
|
+
default: string | number;
|
462
|
+
};
|
463
|
+
confirmText: import("vue-types").VueTypeValidableDef<string> & {
|
464
|
+
default: string;
|
465
|
+
} & {
|
466
|
+
default: string;
|
467
|
+
};
|
468
|
+
cancelText: import("vue-types").VueTypeValidableDef<string> & {
|
469
|
+
default: string;
|
470
|
+
} & {
|
471
|
+
default: string;
|
472
|
+
};
|
473
|
+
prevText: import("vue-types").VueTypeValidableDef<string> & {
|
474
|
+
default: string;
|
475
|
+
} & {
|
476
|
+
default: string;
|
477
|
+
};
|
478
|
+
nextText: import("vue-types").VueTypeValidableDef<string> & {
|
479
|
+
default: string;
|
480
|
+
} & {
|
481
|
+
default: string;
|
482
|
+
};
|
483
|
+
current: import("vue-types").VueTypeValidableDef<number> & {
|
484
|
+
default: number;
|
485
|
+
} & {
|
486
|
+
default: number;
|
487
|
+
};
|
488
|
+
totalStep: import("vue-types").VueTypeValidableDef<number> & {
|
489
|
+
default: number;
|
490
|
+
};
|
491
|
+
title: import("vue-types").VueTypeValidableDef<string> & {
|
492
|
+
default: string;
|
493
|
+
} & {
|
494
|
+
default: string;
|
495
|
+
};
|
496
|
+
headerAlign: import("vue-types").VueTypeDef<string> & {
|
497
|
+
default: string;
|
498
|
+
};
|
499
|
+
footerAlign: import("vue-types").VueTypeDef<string> & {
|
500
|
+
default: string;
|
501
|
+
};
|
502
|
+
theme: import("vue-types").VueTypeDef<string> & {
|
503
|
+
default: string;
|
504
|
+
};
|
505
|
+
isLoading: import("vue-types").VueTypeValidableDef<boolean> & {
|
506
|
+
default: boolean;
|
507
|
+
} & {
|
508
|
+
default: boolean;
|
509
|
+
};
|
510
|
+
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
511
|
+
default: boolean;
|
512
|
+
} & {
|
513
|
+
default: boolean;
|
514
|
+
};
|
515
|
+
customClass: (import("vue-types").VueTypeValidableDef<string> & {
|
516
|
+
default: string;
|
517
|
+
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
518
|
+
default: () => unknown[];
|
519
|
+
});
|
520
|
+
scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
|
521
|
+
default: boolean;
|
522
|
+
} & {
|
523
|
+
default: boolean;
|
524
|
+
};
|
525
|
+
showMask: import("vue-types").VueTypeValidableDef<boolean> & {
|
526
|
+
default: boolean;
|
527
|
+
} & {
|
528
|
+
default: boolean;
|
529
|
+
};
|
530
|
+
closeIcon: import("vue-types").VueTypeValidableDef<boolean> & {
|
531
|
+
default: boolean;
|
532
|
+
} & {
|
533
|
+
default: boolean;
|
534
|
+
};
|
535
|
+
escClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
536
|
+
default: boolean;
|
537
|
+
} & {
|
538
|
+
default: boolean;
|
539
|
+
};
|
540
|
+
maskClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
541
|
+
default: boolean;
|
542
|
+
} & {
|
543
|
+
default: boolean;
|
544
|
+
};
|
545
|
+
fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
|
546
|
+
default: boolean;
|
547
|
+
} & {
|
548
|
+
default: boolean;
|
549
|
+
};
|
550
|
+
size: import("vue-types").VueTypeDef<string> & {
|
551
|
+
default: string;
|
552
|
+
};
|
553
|
+
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
554
|
+
default: boolean;
|
555
|
+
} & {
|
556
|
+
default: boolean;
|
557
|
+
};
|
558
|
+
dialogType: import("vue-types").VueTypeDef<string> & {
|
559
|
+
default: string;
|
560
|
+
};
|
561
|
+
}>> & {
|
562
|
+
onPrev?: (...args: any[]) => any;
|
563
|
+
onNext?: (...args: any[]) => any;
|
564
|
+
onConfirm?: (...args: any[]) => any;
|
565
|
+
onClosed?: (...args: any[]) => any;
|
566
|
+
"onUpdate:isShow"?: (...args: any[]) => any;
|
567
|
+
}, {
|
568
|
+
data: {
|
569
|
+
positionX: number;
|
570
|
+
positionY: number;
|
571
|
+
moveStyle: {
|
572
|
+
top: string;
|
573
|
+
left: string;
|
574
|
+
};
|
575
|
+
};
|
576
|
+
handleClose: () => void;
|
577
|
+
handleConfirm: () => void;
|
578
|
+
escCloseHandler: (e: any) => void;
|
579
|
+
moveHandler: (e: any) => boolean;
|
580
|
+
handlePrevStep: () => void;
|
581
|
+
handleNextStep: () => void;
|
582
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("prev" | "next" | "confirm" | "closed" | "update:isShow")[], "prev" | "next" | "confirm" | "closed" | "update:isShow", {
|
583
|
+
width: string | number;
|
584
|
+
height: string | number;
|
585
|
+
draggable: boolean;
|
586
|
+
title: string;
|
587
|
+
showMask: boolean;
|
588
|
+
theme: string;
|
589
|
+
size: string;
|
590
|
+
dialogType: string;
|
591
|
+
isShow: boolean;
|
592
|
+
customClass: string | unknown[];
|
593
|
+
scrollable: boolean;
|
594
|
+
closeIcon: boolean;
|
595
|
+
escClose: boolean;
|
596
|
+
maskClose: boolean;
|
597
|
+
fullscreen: boolean;
|
598
|
+
headerAlign: string;
|
599
|
+
footerAlign: string;
|
600
|
+
confirmText: string;
|
601
|
+
cancelText: string;
|
602
|
+
prevText: string;
|
603
|
+
nextText: string;
|
604
|
+
current: number;
|
605
|
+
totalStep: number;
|
606
|
+
isLoading: boolean;
|
607
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
608
|
+
export default BkDialog;
|
package/lib/dialog/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),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 n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,((e,t,o,n)=>(()=>{"use strict";var r={4976:e=>{e.exports=o},8014:e=>{e.exports=n},4212:t=>{t.exports=e},748:e=>{e.exports=t}},l={};function i(e){var t=l[e];if(void 0!==t)return t.exports;var o=l[e]={exports:{}};return r[e](o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},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 a={};return(()=>{i.r(a),i.d(a,{default:()=>c});var e=i(4212),t=i(748),o=i(4976),n=i.n(o),r=i(8014),l=i.n(r);const d=(0,t.defineComponent)({name:"Dialog",components:{BkModal:l(),BkButton:n()},props:Object.assign(Object.assign({},r.propsMixin),{width:e.PropTypes.oneOfType([String,Number]).def(""),height:e.PropTypes.oneOfType([String,Number]).def(""),confirmText:e.PropTypes.string.def("确定"),cancelText:e.PropTypes.string.def("取消"),prevText:e.PropTypes.string.def("上一步"),nextText:e.PropTypes.string.def("下一步"),current:e.PropTypes.number.def(1),totalStep:e.PropTypes.number,title:e.PropTypes.string.def("title"),headerAlign:e.PropTypes.commonType(["left","center","right"],"headerAlign").def("left"),footerAlign:e.PropTypes.commonType(["left","center","right"],"footerAlign").def("right"),theme:e.PropTypes.commonType(["primary","warning","success","danger"],"theme").def("primary"),isLoading:e.PropTypes.bool.def(!1)}),emits:["closed","update:isShow","confirm","prev","next"],setup:function(e,o){var n=o.emit,r=(0,t.reactive)({positionX:0,positionY:0,moveStyle:{top:"",left:""}});(0,t.onMounted)((function(){e.escClose&&addEventListener("keydown",i)})),(0,t.onBeforeUnmount)((function(){e.escClose&&removeEventListener("keydown",i)})),(0,t.watch)((function(){return e.isShow}),(function(e){e||(r.moveStyle={top:"50%",left:"50%"},r.positionX=0,r.positionY=0)}));var l=function(){n("update:isShow",!1),n("closed")},i=function(t){e.isShow&&e.closeIcon&&27===t.keyCode&&l()};return{data:r,handleClose:l,handleConfirm:function(){n("update:isShow",!1),n("confirm")},escCloseHandler:i,moveHandler:function(t){if(e.fullscreen)return!1;var o,n,l=t.target,i=t.currentTarget.parentNode.parentNode.offsetHeight,a=t.currentTarget.parentNode.parentNode.offsetWidth;0!==r.positionX&&0!==r.positionY?(o=t.clientX-r.positionX,n=t.clientY-r.positionY):(o=t.clientX-l.offsetLeft,n=t.clientY-l.offsetTop),document.onmousemove=function(e){var t=window.innerWidth-a,l=window.innerHeight-i,d=e.clientX-o,c=e.clientY-n;t/2-d<=0?d=t/2:t/2+d<=0&&(d=-t/2),l/2-c<=0?c=l/2:l/2+c<=0&&(c=-l/2),r.positionX=d,r.positionY=c,r.moveStyle.left="calc(50% + ".concat(d,"px)"),r.moveStyle.top="calc(50% + ".concat(c,"px)")},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}},handlePrevStep:function(){n("prev")},handleNextStep:function(){n("next")}}},render:function(){var e,o=this,r={header:function(){var e,n,r;return[(0,t.createVNode)("div",{class:["bk-dialog-tool",o.fullscreen||!o.draggable?"":"move",o.draggable?"content-dragging":""],onMousedown:o.moveHandler},[(0,t.createVNode)("span",{class:["bk-dialog-close",o.closeIcon?"":"close-icon"],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!==(r=null===(n=(e=o.$slots).header)||void 0===n?void 0:n.call(e))&&void 0!==r?r:o.title])])]},default:function(){var e,t,n;return null!==(n=null===(t=(e=o.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:"default"},footer:function(){var e,r,l,i,a,d,c,s,u;return(0,t.createVNode)("div",{class:"bk-dialog-footer",style:"text-align: ".concat(o.footerAlign)},["process"===o.dialogType?null!==(l=null===(r=(e=o.$slots).footer)||void 0===r?void 0:r.call(e))&&void 0!==l?l:(0,t.createVNode)(t.Fragment,null,[1===o.current?"":(0,t.createVNode)(n(),{style:"float: left;margin-right: 8px",onClick:o.handlePrevStep},{default:function(){return[o.prevText]}}),o.current===o.totalStep?"":(0,t.createVNode)(n(),{style:"float: left",onClick:o.handleNextStep},{default:function(){return[o.nextText]}}),o.current===o.totalStep?(0,t.createVNode)(n(),{onClick:o.handleConfirm,theme:o.theme,loading:o.isLoading},{default:function(){return[o.confirmText]}}):"",(0,t.createVNode)(n(),{style:"margin-left: 8px",onClick:o.handleClose},{default:function(){return[o.cancelText]}})]):"","operation"===o.dialogType?null!==(d=null===(a=(i=o.$slots).footer)||void 0===a?void 0:a.call(i))&&void 0!==d?d:(0,t.createVNode)(t.Fragment,null,[(0,t.createVNode)(n(),{onClick:o.handleConfirm,theme:o.theme,loading:o.isLoading},{default:function(){return[o.confirmText]}}),(0,t.createVNode)(n(),{style:"margin-left: 8px",onClick:o.handleClose},{default:function(){return[o.cancelText]}})]):"","confirm"===o.dialogType?null!==(u=null===(s=(c=o.$slots).footer)||void 0===s?void 0:s.call(c))&&void 0!==u?u:(0,t.createVNode)(t.Fragment,null,[(0,t.createVNode)(n(),{onClick:o.handleConfirm,theme:o.theme,loading:o.isLoading},{default:function(){return[o.confirmText]}})]):""])}},i="bk-dialog-wrapper ".concat(this.scrollable?"scroll-able":"");return(0,t.createVNode)(l(),(0,t.mergeProps)(this.$props,{class:[i,this.fullscreen?"bk-model-fullscreen":this.size],style:this.data.moveStyle}),"function"==typeof(e=r)||"[object Object]"===Object.prototype.toString.call(e)&&!(0,t.isVNode)(e)?r:{default:function(){return[r]}})}}),c=(0,e.withInstall)(d)})(),a})()));
|