bkui-vue 0.0.1-beta.3 → 0.0.1-beta.30
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/README_EN.md +93 -0
- package/dist/bkui-vue.cjs.js +18093 -2770
- package/dist/bkui-vue.esm.js +18049 -2775
- package/dist/bkui-vue.umd.js +18095 -2772
- package/dist/style.css +3958 -254
- package/lib/alert/alert.d.ts +24 -15
- package/lib/alert/alert.variable.css +32 -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 +32 -0
- package/lib/backtop/index.d.ts +166 -0
- package/lib/backtop/index.js +10 -1
- package/lib/badge/badge.d.ts +40 -19
- package/lib/badge/badge.variable.css +32 -0
- package/lib/badge/index.d.ts +217 -0
- package/lib/badge/index.js +1 -1
- 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.less +13 -2
- package/lib/breadcrumb/breadcrumb.variable.css +42 -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 +9 -0
- package/lib/button/button.d.ts +57 -28
- package/lib/button/button.less +23 -15
- package/lib/button/button.variable.css +41 -0
- package/lib/button/index.d.ts +226 -0
- package/lib/button/index.js +1 -1
- package/lib/card/card.d.ts +30 -15
- package/lib/card/card.variable.css +32 -0
- package/lib/card/index.d.ts +187 -0
- package/lib/card/index.js +1 -1
- package/lib/checkbox/checkbox-group.d.ts +13 -9
- package/lib/checkbox/checkbox.d.ts +31 -22
- 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/index.js +1 -1
- package/lib/checkbox/type.d.ts +7 -6
- package/lib/code-diff/code-diff.css +115 -0
- package/lib/code-diff/code-diff.d.ts +71 -0
- package/lib/code-diff/code-diff.less +145 -0
- package/lib/code-diff/code-diff.variable.css +208 -0
- package/lib/code-diff/index.d.ts +6 -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 +39 -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 +500 -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.d.ts +57 -27
- package/lib/dialog/index.d.ts +286 -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 +14 -14
- 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.less +53 -0
- package/lib/divider/divider.variable.css +131 -0
- package/lib/divider/index.d.ts +142 -0
- package/lib/divider/index.js +1 -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.less +54 -0
- package/lib/dropdown/dropdown.variable.css +136 -0
- package/lib/dropdown/index.d.ts +192 -0
- package/lib/dropdown/index.js +1 -0
- package/lib/exception/exception.d.ts +11 -9
- package/lib/exception/exception.variable.css +32 -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 +32 -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/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.less +63 -0
- package/lib/form/form.variable.css +48 -0
- package/lib/form/index.d.ts +246 -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 +15 -0
- package/lib/icon/angle-double-left-line.d.ts +4 -0
- package/lib/icon/angle-double-left-line.js +15 -0
- package/lib/icon/angle-double-left.d.ts +4 -0
- package/lib/icon/angle-double-left.js +15 -0
- package/lib/icon/angle-double-right-line.d.ts +4 -0
- package/lib/icon/angle-double-right-line.js +15 -0
- package/lib/icon/angle-double-right.d.ts +4 -0
- package/lib/icon/angle-double-right.js +15 -0
- package/lib/icon/angle-double-up-line.d.ts +4 -0
- package/lib/icon/angle-double-up-line.js +15 -0
- package/lib/icon/angle-down-fill.d.ts +4 -0
- package/lib/icon/angle-down-fill.js +15 -0
- package/lib/icon/angle-down-line.d.ts +4 -0
- package/lib/icon/angle-down-line.js +15 -0
- package/lib/icon/angle-down.d.ts +4 -0
- package/lib/icon/angle-down.js +15 -0
- package/lib/icon/angle-left.d.ts +4 -0
- package/lib/icon/angle-left.js +15 -0
- package/lib/icon/angle-right.d.ts +4 -0
- package/lib/icon/angle-right.js +15 -0
- package/lib/icon/angle-up-fill.d.ts +4 -0
- package/lib/icon/angle-up-fill.js +15 -0
- package/lib/icon/angle-up.d.ts +4 -0
- package/lib/icon/angle-up.js +15 -0
- package/lib/icon/arrows-left.d.ts +4 -0
- package/lib/icon/arrows-left.js +15 -0
- package/lib/icon/arrows-right.d.ts +4 -0
- package/lib/icon/arrows-right.js +15 -0
- package/lib/icon/bk.d.ts +4 -0
- package/lib/icon/bk.js +15 -0
- package/lib/icon/circle.d.ts +4 -0
- package/lib/icon/circle.js +15 -0
- package/lib/icon/close.d.ts +4 -0
- package/lib/icon/close.js +15 -0
- package/lib/icon/code.d.ts +4 -0
- package/lib/icon/code.js +15 -0
- package/lib/icon/cog-shape.d.ts +4 -0
- package/lib/icon/cog-shape.js +15 -0
- package/lib/icon/collapse-left.d.ts +4 -0
- package/lib/icon/collapse-left.js +15 -0
- package/lib/icon/copy.d.ts +4 -0
- package/lib/icon/copy.js +15 -0
- package/lib/icon/done.d.ts +4 -0
- package/lib/icon/done.js +15 -0
- package/lib/icon/down-shape.d.ts +4 -0
- package/lib/icon/down-shape.js +15 -0
- package/lib/icon/down-small.d.ts +4 -0
- package/lib/icon/down-small.js +15 -0
- package/lib/icon/ellipsis.d.ts +4 -0
- package/lib/icon/ellipsis.js +15 -0
- package/lib/icon/error.d.ts +4 -0
- package/lib/icon/error.js +15 -0
- package/lib/icon/eye.d.ts +4 -0
- package/lib/icon/eye.js +15 -0
- package/lib/icon/folder-open.d.ts +4 -0
- package/lib/icon/folder-open.js +15 -0
- package/lib/icon/folder-shape-open.d.ts +4 -0
- package/lib/icon/folder-shape-open.js +15 -0
- package/lib/icon/folder-shape.d.ts +4 -0
- package/lib/icon/folder-shape.js +15 -0
- package/lib/icon/folder.d.ts +4 -0
- package/lib/icon/folder.js +15 -0
- package/lib/icon/help-document-fill.d.ts +4 -0
- package/lib/icon/help-document-fill.js +15 -0
- package/lib/icon/help-fill.d.ts +4 -0
- package/lib/icon/help-fill.js +15 -0
- package/lib/icon/help.d.ts +4 -0
- package/lib/icon/help.js +15 -0
- package/lib/icon/icon.d.ts +12 -0
- package/lib/icon/icon.js +15 -0
- package/lib/icon/index.d.ts +53 -0
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.d.ts +4 -0
- package/lib/icon/info-line.js +15 -0
- package/lib/icon/info.d.ts +4 -0
- package/lib/icon/info.js +15 -0
- package/lib/icon/left-shape.d.ts +4 -0
- package/lib/icon/left-shape.js +15 -0
- package/lib/icon/play-shape.d.ts +4 -0
- package/lib/icon/play-shape.js +15 -0
- package/lib/icon/plus.d.ts +4 -0
- package/lib/icon/plus.js +15 -0
- package/lib/icon/qq.d.ts +4 -0
- package/lib/icon/qq.js +15 -0
- package/lib/icon/right-shape.d.ts +4 -0
- package/lib/icon/right-shape.js +15 -0
- package/lib/icon/search.d.ts +4 -0
- package/lib/icon/search.js +15 -0
- package/lib/icon/share.d.ts +4 -0
- package/lib/icon/share.js +15 -0
- package/lib/icon/spinner.d.ts +4 -0
- package/lib/icon/spinner.js +15 -0
- package/lib/icon/success.d.ts +4 -0
- package/lib/icon/success.js +15 -0
- package/lib/icon/switcher-loading.d.ts +4 -0
- package/lib/icon/switcher-loading.js +15 -0
- package/lib/icon/text-file.d.ts +4 -0
- package/lib/icon/text-file.js +15 -0
- package/lib/icon/tree-application-shape.d.ts +4 -0
- package/lib/icon/tree-application-shape.js +15 -0
- package/lib/icon/unvisible.d.ts +4 -0
- package/lib/icon/unvisible.js +15 -0
- package/lib/icon/up-shape.d.ts +4 -0
- package/lib/icon/up-shape.js +15 -0
- package/lib/icon/warn.d.ts +4 -0
- package/lib/icon/warn.js +15 -0
- package/lib/icon/weixin.d.ts +4 -0
- package/lib/icon/weixin.js +15 -0
- package/lib/index.d.ts +4 -0
- package/lib/input/index.d.ts +417 -0
- package/lib/input/index.js +2 -2
- package/lib/input/input.css +20 -2
- package/lib/input/input.d.ts +97 -45
- package/lib/input/input.less +28 -5
- package/lib/input/input.variable.css +52 -2
- 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 +32 -0
- package/lib/loading/index.d.ts +147 -0
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +100 -71
- package/lib/loading/loading.d.ts +48 -21
- package/lib/loading/loading.less +64 -49
- package/lib/loading/loading.variable.css +132 -71
- 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 +182 -0
- package/lib/menu/menu.d.ts +64 -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/index.js +1 -0
- package/lib/message/message.css +53 -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/index.js +1 -1
- package/lib/modal/modal.d.ts +33 -15
- package/lib/modal/props.mixin.d.ts +5 -1
- 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 +277 -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 +142 -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 +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/index.js +1 -1
- package/lib/popover/popover.css +23 -14
- package/lib/popover/popover.d.ts +75 -46
- 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/index.js +15 -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 +231 -0
- package/lib/progress/index.d.ts +398 -0
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +0 -3
- package/lib/progress/progress.d.ts +88 -35
- 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/index.js +1 -1
- 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.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/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 +282 -0
- package/lib/select/common.d.ts +23 -17
- package/lib/select/index.d.ts +1347 -0
- package/lib/select/index.js +15 -1
- 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.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 +51 -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 +206 -0
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.d.ts +39 -18
- package/lib/sideslider/sideslider.variable.css +32 -0
- package/{changelog.config.js → lib/slider/index.d.ts} +2 -8
- package/lib/slider/index.js +15 -0
- package/lib/slider/slider-button.d.ts +75 -0
- package/lib/slider/slider.css +149 -0
- package/lib/slider/slider.d.ts +189 -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/index.js +15 -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 +381 -0
- package/lib/styles/index.d.ts +46 -0
- package/lib/styles/index.js +1 -1
- 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/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 +149 -135
- package/lib/switcher/switcher.d.ts +48 -32
- package/lib/switcher/switcher.less +210 -154
- package/lib/switcher/switcher.variable.css +181 -135
- package/lib/tab/index.d.ts +552 -0
- package/lib/tab/index.js +1 -0
- package/lib/tab/tab-nav.d.ts +190 -0
- package/lib/tab/tab-panel.d.ts +48 -0
- package/lib/tab/tab.css +147 -0
- package/lib/tab/tab.d.ts +163 -0
- package/lib/tab/tab.less +221 -0
- package/lib/tab/tab.variable.css +240 -0
- package/lib/table/const.d.ts +4 -0
- package/lib/table/index.d.ts +282 -0
- package/lib/table/index.js +10 -1
- package/lib/table/props.d.ts +118 -0
- package/lib/table/render.d.ts +74 -0
- package/lib/table/table.css +90 -0
- package/lib/table/table.d.ts +85 -37
- package/lib/table/table.less +116 -1
- package/lib/table/table.variable.css +122 -0
- package/lib/table/utils.d.ts +69 -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 +129 -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 +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/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 +328 -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 +251 -0
- package/lib/tree/index.d.ts +279 -0
- package/lib/tree/index.js +1 -0
- package/lib/tree/props.d.ts +89 -0
- package/lib/tree/tree.css +50 -0
- package/lib/tree/tree.d.ts +121 -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/index.js +10 -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 +40 -0
- package/lib/virtual-render/virtual-render.d.ts +244 -0
- package/lib/virtual-render/virtual-render.less +51 -0
- package/lib/virtual-render/virtual-render.variable.css +40 -0
- package/package.json +71 -54
- 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/table/common.d.ts +0 -3
- package/lib/table/table-layout.d.ts +0 -14
- package/lib/table/type.d.ts +0 -12
@@ -1,10 +1,12 @@
|
|
1
1
|
:root {
|
2
2
|
--bk-prefix: bk;
|
3
|
+
--popover-max-height: 216px;
|
3
4
|
--primary-color: #3a84ff;
|
4
5
|
--success-color: #2dcb56;
|
5
6
|
--warning-color: #ff9c01;
|
6
7
|
--danger-color: #ea3636;
|
7
8
|
--default-color: #63656e;
|
9
|
+
--gray-color: #979ba5;
|
8
10
|
--light-gray: #c4c6cc;
|
9
11
|
--white-color: white;
|
10
12
|
--disable-color: #dcdee5;
|
@@ -58,43 +60,82 @@
|
|
58
60
|
--link-success-disabled-color: #94f5a4;
|
59
61
|
--link-warning-disabled-color: #ffd695;
|
60
62
|
--link-danger-disabled-color: #fd9c9c;
|
63
|
+
--message-color: var(--default-color);
|
64
|
+
--message-primary-bg-color: #f0f8ff;
|
65
|
+
--message-primary-border-color: #e1ecff;
|
66
|
+
--message-warning-bg-color: #fff4e2;
|
67
|
+
--message-warning-border-color: #ffe8c3;
|
68
|
+
--message-success-bg-color: #f2fff4;
|
69
|
+
--message-success-border-color: #dcffe2;
|
70
|
+
--message-danger-bg-color: #ffeded;
|
71
|
+
--message-danger-border-color: #ffdddd;
|
72
|
+
--slider-default-bg: #dcdee5;
|
73
|
+
--slider-disable-bar-bg: #979ba5;
|
74
|
+
--menu-bg-color: #182132;
|
75
|
+
--submenu-bg-color: #151d2c;
|
76
|
+
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
77
|
+
--menu-color: #96a2b9;
|
78
|
+
--menu-group-color: var(--default-color);
|
79
|
+
--menu-width: 260px;
|
80
|
+
--menu-collapse-width: 60px;
|
81
|
+
--menu-active-color: white;
|
82
|
+
--nav-header-bg-color: #182132;
|
83
|
+
--nav-bg-color: #182132;
|
84
|
+
--date-picker-disabled-bg: #fafbfd;
|
85
|
+
--date-picker-dropdown-mb: 4px;
|
86
|
+
--date-picker-dropdown-bg: #fff;
|
87
|
+
--table-bg-color: var(--white-color);
|
88
|
+
--table-border-color: #dcdee5;
|
89
|
+
--table-head-bg-color: #fafbfd;
|
90
|
+
--table-head-font-color: #313238;
|
91
|
+
--table-body-font-color: #575961;
|
92
|
+
--table-row-hover-bg-color: #f5f7fa;
|
61
93
|
}
|
62
94
|
.bk-popover .bk-popover-reference {
|
63
95
|
display: inline-block;
|
64
96
|
}
|
65
|
-
.bk-popover .
|
97
|
+
.bk-popover .fade-in-enter-active,
|
98
|
+
.bk-popover .fade-in-linear-leave-active {
|
99
|
+
transition: opacity 200ms linear;
|
100
|
+
}
|
101
|
+
.bk-popover .fade-in-enter,
|
102
|
+
.bk-popover .fade-in-leave,
|
103
|
+
.bk-popover .fade-in-leave-active {
|
104
|
+
opacity: 0;
|
105
|
+
}
|
106
|
+
.bk-popover-content {
|
66
107
|
display: none;
|
67
|
-
padding:
|
68
|
-
font-size:
|
69
|
-
font-weight: bold;
|
108
|
+
padding: 7px 14px;
|
109
|
+
font-size: 12px;
|
70
110
|
color: #fff;
|
71
111
|
background: #26323d;
|
72
112
|
border-radius: 4px;
|
73
113
|
box-sizing: border-box;
|
74
114
|
}
|
75
|
-
.bk-popover
|
115
|
+
.bk-popover-content[data-theme^='dark'] {
|
76
116
|
color: #fff;
|
77
117
|
background: #26323d;
|
78
118
|
}
|
79
|
-
.bk-popover
|
119
|
+
.bk-popover-content[data-theme^='light'] {
|
80
120
|
color: #26323d;
|
81
121
|
background-color: #fff;
|
82
122
|
box-shadow: 0 0 6px 0 #dcdee5;
|
83
123
|
}
|
84
|
-
.bk-popover
|
124
|
+
.bk-popover-content[data-theme^='light'][data-show] {
|
85
125
|
box-shadow: 0 0 6px 0 #dcdee5;
|
86
126
|
}
|
87
|
-
.bk-popover
|
127
|
+
.bk-popover-content[data-show] {
|
88
128
|
display: block;
|
89
129
|
}
|
90
|
-
.bk-popover
|
130
|
+
.bk-popover-content .arrow {
|
91
131
|
position: absolute;
|
132
|
+
z-index: -1;
|
92
133
|
width: 8px;
|
93
134
|
height: 8px;
|
94
135
|
background: inherit;
|
95
136
|
visibility: hidden;
|
96
137
|
}
|
97
|
-
.bk-popover
|
138
|
+
.bk-popover-content .arrow::before {
|
98
139
|
position: absolute;
|
99
140
|
width: 8px;
|
100
141
|
height: 8px;
|
@@ -103,15 +144,15 @@
|
|
103
144
|
visibility: visible;
|
104
145
|
transform: rotate(45deg);
|
105
146
|
}
|
106
|
-
.bk-popover
|
147
|
+
.bk-popover-content[data-popper-placement^='top'] > .arrow {
|
107
148
|
bottom: -4px;
|
108
149
|
}
|
109
|
-
.bk-popover
|
150
|
+
.bk-popover-content[data-popper-placement^='bottom'] > .arrow {
|
110
151
|
top: -4px;
|
111
152
|
}
|
112
|
-
.bk-popover
|
153
|
+
.bk-popover-content[data-popper-placement^='left'] > .arrow {
|
113
154
|
right: -4px;
|
114
155
|
}
|
115
|
-
.bk-popover
|
156
|
+
.bk-popover-content[data-popper-placement^='right'] > .arrow {
|
116
157
|
left: -4px;
|
117
158
|
}
|
@@ -0,0 +1,77 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
import { OnFirstUpdateFnType } from '@bkui-vue/shared';
|
3
|
+
export declare const PopoverProps: {
|
4
|
+
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
5
|
+
default: boolean;
|
6
|
+
};
|
7
|
+
width: import("vue-types").VueTypeDef<string | number> & {
|
8
|
+
default: string | number;
|
9
|
+
};
|
10
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
11
|
+
default: string | number;
|
12
|
+
};
|
13
|
+
content: import("vue-types").VueTypeDef<string | number> & {
|
14
|
+
default: string | number;
|
15
|
+
};
|
16
|
+
/**
|
17
|
+
* 动画展示方式
|
18
|
+
*/
|
19
|
+
transition: import("vue-types").VueTypeValidableDef<string> & {
|
20
|
+
default: string;
|
21
|
+
} & {
|
22
|
+
default: string;
|
23
|
+
};
|
24
|
+
/**
|
25
|
+
* 展示位置
|
26
|
+
*/
|
27
|
+
placement: import("vue-types").VueTypeDef<string> & {
|
28
|
+
default: string;
|
29
|
+
};
|
30
|
+
theme: import("vue-types").VueTypeValidableDef<string> & {
|
31
|
+
default: string;
|
32
|
+
} & {
|
33
|
+
default: string;
|
34
|
+
};
|
35
|
+
/**
|
36
|
+
* handleFirstUpdate
|
37
|
+
*/
|
38
|
+
handleFirstUpdate: {
|
39
|
+
type: PropType<OnFirstUpdateFnType>;
|
40
|
+
default: () => void;
|
41
|
+
};
|
42
|
+
/**
|
43
|
+
* 触发方式
|
44
|
+
* 支持 click hover manual
|
45
|
+
* manual: 通过isShow控制显示、隐藏
|
46
|
+
*/
|
47
|
+
trigger: import("vue-types").VueTypeValidableDef<string> & {
|
48
|
+
default: string;
|
49
|
+
} & {
|
50
|
+
default: string;
|
51
|
+
};
|
52
|
+
arrow: import("vue-types").VueTypeValidableDef<boolean> & {
|
53
|
+
default: boolean;
|
54
|
+
} & {
|
55
|
+
default: boolean;
|
56
|
+
};
|
57
|
+
modifiers: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
58
|
+
default: () => unknown[];
|
59
|
+
} & {
|
60
|
+
default: () => unknown[];
|
61
|
+
};
|
62
|
+
/**
|
63
|
+
* 弹出内容绑定元素
|
64
|
+
*/
|
65
|
+
boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
|
66
|
+
/**
|
67
|
+
* 如果设置了boundary为指定DOM,此配置项生效
|
68
|
+
* 是否将弹出内容固定到目标元素位置
|
69
|
+
* 例如:boundary = document.body, fixOnBoundary = true,则弹出内容会一直固定到body
|
70
|
+
*/
|
71
|
+
fixOnBoundary: import("vue-types").VueTypeValidableDef<boolean> & {
|
72
|
+
default: boolean;
|
73
|
+
} & {
|
74
|
+
default: boolean;
|
75
|
+
};
|
76
|
+
};
|
77
|
+
export declare type PopoverPropTypes = Readonly<ExtractPropTypes<typeof PopoverProps>>;
|
package/lib/preset.d.ts
ADDED
@@ -0,0 +1,205 @@
|
|
1
|
+
declare const BkSteps: {
|
2
|
+
new (...args: any[]): {
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
4
|
+
$data: {};
|
5
|
+
$props: Partial<{
|
6
|
+
list: unknown[];
|
7
|
+
extCls: string;
|
8
|
+
controllable: boolean;
|
9
|
+
showSteps: boolean;
|
10
|
+
curProcess: number;
|
11
|
+
displayKey: string;
|
12
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
13
|
+
list: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
14
|
+
default: () => unknown[];
|
15
|
+
} & {
|
16
|
+
default: () => unknown[];
|
17
|
+
};
|
18
|
+
controllable: import("vue-types").VueTypeValidableDef<boolean> & {
|
19
|
+
default: boolean;
|
20
|
+
} & {
|
21
|
+
default: boolean;
|
22
|
+
};
|
23
|
+
showSteps: import("vue-types").VueTypeValidableDef<boolean> & {
|
24
|
+
default: boolean;
|
25
|
+
} & {
|
26
|
+
default: boolean;
|
27
|
+
};
|
28
|
+
curProcess: import("vue-types").VueTypeValidableDef<number> & {
|
29
|
+
default: number;
|
30
|
+
} & {
|
31
|
+
default: number;
|
32
|
+
};
|
33
|
+
displayKey: import("vue-types").VueTypeValidableDef<string> & {
|
34
|
+
default: string;
|
35
|
+
} & {
|
36
|
+
default: string;
|
37
|
+
};
|
38
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
39
|
+
default: string;
|
40
|
+
};
|
41
|
+
}>> & {
|
42
|
+
onClick?: (...args: any[]) => any;
|
43
|
+
"onUpdate:curProcess"?: (...args: any[]) => any;
|
44
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "list" | "extCls" | "controllable" | "showSteps" | "curProcess" | "displayKey">;
|
45
|
+
$attrs: {
|
46
|
+
[x: string]: unknown;
|
47
|
+
};
|
48
|
+
$refs: {
|
49
|
+
[x: string]: unknown;
|
50
|
+
};
|
51
|
+
$slots: Readonly<{
|
52
|
+
[name: string]: import("vue").Slot;
|
53
|
+
}>;
|
54
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
55
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
56
|
+
$emit: (event: "click" | "update:curProcess", ...args: any[]) => void;
|
57
|
+
$el: any;
|
58
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
59
|
+
list: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
60
|
+
default: () => unknown[];
|
61
|
+
} & {
|
62
|
+
default: () => unknown[];
|
63
|
+
};
|
64
|
+
controllable: import("vue-types").VueTypeValidableDef<boolean> & {
|
65
|
+
default: boolean;
|
66
|
+
} & {
|
67
|
+
default: boolean;
|
68
|
+
};
|
69
|
+
showSteps: import("vue-types").VueTypeValidableDef<boolean> & {
|
70
|
+
default: boolean;
|
71
|
+
} & {
|
72
|
+
default: boolean;
|
73
|
+
};
|
74
|
+
curProcess: import("vue-types").VueTypeValidableDef<number> & {
|
75
|
+
default: number;
|
76
|
+
} & {
|
77
|
+
default: number;
|
78
|
+
};
|
79
|
+
displayKey: import("vue-types").VueTypeValidableDef<string> & {
|
80
|
+
default: string;
|
81
|
+
} & {
|
82
|
+
default: string;
|
83
|
+
};
|
84
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
85
|
+
default: string;
|
86
|
+
};
|
87
|
+
}>> & {
|
88
|
+
onClick?: (...args: any[]) => any;
|
89
|
+
"onUpdate:curProcess"?: (...args: any[]) => any;
|
90
|
+
}, {
|
91
|
+
defaultProcessList: import("vue").Ref<any[]>;
|
92
|
+
paddingBottom: import("vue").Ref<number>;
|
93
|
+
jumpTo: (index: any) => Promise<void>;
|
94
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:curProcess")[], string, {
|
95
|
+
list: unknown[];
|
96
|
+
extCls: string;
|
97
|
+
controllable: boolean;
|
98
|
+
showSteps: boolean;
|
99
|
+
curProcess: number;
|
100
|
+
displayKey: string;
|
101
|
+
}> & {
|
102
|
+
beforeCreate?: (() => void) | (() => void)[];
|
103
|
+
created?: (() => void) | (() => void)[];
|
104
|
+
beforeMount?: (() => void) | (() => void)[];
|
105
|
+
mounted?: (() => void) | (() => void)[];
|
106
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
107
|
+
updated?: (() => void) | (() => void)[];
|
108
|
+
activated?: (() => void) | (() => void)[];
|
109
|
+
deactivated?: (() => void) | (() => void)[];
|
110
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
111
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
112
|
+
destroyed?: (() => void) | (() => void)[];
|
113
|
+
unmounted?: (() => void) | (() => void)[];
|
114
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
115
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
116
|
+
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)[];
|
117
|
+
};
|
118
|
+
$forceUpdate: () => void;
|
119
|
+
$nextTick: typeof import("vue").nextTick;
|
120
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
121
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
122
|
+
list: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
123
|
+
default: () => unknown[];
|
124
|
+
} & {
|
125
|
+
default: () => unknown[];
|
126
|
+
};
|
127
|
+
controllable: import("vue-types").VueTypeValidableDef<boolean> & {
|
128
|
+
default: boolean;
|
129
|
+
} & {
|
130
|
+
default: boolean;
|
131
|
+
};
|
132
|
+
showSteps: import("vue-types").VueTypeValidableDef<boolean> & {
|
133
|
+
default: boolean;
|
134
|
+
} & {
|
135
|
+
default: boolean;
|
136
|
+
};
|
137
|
+
curProcess: import("vue-types").VueTypeValidableDef<number> & {
|
138
|
+
default: number;
|
139
|
+
} & {
|
140
|
+
default: number;
|
141
|
+
};
|
142
|
+
displayKey: import("vue-types").VueTypeValidableDef<string> & {
|
143
|
+
default: string;
|
144
|
+
} & {
|
145
|
+
default: string;
|
146
|
+
};
|
147
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
148
|
+
default: string;
|
149
|
+
};
|
150
|
+
}>> & {
|
151
|
+
onClick?: (...args: any[]) => any;
|
152
|
+
"onUpdate:curProcess"?: (...args: any[]) => any;
|
153
|
+
} & import("vue").ShallowUnwrapRef<{
|
154
|
+
defaultProcessList: import("vue").Ref<any[]>;
|
155
|
+
paddingBottom: import("vue").Ref<number>;
|
156
|
+
jumpTo: (index: any) => Promise<void>;
|
157
|
+
}> & {} & {} & import("vue").ComponentCustomProperties;
|
158
|
+
__isFragment?: never;
|
159
|
+
__isTeleport?: never;
|
160
|
+
__isSuspense?: never;
|
161
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
162
|
+
list: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
163
|
+
default: () => unknown[];
|
164
|
+
} & {
|
165
|
+
default: () => unknown[];
|
166
|
+
};
|
167
|
+
controllable: import("vue-types").VueTypeValidableDef<boolean> & {
|
168
|
+
default: boolean;
|
169
|
+
} & {
|
170
|
+
default: boolean;
|
171
|
+
};
|
172
|
+
showSteps: import("vue-types").VueTypeValidableDef<boolean> & {
|
173
|
+
default: boolean;
|
174
|
+
} & {
|
175
|
+
default: boolean;
|
176
|
+
};
|
177
|
+
curProcess: import("vue-types").VueTypeValidableDef<number> & {
|
178
|
+
default: number;
|
179
|
+
} & {
|
180
|
+
default: number;
|
181
|
+
};
|
182
|
+
displayKey: import("vue-types").VueTypeValidableDef<string> & {
|
183
|
+
default: string;
|
184
|
+
} & {
|
185
|
+
default: string;
|
186
|
+
};
|
187
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
188
|
+
default: string;
|
189
|
+
};
|
190
|
+
}>> & {
|
191
|
+
onClick?: (...args: any[]) => any;
|
192
|
+
"onUpdate:curProcess"?: (...args: any[]) => any;
|
193
|
+
}, {
|
194
|
+
defaultProcessList: import("vue").Ref<any[]>;
|
195
|
+
paddingBottom: import("vue").Ref<number>;
|
196
|
+
jumpTo: (index: any) => Promise<void>;
|
197
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:curProcess")[], "click" | "update:curProcess", {
|
198
|
+
list: unknown[];
|
199
|
+
extCls: string;
|
200
|
+
controllable: boolean;
|
201
|
+
showSteps: boolean;
|
202
|
+
curProcess: number;
|
203
|
+
displayKey: string;
|
204
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
205
|
+
export default BkSteps;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("../shared"),require("vue"),require("../icon")):"function"==typeof define&&define.amd?define(["exports","../shared","vue","../icon"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).bkuiVue={},t.Shared,t.Vue,t["@bkui-vue/icon/icons"])}(this,(function(t,e,r,n){"use strict";function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var i={exports:{}};!function(t){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports}(i);var a=o(i.exports),c={exports:{}},s={exports:{}},u={exports:{}};!function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n},t.exports.__esModule=!0,t.exports.default=t.exports}(u),function(t){var e=u.exports;t.exports=function(t){if(Array.isArray(t))return e(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(s);var l={exports:{}};!function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(l);var f={exports:{}};!function(t){var e=u.exports;t.exports=function(t,r){if(t){if("string"==typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}(f);var p={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(p),function(t){var e=s.exports,r=l.exports,n=f.exports,o=p.exports;t.exports=function(t){return e(t)||r(t)||n(t)||o()},t.exports.__esModule=!0,t.exports.default=t.exports}(c);var h=o(c.exports),d={exports:{}};!function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),a=new O(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return N()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var s=l(t,e,r);if("normal"===s.type){if(n=r.done?d:p,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=d,r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",d="completed",y={};function v(){}function g(){}function x(){}var m={};s(m,i,(function(){return this}));var w=Object.getPrototypeOf,b=w&&w(w(T([])));b&&b!==r&&n.call(b,i)&&(m=b);var _=x.prototype=v.prototype=Object.create(m);function L(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:N}}function N(){return{value:e,done:!0}}return g.prototype=x,s(_,"constructor",x),s(x,"constructor",g),g.displayName=s(x,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,s(t,c,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},L(P.prototype),s(P.prototype,a,(function(){return this})),t.AsyncIterator=P,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new P(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(_),s(_,c,"Generator"),s(_,i,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=T,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}(d);var y=d.exports;
|
2
|
+
/*! *****************************************************************************
|
3
|
+
Copyright (c) Microsoft Corporation.
|
4
|
+
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
6
|
+
purpose with or without fee is hereby granted.
|
7
|
+
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
9
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
10
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
11
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
12
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
13
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
14
|
+
PERFORMANCE OF THIS SOFTWARE.
|
15
|
+
***************************************************************************** */function v(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{s(n.next(t))}catch(t){i(t)}}function c(t){try{s(n.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}s((n=n.apply(t,e||[])).next())}))}var g={list:e.PropTypes.array.def([]),controllable:e.PropTypes.bool.def(!1),showSteps:e.PropTypes.bool.def(!1),curProcess:e.PropTypes.number.def(0),displayKey:e.PropTypes.string.def("content"),extCls:e.PropTypes.string},x=r.defineComponent({name:"BKProcess",props:g,emits:["update:curProcess","click"],setup:function(t,e){var n=this,o=e.emit,i=r.ref([]),a=r.ref(0);return r.onMounted((function(){var e,r,n;((e=i.value).splice.apply(e,[0,i.value.length].concat([{content:"步骤1"},{content:"步骤2"},{content:"步骤3"},{content:"步骤4"},{content:"步骤5"}])),console.log("props.list",t.list),null===(r=t.list)||void 0===r?void 0:r.length)&&(n=i.value).splice.apply(n,[0,i.value.length].concat(h(t.list)))})),{defaultProcessList:i,paddingBottom:a,jumpTo:function(e){return v(n,void 0,void 0,y.mark((function r(){return y.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:console.log(e);try{t.controllable&&e!==t.curProcess&&(console.log(t.curProcess),o("update:curProcess",e),console.log(t.curProcess),o("click",e))}catch(t){console.warn(t)}case 2:case"end":return r.stop()}}),r)})))}}},render:function(){var t=this,o=e.classes(a({},"".concat(this.extCls),!!this.extCls),"".concat("bk-process")),i=function(t){return"loading"===t.status},c=function(t){return t.icon?t.icon:""},s=function(e,o){return e===t.curProcess-1&&i(o)?r.createVNode(n.Circle,{class:"bk-icon bk-process-icon icon-loading"},null):function(t){return"error"===t.status}(o)?r.createVNode(n.Error,{class:"bk-process-icon"},null):function(e){return t.curProcess>=e+1||"done"===t.defaultProcessList[e].status}(e)?r.createVNode(n.Done,{class:"bk-process-icon-done"},null):r.createVNode("span",{class:"number"},[c(o)])};return r.createVNode("div",{class:o},[r.createVNode("ul",{style:{paddingBottom:"".concat(this.paddingBottom,"px")}},[this.defaultProcessList.map((function(e,n){return r.createVNode("li",{onClick:function(){t.jumpTo(n+1)},style:{cursor:t.controllable?"pointer":""},class:{success:t.curProcess>=n+1,current:i(e)&&n===t.curProcess-1}},[e[t.displayKey],s(n,e)])}))])])}}),m=e.withInstall(x);t.default=m,Object.defineProperty(t,"__esModule",{value:!0})}));
|
@@ -0,0 +1,138 @@
|
|
1
|
+
* {
|
2
|
+
box-sizing: border-box;
|
3
|
+
}
|
4
|
+
.bk-process {
|
5
|
+
position: relative;
|
6
|
+
display: flex;
|
7
|
+
}
|
8
|
+
@keyframes loadingCircle {
|
9
|
+
100% {
|
10
|
+
transform: rotate(360deg);
|
11
|
+
}
|
12
|
+
}
|
13
|
+
.bk-process .bk-process-toggle {
|
14
|
+
position: relative;
|
15
|
+
left: 15px;
|
16
|
+
width: 24px;
|
17
|
+
height: 24px;
|
18
|
+
font-size: 12px;
|
19
|
+
line-height: 24px;
|
20
|
+
color: #63656e;
|
21
|
+
text-align: center;
|
22
|
+
text-decoration: none;
|
23
|
+
border: 1px solid #c4c6cc;
|
24
|
+
border-radius: 50%;
|
25
|
+
}
|
26
|
+
.bk-process .bk-process-toggle.active,
|
27
|
+
.bk-process .bk-process-toggle:hover {
|
28
|
+
color: #fff;
|
29
|
+
background: #3a84ff;
|
30
|
+
border-color: #3a84ff;
|
31
|
+
}
|
32
|
+
.bk-process .bk-process-icon-done {
|
33
|
+
display: inline-block;
|
34
|
+
font-size: 22px;
|
35
|
+
line-height: 18px;
|
36
|
+
}
|
37
|
+
.bk-process .bk-icon.icon-loading {
|
38
|
+
display: inline-block;
|
39
|
+
font-size: 14px;
|
40
|
+
animation: loadingCircle 1s infinite linear;
|
41
|
+
}
|
42
|
+
.bk-process > ul {
|
43
|
+
-ms-display: flex;
|
44
|
+
-moz-display: flex;
|
45
|
+
-webkit-display: flex;
|
46
|
+
display: table;
|
47
|
+
display: flex;
|
48
|
+
width: 100%;
|
49
|
+
padding: 0;
|
50
|
+
margin: auto;
|
51
|
+
}
|
52
|
+
.bk-process li {
|
53
|
+
position: relative;
|
54
|
+
display: table-cell;
|
55
|
+
height: 24px;
|
56
|
+
font-family: PingFang SC,Microsoft Yahei,Helvetica,Aria;
|
57
|
+
font-size: 12px;
|
58
|
+
line-height: 24px;
|
59
|
+
color: #63656e;
|
60
|
+
text-align: center;
|
61
|
+
background-color: #f0f1f5;
|
62
|
+
flex: 1;
|
63
|
+
}
|
64
|
+
.bk-process li i {
|
65
|
+
display: none;
|
66
|
+
}
|
67
|
+
.bk-process li:first-of-type {
|
68
|
+
border-radius: 13px 0 0 13px;
|
69
|
+
}
|
70
|
+
.bk-process li:last-of-type {
|
71
|
+
border-radius: 0 13px 13px 0;
|
72
|
+
}
|
73
|
+
.bk-process li:last-of-type::before {
|
74
|
+
display: none;
|
75
|
+
}
|
76
|
+
.bk-process li:last-of-type::after {
|
77
|
+
display: none;
|
78
|
+
}
|
79
|
+
.bk-process li::before {
|
80
|
+
position: absolute;
|
81
|
+
top: 0;
|
82
|
+
right: -25px;
|
83
|
+
z-index: 1;
|
84
|
+
width: 0;
|
85
|
+
height: 0;
|
86
|
+
border: 12px solid;
|
87
|
+
border-color: transparent transparent transparent #fff;
|
88
|
+
content: '';
|
89
|
+
}
|
90
|
+
.bk-process li::after {
|
91
|
+
position: absolute;
|
92
|
+
top: 0;
|
93
|
+
right: -23px;
|
94
|
+
z-index: 1;
|
95
|
+
width: 0;
|
96
|
+
height: 0;
|
97
|
+
border: 12px solid;
|
98
|
+
border-color: transparent transparent transparent #f0f1f5;
|
99
|
+
content: '';
|
100
|
+
}
|
101
|
+
.bk-process li .bk-process-step {
|
102
|
+
font-size: 12px;
|
103
|
+
}
|
104
|
+
.bk-process li .bk-process-step dd {
|
105
|
+
margin: 0;
|
106
|
+
line-height: 32px;
|
107
|
+
}
|
108
|
+
.bk-process li .bk-process-step i {
|
109
|
+
display: none;
|
110
|
+
}
|
111
|
+
.bk-process li .bk-process-step .success i {
|
112
|
+
display: inline-block;
|
113
|
+
color: #2dcb56;
|
114
|
+
}
|
115
|
+
.bk-process li .bk-process-step .steps-loading {
|
116
|
+
top: -2px;
|
117
|
+
}
|
118
|
+
.bk-process li.success {
|
119
|
+
color: #fff;
|
120
|
+
background: #2dcb56;
|
121
|
+
}
|
122
|
+
.bk-process li.success::after {
|
123
|
+
border-color: transparent transparent transparent #2dcb56;
|
124
|
+
}
|
125
|
+
.bk-process li.success .icon-done {
|
126
|
+
font-size: 22px;
|
127
|
+
line-height: 18px;
|
128
|
+
}
|
129
|
+
.bk-process li.current {
|
130
|
+
color: #fff;
|
131
|
+
background: #3a84ff;
|
132
|
+
}
|
133
|
+
.bk-process li.current::after {
|
134
|
+
border-color: transparent transparent transparent #3a84ff;
|
135
|
+
}
|
136
|
+
.bk-process li.current > .bk-spin-loading {
|
137
|
+
vertical-align: -3px;
|
138
|
+
}
|