bkui-vue 0.0.1-beta.14 → 0.0.1-beta.17
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 +25 -17
- package/README_EN.md +89 -0
- package/dist/bkui-vue.cjs.js +2266 -535
- package/dist/bkui-vue.esm.js +2308 -582
- package/dist/bkui-vue.umd.js +2266 -535
- package/dist/style.css +601 -189
- package/lib/alert/alert.d.ts +24 -15
- package/lib/alert/alert.variable.css +6 -0
- package/lib/alert/index.d.ts +96 -60
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +12 -7
- package/lib/animate-number/index.d.ts +48 -28
- package/lib/backtop/backtop.d.ts +27 -13
- package/lib/backtop/backtop.variable.css +6 -0
- package/lib/backtop/index.d.ts +108 -52
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.d.ts +40 -19
- package/lib/badge/badge.variable.css +6 -0
- package/lib/badge/index.d.ts +144 -76
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
- package/lib/breadcrumb/breadcrumb.css +10 -1
- package/lib/breadcrumb/breadcrumb.d.ts +37 -9
- package/lib/breadcrumb/breadcrumb.less +13 -2
- package/lib/breadcrumb/breadcrumb.variable.css +16 -1
- package/lib/breadcrumb/index.d.ts +117 -45
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button-group.d.ts +3 -5
- package/lib/button/button.d.ts +27 -22
- package/lib/button/button.variable.css +6 -0
- package/lib/button/index.d.ts +111 -93
- package/lib/button/index.js +1 -1
- package/lib/card/card.d.ts +30 -15
- package/lib/card/card.variable.css +6 -0
- package/lib/card/index.d.ts +120 -60
- package/lib/card/index.js +1 -1
- package/lib/checkbox/checkbox-group.d.ts +13 -9
- package/lib/checkbox/checkbox.d.ts +31 -22
- package/lib/checkbox/checkbox.variable.css +6 -0
- package/lib/checkbox/index.d.ts +137 -97
- package/lib/checkbox/index.js +1 -1
- package/lib/collapse/collapse.d.ts +50 -18
- package/lib/collapse/index.d.ts +108 -72
- package/lib/collapse/index.js +1 -1
- package/lib/components.d.ts +4 -0
- package/lib/date-picker/date-picker.d.ts +110 -63
- package/lib/date-picker/date-picker.variable.css +6 -0
- package/lib/date-picker/index.d.ts +437 -249
- package/lib/date-picker/index.js +1 -1
- package/lib/dialog/dialog.d.ts +46 -25
- package/lib/dialog/index.d.ts +179 -95
- package/lib/directives/index.js +1 -1
- package/lib/divider/divider.d.ts +21 -13
- package/lib/divider/divider.variable.css +6 -0
- package/lib/divider/index.d.ts +84 -52
- package/lib/dropdown/dropdown-item.d.ts +6 -5
- package/lib/dropdown/dropdown-menu.d.ts +6 -5
- package/lib/dropdown/dropdown.d.ts +25 -13
- package/lib/dropdown/dropdown.variable.css +6 -0
- package/lib/dropdown/index.d.ts +94 -62
- package/lib/exception/exception.d.ts +11 -9
- package/lib/exception/exception.variable.css +6 -0
- package/lib/exception/index.d.ts +44 -36
- package/lib/fixed-navbar/fixed-navbar.d.ts +15 -9
- package/lib/fixed-navbar/fixed-navbar.variable.css +6 -0
- package/lib/fixed-navbar/index.d.ts +60 -36
- package/lib/form/form-item.d.ts +46 -27
- package/lib/form/form.d.ts +21 -13
- package/lib/form/index.js +1 -1
- package/lib/icon/angle-double-left.js +15 -0
- package/lib/icon/angle-double-right.js +15 -0
- package/lib/icon/angle-down-fill.d.ts +4 -0
- package/lib/icon/angle-down-fill.js +15 -0
- package/lib/icon/angle-down-line.js +15 -0
- package/lib/icon/angle-down.js +15 -0
- package/lib/icon/angle-left.js +15 -0
- package/lib/icon/angle-right.js +15 -0
- package/lib/icon/angle-up-fill.d.ts +4 -0
- package/lib/icon/angle-up-fill.js +15 -0
- package/lib/icon/angle-up.js +15 -0
- package/lib/icon/arrows-left.d.ts +4 -0
- package/lib/icon/arrows-left.js +15 -0
- package/lib/icon/circle.js +15 -0
- package/lib/icon/close.js +15 -0
- package/lib/icon/code.js +15 -0
- package/lib/icon/cog-shape.js +15 -0
- package/lib/icon/collapse-left.js +15 -0
- package/lib/icon/copy.js +15 -0
- package/lib/icon/done.js +15 -0
- package/lib/icon/down-shape.js +15 -0
- package/lib/icon/down-small.js +15 -0
- package/lib/icon/error.js +15 -0
- package/lib/icon/eye.js +15 -0
- package/lib/icon/folder-open.js +15 -0
- package/lib/icon/folder-shape-open.js +15 -0
- package/lib/icon/folder-shape.js +15 -0
- package/lib/icon/folder.js +15 -0
- package/lib/icon/help-document-fill.js +15 -0
- package/lib/icon/help-fill.js +15 -0
- package/lib/icon/help.js +15 -0
- package/lib/icon/icon.js +15 -0
- package/lib/icon/index.d.ts +7 -3
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.js +15 -0
- package/lib/icon/info.js +15 -0
- package/lib/icon/play-shape.js +15 -0
- package/lib/icon/plus.js +15 -0
- package/lib/icon/right-shape.js +15 -0
- package/lib/icon/search.js +15 -0
- package/lib/icon/share.js +15 -0
- package/lib/icon/spinner.d.ts +4 -0
- package/lib/icon/spinner.js +15 -0
- package/lib/icon/success.js +15 -0
- package/lib/icon/switcher-loading.js +15 -0
- package/lib/icon/text-file.js +15 -0
- package/lib/icon/tree-application-shape.js +15 -0
- package/lib/icon/unvisible.js +15 -0
- package/lib/icon/warn.js +15 -0
- package/lib/input/index.d.ts +251 -163
- package/lib/input/index.js +2 -2
- package/lib/input/input.css +1 -0
- package/lib/input/input.d.ts +62 -40
- package/lib/input/input.less +4 -3
- package/lib/input/input.variable.css +7 -0
- package/lib/link/index.d.ts +100 -52
- package/lib/link/link.d.ts +25 -13
- package/lib/link/link.variable.css +6 -0
- package/lib/loading/index.d.ts +64 -64
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.d.ts +16 -16
- package/lib/loading/loading.variable.css +6 -0
- package/lib/menu/index.d.ts +90 -71
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu-group.d.ts +6 -5
- package/lib/menu/menu-item.d.ts +6 -5
- package/lib/menu/menu.d.ts +18 -14
- package/lib/menu/menu.variable.css +6 -0
- package/lib/menu/submenu.css +3 -0
- package/lib/menu/submenu.d.ts +6 -5
- package/lib/menu/submenu.less +1 -1
- package/lib/menu/submenu.variable.css +9 -0
- package/lib/message/index.js +1 -1
- package/lib/message/message.variable.css +6 -0
- package/lib/message/messageConstructor.d.ts +28 -16
- package/lib/modal/index.d.ts +92 -56
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.d.ts +24 -15
- package/lib/modal/props.mixin.d.ts +1 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation-title.d.ts +10 -7
- package/lib/navigation/navigation.d.ts +40 -23
- package/lib/navigation/navigation.variable.css +6 -0
- package/lib/notify/index.js +1 -1
- package/lib/notify/notify.variable.css +6 -0
- package/lib/notify/notifyConstructor.d.ts +37 -21
- package/lib/popover/index.d.ts +219 -134
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +22 -13
- package/lib/popover/popover.d.ts +73 -44
- package/lib/popover/popover.less +55 -45
- package/lib/popover/popover.variable.css +28 -13
- package/lib/popover/props.d.ts +77 -0
- package/lib/process/index.d.ts +120 -60
- package/lib/process/index.js +1 -1
- package/lib/process/process.css +2 -3
- package/lib/process/process.d.ts +30 -15
- package/lib/process/process.less +2 -3
- package/lib/process/process.variable.css +8 -3
- package/lib/progress/index.d.ts +290 -120
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +0 -3
- package/lib/progress/progress.d.ts +84 -31
- package/lib/progress/progress.less +0 -4
- package/lib/progress/progress.variable.css +6 -3
- package/lib/radio/index.d.ts +127 -78
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +24 -16
- package/lib/radio/radio-group.d.ts +11 -10
- package/lib/radio/radio.d.ts +23 -13
- package/lib/radio/radio.variable.css +6 -0
- package/lib/rate/index.d.ts +52 -40
- package/lib/rate/rate.d.ts +13 -10
- package/lib/rate/star.d.ts +32 -15
- package/lib/select/common.d.ts +10 -1
- package/lib/select/index.d.ts +515 -503
- package/lib/select/index.js +2 -2
- package/lib/select/option.d.ts +10 -17
- package/lib/select/optionGroup.d.ts +67 -52
- package/lib/select/select.css +71 -14
- package/lib/select/select.d.ts +136 -137
- package/lib/select/select.less +73 -14
- package/lib/select/select.variable.css +77 -14
- package/lib/shared/bk-helper-core.d.ts +6 -0
- package/lib/shared/bk-popover.d.ts +45 -4
- package/lib/shared/index.d.ts +10 -0
- package/lib/shared/index.js +1 -1
- package/lib/shared/utils.d.ts +6 -0
- package/lib/sideslider/index.d.ts +111 -63
- package/lib/sideslider/sideslider.d.ts +29 -17
- package/lib/sideslider/sideslider.variable.css +6 -0
- package/lib/slider/slider-button.d.ts +10 -7
- package/lib/slider/slider.d.ts +70 -40
- package/lib/slider/slider.variable.css +6 -0
- package/lib/steps/index.d.ts +156 -104
- package/lib/steps/index.js +1 -1
- package/lib/steps/steps.css +3 -0
- package/lib/steps/steps.d.ts +39 -26
- package/lib/steps/steps.less +4 -0
- package/lib/steps/steps.variable.css +9 -0
- package/lib/styles/index.d.ts +2 -0
- package/lib/styles/index.js +1 -1
- package/lib/styles/themes/themes.less +10 -0
- package/lib/switcher/index.d.ts +192 -128
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +149 -135
- package/lib/switcher/switcher.d.ts +48 -32
- package/lib/switcher/switcher.less +210 -154
- package/lib/switcher/switcher.variable.css +155 -135
- package/lib/tab/index.d.ts +344 -208
- package/lib/tab/index.js +1 -1
- package/lib/tab/tab-nav.d.ts +74 -38
- package/lib/tab/tab-panel.d.ts +22 -20
- package/lib/tab/tab.d.ts +64 -32
- package/lib/tab/tab.variable.css +6 -0
- package/lib/table/const.d.ts +4 -0
- package/lib/table/index.d.ts +169 -70
- package/lib/table/index.js +1 -1
- package/lib/table/props.d.ts +56 -0
- package/lib/table/render.d.ts +19 -3
- package/lib/table/table.css +52 -13
- package/lib/table/table.d.ts +71 -12
- package/lib/table/table.less +62 -18
- package/lib/table/table.variable.css +60 -15
- package/lib/table/utils.d.ts +34 -1
- package/lib/tag/index.d.ts +10 -286
- package/lib/tag/tag.d.ts +2 -48
- package/lib/tag/tag.variable.css +6 -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 +327 -0
- package/lib/tree/index.d.ts +148 -69
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +70 -0
- package/lib/tree/tree.css +16 -7
- package/lib/tree/tree.d.ts +51 -23
- package/lib/tree/tree.less +24 -24
- package/lib/tree/tree.variable.css +16 -7
- package/lib/tree/util.d.ts +3 -44
- 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 +40 -0
- package/lib/virtual-render/virtual-render.d.ts +244 -0
- package/lib/virtual-render/virtual-render.less +51 -0
- package/lib/virtual-render/virtual-render.variable.css +40 -0
- package/package.json +9 -7
@@ -22,181 +22,181 @@
|
|
22
22
|
.bk-switcher {
|
23
23
|
position: relative;
|
24
24
|
display: inline-block;
|
25
|
-
/* 默认尺寸 */
|
26
|
-
width: 36px;
|
27
25
|
height: 20px;
|
26
|
+
/* 默认尺寸 */
|
27
|
+
min-width: 36px;
|
28
|
+
padding: 0;
|
29
|
+
margin: 0;
|
30
|
+
font-size: 14px;
|
28
31
|
line-height: 20px;
|
29
32
|
text-align: left;
|
30
33
|
vertical-align: middle;
|
34
|
+
list-style: none;
|
35
|
+
cursor: pointer;
|
31
36
|
background-color: #c4c6cc;
|
37
|
+
border: 1px solid transparent;
|
32
38
|
border-radius: 50px;
|
39
|
+
border-radius: 100px;
|
40
|
+
box-sizing: border-box;
|
33
41
|
transition: all 0.4s ease;
|
42
|
+
transition: all 0.36s;
|
43
|
+
user-select: none;
|
34
44
|
/* 显示文本时固定尺寸 */
|
35
45
|
}
|
36
|
-
.bk-switcher:focus {
|
37
|
-
box-shadow: 0px 0px 6px #c4c6cc;
|
38
|
-
}
|
39
46
|
.bk-switcher:after {
|
40
47
|
position: absolute;
|
41
|
-
top:
|
42
|
-
left:
|
43
|
-
|
44
|
-
|
45
|
-
height: 24px;
|
48
|
+
top: 1px;
|
49
|
+
left: 1px;
|
50
|
+
width: 16px;
|
51
|
+
height: 16px;
|
46
52
|
cursor: pointer;
|
47
53
|
background: #fff;
|
48
|
-
|
49
|
-
|
50
|
-
|
54
|
+
background-color: #fff;
|
55
|
+
border-radius: 18px;
|
56
|
+
content: ' ';
|
51
57
|
transition: all 0.3s ease;
|
52
58
|
}
|
53
|
-
.bk-switcher
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
59
|
+
.bk-switcher .switcher-text {
|
60
|
+
display: block;
|
61
|
+
margin-right: 6px;
|
62
|
+
margin-left: 28px;
|
63
|
+
font-size: 12px;
|
64
|
+
font-weight: 400;
|
65
|
+
color: #fff;
|
66
|
+
text-align: center;
|
67
|
+
transition: all 0.3s ease;
|
62
68
|
}
|
63
|
-
.bk-switcher.
|
64
|
-
|
69
|
+
.bk-switcher .animating-node {
|
70
|
+
position: absolute;
|
71
|
+
top: 0;
|
72
|
+
right: 0;
|
73
|
+
bottom: 0;
|
74
|
+
left: 0;
|
75
|
+
display: block;
|
76
|
+
pointer-events: none;
|
77
|
+
border-radius: inherit;
|
78
|
+
content: '';
|
79
|
+
opacity: 0.2;
|
80
|
+
box-shadow: 0 0 0 0 #1890ff;
|
81
|
+
animation: fadeEffect 2s cubic-bezier(0.08, 0.82, 0.17, 1), waveEffect 0.4s cubic-bezier(0.08, 0.82, 0.17, 1);
|
82
|
+
animation-fill-mode: forwards;
|
65
83
|
}
|
66
84
|
.bk-switcher .bk-switcher-loading {
|
67
85
|
position: absolute;
|
68
|
-
top:
|
86
|
+
top: 1px;
|
69
87
|
left: 1px;
|
70
|
-
z-index:
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
88
|
+
z-index: 1;
|
89
|
+
width: 16px;
|
90
|
+
height: 16px;
|
91
|
+
font-size: 12px;
|
92
|
+
color: #c4c6cc;
|
93
|
+
cursor: pointer;
|
94
|
+
background: transparent;
|
95
|
+
border-radius: 16px;
|
96
|
+
content: ' ';
|
97
|
+
transition: all 0.36s cubic-bezier(0.78, 0.14, 0.15, 0.86);
|
75
98
|
}
|
76
99
|
.bk-switcher .bk-switcher-loading svg {
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
font-size: 12px;
|
85
|
-
font-weight: normal;
|
86
|
-
color: #fff;
|
87
|
-
text-align: center;
|
88
|
-
vertical-align: top;
|
89
|
-
transition: all ease 0.3s;
|
100
|
+
position: absolute;
|
101
|
+
top: 0;
|
102
|
+
right: 0;
|
103
|
+
bottom: 0;
|
104
|
+
left: 0;
|
105
|
+
margin: auto;
|
106
|
+
animation: loading 1s linear infinite;
|
90
107
|
}
|
91
|
-
.bk-switcher
|
92
|
-
|
108
|
+
.bk-switcher.is-loading {
|
109
|
+
cursor: defalt;
|
93
110
|
}
|
94
|
-
.bk-switcher
|
95
|
-
|
111
|
+
.bk-switcher.is-loading input[type=checkbox] {
|
112
|
+
cursor: default;
|
96
113
|
}
|
97
114
|
.bk-switcher.show-label {
|
98
|
-
width: 60px;
|
99
115
|
height: 28px;
|
116
|
+
min-width: 60px;
|
100
117
|
line-height: 28px;
|
101
118
|
}
|
102
|
-
.bk-switcher.show-label
|
103
|
-
|
119
|
+
.bk-switcher.show-label::after {
|
120
|
+
width: 24px;
|
121
|
+
height: 24px;
|
104
122
|
}
|
105
123
|
.bk-switcher.show-label .bk-switcher-loading {
|
106
|
-
width:
|
107
|
-
height:
|
108
|
-
|
109
|
-
justify-content: center;
|
124
|
+
width: 24px;
|
125
|
+
height: 24px;
|
126
|
+
font-size: 20px;
|
110
127
|
}
|
111
|
-
.bk-switcher.show-label .bk-switcher-loading
|
112
|
-
|
128
|
+
.bk-switcher.show-label.is-checked .bk-switcher-loading {
|
129
|
+
left: 100%;
|
130
|
+
margin-left: -25px;
|
113
131
|
}
|
114
132
|
.bk-switcher.is-disabled {
|
115
|
-
cursor:
|
116
|
-
/* background-color: #eee !important; */
|
133
|
+
cursor: not-allowed;
|
117
134
|
opacity: 0.3;
|
118
135
|
}
|
119
|
-
.bk-switcher.is-disabled
|
136
|
+
.bk-switcher.is-disabled .bk-switcher-loading {
|
137
|
+
cursor: not-allowed;
|
138
|
+
}
|
139
|
+
.bk-switcher.is-disabled::after {
|
120
140
|
cursor: not-allowed;
|
121
141
|
}
|
122
142
|
.bk-switcher.is-checked {
|
123
143
|
background: #2dcb56;
|
124
144
|
}
|
125
|
-
.bk-switcher.is-checked
|
126
|
-
|
145
|
+
.bk-switcher.is-checked .bk-switcher-loading svg {
|
146
|
+
color: #2dcb56;
|
127
147
|
}
|
128
|
-
.bk-switcher.is-checked.primary {
|
148
|
+
.bk-switcher.is-checked:not(.bk-switcher-outline).bk-switcher.is-checked.primary {
|
129
149
|
background: #3a84ff;
|
130
150
|
}
|
131
|
-
.bk-switcher.is-checked.primary
|
132
|
-
|
151
|
+
.bk-switcher.is-checked:not(.bk-switcher-outline).bk-switcher.is-checked.primary .bk-switcher-loading svg {
|
152
|
+
color: #3a84ff;
|
133
153
|
}
|
134
154
|
.bk-switcher.is-checked:after {
|
135
|
-
top: 2px;
|
136
155
|
left: 100%;
|
137
|
-
margin-left: -
|
156
|
+
margin-left: -1px;
|
157
|
+
transform: translateX(-100%);
|
138
158
|
}
|
139
|
-
.bk-switcher.is-checked .switcher-
|
140
|
-
margin-
|
159
|
+
.bk-switcher.is-checked .switcher-text {
|
160
|
+
margin-right: 28px;
|
161
|
+
margin-left: 6px;
|
141
162
|
}
|
142
|
-
.bk-switcher.is-checked .switcher-
|
143
|
-
|
144
|
-
|
145
|
-
.bk-switcher.is-checked .switcher-label .off-text {
|
146
|
-
display: none;
|
147
|
-
}
|
148
|
-
.bk-switcher.is-checked .bk-switcher-loading {
|
149
|
-
right: 1px;
|
150
|
-
left: auto;
|
163
|
+
.bk-switcher:not(.show-label).is-checked .bk-switcher-loading {
|
164
|
+
left: 100%;
|
165
|
+
margin-left: -17px;
|
151
166
|
}
|
152
167
|
.bk-switcher.bk-switcher-outline {
|
153
168
|
background: #fff;
|
154
169
|
border: 1px solid #c4c6cc;
|
155
170
|
}
|
156
171
|
.bk-switcher.bk-switcher-outline:after {
|
157
|
-
width:
|
158
|
-
height:
|
172
|
+
width: 24px;
|
173
|
+
height: 24px;
|
159
174
|
background-color: #c4c6cc;
|
160
175
|
box-shadow: none;
|
161
176
|
}
|
162
|
-
.bk-switcher.bk-switcher-outline .switcher-
|
163
|
-
height: 26px;
|
164
|
-
margin-left: 24px;
|
177
|
+
.bk-switcher.bk-switcher-outline .switcher-text {
|
165
178
|
color: #c4c6cc;
|
166
179
|
}
|
167
|
-
.bk-switcher.bk-switcher-outline .bk-switcher-loading {
|
168
|
-
width: 22px;
|
169
|
-
height: 22px;
|
170
|
-
align-items: center;
|
171
|
-
justify-content: center;
|
172
|
-
}
|
173
180
|
.bk-switcher.bk-switcher-outline.is-checked {
|
174
181
|
border: 1px solid #2dcb56;
|
175
182
|
}
|
176
183
|
.bk-switcher.bk-switcher-outline.is-checked:after {
|
177
|
-
margin-left: -24px;
|
178
184
|
background-color: #2dcb56;
|
179
185
|
}
|
180
|
-
.bk-switcher.bk-switcher-outline.is-checked .switcher-
|
181
|
-
margin-left: 4px;
|
186
|
+
.bk-switcher.bk-switcher-outline.is-checked .switcher-text {
|
182
187
|
color: #2dcb56;
|
183
188
|
}
|
184
|
-
.bk-switcher.bk-switcher-outline.
|
185
|
-
|
186
|
-
border-color: #eee;
|
187
|
-
}
|
188
|
-
.bk-switcher.bk-switcher-outline.is-disabled .switcher-label {
|
189
|
-
color: #eee;
|
189
|
+
.bk-switcher.bk-switcher-outline .bk-switcher-loading svg {
|
190
|
+
color: #fff;
|
190
191
|
}
|
191
|
-
.bk-switcher.bk-switcher-outline.is-
|
192
|
-
|
192
|
+
.bk-switcher.bk-switcher-outline.bk-switcher.primary.is-checked {
|
193
|
+
border: 1px solid #3a84ff;
|
193
194
|
}
|
194
|
-
.bk-switcher.bk-switcher-outline.bk-switcher-
|
195
|
-
|
196
|
-
height: 18px;
|
195
|
+
.bk-switcher.bk-switcher-outline.bk-switcher.primary.is-checked:after {
|
196
|
+
background: #3a84ff;
|
197
197
|
}
|
198
|
-
.bk-switcher.bk-switcher-outline.bk-switcher
|
199
|
-
|
198
|
+
.bk-switcher.bk-switcher-outline.bk-switcher.primary.is-checked .switcher-text {
|
199
|
+
color: #3a84ff;
|
200
200
|
}
|
201
201
|
.bk-switcher.bk-switcher-square {
|
202
202
|
border-radius: 2px;
|
@@ -204,55 +204,69 @@
|
|
204
204
|
.bk-switcher.bk-switcher-square:after {
|
205
205
|
border-radius: 2px;
|
206
206
|
}
|
207
|
-
.bk-switcher.bk-switcher-square .switcher-label {
|
208
|
-
width: 35px;
|
209
|
-
}
|
210
207
|
.bk-switcher.bk-switcher-large {
|
211
|
-
width: 42px;
|
212
208
|
height: 24px;
|
209
|
+
min-width: 42px;
|
213
210
|
line-height: 22px;
|
214
|
-
border-radius: 12px;
|
215
211
|
}
|
216
212
|
.bk-switcher.bk-switcher-large:after {
|
217
213
|
width: 20px;
|
218
214
|
height: 20px;
|
219
215
|
}
|
220
|
-
.bk-switcher.bk-switcher-large.is-checked:after {
|
221
|
-
top: 2px;
|
222
|
-
left: 100%;
|
223
|
-
margin-left: -22px;
|
224
|
-
}
|
225
216
|
.bk-switcher.bk-switcher-large .bk-switcher-loading {
|
226
|
-
width:
|
227
|
-
height:
|
217
|
+
width: 20px;
|
218
|
+
height: 20px;
|
219
|
+
font-size: 16px;
|
220
|
+
}
|
221
|
+
.bk-switcher.bk-switcher-large.is-checked .bk-switcher-loading {
|
222
|
+
margin-left: -21px;
|
228
223
|
}
|
229
224
|
.bk-switcher.bk-switcher-small {
|
230
|
-
width: 26px;
|
231
225
|
height: 16px;
|
226
|
+
min-width: 26px;
|
232
227
|
line-height: 22px;
|
233
228
|
}
|
234
229
|
.bk-switcher.bk-switcher-small:after {
|
235
230
|
width: 12px;
|
236
231
|
height: 12px;
|
237
232
|
}
|
238
|
-
.bk-switcher.bk-switcher-small.is-checked:after {
|
239
|
-
top: 2px;
|
240
|
-
left: 100%;
|
241
|
-
margin-left: -14px;
|
242
|
-
}
|
243
233
|
.bk-switcher.bk-switcher-small .bk-switcher-loading {
|
244
|
-
width:
|
245
|
-
height:
|
234
|
+
width: 12px;
|
235
|
+
height: 12px;
|
236
|
+
font-weight: 700;
|
237
|
+
transform: scale(0.66667);
|
246
238
|
}
|
247
|
-
.bk-switcher
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
239
|
+
.bk-switcher.bk-switcher-small.is-checked .bk-switcher-loading {
|
240
|
+
margin-left: -13px;
|
241
|
+
}
|
242
|
+
:not(.show-label).bk-switcher-nomal.bk-switcher-outline::after {
|
243
|
+
width: 16px;
|
244
|
+
height: 16px;
|
245
|
+
}
|
246
|
+
:not(.show-label).bk-switcher-outline.is-checked.bk-switcher-small::after {
|
247
|
+
width: 12px;
|
248
|
+
height: 12px;
|
249
|
+
}
|
250
|
+
:not(.show-label).bk-switcher-outline.is-checked.bk-switcher-large::after {
|
251
|
+
width: 20px;
|
252
|
+
height: 20px;
|
253
|
+
}
|
254
|
+
:not(.show-label).bk-switcher-outline.is-checked::after {
|
255
|
+
width: 16px;
|
256
|
+
height: 16px;
|
257
|
+
}
|
258
|
+
@keyframes fadeEffect {
|
259
|
+
100% {
|
260
|
+
opacity: 0;
|
261
|
+
}
|
262
|
+
}
|
263
|
+
@keyframes waveEffect {
|
264
|
+
100% {
|
265
|
+
box-shadow: 0 0 0 #1890ff;
|
266
|
+
}
|
267
|
+
}
|
268
|
+
@keyframes loading {
|
269
|
+
100% {
|
270
|
+
transform: rotate(1turn);
|
271
|
+
}
|
258
272
|
}
|
@@ -45,38 +45,54 @@ declare const _default: import("vue").DefineComponent<{
|
|
45
45
|
modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
|
46
46
|
default: string | number | boolean;
|
47
47
|
};
|
48
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
49
|
-
theme
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
preCheck
|
79
|
-
|
48
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
49
|
+
theme: import("vue-types").VueTypeDef<string> & {
|
50
|
+
default: string;
|
51
|
+
};
|
52
|
+
size: import("vue-types").VueTypeDef<string>;
|
53
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
54
|
+
default: boolean;
|
55
|
+
};
|
56
|
+
showText: import("vue-types").VueTypeValidableDef<boolean> & {
|
57
|
+
default: boolean;
|
58
|
+
};
|
59
|
+
isOutline: import("vue-types").VueTypeValidableDef<boolean> & {
|
60
|
+
default: boolean;
|
61
|
+
};
|
62
|
+
onText: import("vue-types").VueTypeValidableDef<string> & {
|
63
|
+
default: string;
|
64
|
+
} & {
|
65
|
+
default: string;
|
66
|
+
};
|
67
|
+
offText: import("vue-types").VueTypeValidableDef<string> & {
|
68
|
+
default: string;
|
69
|
+
} & {
|
70
|
+
default: string;
|
71
|
+
};
|
72
|
+
isSquare: import("vue-types").VueTypeValidableDef<boolean> & {
|
73
|
+
default: boolean;
|
74
|
+
};
|
75
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
76
|
+
default: string;
|
77
|
+
};
|
78
|
+
preCheck: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
79
|
+
default: (...args: any[]) => any;
|
80
|
+
} & {
|
81
|
+
default: (...args: any[]) => any;
|
82
|
+
};
|
83
|
+
trueValue: import("vue-types").VueTypeDef<string | number | boolean> & {
|
84
|
+
default: string | number | boolean;
|
85
|
+
};
|
86
|
+
falseValue: import("vue-types").VueTypeDef<string | number | boolean> & {
|
87
|
+
default: string | number | boolean;
|
88
|
+
};
|
89
|
+
value: import("vue-types").VueTypeDef<string | number | boolean> & {
|
90
|
+
default: string | number | boolean;
|
91
|
+
};
|
92
|
+
modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
|
93
|
+
default: string | number | boolean;
|
94
|
+
};
|
95
|
+
}>> & {
|
80
96
|
onChange?: (...args: any[]) => any;
|
81
97
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
82
98
|
}, {
|