bkui-vue 0.0.2-beta.129 → 0.0.2-beta.130
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 +21 -21
- package/dist/index.esm.js +1768 -1752
- package/dist/index.umd.js +21 -21
- package/dist/locale/en.esm.js +1 -1
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +3 -0
- package/lib/alert/alert.variable.css +3 -0
- package/lib/backtop/backtop.variable.css +3 -0
- package/lib/badge/badge.variable.css +3 -0
- package/lib/breadcrumb/breadcrumb.variable.css +3 -0
- package/lib/button/button.css +7 -7
- package/lib/button/button.less +7 -7
- package/lib/button/button.variable.css +18 -15
- package/lib/card/card.variable.css +3 -0
- package/lib/cascader/cascader-panel.d.ts +1 -0
- package/lib/cascader/cascader.variable.css +3 -0
- package/lib/cascader/index.d.ts +1 -0
- package/lib/cascader/index.js +5 -3
- package/lib/checkbox/checkbox.variable.css +3 -0
- package/lib/code-diff/code-diff.variable.css +3 -0
- package/lib/collapse/collapse.variable.css +3 -0
- package/lib/collapse-transition/collapse-transition.variable.css +3 -0
- package/lib/color-picker/color-picker.variable.css +3 -0
- package/lib/config-provider/config-provider.d.ts +15 -0
- package/lib/config-provider/config-provider.variable.css +3 -0
- package/lib/config-provider/index.d.ts +20 -0
- package/lib/config-provider/token.d.ts +5 -0
- package/lib/container/container.variable.css +3 -0
- package/lib/date-picker/date-picker.variable.css +3 -0
- package/lib/dialog/dialog.variable.css +3 -0
- package/lib/divider/divider.variable.css +3 -0
- package/lib/dropdown/dropdown.variable.css +3 -0
- package/lib/exception/exception.variable.css +3 -0
- package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
- package/lib/form/form.variable.css +3 -0
- package/lib/image/image-viewer.variable.css +3 -0
- package/lib/image/image.variable.css +3 -0
- package/lib/info-box/info-box.variable.css +3 -0
- package/lib/input/input.variable.css +3 -0
- package/lib/link/link.variable.css +3 -0
- package/lib/loading/loading.variable.css +3 -0
- package/lib/locale/index.js +10 -0
- package/lib/locale/lang/en.d.ts +5 -0
- package/lib/menu/menu.variable.css +3 -0
- package/lib/menu/submenu.variable.css +3 -0
- package/lib/message/message.variable.css +3 -0
- package/lib/modal/modal.variable.css +3 -0
- package/lib/navigation/navigation.variable.css +3 -0
- package/lib/notify/notify.variable.css +3 -0
- package/lib/pagination/pagination.variable.css +3 -0
- package/lib/pop-confirm/pop-confirm.variable.css +3 -0
- package/lib/popover/popover.variable.css +3 -0
- package/lib/preset.d.ts +10 -0
- package/lib/process/process.variable.css +3 -0
- package/lib/progress/progress.variable.css +3 -0
- package/lib/radio/common.d.ts +1 -0
- package/lib/radio/index.d.ts +6 -0
- package/lib/radio/index.js +11 -3
- package/lib/radio/radio-button.d.ts +1 -0
- package/lib/radio/radio-group.d.ts +3 -0
- package/lib/radio/radio.css +18 -4
- package/lib/radio/radio.d.ts +1 -0
- package/lib/radio/radio.less +41 -7
- package/lib/radio/radio.variable.css +22 -5
- package/lib/rate/rate.variable.css +3 -0
- package/lib/rate/star.variable.css +3 -0
- package/lib/resize-layout/resize-layout.variable.css +3 -0
- package/lib/search-select/search-select.variable.css +3 -0
- package/lib/select/select.variable.css +3 -0
- package/lib/sideslider/sideslider.variable.css +3 -0
- package/lib/slider/slider.variable.css +3 -0
- package/lib/steps/steps.variable.css +3 -0
- package/lib/styles/mixins/animate.variable.css +3 -0
- package/lib/styles/mixins/popper.variable.css +3 -0
- package/lib/styles/mixins/scroll.variable.css +3 -0
- package/lib/styles/reset.variable.css +3 -0
- package/lib/styles/themes/themes.less +4 -0
- package/lib/swiper/swiper.variable.css +3 -0
- package/lib/switcher/switcher.variable.css +3 -0
- package/lib/tab/tab.variable.css +3 -0
- package/lib/table/index.d.ts +3 -3
- package/lib/table/plugins/body-empty.d.ts +1 -1
- package/lib/table/plugins/head-filter.variable.css +3 -0
- package/lib/table/plugins/head-sort.variable.css +3 -0
- package/lib/table/plugins/settings.variable.css +3 -0
- package/lib/table/table.css +7 -7
- package/lib/table/table.d.ts +1 -1
- package/lib/table/table.variable.css +10 -7
- package/lib/tag/tag.variable.css +3 -0
- package/lib/tag-input/tag-input.variable.css +3 -0
- package/lib/time-picker/time-picker.variable.css +3 -0
- package/lib/timeline/timeline.variable.css +3 -0
- package/lib/transfer/transfer.variable.css +3 -0
- package/lib/tree/index.d.ts +3 -3
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/tree.variable.css +3 -0
- package/lib/upload/upload.variable.css +3 -0
- package/lib/virtual-render/virtual-render.variable.css +3 -0
- package/package.json +1 -1
@@ -21,6 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
+
--component-size-small-padding: var(--component-size-small-padding);
|
25
|
+
--component-size-base-padding: var(--component-size-base-padding);
|
26
|
+
--component-size-large-padding: var(--component-size-large-padding);
|
24
27
|
--border-width-base: 1px;
|
25
28
|
--border-style-base: solid;
|
26
29
|
--border-radius-base: 2px;
|
@@ -21,6 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
+
--component-size-small-padding: var(--component-size-small-padding);
|
25
|
+
--component-size-base-padding: var(--component-size-base-padding);
|
26
|
+
--component-size-large-padding: var(--component-size-large-padding);
|
24
27
|
--border-width-base: 1px;
|
25
28
|
--border-style-base: solid;
|
26
29
|
--border-radius-base: 2px;
|
@@ -21,6 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
+
--component-size-small-padding: var(--component-size-small-padding);
|
25
|
+
--component-size-base-padding: var(--component-size-base-padding);
|
26
|
+
--component-size-large-padding: var(--component-size-large-padding);
|
24
27
|
--border-width-base: 1px;
|
25
28
|
--border-style-base: solid;
|
26
29
|
--border-radius-base: 2px;
|
@@ -21,6 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
+
--component-size-small-padding: var(--component-size-small-padding);
|
25
|
+
--component-size-base-padding: var(--component-size-base-padding);
|
26
|
+
--component-size-large-padding: var(--component-size-large-padding);
|
24
27
|
--border-width-base: 1px;
|
25
28
|
--border-style-base: solid;
|
26
29
|
--border-radius-base: 2px;
|
@@ -21,6 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
+
--component-size-small-padding: var(--component-size-small-padding);
|
25
|
+
--component-size-base-padding: var(--component-size-base-padding);
|
26
|
+
--component-size-large-padding: var(--component-size-large-padding);
|
24
27
|
--border-width-base: 1px;
|
25
28
|
--border-style-base: solid;
|
26
29
|
--border-radius-base: 2px;
|
@@ -21,6 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
+
--component-size-small-padding: var(--component-size-small-padding);
|
25
|
+
--component-size-base-padding: var(--component-size-base-padding);
|
26
|
+
--component-size-large-padding: var(--component-size-large-padding);
|
24
27
|
--border-width-base: 1px;
|
25
28
|
--border-style-base: solid;
|
26
29
|
--border-radius-base: 2px;
|
@@ -21,6 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
+
--component-size-small-padding: var(--component-size-small-padding);
|
25
|
+
--component-size-base-padding: var(--component-size-base-padding);
|
26
|
+
--component-size-large-padding: var(--component-size-large-padding);
|
24
27
|
--border-width-base: 1px;
|
25
28
|
--border-style-base: solid;
|
26
29
|
--border-radius-base: 2px;
|
@@ -21,6 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
+
--component-size-small-padding: var(--component-size-small-padding);
|
25
|
+
--component-size-base-padding: var(--component-size-base-padding);
|
26
|
+
--component-size-large-padding: var(--component-size-large-padding);
|
24
27
|
--border-width-base: 1px;
|
25
28
|
--border-style-base: solid;
|
26
29
|
--border-radius-base: 2px;
|
package/lib/preset.d.ts
CHANGED
@@ -127,6 +127,11 @@ declare const _default: {
|
|
127
127
|
copySuccess: string;
|
128
128
|
copyFailed: string;
|
129
129
|
};
|
130
|
+
cascader: {
|
131
|
+
pleaseSelect: string;
|
132
|
+
noData: string;
|
133
|
+
emptyText: string;
|
134
|
+
};
|
130
135
|
}>;
|
131
136
|
};
|
132
137
|
prefix: {
|
@@ -261,6 +266,11 @@ declare const _default: {
|
|
261
266
|
copySuccess: string;
|
262
267
|
copyFailed: string;
|
263
268
|
};
|
269
|
+
cascader: {
|
270
|
+
pleaseSelect: string;
|
271
|
+
noData: string;
|
272
|
+
emptyText: string;
|
273
|
+
};
|
264
274
|
}>;
|
265
275
|
};
|
266
276
|
prefix: {
|
@@ -21,6 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
+
--component-size-small-padding: var(--component-size-small-padding);
|
25
|
+
--component-size-base-padding: var(--component-size-base-padding);
|
26
|
+
--component-size-large-padding: var(--component-size-large-padding);
|
24
27
|
--border-width-base: 1px;
|
25
28
|
--border-style-base: solid;
|
26
29
|
--border-radius-base: 2px;
|
@@ -21,6 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
+
--component-size-small-padding: var(--component-size-small-padding);
|
25
|
+
--component-size-base-padding: var(--component-size-base-padding);
|
26
|
+
--component-size-large-padding: var(--component-size-large-padding);
|
24
27
|
--border-width-base: 1px;
|
25
28
|
--border-style-base: solid;
|
26
29
|
--border-radius-base: 2px;
|
package/lib/radio/common.d.ts
CHANGED
package/lib/radio/index.d.ts
CHANGED
@@ -96,6 +96,7 @@ declare const BkRadio: {
|
|
96
96
|
onChange?: (value: any) => any;
|
97
97
|
"onUpdate:modelValue"?: (value: any) => any;
|
98
98
|
}, {
|
99
|
+
size: import("vue").Ref<string>;
|
99
100
|
isFocused: import("vue").Ref<boolean>;
|
100
101
|
isChecked: import("vue").Ref<boolean>;
|
101
102
|
isDisabled: import("vue").ComputedRef<boolean>;
|
@@ -158,6 +159,7 @@ declare const BkRadio: {
|
|
158
159
|
onChange?: (value: any) => any;
|
159
160
|
"onUpdate:modelValue"?: (value: any) => any;
|
160
161
|
} & import("vue").ShallowUnwrapRef<{
|
162
|
+
size: import("vue").Ref<string>;
|
161
163
|
isFocused: import("vue").Ref<boolean>;
|
162
164
|
isChecked: import("vue").Ref<boolean>;
|
163
165
|
isDisabled: import("vue").ComputedRef<boolean>;
|
@@ -196,6 +198,7 @@ declare const BkRadio: {
|
|
196
198
|
onChange?: (value: any) => any;
|
197
199
|
"onUpdate:modelValue"?: (value: any) => any;
|
198
200
|
}, {
|
201
|
+
size: import("vue").Ref<string>;
|
199
202
|
isFocused: import("vue").Ref<boolean>;
|
200
203
|
isChecked: import("vue").Ref<boolean>;
|
201
204
|
isDisabled: import("vue").ComputedRef<boolean>;
|
@@ -231,6 +234,7 @@ declare const BkRadio: {
|
|
231
234
|
type: import("vue-types").VueTypeDef<string> & {
|
232
235
|
default: string;
|
233
236
|
};
|
237
|
+
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
234
238
|
}, {
|
235
239
|
resolveClassName: (cls: string) => string;
|
236
240
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
@@ -254,6 +258,7 @@ declare const BkRadio: {
|
|
254
258
|
type: import("vue-types").VueTypeDef<string> & {
|
255
259
|
default: string;
|
256
260
|
};
|
261
|
+
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
257
262
|
}>> & {
|
258
263
|
onChange?: (value: any) => any;
|
259
264
|
"onUpdate:modelValue"?: (value: any) => any;
|
@@ -288,6 +293,7 @@ declare const BkRadio: {
|
|
288
293
|
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
289
294
|
}, {
|
290
295
|
isFocused: import("vue").Ref<boolean>;
|
296
|
+
size: import("vue").Ref<string>;
|
291
297
|
isChecked: import("vue").Ref<boolean>;
|
292
298
|
isDisabled: import("vue").ComputedRef<boolean>;
|
293
299
|
setChecked: (value?: boolean) => void;
|
package/lib/radio/index.js
CHANGED
@@ -199,6 +199,7 @@ var useRadio = function useRadio() {
|
|
199
199
|
var radioGroup = (0,external_vue_namespaceObject.inject)(radioGroupKey, external_shared_namespaceObject.EMPTY_OBJ);
|
200
200
|
var isGroup = !(0,external_shared_namespaceObject.isEmptyObj)(radioGroup);
|
201
201
|
var isChecked = (0,external_vue_namespaceObject.ref)(false);
|
202
|
+
var size = (0,external_vue_namespaceObject.ref)('default');
|
202
203
|
// 禁用状态
|
203
204
|
var isDisabled = (0,external_vue_namespaceObject.computed)(function () {
|
204
205
|
if (isGroup && radioGroup.props.disabled) {
|
@@ -208,6 +209,7 @@ var useRadio = function useRadio() {
|
|
208
209
|
});
|
209
210
|
// 响应modelValue
|
210
211
|
if (isGroup) {
|
212
|
+
size.value = radioGroup.props.size;
|
211
213
|
(0,external_vue_namespaceObject.watch)(function () {
|
212
214
|
return radioGroup.props.modelValue;
|
213
215
|
}, function (modelValue) {
|
@@ -263,6 +265,7 @@ var useRadio = function useRadio() {
|
|
263
265
|
}
|
264
266
|
});
|
265
267
|
return {
|
268
|
+
size: size,
|
266
269
|
isChecked: isChecked,
|
267
270
|
isDisabled: isDisabled,
|
268
271
|
setChecked: setChecked,
|
@@ -328,6 +331,7 @@ var radioProps = {
|
|
328
331
|
handleBlur = _useFocus2$.blur,
|
329
332
|
handleFocus = _useFocus2$.focus;
|
330
333
|
var _useRadio = useRadio(),
|
334
|
+
size = _useRadio.size,
|
331
335
|
isChecked = _useRadio.isChecked,
|
332
336
|
isDisabled = _useRadio.isDisabled,
|
333
337
|
setChecked = _useRadio.setChecked,
|
@@ -335,6 +339,7 @@ var radioProps = {
|
|
335
339
|
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
336
340
|
resolveClassName = _usePrefix.resolveClassName;
|
337
341
|
return {
|
342
|
+
size: size,
|
338
343
|
isFocused: isFocused,
|
339
344
|
isChecked: isChecked,
|
340
345
|
isDisabled: isDisabled,
|
@@ -348,7 +353,7 @@ var radioProps = {
|
|
348
353
|
render: function render() {
|
349
354
|
var _classes,
|
350
355
|
_this = this;
|
351
|
-
var radioClass = (0,external_shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(this.resolveClassName('radio')), true), _defineProperty(_classes, 'is-focused', this.isFocused), _defineProperty(_classes, 'is-disabled', this.isDisabled), _defineProperty(_classes, 'is-checked', this.isChecked), _classes));
|
356
|
+
var radioClass = (0,external_shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(this.resolveClassName('radio')), true), _defineProperty(_classes, "".concat(this.resolveClassName('radio'), "-").concat(this.size), true), _defineProperty(_classes, 'is-focused', this.isFocused), _defineProperty(_classes, 'is-disabled', this.isDisabled), _defineProperty(_classes, 'is-checked', this.isChecked), _classes));
|
352
357
|
var renderLabel = function renderLabel() {
|
353
358
|
if (!_this.label && !_this.$slots["default"]) {
|
354
359
|
return null;
|
@@ -433,6 +438,7 @@ var radioButtonProps = {
|
|
433
438
|
handleBlur = _useFocus2$.blur,
|
434
439
|
handleFocus = _useFocus2$.focus;
|
435
440
|
var _useRadio = useRadio(),
|
441
|
+
size = _useRadio.size,
|
436
442
|
isChecked = _useRadio.isChecked,
|
437
443
|
isDisabled = _useRadio.isDisabled,
|
438
444
|
setChecked = _useRadio.setChecked,
|
@@ -441,6 +447,7 @@ var radioButtonProps = {
|
|
441
447
|
resolveClassName = _usePrefix.resolveClassName;
|
442
448
|
return {
|
443
449
|
isFocused: isFocused,
|
450
|
+
size: size,
|
444
451
|
isChecked: isChecked,
|
445
452
|
isDisabled: isDisabled,
|
446
453
|
setChecked: setChecked,
|
@@ -453,7 +460,7 @@ var radioButtonProps = {
|
|
453
460
|
render: function render() {
|
454
461
|
var _classes,
|
455
462
|
_this = this;
|
456
|
-
var radioClass = (0,external_shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(this.resolveClassName('radio-button')), true), _defineProperty(_classes, 'is-focused', this.isFocused), _defineProperty(_classes, 'is-disabled', this.isDisabled), _defineProperty(_classes, 'is-checked', this.isChecked), _classes));
|
463
|
+
var radioClass = (0,external_shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(this.resolveClassName('radio-button')), true), _defineProperty(_classes, "".concat(this.resolveClassName('radio-button'), "-").concat(this.size), true), _defineProperty(_classes, 'is-focused', this.isFocused), _defineProperty(_classes, 'is-disabled', this.isDisabled), _defineProperty(_classes, 'is-checked', this.isChecked), _classes));
|
457
464
|
var renderLabel = function renderLabel() {
|
458
465
|
if (!_this.label && !_this.$slots["default"]) {
|
459
466
|
return null;
|
@@ -514,7 +521,8 @@ var radioGroupProps = {
|
|
514
521
|
modelValue: external_shared_namespaceObject.PropTypes.oneOfType([String, Number, Boolean]),
|
515
522
|
disabled: external_shared_namespaceObject.PropTypes.bool,
|
516
523
|
withValidate: external_shared_namespaceObject.PropTypes.bool.def(true),
|
517
|
-
type: external_shared_namespaceObject.PropTypes.oneOf(['tab', 'capsule', 'card']).def('tab')
|
524
|
+
type: external_shared_namespaceObject.PropTypes.oneOf(['tab', 'capsule', 'card']).def('tab'),
|
525
|
+
size: external_shared_namespaceObject.PropTypes.size()
|
518
526
|
};
|
519
527
|
/* harmony default export */ const radio_group = ((0,external_vue_namespaceObject.defineComponent)({
|
520
528
|
name: 'RadioGroup',
|
@@ -49,6 +49,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
49
49
|
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
50
50
|
}, {
|
51
51
|
isFocused: import("vue").Ref<boolean>;
|
52
|
+
size: import("vue").Ref<string>;
|
52
53
|
isChecked: import("vue").Ref<boolean>;
|
53
54
|
isDisabled: import("vue").ComputedRef<boolean>;
|
54
55
|
setChecked: (value?: boolean) => void;
|
@@ -17,6 +17,7 @@ declare const radioGroupProps: {
|
|
17
17
|
type: import("vue-types").VueTypeDef<string> & {
|
18
18
|
default: string;
|
19
19
|
};
|
20
|
+
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
20
21
|
};
|
21
22
|
export type RadioGroupProps = Readonly<ExtractPropTypes<typeof radioGroupProps>>;
|
22
23
|
declare const _default: import("vue").DefineComponent<{
|
@@ -37,6 +38,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
37
38
|
type: import("vue-types").VueTypeDef<string> & {
|
38
39
|
default: string;
|
39
40
|
};
|
41
|
+
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
40
42
|
}, {
|
41
43
|
resolveClassName: (cls: string) => string;
|
42
44
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
@@ -60,6 +62,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
60
62
|
type: import("vue-types").VueTypeDef<string> & {
|
61
63
|
default: string;
|
62
64
|
};
|
65
|
+
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
63
66
|
}>> & {
|
64
67
|
onChange?: (value: any) => any;
|
65
68
|
"onUpdate:modelValue"?: (value: any) => any;
|
package/lib/radio/radio.css
CHANGED
@@ -5,7 +5,6 @@
|
|
5
5
|
.bk-radio {
|
6
6
|
display: inline-flex;
|
7
7
|
align-items: center;
|
8
|
-
font-size: 12px;
|
9
8
|
font-weight: normal;
|
10
9
|
letter-spacing: normal;
|
11
10
|
color: #63656e;
|
@@ -17,6 +16,9 @@
|
|
17
16
|
.bk-radio ~ .bk-radio {
|
18
17
|
margin-left: 24px;
|
19
18
|
}
|
19
|
+
.bk-radio.bk-radio-small .bk-radio-label {
|
20
|
+
font-size: 12px;
|
21
|
+
}
|
20
22
|
.bk-radio.is-checked .bk-radio-input {
|
21
23
|
padding: 3px;
|
22
24
|
color: #3a84ff;
|
@@ -63,7 +65,7 @@
|
|
63
65
|
}
|
64
66
|
.bk-radio-label {
|
65
67
|
margin-left: 6px;
|
66
|
-
font-size:
|
68
|
+
font-size: 14px;
|
67
69
|
font-style: normal;
|
68
70
|
font-weight: normal;
|
69
71
|
vertical-align: middle;
|
@@ -82,7 +84,19 @@
|
|
82
84
|
opacity: 1;
|
83
85
|
user-select: none;
|
84
86
|
}
|
85
|
-
.bk-radio-button-
|
87
|
+
.bk-radio-button.bk-radio-button-small .bk-radio-button-label {
|
88
|
+
height: 26px;
|
89
|
+
padding: var(--component-size-small-padding);
|
90
|
+
font-size: 12px;
|
91
|
+
line-height: 26px;
|
92
|
+
}
|
93
|
+
.bk-radio-button.bk-radio-button-large .bk-radio-button-label {
|
94
|
+
height: 40px;
|
95
|
+
padding: var(--component-size-large-padding);
|
96
|
+
font-size: 16px;
|
97
|
+
line-height: 40px;
|
98
|
+
}
|
99
|
+
.bk-radio-button .bk-radio-button-input {
|
86
100
|
position: absolute;
|
87
101
|
z-index: -1;
|
88
102
|
width: 100%;
|
@@ -94,7 +108,7 @@
|
|
94
108
|
}
|
95
109
|
.bk-radio-button .bk-radio-button-label {
|
96
110
|
width: 100%;
|
97
|
-
padding:
|
111
|
+
padding: var(--component-size-base-padding);
|
98
112
|
font-size: 12px;
|
99
113
|
font-style: normal;
|
100
114
|
font-weight: normal;
|
package/lib/radio/radio.d.ts
CHANGED
package/lib/radio/radio.less
CHANGED
@@ -9,7 +9,6 @@
|
|
9
9
|
.@{bk-prefix}-radio {
|
10
10
|
display: inline-flex;
|
11
11
|
align-items: center;
|
12
|
-
font-size: @font-size-base;
|
13
12
|
font-weight: normal;
|
14
13
|
letter-spacing: normal;
|
15
14
|
color: @radio-font-color;
|
@@ -21,6 +20,11 @@
|
|
21
20
|
& ~ .@{bk-prefix}-radio {
|
22
21
|
margin-left: 24px;
|
23
22
|
}
|
23
|
+
&.@{bk-prefix}-radio-small {
|
24
|
+
.@{bk-prefix}-radio-label {
|
25
|
+
font-size: @font-size-base;
|
26
|
+
}
|
27
|
+
}
|
24
28
|
|
25
29
|
&.is-checked {
|
26
30
|
.@{bk-prefix}-radio-input {
|
@@ -83,7 +87,7 @@
|
|
83
87
|
|
84
88
|
.@{bk-prefix}-radio-label {
|
85
89
|
margin-left: 6px;
|
86
|
-
font-size:
|
90
|
+
font-size: @font-size-medium;
|
87
91
|
font-style: normal;
|
88
92
|
font-weight: normal;
|
89
93
|
vertical-align: middle;
|
@@ -104,7 +108,37 @@
|
|
104
108
|
opacity: 1;
|
105
109
|
user-select: none;
|
106
110
|
|
107
|
-
|
111
|
+
@sizeSelectors: small, large;
|
112
|
+
|
113
|
+
@btnHeight: @component-size-base;
|
114
|
+
@btnPadding: @component-size-base-padding;
|
115
|
+
@btnBorderRadius: @border-radius-base;
|
116
|
+
|
117
|
+
@smallBtnHeight: @component-size-small;
|
118
|
+
@smallBtnPadding: @component-size-small-padding;
|
119
|
+
@smallBtnFontSize: @font-size-base;
|
120
|
+
|
121
|
+
@largeBtnHeight: @component-size-large;
|
122
|
+
@largeBtnPadding: @component-size-large-padding;
|
123
|
+
@largeBtnFontSize: @font-size-large;
|
124
|
+
|
125
|
+
each(@sizeSelectors, {
|
126
|
+
@sizeBtnHeight: '@{value}BtnHeight';
|
127
|
+
@sizeBtnPadding: '@{value}BtnPadding';
|
128
|
+
@sizeBtnFontSize: '@{value}BtnFontSize';
|
129
|
+
|
130
|
+
&.@{bk-prefix}-radio-button-@{value}{
|
131
|
+
.@{bk-prefix}-radio-button-label{
|
132
|
+
height: @@sizeBtnHeight;
|
133
|
+
padding: @@sizeBtnPadding;
|
134
|
+
font-size: @@sizeBtnFontSize;
|
135
|
+
line-height: @@sizeBtnHeight;
|
136
|
+
}
|
137
|
+
}
|
138
|
+
});
|
139
|
+
|
140
|
+
|
141
|
+
.@{bk-prefix}-radio-button-input {
|
108
142
|
position: absolute;
|
109
143
|
z-index: -1;
|
110
144
|
width: 100%;
|
@@ -117,8 +151,8 @@
|
|
117
151
|
|
118
152
|
.@{bk-prefix}-radio-button-label {
|
119
153
|
width: 100%;
|
120
|
-
padding:
|
121
|
-
font-size:
|
154
|
+
padding: @btnPadding;
|
155
|
+
font-size: @font-size-base;
|
122
156
|
font-style: normal;
|
123
157
|
font-weight: normal;
|
124
158
|
line-height: @component-size-base;
|
@@ -149,7 +183,6 @@
|
|
149
183
|
}
|
150
184
|
}
|
151
185
|
|
152
|
-
|
153
186
|
.@{bk-prefix}-radio-capsule {
|
154
187
|
padding: 4px;
|
155
188
|
background: #f0f1f5;
|
@@ -192,7 +225,8 @@
|
|
192
225
|
}
|
193
226
|
}
|
194
227
|
|
195
|
-
.@{bk-prefix}-radio-tab
|
228
|
+
.@{bk-prefix}-radio-tab,
|
229
|
+
.@{bk-prefix}-radio-card {
|
196
230
|
|
197
231
|
.@{bk-prefix}-radio-button {
|
198
232
|
overflow: hidden;
|
@@ -21,6 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
+
--component-size-small-padding: var(--component-size-small-padding);
|
25
|
+
--component-size-base-padding: var(--component-size-base-padding);
|
26
|
+
--component-size-large-padding: var(--component-size-large-padding);
|
24
27
|
--border-width-base: 1px;
|
25
28
|
--border-style-base: solid;
|
26
29
|
--border-radius-base: 2px;
|
@@ -128,7 +131,6 @@
|
|
128
131
|
.bk-radio {
|
129
132
|
display: inline-flex;
|
130
133
|
align-items: center;
|
131
|
-
font-size: var(--font-size-base);
|
132
134
|
font-weight: normal;
|
133
135
|
letter-spacing: normal;
|
134
136
|
color: var(--radio-font-color);
|
@@ -140,6 +142,9 @@
|
|
140
142
|
.bk-radio ~ .bk-radio {
|
141
143
|
margin-left: 24px;
|
142
144
|
}
|
145
|
+
.bk-radio.bk-radio-small .bk-radio-label {
|
146
|
+
font-size: var(--font-size-base);
|
147
|
+
}
|
143
148
|
.bk-radio.is-checked .bk-radio-input {
|
144
149
|
padding: 3px;
|
145
150
|
color: var(--radio-active-color);
|
@@ -186,7 +191,7 @@
|
|
186
191
|
}
|
187
192
|
.bk-radio-label {
|
188
193
|
margin-left: 6px;
|
189
|
-
font-size:
|
194
|
+
font-size: var(--font-size-medium);
|
190
195
|
font-style: normal;
|
191
196
|
font-weight: normal;
|
192
197
|
vertical-align: middle;
|
@@ -205,7 +210,19 @@
|
|
205
210
|
opacity: 1;
|
206
211
|
user-select: none;
|
207
212
|
}
|
208
|
-
.bk-radio-button-
|
213
|
+
.bk-radio-button.bk-radio-button-small .bk-radio-button-label {
|
214
|
+
height: var(--component-size-small);
|
215
|
+
padding: var(--component-size-small-padding);
|
216
|
+
font-size: var(--font-size-base);
|
217
|
+
line-height: var(--component-size-small);
|
218
|
+
}
|
219
|
+
.bk-radio-button.bk-radio-button-large .bk-radio-button-label {
|
220
|
+
height: var(--component-size-large);
|
221
|
+
padding: var(--component-size-large-padding);
|
222
|
+
font-size: var(--font-size-large);
|
223
|
+
line-height: var(--component-size-large);
|
224
|
+
}
|
225
|
+
.bk-radio-button .bk-radio-button-input {
|
209
226
|
position: absolute;
|
210
227
|
z-index: -1;
|
211
228
|
width: 100%;
|
@@ -217,8 +234,8 @@
|
|
217
234
|
}
|
218
235
|
.bk-radio-button .bk-radio-button-label {
|
219
236
|
width: 100%;
|
220
|
-
padding:
|
221
|
-
font-size:
|
237
|
+
padding: var(--component-size-base-padding);
|
238
|
+
font-size: var(--font-size-base);
|
222
239
|
font-style: normal;
|
223
240
|
font-weight: normal;
|
224
241
|
line-height: var(--component-size-base);
|
@@ -21,6 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
+
--component-size-small-padding: var(--component-size-small-padding);
|
25
|
+
--component-size-base-padding: var(--component-size-base-padding);
|
26
|
+
--component-size-large-padding: var(--component-size-large-padding);
|
24
27
|
--border-width-base: 1px;
|
25
28
|
--border-style-base: solid;
|
26
29
|
--border-radius-base: 2px;
|
@@ -21,6 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
+
--component-size-small-padding: var(--component-size-small-padding);
|
25
|
+
--component-size-base-padding: var(--component-size-base-padding);
|
26
|
+
--component-size-large-padding: var(--component-size-large-padding);
|
24
27
|
--border-width-base: 1px;
|
25
28
|
--border-style-base: solid;
|
26
29
|
--border-radius-base: 2px;
|
@@ -21,6 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
+
--component-size-small-padding: var(--component-size-small-padding);
|
25
|
+
--component-size-base-padding: var(--component-size-base-padding);
|
26
|
+
--component-size-large-padding: var(--component-size-large-padding);
|
24
27
|
--border-width-base: 1px;
|
25
28
|
--border-style-base: solid;
|
26
29
|
--border-radius-base: 2px;
|
@@ -22,6 +22,9 @@
|
|
22
22
|
--component-size-small: 26px;
|
23
23
|
--component-size-base: 32px;
|
24
24
|
--component-size-large: 40px;
|
25
|
+
--component-size-small-padding: var(--component-size-small-padding);
|
26
|
+
--component-size-base-padding: var(--component-size-base-padding);
|
27
|
+
--component-size-large-padding: var(--component-size-large-padding);
|
25
28
|
--border-width-base: 1px;
|
26
29
|
--border-style-base: solid;
|
27
30
|
--border-radius-base: 2px;
|
@@ -21,6 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
+
--component-size-small-padding: var(--component-size-small-padding);
|
25
|
+
--component-size-base-padding: var(--component-size-base-padding);
|
26
|
+
--component-size-large-padding: var(--component-size-large-padding);
|
24
27
|
--border-width-base: 1px;
|
25
28
|
--border-style-base: solid;
|
26
29
|
--border-radius-base: 2px;
|
@@ -21,6 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
+
--component-size-small-padding: var(--component-size-small-padding);
|
25
|
+
--component-size-base-padding: var(--component-size-base-padding);
|
26
|
+
--component-size-large-padding: var(--component-size-large-padding);
|
24
27
|
--border-width-base: 1px;
|
25
28
|
--border-style-base: solid;
|
26
29
|
--border-radius-base: 2px;
|
@@ -21,6 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
+
--component-size-small-padding: var(--component-size-small-padding);
|
25
|
+
--component-size-base-padding: var(--component-size-base-padding);
|
26
|
+
--component-size-large-padding: var(--component-size-large-padding);
|
24
27
|
--border-width-base: 1px;
|
25
28
|
--border-style-base: solid;
|
26
29
|
--border-radius-base: 2px;
|
@@ -22,6 +22,9 @@
|
|
22
22
|
--component-size-small: 26px;
|
23
23
|
--component-size-base: 32px;
|
24
24
|
--component-size-large: 40px;
|
25
|
+
--component-size-small-padding: var(--component-size-small-padding);
|
26
|
+
--component-size-base-padding: var(--component-size-base-padding);
|
27
|
+
--component-size-large-padding: var(--component-size-large-padding);
|
25
28
|
--border-width-base: 1px;
|
26
29
|
--border-style-base: solid;
|
27
30
|
--border-radius-base: 2px;
|
@@ -21,6 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
+
--component-size-small-padding: var(--component-size-small-padding);
|
25
|
+
--component-size-base-padding: var(--component-size-base-padding);
|
26
|
+
--component-size-large-padding: var(--component-size-large-padding);
|
24
27
|
--border-width-base: 1px;
|
25
28
|
--border-style-base: solid;
|
26
29
|
--border-radius-base: 2px;
|
@@ -21,6 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
+
--component-size-small-padding: var(--component-size-small-padding);
|
25
|
+
--component-size-base-padding: var(--component-size-base-padding);
|
26
|
+
--component-size-large-padding: var(--component-size-large-padding);
|
24
27
|
--border-width-base: 1px;
|
25
28
|
--border-style-base: solid;
|
26
29
|
--border-radius-base: 2px;
|
@@ -21,6 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
+
--component-size-small-padding: var(--component-size-small-padding);
|
25
|
+
--component-size-base-padding: var(--component-size-base-padding);
|
26
|
+
--component-size-large-padding: var(--component-size-large-padding);
|
24
27
|
--border-width-base: 1px;
|
25
28
|
--border-style-base: solid;
|
26
29
|
--border-radius-base: 2px;
|
@@ -21,6 +21,9 @@
|
|
21
21
|
--component-size-small: 26px;
|
22
22
|
--component-size-base: 32px;
|
23
23
|
--component-size-large: 40px;
|
24
|
+
--component-size-small-padding: var(--component-size-small-padding);
|
25
|
+
--component-size-base-padding: var(--component-size-base-padding);
|
26
|
+
--component-size-large-padding: var(--component-size-large-padding);
|
24
27
|
--border-width-base: 1px;
|
25
28
|
--border-style-base: solid;
|
26
29
|
--border-radius-base: 2px;
|