bkui-vue 0.0.1-beta.1 → 0.0.1-beta.13
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/LICENSE.txt +22 -0
- package/README.md +55 -0
- package/dist/bkui-vue.cjs.js +9957 -257
- package/dist/bkui-vue.esm.js +9919 -257
- package/dist/bkui-vue.umd.js +9967 -267
- package/dist/style.css +4010 -428
- package/lib/alert/alert.css +75 -0
- package/lib/alert/alert.d.ts +53 -0
- package/lib/alert/alert.less +110 -0
- package/lib/alert/alert.variable.css +161 -0
- package/lib/alert/index.d.ts +144 -0
- package/lib/alert/index.js +1 -0
- package/lib/animate-number/animate-number.d.ts +22 -0
- package/lib/animate-number/index.d.ts +77 -0
- package/lib/animate-number/index.js +1 -0
- package/lib/backtop/backtop.css +42 -0
- package/lib/backtop/backtop.d.ts +46 -0
- package/lib/backtop/backtop.less +18 -0
- package/lib/backtop/backtop.variable.css +128 -0
- package/lib/backtop/index.d.ts +110 -0
- package/lib/backtop/index.js +1 -0
- package/lib/badge/badge.css +121 -0
- package/lib/badge/badge.d.ts +70 -0
- package/lib/badge/badge.less +137 -0
- package/lib/badge/badge.variable.css +207 -0
- package/lib/badge/index.d.ts +149 -0
- package/lib/badge/index.js +1 -0
- package/lib/breadcrumb/breadcrumb-item.d.ts +32 -0
- package/lib/breadcrumb/breadcrumb.css +59 -0
- package/lib/breadcrumb/breadcrumb.d.ts +26 -0
- package/lib/breadcrumb/breadcrumb.less +54 -0
- package/lib/breadcrumb/breadcrumb.variable.css +145 -0
- package/lib/breadcrumb/index.d.ts +122 -0
- package/lib/breadcrumb/index.js +1 -0
- package/lib/breadcrumb/props.d.ts +4 -0
- package/lib/button/button-group.d.ts +8 -0
- package/lib/button/button.css +242 -22
- package/lib/button/button.d.ts +114 -0
- package/lib/button/button.less +180 -36
- package/lib/button/button.variable.css +339 -0
- package/lib/button/index.d.ts +170 -0
- package/lib/button/index.js +1 -206
- package/lib/card/card.css +63 -0
- package/lib/card/card.d.ts +54 -0
- package/lib/card/card.less +44 -0
- package/lib/card/card.variable.css +149 -0
- package/lib/card/index.d.ts +127 -0
- package/lib/card/index.js +1 -0
- package/lib/checkbox/checkbox-group.d.ts +44 -0
- package/lib/checkbox/checkbox.css +54 -125
- package/lib/checkbox/checkbox.d.ts +105 -0
- package/lib/checkbox/checkbox.less +66 -6
- package/lib/checkbox/checkbox.variable.css +150 -0
- package/lib/checkbox/common.d.ts +13 -0
- package/lib/checkbox/index.d.ts +221 -0
- package/lib/checkbox/index.js +1 -64
- package/lib/checkbox/type.d.ts +19 -0
- package/lib/collapse/collapse.css +30 -0
- package/lib/collapse/collapse.d.ts +74 -0
- package/lib/collapse/collapse.less +37 -0
- package/lib/collapse/collapse.variable.css +30 -0
- package/lib/collapse/index.d.ts +130 -0
- package/lib/collapse/index.js +1 -0
- package/lib/components.d.ts +31 -0
- package/lib/date-picker/date-picker.css +407 -0
- package/lib/date-picker/date-picker.d.ts +357 -0
- package/lib/date-picker/date-picker.less +526 -0
- package/lib/date-picker/date-picker.variable.css +493 -0
- package/lib/date-picker/fecha.d.ts +6 -0
- package/lib/date-picker/index.d.ts +525 -0
- package/lib/date-picker/index.js +1 -0
- package/lib/date-picker/interface.d.ts +22 -0
- package/lib/date-picker/utils.d.ts +97 -0
- package/lib/dialog/dialog.css +68 -0
- package/lib/dialog/dialog.d.ts +83 -0
- package/lib/dialog/dialog.less +80 -0
- package/lib/dialog/dialog.variable.css +68 -0
- package/lib/dialog/index.d.ts +183 -0
- package/lib/dialog/index.js +1 -0
- package/lib/directives/clickoutside.d.ts +23 -0
- package/lib/directives/index.d.ts +3 -0
- package/lib/directives/index.js +15 -0
- package/lib/directives/mousewheel.d.ts +3 -0
- package/lib/directives/tooltips.d.ts +17 -0
- package/lib/divider/divider.css +38 -0
- package/lib/divider/divider.d.ts +40 -0
- package/lib/divider/divider.less +53 -0
- package/lib/divider/divider.variable.css +124 -0
- package/lib/divider/index.d.ts +110 -0
- package/lib/divider/index.js +1 -0
- package/lib/dropdown/dropdown-item.d.ts +18 -0
- package/lib/dropdown/dropdown-menu.d.ts +15 -0
- package/lib/dropdown/dropdown.css +43 -0
- package/lib/dropdown/dropdown.d.ts +49 -0
- package/lib/dropdown/dropdown.less +54 -0
- package/lib/dropdown/dropdown.variable.css +129 -0
- package/lib/dropdown/index.d.ts +160 -0
- package/lib/dropdown/index.js +1 -0
- package/lib/exception/exception.css +32 -0
- package/lib/exception/exception.d.ts +24 -0
- package/lib/exception/exception.less +39 -0
- package/lib/exception/exception.variable.css +118 -0
- package/lib/exception/index.d.ts +88 -0
- package/lib/exception/index.js +1 -0
- package/lib/fixed-navbar/fixed-navbar.css +42 -0
- package/lib/fixed-navbar/fixed-navbar.d.ts +28 -0
- package/lib/fixed-navbar/fixed-navbar.less +53 -0
- package/lib/fixed-navbar/fixed-navbar.variable.css +128 -0
- package/lib/fixed-navbar/index.d.ts +88 -0
- package/lib/fixed-navbar/index.js +1 -0
- package/lib/form/common.d.ts +3 -0
- package/lib/form/form-item.d.ts +140 -0
- package/lib/form/form.css +39 -0
- package/lib/form/form.d.ts +76 -0
- package/lib/form/form.less +50 -0
- package/lib/form/form.variable.css +39 -0
- package/lib/form/index.d.ts +4 -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-left.d.ts +4 -0
- package/lib/icon/angle-double-right.d.ts +4 -0
- package/lib/icon/angle-down-line.d.ts +4 -0
- package/lib/icon/angle-down.d.ts +4 -0
- package/lib/icon/angle-left.d.ts +4 -0
- package/lib/icon/angle-right.d.ts +4 -0
- package/lib/icon/angle-up.d.ts +4 -0
- package/lib/icon/circle.d.ts +4 -0
- package/lib/icon/close.d.ts +4 -0
- package/lib/icon/code.d.ts +4 -0
- package/lib/icon/cog-shape.d.ts +4 -0
- package/lib/icon/collapse-left.d.ts +4 -0
- package/lib/icon/copy.d.ts +4 -0
- package/lib/icon/done.d.ts +4 -0
- package/lib/icon/down-shape.d.ts +4 -0
- package/lib/icon/down-small.d.ts +4 -0
- package/lib/icon/error.d.ts +4 -0
- package/lib/icon/eye.d.ts +4 -0
- package/lib/icon/folder-open.d.ts +4 -0
- package/lib/icon/folder-shape-open.d.ts +4 -0
- package/lib/icon/folder-shape.d.ts +4 -0
- package/lib/icon/folder.d.ts +4 -0
- package/lib/icon/help-document-fill.d.ts +4 -0
- package/lib/icon/help-fill.d.ts +4 -0
- package/lib/icon/help.d.ts +4 -0
- package/lib/icon/icon.d.ts +12 -0
- package/lib/icon/index.d.ts +38 -0
- package/lib/icon/index.js +15 -0
- package/lib/icon/info-line.d.ts +4 -0
- package/lib/icon/info.d.ts +4 -0
- package/lib/icon/play-shape.d.ts +4 -0
- package/lib/icon/plus.d.ts +4 -0
- package/lib/icon/right-shape.d.ts +4 -0
- package/lib/icon/search.d.ts +4 -0
- package/lib/icon/share.d.ts +4 -0
- package/lib/icon/success.d.ts +4 -0
- package/lib/icon/switcher-loading.d.ts +4 -0
- package/lib/icon/text-file.d.ts +4 -0
- package/lib/icon/tree-application-shape.d.ts +4 -0
- package/lib/icon/unvisible.d.ts +4 -0
- package/lib/icon/warn.d.ts +4 -0
- package/lib/index.d.ts +3 -0
- package/lib/input/index.d.ts +275 -0
- package/lib/input/index.js +15 -60
- package/lib/input/input.css +114 -148
- package/lib/input/input.d.ts +185 -0
- package/lib/input/input.less +107 -40
- package/lib/input/input.variable.css +218 -0
- package/lib/link/index.d.ts +116 -0
- package/lib/link/index.js +1 -0
- package/lib/link/link.css +55 -0
- package/lib/link/link.d.ts +46 -0
- package/lib/link/link.less +74 -0
- package/lib/link/link.variable.css +141 -0
- package/lib/loading/index.d.ts +125 -0
- package/lib/loading/index.js +1 -0
- package/lib/loading/loading.css +225 -0
- package/lib/loading/loading.d.ts +64 -0
- package/lib/loading/loading.less +181 -0
- package/lib/loading/loading.variable.css +311 -0
- package/lib/menu/index.d.ts +169 -0
- package/lib/menu/index.js +1 -0
- package/lib/menu/menu-group.d.ts +13 -0
- package/lib/menu/menu-item.d.ts +15 -0
- package/lib/menu/menu.css +182 -0
- package/lib/menu/menu.d.ts +60 -0
- package/lib/menu/menu.less +180 -0
- package/lib/menu/menu.variable.css +268 -0
- package/lib/menu/submenu.d.ts +21 -0
- package/lib/menu/submenu.less +5 -0
- package/lib/menu/submenu.variable.css +86 -0
- package/lib/menu/utils.d.ts +41 -0
- package/lib/message/index.d.ts +2 -0
- package/lib/message/index.js +1 -0
- package/lib/message/message.css +53 -0
- package/lib/message/message.less +61 -0
- package/lib/message/message.variable.css +139 -0
- package/lib/message/messageConstructor.d.ts +61 -0
- package/lib/modal/index.d.ts +155 -0
- package/lib/modal/index.js +1 -0
- package/lib/modal/modal.css +11 -0
- package/lib/modal/modal.d.ts +47 -0
- package/lib/modal/modal.less +12 -0
- package/lib/modal/modal.variable.css +11 -0
- package/lib/modal/props.mixin.d.ts +22 -0
- package/lib/navigation/index.d.ts +2 -0
- package/lib/navigation/index.js +1 -0
- package/lib/navigation/navigation-title.d.ts +22 -0
- package/lib/navigation/navigation.css +184 -0
- package/lib/navigation/navigation.d.ts +94 -0
- package/lib/navigation/navigation.less +210 -0
- package/lib/navigation/navigation.variable.css +270 -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 +135 -0
- package/lib/notify/notifyConstructor.d.ts +75 -0
- package/lib/popover/index.d.ts +202 -0
- package/lib/popover/index.js +1 -0
- package/lib/popover/popover.css +55 -0
- package/lib/popover/popover.d.ts +88 -0
- package/lib/popover/popover.less +70 -0
- package/lib/popover/popover.variable.css +141 -0
- package/lib/preset.d.ts +8 -0
- package/lib/progress/circle.d.ts +6 -0
- package/lib/progress/index.d.ts +228 -0
- package/lib/progress/index.js +1 -0
- package/lib/progress/line.d.ts +6 -0
- package/lib/progress/progress.css +97 -0
- package/lib/progress/progress.d.ts +118 -0
- package/lib/progress/progress.less +94 -0
- package/lib/progress/progress.variable.css +183 -0
- package/lib/radio/common.d.ts +13 -0
- package/lib/radio/index.d.ts +228 -0
- package/lib/radio/index.js +1 -61
- package/lib/radio/radio-button.d.ts +83 -0
- package/lib/radio/radio-group.d.ts +40 -0
- package/lib/radio/radio.css +128 -125
- package/lib/radio/radio.d.ts +77 -0
- package/lib/radio/radio.less +173 -20
- package/lib/radio/radio.variable.css +224 -0
- package/lib/radio/type.d.ts +9 -0
- package/lib/rate/index.d.ts +101 -0
- package/lib/rate/index.js +1 -0
- package/lib/rate/rate.css +10 -0
- package/lib/rate/rate.d.ts +29 -0
- package/lib/rate/rate.less +11 -0
- package/lib/rate/rate.variable.css +10 -0
- package/lib/rate/star.css +24 -0
- package/lib/rate/star.d.ts +57 -0
- package/lib/rate/star.less +29 -0
- package/lib/rate/star.variable.css +24 -0
- package/lib/select/common.d.ts +28 -0
- package/lib/select/index.d.ts +950 -0
- package/lib/select/index.js +15 -0
- package/lib/select/option.d.ts +32 -0
- package/lib/select/optionGroup.d.ts +115 -0
- package/lib/select/select.css +157 -0
- package/lib/select/select.d.ts +285 -0
- package/lib/select/select.less +203 -0
- package/lib/select/select.variable.css +243 -0
- package/lib/shared/bk-helper-core.d.ts +87 -0
- package/lib/shared/bk-mask-manager.d.ts +47 -0
- package/lib/shared/bk-pop-manager.d.ts +19 -0
- package/lib/shared/bk-popover.d.ts +86 -0
- package/lib/shared/index.d.ts +51 -0
- package/lib/shared/index.js +1 -13
- package/lib/shared/scrollbar-width.d.ts +1 -0
- package/lib/shared/vue-types.d.ts +115 -0
- package/lib/shared/z-index-manager.d.ts +93 -0
- package/lib/sideslider/index.d.ts +139 -0
- package/lib/sideslider/index.js +1 -0
- package/lib/sideslider/sideslider.css +69 -0
- package/lib/sideslider/sideslider.d.ts +54 -0
- package/lib/sideslider/sideslider.less +86 -0
- package/lib/sideslider/sideslider.variable.css +155 -0
- package/lib/slider/index.d.ts +27 -0
- package/lib/slider/index.js +15 -0
- package/lib/slider/slider-button.d.ts +72 -0
- package/lib/slider/slider.css +149 -0
- package/lib/slider/slider.d.ts +159 -0
- package/lib/slider/slider.less +179 -0
- package/lib/slider/slider.variable.css +235 -0
- package/lib/steps/index.d.ts +198 -0
- package/lib/steps/index.js +15 -0
- package/lib/steps/steps.css +285 -0
- package/lib/steps/steps.d.ts +148 -0
- package/lib/steps/steps.less +320 -0
- package/lib/steps/steps.variable.css +371 -0
- package/lib/styles/index.d.ts +38 -0
- package/lib/styles/index.js +1 -0
- package/lib/styles/mixins/animate.css +21 -0
- package/lib/styles/mixins/animate.less +27 -0
- package/lib/styles/mixins/animate.variable.css +21 -0
- package/lib/styles/mixins/ellipsis.less +8 -0
- package/lib/styles/mixins/mixins.css +21 -0
- package/lib/styles/mixins/mixins.less +2 -0
- package/lib/styles/mixins/mixins.variable.css +21 -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 +10 -1
- 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 +84 -284
- package/lib/switcher/index.d.ts +222 -0
- package/lib/switcher/index.js +1 -0
- package/lib/switcher/switcher.css +258 -0
- package/lib/switcher/switcher.d.ts +97 -0
- package/lib/switcher/switcher.less +302 -0
- package/lib/switcher/switcher.variable.css +344 -0
- package/lib/tab/index.d.ts +416 -0
- package/lib/tab/index.js +1 -0
- package/lib/tab/tab-nav.d.ts +154 -0
- package/lib/tab/tab-panel.d.ts +46 -0
- package/lib/tab/tab.css +147 -0
- package/lib/tab/tab.d.ts +131 -0
- package/lib/tab/tab.less +221 -0
- package/lib/tab/tab.variable.css +233 -0
- package/lib/table/index.d.ts +119 -0
- package/lib/table/index.js +1 -0
- package/lib/table/props.d.ts +41 -0
- package/lib/table/render.d.ts +47 -0
- package/lib/table/table.css +44 -0
- package/lib/table/table.d.ts +26 -0
- package/lib/table/table.less +67 -0
- package/lib/table/table.variable.css +130 -0
- package/lib/table/utils.d.ts +22 -0
- package/lib/tag/index.d.ts +338 -0
- package/lib/tag/index.js +1 -0
- package/lib/tag/tag.d.ts +54 -0
- package/lib/tag/tag.less +5 -0
- package/lib/tag/tag.variable.css +86 -0
- package/lib/tree/index.d.ts +149 -0
- package/lib/tree/index.js +1 -0
- package/lib/tree/tree.css +35 -0
- package/lib/tree/tree.d.ts +58 -0
- package/lib/tree/tree.less +55 -0
- package/lib/tree/tree.variable.css +35 -0
- package/lib/tree/util.d.ts +89 -0
- package/lib/use-message.d.ts +2 -0
- package/package.json +92 -40
- package/lib/styles/mixins/size.css +0 -0
- package/lib/styles/themes/themes.css +0 -119
- package/lib/styles/themes/variables.css +0 -27
- package/lib/styles/themes/variables.less +0 -36
@@ -0,0 +1,344 @@
|
|
1
|
+
:root {
|
2
|
+
--bk-prefix: bk;
|
3
|
+
--primary-color: #3a84ff;
|
4
|
+
--success-color: #2dcb56;
|
5
|
+
--warning-color: #ff9c01;
|
6
|
+
--danger-color: #ea3636;
|
7
|
+
--default-color: #63656e;
|
8
|
+
--gray-color: #979ba5;
|
9
|
+
--light-gray: #c4c6cc;
|
10
|
+
--white-color: white;
|
11
|
+
--disable-color: #dcdee5;
|
12
|
+
--font-size-base: 12px;
|
13
|
+
--font-size-medium: 14px;
|
14
|
+
--font-size-large: 16px;
|
15
|
+
--line-height-base: 16px;
|
16
|
+
--line-height-medium: 16px;
|
17
|
+
--line-height-large: 18px;
|
18
|
+
--component-size-small: 26px;
|
19
|
+
--component-size-base: 32px;
|
20
|
+
--component-size-large: 38px;
|
21
|
+
--border-width-base: 1px;
|
22
|
+
--border-style-base: solid;
|
23
|
+
--border-radius-base: 2px;
|
24
|
+
--input-disabled-bg: #fafbfd;
|
25
|
+
--input-disabled-border: var(--disable-color);
|
26
|
+
--input-height-base: var(--component-size-base);
|
27
|
+
--input-color: var(--default-color);
|
28
|
+
--input-bg: white;
|
29
|
+
--input-border-color: var(--light-gray);
|
30
|
+
--input-broder-radius: 3px;
|
31
|
+
--input-shadow-color: #a3c5fd;
|
32
|
+
--input-horizontal-padding: 10px;
|
33
|
+
--input-block-color: #f4f6fa;
|
34
|
+
--input-icon-size: var(--font-size-large);
|
35
|
+
--input-maxlength-color: #979ba5;
|
36
|
+
--button-primary-hover-color: #5594fa;
|
37
|
+
--button-danger-hover-color: #ff5656;
|
38
|
+
--button-success-hover-color: #45e35f;
|
39
|
+
--button-warning-hover-color: #ffb848;
|
40
|
+
--button-default-hover-border-color: #979ba5;
|
41
|
+
--button-primary-active-color: #2c77f4;
|
42
|
+
--button-danger-active-color: #db2626;
|
43
|
+
--button-success-active-color: #1ab943;
|
44
|
+
--button-warning-active-color: #eb9000;
|
45
|
+
--fixed-navbar-background: #fff;
|
46
|
+
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
47
|
+
--switch-default-color: #fff;
|
48
|
+
--switch-grey-color: #c4c6cc;
|
49
|
+
--breadcrumb-black-color: #979ba5;
|
50
|
+
--breadcrumb-primary-hover-color: #0082ff;
|
51
|
+
--breadcrumb-fn-main-color: #63656e;
|
52
|
+
--link-default-hover-color: #979ba5;
|
53
|
+
--link-primary-hover-color: #699df4;
|
54
|
+
--link-success-hover-color: #45e35f;
|
55
|
+
--link-warning-hover-color: #ffb848;
|
56
|
+
--link-danger-hover-color: #ff5656;
|
57
|
+
--link-default-disabled-color: #dcdee5;
|
58
|
+
--link-primary-disabled-color: #a3c5fd;
|
59
|
+
--link-success-disabled-color: #94f5a4;
|
60
|
+
--link-warning-disabled-color: #ffd695;
|
61
|
+
--link-danger-disabled-color: #fd9c9c;
|
62
|
+
--message-color: var(--default-color);
|
63
|
+
--message-primary-bg-color: #f0f8ff;
|
64
|
+
--message-primary-border-color: #e1ecff;
|
65
|
+
--message-warning-bg-color: #fff4e2;
|
66
|
+
--message-warning-border-color: #ffe8c3;
|
67
|
+
--message-success-bg-color: #f2fff4;
|
68
|
+
--message-success-border-color: #dcffe2;
|
69
|
+
--message-danger-bg-color: #ffeded;
|
70
|
+
--message-danger-border-color: #ffdddd;
|
71
|
+
--slider-default-bg: #dcdee5;
|
72
|
+
--slider-disable-bar-bg: #979ba5;
|
73
|
+
--menu-bg-color: #182132;
|
74
|
+
--submenu-bg-color: #151d2c;
|
75
|
+
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
76
|
+
--menu-color: #96a2b9;
|
77
|
+
--menu-group-color: var(--default-color);
|
78
|
+
--menu-width: 260px;
|
79
|
+
--menu-collapse-width: 60px;
|
80
|
+
--menu-active-color: white;
|
81
|
+
--nav-header-bg-color: #182132;
|
82
|
+
--nav-bg-color: #182132;
|
83
|
+
--date-picker-disabled-bg: #fafbfd;
|
84
|
+
--date-picker-dropdown-mb: 4px;
|
85
|
+
--date-picker-dropdown-bg: #fff;
|
86
|
+
}
|
87
|
+
@keyframes loading-scale-animate {
|
88
|
+
0% {
|
89
|
+
transform: scale(1);
|
90
|
+
}
|
91
|
+
100% {
|
92
|
+
transform: scale(0.6);
|
93
|
+
}
|
94
|
+
}
|
95
|
+
@keyframes fade {
|
96
|
+
100% {
|
97
|
+
background-color: transparent;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
.bk-fade-transtion .bk-fade-enter-active,
|
101
|
+
.bk-fade-transtion .bk-fade-leave-active {
|
102
|
+
transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);
|
103
|
+
}
|
104
|
+
.bk-fade-transtion .bk-fade-enter,
|
105
|
+
.bk-fade-transtion .bk-fade-leave-to {
|
106
|
+
opacity: 0;
|
107
|
+
}
|
108
|
+
.bk-switcher {
|
109
|
+
position: relative;
|
110
|
+
display: inline-block;
|
111
|
+
/* 默认尺寸 */
|
112
|
+
width: 36px;
|
113
|
+
height: 20px;
|
114
|
+
line-height: 20px;
|
115
|
+
text-align: left;
|
116
|
+
vertical-align: middle;
|
117
|
+
background-color: var(--switch-grey-color);
|
118
|
+
border-radius: 50px;
|
119
|
+
transition: all 0.4s ease;
|
120
|
+
/* 显示文本时固定尺寸 */
|
121
|
+
}
|
122
|
+
.bk-switcher:focus {
|
123
|
+
box-shadow: 0px 0px 6px var(--switch-grey-color);
|
124
|
+
}
|
125
|
+
.bk-switcher:after {
|
126
|
+
position: absolute;
|
127
|
+
top: 2px;
|
128
|
+
left: 2px;
|
129
|
+
display: block;
|
130
|
+
width: 24px;
|
131
|
+
height: 24px;
|
132
|
+
cursor: pointer;
|
133
|
+
background: var(--switch-default-color);
|
134
|
+
border-radius: 100px;
|
135
|
+
content: '';
|
136
|
+
box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
|
137
|
+
transition: all 0.3s ease;
|
138
|
+
}
|
139
|
+
.bk-switcher:not(.show-label):after {
|
140
|
+
width: 16px;
|
141
|
+
height: 16px;
|
142
|
+
}
|
143
|
+
.bk-switcher:not(.show-label).is-checked:after {
|
144
|
+
margin-left: -18px;
|
145
|
+
}
|
146
|
+
.bk-switcher.is-loading {
|
147
|
+
cursor: defalt;
|
148
|
+
}
|
149
|
+
.bk-switcher.is-loading input[type=checkbox] {
|
150
|
+
cursor: default;
|
151
|
+
}
|
152
|
+
.bk-switcher .bk-switcher-loading {
|
153
|
+
position: absolute;
|
154
|
+
top: 50%;
|
155
|
+
left: 1px;
|
156
|
+
z-index: 10;
|
157
|
+
display: flex;
|
158
|
+
width: 18px;
|
159
|
+
height: 18px;
|
160
|
+
transform: translateY(-50%);
|
161
|
+
}
|
162
|
+
.bk-switcher .bk-switcher-loading svg {
|
163
|
+
color: #3a84ff;
|
164
|
+
}
|
165
|
+
.bk-switcher .switcher-label {
|
166
|
+
display: none;
|
167
|
+
width: 30px;
|
168
|
+
height: 28px;
|
169
|
+
margin: 0 0 0 26px;
|
170
|
+
font-size: 12px;
|
171
|
+
font-weight: normal;
|
172
|
+
color: var(--switch-default-color);
|
173
|
+
text-align: center;
|
174
|
+
vertical-align: top;
|
175
|
+
transition: all ease 0.3s;
|
176
|
+
}
|
177
|
+
.bk-switcher .switcher-label .on-text {
|
178
|
+
display: none;
|
179
|
+
}
|
180
|
+
.bk-switcher .switcher-label .off-text {
|
181
|
+
display: inline-block;
|
182
|
+
}
|
183
|
+
.bk-switcher.show-label {
|
184
|
+
width: 60px;
|
185
|
+
height: 28px;
|
186
|
+
line-height: 28px;
|
187
|
+
}
|
188
|
+
.bk-switcher.show-label .switcher-label {
|
189
|
+
display: inline-block;
|
190
|
+
}
|
191
|
+
.bk-switcher.show-label .bk-switcher-loading {
|
192
|
+
width: 26px;
|
193
|
+
height: 26px;
|
194
|
+
align-items: center;
|
195
|
+
justify-content: center;
|
196
|
+
}
|
197
|
+
.bk-switcher.show-label .bk-switcher-loading svg {
|
198
|
+
font-size: 24px;
|
199
|
+
}
|
200
|
+
.bk-switcher.is-disabled {
|
201
|
+
cursor: default;
|
202
|
+
/* background-color: #eee !important; */
|
203
|
+
opacity: 0.3;
|
204
|
+
}
|
205
|
+
.bk-switcher.is-disabled input[type=checkbox] {
|
206
|
+
cursor: not-allowed;
|
207
|
+
}
|
208
|
+
.bk-switcher.is-checked {
|
209
|
+
background: var(--success-color);
|
210
|
+
}
|
211
|
+
.bk-switcher.is-checked:focus {
|
212
|
+
box-shadow: 0px 0px 6px var(--success-color);
|
213
|
+
}
|
214
|
+
.bk-switcher.is-checked.primary {
|
215
|
+
background: var(--primary-color);
|
216
|
+
}
|
217
|
+
.bk-switcher.is-checked.primary:focus {
|
218
|
+
box-shadow: 0px 0px 6px var(--primary-color);
|
219
|
+
}
|
220
|
+
.bk-switcher.is-checked:after {
|
221
|
+
top: 2px;
|
222
|
+
left: 100%;
|
223
|
+
margin-left: -26px;
|
224
|
+
}
|
225
|
+
.bk-switcher.is-checked .switcher-label {
|
226
|
+
margin-left: 4px;
|
227
|
+
}
|
228
|
+
.bk-switcher.is-checked .switcher-label .on-text {
|
229
|
+
display: inline-block;
|
230
|
+
}
|
231
|
+
.bk-switcher.is-checked .switcher-label .off-text {
|
232
|
+
display: none;
|
233
|
+
}
|
234
|
+
.bk-switcher.is-checked .bk-switcher-loading {
|
235
|
+
right: 1px;
|
236
|
+
left: auto;
|
237
|
+
}
|
238
|
+
.bk-switcher.bk-switcher-outline {
|
239
|
+
background: var(--switch-default-color);
|
240
|
+
border: 1px solid var(--switch-grey-color);
|
241
|
+
}
|
242
|
+
.bk-switcher.bk-switcher-outline:after {
|
243
|
+
width: 22px;
|
244
|
+
height: 22px;
|
245
|
+
background-color: var(--switch-grey-color);
|
246
|
+
box-shadow: none;
|
247
|
+
}
|
248
|
+
.bk-switcher.bk-switcher-outline .switcher-label {
|
249
|
+
height: 26px;
|
250
|
+
margin-left: 24px;
|
251
|
+
color: var(--switch-grey-color);
|
252
|
+
}
|
253
|
+
.bk-switcher.bk-switcher-outline .bk-switcher-loading {
|
254
|
+
width: 22px;
|
255
|
+
height: 22px;
|
256
|
+
align-items: center;
|
257
|
+
justify-content: center;
|
258
|
+
}
|
259
|
+
.bk-switcher.bk-switcher-outline.is-checked {
|
260
|
+
border: 1px solid var(--success-color);
|
261
|
+
}
|
262
|
+
.bk-switcher.bk-switcher-outline.is-checked:after {
|
263
|
+
margin-left: -24px;
|
264
|
+
background-color: var(--success-color);
|
265
|
+
}
|
266
|
+
.bk-switcher.bk-switcher-outline.is-checked .switcher-label {
|
267
|
+
margin-left: 4px;
|
268
|
+
color: var(--success-color);
|
269
|
+
}
|
270
|
+
.bk-switcher.bk-switcher-outline.is-disabled {
|
271
|
+
background-color: var(--switch-default-color);
|
272
|
+
border-color: #eee;
|
273
|
+
}
|
274
|
+
.bk-switcher.bk-switcher-outline.is-disabled .switcher-label {
|
275
|
+
color: #eee;
|
276
|
+
}
|
277
|
+
.bk-switcher.bk-switcher-outline.is-disabled:after {
|
278
|
+
background-color: #eee;
|
279
|
+
}
|
280
|
+
.bk-switcher.bk-switcher-outline.bk-switcher-large:after {
|
281
|
+
width: 18px;
|
282
|
+
height: 18px;
|
283
|
+
}
|
284
|
+
.bk-switcher.bk-switcher-outline.bk-switcher-large.is-checked:after {
|
285
|
+
margin-left: -20px;
|
286
|
+
}
|
287
|
+
.bk-switcher.bk-switcher-square {
|
288
|
+
border-radius: 2px;
|
289
|
+
}
|
290
|
+
.bk-switcher.bk-switcher-square:after {
|
291
|
+
border-radius: 2px;
|
292
|
+
}
|
293
|
+
.bk-switcher.bk-switcher-square .switcher-label {
|
294
|
+
width: 35px;
|
295
|
+
}
|
296
|
+
.bk-switcher.bk-switcher-large {
|
297
|
+
width: 42px;
|
298
|
+
height: 24px;
|
299
|
+
line-height: 22px;
|
300
|
+
border-radius: 12px;
|
301
|
+
}
|
302
|
+
.bk-switcher.bk-switcher-large:after {
|
303
|
+
width: 20px;
|
304
|
+
height: 20px;
|
305
|
+
}
|
306
|
+
.bk-switcher.bk-switcher-large.is-checked:after {
|
307
|
+
top: 2px;
|
308
|
+
left: 100%;
|
309
|
+
margin-left: -22px;
|
310
|
+
}
|
311
|
+
.bk-switcher.bk-switcher-large .bk-switcher-loading {
|
312
|
+
width: 22px;
|
313
|
+
height: 22px;
|
314
|
+
}
|
315
|
+
.bk-switcher.bk-switcher-small {
|
316
|
+
width: 26px;
|
317
|
+
height: 16px;
|
318
|
+
line-height: 22px;
|
319
|
+
}
|
320
|
+
.bk-switcher.bk-switcher-small:after {
|
321
|
+
width: 12px;
|
322
|
+
height: 12px;
|
323
|
+
}
|
324
|
+
.bk-switcher.bk-switcher-small.is-checked:after {
|
325
|
+
top: 2px;
|
326
|
+
left: 100%;
|
327
|
+
margin-left: -14px;
|
328
|
+
}
|
329
|
+
.bk-switcher.bk-switcher-small .bk-switcher-loading {
|
330
|
+
width: 14px;
|
331
|
+
height: 14px;
|
332
|
+
}
|
333
|
+
.bk-switcher input[type=checkbox],
|
334
|
+
.bk-switcher input[type=radio] {
|
335
|
+
position: absolute;
|
336
|
+
top: 0;
|
337
|
+
left: 0;
|
338
|
+
z-index: 1;
|
339
|
+
width: 100%;
|
340
|
+
height: 100%;
|
341
|
+
margin: 0;
|
342
|
+
cursor: pointer;
|
343
|
+
opacity: 0;
|
344
|
+
}
|