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
@@ -83,6 +83,12 @@
|
|
83
83
|
--date-picker-disabled-bg: #fafbfd;
|
84
84
|
--date-picker-dropdown-mb: 4px;
|
85
85
|
--date-picker-dropdown-bg: #fff;
|
86
|
+
--table-bg-color: var(--white-color);
|
87
|
+
--table-border-color: #dcdee5;
|
88
|
+
--table-head-bg-color: #fafbfd;
|
89
|
+
--table-head-font-color: #313238;
|
90
|
+
--table-body-font-color: #575961;
|
91
|
+
--table-row-hover-bg-color: #f5f7fa;
|
86
92
|
}
|
87
93
|
@keyframes loading-scale-animate {
|
88
94
|
0% {
|
@@ -108,181 +114,181 @@
|
|
108
114
|
.bk-switcher {
|
109
115
|
position: relative;
|
110
116
|
display: inline-block;
|
111
|
-
/* 默认尺寸 */
|
112
|
-
width: 36px;
|
113
117
|
height: 20px;
|
118
|
+
/* 默认尺寸 */
|
119
|
+
min-width: 36px;
|
120
|
+
padding: 0;
|
121
|
+
margin: 0;
|
122
|
+
font-size: 14px;
|
114
123
|
line-height: 20px;
|
115
124
|
text-align: left;
|
116
125
|
vertical-align: middle;
|
126
|
+
list-style: none;
|
127
|
+
cursor: pointer;
|
117
128
|
background-color: var(--switch-grey-color);
|
129
|
+
border: 1px solid transparent;
|
118
130
|
border-radius: 50px;
|
131
|
+
border-radius: 100px;
|
132
|
+
box-sizing: border-box;
|
119
133
|
transition: all 0.4s ease;
|
134
|
+
transition: all 0.36s;
|
135
|
+
user-select: none;
|
120
136
|
/* 显示文本时固定尺寸 */
|
121
137
|
}
|
122
|
-
.bk-switcher:focus {
|
123
|
-
box-shadow: 0px 0px 6px var(--switch-grey-color);
|
124
|
-
}
|
125
138
|
.bk-switcher:after {
|
126
139
|
position: absolute;
|
127
|
-
top:
|
128
|
-
left:
|
129
|
-
|
130
|
-
|
131
|
-
height: 24px;
|
140
|
+
top: 1px;
|
141
|
+
left: 1px;
|
142
|
+
width: 16px;
|
143
|
+
height: 16px;
|
132
144
|
cursor: pointer;
|
133
145
|
background: var(--switch-default-color);
|
134
|
-
|
135
|
-
|
136
|
-
|
146
|
+
background-color: #fff;
|
147
|
+
border-radius: 18px;
|
148
|
+
content: ' ';
|
137
149
|
transition: all 0.3s ease;
|
138
150
|
}
|
139
|
-
.bk-switcher
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
151
|
+
.bk-switcher .switcher-text {
|
152
|
+
display: block;
|
153
|
+
margin-right: 6px;
|
154
|
+
margin-left: 28px;
|
155
|
+
font-size: 12px;
|
156
|
+
font-weight: 400;
|
157
|
+
color: #fff;
|
158
|
+
text-align: center;
|
159
|
+
transition: all 0.3s ease;
|
148
160
|
}
|
149
|
-
.bk-switcher.
|
150
|
-
|
161
|
+
.bk-switcher .animating-node {
|
162
|
+
position: absolute;
|
163
|
+
top: 0;
|
164
|
+
right: 0;
|
165
|
+
bottom: 0;
|
166
|
+
left: 0;
|
167
|
+
display: block;
|
168
|
+
pointer-events: none;
|
169
|
+
border-radius: inherit;
|
170
|
+
content: '';
|
171
|
+
opacity: 0.2;
|
172
|
+
box-shadow: 0 0 0 0 #1890ff;
|
173
|
+
animation: fadeEffect 2s cubic-bezier(0.08, 0.82, 0.17, 1), waveEffect 0.4s cubic-bezier(0.08, 0.82, 0.17, 1);
|
174
|
+
animation-fill-mode: forwards;
|
151
175
|
}
|
152
176
|
.bk-switcher .bk-switcher-loading {
|
153
177
|
position: absolute;
|
154
|
-
top:
|
178
|
+
top: 1px;
|
155
179
|
left: 1px;
|
156
|
-
z-index:
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
180
|
+
z-index: 1;
|
181
|
+
width: 16px;
|
182
|
+
height: 16px;
|
183
|
+
font-size: 12px;
|
184
|
+
color: var(--switch-grey-color);
|
185
|
+
cursor: pointer;
|
186
|
+
background: transparent;
|
187
|
+
border-radius: 16px;
|
188
|
+
content: ' ';
|
189
|
+
transition: all 0.36s cubic-bezier(0.78, 0.14, 0.15, 0.86);
|
161
190
|
}
|
162
191
|
.bk-switcher .bk-switcher-loading svg {
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
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;
|
192
|
+
position: absolute;
|
193
|
+
top: 0;
|
194
|
+
right: 0;
|
195
|
+
bottom: 0;
|
196
|
+
left: 0;
|
197
|
+
margin: auto;
|
198
|
+
animation: loading 1s linear infinite;
|
176
199
|
}
|
177
|
-
.bk-switcher
|
178
|
-
|
200
|
+
.bk-switcher.is-loading {
|
201
|
+
cursor: defalt;
|
179
202
|
}
|
180
|
-
.bk-switcher
|
181
|
-
|
203
|
+
.bk-switcher.is-loading input[type=checkbox] {
|
204
|
+
cursor: default;
|
182
205
|
}
|
183
206
|
.bk-switcher.show-label {
|
184
|
-
width: 60px;
|
185
207
|
height: 28px;
|
208
|
+
min-width: 60px;
|
186
209
|
line-height: 28px;
|
187
210
|
}
|
188
|
-
.bk-switcher.show-label
|
189
|
-
|
211
|
+
.bk-switcher.show-label::after {
|
212
|
+
width: 24px;
|
213
|
+
height: 24px;
|
190
214
|
}
|
191
215
|
.bk-switcher.show-label .bk-switcher-loading {
|
192
|
-
width:
|
193
|
-
height:
|
194
|
-
|
195
|
-
justify-content: center;
|
216
|
+
width: 24px;
|
217
|
+
height: 24px;
|
218
|
+
font-size: 20px;
|
196
219
|
}
|
197
|
-
.bk-switcher.show-label .bk-switcher-loading
|
198
|
-
|
220
|
+
.bk-switcher.show-label.is-checked .bk-switcher-loading {
|
221
|
+
left: 100%;
|
222
|
+
margin-left: -25px;
|
199
223
|
}
|
200
224
|
.bk-switcher.is-disabled {
|
201
|
-
cursor:
|
202
|
-
/* background-color: #eee !important; */
|
225
|
+
cursor: not-allowed;
|
203
226
|
opacity: 0.3;
|
204
227
|
}
|
205
|
-
.bk-switcher.is-disabled
|
228
|
+
.bk-switcher.is-disabled .bk-switcher-loading {
|
229
|
+
cursor: not-allowed;
|
230
|
+
}
|
231
|
+
.bk-switcher.is-disabled::after {
|
206
232
|
cursor: not-allowed;
|
207
233
|
}
|
208
234
|
.bk-switcher.is-checked {
|
209
235
|
background: var(--success-color);
|
210
236
|
}
|
211
|
-
.bk-switcher.is-checked
|
212
|
-
|
237
|
+
.bk-switcher.is-checked .bk-switcher-loading svg {
|
238
|
+
color: var(--success-color);
|
213
239
|
}
|
214
|
-
.bk-switcher.is-checked.primary {
|
240
|
+
.bk-switcher.is-checked:not(.bk-switcher-outline).bk-switcher.is-checked.primary {
|
215
241
|
background: var(--primary-color);
|
216
242
|
}
|
217
|
-
.bk-switcher.is-checked.primary
|
218
|
-
|
243
|
+
.bk-switcher.is-checked:not(.bk-switcher-outline).bk-switcher.is-checked.primary .bk-switcher-loading svg {
|
244
|
+
color: var(--primary-color);
|
219
245
|
}
|
220
246
|
.bk-switcher.is-checked:after {
|
221
|
-
top: 2px;
|
222
247
|
left: 100%;
|
223
|
-
margin-left: -
|
224
|
-
|
225
|
-
.bk-switcher.is-checked .switcher-label {
|
226
|
-
margin-left: 4px;
|
248
|
+
margin-left: -1px;
|
249
|
+
transform: translateX(-100%);
|
227
250
|
}
|
228
|
-
.bk-switcher.is-checked .switcher-
|
229
|
-
|
230
|
-
|
231
|
-
.bk-switcher.is-checked .switcher-label .off-text {
|
232
|
-
display: none;
|
251
|
+
.bk-switcher.is-checked .switcher-text {
|
252
|
+
margin-right: 28px;
|
253
|
+
margin-left: 6px;
|
233
254
|
}
|
234
|
-
.bk-switcher.is-checked .bk-switcher-loading {
|
235
|
-
|
236
|
-
left:
|
255
|
+
.bk-switcher:not(.show-label).is-checked .bk-switcher-loading {
|
256
|
+
left: 100%;
|
257
|
+
margin-left: -17px;
|
237
258
|
}
|
238
259
|
.bk-switcher.bk-switcher-outline {
|
239
260
|
background: var(--switch-default-color);
|
240
261
|
border: 1px solid var(--switch-grey-color);
|
241
262
|
}
|
242
263
|
.bk-switcher.bk-switcher-outline:after {
|
243
|
-
width:
|
244
|
-
height:
|
264
|
+
width: 24px;
|
265
|
+
height: 24px;
|
245
266
|
background-color: var(--switch-grey-color);
|
246
267
|
box-shadow: none;
|
247
268
|
}
|
248
|
-
.bk-switcher.bk-switcher-outline .switcher-
|
249
|
-
height: 26px;
|
250
|
-
margin-left: 24px;
|
269
|
+
.bk-switcher.bk-switcher-outline .switcher-text {
|
251
270
|
color: var(--switch-grey-color);
|
252
271
|
}
|
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
272
|
.bk-switcher.bk-switcher-outline.is-checked {
|
260
273
|
border: 1px solid var(--success-color);
|
261
274
|
}
|
262
275
|
.bk-switcher.bk-switcher-outline.is-checked:after {
|
263
|
-
margin-left: -24px;
|
264
276
|
background-color: var(--success-color);
|
265
277
|
}
|
266
|
-
.bk-switcher.bk-switcher-outline.is-checked .switcher-
|
267
|
-
margin-left: 4px;
|
278
|
+
.bk-switcher.bk-switcher-outline.is-checked .switcher-text {
|
268
279
|
color: var(--success-color);
|
269
280
|
}
|
270
|
-
.bk-switcher.bk-switcher-outline.
|
271
|
-
|
272
|
-
border-color: #eee;
|
273
|
-
}
|
274
|
-
.bk-switcher.bk-switcher-outline.is-disabled .switcher-label {
|
275
|
-
color: #eee;
|
281
|
+
.bk-switcher.bk-switcher-outline .bk-switcher-loading svg {
|
282
|
+
color: #fff;
|
276
283
|
}
|
277
|
-
.bk-switcher.bk-switcher-outline.is-
|
278
|
-
|
284
|
+
.bk-switcher.bk-switcher-outline.bk-switcher.primary.is-checked {
|
285
|
+
border: 1px solid var(--primary-color);
|
279
286
|
}
|
280
|
-
.bk-switcher.bk-switcher-outline.bk-switcher-
|
281
|
-
|
282
|
-
height: 18px;
|
287
|
+
.bk-switcher.bk-switcher-outline.bk-switcher.primary.is-checked:after {
|
288
|
+
background: var(--primary-color);
|
283
289
|
}
|
284
|
-
.bk-switcher.bk-switcher-outline.bk-switcher
|
285
|
-
|
290
|
+
.bk-switcher.bk-switcher-outline.bk-switcher.primary.is-checked .switcher-text {
|
291
|
+
color: var(--primary-color);
|
286
292
|
}
|
287
293
|
.bk-switcher.bk-switcher-square {
|
288
294
|
border-radius: 2px;
|
@@ -290,55 +296,69 @@
|
|
290
296
|
.bk-switcher.bk-switcher-square:after {
|
291
297
|
border-radius: 2px;
|
292
298
|
}
|
293
|
-
.bk-switcher.bk-switcher-square .switcher-label {
|
294
|
-
width: 35px;
|
295
|
-
}
|
296
299
|
.bk-switcher.bk-switcher-large {
|
297
|
-
width: 42px;
|
298
300
|
height: 24px;
|
301
|
+
min-width: 42px;
|
299
302
|
line-height: 22px;
|
300
|
-
border-radius: 12px;
|
301
303
|
}
|
302
304
|
.bk-switcher.bk-switcher-large:after {
|
303
305
|
width: 20px;
|
304
306
|
height: 20px;
|
305
307
|
}
|
306
|
-
.bk-switcher.bk-switcher-large.is-checked:after {
|
307
|
-
top: 2px;
|
308
|
-
left: 100%;
|
309
|
-
margin-left: -22px;
|
310
|
-
}
|
311
308
|
.bk-switcher.bk-switcher-large .bk-switcher-loading {
|
312
|
-
width:
|
313
|
-
height:
|
309
|
+
width: 20px;
|
310
|
+
height: 20px;
|
311
|
+
font-size: 16px;
|
312
|
+
}
|
313
|
+
.bk-switcher.bk-switcher-large.is-checked .bk-switcher-loading {
|
314
|
+
margin-left: -21px;
|
314
315
|
}
|
315
316
|
.bk-switcher.bk-switcher-small {
|
316
|
-
width: 26px;
|
317
317
|
height: 16px;
|
318
|
+
min-width: 26px;
|
318
319
|
line-height: 22px;
|
319
320
|
}
|
320
321
|
.bk-switcher.bk-switcher-small:after {
|
321
322
|
width: 12px;
|
322
323
|
height: 12px;
|
323
324
|
}
|
324
|
-
.bk-switcher.bk-switcher-small.is-checked:after {
|
325
|
-
top: 2px;
|
326
|
-
left: 100%;
|
327
|
-
margin-left: -14px;
|
328
|
-
}
|
329
325
|
.bk-switcher.bk-switcher-small .bk-switcher-loading {
|
330
|
-
width:
|
331
|
-
height:
|
326
|
+
width: 12px;
|
327
|
+
height: 12px;
|
328
|
+
font-weight: 700;
|
329
|
+
transform: scale(0.66667);
|
332
330
|
}
|
333
|
-
.bk-switcher
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
331
|
+
.bk-switcher.bk-switcher-small.is-checked .bk-switcher-loading {
|
332
|
+
margin-left: -13px;
|
333
|
+
}
|
334
|
+
:not(.show-label).bk-switcher-nomal.bk-switcher-outline::after {
|
335
|
+
width: 16px;
|
336
|
+
height: 16px;
|
337
|
+
}
|
338
|
+
:not(.show-label).bk-switcher-outline.is-checked.bk-switcher-small::after {
|
339
|
+
width: 12px;
|
340
|
+
height: 12px;
|
341
|
+
}
|
342
|
+
:not(.show-label).bk-switcher-outline.is-checked.bk-switcher-large::after {
|
343
|
+
width: 20px;
|
344
|
+
height: 20px;
|
345
|
+
}
|
346
|
+
:not(.show-label).bk-switcher-outline.is-checked::after {
|
347
|
+
width: 16px;
|
348
|
+
height: 16px;
|
349
|
+
}
|
350
|
+
@keyframes fadeEffect {
|
351
|
+
100% {
|
352
|
+
opacity: 0;
|
353
|
+
}
|
354
|
+
}
|
355
|
+
@keyframes waveEffect {
|
356
|
+
100% {
|
357
|
+
box-shadow: 0 0 0 #1890ff;
|
358
|
+
}
|
359
|
+
}
|
360
|
+
@keyframes loading {
|
361
|
+
100% {
|
362
|
+
transform: rotate(1turn);
|
363
|
+
}
|
344
364
|
}
|