bkui-vue 1.0.3-beta.25 → 1.0.3-beta.26
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 +46 -46
- package/dist/index.esm.js +6148 -6162
- package/dist/index.umd.js +46 -46
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +1 -1
- package/lib/affix/affix.less +2 -2
- package/lib/affix/affix.variable.css +3 -3
- package/lib/alert/alert.css +21 -21
- package/lib/alert/alert.less +17 -16
- package/lib/alert/alert.variable.css +23 -23
- package/lib/backtop/backtop.css +11 -11
- package/lib/backtop/backtop.less +3 -3
- package/lib/backtop/backtop.variable.css +13 -13
- package/lib/badge/badge.css +32 -32
- package/lib/badge/badge.less +5 -5
- package/lib/badge/badge.variable.css +34 -34
- package/lib/breadcrumb/breadcrumb.css +31 -31
- package/lib/breadcrumb/breadcrumb.less +8 -8
- package/lib/breadcrumb/breadcrumb.variable.css +33 -33
- package/lib/button/button.css +69 -69
- package/lib/button/button.less +3 -5
- package/lib/button/button.variable.css +71 -71
- package/lib/card/card.css +31 -31
- package/lib/card/card.less +4 -4
- package/lib/card/card.variable.css +33 -33
- package/lib/cascader/cascader.css +63 -63
- package/lib/cascader/cascader.less +12 -11
- package/lib/cascader/cascader.variable.css +65 -65
- package/lib/checkbox/checkbox.css +21 -21
- package/lib/checkbox/checkbox.less +8 -8
- package/lib/checkbox/checkbox.variable.css +23 -23
- package/lib/code-diff/code-diff.css +97 -97
- package/lib/code-diff/code-diff.less +3 -4
- package/lib/code-diff/code-diff.variable.css +99 -99
- package/lib/collapse/collapse.css +30 -30
- package/lib/collapse/collapse.less +25 -24
- package/lib/collapse/collapse.variable.css +32 -32
- package/lib/collapse-transition/collapse-transition.css +32 -32
- package/lib/collapse-transition/collapse-transition.less +59 -48
- package/lib/collapse-transition/collapse-transition.variable.css +34 -34
- package/lib/color-picker/color-picker.css +57 -57
- package/lib/color-picker/color-picker.less +36 -30
- package/lib/color-picker/color-picker.variable.css +59 -59
- package/lib/config-provider/config-provider.variable.css +2 -2
- package/lib/container/container.css +19 -19
- package/lib/container/container.less +3 -3
- package/lib/container/container.variable.css +21 -21
- package/lib/date-picker/date-picker.css +92 -92
- package/lib/date-picker/date-picker.d.ts +0 -1
- package/lib/date-picker/date-picker.less +55 -54
- package/lib/date-picker/date-picker.variable.css +94 -94
- package/lib/date-picker/index.d.ts +0 -3
- package/lib/date-picker/index.js +8 -8
- package/lib/date-picker/time-picker.d.ts +0 -1
- package/lib/dialog/dialog.css +51 -51
- package/lib/dialog/dialog.less +1 -1
- package/lib/dialog/dialog.variable.css +53 -53
- package/lib/divider/divider.css +8 -8
- package/lib/divider/divider.less +5 -8
- package/lib/divider/divider.variable.css +10 -10
- package/lib/dropdown/dropdown.css +15 -15
- package/lib/dropdown/dropdown.less +6 -6
- package/lib/dropdown/dropdown.variable.css +17 -17
- package/lib/exception/exception.css +13 -13
- package/lib/exception/exception.less +6 -6
- package/lib/exception/exception.variable.css +15 -15
- package/lib/fixed-navbar/fixed-navbar.css +9 -9
- package/lib/fixed-navbar/fixed-navbar.less +1 -2
- package/lib/fixed-navbar/fixed-navbar.variable.css +11 -11
- package/lib/form/form.css +63 -63
- package/lib/form/form.less +14 -16
- package/lib/form/form.variable.css +65 -65
- package/lib/image/image-viewer.css +23 -23
- package/lib/image/image-viewer.less +24 -25
- package/lib/image/image-viewer.variable.css +25 -25
- package/lib/image/image.css +29 -29
- package/lib/image/image.less +6 -8
- package/lib/image/image.variable.css +31 -31
- package/lib/info-box/info-box.css +10 -10
- package/lib/info-box/info-box.less +1 -2
- package/lib/info-box/info-box.variable.css +12 -12
- package/lib/input/input.css +102 -104
- package/lib/input/input.less +27 -33
- package/lib/input/input.variable.css +104 -106
- package/lib/link/link.css +18 -18
- package/lib/link/link.less +1 -3
- package/lib/link/link.variable.css +20 -20
- package/lib/loading/loading.css +94 -94
- package/lib/loading/loading.less +4 -4
- package/lib/loading/loading.variable.css +96 -96
- package/lib/menu/menu.css +38 -38
- package/lib/menu/menu.less +10 -10
- package/lib/menu/menu.variable.css +40 -40
- package/lib/menu/submenu.css +1 -1
- package/lib/menu/submenu.less +1 -1
- package/lib/menu/submenu.variable.css +3 -3
- package/lib/message/message.css +59 -59
- package/lib/message/message.less +25 -24
- package/lib/message/message.variable.css +61 -61
- package/lib/modal/modal.css +26 -26
- package/lib/modal/modal.less +8 -12
- package/lib/modal/modal.variable.css +28 -28
- package/lib/navigation/navigation.css +25 -25
- package/lib/navigation/navigation.less +9 -9
- package/lib/navigation/navigation.variable.css +27 -27
- package/lib/notify/notify.css +17 -17
- package/lib/notify/notify.less +8 -6
- package/lib/notify/notify.variable.css +19 -19
- package/lib/pagination/pagination.css +60 -60
- package/lib/pagination/pagination.less +24 -25
- package/lib/pagination/pagination.variable.css +62 -62
- package/lib/pop-confirm/pop-confirm.css +10 -10
- package/lib/pop-confirm/pop-confirm.less +14 -11
- package/lib/pop-confirm/pop-confirm.variable.css +12 -12
- package/lib/popover/popover.css +5 -5
- package/lib/popover/popover.less +5 -6
- package/lib/popover/popover.variable.css +7 -7
- package/lib/process/process.css +36 -33
- package/lib/process/process.less +8 -7
- package/lib/process/process.variable.css +38 -35
- package/lib/progress/progress.css +33 -33
- package/lib/progress/progress.less +6 -5
- package/lib/progress/progress.variable.css +35 -35
- package/lib/radio/radio.css +51 -51
- package/lib/radio/radio.less +13 -20
- package/lib/radio/radio.variable.css +53 -53
- package/lib/rate/rate.css +2 -2
- package/lib/rate/rate.less +1 -1
- package/lib/rate/rate.variable.css +4 -4
- package/lib/rate/star.css +7 -7
- package/lib/rate/star.less +1 -1
- package/lib/rate/star.variable.css +9 -9
- package/lib/resize-layout/resize-layout.css +42 -42
- package/lib/resize-layout/resize-layout.less +17 -10
- package/lib/resize-layout/resize-layout.variable.css +44 -44
- package/lib/search-select/search-select.css +15 -15
- package/lib/search-select/search-select.variable.css +17 -17
- package/lib/select/select.css +87 -87
- package/lib/select/select.less +27 -22
- package/lib/select/select.variable.css +89 -89
- package/lib/shared/index.js +6 -4
- package/lib/sideslider/sideslider.css +14 -14
- package/lib/sideslider/sideslider.less +9 -13
- package/lib/sideslider/sideslider.variable.css +16 -16
- package/lib/slider/slider.css +31 -31
- package/lib/slider/slider.less +8 -8
- package/lib/slider/slider.variable.css +33 -33
- package/lib/steps/steps.css +134 -134
- package/lib/steps/steps.less +44 -48
- package/lib/steps/steps.variable.css +136 -136
- package/lib/styles/mixins/animate.css +4 -4
- package/lib/styles/mixins/animate.less +3 -3
- package/lib/styles/mixins/animate.variable.css +6 -6
- package/lib/styles/mixins/mixins.css +15 -15
- package/lib/styles/mixins/mixins.variable.css +15 -15
- package/lib/styles/mixins/popper.css +11 -11
- package/lib/styles/mixins/popper.less +6 -6
- package/lib/styles/mixins/popper.variable.css +13 -13
- package/lib/styles/mixins/scroll.css +5 -5
- package/lib/styles/mixins/scroll.less +4 -4
- package/lib/styles/mixins/scroll.variable.css +7 -7
- package/lib/styles/reset.css +6 -6
- package/lib/styles/reset.less +4 -5
- package/lib/styles/reset.variable.css +8 -8
- package/lib/styles/themes/themes copy.less +167 -0
- package/lib/styles/themes/themes.less +3 -10
- package/lib/swiper/swiper.css +15 -15
- package/lib/swiper/swiper.less +8 -8
- package/lib/swiper/swiper.variable.css +17 -17
- package/lib/switcher/switcher.css +57 -57
- package/lib/switcher/switcher.less +14 -22
- package/lib/switcher/switcher.variable.css +59 -59
- package/lib/tab/tab.css +78 -78
- package/lib/tab/tab.less +40 -39
- package/lib/tab/tab.variable.css +80 -80
- package/lib/table/components/table-column.d.ts +0 -1
- package/lib/table/index.d.ts +0 -1
- package/lib/table/index.js +0 -20
- package/lib/table/plugins/head-filter.css +13 -13
- package/lib/table/plugins/head-filter.less +3 -3
- package/lib/table/plugins/head-filter.variable.css +15 -15
- package/lib/table/plugins/head-sort.css +5 -5
- package/lib/table/plugins/head-sort.less +2 -2
- package/lib/table/plugins/head-sort.variable.css +7 -7
- package/lib/table/plugins/settings.css +26 -26
- package/lib/table/plugins/settings.less +1 -3
- package/lib/table/plugins/settings.variable.css +28 -28
- package/lib/table/table.css +380 -380
- package/lib/table/table.less +10 -14
- package/lib/table/table.variable.css +382 -382
- package/lib/table-column/index.d.ts +0 -3
- package/lib/table-column/index.js +0 -15
- package/lib/tag/tag.css +51 -51
- package/lib/tag/tag.less +34 -34
- package/lib/tag/tag.variable.css +53 -53
- package/lib/tag-input/tag-input.css +38 -38
- package/lib/tag-input/tag-input.less +3 -3
- package/lib/tag-input/tag-input.variable.css +40 -40
- package/lib/time-picker/index.d.ts +0 -3
- package/lib/time-picker/time-picker.css +40 -40
- package/lib/time-picker/time-picker.less +76 -44
- package/lib/time-picker/time-picker.variable.css +42 -42
- package/lib/timeline/timeline.css +69 -69
- package/lib/timeline/timeline.less +6 -12
- package/lib/timeline/timeline.variable.css +71 -71
- package/lib/transfer/transfer.css +89 -89
- package/lib/transfer/transfer.less +1 -1
- package/lib/transfer/transfer.variable.css +91 -91
- package/lib/tree/tree.css +49 -49
- package/lib/tree/tree.less +6 -7
- package/lib/tree/tree.variable.css +51 -51
- package/lib/upload/upload.css +98 -98
- package/lib/upload/upload.less +68 -69
- package/lib/upload/upload.variable.css +100 -100
- package/lib/virtual-render/virtual-render.css +9 -9
- package/lib/virtual-render/virtual-render.less +1 -1
- package/lib/virtual-render/virtual-render.variable.css +11 -11
- package/package.json +1 -1
@@ -12,13 +12,13 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
-
--border-color: #dcdee5;
|
16
15
|
--font-size-base: 12px;
|
17
16
|
--font-size-medium: 14px;
|
18
17
|
--font-size-large: 16px;
|
19
18
|
--line-height-base: 16px;
|
20
19
|
--line-height-medium: 16px;
|
21
20
|
--line-height-large: 18px;
|
21
|
+
--border-color: #dcdee5;
|
22
22
|
--component-size-small: 26px;
|
23
23
|
--component-size-base: 32px;
|
24
24
|
--component-size-large: 40px;
|
@@ -111,7 +111,7 @@
|
|
111
111
|
--table-border-color: #dcdee5;
|
112
112
|
--table-head-bg-color: #fafbfd;
|
113
113
|
--table-head-font-color: #313238;
|
114
|
-
--table-body-font-color: #
|
114
|
+
--table-body-font-color: #63656e;
|
115
115
|
--table-row-hover-bg-color: #f5f7fa;
|
116
116
|
--table-row-active-bg-color: #f0f1f5;
|
117
117
|
--cascader-panel-border-color: #dcdee5;
|
@@ -140,12 +140,12 @@
|
|
140
140
|
background-color: transparent;
|
141
141
|
}
|
142
142
|
}
|
143
|
-
.bk-transition .bk-fade-enter-active,
|
144
|
-
.bk-transition .bk-fade-leave-active {
|
143
|
+
:where(.bk-transition) .bk-fade-enter-active,
|
144
|
+
:where(.bk-transition) .bk-fade-leave-active {
|
145
145
|
transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);
|
146
146
|
}
|
147
|
-
.bk-transition .bk-fade-enter,
|
148
|
-
.bk-transition .bk-fade-leave-to {
|
147
|
+
:where(.bk-transition) .bk-fade-enter,
|
148
|
+
:where(.bk-transition) .bk-fade-leave-to {
|
149
149
|
opacity: 0;
|
150
150
|
}
|
151
151
|
.clearfix-style::after {
|
@@ -156,7 +156,7 @@
|
|
156
156
|
content: '';
|
157
157
|
visibility: hidden;
|
158
158
|
}
|
159
|
-
.bk-popper {
|
159
|
+
:where(.bk-popper) {
|
160
160
|
display: none;
|
161
161
|
padding: 7px 14px;
|
162
162
|
font-size: 12px;
|
@@ -164,50 +164,50 @@
|
|
164
164
|
background: #333;
|
165
165
|
border-radius: 4px;
|
166
166
|
}
|
167
|
-
.bk-popper.light {
|
167
|
+
:where(.bk-popper).light {
|
168
168
|
color: #63656e;
|
169
169
|
background: #fff;
|
170
170
|
box-shadow: #dcdee5 0 0 6px 0;
|
171
171
|
}
|
172
|
-
.bk-popper .bk-popper-arrow,
|
173
|
-
.bk-popper .bk-popper-arrow::before {
|
172
|
+
:where(.bk-popper) .bk-popper-arrow,
|
173
|
+
:where(.bk-popper) .bk-popper-arrow::before {
|
174
174
|
position: absolute;
|
175
175
|
width: 8px;
|
176
176
|
height: 8px;
|
177
177
|
background: inherit;
|
178
178
|
}
|
179
|
-
.bk-popper .bk-popper-arrow {
|
179
|
+
:where(.bk-popper) .bk-popper-arrow {
|
180
180
|
visibility: hidden;
|
181
181
|
}
|
182
|
-
.bk-popper .bk-popper-arrow::before {
|
182
|
+
:where(.bk-popper) .bk-popper-arrow::before {
|
183
183
|
content: '';
|
184
184
|
visibility: visible;
|
185
185
|
transform: rotate(45deg);
|
186
186
|
}
|
187
|
-
.bk-popper[data-show] {
|
187
|
+
:where(.bk-popper)[data-show] {
|
188
188
|
display: block;
|
189
189
|
}
|
190
|
-
.bk-popper[data-popper-placement^='top'] > .bk-popper-arrow {
|
190
|
+
:where(.bk-popper[data-popper-placement^='top'] > .bk-popper-arrow) {
|
191
191
|
bottom: -4px;
|
192
192
|
}
|
193
|
-
.bk-popper[data-popper-placement^='bottom'] > .bk-popper-arrow {
|
193
|
+
:where(.bk-popper[data-popper-placement^='bottom'] > .bk-popper-arrow) {
|
194
194
|
top: -4px;
|
195
195
|
}
|
196
|
-
.bk-popper[data-popper-placement^='left'] > .bk-popper-arrow {
|
196
|
+
:where(.bk-popper[data-popper-placement^='left'] > .bk-popper-arrow) {
|
197
197
|
right: -4px;
|
198
198
|
}
|
199
|
-
.bk-popper[data-popper-placement^='right'] > .bk-popper-arrow {
|
199
|
+
:where(.bk-popper[data-popper-placement^='right'] > .bk-popper-arrow) {
|
200
200
|
left: -4px;
|
201
201
|
}
|
202
|
-
.bk-progress {
|
202
|
+
:where(.bk-progress) {
|
203
203
|
display: inline-block;
|
204
204
|
}
|
205
|
-
.bk-progress .progress-outer {
|
205
|
+
:where(.bk-progress) .progress-outer {
|
206
206
|
display: flex;
|
207
207
|
width: 100%;
|
208
208
|
align-items: center;
|
209
209
|
}
|
210
|
-
.bk-progress .progress-bar {
|
210
|
+
:where(.bk-progress) .progress-bar {
|
211
211
|
position: relative;
|
212
212
|
width: 100%;
|
213
213
|
height: 4px;
|
@@ -216,20 +216,20 @@
|
|
216
216
|
background: #f0f1f5;
|
217
217
|
border-radius: 50px;
|
218
218
|
}
|
219
|
-
.bk-progress .progress-bar.bk-progress-small {
|
219
|
+
:where(.bk-progress) .progress-bar.bk-progress-small {
|
220
220
|
height: 4px;
|
221
221
|
}
|
222
|
-
.bk-progress .progress-bar.bk-progress-normal,
|
223
|
-
.bk-progress .progress-bar.bk-progress-default {
|
222
|
+
:where(.bk-progress) .progress-bar.bk-progress-normal,
|
223
|
+
:where(.bk-progress) .progress-bar.bk-progress-default {
|
224
224
|
height: 8px;
|
225
225
|
}
|
226
|
-
.bk-progress .progress-bar.bk-progress-large {
|
226
|
+
:where(.bk-progress) .progress-bar.bk-progress-large {
|
227
227
|
height: 12px;
|
228
228
|
}
|
229
|
-
.bk-progress .progress-bar.bk-progress-huge {
|
229
|
+
:where(.bk-progress) .progress-bar.bk-progress-huge {
|
230
230
|
height: 16px;
|
231
231
|
}
|
232
|
-
.bk-progress .progress-inner {
|
232
|
+
:where(.bk-progress) .progress-inner {
|
233
233
|
position: absolute;
|
234
234
|
top: 0;
|
235
235
|
left: 0;
|
@@ -238,29 +238,29 @@
|
|
238
238
|
border-radius: 50px;
|
239
239
|
transition: width 0.5s ease;
|
240
240
|
}
|
241
|
-
.bk-progress .progress-inner.bk-primary {
|
241
|
+
:where(.bk-progress) .progress-inner.bk-primary {
|
242
242
|
background: #3a84ff;
|
243
243
|
}
|
244
|
-
.bk-progress .progress-inner.bk-success {
|
244
|
+
:where(.bk-progress) .progress-inner.bk-success {
|
245
245
|
background: #2dcb56;
|
246
246
|
}
|
247
|
-
.bk-progress .progress-inner.bk-warning {
|
247
|
+
:where(.bk-progress) .progress-inner.bk-warning {
|
248
248
|
background: #ff9c01;
|
249
249
|
}
|
250
|
-
.bk-progress .progress-inner.bk-danger {
|
250
|
+
:where(.bk-progress) .progress-inner.bk-danger {
|
251
251
|
background: #ea3636;
|
252
252
|
}
|
253
|
-
.bk-progress .inner-text {
|
253
|
+
:where(.bk-progress) .inner-text {
|
254
254
|
width: 100%;
|
255
255
|
height: 100%;
|
256
256
|
color: #fff;
|
257
257
|
text-align: center;
|
258
258
|
}
|
259
|
-
.bk-progress .progress-text {
|
259
|
+
:where(.bk-progress) .progress-text {
|
260
260
|
width: 7%;
|
261
261
|
text-align: center;
|
262
262
|
}
|
263
|
-
.bk-progress .progress-circle-text {
|
263
|
+
:where(.bk-progress) .progress-circle-text {
|
264
264
|
position: absolute;
|
265
265
|
top: 50%;
|
266
266
|
left: 0;
|
@@ -269,10 +269,10 @@
|
|
269
269
|
text-align: center;
|
270
270
|
transform: translateY(-50%);
|
271
271
|
}
|
272
|
-
.bk-progress-line {
|
272
|
+
:where(.bk-progress-line) {
|
273
273
|
width: 100%;
|
274
274
|
}
|
275
|
-
.bk-progress-circle,
|
275
|
+
:where(.bk-progress-circle),
|
276
276
|
.bk-progress-dashboard {
|
277
277
|
position: relative;
|
278
278
|
}
|
package/lib/radio/radio.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
.bk-radio-group {
|
1
|
+
:where(.bk-radio-group) {
|
2
2
|
display: inline-flex;
|
3
3
|
letter-spacing: normal;
|
4
4
|
}
|
5
|
-
.bk-radio {
|
5
|
+
:where(.bk-radio) {
|
6
6
|
display: inline-flex;
|
7
7
|
align-items: center;
|
8
8
|
font-weight: normal;
|
@@ -13,37 +13,37 @@
|
|
13
13
|
outline: none;
|
14
14
|
user-select: none;
|
15
15
|
}
|
16
|
-
.bk-radio ~ .bk-radio {
|
16
|
+
:where(.bk-radio) ~ .bk-radio {
|
17
17
|
margin-left: 24px;
|
18
18
|
}
|
19
|
-
.bk-radio.bk-radio-small .bk-radio-label {
|
19
|
+
:where(.bk-radio).bk-radio-small .bk-radio-label {
|
20
20
|
font-size: 12px;
|
21
21
|
}
|
22
|
-
.bk-radio.is-checked .bk-radio-input {
|
22
|
+
:where(.bk-radio).is-checked .bk-radio-input {
|
23
23
|
padding: 3px;
|
24
24
|
color: #3a84ff;
|
25
25
|
background-color: #3a84ff;
|
26
26
|
border-color: #3a84ff;
|
27
27
|
}
|
28
|
-
.bk-radio.is-disabled {
|
28
|
+
:where(.bk-radio).is-disabled {
|
29
29
|
color: #c4c6cc;
|
30
30
|
cursor: not-allowed;
|
31
31
|
}
|
32
|
-
.bk-radio.is-disabled.is-checked .bk-radio-input {
|
32
|
+
:where(.bk-radio).is-disabled.is-checked .bk-radio-input {
|
33
33
|
background-color: #a3c5fd;
|
34
34
|
border-color: #a3c5fd;
|
35
35
|
}
|
36
|
-
.bk-radio.is-disabled .bk-radio-input {
|
36
|
+
:where(.bk-radio).is-disabled .bk-radio-input {
|
37
37
|
cursor: not-allowed;
|
38
38
|
border-color: #dcdee5;
|
39
39
|
}
|
40
|
-
.bk-radio.is-disabled .bk-radio-label {
|
40
|
+
:where(.bk-radio).is-disabled .bk-radio-label {
|
41
41
|
cursor: not-allowed;
|
42
42
|
}
|
43
|
-
.bk-radio.is-focused .bk-radio-input {
|
43
|
+
:where(.bk-radio).is-focused .bk-radio-input {
|
44
44
|
border-color: #3a84ff;
|
45
45
|
}
|
46
|
-
.bk-radio-input {
|
46
|
+
:where(.bk-radio-input) {
|
47
47
|
position: relative;
|
48
48
|
display: inline-block;
|
49
49
|
width: 16px;
|
@@ -60,10 +60,10 @@
|
|
60
60
|
background-clip: content-box;
|
61
61
|
appearance: none;
|
62
62
|
}
|
63
|
-
.bk-radio-input:hover {
|
63
|
+
:where(.bk-radio-input):hover {
|
64
64
|
border-color: #979ba5;
|
65
65
|
}
|
66
|
-
.bk-radio-label {
|
66
|
+
:where(.bk-radio-label) {
|
67
67
|
margin-left: 6px;
|
68
68
|
font-size: 14px;
|
69
69
|
font-style: normal;
|
@@ -71,7 +71,7 @@
|
|
71
71
|
vertical-align: middle;
|
72
72
|
cursor: pointer;
|
73
73
|
}
|
74
|
-
.bk-radio-button {
|
74
|
+
:where(.bk-radio-button) {
|
75
75
|
position: relative;
|
76
76
|
z-index: 1;
|
77
77
|
display: inline-flex;
|
@@ -84,19 +84,19 @@
|
|
84
84
|
opacity: 1;
|
85
85
|
user-select: none;
|
86
86
|
}
|
87
|
-
.bk-radio-button.bk-radio-button-small .bk-radio-button-label {
|
87
|
+
:where(.bk-radio-button).bk-radio-button-small .bk-radio-button-label {
|
88
88
|
height: 26px;
|
89
89
|
padding: 0 12px;
|
90
90
|
font-size: 12px;
|
91
91
|
line-height: 26px;
|
92
92
|
}
|
93
|
-
.bk-radio-button.bk-radio-button-large .bk-radio-button-label {
|
93
|
+
:where(.bk-radio-button).bk-radio-button-large .bk-radio-button-label {
|
94
94
|
height: 40px;
|
95
95
|
padding: 0 16px;
|
96
96
|
font-size: 16px;
|
97
97
|
line-height: 40px;
|
98
98
|
}
|
99
|
-
.bk-radio-button .bk-radio-button-input {
|
99
|
+
:where(.bk-radio-button) .bk-radio-button-input {
|
100
100
|
position: absolute;
|
101
101
|
z-index: -1;
|
102
102
|
width: 100%;
|
@@ -106,7 +106,7 @@
|
|
106
106
|
outline: none;
|
107
107
|
opacity: 0;
|
108
108
|
}
|
109
|
-
.bk-radio-button .bk-radio-button-label {
|
109
|
+
:where(.bk-radio-button) .bk-radio-button-label {
|
110
110
|
width: 100%;
|
111
111
|
padding: 0 14px;
|
112
112
|
font-size: 12px;
|
@@ -119,29 +119,29 @@
|
|
119
119
|
cursor: pointer;
|
120
120
|
transition: all 0.3s;
|
121
121
|
}
|
122
|
-
.bk-radio-button.is-checked {
|
122
|
+
:where(.bk-radio-button).is-checked {
|
123
123
|
z-index: 2;
|
124
124
|
}
|
125
|
-
.bk-radio-button.is-checked .bk-radio-button-label {
|
125
|
+
:where(.bk-radio-button).is-checked .bk-radio-button-label {
|
126
126
|
color: #3a84ff;
|
127
127
|
}
|
128
|
-
.bk-radio-button.is-disabled {
|
128
|
+
:where(.bk-radio-button).is-disabled {
|
129
129
|
z-index: 0;
|
130
130
|
color: #c4c6cc;
|
131
131
|
cursor: not-allowed;
|
132
132
|
}
|
133
|
-
.bk-radio-button.is-disabled .bk-radio-button-label {
|
133
|
+
:where(.bk-radio-button).is-disabled .bk-radio-button-label {
|
134
134
|
cursor: not-allowed;
|
135
135
|
}
|
136
|
-
.bk-radio-capsule {
|
136
|
+
:where(.bk-radio-capsule) {
|
137
137
|
padding: 4px;
|
138
138
|
background: #f0f1f5;
|
139
139
|
border-radius: 2px;
|
140
140
|
}
|
141
|
-
.bk-radio-capsule .bk-radio-button {
|
141
|
+
:where(.bk-radio-capsule) .bk-radio-button {
|
142
142
|
border-radius: 2px;
|
143
143
|
}
|
144
|
-
.bk-radio-capsule .bk-radio-button:before {
|
144
|
+
:where(.bk-radio-capsule) .bk-radio-button:before {
|
145
145
|
position: absolute;
|
146
146
|
top: 50%;
|
147
147
|
right: -1px;
|
@@ -152,72 +152,72 @@
|
|
152
152
|
background: #dcdee5;
|
153
153
|
content: '';
|
154
154
|
}
|
155
|
-
.bk-radio-capsule .bk-radio-button:last-of-type::before {
|
155
|
+
:where(.bk-radio-capsule) .bk-radio-button:last-of-type::before {
|
156
156
|
display: none;
|
157
157
|
}
|
158
|
-
.bk-radio-capsule .bk-radio-button-label {
|
158
|
+
:where(.bk-radio-capsule) .bk-radio-button-label {
|
159
159
|
position: relative;
|
160
160
|
height: 24px;
|
161
161
|
padding: 0 12px;
|
162
162
|
line-height: 24px;
|
163
163
|
}
|
164
|
-
.bk-radio-capsule .is-checked {
|
164
|
+
:where(.bk-radio-capsule) .is-checked {
|
165
165
|
background: #fff;
|
166
166
|
}
|
167
|
-
.bk-radio-capsule .is-checked:before {
|
167
|
+
:where(.bk-radio-capsule) .is-checked:before {
|
168
168
|
display: none;
|
169
169
|
}
|
170
|
-
.bk-radio-tab .bk-radio-button,
|
171
|
-
.bk-radio-card .bk-radio-button {
|
170
|
+
:where(.bk-radio-tab) .bk-radio-button,
|
171
|
+
:where(.bk-radio-card) .bk-radio-button {
|
172
172
|
overflow: hidden;
|
173
173
|
}
|
174
|
-
.bk-radio-tab .bk-radio-button:nth-child(n+2),
|
175
|
-
.bk-radio-card .bk-radio-button:nth-child(n+2) {
|
174
|
+
:where(.bk-radio-tab) .bk-radio-button:nth-child(n + 2),
|
175
|
+
:where(.bk-radio-card) .bk-radio-button:nth-child(n + 2) {
|
176
176
|
margin-left: -1px;
|
177
177
|
}
|
178
|
-
.bk-radio-tab .bk-radio-button:first-child .bk-radio-button-label,
|
179
|
-
.bk-radio-card .bk-radio-button:first-child .bk-radio-button-label {
|
178
|
+
:where(.bk-radio-tab) .bk-radio-button:first-child .bk-radio-button-label,
|
179
|
+
:where(.bk-radio-card) .bk-radio-button:first-child .bk-radio-button-label {
|
180
180
|
border-bottom-left-radius: 2px;
|
181
181
|
border-top-left-radius: 2px;
|
182
182
|
}
|
183
|
-
.bk-radio-tab .bk-radio-button:last-child .bk-radio-button-label,
|
184
|
-
.bk-radio-card .bk-radio-button:last-child .bk-radio-button-label {
|
183
|
+
:where(.bk-radio-tab) .bk-radio-button:last-child .bk-radio-button-label,
|
184
|
+
:where(.bk-radio-card) .bk-radio-button:last-child .bk-radio-button-label {
|
185
185
|
border-top-right-radius: 2px;
|
186
186
|
border-bottom-right-radius: 2px;
|
187
187
|
}
|
188
|
-
.bk-radio-tab .bk-radio-button.is-checked,
|
189
|
-
.bk-radio-card .bk-radio-button.is-checked {
|
188
|
+
:where(.bk-radio-tab) .bk-radio-button.is-checked,
|
189
|
+
:where(.bk-radio-card) .bk-radio-button.is-checked {
|
190
190
|
z-index: 2;
|
191
191
|
}
|
192
|
-
.bk-radio-tab .bk-radio-button.is-checked .bk-radio-button-label,
|
193
|
-
.bk-radio-card .bk-radio-button.is-checked .bk-radio-button-label {
|
192
|
+
:where(.bk-radio-tab) .bk-radio-button.is-checked .bk-radio-button-label,
|
193
|
+
:where(.bk-radio-card) .bk-radio-button.is-checked .bk-radio-button-label {
|
194
194
|
background: #e1ecff;
|
195
195
|
border-color: #3a84ff;
|
196
196
|
}
|
197
|
-
.bk-radio-tab .bk-radio-button.is-disabled .bk-radio-button-label,
|
198
|
-
.bk-radio-card .bk-radio-button.is-disabled .bk-radio-button-label {
|
197
|
+
:where(.bk-radio-tab) .bk-radio-button.is-disabled .bk-radio-button-label,
|
198
|
+
:where(.bk-radio-card) .bk-radio-button.is-disabled .bk-radio-button-label {
|
199
199
|
background: #fafbfd;
|
200
200
|
border-color: #dcdee5;
|
201
201
|
}
|
202
|
-
.bk-radio-tab .bk-radio-button.is-focused .bk-radio-button-label,
|
203
|
-
.bk-radio-card .bk-radio-button.is-focused .bk-radio-button-label {
|
202
|
+
:where(.bk-radio-tab) .bk-radio-button.is-focused .bk-radio-button-label,
|
203
|
+
:where(.bk-radio-card) .bk-radio-button.is-focused .bk-radio-button-label {
|
204
204
|
border-color: #3a84ff;
|
205
205
|
}
|
206
|
-
.bk-radio-tab .bk-radio-button-label,
|
207
|
-
.bk-radio-card .bk-radio-button-label {
|
206
|
+
:where(.bk-radio-tab) .bk-radio-button-label,
|
207
|
+
:where(.bk-radio-card) .bk-radio-button-label {
|
208
208
|
height: 32px;
|
209
209
|
border: 1px solid #c4c6cc;
|
210
210
|
transition: all 0.3s;
|
211
211
|
}
|
212
|
-
.bk-radio-tab .bk-radio-button-label:hover,
|
213
|
-
.bk-radio-card .bk-radio-button-label:hover {
|
212
|
+
:where(.bk-radio-tab) .bk-radio-button-label:hover,
|
213
|
+
:where(.bk-radio-card) .bk-radio-button-label:hover {
|
214
214
|
border-color: #979ba5;
|
215
215
|
}
|
216
|
-
.bk-radio-card {
|
216
|
+
:where(.bk-radio-card) {
|
217
217
|
display: flex;
|
218
218
|
width: 100%;
|
219
219
|
}
|
220
|
-
.bk-radio-card .bk-radio-button {
|
220
|
+
:where(.bk-radio-card) .bk-radio-button {
|
221
221
|
flex: 1;
|
222
222
|
display: block;
|
223
223
|
}
|
package/lib/radio/radio.less
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
@import '../styles/themes/themes.less';
|
2
2
|
|
3
|
-
.@{bk-prefix}-radio-group {
|
3
|
+
:where(.@{bk-prefix}-radio-group) {
|
4
4
|
display: inline-flex;
|
5
5
|
letter-spacing: normal;
|
6
6
|
}
|
7
7
|
|
8
|
-
|
9
|
-
.@{bk-prefix}-radio {
|
8
|
+
:where(.@{bk-prefix}-radio) {
|
10
9
|
display: inline-flex;
|
11
10
|
align-items: center;
|
12
11
|
font-weight: normal;
|
@@ -63,7 +62,7 @@
|
|
63
62
|
}
|
64
63
|
}
|
65
64
|
|
66
|
-
.@{bk-prefix}-radio-input {
|
65
|
+
:where(.@{bk-prefix}-radio-input) {
|
67
66
|
position: relative;
|
68
67
|
display: inline-block;
|
69
68
|
width: @line-height-base;
|
@@ -76,7 +75,7 @@
|
|
76
75
|
border-radius: 50%;
|
77
76
|
outline: none;
|
78
77
|
visibility: visible;
|
79
|
-
transition: all .3s;
|
78
|
+
transition: all 0.3s;
|
80
79
|
background-clip: content-box;
|
81
80
|
appearance: none;
|
82
81
|
|
@@ -85,7 +84,7 @@
|
|
85
84
|
}
|
86
85
|
}
|
87
86
|
|
88
|
-
.@{bk-prefix}-radio-label {
|
87
|
+
:where(.@{bk-prefix}-radio-label) {
|
89
88
|
margin-left: 6px;
|
90
89
|
font-size: @font-size-medium;
|
91
90
|
font-style: normal;
|
@@ -95,7 +94,7 @@
|
|
95
94
|
}
|
96
95
|
|
97
96
|
// 按钮样式
|
98
|
-
.@{bk-prefix}-radio-button {
|
97
|
+
:where(.@{bk-prefix}-radio-button) {
|
99
98
|
position: relative;
|
100
99
|
z-index: 1;
|
101
100
|
display: inline-flex;
|
@@ -137,7 +136,6 @@
|
|
137
136
|
}
|
138
137
|
});
|
139
138
|
|
140
|
-
|
141
139
|
.@{bk-prefix}-radio-button-input {
|
142
140
|
position: absolute;
|
143
141
|
z-index: -1;
|
@@ -160,8 +158,7 @@
|
|
160
158
|
text-align: center;
|
161
159
|
vertical-align: middle;
|
162
160
|
cursor: pointer;
|
163
|
-
transition: all .3s;
|
164
|
-
|
161
|
+
transition: all 0.3s;
|
165
162
|
}
|
166
163
|
|
167
164
|
&.is-checked {
|
@@ -183,7 +180,7 @@
|
|
183
180
|
}
|
184
181
|
}
|
185
182
|
|
186
|
-
.@{bk-prefix}-radio-capsule {
|
183
|
+
:where(.@{bk-prefix}-radio-capsule) {
|
187
184
|
padding: 4px;
|
188
185
|
background: #f0f1f5;
|
189
186
|
border-radius: 2px;
|
@@ -213,7 +210,6 @@
|
|
213
210
|
height: 24px;
|
214
211
|
padding: 0 12px;
|
215
212
|
line-height: 24px;
|
216
|
-
|
217
213
|
}
|
218
214
|
|
219
215
|
.is-checked {
|
@@ -225,13 +221,12 @@
|
|
225
221
|
}
|
226
222
|
}
|
227
223
|
|
228
|
-
.@{bk-prefix}-radio-tab,
|
229
|
-
.@{bk-prefix}-radio-card {
|
230
|
-
|
224
|
+
:where(.@{bk-prefix}-radio-tab),
|
225
|
+
:where(.@{bk-prefix}-radio-card) {
|
231
226
|
.@{bk-prefix}-radio-button {
|
232
227
|
overflow: hidden;
|
233
228
|
|
234
|
-
&:nth-child(n+2) {
|
229
|
+
&:nth-child(n + 2) {
|
235
230
|
margin-left: -1px;
|
236
231
|
}
|
237
232
|
|
@@ -270,22 +265,20 @@
|
|
270
265
|
border-color: @radio-active-color;
|
271
266
|
}
|
272
267
|
}
|
273
|
-
|
274
268
|
}
|
275
269
|
|
276
270
|
.@{bk-prefix}-radio-button-label {
|
277
271
|
height: @component-size-base;
|
278
272
|
border: @border-width-base @border-style-base @light-gray;
|
279
|
-
transition: all .3s;
|
273
|
+
transition: all 0.3s;
|
280
274
|
|
281
275
|
&:hover {
|
282
276
|
border-color: @radio-hover-border-color;
|
283
277
|
}
|
284
278
|
}
|
285
|
-
|
286
279
|
}
|
287
280
|
|
288
|
-
.@{bk-prefix}-radio-card {
|
281
|
+
:where(.@{bk-prefix}-radio-card) {
|
289
282
|
display: flex;
|
290
283
|
width: 100%;
|
291
284
|
|