bkui-vue 1.0.3-beta.9 → 2.0.1-beta.10
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/dist/index.cjs.js +162 -164
- package/dist/index.esm.js +31999 -29678
- package/dist/index.umd.js +162 -164
- package/dist/locale/en.esm.js +1 -1
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +3 -0
- package/lib/affix/index.js +7 -7
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/alert.variable.css +3 -0
- package/lib/alert/index.d.ts +11 -11
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/backtop.variable.css +3 -0
- package/lib/backtop/index.d.ts +3 -3
- package/lib/backtop/index.js +6 -6
- package/lib/badge/badge.variable.css +3 -0
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.variable.css +3 -0
- package/lib/button/button.d.ts +7 -7
- package/lib/button/button.variable.css +3 -0
- package/lib/button/index.d.ts +8 -8
- package/lib/button/index.js +6 -6
- package/lib/card/card.variable.css +3 -0
- package/lib/cascader/cascader-panel.d.ts +1 -1
- package/lib/cascader/cascader.css +3 -3
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/cascader.less +4 -4
- package/lib/cascader/cascader.variable.css +6 -3
- package/lib/cascader/index.js +35 -36
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox.variable.css +3 -0
- package/lib/checkbox/index.js +7 -7
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/code-diff.variable.css +3 -0
- package/lib/code-diff/index.js +8 -8
- package/lib/collapse/collapse.css +11 -0
- package/lib/collapse/collapse.d.ts +11 -0
- package/lib/collapse/collapse.less +15 -1
- package/lib/collapse/collapse.variable.css +14 -0
- package/lib/collapse/index.d.ts +23 -0
- package/lib/collapse/index.js +11 -3
- package/lib/collapse/props.d.ts +8 -0
- package/lib/collapse/utils.d.ts +2 -2
- package/lib/collapse-transition/collapse-transition.variable.css +3 -0
- package/lib/color-picker/color-picker.css +3 -3
- package/lib/color-picker/color-picker.less +3 -3
- package/lib/color-picker/color-picker.variable.css +6 -3
- package/lib/color-picker/index.js +45 -45
- package/lib/components.d.ts +32 -30
- package/lib/components.js +31 -29
- package/lib/config-provider/config-provider.d.ts +3 -0
- package/lib/config-provider/config-provider.variable.css +3 -0
- package/lib/config-provider/index.d.ts +5 -1
- package/lib/config-provider/token.d.ts +1 -0
- package/lib/container/container.variable.css +3 -0
- package/lib/container/index.js +6 -6
- package/lib/date-picker/base/date-table.d.ts +1 -1
- package/lib/date-picker/base/month-table.d.ts +3 -3
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/year-table.d.ts +3 -3
- package/lib/date-picker/date-picker.d.ts +1 -0
- package/lib/date-picker/date-picker.variable.css +3 -0
- package/lib/date-picker/index.d.ts +3 -0
- package/lib/date-picker/index.js +340 -224
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +2 -64
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +1 -1
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/props.d.ts +1 -1
- package/lib/date-picker/time-picker.d.ts +1 -0
- package/lib/date-picker/utils.d.ts +9 -1
- package/lib/dialog/dialog.css +172 -150
- package/lib/dialog/dialog.d.ts +55 -124
- package/lib/dialog/dialog.less +51 -124
- package/lib/dialog/dialog.variable.css +175 -150
- package/lib/dialog/index.d.ts +132 -296
- package/lib/dialog/index.js +244 -246
- package/lib/dialog/props.d.ts +16 -41
- package/lib/directives/index.d.ts +3 -3
- package/lib/directives/index.js +166 -167
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +2 -2
- package/lib/divider/divider.d.ts +5 -5
- package/lib/divider/divider.variable.css +3 -0
- package/lib/divider/index.d.ts +11 -11
- package/lib/divider/index.js +2 -2
- package/lib/divider/props.d.ts +2 -2
- package/lib/dropdown/dropdown.css +3 -1
- package/lib/dropdown/dropdown.d.ts +5 -5
- package/lib/dropdown/dropdown.variable.css +6 -1
- package/lib/dropdown/index.d.ts +11 -11
- package/lib/dropdown/index.js +7 -7
- package/lib/exception/exception.d.ts +9 -9
- package/lib/exception/exception.variable.css +3 -0
- package/lib/exception/index.d.ts +11 -11
- package/lib/exception/index.js +10 -10
- package/lib/exception/typings/index.d.ts +1 -1
- package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
- package/lib/fixed-navbar/index.js +2 -2
- package/lib/form/form.d.ts +2 -2
- package/lib/form/form.variable.css +3 -0
- package/lib/form/index.js +17 -15
- package/lib/form/type.d.ts +2 -2
- package/lib/icon/image-fill.js +82 -167
- package/lib/icon/img-error.js +82 -167
- package/lib/icon/img-placehoulder.js +82 -167
- package/lib/icon/index.d.ts +12 -11
- package/lib/icon/index.js +87 -2427
- package/lib/icon/info-line.js +82 -167
- package/lib/icon/info.js +82 -167
- package/lib/icon/left-shape.js +82 -167
- package/lib/icon/left-turn-line.js +82 -167
- package/lib/icon/loading.js +82 -167
- package/lib/icon/narrow-line.js +82 -167
- package/lib/icon/original.js +82 -167
- package/lib/icon/pdf-fill.js +82 -167
- package/lib/icon/play-shape.js +82 -167
- package/lib/icon/plus.js +82 -167
- package/lib/icon/ppt-fill.js +82 -167
- package/lib/icon/qq.js +82 -167
- package/lib/icon/right-shape.js +82 -167
- package/lib/icon/right-turn-line.js +82 -167
- package/lib/icon/search.js +82 -167
- package/lib/icon/share.js +82 -167
- package/lib/icon/spinner.js +82 -167
- package/lib/icon/success.js +82 -167
- package/lib/icon/switcher-loading.js +82 -167
- package/lib/icon/text-all.d.ts +4 -0
- package/lib/icon/text-all.js +191 -0
- package/lib/icon/text-file.js +82 -167
- package/lib/icon/text-fill.js +82 -167
- package/lib/icon/transfer.js +82 -167
- package/lib/icon/tree-application-shape.js +82 -167
- package/lib/icon/unfull-screen.js +82 -167
- package/lib/icon/unvisible.js +82 -167
- package/lib/icon/up-shape.js +82 -167
- package/lib/icon/upload.js +82 -167
- package/lib/icon/video-fill.js +82 -167
- package/lib/icon/warn.js +82 -167
- package/lib/icon/weixin-pro.js +82 -167
- package/lib/icon/weixin.js +82 -167
- package/lib/image/image-viewer.d.ts +1 -1
- package/lib/image/image-viewer.variable.css +3 -0
- package/lib/image/image.variable.css +3 -0
- package/lib/image/index.js +25 -22
- package/lib/index.d.ts +3 -3
- package/lib/index.js +3 -3
- package/lib/info-box/index.d.ts +2 -2
- package/lib/info-box/index.js +257 -516
- package/lib/info-box/info-box.css +58 -28
- package/lib/info-box/info-box.d.ts +25 -23
- package/lib/info-box/info-box.less +82 -51
- package/lib/info-box/info-box.variable.css +61 -28
- package/lib/info-box/render-component.d.ts +4 -0
- package/lib/input/index.d.ts +15 -15
- package/lib/input/index.js +23 -17
- package/lib/input/input.d.ts +15 -15
- package/lib/input/input.variable.css +3 -0
- package/lib/link/index.d.ts +11 -11
- package/lib/link/index.js +3 -3
- package/lib/link/link.d.ts +5 -5
- package/lib/link/link.variable.css +3 -0
- package/lib/loading/index.d.ts +4 -4
- package/lib/loading/index.js +6 -6
- package/lib/loading/loading.d.ts +6 -6
- package/lib/loading/loading.variable.css +3 -0
- package/lib/locale/index.d.ts +1 -1
- package/lib/locale/index.js +4 -2
- package/lib/locale/lang/en.d.ts +1 -0
- package/lib/menu/index.js +0 -1
- package/lib/menu/menu.variable.css +3 -0
- package/lib/menu/submenu.variable.css +3 -0
- package/lib/menu/utils.d.ts +3 -3
- package/lib/message/index.js +18 -18
- package/lib/message/message.variable.css +3 -0
- package/lib/message/messageConstructor.d.ts +11 -11
- package/lib/modal/hooks.d.ts +6 -0
- package/lib/modal/index.d.ts +44 -312
- package/lib/modal/index.js +286 -672
- package/lib/modal/mask.d.ts +6 -0
- package/lib/modal/modal.css +151 -76
- package/lib/modal/modal.d.ts +19 -117
- package/lib/modal/modal.less +103 -56
- package/lib/modal/modal.variable.css +154 -76
- package/lib/modal/props.mixin.d.ts +5 -41
- package/lib/navigation/index.js +20 -20
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/navigation/navigation.variable.css +3 -0
- package/lib/notify/index.js +4 -4
- package/lib/notify/notify.variable.css +3 -0
- package/lib/overflow-title/components/overflow-title.d.ts +9 -9
- package/lib/overflow-title/index.d.ts +19 -19
- package/lib/overflow-title/index.js +107 -63
- package/lib/overflow-title/props.d.ts +18 -18
- package/lib/pagination/index.js +16 -15
- package/lib/pagination/pagination.variable.css +3 -0
- package/lib/pagination/type.d.ts +1 -1
- package/lib/pagination/use-limit.d.ts +1 -1
- package/lib/pagination/use-total.d.ts +1 -1
- package/lib/plugin-popover/index.d.ts +1 -1
- package/lib/plugin-popover/index.js +62 -44
- package/lib/pop-confirm/index.js +17 -14
- package/lib/pop-confirm/pop-confirm.variable.css +3 -0
- package/lib/pop-confirm/props.d.ts +2 -2
- package/lib/popover/const.d.ts +3 -3
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +19 -19
- package/lib/popover/index.js +62 -44
- package/lib/popover/plugin-popover.d.ts +4 -1
- package/lib/popover/popover.css +3 -1
- package/lib/popover/popover.d.ts +7 -7
- package/lib/popover/popover.less +4 -1
- package/lib/popover/popover.variable.css +6 -1
- package/lib/popover/props.d.ts +4 -4
- package/lib/preset.d.ts +2 -0
- package/lib/process/index.js +3 -3
- package/lib/process/process.variable.css +3 -0
- package/lib/progress/index.d.ts +11 -11
- package/lib/progress/index.js +10 -10
- package/lib/progress/progress.d.ts +7 -7
- package/lib/progress/progress.variable.css +3 -0
- package/lib/radio/index.d.ts +29 -0
- package/lib/radio/index.js +49 -31
- package/lib/radio/radio-button.d.ts +10 -0
- package/lib/radio/radio-group.d.ts +10 -0
- package/lib/radio/radio.d.ts +10 -0
- package/lib/radio/radio.variable.css +3 -0
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.js +8 -8
- package/lib/rate/rate.css +27 -0
- package/lib/rate/rate.less +33 -0
- package/lib/rate/rate.variable.css +30 -0
- package/lib/resize-layout/index.d.ts +11 -11
- package/lib/resize-layout/index.js +8 -9
- package/lib/resize-layout/resize-layout.d.ts +5 -5
- package/lib/resize-layout/resize-layout.variable.css +3 -0
- package/lib/scrollbar/index.d.ts +15 -0
- package/lib/scrollbar/index.js +18762 -0
- package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +2 -0
- package/lib/scrollbar/scrollbar-core/helpers.d.ts +5 -0
- package/lib/scrollbar/scrollbar-core/index.d.ts +241 -0
- package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +5 -0
- package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +1 -0
- package/lib/scrollbar/scrollbar.css +75 -0
- package/lib/scrollbar/scrollbar.less +94 -0
- package/lib/{rate/star.variable.css → scrollbar/scrollbar.variable.css} +70 -19
- package/lib/search-select/index.d.ts +375 -16
- package/lib/search-select/index.js +754 -419
- package/lib/search-select/input.d.ts +14 -5
- package/lib/search-select/menu.d.ts +1 -1
- package/lib/search-select/search-select.css +20 -6
- package/lib/search-select/search-select.d.ts +129 -7
- package/lib/search-select/search-select.less +16 -12
- package/lib/search-select/search-select.variable.css +23 -6
- package/lib/search-select/selected.d.ts +117 -7
- package/lib/search-select/utils.d.ts +22 -9
- package/lib/select/index.d.ts +185 -67
- package/lib/select/index.js +1396 -136
- package/lib/select/option.d.ts +3 -1
- package/lib/select/pinyin/core.d.ts +14 -0
- package/lib/select/pinyin/dict.d.ts +34 -0
- package/lib/select/pinyin/index.d.ts +2 -0
- package/lib/select/select.css +56 -14
- package/lib/select/select.d.ts +74 -26
- package/lib/select/select.less +70 -21
- package/lib/select/select.variable.css +59 -14
- package/lib/select/selectTagInput.d.ts +13 -6
- package/lib/select/type.d.ts +4 -5
- package/lib/shared/index.d.ts +1 -2
- package/lib/shared/index.js +108 -96
- package/lib/shared/popover.d.ts +3 -3
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/utils.d.ts +12 -0
- package/lib/shared/vue-types.d.ts +51 -46
- package/lib/shared/z-index-manager.d.ts +6 -6
- package/lib/sideslider/index.d.ts +58 -188
- package/lib/sideslider/index.js +83 -57
- package/lib/sideslider/sideslider.css +26 -90
- package/lib/sideslider/sideslider.d.ts +26 -88
- package/lib/sideslider/sideslider.less +56 -132
- package/lib/sideslider/sideslider.variable.css +29 -90
- package/lib/slider/index.d.ts +19 -0
- package/lib/slider/index.js +64 -26
- package/lib/slider/slider.css +14 -0
- package/lib/slider/slider.d.ts +9 -0
- package/lib/slider/slider.less +15 -0
- package/lib/slider/slider.variable.css +17 -0
- package/lib/steps/index.d.ts +11 -11
- package/lib/steps/index.js +3 -3
- package/lib/steps/steps.d.ts +7 -7
- package/lib/steps/steps.variable.css +3 -0
- package/lib/styles/index.d.ts +0 -1
- package/lib/styles/mixins/animate.variable.css +3 -0
- package/lib/styles/mixins/popper.variable.css +3 -0
- package/lib/styles/mixins/scroll.variable.css +3 -0
- package/lib/styles/reset.css +1 -3
- package/lib/styles/reset.less +3 -6
- package/lib/styles/reset.variable.css +4 -3
- package/lib/styles/themes/themes.less +5 -0
- package/lib/swiper/index.js +5 -5
- package/lib/swiper/swiper.variable.css +3 -0
- package/lib/switcher/index.js +2 -2
- package/lib/switcher/switcher.d.ts +2 -2
- package/lib/switcher/switcher.variable.css +3 -0
- package/lib/tab/index.d.ts +22 -22
- package/lib/tab/index.js +15 -15
- package/lib/tab/props.d.ts +15 -15
- package/lib/tab/tab-nav.d.ts +10 -10
- package/lib/tab/tab.d.ts +10 -10
- package/lib/tab/tab.variable.css +3 -0
- package/lib/table/cache.d.ts +11 -3
- package/lib/table/components/table-cell.d.ts +3 -2
- package/lib/table/components/table-column.d.ts +30 -100
- package/lib/table/const.d.ts +12 -12
- package/lib/table/events.d.ts +21 -21
- package/lib/table/index.d.ts +220 -305
- package/lib/table/index.js +18165 -688
- package/lib/table/plugins/head-filter.css +8 -4
- package/lib/table/plugins/head-filter.less +6 -3
- package/lib/table/plugins/head-filter.variable.css +11 -4
- package/lib/table/plugins/head-sort.variable.css +3 -0
- package/lib/table/plugins/settings.variable.css +3 -0
- package/lib/table/plugins/use-active-columns.d.ts +2 -2
- package/lib/table/plugins/use-column-template.d.ts +7 -0
- package/lib/table/plugins/use-draggable.d.ts +2 -2
- package/lib/table/plugins/use-fixed-column.d.ts +1 -1
- package/lib/table/plugins/use-observer-resize.d.ts +5 -0
- package/lib/table/plugins/use-pagination.d.ts +3 -1
- package/lib/table/plugins/use-shift-key.d.ts +13 -0
- package/lib/table/props.d.ts +49 -39
- package/lib/table/table.css +112 -58
- package/lib/table/table.d.ts +58 -47
- package/lib/table/table.less +46 -58
- package/lib/table/table.variable.css +115 -58
- package/lib/table/use-attributes.d.ts +9 -46
- package/lib/table/use-column.d.ts +18 -139
- package/lib/table/use-common.d.ts +5 -5
- package/lib/table/use-render.d.ts +1 -1
- package/lib/table/utils.d.ts +6 -6
- package/lib/table-column/index.d.ts +127 -431
- package/lib/table-column/index.js +43 -117
- package/lib/tag/index.d.ts +11 -11
- package/lib/tag/index.js +2 -2
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag/tag.variable.css +3 -0
- package/lib/tag-input/common.d.ts +1 -1
- package/lib/tag-input/index.d.ts +12 -12
- package/lib/tag-input/index.js +30 -30
- package/lib/tag-input/tag-input.d.ts +6 -6
- package/lib/tag-input/tag-input.variable.css +3 -0
- package/lib/tag-input/tag-props.d.ts +3 -3
- package/lib/tag-input/tag-render.d.ts +1 -1
- package/lib/time-picker/index.d.ts +38 -35
- package/lib/time-picker/time-picker.variable.css +3 -0
- package/lib/timeline/index.d.ts +80 -44
- package/lib/timeline/index.js +56 -67
- package/lib/timeline/timeline.d.ts +46 -29
- package/lib/timeline/timeline.variable.css +3 -0
- package/lib/transfer/const.d.ts +2 -2
- package/lib/transfer/index.js +19 -19
- package/lib/transfer/transfer.css +9 -9
- package/lib/transfer/transfer.less +3 -3
- package/lib/transfer/transfer.variable.css +12 -9
- package/lib/tree/constant.d.ts +22 -20
- package/lib/tree/index.d.ts +64 -20
- package/lib/tree/index.js +17595 -72
- package/lib/tree/props.d.ts +24 -6
- package/lib/tree/tree.css +76 -2
- package/lib/tree/tree.d.ts +34 -8
- package/lib/tree/tree.less +1 -1
- package/lib/tree/tree.variable.css +79 -2
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-intersection-observer.d.ts +27 -0
- package/lib/tree/use-node-action.d.ts +2 -2
- package/lib/tree/use-node-attribute.d.ts +9 -0
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/tree/util.d.ts +1 -1
- package/lib/upload/index.d.ts +12 -0
- package/lib/upload/index.js +62 -65
- package/lib/upload/props.d.ts +4 -1
- package/lib/upload/upload-trigger.d.ts +6 -0
- package/lib/upload/upload.d.ts +6 -0
- package/lib/upload/upload.type.d.ts +7 -7
- package/lib/upload/upload.variable.css +3 -0
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/lib/virtual-render/index.d.ts +36 -9
- package/lib/virtual-render/index.js +295 -80
- package/lib/virtual-render/props.d.ts +16 -0
- package/lib/virtual-render/use-fix-top.d.ts +2 -7
- package/lib/virtual-render/use-scrollbar.d.ts +24 -0
- package/lib/virtual-render/v-virtual-render.d.ts +2 -1
- package/lib/virtual-render/virtual-render.css +76 -2
- package/lib/virtual-render/virtual-render.d.ts +16 -3
- package/lib/virtual-render/virtual-render.less +3 -3
- package/lib/virtual-render/virtual-render.variable.css +79 -2
- package/package.json +13 -49
- package/lib/rate/star.css +0 -27
- package/lib/rate/star.less +0 -34
- package/lib/shared/mask.d.ts +0 -11
@@ -1,149 +1,73 @@
|
|
1
1
|
@import '../styles/themes/themes.less';
|
2
2
|
|
3
3
|
.@{bk-prefix}-sideslider {
|
4
|
-
position
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
left: 0;
|
9
|
-
}
|
10
|
-
|
11
|
-
/* fade-center */
|
12
|
-
|
13
|
-
/* slide过渡动画 */
|
14
|
-
.slide-enter-active,
|
15
|
-
.slide-leave-active,
|
16
|
-
.@{bk-prefix}-modal-body {
|
17
|
-
transform: translateX(0);
|
18
|
-
transition: transform .25s;
|
19
|
-
}
|
20
|
-
|
21
|
-
.slide-enter-active {
|
22
|
-
animation: slider-fade-in .25s;
|
23
|
-
}
|
24
|
-
|
25
|
-
.slide-leave-active {
|
26
|
-
animation: slider-fade-in .25s reverse;
|
27
|
-
}
|
28
|
-
|
29
|
-
.slide-enter-from,
|
30
|
-
.slide-leave-to {
|
31
|
-
&.left {
|
32
|
-
transform: translateX(-100%);
|
33
|
-
transition: transform .25s;
|
4
|
+
&.is-position-right {
|
5
|
+
.@{bk-prefix}-modal-wrapper {
|
6
|
+
right: 0;
|
7
|
+
}
|
34
8
|
}
|
35
9
|
|
36
|
-
&.
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
}
|
10
|
+
&.is-position-left {
|
11
|
+
.@{bk-prefix}-modal-wrapper {
|
12
|
+
left: 0;
|
13
|
+
}
|
41
14
|
|
42
|
-
|
43
|
-
|
44
|
-
|
15
|
+
.@{bk-prefix}-sideslider-header {
|
16
|
+
flex-direction: row-reverse;
|
17
|
+
}
|
45
18
|
}
|
46
19
|
|
47
|
-
|
48
|
-
|
20
|
+
.@{bk-prefix}-modal-wrapper {
|
21
|
+
position: fixed;
|
22
|
+
top: 0;
|
23
|
+
bottom: 0;
|
49
24
|
}
|
50
|
-
}
|
51
|
-
|
52
|
-
.@{bk-prefix}-modal-ctx {
|
53
|
-
&.@{bk-prefix}-sideslider-wrapper {
|
54
|
-
.@{bk-prefix}-modal-wrapper {
|
55
|
-
position: absolute;
|
56
|
-
top: 0;
|
57
|
-
bottom: 0;
|
58
|
-
left: auto;
|
59
|
-
transform: initial;
|
60
|
-
|
61
|
-
&.scroll-able {
|
62
|
-
.@{bk-prefix}-modal-content {
|
63
|
-
overflow: auto;
|
64
|
-
height: 100%;
|
65
|
-
}
|
66
|
-
}
|
67
|
-
|
68
|
-
.@{bk-prefix}-sideslider-header {
|
69
|
-
width: 100%;
|
70
|
-
height: 52px;
|
71
|
-
background: #fff;
|
72
|
-
border-bottom: 1px solid #dcdee5;
|
73
|
-
|
74
|
-
.@{bk-prefix}-sideslider-close {
|
75
|
-
position: absolute;
|
76
|
-
top: 0;
|
77
|
-
width: 30px;
|
78
|
-
height: 52px;
|
79
|
-
font-size: 24px;
|
80
|
-
line-height: 52px;
|
81
|
-
color: #fff;
|
82
|
-
text-align: center;
|
83
|
-
cursor: pointer;
|
84
|
-
background-color: @primary-color;
|
85
|
-
|
86
|
-
&.right {
|
87
|
-
left: 0;
|
88
|
-
|
89
|
-
&::before {
|
90
|
-
top: 50%;
|
91
|
-
left: 50%;
|
92
|
-
display: inline-block;
|
93
|
-
width: 8px;
|
94
|
-
height: 8px;
|
95
|
-
border-top: solid 2px #fff;
|
96
|
-
border-right: solid 2px #fff;
|
97
|
-
content: '';
|
98
|
-
transform: translate(-50%, -50%) rotate(45deg);
|
99
|
-
}
|
100
|
-
}
|
101
|
-
|
102
|
-
&.left {
|
103
|
-
right: 0;
|
104
|
-
|
105
|
-
&::before {
|
106
|
-
top: 50%;
|
107
|
-
left: 50%;
|
108
|
-
display: inline-block;
|
109
|
-
width: 8px;
|
110
|
-
height: 8px;
|
111
|
-
border-top: solid 2px #fff;
|
112
|
-
border-left: solid 2px #fff;
|
113
|
-
content: '';
|
114
|
-
transform: translate(50%, -50%) rotate(-45deg);
|
115
|
-
}
|
116
|
-
}
|
117
|
-
|
118
|
-
|
119
|
-
}
|
120
|
-
|
121
|
-
.@{bk-prefix}-sideslider-title {
|
122
|
-
display: flex;
|
123
|
-
height: 52px;
|
124
|
-
padding-left: 30px;
|
125
|
-
font-size: 16px;
|
126
|
-
color: #313238;
|
127
|
-
align-items: center;
|
128
|
-
|
129
|
-
&.right {
|
130
|
-
width: 100%;
|
131
|
-
padding: 0 0 0 30+16px;
|
132
|
-
}
|
133
|
-
}
|
134
|
-
}
|
135
25
|
|
26
|
+
.@{bk-prefix}-modal-footer {
|
27
|
+
&.is-fixed {
|
136
28
|
.@{bk-prefix}-sideslider-footer {
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
background: #fff;
|
141
|
-
border-top: 1px solid transparent;
|
142
|
-
align-items: center;
|
29
|
+
margin: 0;
|
30
|
+
background: #fafbfd;
|
31
|
+
box-shadow: 0 -1px 0 0 #dcdee5;
|
143
32
|
box-shadow: rgb(0 0 0 / 6%) 0 -2px 4px 0;
|
144
33
|
}
|
145
34
|
}
|
146
|
-
|
147
35
|
}
|
148
36
|
}
|
149
37
|
|
38
|
+
.@{bk-prefix}-sideslider-header {
|
39
|
+
display: flex;
|
40
|
+
height: 52px;
|
41
|
+
background: #fff;
|
42
|
+
border-bottom: 1px solid #dcdee5;
|
43
|
+
}
|
44
|
+
|
45
|
+
.@{bk-prefix}-sideslider-close {
|
46
|
+
display: flex;
|
47
|
+
align-items: center;
|
48
|
+
justify-content: center;
|
49
|
+
width: 30px;
|
50
|
+
font-size: 26px;
|
51
|
+
color: #fff;
|
52
|
+
cursor: pointer;
|
53
|
+
background-color: @primary-color;
|
54
|
+
}
|
55
|
+
|
56
|
+
.@{bk-prefix}-sideslider-title {
|
57
|
+
display: flex;
|
58
|
+
padding-left: 16px;
|
59
|
+
font-size: 16px;
|
60
|
+
color: #313238;
|
61
|
+
align-items: center;
|
62
|
+
flex: 1;
|
63
|
+
}
|
64
|
+
|
65
|
+
.@{bk-prefix}-sideslider-footer {
|
66
|
+
display: flex;
|
67
|
+
width: 100%;
|
68
|
+
height: 48px;
|
69
|
+
padding: 0 24px;
|
70
|
+
margin-top: 24px;
|
71
|
+
background: #fff;
|
72
|
+
align-items: center;
|
73
|
+
}
|
@@ -12,6 +12,7 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
@@ -123,121 +124,59 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
|
-
.bk-sideslider {
|
128
|
-
position: fixed;
|
129
|
-
top: 0;
|
130
|
+
.bk-sideslider.is-position-right .bk-modal-wrapper {
|
130
131
|
right: 0;
|
131
|
-
bottom: 0;
|
132
|
-
left: 0;
|
133
|
-
}
|
134
|
-
/* fade-center */
|
135
|
-
/* slide过渡动画 */
|
136
|
-
.slide-enter-active,
|
137
|
-
.slide-leave-active,
|
138
|
-
.bk-modal-body {
|
139
|
-
transform: translateX(0);
|
140
|
-
transition: transform 0.25s;
|
141
|
-
}
|
142
|
-
.slide-enter-active {
|
143
|
-
animation: slider-fade-in 0.25s;
|
144
|
-
}
|
145
|
-
.slide-leave-active {
|
146
|
-
animation: slider-fade-in 0.25s reverse;
|
147
132
|
}
|
148
|
-
.
|
149
|
-
|
150
|
-
transform: translateX(-100%);
|
151
|
-
transition: transform 0.25s;
|
152
|
-
}
|
153
|
-
.slide-enter-from.right,
|
154
|
-
.slide-leave-to.right {
|
155
|
-
transform: translateX(100%);
|
156
|
-
transition: transform 0.25s;
|
133
|
+
.bk-sideslider.is-position-left .bk-modal-wrapper {
|
134
|
+
left: 0;
|
157
135
|
}
|
158
|
-
|
159
|
-
|
160
|
-
opacity: 0;
|
161
|
-
}
|
162
|
-
100% {
|
163
|
-
opacity: 1;
|
164
|
-
}
|
136
|
+
.bk-sideslider.is-position-left .bk-sideslider-header {
|
137
|
+
flex-direction: row-reverse;
|
165
138
|
}
|
166
|
-
.bk-
|
167
|
-
position:
|
139
|
+
.bk-sideslider .bk-modal-wrapper {
|
140
|
+
position: fixed;
|
168
141
|
top: 0;
|
169
142
|
bottom: 0;
|
170
|
-
left: auto;
|
171
|
-
transform: initial;
|
172
143
|
}
|
173
|
-
.bk-
|
174
|
-
|
175
|
-
|
144
|
+
.bk-sideslider .bk-modal-footer.is-fixed .bk-sideslider-footer {
|
145
|
+
margin: 0;
|
146
|
+
background: #fafbfd;
|
147
|
+
box-shadow: 0 -1px 0 0 #dcdee5;
|
148
|
+
box-shadow: rgba(0, 0, 0, 0.06) 0 -2px 4px 0;
|
176
149
|
}
|
177
|
-
.bk-
|
178
|
-
|
150
|
+
.bk-sideslider-header {
|
151
|
+
display: flex;
|
179
152
|
height: 52px;
|
180
153
|
background: #fff;
|
181
154
|
border-bottom: 1px solid #dcdee5;
|
182
155
|
}
|
183
|
-
.bk-
|
184
|
-
|
185
|
-
|
156
|
+
.bk-sideslider-close {
|
157
|
+
display: flex;
|
158
|
+
align-items: center;
|
159
|
+
justify-content: center;
|
186
160
|
width: 30px;
|
187
|
-
|
188
|
-
font-size: 24px;
|
189
|
-
line-height: 52px;
|
161
|
+
font-size: 26px;
|
190
162
|
color: #fff;
|
191
|
-
text-align: center;
|
192
163
|
cursor: pointer;
|
193
164
|
background-color: var(--primary-color);
|
194
165
|
}
|
195
|
-
.bk-
|
196
|
-
left: 0;
|
197
|
-
}
|
198
|
-
.bk-modal-ctx.bk-sideslider-wrapper .bk-modal-wrapper .bk-sideslider-header .bk-sideslider-close.right::before {
|
199
|
-
top: 50%;
|
200
|
-
left: 50%;
|
201
|
-
display: inline-block;
|
202
|
-
width: 8px;
|
203
|
-
height: 8px;
|
204
|
-
border-top: solid 2px #fff;
|
205
|
-
border-right: solid 2px #fff;
|
206
|
-
content: '';
|
207
|
-
transform: translate(-50%, -50%) rotate(45deg);
|
208
|
-
}
|
209
|
-
.bk-modal-ctx.bk-sideslider-wrapper .bk-modal-wrapper .bk-sideslider-header .bk-sideslider-close.left {
|
210
|
-
right: 0;
|
211
|
-
}
|
212
|
-
.bk-modal-ctx.bk-sideslider-wrapper .bk-modal-wrapper .bk-sideslider-header .bk-sideslider-close.left::before {
|
213
|
-
top: 50%;
|
214
|
-
left: 50%;
|
215
|
-
display: inline-block;
|
216
|
-
width: 8px;
|
217
|
-
height: 8px;
|
218
|
-
border-top: solid 2px #fff;
|
219
|
-
border-left: solid 2px #fff;
|
220
|
-
content: '';
|
221
|
-
transform: translate(50%, -50%) rotate(-45deg);
|
222
|
-
}
|
223
|
-
.bk-modal-ctx.bk-sideslider-wrapper .bk-modal-wrapper .bk-sideslider-header .bk-sideslider-title {
|
166
|
+
.bk-sideslider-title {
|
224
167
|
display: flex;
|
225
|
-
|
226
|
-
padding-left: 30px;
|
168
|
+
padding-left: 16px;
|
227
169
|
font-size: 16px;
|
228
170
|
color: #313238;
|
229
171
|
align-items: center;
|
172
|
+
flex: 1;
|
230
173
|
}
|
231
|
-
.bk-
|
232
|
-
width: 100%;
|
233
|
-
padding: 0 0 0 46px;
|
234
|
-
}
|
235
|
-
.bk-modal-ctx.bk-sideslider-wrapper .bk-modal-wrapper .bk-sideslider-footer {
|
174
|
+
.bk-sideslider-footer {
|
236
175
|
display: flex;
|
237
176
|
width: 100%;
|
238
|
-
height:
|
177
|
+
height: 48px;
|
178
|
+
padding: 0 24px;
|
179
|
+
margin-top: 24px;
|
239
180
|
background: #fff;
|
240
|
-
border-top: 1px solid transparent;
|
241
181
|
align-items: center;
|
242
|
-
box-shadow: rgba(0, 0, 0, 0.06) 0 -2px 4px 0;
|
243
182
|
}
|
package/lib/slider/index.d.ts
CHANGED
@@ -98,6 +98,10 @@ declare const Slider: {
|
|
98
98
|
type: FunctionConstructor;
|
99
99
|
default: (value: number) => number;
|
100
100
|
};
|
101
|
+
labelClick: {
|
102
|
+
type: (BooleanConstructor | FunctionConstructor)[];
|
103
|
+
default: boolean;
|
104
|
+
};
|
101
105
|
}>> & {
|
102
106
|
onChange?: (...args: any[]) => any;
|
103
107
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
@@ -177,6 +181,10 @@ declare const Slider: {
|
|
177
181
|
type: FunctionConstructor;
|
178
182
|
default: (value: number) => number;
|
179
183
|
};
|
184
|
+
labelClick: {
|
185
|
+
type: (BooleanConstructor | FunctionConstructor)[];
|
186
|
+
default: boolean;
|
187
|
+
};
|
180
188
|
}>> & {
|
181
189
|
onChange?: (...args: any[]) => any;
|
182
190
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
@@ -199,6 +207,7 @@ declare const Slider: {
|
|
199
207
|
formatterLabel: Function;
|
200
208
|
formatterButtonLabel: Function;
|
201
209
|
formatterTipLabel: Function;
|
210
|
+
labelClick: boolean | Function;
|
202
211
|
}, true, {}, {}, {
|
203
212
|
P: {};
|
204
213
|
B: {};
|
@@ -280,6 +289,10 @@ declare const Slider: {
|
|
280
289
|
type: FunctionConstructor;
|
281
290
|
default: (value: number) => number;
|
282
291
|
};
|
292
|
+
labelClick: {
|
293
|
+
type: (BooleanConstructor | FunctionConstructor)[];
|
294
|
+
default: boolean;
|
295
|
+
};
|
283
296
|
}>> & {
|
284
297
|
onChange?: (...args: any[]) => any;
|
285
298
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
@@ -304,6 +317,7 @@ declare const Slider: {
|
|
304
317
|
formatterLabel: Function;
|
305
318
|
formatterButtonLabel: Function;
|
306
319
|
formatterTipLabel: Function;
|
320
|
+
labelClick: boolean | Function;
|
307
321
|
}>;
|
308
322
|
__isFragment?: never;
|
309
323
|
__isTeleport?: never;
|
@@ -382,6 +396,10 @@ declare const Slider: {
|
|
382
396
|
type: FunctionConstructor;
|
383
397
|
default: (value: number) => number;
|
384
398
|
};
|
399
|
+
labelClick: {
|
400
|
+
type: (BooleanConstructor | FunctionConstructor)[];
|
401
|
+
default: boolean;
|
402
|
+
};
|
385
403
|
}>> & {
|
386
404
|
onChange?: (...args: any[]) => any;
|
387
405
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
@@ -406,5 +424,6 @@ declare const Slider: {
|
|
406
424
|
formatterLabel: Function;
|
407
425
|
formatterButtonLabel: Function;
|
408
426
|
formatterTipLabel: Function;
|
427
|
+
labelClick: boolean | Function;
|
409
428
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
|
410
429
|
export default Slider;
|
package/lib/slider/index.js
CHANGED
@@ -650,21 +650,21 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
650
650
|
resolveClassName = _usePrefix.resolveClassName;
|
651
651
|
var renderDom = function renderDom() {
|
652
652
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
653
|
+
"ref": button,
|
654
|
+
"style": wrapperStyle.value,
|
653
655
|
"class": ["".concat(resolveClassName('slider-button')), props.params.vertical ? 'vertical' : 'horizontal', {
|
654
656
|
grabbing: dragging.value
|
655
657
|
}],
|
656
|
-
"ref": button,
|
657
658
|
"tabindex": "0",
|
658
|
-
"style": wrapperStyle.value,
|
659
659
|
"onClick": function onClick(event) {
|
660
660
|
return event.stopPropagation();
|
661
661
|
},
|
662
662
|
"onMousedown": onButtonDown
|
663
663
|
}, [Boolean(tip.value.content) ? (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], {
|
664
|
+
"boundary": document.body,
|
664
665
|
"content": tip.value.content,
|
665
|
-
"theme": 'dark',
|
666
666
|
"placement": tip.value.placement,
|
667
|
-
"
|
667
|
+
"theme": 'dark'
|
668
668
|
}, {
|
669
669
|
"default": function _default() {
|
670
670
|
return [(0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -817,7 +817,11 @@ var off = function off(element, event, handler) {
|
|
817
817
|
"default": function _default(value) {
|
818
818
|
return value;
|
819
819
|
}
|
820
|
-
}
|
820
|
+
},
|
821
|
+
labelClick: {
|
822
|
+
type: [Boolean, Function],
|
823
|
+
"default": false
|
824
|
+
}
|
821
825
|
},
|
822
826
|
emits: ['update:modelValue', 'change'],
|
823
827
|
setup: function setup(props, _ref) {
|
@@ -882,12 +886,10 @@ var off = function off(element, event, handler) {
|
|
882
886
|
result.push(i * stepWidth);
|
883
887
|
}
|
884
888
|
if (props.range) {
|
885
|
-
// eslint-disable-next-line max-len
|
886
889
|
return result.filter(function (step) {
|
887
890
|
return step < 100 * (rangeMinValue.value - props.minValue) / (props.maxValue - props.minValue) || step > 100 * (rangeMaxValue.value - props.minValue) / (props.maxValue - props.minValue);
|
888
891
|
});
|
889
892
|
}
|
890
|
-
// eslint-disable-next-line max-len
|
891
893
|
return result.filter(function (step) {
|
892
894
|
return step > 100 * (firstValue.value - props.minValue) / (props.maxValue - props.minValue);
|
893
895
|
});
|
@@ -1155,30 +1157,57 @@ var off = function off(element, event, handler) {
|
|
1155
1157
|
};
|
1156
1158
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1157
1159
|
resolveClassName = _usePrefix.resolveClassName;
|
1160
|
+
var handleStepLabelClick = function handleStepLabelClick(e, step) {
|
1161
|
+
var _ref3, _step$stepWidth;
|
1162
|
+
var percent = (_ref3 = (_step$stepWidth = step.stepWidth) !== null && _step$stepWidth !== void 0 ? _step$stepWidth : step.percent) !== null && _ref3 !== void 0 ? _ref3 : step;
|
1163
|
+
if (props.labelClick) {
|
1164
|
+
e.stopPropagation();
|
1165
|
+
e.stopImmediatePropagation();
|
1166
|
+
e.preventDefault();
|
1167
|
+
var fnResult;
|
1168
|
+
if (typeof props.labelClick === 'function') {
|
1169
|
+
var args = {
|
1170
|
+
percent: percent,
|
1171
|
+
step: step
|
1172
|
+
};
|
1173
|
+
fnResult = props.labelClick(e, args);
|
1174
|
+
if (fnResult === false) {
|
1175
|
+
return;
|
1176
|
+
}
|
1177
|
+
}
|
1178
|
+
percent = typeof fnResult === 'number' ? fnResult : percent;
|
1179
|
+
console.log('handleStepLabelClick', percent);
|
1180
|
+
setPosition(percent);
|
1181
|
+
return;
|
1182
|
+
}
|
1183
|
+
};
|
1158
1184
|
var renderDom = function renderDom() {
|
1159
1185
|
var _slots$start, _slots$end;
|
1160
1186
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
1161
1187
|
"class": ["".concat(resolveClassName('slider')), props.extCls]
|
1162
1188
|
}, [(_slots$start = slots.start) === null || _slots$start === void 0 ? void 0 : _slots$start.call(slots), (0,external_vue_namespaceObject.createVNode)("div", {
|
1163
|
-
"class": "".concat(resolveClassName('slider-runway')),
|
1164
1189
|
"ref": slider,
|
1165
1190
|
"style": runwayStyle.value,
|
1191
|
+
"class": "".concat(resolveClassName('slider-runway')),
|
1166
1192
|
"onClick": setButtonPos
|
1167
1193
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
1194
|
+
"style": barStyle.value,
|
1168
1195
|
"class": ["".concat(resolveClassName('slider-bar')), props.vertical ? 'vertical' : 'horizontal', {
|
1169
1196
|
disable: props.disable
|
1170
|
-
}]
|
1171
|
-
"style": barStyle.value
|
1197
|
+
}]
|
1172
1198
|
}, null), props.showInterval ? intervals.value.map(function (interval, index) {
|
1173
1199
|
if (index === 0 || index === intervals.value.length - 1) {
|
1174
1200
|
return null;
|
1175
1201
|
}
|
1176
1202
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
1177
1203
|
"key": index,
|
1204
|
+
"style": getIntervalStyle(interval),
|
1178
1205
|
"class": ["".concat(resolveClassName('slider-interval')), {
|
1179
1206
|
vertical: props.vertical
|
1180
1207
|
}],
|
1181
|
-
"
|
1208
|
+
"onClick": function onClick(e) {
|
1209
|
+
return handleStepLabelClick(e, interval);
|
1210
|
+
}
|
1182
1211
|
}, null);
|
1183
1212
|
}) : null, props.customContent ? customList.value.map(function (custom, index) {
|
1184
1213
|
if (index === 0 || index === customList.value.length - 1) {
|
@@ -1186,61 +1215,70 @@ var off = function off(element, event, handler) {
|
|
1186
1215
|
}
|
1187
1216
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
1188
1217
|
"key": index,
|
1218
|
+
"style": getIntervalStyle(custom.percent),
|
1189
1219
|
"class": ["".concat(resolveClassName('slider-interval')), {
|
1190
1220
|
vertical: props.vertical
|
1191
1221
|
}],
|
1192
|
-
"
|
1222
|
+
"onClick": function onClick(e) {
|
1223
|
+
return handleStepLabelClick(e, custom);
|
1224
|
+
}
|
1193
1225
|
}, null);
|
1194
1226
|
}) : undefined, props.showBetweenLabel || props.showIntervalLabel || props.customContent ? (0,external_vue_namespaceObject.createVNode)("div", {
|
1195
1227
|
"class": ["".concat(resolveClassName('slider-labels')), props.vertical ? 'vertical' : 'horizontal']
|
1196
1228
|
}, [function () {
|
1197
1229
|
if (props.showBetweenLabel) {
|
1198
1230
|
return [(0,external_vue_namespaceObject.createVNode)("div", {
|
1199
|
-
"class": "label-start",
|
1200
1231
|
"style": [{
|
1201
1232
|
opacity: betweenLabelStyle('start')
|
1202
|
-
}]
|
1233
|
+
}],
|
1234
|
+
"class": "label-start"
|
1203
1235
|
}, [props.formatterLabel(props.minValue)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
1204
|
-
"class": "label-end",
|
1205
1236
|
"style": [{
|
1206
1237
|
opacity: betweenLabelStyle('end')
|
1207
|
-
}]
|
1238
|
+
}],
|
1239
|
+
"class": "label-end"
|
1208
1240
|
}, [props.formatterLabel(props.maxValue)])];
|
1209
1241
|
}
|
1210
1242
|
if (props.showIntervalLabel) {
|
1211
1243
|
return intervalLabels.value.map(function (intervalLabel, index) {
|
1212
1244
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
1213
|
-
"class": ["".concat(resolveClassName('slider-label')), props.vertical ? 'vertical' : 'horizontal'],
|
1214
1245
|
"key": index,
|
1215
|
-
"style": getIntervalStyle(intervalLabel.stepWidth)
|
1246
|
+
"style": getIntervalStyle(intervalLabel.stepWidth),
|
1247
|
+
"class": ["".concat(resolveClassName('slider-label')), props.vertical ? 'vertical' : 'horizontal'],
|
1248
|
+
"onClick": function onClick(e) {
|
1249
|
+
return handleStepLabelClick(e, intervalLabel);
|
1250
|
+
}
|
1216
1251
|
}, [intervalLabel.stepLabel]);
|
1217
1252
|
});
|
1218
1253
|
}
|
1219
1254
|
if (props.customContent) {
|
1220
1255
|
return customList.value.map(function (item, index) {
|
1221
1256
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
1222
|
-
"class": ["".concat(resolveClassName('slider-label')), props.vertical ? 'vertical' : 'horizontal'],
|
1223
1257
|
"key": index,
|
1224
|
-
"style": getIntervalStyle(item.percent)
|
1258
|
+
"style": getIntervalStyle(item.percent),
|
1259
|
+
"class": ["".concat(resolveClassName('slider-label')), props.vertical ? 'vertical' : 'horizontal'],
|
1260
|
+
"onClick": function onClick(e) {
|
1261
|
+
return handleStepLabelClick(e, item);
|
1262
|
+
}
|
1225
1263
|
}, [item.label]);
|
1226
1264
|
});
|
1227
1265
|
}
|
1228
1266
|
return undefined;
|
1229
1267
|
}()]) : undefined, (0,external_vue_namespaceObject.createVNode)(slider_button, {
|
1268
|
+
"ref": firstbutton,
|
1230
1269
|
"modelValue": firstValue.value,
|
1231
1270
|
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
1232
1271
|
return firstValue.value = $event;
|
1233
1272
|
},
|
1234
|
-
"ref": firstbutton,
|
1235
1273
|
"params": buttonParms.value,
|
1236
1274
|
"onEmitChange": emitChange,
|
1237
1275
|
"onResetSize": resetSize
|
1238
1276
|
}, null), props.range ? (0,external_vue_namespaceObject.createVNode)(slider_button, {
|
1277
|
+
"ref": secondbutton,
|
1239
1278
|
"modelValue": secondValue.value,
|
1240
1279
|
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
1241
1280
|
return secondValue.value = $event;
|
1242
1281
|
},
|
1243
|
-
"ref": secondbutton,
|
1244
1282
|
"params": buttonParms.value,
|
1245
1283
|
"onEmitChange": emitChange,
|
1246
1284
|
"onResetSize": resetSize
|
@@ -1249,20 +1287,20 @@ var off = function off(element, event, handler) {
|
|
1249
1287
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
1250
1288
|
"class": "input-item"
|
1251
1289
|
}, [(0,external_vue_namespaceObject.createVNode)(input_namespaceObject["default"], {
|
1252
|
-
"type": "number",
|
1253
|
-
"modelValue": firstInput.value,
|
1254
1290
|
"max": props.maxValue,
|
1255
1291
|
"min": props.minValue,
|
1292
|
+
"modelValue": firstInput.value,
|
1293
|
+
"type": "number",
|
1256
1294
|
"onChange": firstInputChange
|
1257
1295
|
}, null)]), showSecondInput.value && secondValue.value ? [(0,external_vue_namespaceObject.createVNode)("div", {
|
1258
1296
|
"class": "input-center"
|
1259
1297
|
}, [(0,external_vue_namespaceObject.createTextVNode)("\uFF5E")]), (0,external_vue_namespaceObject.createVNode)("div", {
|
1260
1298
|
"class": "input-item"
|
1261
1299
|
}, [(0,external_vue_namespaceObject.createVNode)(input_namespaceObject["default"], {
|
1262
|
-
"type": "number",
|
1263
|
-
"modelValue": secondInput.value,
|
1264
1300
|
"max": props.maxValue,
|
1265
1301
|
"min": props.minValue,
|
1302
|
+
"modelValue": secondInput.value,
|
1303
|
+
"type": "number",
|
1266
1304
|
"onChange": secondInputChange
|
1267
1305
|
}, null)])] : undefined]) : undefined, (_slots$end = slots.end) === null || _slots$end === void 0 ? void 0 : _slots$end.call(slots)]);
|
1268
1306
|
};
|
package/lib/slider/slider.css
CHANGED
@@ -76,6 +76,20 @@
|
|
76
76
|
border-radius: 100%;
|
77
77
|
transform: translateX(-50%);
|
78
78
|
}
|
79
|
+
.bk-slider .bk-slider-interval:hover {
|
80
|
+
cursor: pointer;
|
81
|
+
}
|
82
|
+
.bk-slider .bk-slider-interval:hover::after {
|
83
|
+
content: '';
|
84
|
+
position: absolute;
|
85
|
+
left: -5px;
|
86
|
+
top: -4px;
|
87
|
+
width: 10px;
|
88
|
+
height: 10px;
|
89
|
+
border-radius: 50%;
|
90
|
+
background-color: #fff;
|
91
|
+
border: solid 1px #3a84ff;
|
92
|
+
}
|
79
93
|
.bk-slider .bk-slider-interval.vertical {
|
80
94
|
left: 2px;
|
81
95
|
}
|