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
@@ -4,51 +4,135 @@ declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
default: string;
|
5
5
|
validator: (value: string) => boolean;
|
6
6
|
};
|
7
|
-
isShow: {
|
8
|
-
|
7
|
+
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
8
|
+
default: boolean;
|
9
|
+
} & {
|
9
10
|
default: boolean;
|
10
11
|
};
|
11
|
-
width:
|
12
|
-
|
12
|
+
width: import("vue-types").VueTypeDef<string | number>;
|
13
|
+
height: import("vue-types").VueTypeDef<string | number>;
|
14
|
+
customClass: (import("vue-types").VueTypeValidableDef<string> & {
|
13
15
|
default: string;
|
16
|
+
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
17
|
+
default: () => unknown[];
|
18
|
+
});
|
19
|
+
scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
|
20
|
+
default: boolean;
|
21
|
+
} & {
|
22
|
+
default: boolean;
|
14
23
|
};
|
15
|
-
|
16
|
-
|
17
|
-
|
24
|
+
showMask: import("vue-types").VueTypeValidableDef<boolean> & {
|
25
|
+
default: boolean;
|
26
|
+
} & {
|
27
|
+
default: boolean;
|
28
|
+
};
|
29
|
+
closeIcon: import("vue-types").VueTypeValidableDef<boolean> & {
|
30
|
+
default: boolean;
|
31
|
+
} & {
|
32
|
+
default: boolean;
|
33
|
+
};
|
34
|
+
escClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
35
|
+
default: boolean;
|
36
|
+
} & {
|
37
|
+
default: boolean;
|
38
|
+
};
|
39
|
+
maskClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
40
|
+
default: boolean;
|
41
|
+
} & {
|
42
|
+
default: boolean;
|
18
43
|
};
|
19
|
-
|
20
|
-
|
44
|
+
fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
|
45
|
+
default: boolean;
|
46
|
+
} & {
|
47
|
+
default: boolean;
|
48
|
+
};
|
49
|
+
size: import("vue-types").VueTypeDef<string> & {
|
21
50
|
default: string;
|
22
51
|
};
|
23
|
-
|
24
|
-
|
52
|
+
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
53
|
+
default: boolean;
|
54
|
+
} & {
|
25
55
|
default: boolean;
|
26
56
|
};
|
57
|
+
dialogType: import("vue-types").VueTypeDef<string> & {
|
58
|
+
default: string;
|
59
|
+
};
|
27
60
|
}, unknown, unknown, {}, {
|
28
61
|
handleClose(): void;
|
29
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "update:isShow")[], "closed" | "update:isShow", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
30
|
-
direction
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
62
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "update:isShow")[], "closed" | "update:isShow", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
63
|
+
direction: {
|
64
|
+
type: StringConstructor;
|
65
|
+
default: string;
|
66
|
+
validator: (value: string) => boolean;
|
67
|
+
};
|
68
|
+
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
69
|
+
default: boolean;
|
70
|
+
} & {
|
71
|
+
default: boolean;
|
72
|
+
};
|
73
|
+
width: import("vue-types").VueTypeDef<string | number>;
|
74
|
+
height: import("vue-types").VueTypeDef<string | number>;
|
75
|
+
customClass: (import("vue-types").VueTypeValidableDef<string> & {
|
76
|
+
default: string;
|
77
|
+
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
78
|
+
default: () => unknown[];
|
79
|
+
});
|
80
|
+
scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
|
81
|
+
default: boolean;
|
82
|
+
} & {
|
83
|
+
default: boolean;
|
84
|
+
};
|
85
|
+
showMask: import("vue-types").VueTypeValidableDef<boolean> & {
|
86
|
+
default: boolean;
|
87
|
+
} & {
|
88
|
+
default: boolean;
|
89
|
+
};
|
90
|
+
closeIcon: import("vue-types").VueTypeValidableDef<boolean> & {
|
91
|
+
default: boolean;
|
92
|
+
} & {
|
93
|
+
default: boolean;
|
94
|
+
};
|
95
|
+
escClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
96
|
+
default: boolean;
|
97
|
+
} & {
|
98
|
+
default: boolean;
|
99
|
+
};
|
100
|
+
maskClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
101
|
+
default: boolean;
|
102
|
+
} & {
|
103
|
+
default: boolean;
|
104
|
+
};
|
105
|
+
fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
|
106
|
+
default: boolean;
|
107
|
+
} & {
|
108
|
+
default: boolean;
|
109
|
+
};
|
110
|
+
size: import("vue-types").VueTypeDef<string> & {
|
111
|
+
default: string;
|
112
|
+
};
|
113
|
+
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
114
|
+
default: boolean;
|
115
|
+
} & {
|
116
|
+
default: boolean;
|
117
|
+
};
|
118
|
+
dialogType: import("vue-types").VueTypeDef<string> & {
|
119
|
+
default: string;
|
120
|
+
};
|
121
|
+
}>> & {
|
44
122
|
onClosed?: (...args: any[]) => any;
|
45
123
|
"onUpdate:isShow"?: (...args: any[]) => any;
|
46
124
|
}, {
|
47
|
-
|
48
|
-
|
125
|
+
draggable: boolean;
|
126
|
+
showMask: boolean;
|
127
|
+
size: string;
|
128
|
+
direction: string;
|
129
|
+
dialogType: string;
|
49
130
|
isShow: boolean;
|
50
|
-
customClass: string;
|
131
|
+
customClass: string | unknown[];
|
51
132
|
scrollable: boolean;
|
52
|
-
|
133
|
+
closeIcon: boolean;
|
134
|
+
escClose: boolean;
|
135
|
+
maskClose: boolean;
|
136
|
+
fullscreen: boolean;
|
53
137
|
}>;
|
54
138
|
export default _default;
|
@@ -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,6 +60,37 @@
|
|
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;
|
93
|
+
--table-row-active-bg-color: #f0f1f5;
|
61
94
|
}
|
62
95
|
.bk-modal-wrapper.bk-sideslider-wrapper {
|
63
96
|
position: fixed;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
/**
|
2
|
+
* Tencent is pleased to support the open source community by making
|
3
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
4
|
+
*
|
5
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
6
|
+
*
|
7
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
8
|
+
*
|
9
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
10
|
+
*
|
11
|
+
* ---------------------------------------------------
|
12
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
13
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
14
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
15
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
16
|
+
*
|
17
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
18
|
+
* the Software.
|
19
|
+
*
|
20
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
21
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
23
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
24
|
+
* IN THE SOFTWARE.
|
25
|
+
*/
|
26
|
+
import Slider from './slider';
|
27
|
+
export default Slider;
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"),require("../input"),require("../shared"),require("../popover"));else if("function"==typeof define&&define.amd)define(["vue","../input","../shared","../popover"],t);else{var a="object"==typeof exports?t(require("vue"),require("../input"),require("../shared"),require("../popover")):t(e.vue,e["../input"],e["../shared"],e["../popover"]);for(var r in a)("object"==typeof exports?exports:e)[r]=a[r]}}(self,((e,t,a,r)=>(()=>{var n={7162:(e,t,a)=>{e.exports=a(5047)},5047:e=>{var t=function(e){"use strict";var t,a=Object.prototype,r=a.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",u=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function i(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{i({},"")}catch(e){i=function(e,t,a){return e[t]=a}}function c(e,t,a,r){var n=t&&t.prototype instanceof h?t:h,o=Object.create(n.prototype),u=new j(r||[]);return o._invoke=function(e,t,a){var r=v;return function(n,o){if(r===d)throw new Error("Generator is already running");if(r===f){if("throw"===n)throw o;return T()}for(a.method=n,a.arg=o;;){var u=a.delegate;if(u){var l=k(u,a);if(l){if(l===p)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===v)throw r=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=d;var i=s(e,t,a);if("normal"===i.type){if(r=a.done?f:m,i.arg===p)continue;return{value:i.arg,done:a.done}}"throw"===i.type&&(r=f,a.method="throw",a.arg=i.arg)}}}(e,a,u),o}function s(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var v="suspendedStart",m="suspendedYield",d="executing",f="completed",p={};function h(){}function V(){}function y(){}var b={};i(b,o,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(B([])));w&&w!==a&&r.call(w,o)&&(b=w);var x=y.prototype=h.prototype=Object.create(b);function L(e){["next","throw","return"].forEach((function(t){i(e,t,(function(e){return this._invoke(t,e)}))}))}function N(e,t){function a(n,o,u,l){var i=s(e[n],e,o);if("throw"!==i.type){var c=i.arg,v=c.value;return v&&"object"==typeof v&&r.call(v,"__await")?t.resolve(v.__await).then((function(e){a("next",e,u,l)}),(function(e){a("throw",e,u,l)})):t.resolve(v).then((function(e){c.value=e,u(c)}),(function(e){return a("throw",e,u,l)}))}l(i.arg)}var n;this._invoke=function(e,r){function o(){return new t((function(t,n){a(e,r,t,n)}))}return n=n?n.then(o,o):o()}}function k(e,a){var r=e.iterator[a.method];if(r===t){if(a.delegate=null,"throw"===a.method){if(e.iterator.return&&(a.method="return",a.arg=t,k(e,a),"throw"===a.method))return p;a.method="throw",a.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=s(r,e.iterator,a.arg);if("throw"===n.type)return a.method="throw",a.arg=n.arg,a.delegate=null,p;var o=n.arg;return o?o.done?(a[e.resultName]=o.value,a.next=e.nextLoc,"return"!==a.method&&(a.method="next",a.arg=t),a.delegate=null,p):o:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,p)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function B(e){if(e){var a=e[o];if(a)return a.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,u=function a(){for(;++n<e.length;)if(r.call(e,n))return a.value=e[n],a.done=!1,a;return a.value=t,a.done=!0,a};return u.next=u}}return{next:T}}function T(){return{value:t,done:!0}}return V.prototype=y,i(x,"constructor",y),i(y,"constructor",V),V.displayName=i(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===V||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,i(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},L(N.prototype),i(N.prototype,u,(function(){return this})),e.AsyncIterator=N,e.async=function(t,a,r,n,o){void 0===o&&(o=Promise);var u=new N(c(t,a,r,n),o);return e.isGeneratorFunction(a)?u:u.next().then((function(e){return e.done?e.value:u.next()}))},L(x),i(x,l,"Generator"),i(x,o,(function(){return this})),i(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var a in e)t.push(a);return t.reverse(),function a(){for(;t.length;){var r=t.pop();if(r in e)return a.value=r,a.done=!1,a}return a.done=!0,a}},e.values=B,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var a in this)"t"===a.charAt(0)&&r.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var a=this;function n(r,n){return l.type="throw",l.arg=e,a.next=r,n&&(a.method="next",a.arg=t),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var u=this.tryEntries[o],l=u.completion;if("root"===u.tryLoc)return n("end");if(u.tryLoc<=this.prev){var i=r.call(u,"catchLoc"),c=r.call(u,"finallyLoc");if(i&&c){if(this.prev<u.catchLoc)return n(u.catchLoc,!0);if(this.prev<u.finallyLoc)return n(u.finallyLoc)}else if(i){if(this.prev<u.catchLoc)return n(u.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return n(u.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=e,u.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(u)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),E(a),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var r=a.completion;if("throw"===r.type){var n=r.arg;E(a)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,a,r){return this.delegate={iterator:B(e),resultName:a,nextLoc:r},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},8133:e=>{"use strict";e.exports=t},5537:e=>{"use strict";e.exports=r},4212:e=>{"use strict";e.exports=a},748:t=>{"use strict";t.exports=e}},o={};function u(e){var t=o[e];if(void 0!==t)return t.exports;var a=o[e]={exports:{}};return n[e](a,a.exports,u),a.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var a in t)u.o(t,a)&&!u.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";u.r(l),u.d(l,{default:()=>f});var e=u(748),t=u(7162),a=u.n(t);Object.create,Object.create;var r=u(8133),n=u.n(r),o=u(4212),i=u(5537),c=u.n(i);const s=(0,e.defineComponent)({name:"SliderButton",props:{modelValue:{type:Number,default:0},params:{type:Object,default:function(){return{}}}},emits:["emitChange","resetSize","update:modelValue"],setup:function(t,a){var r=a.emit,n=(0,e.ref)(!1),o=(0,e.ref)(!1),u=(0,e.ref)(0),l=(0,e.ref)(0),i=(0,e.ref)(0),s=(0,e.ref)(null),d=(0,e.ref)(t.modelValue),f=(0,e.ref)(0),p=(0,e.ref)(0),h=(0,e.ref)(!1),V=(0,e.ref)(null),y=(0,e.computed)((function(){var e,a,r="";if(null===(e=t.params.customContent)||void 0===e?void 0:e[t.modelValue]){var n=t.params.customContent[t.modelValue];r=n.tip||n.label||""}var o=t.params.vertical?"right":"top";return(null===(a=t.params)||void 0===a?void 0:a.showTip)?{content:t.params.formatterTipLabel("".concat(r||(null==t?void 0:t.modelValue)||"0")),placement:o}:{content:"",placement:o}})),b=(0,e.computed)((function(){return"".concat((t.modelValue-t.params.minValue)/(t.params.maxValue-t.params.minValue)*100,"%")})),g=(0,e.computed)((function(){return t.params.vertical?{bottom:b.value}:{left:b.value}})),w=(0,e.computed)((function(){return t.params.formatterButtonLabel(t.modelValue)})),x=function(e){t.params.disable||(e.preventDefault(),L(e),v(window,"mousemove",N),v(window,"touchmove",N),v(window,"mouseup",k),v(window,"touchend",k))},L=function(e){n.value=!0,o.value=!0,t.params.vertical?u.value=e.clientY:l.value=e.clientX,i.value=parseFloat(b.value),s.value=i.value},N=function(e){if(n.value){o.value=!1,r("resetSize");var a=0;t.params.vertical?(f.value=e.clientY,a=(u.value-f.value)/t.params.sliderSize*100):(p.value=e.clientX,a=(p.value-l.value)/t.params.sliderSize*100),s.value=i.value+a,C(s.value)}},k=function e(){h.value=!1,n.value&&(setTimeout((function(){n.value=!1,o.value||(C(s.value),r("emitChange"))}),0),m(window,"mousemove",N),m(window,"touchmove",N),m(window,"mouseup",e),m(window,"touchend",e))},C=function(e){if(null!==e&&!isNaN(e)){e<0?s.value=0:e>100&&(s.value=100);var a=100/((t.params.maxValue-t.params.minValue)/t.params.step),o=Math.round(e/a)*a*(t.params.maxValue-t.params.minValue)*.01+t.params.minValue;o=parseFloat(o.toFixed(t.params.precision)),r("update:modelValue",o),n.value||t.modelValue===d.value||(d.value=t.modelValue)}};return{renderDom:function(){return(0,e.createVNode)("div",{class:["bk-slider-button",t.params.vertical?"vertical":"horizontal",{grabbing:n.value}],ref:V,tabindex:"0",style:g.value,onClick:function(e){return e.stopPropagation()},onMousedown:x},[Boolean(y.value.content)?(0,e.createVNode)(c(),{content:y.value.content,theme:"dark",placement:y.value.placement,boundary:document.body},{default:function(){return[(0,e.createVNode)("div",{class:["slider-button",{"slider-button-disable":t.params.disable}]},null)]}}):(0,e.createVNode)("div",{class:["slider-button",{"slider-button-disable":t.params.disable}]},null),t.params.showButtonLabel&&!t.params.showIntervalLabel?(0,e.createVNode)("div",{class:["slider-button-label",t.params.vertical?"vertical":"horizontal"]},[w.value]):void 0])},setPosition:C,tip:y}},render:function(){return this.renderDom()}});var v=function(e,t,a){e&&t&&a&&e.addEventListener(t,a,!1)},m=function(e,t,a){e&&t&&a&&e.removeEventListener(t,a,!1)};const d=(0,e.defineComponent)({name:"Slider",props:{modelValue:o.PropTypes.oneOfType([o.PropTypes.array,o.PropTypes.number]),extCls:{type:String,default:""},vertical:{type:Boolean,default:!1},height:{type:String,default:"200px"},disable:{type:Boolean,default:!1},showTip:{type:Boolean,default:!1},maxValue:{type:[Number],default:100},minValue:{type:[Number],default:0},step:{type:[Number],default:1},range:{type:Boolean,default:!1},showInterval:{type:Boolean,default:!1},showIntervalLabel:{type:Boolean,default:!1},showButtonLabel:{type:Boolean,default:!1},showBetweenLabel:{type:Boolean,default:!1},showInput:{type:Boolean,default:!1},customContent:{type:Object,default:null},formatterLabel:{type:Function,default:function(e){return e}},formatterButtonLabel:{type:Function,default:function(e){return e}},formatterTipLabel:{type:Function,default:function(e){return e}}},emits:["update:modelValue","change"],setup:function(t,r){var o=this,u=r.slots,l=r.emit,i=(0,e.ref)(1),c=(0,e.ref)(null),m=(0,e.ref)(null),d=(0,e.ref)(null),f=(0,e.ref)(0),p=(0,e.ref)(0),h=(0,e.ref)(null),V=(0,e.ref)(null),y=(0,e.ref)(null),b=(0,e.ref)(null),g=(0,e.computed)((function(){var e=[t.minValue,t.maxValue,t.step].map((function(e){var t="".concat(e).split(".")[1];return t?t.length:0}));return Math.max.apply(null,e)})),w=(0,e.computed)((function(){return Math.min(c.value,m.value)})),x=(0,e.computed)((function(){return Math.max(c.value,m.value)})),L=(0,e.computed)((function(){return t.range?"".concat(100*(x.value-w.value)/(t.maxValue-t.minValue),"%"):"".concat(100*(c.value-t.minValue)/(t.maxValue-t.minValue),"%")})),N=(0,e.computed)((function(){return t.range?"".concat(100*(w.value-t.minValue)/(t.maxValue-t.minValue),"%"):"0%"})),k=(0,e.computed)((function(){return t.vertical?{height:L.value,bottom:N.value}:{width:L.value,left:N.value}})),C=(0,e.computed)((function(){if(!t.showInterval||t.minValue>t.maxValue)return[];if(0===t.step)return console.warn("WARNNING:step should not be 0"),[];for(var e=(t.maxValue-t.minValue)/t.step,a=100*t.step/(t.maxValue-t.minValue),r=[],n=1;n<e;n++)r.push(n*a);return t.range?r.filter((function(e){return e<100*(w.value-t.minValue)/(t.maxValue-t.minValue)||e>100*(x.value-t.minValue)/(t.maxValue-t.minValue)})):r.filter((function(e){return e>100*(c.value-t.minValue)/(t.maxValue-t.minValue)}))})),E=(0,e.computed)((function(){return t.vertical?{height:t.height,width:"4px"}:{}})),j=(0,e.computed)((function(){if(!t.showIntervalLabel)return[];if(0===t.step)return console.warn("WARNNING:step should not be 0"),[];for(var e=100*t.step/(t.maxValue-t.minValue),a=[],r=t.minValue,n=0;r<=t.maxValue;r+=t.step,n++){var o={stepWidth:n*e,stepLabel:t.formatterLabel(r)};a.push(o)}return a})),B=(0,e.computed)((function(){return Array.isArray(t.modelValue)})),T=(0,e.computed)((function(){return t.customContent?Object.keys(t.customContent).sort((function(e,t){return Number(e)-Number(t)})).filter((function(e){return Number(e)>=t.minValue&&Number(e)<=t.maxValue})).map((function(e){var a=t.customContent[e].tip,r=t.customContent[e].label;return{tip:a||r||"",label:r||"",percent:(Number(e)-t.minValue)/(t.maxValue-t.minValue)*100}})):[]})),O=(0,e.computed)((function(){return{vertical:t.vertical,showTip:t.showTip,disable:t.disable,maxValue:t.maxValue,minValue:t.minValue,step:t.step,precision:g.value,showButtonLabel:t.showButtonLabel,formatterButtonLabel:t.formatterButtonLabel,showIntervalLabel:t.showIntervalLabel,customContent:t.customContent,sliderSize:i.value,formatterTipLabel:t.formatterTipLabel}}));(0,e.watch)((function(){return t.modelValue}),(function(){I()})),(0,e.watch)((function(){return c.value}),(function(e){t.range?l("update:modelValue",[w.value,x.value]):l("update:modelValue",e),f.value=e})),(0,e.watch)((function(){return m.value}),(function(e){l("update:modelValue",[w.value,x.value]),p.value=e})),(0,e.onMounted)((function(){t.range?(Array.isArray(t.modelValue)?(c.value=Math.max(t.minValue,Number(t.modelValue[0])),m.value=Math.min(t.maxValue,Number(t.modelValue[1]))):(c.value=t.minValue,m.value=t.maxValue),d.value=[c.value,m.value]):("number"!=typeof t.modelValue||isNaN(t.modelValue)?c.value=t.minValue:c.value=Math.min(t.maxValue,Math.max(t.minValue,t.modelValue)),d.value=c.value),S(),v(window,"resize",S())}));var S=function(){h.value&&(i.value=h.value["client".concat(t.vertical?"Height":"Width")])},P=function(e){var a,r;if(e.stopPropagation(),!t.disable){if(S(),t.vertical){var n=null===(a=h.value)||void 0===a?void 0:a.getBoundingClientRect().bottom;F((n-e.clientY)/i.value*100)}else{var o=null===(r=h.value)||void 0===r?void 0:r.getBoundingClientRect().left;F((e.clientX-o)/i.value*100)}M()}},_=function(){return t.range?![w.value,x.value].every((function(e,t){return e===d.value[t]})):t.modelValue!==d.value},I=function(){if(t.minValue>t.maxValue)console.error("min should not be greater than max.");else{var e=t.modelValue;t.range&&Array.isArray(e)?e[1]<t.minValue?l("update:modelValue",[t.minValue,t.minValue]):e[0]>t.maxValue?l("update:modelValue",[t.maxValue,t.maxValue]):e[0]<t.minValue?l("update:modelValue",[t.minValue,e[1]]):e[1]>t.maxValue?l("update:modelValue",[e[0],t.maxValue]):(c.value=Number(e[0]),m.value=Number(e[1]),_()&&(d.value=e.slice())):t.range||"number"!=typeof e||isNaN(e)||(e<t.minValue?l("update:modelValue",t.minValue):e>t.maxValue?l("update:modelValue",t.maxValue):(c.value=e,_()&&(d.value=e)))}},M=function(){return r=o,n=void 0,u=void 0,i=a().mark((function r(){return a().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,e.nextTick)();case 2:l("change",t.range?[w.value,x.value]:t.modelValue);case 3:case"end":return a.stop()}}),r)})),new(u||(u=Promise))((function(e,t){function a(e){try{l(i.next(e))}catch(e){t(e)}}function o(e){try{l(i.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):(r=t.value,r instanceof u?r:new u((function(e){e(r)}))).then(a,o)}l((i=i.apply(r,n||[])).next())}));var r,n,u,i},z=function(e){return t.vertical?{bottom:"".concat(e,"%")}:{left:"".concat(e,"%")}},F=function(e){if(t.range){var a=t.minValue+e*(t.maxValue-t.minValue)/100;Math.abs(w.value-a)<Math.abs(x.value-a)?b.value=c.value<m.value?V.value:y.value:b.value=c.value>m.value?V.value:y.value,b.value.setPosition(e)}else V.value.setPosition(e)},A=function(e){if(""!==e){var a=parseFloat(e);a<t.minValue?(f.value=t.minValue,c.value=t.minValue):a>t.maxValue?(f.value=t.maxValue,c.value=t.maxValue):c.value=a}},G=function(e){if(""!==e){var a=parseFloat(e);a<t.minValue?(p.value=t.minValue,m.value=t.minValue):a>t.maxValue?(p.value=t.maxValue,m.value=t.maxValue):m.value=a}},R=function(e){var a;return a="start"===e?t.vertical?t.maxValue:t.minValue:t.vertical?t.minValue:t.maxValue,t.showButtonLabel&&[c.value,m.value].includes(a)?"0":"1"};return{renderDom:function(){var a,r;return(0,e.createVNode)("div",{class:["bk-slider",t.extCls]},[null===(a=u.start)||void 0===a?void 0:a.call(u),(0,e.createVNode)("div",{class:"bk-slider-runway",ref:h,style:E.value,onClick:P},[(0,e.createVNode)("div",{class:["bk-slider-bar",t.vertical?"vertical":"horizontal",{disable:t.disable}],style:k.value},null),t.showInterval?C.value.map((function(a,r){return(0,e.createVNode)("div",{key:r,class:["bk-slider-interval",{vertical:t.vertical}],style:z(a)},null)})):void 0,t.customContent?T.value.map((function(a,r){return(0,e.createVNode)("div",{key:r,class:["bk-slider-interval",{vertical:t.vertical}],style:z(a.percent)},null)})):void 0,t.showBetweenLabel||t.showIntervalLabel||t.customContent?(0,e.createVNode)("div",{class:["bk-slider-labels",t.vertical?"vertical":"horizontal"]},[t.showBetweenLabel?[(0,e.createVNode)("div",{class:"label-start",style:[{opacity:R("start")}]},[t.formatterLabel(t.minValue)]),(0,e.createVNode)("div",{class:"label-end",style:[{opacity:R("end")}]},[t.formatterLabel(t.maxValue)])]:t.showIntervalLabel?j.value.map((function(a,r){return(0,e.createVNode)("div",{class:["bk-slider-label",t.vertical?"vertical":"horizontal"],key:r,style:z(a.stepWidth)},[a.stepLabel])})):t.customContent?T.value.map((function(a,r){return(0,e.createVNode)("div",{class:["bk-slider-label",t.vertical?"vertical":"horizontal"],key:r,style:z(a.percent)},[a.label])})):void 0]):void 0,(0,e.createVNode)(s,{modelValue:c.value,"onUpdate:modelValue":function(e){return c.value=e},ref:V,params:O.value,onEmitChange:M,onResetSize:S},null),t.range?(0,e.createVNode)(s,{modelValue:m.value,"onUpdate:modelValue":function(e){return m.value=e},ref:y,params:O.value,onEmitChange:M,onResetSize:S},null):void 0]),t.showInput&&!t.vertical?(0,e.createVNode)("div",{class:"bk-slider-input"},[(0,e.createVNode)("div",{class:"input-item"},[(0,e.createVNode)(n(),{type:"number",modelValue:f.value,max:t.maxValue,min:t.minValue,onChange:A},null)]),B.value&&m.value?[(0,e.createVNode)("div",{class:"input-center"},[(0,e.createTextVNode)("~")]),(0,e.createVNode)("div",{class:"input-item"},[(0,e.createVNode)(n(),{type:"number",modelValue:p.value,max:t.maxValue,min:t.minValue,onChange:G},null)])]:void 0]):void 0,null===(r=u.end)||void 0===r?void 0:r.call(u)])}}},render:function(){return this.renderDom()}});d.install=function(e){e.component(d.name,d)};const f=d})(),l})()));
|
@@ -0,0 +1,80 @@
|
|
1
|
+
/**
|
2
|
+
* Tencent is pleased to support the open source community by making
|
3
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
4
|
+
*
|
5
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
6
|
+
*
|
7
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
8
|
+
*
|
9
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
10
|
+
*
|
11
|
+
* ---------------------------------------------------
|
12
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
13
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
14
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
15
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
16
|
+
*
|
17
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
18
|
+
* the Software.
|
19
|
+
*
|
20
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
21
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
23
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
24
|
+
* IN THE SOFTWARE.
|
25
|
+
*/
|
26
|
+
import { PropType } from 'vue';
|
27
|
+
interface Params {
|
28
|
+
vertical: boolean;
|
29
|
+
showTip: boolean;
|
30
|
+
disable: boolean;
|
31
|
+
maxValue: number;
|
32
|
+
minValue: number;
|
33
|
+
step: number;
|
34
|
+
precision: number;
|
35
|
+
showButtonLabel: boolean;
|
36
|
+
formatterButtonLabel: Function;
|
37
|
+
showIntervalLabel: boolean;
|
38
|
+
customContent: {
|
39
|
+
[propName: string]: {
|
40
|
+
label?: string;
|
41
|
+
tip?: string;
|
42
|
+
};
|
43
|
+
};
|
44
|
+
sliderSize: number;
|
45
|
+
formatterTipLabel: Function;
|
46
|
+
}
|
47
|
+
declare const _default: import("vue").DefineComponent<{
|
48
|
+
modelValue: {
|
49
|
+
type: NumberConstructor;
|
50
|
+
default: number;
|
51
|
+
};
|
52
|
+
params: {
|
53
|
+
type: PropType<Params>;
|
54
|
+
default: () => {};
|
55
|
+
};
|
56
|
+
}, {
|
57
|
+
renderDom: () => JSX.Element;
|
58
|
+
setPosition: (position: number) => void;
|
59
|
+
tip: import("vue").ComputedRef<{
|
60
|
+
content: any;
|
61
|
+
placement: string;
|
62
|
+
}>;
|
63
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "emitChange" | "resetSize")[], "update:modelValue" | "emitChange" | "resetSize", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
64
|
+
modelValue: {
|
65
|
+
type: NumberConstructor;
|
66
|
+
default: number;
|
67
|
+
};
|
68
|
+
params: {
|
69
|
+
type: PropType<Params>;
|
70
|
+
default: () => {};
|
71
|
+
};
|
72
|
+
}>> & {
|
73
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
74
|
+
onEmitChange?: (...args: any[]) => any;
|
75
|
+
onResetSize?: (...args: any[]) => any;
|
76
|
+
}, {
|
77
|
+
modelValue: number;
|
78
|
+
params: Params;
|
79
|
+
}>;
|
80
|
+
export default _default;
|
@@ -0,0 +1,149 @@
|
|
1
|
+
.bk-slider {
|
2
|
+
display: flex;
|
3
|
+
flex-direction: row;
|
4
|
+
align-items: center;
|
5
|
+
}
|
6
|
+
.bk-slider .bk-slider-runway {
|
7
|
+
position: relative;
|
8
|
+
width: 100%;
|
9
|
+
height: 4px;
|
10
|
+
vertical-align: middle;
|
11
|
+
cursor: pointer;
|
12
|
+
background: #dcdee5;
|
13
|
+
border-radius: 2px;
|
14
|
+
opacity: 1;
|
15
|
+
}
|
16
|
+
.bk-slider .bk-slider-runway .bk-slider-bar {
|
17
|
+
position: absolute;
|
18
|
+
height: 4px;
|
19
|
+
background: #3a84ff;
|
20
|
+
border-bottom-left-radius: 3px;
|
21
|
+
border-top-left-radius: 3px;
|
22
|
+
}
|
23
|
+
.bk-slider .bk-slider-runway .bk-slider-bar.vertical {
|
24
|
+
width: 4px;
|
25
|
+
}
|
26
|
+
.bk-slider .bk-slider-runway .bk-slider-bar.horizontal {
|
27
|
+
height: 4px;
|
28
|
+
}
|
29
|
+
.bk-slider .bk-slider-runway .disable {
|
30
|
+
background: #979ba5;
|
31
|
+
}
|
32
|
+
.bk-slider .bk-slider-runway .bk-slider-labels {
|
33
|
+
position: relative;
|
34
|
+
}
|
35
|
+
.bk-slider .bk-slider-runway .bk-slider-labels.vertical {
|
36
|
+
left: 18px;
|
37
|
+
display: flex;
|
38
|
+
width: 10px;
|
39
|
+
height: 100%;
|
40
|
+
flex-direction: column;
|
41
|
+
justify-content: space-between;
|
42
|
+
}
|
43
|
+
.bk-slider .bk-slider-runway .bk-slider-labels.horizontal {
|
44
|
+
top: 10px;
|
45
|
+
display: flex;
|
46
|
+
width: 100%;
|
47
|
+
height: 10px;
|
48
|
+
flex-direction: row;
|
49
|
+
justify-content: space-between;
|
50
|
+
}
|
51
|
+
.bk-slider .bk-slider-runway .bk-slider-labels .bk-slider-label {
|
52
|
+
position: absolute;
|
53
|
+
display: flex;
|
54
|
+
width: 10px;
|
55
|
+
height: 10px;
|
56
|
+
text-align: center;
|
57
|
+
white-space: nowrap;
|
58
|
+
align-items: center;
|
59
|
+
justify-content: center;
|
60
|
+
}
|
61
|
+
.bk-slider .bk-slider-runway .bk-slider-labels .bk-slider-label.vertical {
|
62
|
+
left: 10px;
|
63
|
+
transform: translateY(50%);
|
64
|
+
}
|
65
|
+
.bk-slider .bk-slider-runway .bk-slider-labels .bk-slider-label.horizontal {
|
66
|
+
top: 10px;
|
67
|
+
transform: translateX(-50%);
|
68
|
+
}
|
69
|
+
.bk-slider .bk-slider-interval {
|
70
|
+
position: absolute;
|
71
|
+
width: 4px;
|
72
|
+
height: 4px;
|
73
|
+
background-color: #fff;
|
74
|
+
border-radius: 100%;
|
75
|
+
transform: translateX(-50%);
|
76
|
+
}
|
77
|
+
.bk-slider .bk-slider-interval.vertical {
|
78
|
+
left: 2px;
|
79
|
+
}
|
80
|
+
.bk-slider-input {
|
81
|
+
display: flex;
|
82
|
+
margin: 0 0 0 28px;
|
83
|
+
flex-direction: row;
|
84
|
+
align-items: center;
|
85
|
+
}
|
86
|
+
.bk-slider-input .input-item {
|
87
|
+
width: 92px;
|
88
|
+
}
|
89
|
+
.bk-slider-input .input-center {
|
90
|
+
margin: 0 7px;
|
91
|
+
}
|
92
|
+
.bk-slider-button {
|
93
|
+
position: absolute;
|
94
|
+
z-index: 1001;
|
95
|
+
display: flex;
|
96
|
+
width: 24px;
|
97
|
+
height: 24px;
|
98
|
+
line-height: normal;
|
99
|
+
text-align: center;
|
100
|
+
background-color: transparent;
|
101
|
+
user-select: none;
|
102
|
+
justify-content: center;
|
103
|
+
align-items: center;
|
104
|
+
}
|
105
|
+
.bk-slider-button:hover {
|
106
|
+
cursor: grab;
|
107
|
+
}
|
108
|
+
.bk-slider-button.grabbing {
|
109
|
+
cursor: grabbing;
|
110
|
+
}
|
111
|
+
.bk-slider-button.vertical {
|
112
|
+
left: -10px;
|
113
|
+
transform: translateY(50%);
|
114
|
+
}
|
115
|
+
.bk-slider-button.horizontal {
|
116
|
+
top: -10px;
|
117
|
+
transform: translateX(-50%);
|
118
|
+
}
|
119
|
+
.bk-slider-button .slider-button {
|
120
|
+
width: 12px;
|
121
|
+
height: 12px;
|
122
|
+
background-color: #fff;
|
123
|
+
border: 2px solid #3a84ff;
|
124
|
+
border-radius: 50%;
|
125
|
+
transition: 0.2s;
|
126
|
+
user-select: none;
|
127
|
+
}
|
128
|
+
.bk-slider-button .slider-button-disable {
|
129
|
+
border: 2px solid #979ba5;
|
130
|
+
}
|
131
|
+
.bk-slider-button .slider-button:hover {
|
132
|
+
box-shadow: 0px 0px 0px 4px rgba(58, 132, 255, 0.3);
|
133
|
+
}
|
134
|
+
.bk-slider-button .slider-button:focus {
|
135
|
+
box-shadow: 0px 0px 10px 0px rgba(58, 132, 255, 0.9);
|
136
|
+
}
|
137
|
+
.bk-slider-button .slider-button-label {
|
138
|
+
position: absolute;
|
139
|
+
display: flex;
|
140
|
+
text-align: center;
|
141
|
+
align-items: center;
|
142
|
+
justify-content: center;
|
143
|
+
}
|
144
|
+
.bk-slider-button .slider-button-label.vertical {
|
145
|
+
left: 28px;
|
146
|
+
}
|
147
|
+
.bk-slider-button .slider-button-label.horizontal {
|
148
|
+
top: 20px;
|
149
|
+
}
|