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,185 @@
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
|
+
export declare const inputType: {
|
3
|
+
type: import("vue-types").VueTypeValidableDef<string> & {
|
4
|
+
default: string;
|
5
|
+
} & {
|
6
|
+
default: string;
|
7
|
+
};
|
8
|
+
clearable: import("vue-types").VueTypeValidableDef<boolean> & {
|
9
|
+
default: boolean;
|
10
|
+
};
|
11
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
12
|
+
default: boolean;
|
13
|
+
};
|
14
|
+
readonly: import("vue-types").VueTypeValidableDef<boolean> & {
|
15
|
+
default: boolean;
|
16
|
+
};
|
17
|
+
placeholder: import("vue-types").VueTypeValidableDef<string> & {
|
18
|
+
default: string;
|
19
|
+
};
|
20
|
+
prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
21
|
+
default: string;
|
22
|
+
};
|
23
|
+
suffixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
24
|
+
default: string;
|
25
|
+
};
|
26
|
+
suffix: import("vue-types").VueTypeValidableDef<string> & {
|
27
|
+
default: string;
|
28
|
+
};
|
29
|
+
prefix: import("vue-types").VueTypeValidableDef<string> & {
|
30
|
+
default: string;
|
31
|
+
};
|
32
|
+
step: import("vue-types").VueTypeDef<number> & {
|
33
|
+
default: number;
|
34
|
+
};
|
35
|
+
max: import("vue-types").VueTypeDef<number> & {
|
36
|
+
default: number;
|
37
|
+
};
|
38
|
+
min: import("vue-types").VueTypeDef<number> & {
|
39
|
+
default: number;
|
40
|
+
};
|
41
|
+
maxlength: import("vue-types").VueTypeDef<number> & {
|
42
|
+
default: number;
|
43
|
+
};
|
44
|
+
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
45
|
+
default: boolean;
|
46
|
+
};
|
47
|
+
showControl: import("vue-types").VueTypeValidableDef<boolean> & {
|
48
|
+
default: boolean;
|
49
|
+
} & {
|
50
|
+
default: boolean;
|
51
|
+
};
|
52
|
+
precision: import("vue-types").VueTypeValidableDef<number> & {
|
53
|
+
default: number;
|
54
|
+
} & {
|
55
|
+
default: number;
|
56
|
+
} & {
|
57
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
58
|
+
};
|
59
|
+
modelValue: import("vue-types").VueTypeDef<string | number>;
|
60
|
+
size: import("vue-types").VueTypeDef<string>;
|
61
|
+
};
|
62
|
+
export declare type InputType = ExtractPropTypes<typeof inputType>;
|
63
|
+
declare const _default: import("vue").DefineComponent<{
|
64
|
+
type: import("vue-types").VueTypeValidableDef<string> & {
|
65
|
+
default: string;
|
66
|
+
} & {
|
67
|
+
default: string;
|
68
|
+
};
|
69
|
+
clearable: import("vue-types").VueTypeValidableDef<boolean> & {
|
70
|
+
default: boolean;
|
71
|
+
};
|
72
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
73
|
+
default: boolean;
|
74
|
+
};
|
75
|
+
readonly: import("vue-types").VueTypeValidableDef<boolean> & {
|
76
|
+
default: boolean;
|
77
|
+
};
|
78
|
+
placeholder: import("vue-types").VueTypeValidableDef<string> & {
|
79
|
+
default: string;
|
80
|
+
};
|
81
|
+
prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
82
|
+
default: string;
|
83
|
+
};
|
84
|
+
suffixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
85
|
+
default: string;
|
86
|
+
};
|
87
|
+
suffix: import("vue-types").VueTypeValidableDef<string> & {
|
88
|
+
default: string;
|
89
|
+
};
|
90
|
+
prefix: import("vue-types").VueTypeValidableDef<string> & {
|
91
|
+
default: string;
|
92
|
+
};
|
93
|
+
step: import("vue-types").VueTypeDef<number> & {
|
94
|
+
default: number;
|
95
|
+
};
|
96
|
+
max: import("vue-types").VueTypeDef<number> & {
|
97
|
+
default: number;
|
98
|
+
};
|
99
|
+
min: import("vue-types").VueTypeDef<number> & {
|
100
|
+
default: number;
|
101
|
+
};
|
102
|
+
maxlength: import("vue-types").VueTypeDef<number> & {
|
103
|
+
default: number;
|
104
|
+
};
|
105
|
+
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
106
|
+
default: boolean;
|
107
|
+
};
|
108
|
+
showControl: import("vue-types").VueTypeValidableDef<boolean> & {
|
109
|
+
default: boolean;
|
110
|
+
} & {
|
111
|
+
default: boolean;
|
112
|
+
};
|
113
|
+
precision: import("vue-types").VueTypeValidableDef<number> & {
|
114
|
+
default: number;
|
115
|
+
} & {
|
116
|
+
default: number;
|
117
|
+
} & {
|
118
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
119
|
+
};
|
120
|
+
modelValue: import("vue-types").VueTypeDef<string | number>;
|
121
|
+
size: import("vue-types").VueTypeDef<string>;
|
122
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "focus" | "blur" | "change" | "update:modelValue")[], "input" | "focus" | "blur" | "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
123
|
+
type?: unknown;
|
124
|
+
clearable?: unknown;
|
125
|
+
disabled?: unknown;
|
126
|
+
readonly?: unknown;
|
127
|
+
placeholder?: unknown;
|
128
|
+
prefixIcon?: unknown;
|
129
|
+
suffixIcon?: unknown;
|
130
|
+
suffix?: unknown;
|
131
|
+
prefix?: unknown;
|
132
|
+
step?: unknown;
|
133
|
+
max?: unknown;
|
134
|
+
min?: unknown;
|
135
|
+
maxlength?: unknown;
|
136
|
+
showWordLimit?: unknown;
|
137
|
+
showControl?: unknown;
|
138
|
+
precision?: unknown;
|
139
|
+
modelValue?: unknown;
|
140
|
+
size?: unknown;
|
141
|
+
} & {
|
142
|
+
placeholder: string;
|
143
|
+
prefix: string;
|
144
|
+
step: number;
|
145
|
+
disabled: boolean;
|
146
|
+
type: string;
|
147
|
+
readonly: boolean;
|
148
|
+
clearable: boolean;
|
149
|
+
max: number;
|
150
|
+
min: number;
|
151
|
+
maxlength: number;
|
152
|
+
prefixIcon: string;
|
153
|
+
suffixIcon: string;
|
154
|
+
suffix: string;
|
155
|
+
showWordLimit: boolean;
|
156
|
+
showControl: boolean;
|
157
|
+
precision: number;
|
158
|
+
} & {
|
159
|
+
size?: string;
|
160
|
+
modelValue?: string | number;
|
161
|
+
}> & {
|
162
|
+
onFocus?: (...args: any[]) => any;
|
163
|
+
onBlur?: (...args: any[]) => any;
|
164
|
+
onChange?: (...args: any[]) => any;
|
165
|
+
onInput?: (...args: any[]) => any;
|
166
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
167
|
+
}, {
|
168
|
+
placeholder: string;
|
169
|
+
prefix: string;
|
170
|
+
step: number;
|
171
|
+
disabled: boolean;
|
172
|
+
type: string;
|
173
|
+
readonly: boolean;
|
174
|
+
clearable: boolean;
|
175
|
+
max: number;
|
176
|
+
min: number;
|
177
|
+
maxlength: number;
|
178
|
+
prefixIcon: string;
|
179
|
+
suffixIcon: string;
|
180
|
+
suffix: string;
|
181
|
+
showWordLimit: boolean;
|
182
|
+
showControl: boolean;
|
183
|
+
precision: number;
|
184
|
+
}>;
|
185
|
+
export default _default;
|
package/lib/input/input.less
CHANGED
@@ -1,75 +1,142 @@
|
|
1
|
+
|
1
2
|
@import '../styles/themes/themes.less';
|
2
3
|
@import '../styles/mixins/mixins.less';
|
3
4
|
|
4
|
-
.input-lg() {
|
5
|
-
.component-size(@component-size-large, @font-size-large);
|
6
|
-
}
|
7
|
-
|
8
|
-
.input-sm() {
|
9
|
-
.component-size(@component-size-small, @font-size-base);
|
10
|
-
}
|
11
|
-
|
12
5
|
.active(@color: @primary-color) {
|
13
|
-
border-color: @primary-color;
|
6
|
+
border-color: @primary-color;
|
14
7
|
outline: 0;
|
8
|
+
box-shadow: 0px 0px 3px 0px @input-shadow-color;
|
15
9
|
}
|
16
10
|
|
17
11
|
.disabled() {
|
18
|
-
background-color: @input-disabled-bg;
|
19
12
|
cursor: not-allowed;
|
13
|
+
background-color: @input-disabled-bg;
|
20
14
|
opacity: 1;
|
21
15
|
}
|
22
16
|
|
23
|
-
|
24
|
-
position: relative;
|
17
|
+
.@{bk-prefix}-input {
|
25
18
|
display: flex;
|
26
|
-
align-items:
|
27
|
-
flex: 1;
|
19
|
+
align-items: stretch;
|
28
20
|
height: @input-height-base;
|
29
|
-
padding: 0 10px;
|
30
|
-
color: @input-color;
|
31
21
|
font-size: @font-size-base;
|
32
|
-
line-height: @line-height-base;
|
33
|
-
background-color: @input-bg;
|
34
|
-
background-image: none;
|
35
22
|
border: @border-width-base @border-style-base @input-border-color;
|
36
23
|
border-radius: @border-radius-base;
|
37
24
|
transition: all .3s;
|
38
25
|
|
39
|
-
|
40
|
-
|
26
|
+
&--suffix-icon {
|
27
|
+
padding-right: @input-horizontal-padding;
|
28
|
+
font-size: @input-icon-size;
|
29
|
+
color: @light-gray;
|
30
|
+
align-self: center;
|
41
31
|
}
|
42
32
|
|
43
|
-
|
44
|
-
.
|
33
|
+
&--large {
|
34
|
+
.component-size(@component-size-large, @font-size-large);
|
35
|
+
}
|
36
|
+
|
37
|
+
&--small {
|
38
|
+
.component-size(@component-size-small, @font-size-base);
|
45
39
|
}
|
46
40
|
|
47
|
-
|
41
|
+
&.is-focused:not(.is-readonly) {
|
42
|
+
.active();
|
43
|
+
}
|
44
|
+
|
45
|
+
&.is-disabled {
|
48
46
|
.disabled();
|
49
47
|
}
|
50
48
|
|
51
|
-
|
52
|
-
|
49
|
+
&--prefix-area,
|
50
|
+
&--suffix-area {
|
51
|
+
display: flex;
|
52
|
+
padding: 0 @input-horizontal-padding;
|
53
|
+
color: @default-color;
|
54
|
+
background-color: @input-block-color;
|
55
|
+
border-right: 1px solid @input-border-color;
|
56
|
+
align-items: center;
|
53
57
|
}
|
54
58
|
|
55
|
-
|
56
|
-
|
59
|
+
&--suffix-area {
|
60
|
+
border: 0;
|
61
|
+
border-left: 1px solid @input-border-color;
|
57
62
|
}
|
58
|
-
}
|
59
63
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
font-size: @font-size-base;
|
64
|
+
&--max-length {
|
65
|
+
align-self: center;
|
66
|
+
padding-right: @input-horizontal-padding;
|
64
67
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
+
span {
|
69
|
+
color: @input-maxlength-color;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
&--text {
|
74
|
+
padding: 0 @input-horizontal-padding;
|
75
|
+
font-size: @font-size-base;
|
76
|
+
line-height: 1;
|
77
|
+
color: @input-color;
|
78
|
+
background-color: @input-bg;
|
79
|
+
background-image: none;
|
80
|
+
border: none;
|
68
81
|
outline: none;
|
69
|
-
resize: none;
|
70
|
-
height: @component-size-base;
|
71
82
|
box-sizing: border-box;
|
72
|
-
|
73
|
-
|
83
|
+
transition: all .3s;
|
84
|
+
flex: 1;
|
85
|
+
|
86
|
+
//Chrome
|
87
|
+
&[type='search']::-webkit-search-decoration,
|
88
|
+
&[type='search']::-webkit-search-cancel-button,
|
89
|
+
&[type='search']::-webkit-search-results-button,
|
90
|
+
&[type='search']::-webkit-search-results-decoration {
|
91
|
+
appearance: none;
|
92
|
+
}
|
93
|
+
// IE
|
94
|
+
[type=search]::-ms-clear {
|
95
|
+
display: none;
|
96
|
+
width: 0;
|
97
|
+
height: 0;
|
98
|
+
}
|
99
|
+
|
100
|
+
[type=search]::-ms-reveal {
|
101
|
+
display: none;
|
102
|
+
width: 0;
|
103
|
+
height: 0;
|
104
|
+
}
|
105
|
+
|
106
|
+
&[type='number']::-webkit-inner-spin-button,
|
107
|
+
&[type='number']::-webkit-outer-spin-button {
|
108
|
+
margin: 0;
|
109
|
+
appearance: none;
|
110
|
+
}
|
111
|
+
|
112
|
+
&::placeholder {
|
113
|
+
color: @light-gray;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
&--number-control {
|
118
|
+
width: 26px;
|
119
|
+
height: 100%;
|
120
|
+
font-size: 0;
|
121
|
+
flex-direction: column;
|
122
|
+
|
123
|
+
span {
|
124
|
+
display: block;
|
125
|
+
height: 50%;
|
126
|
+
overflow: hidden;
|
127
|
+
color: @light-gray;
|
128
|
+
}
|
129
|
+
|
130
|
+
svg {
|
131
|
+
font-size: @input-icon-size;
|
132
|
+
}
|
133
|
+
|
134
|
+
span:first-child {
|
135
|
+
transform: rotate(180deg);
|
136
|
+
}
|
137
|
+
|
138
|
+
span:hover {
|
139
|
+
background-color: #f4f6fa;
|
140
|
+
}
|
74
141
|
}
|
75
142
|
}
|
@@ -0,0 +1,218 @@
|
|
1
|
+
:root {
|
2
|
+
--bk-prefix: bk;
|
3
|
+
--primary-color: #3a84ff;
|
4
|
+
--success-color: #2dcb56;
|
5
|
+
--warning-color: #ff9c01;
|
6
|
+
--danger-color: #ea3636;
|
7
|
+
--default-color: #63656e;
|
8
|
+
--gray-color: #979ba5;
|
9
|
+
--light-gray: #c4c6cc;
|
10
|
+
--white-color: white;
|
11
|
+
--disable-color: #dcdee5;
|
12
|
+
--font-size-base: 12px;
|
13
|
+
--font-size-medium: 14px;
|
14
|
+
--font-size-large: 16px;
|
15
|
+
--line-height-base: 16px;
|
16
|
+
--line-height-medium: 16px;
|
17
|
+
--line-height-large: 18px;
|
18
|
+
--component-size-small: 26px;
|
19
|
+
--component-size-base: 32px;
|
20
|
+
--component-size-large: 38px;
|
21
|
+
--border-width-base: 1px;
|
22
|
+
--border-style-base: solid;
|
23
|
+
--border-radius-base: 2px;
|
24
|
+
--input-disabled-bg: #fafbfd;
|
25
|
+
--input-disabled-border: var(--disable-color);
|
26
|
+
--input-height-base: var(--component-size-base);
|
27
|
+
--input-color: var(--default-color);
|
28
|
+
--input-bg: white;
|
29
|
+
--input-border-color: var(--light-gray);
|
30
|
+
--input-broder-radius: 3px;
|
31
|
+
--input-shadow-color: #a3c5fd;
|
32
|
+
--input-horizontal-padding: 10px;
|
33
|
+
--input-block-color: #f4f6fa;
|
34
|
+
--input-icon-size: var(--font-size-large);
|
35
|
+
--input-maxlength-color: #979ba5;
|
36
|
+
--button-primary-hover-color: #5594fa;
|
37
|
+
--button-danger-hover-color: #ff5656;
|
38
|
+
--button-success-hover-color: #45e35f;
|
39
|
+
--button-warning-hover-color: #ffb848;
|
40
|
+
--button-default-hover-border-color: #979ba5;
|
41
|
+
--button-primary-active-color: #2c77f4;
|
42
|
+
--button-danger-active-color: #db2626;
|
43
|
+
--button-success-active-color: #1ab943;
|
44
|
+
--button-warning-active-color: #eb9000;
|
45
|
+
--fixed-navbar-background: #fff;
|
46
|
+
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
47
|
+
--switch-default-color: #fff;
|
48
|
+
--switch-grey-color: #c4c6cc;
|
49
|
+
--breadcrumb-black-color: #979ba5;
|
50
|
+
--breadcrumb-primary-hover-color: #0082ff;
|
51
|
+
--breadcrumb-fn-main-color: #63656e;
|
52
|
+
--link-default-hover-color: #979ba5;
|
53
|
+
--link-primary-hover-color: #699df4;
|
54
|
+
--link-success-hover-color: #45e35f;
|
55
|
+
--link-warning-hover-color: #ffb848;
|
56
|
+
--link-danger-hover-color: #ff5656;
|
57
|
+
--link-default-disabled-color: #dcdee5;
|
58
|
+
--link-primary-disabled-color: #a3c5fd;
|
59
|
+
--link-success-disabled-color: #94f5a4;
|
60
|
+
--link-warning-disabled-color: #ffd695;
|
61
|
+
--link-danger-disabled-color: #fd9c9c;
|
62
|
+
--message-color: var(--default-color);
|
63
|
+
--message-primary-bg-color: #f0f8ff;
|
64
|
+
--message-primary-border-color: #e1ecff;
|
65
|
+
--message-warning-bg-color: #fff4e2;
|
66
|
+
--message-warning-border-color: #ffe8c3;
|
67
|
+
--message-success-bg-color: #f2fff4;
|
68
|
+
--message-success-border-color: #dcffe2;
|
69
|
+
--message-danger-bg-color: #ffeded;
|
70
|
+
--message-danger-border-color: #ffdddd;
|
71
|
+
--slider-default-bg: #dcdee5;
|
72
|
+
--slider-disable-bar-bg: #979ba5;
|
73
|
+
--menu-bg-color: #182132;
|
74
|
+
--submenu-bg-color: #151d2c;
|
75
|
+
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
76
|
+
--menu-color: #96a2b9;
|
77
|
+
--menu-group-color: var(--default-color);
|
78
|
+
--menu-width: 260px;
|
79
|
+
--menu-collapse-width: 60px;
|
80
|
+
--menu-active-color: white;
|
81
|
+
--nav-header-bg-color: #182132;
|
82
|
+
--nav-bg-color: #182132;
|
83
|
+
--date-picker-disabled-bg: #fafbfd;
|
84
|
+
--date-picker-dropdown-mb: 4px;
|
85
|
+
--date-picker-dropdown-bg: #fff;
|
86
|
+
}
|
87
|
+
@keyframes loading-scale-animate {
|
88
|
+
0% {
|
89
|
+
transform: scale(1);
|
90
|
+
}
|
91
|
+
100% {
|
92
|
+
transform: scale(0.6);
|
93
|
+
}
|
94
|
+
}
|
95
|
+
@keyframes fade {
|
96
|
+
100% {
|
97
|
+
background-color: transparent;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
.bk-fade-transtion .bk-fade-enter-active,
|
101
|
+
.bk-fade-transtion .bk-fade-leave-active {
|
102
|
+
transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);
|
103
|
+
}
|
104
|
+
.bk-fade-transtion .bk-fade-enter,
|
105
|
+
.bk-fade-transtion .bk-fade-leave-to {
|
106
|
+
opacity: 0;
|
107
|
+
}
|
108
|
+
.bk-input {
|
109
|
+
display: flex;
|
110
|
+
align-items: stretch;
|
111
|
+
height: var(--input-height-base);
|
112
|
+
font-size: var(--font-size-base);
|
113
|
+
border: var(--border-width-base) var(--border-style-base) var(--input-border-color);
|
114
|
+
border-radius: var(--border-radius-base);
|
115
|
+
transition: all 0.3s;
|
116
|
+
}
|
117
|
+
.bk-input--suffix-icon {
|
118
|
+
padding-right: var(--input-horizontal-padding);
|
119
|
+
font-size: var(--input-icon-size);
|
120
|
+
color: var(--light-gray);
|
121
|
+
align-self: center;
|
122
|
+
}
|
123
|
+
.bk-input--large {
|
124
|
+
height: var(--component-size-large);
|
125
|
+
font-size: var(--font-size-large);
|
126
|
+
}
|
127
|
+
.bk-input--small {
|
128
|
+
height: var(--component-size-small);
|
129
|
+
font-size: var(--font-size-base);
|
130
|
+
}
|
131
|
+
.bk-input.is-focused:not(.is-readonly) {
|
132
|
+
border-color: var(--primary-color);
|
133
|
+
outline: 0;
|
134
|
+
box-shadow: 0px 0px 3px 0px var(--input-shadow-color);
|
135
|
+
}
|
136
|
+
.bk-input.is-disabled {
|
137
|
+
cursor: not-allowed;
|
138
|
+
background-color: var(--input-disabled-bg);
|
139
|
+
opacity: 1;
|
140
|
+
}
|
141
|
+
.bk-input--prefix-area,
|
142
|
+
.bk-input--suffix-area {
|
143
|
+
display: flex;
|
144
|
+
padding: 0 var(--input-horizontal-padding);
|
145
|
+
color: var(--default-color);
|
146
|
+
background-color: var(--input-block-color);
|
147
|
+
border-right: 1px solid var(--input-border-color);
|
148
|
+
align-items: center;
|
149
|
+
}
|
150
|
+
.bk-input--suffix-area {
|
151
|
+
border: 0;
|
152
|
+
border-left: 1px solid var(--input-border-color);
|
153
|
+
}
|
154
|
+
.bk-input--max-length {
|
155
|
+
align-self: center;
|
156
|
+
padding-right: var(--input-horizontal-padding);
|
157
|
+
}
|
158
|
+
.bk-input--max-length span {
|
159
|
+
color: var(--input-maxlength-color);
|
160
|
+
}
|
161
|
+
.bk-input--text {
|
162
|
+
padding: 0 var(--input-horizontal-padding);
|
163
|
+
font-size: var(--font-size-base);
|
164
|
+
line-height: 1;
|
165
|
+
color: var(--input-color);
|
166
|
+
background-color: var(--input-bg);
|
167
|
+
background-image: none;
|
168
|
+
border: none;
|
169
|
+
outline: none;
|
170
|
+
box-sizing: border-box;
|
171
|
+
transition: all 0.3s;
|
172
|
+
flex: 1;
|
173
|
+
}
|
174
|
+
.bk-input--text[type='search']::-webkit-search-decoration,
|
175
|
+
.bk-input--text[type='search']::-webkit-search-cancel-button,
|
176
|
+
.bk-input--text[type='search']::-webkit-search-results-button,
|
177
|
+
.bk-input--text[type='search']::-webkit-search-results-decoration {
|
178
|
+
appearance: none;
|
179
|
+
}
|
180
|
+
.bk-input--text [type=search]::-ms-clear {
|
181
|
+
display: none;
|
182
|
+
width: 0;
|
183
|
+
height: 0;
|
184
|
+
}
|
185
|
+
.bk-input--text [type=search]::-ms-reveal {
|
186
|
+
display: none;
|
187
|
+
width: 0;
|
188
|
+
height: 0;
|
189
|
+
}
|
190
|
+
.bk-input--text[type='number']::-webkit-inner-spin-button,
|
191
|
+
.bk-input--text[type='number']::-webkit-outer-spin-button {
|
192
|
+
margin: 0;
|
193
|
+
appearance: none;
|
194
|
+
}
|
195
|
+
.bk-input--text::placeholder {
|
196
|
+
color: var(--light-gray);
|
197
|
+
}
|
198
|
+
.bk-input--number-control {
|
199
|
+
width: 26px;
|
200
|
+
height: 100%;
|
201
|
+
font-size: 0;
|
202
|
+
flex-direction: column;
|
203
|
+
}
|
204
|
+
.bk-input--number-control span {
|
205
|
+
display: block;
|
206
|
+
height: 50%;
|
207
|
+
overflow: hidden;
|
208
|
+
color: var(--light-gray);
|
209
|
+
}
|
210
|
+
.bk-input--number-control svg {
|
211
|
+
font-size: var(--input-icon-size);
|
212
|
+
}
|
213
|
+
.bk-input--number-control span:first-child {
|
214
|
+
transform: rotate(180deg);
|
215
|
+
}
|
216
|
+
.bk-input--number-control span:hover {
|
217
|
+
background-color: #f4f6fa;
|
218
|
+
}
|
@@ -0,0 +1,116 @@
|
|
1
|
+
declare const BkLink: {
|
2
|
+
new (...args: any[]): {
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
4
|
+
$data: {};
|
5
|
+
$props: Partial<{
|
6
|
+
theme: string;
|
7
|
+
target: string;
|
8
|
+
underline: boolean;
|
9
|
+
disabled: boolean;
|
10
|
+
href: string;
|
11
|
+
}> & Omit<Readonly<{
|
12
|
+
theme?: unknown;
|
13
|
+
href?: unknown;
|
14
|
+
disabled?: unknown;
|
15
|
+
underline?: unknown;
|
16
|
+
target?: unknown;
|
17
|
+
} & {
|
18
|
+
theme: string;
|
19
|
+
target: string;
|
20
|
+
underline: boolean;
|
21
|
+
disabled: boolean;
|
22
|
+
href: string;
|
23
|
+
} & {}> & {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "target" | "underline" | "disabled" | "href">;
|
24
|
+
$attrs: {
|
25
|
+
[x: string]: unknown;
|
26
|
+
};
|
27
|
+
$refs: {
|
28
|
+
[x: string]: unknown;
|
29
|
+
};
|
30
|
+
$slots: Readonly<{
|
31
|
+
[name: string]: import("vue").Slot;
|
32
|
+
}>;
|
33
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
34
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
35
|
+
$emit: (event: string, ...args: any[]) => void;
|
36
|
+
$el: any;
|
37
|
+
$options: import("vue").ComponentOptionsBase<Readonly<{
|
38
|
+
theme?: unknown;
|
39
|
+
href?: unknown;
|
40
|
+
disabled?: unknown;
|
41
|
+
underline?: unknown;
|
42
|
+
target?: unknown;
|
43
|
+
} & {
|
44
|
+
theme: string;
|
45
|
+
target: string;
|
46
|
+
underline: boolean;
|
47
|
+
disabled: boolean;
|
48
|
+
href: string;
|
49
|
+
} & {}> & {}, {
|
50
|
+
handleClick: (event: Event) => boolean;
|
51
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
52
|
+
theme: string;
|
53
|
+
target: string;
|
54
|
+
underline: boolean;
|
55
|
+
disabled: boolean;
|
56
|
+
href: string;
|
57
|
+
}> & {
|
58
|
+
beforeCreate?: (() => void) | (() => void)[];
|
59
|
+
created?: (() => void) | (() => void)[];
|
60
|
+
beforeMount?: (() => void) | (() => void)[];
|
61
|
+
mounted?: (() => void) | (() => void)[];
|
62
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
63
|
+
updated?: (() => void) | (() => void)[];
|
64
|
+
activated?: (() => void) | (() => void)[];
|
65
|
+
deactivated?: (() => void) | (() => void)[];
|
66
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
67
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
68
|
+
destroyed?: (() => void) | (() => void)[];
|
69
|
+
unmounted?: (() => void) | (() => void)[];
|
70
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
71
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
72
|
+
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)[];
|
73
|
+
};
|
74
|
+
$forceUpdate: () => void;
|
75
|
+
$nextTick: typeof import("vue").nextTick;
|
76
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
77
|
+
} & Readonly<{
|
78
|
+
theme?: unknown;
|
79
|
+
href?: unknown;
|
80
|
+
disabled?: unknown;
|
81
|
+
underline?: unknown;
|
82
|
+
target?: unknown;
|
83
|
+
} & {
|
84
|
+
theme: string;
|
85
|
+
target: string;
|
86
|
+
underline: boolean;
|
87
|
+
disabled: boolean;
|
88
|
+
href: string;
|
89
|
+
} & {}> & {} & import("vue").ShallowUnwrapRef<{
|
90
|
+
handleClick: (event: Event) => boolean;
|
91
|
+
}> & {} & {} & import("vue").ComponentCustomProperties;
|
92
|
+
__isFragment?: never;
|
93
|
+
__isTeleport?: never;
|
94
|
+
__isSuspense?: never;
|
95
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
96
|
+
theme?: unknown;
|
97
|
+
href?: unknown;
|
98
|
+
disabled?: unknown;
|
99
|
+
underline?: unknown;
|
100
|
+
target?: unknown;
|
101
|
+
} & {
|
102
|
+
theme: string;
|
103
|
+
target: string;
|
104
|
+
underline: boolean;
|
105
|
+
disabled: boolean;
|
106
|
+
href: string;
|
107
|
+
} & {}> & {}, {
|
108
|
+
handleClick: (event: Event) => boolean;
|
109
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
110
|
+
theme: string;
|
111
|
+
target: string;
|
112
|
+
underline: boolean;
|
113
|
+
disabled: boolean;
|
114
|
+
href: string;
|
115
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
116
|
+
export default BkLink;
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,t,i){"use strict";var n=t.defineComponent({name:"BkLink",props:{theme:i.PropTypes.theme(["danger","success","primary","warning","default"]).def("default"),href:i.PropTypes.string.def(""),disabled:i.PropTypes.bool.def(!1),underline:i.PropTypes.bool.def(!1),target:i.PropTypes.string.def("_self")},setup:function(e,t){var i=t.emit;return{handleClick:function(t){if(e.disabled)return t.preventDefault(),!1;i("click",t)}}},render:function(){var e,n,r=i.classes({"is-disabled":this.disabled,"has-underline":this.underline},"".concat(this.theme," bk-link"));return t.createVNode("a",{href:this.href,target:this.target,class:r,onClick:this.handleClick},[t.createVNode("span",null,[null===(n=(e=this.$slots).default)||void 0===n?void 0:n.call(e)])])}}),r=i.withInstall(n);e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}));
|