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,275 @@
|
|
1
|
+
declare const BkInput: {
|
2
|
+
new (...args: any[]): {
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
4
|
+
$data: {};
|
5
|
+
$props: Partial<{
|
6
|
+
placeholder: string;
|
7
|
+
prefix: string;
|
8
|
+
step: number;
|
9
|
+
disabled: boolean;
|
10
|
+
type: string;
|
11
|
+
readonly: boolean;
|
12
|
+
clearable: boolean;
|
13
|
+
max: number;
|
14
|
+
min: number;
|
15
|
+
maxlength: number;
|
16
|
+
prefixIcon: string;
|
17
|
+
suffixIcon: string;
|
18
|
+
suffix: string;
|
19
|
+
showWordLimit: boolean;
|
20
|
+
showControl: boolean;
|
21
|
+
precision: number;
|
22
|
+
}> & Omit<Readonly<{
|
23
|
+
type?: unknown;
|
24
|
+
clearable?: unknown;
|
25
|
+
disabled?: unknown;
|
26
|
+
readonly?: unknown;
|
27
|
+
placeholder?: unknown;
|
28
|
+
prefixIcon?: unknown;
|
29
|
+
suffixIcon?: unknown;
|
30
|
+
suffix?: unknown;
|
31
|
+
prefix?: unknown;
|
32
|
+
step?: unknown;
|
33
|
+
max?: unknown;
|
34
|
+
min?: unknown;
|
35
|
+
maxlength?: unknown;
|
36
|
+
showWordLimit?: unknown;
|
37
|
+
showControl?: unknown;
|
38
|
+
precision?: unknown;
|
39
|
+
modelValue?: unknown;
|
40
|
+
size?: unknown;
|
41
|
+
} & {
|
42
|
+
placeholder: string;
|
43
|
+
prefix: string;
|
44
|
+
step: number;
|
45
|
+
disabled: boolean;
|
46
|
+
type: string;
|
47
|
+
readonly: boolean;
|
48
|
+
clearable: boolean;
|
49
|
+
max: number;
|
50
|
+
min: number;
|
51
|
+
maxlength: number;
|
52
|
+
prefixIcon: string;
|
53
|
+
suffixIcon: string;
|
54
|
+
suffix: string;
|
55
|
+
showWordLimit: boolean;
|
56
|
+
showControl: boolean;
|
57
|
+
precision: number;
|
58
|
+
} & {
|
59
|
+
size?: string;
|
60
|
+
modelValue?: string | number;
|
61
|
+
}> & {
|
62
|
+
onFocus?: (...args: any[]) => any;
|
63
|
+
onBlur?: (...args: any[]) => any;
|
64
|
+
onChange?: (...args: any[]) => any;
|
65
|
+
onInput?: (...args: any[]) => any;
|
66
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
67
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placeholder" | "prefix" | "step" | "disabled" | "type" | "readonly" | "clearable" | "max" | "min" | "maxlength" | "prefixIcon" | "suffixIcon" | "suffix" | "showWordLimit" | "showControl" | "precision">;
|
68
|
+
$attrs: {
|
69
|
+
[x: string]: unknown;
|
70
|
+
};
|
71
|
+
$refs: {
|
72
|
+
[x: string]: unknown;
|
73
|
+
};
|
74
|
+
$slots: Readonly<{
|
75
|
+
[name: string]: import("vue").Slot;
|
76
|
+
}>;
|
77
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
78
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
79
|
+
$emit: (event: "input" | "focus" | "blur" | "change" | "update:modelValue", ...args: any[]) => void;
|
80
|
+
$el: any;
|
81
|
+
$options: import("vue").ComponentOptionsBase<Readonly<{
|
82
|
+
type?: unknown;
|
83
|
+
clearable?: unknown;
|
84
|
+
disabled?: unknown;
|
85
|
+
readonly?: unknown;
|
86
|
+
placeholder?: unknown;
|
87
|
+
prefixIcon?: unknown;
|
88
|
+
suffixIcon?: unknown;
|
89
|
+
suffix?: unknown;
|
90
|
+
prefix?: unknown;
|
91
|
+
step?: unknown;
|
92
|
+
max?: unknown;
|
93
|
+
min?: unknown;
|
94
|
+
maxlength?: unknown;
|
95
|
+
showWordLimit?: unknown;
|
96
|
+
showControl?: unknown;
|
97
|
+
precision?: unknown;
|
98
|
+
modelValue?: unknown;
|
99
|
+
size?: unknown;
|
100
|
+
} & {
|
101
|
+
placeholder: string;
|
102
|
+
prefix: string;
|
103
|
+
step: number;
|
104
|
+
disabled: boolean;
|
105
|
+
type: string;
|
106
|
+
readonly: boolean;
|
107
|
+
clearable: boolean;
|
108
|
+
max: number;
|
109
|
+
min: number;
|
110
|
+
maxlength: number;
|
111
|
+
prefixIcon: string;
|
112
|
+
suffixIcon: string;
|
113
|
+
suffix: string;
|
114
|
+
showWordLimit: boolean;
|
115
|
+
showControl: boolean;
|
116
|
+
precision: number;
|
117
|
+
} & {
|
118
|
+
size?: string;
|
119
|
+
modelValue?: string | number;
|
120
|
+
}> & {
|
121
|
+
onFocus?: (...args: any[]) => any;
|
122
|
+
onBlur?: (...args: any[]) => any;
|
123
|
+
onChange?: (...args: any[]) => any;
|
124
|
+
onInput?: (...args: any[]) => any;
|
125
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
126
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "focus" | "blur" | "change" | "update:modelValue")[], string, {
|
127
|
+
placeholder: string;
|
128
|
+
prefix: string;
|
129
|
+
step: number;
|
130
|
+
disabled: boolean;
|
131
|
+
type: string;
|
132
|
+
readonly: boolean;
|
133
|
+
clearable: boolean;
|
134
|
+
max: number;
|
135
|
+
min: number;
|
136
|
+
maxlength: number;
|
137
|
+
prefixIcon: string;
|
138
|
+
suffixIcon: string;
|
139
|
+
suffix: string;
|
140
|
+
showWordLimit: boolean;
|
141
|
+
showControl: boolean;
|
142
|
+
precision: number;
|
143
|
+
}> & {
|
144
|
+
beforeCreate?: (() => void) | (() => void)[];
|
145
|
+
created?: (() => void) | (() => void)[];
|
146
|
+
beforeMount?: (() => void) | (() => void)[];
|
147
|
+
mounted?: (() => void) | (() => void)[];
|
148
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
149
|
+
updated?: (() => void) | (() => void)[];
|
150
|
+
activated?: (() => void) | (() => void)[];
|
151
|
+
deactivated?: (() => void) | (() => void)[];
|
152
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
153
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
154
|
+
destroyed?: (() => void) | (() => void)[];
|
155
|
+
unmounted?: (() => void) | (() => void)[];
|
156
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
157
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
158
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
|
159
|
+
};
|
160
|
+
$forceUpdate: () => void;
|
161
|
+
$nextTick: typeof import("vue").nextTick;
|
162
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
163
|
+
} & Readonly<{
|
164
|
+
type?: unknown;
|
165
|
+
clearable?: unknown;
|
166
|
+
disabled?: unknown;
|
167
|
+
readonly?: unknown;
|
168
|
+
placeholder?: unknown;
|
169
|
+
prefixIcon?: unknown;
|
170
|
+
suffixIcon?: unknown;
|
171
|
+
suffix?: unknown;
|
172
|
+
prefix?: unknown;
|
173
|
+
step?: unknown;
|
174
|
+
max?: unknown;
|
175
|
+
min?: unknown;
|
176
|
+
maxlength?: unknown;
|
177
|
+
showWordLimit?: unknown;
|
178
|
+
showControl?: unknown;
|
179
|
+
precision?: unknown;
|
180
|
+
modelValue?: unknown;
|
181
|
+
size?: unknown;
|
182
|
+
} & {
|
183
|
+
placeholder: string;
|
184
|
+
prefix: string;
|
185
|
+
step: number;
|
186
|
+
disabled: boolean;
|
187
|
+
type: string;
|
188
|
+
readonly: boolean;
|
189
|
+
clearable: boolean;
|
190
|
+
max: number;
|
191
|
+
min: number;
|
192
|
+
maxlength: number;
|
193
|
+
prefixIcon: string;
|
194
|
+
suffixIcon: string;
|
195
|
+
suffix: string;
|
196
|
+
showWordLimit: boolean;
|
197
|
+
showControl: boolean;
|
198
|
+
precision: number;
|
199
|
+
} & {
|
200
|
+
size?: string;
|
201
|
+
modelValue?: string | number;
|
202
|
+
}> & {
|
203
|
+
onFocus?: (...args: any[]) => any;
|
204
|
+
onBlur?: (...args: any[]) => any;
|
205
|
+
onChange?: (...args: any[]) => any;
|
206
|
+
onInput?: (...args: any[]) => any;
|
207
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
208
|
+
} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
|
209
|
+
__isFragment?: never;
|
210
|
+
__isTeleport?: never;
|
211
|
+
__isSuspense?: never;
|
212
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
213
|
+
type?: unknown;
|
214
|
+
clearable?: unknown;
|
215
|
+
disabled?: unknown;
|
216
|
+
readonly?: unknown;
|
217
|
+
placeholder?: unknown;
|
218
|
+
prefixIcon?: unknown;
|
219
|
+
suffixIcon?: unknown;
|
220
|
+
suffix?: unknown;
|
221
|
+
prefix?: unknown;
|
222
|
+
step?: unknown;
|
223
|
+
max?: unknown;
|
224
|
+
min?: unknown;
|
225
|
+
maxlength?: unknown;
|
226
|
+
showWordLimit?: unknown;
|
227
|
+
showControl?: unknown;
|
228
|
+
precision?: unknown;
|
229
|
+
modelValue?: unknown;
|
230
|
+
size?: unknown;
|
231
|
+
} & {
|
232
|
+
placeholder: string;
|
233
|
+
prefix: string;
|
234
|
+
step: number;
|
235
|
+
disabled: boolean;
|
236
|
+
type: string;
|
237
|
+
readonly: boolean;
|
238
|
+
clearable: boolean;
|
239
|
+
max: number;
|
240
|
+
min: number;
|
241
|
+
maxlength: number;
|
242
|
+
prefixIcon: string;
|
243
|
+
suffixIcon: string;
|
244
|
+
suffix: string;
|
245
|
+
showWordLimit: boolean;
|
246
|
+
showControl: boolean;
|
247
|
+
precision: number;
|
248
|
+
} & {
|
249
|
+
size?: string;
|
250
|
+
modelValue?: string | number;
|
251
|
+
}> & {
|
252
|
+
onFocus?: (...args: any[]) => any;
|
253
|
+
onBlur?: (...args: any[]) => any;
|
254
|
+
onChange?: (...args: any[]) => any;
|
255
|
+
onInput?: (...args: any[]) => any;
|
256
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
257
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "focus" | "blur" | "change" | "update:modelValue")[], "input" | "focus" | "blur" | "change" | "update:modelValue", {
|
258
|
+
placeholder: string;
|
259
|
+
prefix: string;
|
260
|
+
step: number;
|
261
|
+
disabled: boolean;
|
262
|
+
type: string;
|
263
|
+
readonly: boolean;
|
264
|
+
clearable: boolean;
|
265
|
+
max: number;
|
266
|
+
min: number;
|
267
|
+
maxlength: number;
|
268
|
+
prefixIcon: string;
|
269
|
+
suffixIcon: string;
|
270
|
+
suffix: string;
|
271
|
+
showWordLimit: boolean;
|
272
|
+
showControl: boolean;
|
273
|
+
precision: number;
|
274
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
275
|
+
export default BkInput;
|
package/lib/input/index.js
CHANGED
@@ -1,60 +1,15 @@
|
|
1
|
-
(function (
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
Checkbox: Checkbox__default['default']
|
17
|
-
},
|
18
|
-
props: {
|
19
|
-
type: {
|
20
|
-
type: String,
|
21
|
-
default: 'text'
|
22
|
-
},
|
23
|
-
size: {
|
24
|
-
type: String,
|
25
|
-
default: 'normal',
|
26
|
-
validator: val => ['small', 'normal', 'large'].includes(val)
|
27
|
-
}
|
28
|
-
},
|
29
|
-
|
30
|
-
render() {
|
31
|
-
return vue.createVNode("div", {
|
32
|
-
"class": "bk-input"
|
33
|
-
}, [this.type === 'textarea' ? vue.createVNode("textarea", {
|
34
|
-
"class": "bk-input-textarea"
|
35
|
-
}, null) : vue.createVNode(vue.Fragment, null, [this.$slots.prepend ? vue.createVNode("div", {
|
36
|
-
"class": "bk-input-prepend"
|
37
|
-
}, [this.$slots.prepend()]) : undefined, vue.createVNode("input", {
|
38
|
-
"class": "bk-input-text",
|
39
|
-
"type": this.type
|
40
|
-
}, null), this.$slots.append ? vue.createVNode("div", {
|
41
|
-
"class": "bk-input-append"
|
42
|
-
}, [vue.createVNode(vue.resolveComponent("bk-checkbox"), null, null), vue.createVNode(vue.resolveComponent("bk-button"), {
|
43
|
-
"theme": "primary",
|
44
|
-
"size": "small"
|
45
|
-
}, {
|
46
|
-
default: () => [vue.createTextVNode("ss")]
|
47
|
-
}), this.$slots.append()]) : undefined])]);
|
48
|
-
}
|
49
|
-
|
50
|
-
});
|
51
|
-
|
52
|
-
Input.install = Vue => {
|
53
|
-
Vue.component(Input.name, Input);
|
54
|
-
};
|
55
|
-
|
56
|
-
exports.default = Input;
|
57
|
-
|
58
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
59
|
-
|
60
|
-
})));
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared"),require("@bkui-vue/icon")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","@bkui-vue/icon"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared,e["@bkui-vue/icon/icons"])}(this,(function(e,t,o,n){"use strict";function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l={exports:{}};!function(e){e.exports=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},e.exports.default=e.exports,e.exports.__esModule=!0}(l);var a=r(l.exports);
|
2
|
+
/*! *****************************************************************************
|
3
|
+
Copyright (c) Microsoft Corporation.
|
4
|
+
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
6
|
+
purpose with or without fee is hereby granted.
|
7
|
+
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
9
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
10
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
11
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
12
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
13
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
14
|
+
PERFORMANCE OF THIS SOFTWARE.
|
15
|
+
***************************************************************************** */var i={type:o.PropTypes.string.def("text"),clearable:o.PropTypes.bool,disabled:o.PropTypes.bool,readonly:o.PropTypes.bool,placeholder:o.PropTypes.string,prefixIcon:o.PropTypes.string,suffixIcon:o.PropTypes.string,suffix:o.PropTypes.string,prefix:o.PropTypes.string,step:o.PropTypes.integer,max:o.PropTypes.integer,min:o.PropTypes.integer,maxlength:o.PropTypes.integer,showWordLimit:o.PropTypes.bool,showControl:o.PropTypes.bool.def(!0),precision:o.PropTypes.number.def(0).validate((function(e){return e>=0&&e<20})),modelValue:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]),size:o.PropTypes.size()},u=t.defineComponent({name:"BkInput",inheritAttrs:!1,emits:["update:modelValue","focus","blur","change","input"],props:i,setup:function(e,r){var l=t.ref(!1),i="bk-input",u=r.attrs,s=u.class,p=u.style,c=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o}(u,["class","style"]),d=t.computed((function(){var t;return o.classes((a(t={},"".concat(i,"--").concat(e.size),!!e.size),a(t,"is-focused",l.value),a(t,"is-readonly",e.readonly),a(t,"is-disabled",e.disabled),a(t,"".concat(s),!!s),t),i)})),f={search:function(){return t.createVNode(n.Search,null,null)},password:function(){return t.createVNode(n.Eye,{onClick:k},null)}},m=I("suffix-icon"),v=t.computed((function(){var o=f[e.type];return x.value?t.createVNode(n.Unvisible,{onClick:k,class:m},null):o?t.createVNode(o,{class:m},null):null})),y=t.computed((function(){return"number"===e.type})),b=t.computed((function(){return Math.floor(e.maxlength)})),x=t.ref(!1);function g(){r.emit("update:modelValue",""),r.emit("change","")}function h(e){l.value=!0,r.emit("focus",e)}function V(e){l.value=!1,r.emit("blur",e)}function P(e){r.emit("update:modelValue",y.value?+e.target.value:e.target.value),r.emit("input",e.target.value)}function T(e){r.emit("change",e.target.value,e)}function N(t){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Number.isInteger(e.precision)?e.precision:0,r=parseFloat(e.modelValue.toString()),l=Number.isInteger(t)?t:1,a=r+(o?l:-1*l);return Number.isInteger(e.max)&&(a=Math.min(a,e.max)),Number.isInteger(e.min)&&(a=Math.max(a,e.min)),+a.toFixed(n)}function w(){var t=N(parseInt(String(e.step),10));r.emit("update:modelValue",t)}function O(){var t=N(parseInt(String(e.step),10),!1);r.emit("update:modelValue",t)}function I(e){return"".concat(i,"--").concat(e)}function k(){x.value=!x.value}return function(){var o,l,a,u,s,f;return t.createVNode("div",{class:d.value,style:p},[null!==(a=null===(l=null===(o=r.slots)||void 0===o?void 0:o.prefix)||void 0===l?void 0:l.call(o))&&void 0!==a?a:e.prefix&&t.createVNode("div",{class:I("prefix-area")},[t.createVNode("span",{class:I("prefix-area--text")},[e.prefix])]),t.createVNode("input",t.mergeProps(c,{class:"".concat(i,"--text"),value:e.modelValue,type:x.value&&"password"===e.type?"text":e.type,maxlength:e.maxlength,step:e.step,max:e.max,min:e.min,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled,onInput:P,onFocus:h,onBlur:V,onChange:T}),null),e.clearable&&!!e.modelValue&&t.createVNode(n.Close,{onClick:g,class:m},null),v.value,"number"==typeof e.maxlength&&e.showWordLimit&&t.createVNode("p",{class:I("max-length")},[e.modelValue.toString().length,t.createTextVNode("/"),t.createVNode("span",null,[b.value])]),y.value&&e.showControl&&t.createVNode("div",{class:I("number-control")},[t.createVNode(n.DownSmall,{onClick:w},null),t.createVNode(n.DownSmall,{onClick:O},null)]),null!==(f=null===(s=null===(u=r.slots)||void 0===u?void 0:u.suffix)||void 0===s?void 0:s.call(u))&&void 0!==f?f:e.suffix&&t.createVNode("div",{class:I("suffix-area")},[t.createVNode("span",{class:I("suffix-area--text")},[e.suffix])])])}}}),s=o.withInstall(u);e.default=s,Object.defineProperty(e,"__esModule",{value:!0})}));
|
package/lib/input/input.css
CHANGED
@@ -1,166 +1,132 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
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; */
|
1
|
+
@keyframes loading-scale-animate {
|
2
|
+
0% {
|
3
|
+
transform: scale(1);
|
4
|
+
}
|
5
|
+
100% {
|
6
|
+
transform: scale(0.6);
|
7
|
+
}
|
8
|
+
}
|
9
|
+
@keyframes fade {
|
10
|
+
100% {
|
11
|
+
background-color: transparent;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
.bk-fade-transtion .bk-fade-enter-active,
|
15
|
+
.bk-fade-transtion .bk-fade-leave-active {
|
16
|
+
transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);
|
17
|
+
}
|
18
|
+
.bk-fade-transtion .bk-fade-enter,
|
19
|
+
.bk-fade-transtion .bk-fade-leave-to {
|
20
|
+
opacity: 0;
|
21
|
+
}
|
120
22
|
.bk-input {
|
121
23
|
display: flex;
|
122
|
-
align-items:
|
24
|
+
align-items: stretch;
|
25
|
+
height: 32px;
|
123
26
|
font-size: 12px;
|
27
|
+
border: 1px solid #c4c6cc;
|
28
|
+
border-radius: 2px;
|
29
|
+
transition: all 0.3s;
|
124
30
|
}
|
125
|
-
.bk-input-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
31
|
+
.bk-input--suffix-icon {
|
32
|
+
padding-right: 10px;
|
33
|
+
font-size: 16px;
|
34
|
+
color: #c4c6cc;
|
35
|
+
align-self: center;
|
36
|
+
}
|
37
|
+
.bk-input--large {
|
38
|
+
height: 38px;
|
39
|
+
font-size: 16px;
|
40
|
+
}
|
41
|
+
.bk-input--small {
|
42
|
+
height: 26px;
|
43
|
+
font-size: 12px;
|
44
|
+
}
|
45
|
+
.bk-input.is-focused:not(.is-readonly) {
|
46
|
+
border-color: #3a84ff;
|
47
|
+
outline: 0;
|
48
|
+
box-shadow: 0px 0px 3px 0px #a3c5fd;
|
49
|
+
}
|
50
|
+
.bk-input.is-disabled {
|
51
|
+
cursor: not-allowed;
|
52
|
+
background-color: #fafbfd;
|
53
|
+
opacity: 1;
|
54
|
+
}
|
55
|
+
.bk-input--prefix-area,
|
56
|
+
.bk-input--suffix-area {
|
131
57
|
display: flex;
|
132
|
-
align-items: center;
|
133
|
-
flex: 1;
|
134
|
-
height: 32px;
|
135
58
|
padding: 0 10px;
|
136
59
|
color: #63656e;
|
60
|
+
background-color: #f4f6fa;
|
61
|
+
border-right: 1px solid #c4c6cc;
|
62
|
+
align-items: center;
|
63
|
+
}
|
64
|
+
.bk-input--suffix-area {
|
65
|
+
border: 0;
|
66
|
+
border-left: 1px solid #c4c6cc;
|
67
|
+
}
|
68
|
+
.bk-input--max-length {
|
69
|
+
align-self: center;
|
70
|
+
padding-right: 10px;
|
71
|
+
}
|
72
|
+
.bk-input--max-length span {
|
73
|
+
color: #979ba5;
|
74
|
+
}
|
75
|
+
.bk-input--text {
|
76
|
+
padding: 0 10px;
|
137
77
|
font-size: 12px;
|
138
|
-
line-height:
|
78
|
+
line-height: 1;
|
79
|
+
color: #63656e;
|
139
80
|
background-color: white;
|
140
81
|
background-image: none;
|
141
|
-
border:
|
142
|
-
|
82
|
+
border: none;
|
83
|
+
outline: none;
|
84
|
+
box-sizing: border-box;
|
143
85
|
transition: all 0.3s;
|
86
|
+
flex: 1;
|
144
87
|
}
|
145
|
-
.bk-input-
|
146
|
-
|
147
|
-
|
88
|
+
.bk-input--text[type='search']::-webkit-search-decoration,
|
89
|
+
.bk-input--text[type='search']::-webkit-search-cancel-button,
|
90
|
+
.bk-input--text[type='search']::-webkit-search-results-button,
|
91
|
+
.bk-input--text[type='search']::-webkit-search-results-decoration {
|
92
|
+
appearance: none;
|
148
93
|
}
|
149
|
-
.bk-input
|
150
|
-
|
151
|
-
|
152
|
-
|
94
|
+
.bk-input--text [type=search]::-ms-clear {
|
95
|
+
display: none;
|
96
|
+
width: 0;
|
97
|
+
height: 0;
|
153
98
|
}
|
154
|
-
.bk-input
|
155
|
-
|
156
|
-
|
157
|
-
|
99
|
+
.bk-input--text [type=search]::-ms-reveal {
|
100
|
+
display: none;
|
101
|
+
width: 0;
|
102
|
+
height: 0;
|
103
|
+
}
|
104
|
+
.bk-input--text[type='number']::-webkit-inner-spin-button,
|
105
|
+
.bk-input--text[type='number']::-webkit-outer-spin-button {
|
106
|
+
margin: 0;
|
107
|
+
appearance: none;
|
108
|
+
}
|
109
|
+
.bk-input--text::placeholder {
|
110
|
+
color: #c4c6cc;
|
158
111
|
}
|
159
|
-
.bk-input-
|
112
|
+
.bk-input--number-control {
|
113
|
+
width: 26px;
|
114
|
+
height: 100%;
|
115
|
+
font-size: 0;
|
116
|
+
flex-direction: column;
|
117
|
+
}
|
118
|
+
.bk-input--number-control span {
|
119
|
+
display: block;
|
120
|
+
height: 50%;
|
121
|
+
overflow: hidden;
|
122
|
+
color: #c4c6cc;
|
123
|
+
}
|
124
|
+
.bk-input--number-control svg {
|
160
125
|
font-size: 16px;
|
161
|
-
height: 38px;
|
162
126
|
}
|
163
|
-
.bk-input-
|
164
|
-
|
165
|
-
|
127
|
+
.bk-input--number-control span:first-child {
|
128
|
+
transform: rotate(180deg);
|
129
|
+
}
|
130
|
+
.bk-input--number-control span:hover {
|
131
|
+
background-color: #f4f6fa;
|
166
132
|
}
|