bkui-vue 0.0.1-beta.1 → 0.0.1-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +22 -0
- package/README.md +55 -0
- package/dist/bkui-vue.cjs.js +9957 -257
- package/dist/bkui-vue.esm.js +9919 -257
- package/dist/bkui-vue.umd.js +9967 -267
- package/dist/style.css +4010 -428
- package/lib/alert/alert.css +75 -0
- package/lib/alert/alert.d.ts +53 -0
- package/lib/alert/alert.less +110 -0
- package/lib/alert/alert.variable.css +161 -0
- package/lib/alert/index.d.ts +144 -0
- package/lib/alert/index.js +1 -0
- package/lib/animate-number/animate-number.d.ts +22 -0
- package/lib/animate-number/index.d.ts +77 -0
- package/lib/animate-number/index.js +1 -0
- package/lib/backtop/backtop.css +42 -0
- package/lib/backtop/backtop.d.ts +46 -0
- package/lib/backtop/backtop.less +18 -0
- package/lib/backtop/backtop.variable.css +128 -0
- package/lib/backtop/index.d.ts +110 -0
- package/lib/backtop/index.js +1 -0
- package/lib/badge/badge.css +121 -0
- package/lib/badge/badge.d.ts +70 -0
- package/lib/badge/badge.less +137 -0
- package/lib/badge/badge.variable.css +207 -0
- package/lib/badge/index.d.ts +149 -0
- package/lib/badge/index.js +1 -0
- package/lib/breadcrumb/breadcrumb-item.d.ts +32 -0
- package/lib/breadcrumb/breadcrumb.css +59 -0
- package/lib/breadcrumb/breadcrumb.d.ts +26 -0
- package/lib/breadcrumb/breadcrumb.less +54 -0
- package/lib/breadcrumb/breadcrumb.variable.css +145 -0
- package/lib/breadcrumb/index.d.ts +122 -0
- package/lib/breadcrumb/index.js +1 -0
- package/lib/breadcrumb/props.d.ts +4 -0
- package/lib/button/button-group.d.ts +8 -0
- package/lib/button/button.css +242 -22
- package/lib/button/button.d.ts +114 -0
- package/lib/button/button.less +180 -36
- package/lib/button/button.variable.css +339 -0
- package/lib/button/index.d.ts +170 -0
- package/lib/button/index.js +1 -206
- package/lib/card/card.css +63 -0
- package/lib/card/card.d.ts +54 -0
- package/lib/card/card.less +44 -0
- package/lib/card/card.variable.css +149 -0
- package/lib/card/index.d.ts +127 -0
- package/lib/card/index.js +1 -0
- package/lib/checkbox/checkbox-group.d.ts +44 -0
- package/lib/checkbox/checkbox.css +54 -125
- package/lib/checkbox/checkbox.d.ts +105 -0
- package/lib/checkbox/checkbox.less +66 -6
- package/lib/checkbox/checkbox.variable.css +150 -0
- package/lib/checkbox/common.d.ts +13 -0
- package/lib/checkbox/index.d.ts +221 -0
- package/lib/checkbox/index.js +1 -64
- package/lib/checkbox/type.d.ts +19 -0
- package/lib/collapse/collapse.css +30 -0
- package/lib/collapse/collapse.d.ts +74 -0
- package/lib/collapse/collapse.less +37 -0
- package/lib/collapse/collapse.variable.css +30 -0
- package/lib/collapse/index.d.ts +130 -0
- package/lib/collapse/index.js +1 -0
- package/lib/components.d.ts +31 -0
- package/lib/date-picker/date-picker.css +407 -0
- package/lib/date-picker/date-picker.d.ts +357 -0
- package/lib/date-picker/date-picker.less +526 -0
- package/lib/date-picker/date-picker.variable.css +493 -0
- package/lib/date-picker/fecha.d.ts +6 -0
- package/lib/date-picker/index.d.ts +525 -0
- package/lib/date-picker/index.js +1 -0
- package/lib/date-picker/interface.d.ts +22 -0
- package/lib/date-picker/utils.d.ts +97 -0
- package/lib/dialog/dialog.css +68 -0
- package/lib/dialog/dialog.d.ts +83 -0
- package/lib/dialog/dialog.less +80 -0
- package/lib/dialog/dialog.variable.css +68 -0
- package/lib/dialog/index.d.ts +183 -0
- package/lib/dialog/index.js +1 -0
- package/lib/directives/clickoutside.d.ts +23 -0
- package/lib/directives/index.d.ts +3 -0
- package/lib/directives/index.js +15 -0
- package/lib/directives/mousewheel.d.ts +3 -0
- package/lib/directives/tooltips.d.ts +17 -0
- package/lib/divider/divider.css +38 -0
- package/lib/divider/divider.d.ts +40 -0
- package/lib/divider/divider.less +53 -0
- package/lib/divider/divider.variable.css +124 -0
- package/lib/divider/index.d.ts +110 -0
- package/lib/divider/index.js +1 -0
- package/lib/dropdown/dropdown-item.d.ts +18 -0
- package/lib/dropdown/dropdown-menu.d.ts +15 -0
- package/lib/dropdown/dropdown.css +43 -0
- package/lib/dropdown/dropdown.d.ts +49 -0
- package/lib/dropdown/dropdown.less +54 -0
- package/lib/dropdown/dropdown.variable.css +129 -0
- package/lib/dropdown/index.d.ts +160 -0
- package/lib/dropdown/index.js +1 -0
- package/lib/exception/exception.css +32 -0
- package/lib/exception/exception.d.ts +24 -0
- package/lib/exception/exception.less +39 -0
- package/lib/exception/exception.variable.css +118 -0
- package/lib/exception/index.d.ts +88 -0
- package/lib/exception/index.js +1 -0
- package/lib/fixed-navbar/fixed-navbar.css +42 -0
- package/lib/fixed-navbar/fixed-navbar.d.ts +28 -0
- package/lib/fixed-navbar/fixed-navbar.less +53 -0
- package/lib/fixed-navbar/fixed-navbar.variable.css +128 -0
- package/lib/fixed-navbar/index.d.ts +88 -0
- package/lib/fixed-navbar/index.js +1 -0
- package/lib/form/common.d.ts +3 -0
- package/lib/form/form-item.d.ts +140 -0
- package/lib/form/form.css +39 -0
- package/lib/form/form.d.ts +76 -0
- package/lib/form/form.less +50 -0
- package/lib/form/form.variable.css +39 -0
- package/lib/form/index.d.ts +4 -0
- package/lib/form/index.js +1 -0
- package/lib/form/type.d.ts +21 -0
- package/lib/form/validator.d.ts +8 -0
- package/lib/icon/angle-double-left.d.ts +4 -0
- package/lib/icon/angle-double-right.d.ts +4 -0
- package/lib/icon/angle-down-line.d.ts +4 -0
- package/lib/icon/angle-down.d.ts +4 -0
- package/lib/icon/angle-left.d.ts +4 -0
- package/lib/icon/angle-right.d.ts +4 -0
- package/lib/icon/angle-up.d.ts +4 -0
- package/lib/icon/circle.d.ts +4 -0
- package/lib/icon/close.d.ts +4 -0
- package/lib/icon/code.d.ts +4 -0
- package/lib/icon/cog-shape.d.ts +4 -0
- package/lib/icon/collapse-left.d.ts +4 -0
- package/lib/icon/copy.d.ts +4 -0
- package/lib/icon/done.d.ts +4 -0
- package/lib/icon/down-shape.d.ts +4 -0
- package/lib/icon/down-small.d.ts +4 -0
- package/lib/icon/error.d.ts +4 -0
- package/lib/icon/eye.d.ts +4 -0
- package/lib/icon/folder-open.d.ts +4 -0
- package/lib/icon/folder-shape-open.d.ts +4 -0
- package/lib/icon/folder-shape.d.ts +4 -0
- package/lib/icon/folder.d.ts +4 -0
- package/lib/icon/help-document-fill.d.ts +4 -0
- package/lib/icon/help-fill.d.ts +4 -0
- package/lib/icon/help.d.ts +4 -0
- package/lib/icon/icon.d.ts +12 -0
- package/lib/icon/index.d.ts +38 -0
- package/lib/icon/index.js +15 -0
- package/lib/icon/info-line.d.ts +4 -0
- package/lib/icon/info.d.ts +4 -0
- package/lib/icon/play-shape.d.ts +4 -0
- package/lib/icon/plus.d.ts +4 -0
- package/lib/icon/right-shape.d.ts +4 -0
- package/lib/icon/search.d.ts +4 -0
- package/lib/icon/share.d.ts +4 -0
- package/lib/icon/success.d.ts +4 -0
- package/lib/icon/switcher-loading.d.ts +4 -0
- package/lib/icon/text-file.d.ts +4 -0
- package/lib/icon/tree-application-shape.d.ts +4 -0
- package/lib/icon/unvisible.d.ts +4 -0
- package/lib/icon/warn.d.ts +4 -0
- package/lib/index.d.ts +3 -0
- package/lib/input/index.d.ts +275 -0
- package/lib/input/index.js +15 -60
- package/lib/input/input.css +114 -148
- package/lib/input/input.d.ts +185 -0
- package/lib/input/input.less +107 -40
- package/lib/input/input.variable.css +218 -0
- package/lib/link/index.d.ts +116 -0
- package/lib/link/index.js +1 -0
- package/lib/link/link.css +55 -0
- package/lib/link/link.d.ts +46 -0
- package/lib/link/link.less +74 -0
- package/lib/link/link.variable.css +141 -0
- package/lib/loading/index.d.ts +125 -0
- package/lib/loading/index.js +1 -0
- package/lib/loading/loading.css +225 -0
- package/lib/loading/loading.d.ts +64 -0
- package/lib/loading/loading.less +181 -0
- package/lib/loading/loading.variable.css +311 -0
- package/lib/menu/index.d.ts +169 -0
- package/lib/menu/index.js +1 -0
- package/lib/menu/menu-group.d.ts +13 -0
- package/lib/menu/menu-item.d.ts +15 -0
- package/lib/menu/menu.css +182 -0
- package/lib/menu/menu.d.ts +60 -0
- package/lib/menu/menu.less +180 -0
- package/lib/menu/menu.variable.css +268 -0
- package/lib/menu/submenu.d.ts +21 -0
- package/lib/menu/submenu.less +5 -0
- package/lib/menu/submenu.variable.css +86 -0
- package/lib/menu/utils.d.ts +41 -0
- package/lib/message/index.d.ts +2 -0
- package/lib/message/index.js +1 -0
- package/lib/message/message.css +53 -0
- package/lib/message/message.less +61 -0
- package/lib/message/message.variable.css +139 -0
- package/lib/message/messageConstructor.d.ts +61 -0
- package/lib/modal/index.d.ts +155 -0
- package/lib/modal/index.js +1 -0
- package/lib/modal/modal.css +11 -0
- package/lib/modal/modal.d.ts +47 -0
- package/lib/modal/modal.less +12 -0
- package/lib/modal/modal.variable.css +11 -0
- package/lib/modal/props.mixin.d.ts +22 -0
- package/lib/navigation/index.d.ts +2 -0
- package/lib/navigation/index.js +1 -0
- package/lib/navigation/navigation-title.d.ts +22 -0
- package/lib/navigation/navigation.css +184 -0
- package/lib/navigation/navigation.d.ts +94 -0
- package/lib/navigation/navigation.less +210 -0
- package/lib/navigation/navigation.variable.css +270 -0
- package/lib/notify/index.d.ts +2 -0
- package/lib/notify/index.js +1 -0
- package/lib/notify/notify.css +49 -0
- package/lib/notify/notify.less +58 -0
- package/lib/notify/notify.variable.css +135 -0
- package/lib/notify/notifyConstructor.d.ts +75 -0
- package/lib/popover/index.d.ts +202 -0
- package/lib/popover/index.js +1 -0
- package/lib/popover/popover.css +55 -0
- package/lib/popover/popover.d.ts +88 -0
- package/lib/popover/popover.less +70 -0
- package/lib/popover/popover.variable.css +141 -0
- package/lib/preset.d.ts +8 -0
- package/lib/progress/circle.d.ts +6 -0
- package/lib/progress/index.d.ts +228 -0
- package/lib/progress/index.js +1 -0
- package/lib/progress/line.d.ts +6 -0
- package/lib/progress/progress.css +97 -0
- package/lib/progress/progress.d.ts +118 -0
- package/lib/progress/progress.less +94 -0
- package/lib/progress/progress.variable.css +183 -0
- package/lib/radio/common.d.ts +13 -0
- package/lib/radio/index.d.ts +228 -0
- package/lib/radio/index.js +1 -61
- package/lib/radio/radio-button.d.ts +83 -0
- package/lib/radio/radio-group.d.ts +40 -0
- package/lib/radio/radio.css +128 -125
- package/lib/radio/radio.d.ts +77 -0
- package/lib/radio/radio.less +173 -20
- package/lib/radio/radio.variable.css +224 -0
- package/lib/radio/type.d.ts +9 -0
- package/lib/rate/index.d.ts +101 -0
- package/lib/rate/index.js +1 -0
- package/lib/rate/rate.css +10 -0
- package/lib/rate/rate.d.ts +29 -0
- package/lib/rate/rate.less +11 -0
- package/lib/rate/rate.variable.css +10 -0
- package/lib/rate/star.css +24 -0
- package/lib/rate/star.d.ts +57 -0
- package/lib/rate/star.less +29 -0
- package/lib/rate/star.variable.css +24 -0
- package/lib/select/common.d.ts +28 -0
- package/lib/select/index.d.ts +950 -0
- package/lib/select/index.js +15 -0
- package/lib/select/option.d.ts +32 -0
- package/lib/select/optionGroup.d.ts +115 -0
- package/lib/select/select.css +157 -0
- package/lib/select/select.d.ts +285 -0
- package/lib/select/select.less +203 -0
- package/lib/select/select.variable.css +243 -0
- package/lib/shared/bk-helper-core.d.ts +87 -0
- package/lib/shared/bk-mask-manager.d.ts +47 -0
- package/lib/shared/bk-pop-manager.d.ts +19 -0
- package/lib/shared/bk-popover.d.ts +86 -0
- package/lib/shared/index.d.ts +51 -0
- package/lib/shared/index.js +1 -13
- package/lib/shared/scrollbar-width.d.ts +1 -0
- package/lib/shared/vue-types.d.ts +115 -0
- package/lib/shared/z-index-manager.d.ts +93 -0
- package/lib/sideslider/index.d.ts +139 -0
- package/lib/sideslider/index.js +1 -0
- package/lib/sideslider/sideslider.css +69 -0
- package/lib/sideslider/sideslider.d.ts +54 -0
- package/lib/sideslider/sideslider.less +86 -0
- package/lib/sideslider/sideslider.variable.css +155 -0
- package/lib/slider/index.d.ts +27 -0
- package/lib/slider/index.js +15 -0
- package/lib/slider/slider-button.d.ts +72 -0
- package/lib/slider/slider.css +149 -0
- package/lib/slider/slider.d.ts +159 -0
- package/lib/slider/slider.less +179 -0
- package/lib/slider/slider.variable.css +235 -0
- package/lib/steps/index.d.ts +198 -0
- package/lib/steps/index.js +15 -0
- package/lib/steps/steps.css +285 -0
- package/lib/steps/steps.d.ts +148 -0
- package/lib/steps/steps.less +320 -0
- package/lib/steps/steps.variable.css +371 -0
- package/lib/styles/index.d.ts +38 -0
- package/lib/styles/index.js +1 -0
- package/lib/styles/mixins/animate.css +21 -0
- package/lib/styles/mixins/animate.less +27 -0
- package/lib/styles/mixins/animate.variable.css +21 -0
- package/lib/styles/mixins/ellipsis.less +8 -0
- package/lib/styles/mixins/mixins.css +21 -0
- package/lib/styles/mixins/mixins.less +2 -0
- package/lib/styles/mixins/mixins.variable.css +21 -0
- package/lib/styles/mixins/popper.css +43 -0
- package/lib/styles/mixins/popper.less +52 -0
- package/lib/styles/mixins/popper.variable.css +43 -0
- package/lib/styles/mixins/size.less +10 -1
- package/lib/styles/reset.css +273 -0
- package/lib/styles/reset.less +313 -0
- package/lib/styles/reset.variable.css +273 -0
- package/lib/styles/themes/themes.less +84 -284
- package/lib/switcher/index.d.ts +222 -0
- package/lib/switcher/index.js +1 -0
- package/lib/switcher/switcher.css +258 -0
- package/lib/switcher/switcher.d.ts +97 -0
- package/lib/switcher/switcher.less +302 -0
- package/lib/switcher/switcher.variable.css +344 -0
- package/lib/tab/index.d.ts +416 -0
- package/lib/tab/index.js +1 -0
- package/lib/tab/tab-nav.d.ts +154 -0
- package/lib/tab/tab-panel.d.ts +46 -0
- package/lib/tab/tab.css +147 -0
- package/lib/tab/tab.d.ts +131 -0
- package/lib/tab/tab.less +221 -0
- package/lib/tab/tab.variable.css +233 -0
- package/lib/table/index.d.ts +119 -0
- package/lib/table/index.js +1 -0
- package/lib/table/props.d.ts +41 -0
- package/lib/table/render.d.ts +47 -0
- package/lib/table/table.css +44 -0
- package/lib/table/table.d.ts +26 -0
- package/lib/table/table.less +67 -0
- package/lib/table/table.variable.css +130 -0
- package/lib/table/utils.d.ts +22 -0
- package/lib/tag/index.d.ts +338 -0
- package/lib/tag/index.js +1 -0
- package/lib/tag/tag.d.ts +54 -0
- package/lib/tag/tag.less +5 -0
- package/lib/tag/tag.variable.css +86 -0
- package/lib/tree/index.d.ts +149 -0
- package/lib/tree/index.js +1 -0
- package/lib/tree/tree.css +35 -0
- package/lib/tree/tree.d.ts +58 -0
- package/lib/tree/tree.less +55 -0
- package/lib/tree/tree.variable.css +35 -0
- package/lib/tree/util.d.ts +89 -0
- package/lib/use-message.d.ts +2 -0
- package/package.json +92 -40
- package/lib/styles/mixins/size.css +0 -0
- package/lib/styles/themes/themes.css +0 -119
- package/lib/styles/themes/variables.css +0 -27
- package/lib/styles/themes/variables.less +0 -36
@@ -0,0 +1,40 @@
|
|
1
|
+
import type { ExtractPropTypes } from 'vue';
|
2
|
+
declare const radioGroupProps: {
|
3
|
+
name: import("vue-types").VueTypeValidableDef<string> & {
|
4
|
+
default: string;
|
5
|
+
} & {
|
6
|
+
default: string;
|
7
|
+
};
|
8
|
+
modelValue: import("vue-types").VueTypeDef<string | number | boolean>;
|
9
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
10
|
+
default: boolean;
|
11
|
+
};
|
12
|
+
};
|
13
|
+
export declare type RadioGroupProps = Readonly<ExtractPropTypes<typeof radioGroupProps>>;
|
14
|
+
declare const _default: import("vue").DefineComponent<{
|
15
|
+
name: import("vue-types").VueTypeValidableDef<string> & {
|
16
|
+
default: string;
|
17
|
+
} & {
|
18
|
+
default: string;
|
19
|
+
};
|
20
|
+
modelValue: import("vue-types").VueTypeDef<string | number | boolean>;
|
21
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
22
|
+
default: boolean;
|
23
|
+
};
|
24
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
25
|
+
name?: unknown;
|
26
|
+
modelValue?: unknown;
|
27
|
+
disabled?: unknown;
|
28
|
+
} & {
|
29
|
+
name: string;
|
30
|
+
disabled: boolean;
|
31
|
+
} & {
|
32
|
+
modelValue?: string | number | boolean;
|
33
|
+
}> & {
|
34
|
+
onChange?: (...args: any[]) => any;
|
35
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
36
|
+
}, {
|
37
|
+
name: string;
|
38
|
+
disabled: boolean;
|
39
|
+
}>;
|
40
|
+
export default _default;
|
package/lib/radio/radio.css
CHANGED
@@ -1,135 +1,138 @@
|
|
1
|
-
:root {
|
2
|
-
--primary-color: #3a84ff;
|
3
|
-
--success-color: #2dcb56;
|
4
|
-
--warning-color: #ff9c01;
|
5
|
-
--danger-color: #ea3636;
|
6
|
-
--default-color: #63656e;
|
7
|
-
--font-size-base: 12px;
|
8
|
-
--font-size-medium: 14px;
|
9
|
-
--font-size-large: 16px;
|
10
|
-
--line-height-base: 16px;
|
11
|
-
--line-height-medium: 16px;
|
12
|
-
--line-height-large: 18px;
|
13
|
-
--component-size-small: 26px;
|
14
|
-
--component-size-base: 32px;
|
15
|
-
--component-size-large: 38px;
|
16
|
-
--border-color-base: #dcdee5;
|
17
|
-
--border-color-disable: #dcdee5;
|
18
|
-
--border-width-base: 1px;
|
19
|
-
--border-style-base: solid;
|
20
|
-
--border-radius-base: 2px;
|
21
|
-
--input-disabled-bg: #fafbfd;
|
22
|
-
--input-disabled-border: #dcdee5;
|
23
|
-
--input-height-base: var(--component-size-base);
|
24
|
-
--input-color: var(--default-color);
|
25
|
-
--input-bg: white;
|
26
|
-
--input-border-color: var(--border-color-base);
|
27
|
-
}
|
28
|
-
/* 存放常用变量 */
|
29
|
-
/********************** 字体 **********************/
|
30
|
-
/********************** 主题色 **********************/
|
31
|
-
/* 重点表示、强调、链接以及带有明确指示性 */
|
32
|
-
/* 描边使用 */
|
33
|
-
/* 背景色 */
|
34
|
-
/********************** 辅助色 **********************/
|
35
|
-
/* 退出、删除、错误、严重警告等否定类标识 */
|
36
|
-
/* 描边使用 */
|
37
|
-
/* 背景色 */
|
38
|
-
/* 警示灯引起注意类标识 */
|
39
|
-
/* 描边使用 */
|
40
|
-
/* 背景色 */
|
41
|
-
/* 成功、完成、进行等肯定类标识 */
|
42
|
-
/* 描边使用 */
|
43
|
-
/* 背景色 */
|
44
|
-
/********************** 中性色 **********************/
|
45
|
-
/* 重要级文字信息、内容标题信息 */
|
46
|
-
/* 次级标题、内容文字 主要文字使用颜色 */
|
47
|
-
/* 三级文字标题、内容文字 */
|
48
|
-
/* 边框内说明文字 */
|
49
|
-
/* 按钮、表单边框颜色、禁用时文本颜色 */
|
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
|
-
/* 成功 */
|
79
|
-
/* 警告 */
|
80
|
-
/* 危险 */
|
81
|
-
/********************** 图标大小 **********************/
|
82
|
-
/* 最小尺寸图标 */
|
83
|
-
/* 更小尺寸图标 */
|
84
|
-
/* 小尺寸图标 */
|
85
|
-
/* 正常尺寸图标 */
|
86
|
-
/* 大尺寸图标 */
|
87
|
-
/* 最大尺寸图标 */
|
88
|
-
/********************** 文案 **********************/
|
89
|
-
/* 字体 */
|
90
|
-
/* 正常尺寸 */
|
91
|
-
/* 小尺寸 */
|
92
|
-
/* 大尺寸 */
|
93
|
-
/* 主要颜色 */
|
94
|
-
/* 次要颜色 用于 plaeholder 等 */
|
95
|
-
/********************** 边框 **********************/
|
96
|
-
/* 边框色 */
|
97
|
-
/* 表单输入框色 */
|
98
|
-
/* 表单输入框激活色 */
|
99
|
-
/********************** 其它 **********************/
|
100
|
-
/* 滚动条背景色 */
|
101
|
-
/********************** 层级管理 **********************/
|
102
|
-
/* 下拉菜单层 */
|
103
|
-
/* @dropdownMenuZIndex: 50; */
|
104
|
-
/* 下拉选框层 */
|
105
|
-
/* @selectorZIndex: 100; */
|
106
|
-
/* 日期选框层 */
|
107
|
-
/* @dateZIndex: 200; */
|
108
|
-
/* 文字提示层 */
|
109
|
-
/* @tooltipZIndex: 500; */
|
110
|
-
/* 确认提示层 */
|
111
|
-
/* @toolboxZIndex: 700; */
|
112
|
-
/* 加载层 */
|
113
|
-
/* @loadingZIndex: 1000; */
|
114
|
-
/* 消息提示层 */
|
115
|
-
/* @messageZIndex: 2000; */
|
116
|
-
/* 侧弹层 */
|
117
|
-
/* @sideSliderZIndex: 1500; */
|
118
|
-
/* 对话框层 */
|
119
|
-
/* @dialogZIndex: 2000; */
|
120
1
|
.bk-radio {
|
2
|
+
display: inline-block;
|
121
3
|
margin-right: 30px;
|
4
|
+
font-size: 12px;
|
5
|
+
font-weight: normal;
|
6
|
+
line-height: 1;
|
7
|
+
letter-spacing: normal;
|
8
|
+
color: #63656e;
|
9
|
+
white-space: nowrap;
|
10
|
+
cursor: pointer;
|
11
|
+
outline: none;
|
12
|
+
user-select: none;
|
13
|
+
}
|
14
|
+
.bk-radio:last-child {
|
15
|
+
margin-right: 0;
|
16
|
+
}
|
17
|
+
.bk-radio.is-checked .bk-radio-input {
|
18
|
+
padding: 3px;
|
19
|
+
color: #3a84ff;
|
20
|
+
background-color: #3a84ff;
|
21
|
+
border-color: #3a84ff;
|
22
|
+
}
|
23
|
+
.bk-radio.is-disabled {
|
24
|
+
color: #dcdee5;
|
25
|
+
cursor: not-allowed;
|
26
|
+
}
|
27
|
+
.bk-radio.is-disabled.is-checked .bk-radio-input {
|
28
|
+
background-color: #dcdee5;
|
29
|
+
}
|
30
|
+
.bk-radio.is-disabled .bk-radio-input {
|
31
|
+
cursor: not-allowed;
|
32
|
+
border-color: #dcdee5;
|
33
|
+
}
|
34
|
+
.bk-radio.is-disabled .bk-radio-text {
|
35
|
+
cursor: not-allowed;
|
122
36
|
}
|
123
|
-
.bk-radio-input {
|
37
|
+
.bk-radio.is-focus .bk-radio-input {
|
38
|
+
border-color: #3a84ff;
|
39
|
+
}
|
40
|
+
.bk-radio .bk-radio-text {
|
41
|
+
font-size: 12px;
|
42
|
+
font-style: normal;
|
43
|
+
font-weight: normal;
|
44
|
+
color: #63656e;
|
45
|
+
vertical-align: middle;
|
46
|
+
cursor: pointer;
|
47
|
+
}
|
48
|
+
.bk-radio .bk-radio-input {
|
124
49
|
position: relative;
|
125
50
|
display: inline-block;
|
126
51
|
width: 16px;
|
127
52
|
height: 16px;
|
128
|
-
|
129
|
-
|
53
|
+
margin: 0 5px 0 0;
|
54
|
+
color: #fff;
|
55
|
+
vertical-align: middle;
|
56
|
+
cursor: pointer;
|
130
57
|
background-color: #fff;
|
131
|
-
|
58
|
+
border: 1px solid #63656e;
|
59
|
+
border-radius: 50%;
|
60
|
+
outline: none;
|
61
|
+
visibility: visible;
|
62
|
+
transition: all 0.3s;
|
63
|
+
background-clip: content-box;
|
64
|
+
appearance: none;
|
132
65
|
}
|
133
|
-
.bk-radio-
|
134
|
-
|
66
|
+
.bk-radio-button {
|
67
|
+
position: relative;
|
68
|
+
z-index: 1;
|
69
|
+
display: inline-block;
|
70
|
+
font-size: 0;
|
71
|
+
font-weight: normal;
|
72
|
+
line-height: 1;
|
73
|
+
letter-spacing: normal;
|
74
|
+
color: #63656e;
|
75
|
+
white-space: nowrap;
|
76
|
+
cursor: pointer;
|
77
|
+
outline: none;
|
78
|
+
opacity: 1;
|
79
|
+
user-select: none;
|
80
|
+
}
|
81
|
+
.bk-radio-button:nth-child(n+2) {
|
82
|
+
margin-left: -1px;
|
83
|
+
}
|
84
|
+
.bk-radio-button:first-child .bk-radio-button-text {
|
85
|
+
border-bottom-left-radius: 2px;
|
86
|
+
border-top-left-radius: 2px;
|
87
|
+
}
|
88
|
+
.bk-radio-button:last-child .bk-radio-button-text {
|
89
|
+
border-top-right-radius: 2px;
|
90
|
+
border-bottom-right-radius: 2px;
|
91
|
+
}
|
92
|
+
.bk-radio-button.is-checked {
|
93
|
+
z-index: 2;
|
94
|
+
}
|
95
|
+
.bk-radio-button.is-checked .bk-radio-button-text {
|
96
|
+
color: #fff;
|
97
|
+
background: #3a84ff;
|
98
|
+
border-color: #3a84ff;
|
99
|
+
}
|
100
|
+
.bk-radio-button.is-disabled {
|
101
|
+
z-index: 0;
|
102
|
+
color: #dcdee5;
|
103
|
+
cursor: not-allowed;
|
104
|
+
}
|
105
|
+
.bk-radio-button.is-disabled .bk-radio-button-text {
|
106
|
+
cursor: not-allowed;
|
107
|
+
background: #dcdee5;
|
108
|
+
border-color: #dcdee5;
|
109
|
+
}
|
110
|
+
.bk-radio-button.is-focus .bk-radio-button-text {
|
111
|
+
border-color: #3a84ff;
|
112
|
+
}
|
113
|
+
.bk-radio-button .bk-radio-button-input {
|
114
|
+
position: absolute;
|
115
|
+
z-index: -1;
|
116
|
+
outline: none;
|
117
|
+
opacity: 0;
|
118
|
+
}
|
119
|
+
.bk-radio-button .bk-radio-button-text {
|
120
|
+
height: 32px;
|
121
|
+
padding: 0 18px;
|
122
|
+
font-size: 12px;
|
123
|
+
font-style: normal;
|
124
|
+
font-weight: normal;
|
125
|
+
line-height: 32px;
|
126
|
+
color: #63656e;
|
127
|
+
text-align: center;
|
128
|
+
vertical-align: middle;
|
129
|
+
cursor: pointer;
|
130
|
+
border: 1px solid #63656e;
|
131
|
+
transition: all 0.3s;
|
132
|
+
}
|
133
|
+
.bk-radio-group {
|
134
|
+
display: inline-block;
|
135
|
+
font-size: 0;
|
136
|
+
line-height: 0;
|
137
|
+
letter-spacing: normal;
|
135
138
|
}
|
@@ -0,0 +1,77 @@
|
|
1
|
+
import type { ExtractPropTypes } from 'vue';
|
2
|
+
declare const radioProps: {
|
3
|
+
name: import("vue-types").VueTypeValidableDef<string> & {
|
4
|
+
default: string;
|
5
|
+
} & {
|
6
|
+
default: string;
|
7
|
+
};
|
8
|
+
label: import("vue-types").VueTypeDef<string | number | boolean> & {
|
9
|
+
required: true;
|
10
|
+
};
|
11
|
+
modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
|
12
|
+
default: string | number | boolean;
|
13
|
+
};
|
14
|
+
checked: import("vue-types").VueTypeValidableDef<boolean> & {
|
15
|
+
default: boolean;
|
16
|
+
} & {
|
17
|
+
default: boolean;
|
18
|
+
};
|
19
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
20
|
+
default: boolean;
|
21
|
+
} & {
|
22
|
+
default: boolean;
|
23
|
+
};
|
24
|
+
};
|
25
|
+
export declare type RadioProps = Readonly<ExtractPropTypes<typeof radioProps>>;
|
26
|
+
declare const _default: import("vue").DefineComponent<{
|
27
|
+
name: import("vue-types").VueTypeValidableDef<string> & {
|
28
|
+
default: string;
|
29
|
+
} & {
|
30
|
+
default: string;
|
31
|
+
};
|
32
|
+
label: import("vue-types").VueTypeDef<string | number | boolean> & {
|
33
|
+
required: true;
|
34
|
+
};
|
35
|
+
modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
|
36
|
+
default: string | number | boolean;
|
37
|
+
};
|
38
|
+
checked: import("vue-types").VueTypeValidableDef<boolean> & {
|
39
|
+
default: boolean;
|
40
|
+
} & {
|
41
|
+
default: boolean;
|
42
|
+
};
|
43
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
44
|
+
default: boolean;
|
45
|
+
} & {
|
46
|
+
default: boolean;
|
47
|
+
};
|
48
|
+
}, {
|
49
|
+
isFocus: import("vue").Ref<boolean>;
|
50
|
+
realName: import("vue").ComputedRef<string>;
|
51
|
+
isCheck: import("vue").ComputedRef<boolean>;
|
52
|
+
isDisabled: import("vue").ComputedRef<boolean>;
|
53
|
+
handleBlur: () => void;
|
54
|
+
handleFocus: () => void;
|
55
|
+
handlerChange: () => void;
|
56
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
57
|
+
name?: unknown;
|
58
|
+
label?: unknown;
|
59
|
+
modelValue?: unknown;
|
60
|
+
checked?: unknown;
|
61
|
+
disabled?: unknown;
|
62
|
+
} & {
|
63
|
+
label: string | number | boolean;
|
64
|
+
name: string;
|
65
|
+
disabled: boolean;
|
66
|
+
modelValue: string | number | boolean;
|
67
|
+
checked: boolean;
|
68
|
+
} & {}> & {
|
69
|
+
onChange?: (...args: any[]) => any;
|
70
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
71
|
+
}, {
|
72
|
+
name: string;
|
73
|
+
disabled: boolean;
|
74
|
+
modelValue: string | number | boolean;
|
75
|
+
checked: boolean;
|
76
|
+
}>;
|
77
|
+
export default _default;
|
package/lib/radio/radio.less
CHANGED
@@ -1,20 +1,173 @@
|
|
1
|
-
@import '../styles/themes/themes.less';
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
1
|
+
@import '../styles/themes/themes.less';
|
2
|
+
|
3
|
+
.bk-radio {
|
4
|
+
display: inline-block;
|
5
|
+
margin-right: 30px;
|
6
|
+
font-size: @font-size-base;
|
7
|
+
font-weight: normal;
|
8
|
+
line-height: 1;
|
9
|
+
letter-spacing: normal;
|
10
|
+
color: @default-color;
|
11
|
+
white-space: nowrap;
|
12
|
+
cursor: pointer;
|
13
|
+
outline: none;
|
14
|
+
user-select: none;
|
15
|
+
|
16
|
+
&:last-child {
|
17
|
+
margin-right: 0;
|
18
|
+
}
|
19
|
+
|
20
|
+
&.is-checked {
|
21
|
+
.bk-radio-input {
|
22
|
+
padding: 3px;
|
23
|
+
color: @primary-color;
|
24
|
+
background-color: @primary-color;
|
25
|
+
border-color: @primary-color;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
&.is-disabled {
|
30
|
+
color: @disable-color;
|
31
|
+
cursor: not-allowed;
|
32
|
+
|
33
|
+
&.is-checked {
|
34
|
+
.bk-radio-input {
|
35
|
+
background-color: @disable-color;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
.bk-radio-input {
|
40
|
+
cursor: not-allowed;
|
41
|
+
border-color: @disable-color;
|
42
|
+
}
|
43
|
+
|
44
|
+
.bk-radio-text {
|
45
|
+
cursor: not-allowed;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
&.is-focus {
|
50
|
+
.bk-radio-input {
|
51
|
+
border-color: @primary-color;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
.bk-radio-text {
|
56
|
+
font-size: 12px;
|
57
|
+
font-style: normal;
|
58
|
+
font-weight: normal;
|
59
|
+
color: @default-color;
|
60
|
+
vertical-align: middle;
|
61
|
+
cursor: pointer;
|
62
|
+
}
|
63
|
+
|
64
|
+
.bk-radio-input {
|
65
|
+
position: relative;
|
66
|
+
display: inline-block;
|
67
|
+
width: @line-height-base;
|
68
|
+
height: @line-height-base;
|
69
|
+
margin: 0 5px 0 0;
|
70
|
+
color: #fff;
|
71
|
+
vertical-align: middle;
|
72
|
+
cursor: pointer;
|
73
|
+
background-color: #fff;
|
74
|
+
border: @border-width-base @border-style-base @default-color;
|
75
|
+
border-radius: 50%;
|
76
|
+
outline: none;
|
77
|
+
visibility: visible;
|
78
|
+
transition: all .3s;
|
79
|
+
background-clip: content-box;
|
80
|
+
appearance: none;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
.bk-radio-button {
|
85
|
+
position: relative;
|
86
|
+
z-index: 1;
|
87
|
+
display: inline-block;
|
88
|
+
font-size: 0;
|
89
|
+
font-weight: normal;
|
90
|
+
line-height: 1;
|
91
|
+
letter-spacing: normal;
|
92
|
+
color: @default-color;
|
93
|
+
white-space: nowrap;
|
94
|
+
cursor: pointer;
|
95
|
+
outline: none;
|
96
|
+
opacity: 1;
|
97
|
+
user-select: none;
|
98
|
+
|
99
|
+
&:nth-child(n+2) {
|
100
|
+
margin-left: -1px;
|
101
|
+
}
|
102
|
+
|
103
|
+
&:first-child {
|
104
|
+
.bk-radio-button-text {
|
105
|
+
border-bottom-left-radius: @border-radius-base;
|
106
|
+
border-top-left-radius: @border-radius-base;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
&:last-child {
|
111
|
+
.bk-radio-button-text {
|
112
|
+
border-top-right-radius: @border-radius-base;
|
113
|
+
border-bottom-right-radius: @border-radius-base;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
&.is-checked {
|
118
|
+
z-index: 2;
|
119
|
+
|
120
|
+
.bk-radio-button-text {
|
121
|
+
color: #fff;
|
122
|
+
background: @primary-color;
|
123
|
+
border-color: @primary-color;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
&.is-disabled {
|
128
|
+
z-index: 0;
|
129
|
+
color: @disable-color;
|
130
|
+
cursor: not-allowed;
|
131
|
+
|
132
|
+
.bk-radio-button-text {
|
133
|
+
cursor: not-allowed;
|
134
|
+
background: @disable-color;
|
135
|
+
border-color: @disable-color;
|
136
|
+
}
|
137
|
+
}
|
138
|
+
|
139
|
+
&.is-focus {
|
140
|
+
.bk-radio-button-text {
|
141
|
+
border-color: @primary-color;
|
142
|
+
}
|
143
|
+
}
|
144
|
+
|
145
|
+
.bk-radio-button-input {
|
146
|
+
position: absolute;
|
147
|
+
z-index: -1;
|
148
|
+
outline: none;
|
149
|
+
opacity: 0;
|
150
|
+
}
|
151
|
+
|
152
|
+
.bk-radio-button-text {
|
153
|
+
height: @component-size-base;
|
154
|
+
padding: 0 18px;
|
155
|
+
font-size: 12px;
|
156
|
+
font-style: normal;
|
157
|
+
font-weight: normal;
|
158
|
+
line-height: @component-size-base;
|
159
|
+
color: @default-color;
|
160
|
+
text-align: center;
|
161
|
+
vertical-align: middle;
|
162
|
+
cursor: pointer;
|
163
|
+
border: @border-width-base @border-style-base @default-color;
|
164
|
+
transition: all .3s;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
|
168
|
+
.bk-radio-group {
|
169
|
+
display: inline-block;
|
170
|
+
font-size: 0;
|
171
|
+
line-height: 0;
|
172
|
+
letter-spacing: normal;
|
173
|
+
}
|