bkui-vue 0.0.1-beta.10 → 0.0.1-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bkui-vue.cjs.js +5628 -472
- package/dist/bkui-vue.esm.js +5620 -474
- package/dist/bkui-vue.umd.js +5628 -472
- package/dist/style.css +1858 -16
- package/lib/alert/alert.variable.css +16 -0
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.variable.css +16 -0
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.variable.css +16 -0
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.variable.css +16 -0
- package/lib/breadcrumb/index.d.ts +1 -1
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button.d.ts +12 -12
- package/lib/button/button.less +6 -6
- package/lib/button/button.variable.css +16 -0
- package/lib/button/index.d.ts +16 -19
- package/lib/button/index.js +1 -1
- package/lib/card/card.variable.css +16 -0
- package/lib/card/index.js +1 -1
- package/lib/checkbox/checkbox.variable.css +16 -0
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/collapse/collapse.css +8 -0
- package/lib/collapse/collapse.less +10 -0
- package/lib/collapse/collapse.variable.css +8 -0
- package/lib/collapse/index.js +1 -1
- package/lib/components.d.ts +6 -1
- 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/index.js +1 -1
- package/lib/directives/index.d.ts +1 -0
- package/lib/directives/index.js +14 -14
- 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.variable.css +16 -0
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/fixed-navbar.variable.css +16 -0
- package/lib/fixed-navbar/index.js +1 -1
- 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/circle.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/error.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/index.d.ts +27 -0
- package/lib/icon/index.js +1 -1
- 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/share.d.ts +4 -0
- package/lib/icon/success.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/warn.d.ts +4 -0
- package/lib/index.d.ts +1 -0
- package/lib/input/index.d.ts +36 -36
- package/lib/input/index.js +1 -1
- package/lib/input/input.d.ts +10 -10
- package/lib/input/input.variable.css +16 -0
- package/lib/link/index.js +1 -1
- package/lib/link/link.variable.css +16 -0
- package/lib/loading/index.d.ts +21 -4
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.d.ts +13 -2
- package/lib/loading/loading.variable.css +16 -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 +1 -1
- package/lib/message/index.js +1 -1
- package/lib/message/message.css +17 -0
- package/lib/message/message.less +18 -0
- package/lib/message/message.variable.css +33 -0
- package/lib/message/messageConstructor.d.ts +12 -6
- package/lib/modal/index.js +1 -1
- 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 +19 -19
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +2 -3
- package/lib/popover/popover.d.ts +8 -8
- package/lib/popover/popover.less +2 -3
- package/lib/popover/popover.variable.css +18 -3
- package/lib/preset.d.ts +2 -3
- package/lib/process/index.d.ts +145 -0
- package/lib/process/index.js +15 -0
- package/lib/process/process.css +139 -0
- package/lib/process/process.d.ts +116 -0
- package/lib/process/process.less +179 -0
- package/lib/process/process.variable.css +225 -0
- package/lib/progress/index.d.ts +4 -4
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.d.ts +1 -1
- package/lib/progress/progress.variable.css +16 -0
- package/lib/radio/index.d.ts +2 -2
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio.css +6 -0
- package/lib/radio/radio.less +7 -0
- package/lib/radio/radio.variable.css +22 -0
- package/lib/rate/index.js +1 -1
- package/lib/rate/star.d.ts +2 -2
- package/lib/select/common.d.ts +4 -3
- package/lib/select/index.d.ts +211 -60
- package/lib/select/index.js +15 -1
- package/lib/select/option.d.ts +2 -2
- package/lib/select/optionGroup.d.ts +115 -0
- package/lib/select/select.css +52 -12
- package/lib/select/select.d.ts +24 -21
- package/lib/select/select.less +73 -7
- package/lib/select/select.variable.css +68 -12
- package/lib/shared/bk-popover.d.ts +11 -1
- package/lib/shared/index.d.ts +7 -0
- package/lib/shared/index.js +1 -1
- package/lib/shared/vue-types.d.ts +1 -0
- package/lib/shared/z-index-manager.d.ts +6 -1
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.variable.css +16 -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 +15 -15
- package/lib/steps/index.js +2 -2
- package/lib/steps/steps.css +1 -1
- package/lib/steps/steps.d.ts +4 -4
- package/lib/steps/steps.less +1 -1
- package/lib/steps/steps.variable.css +17 -1
- package/lib/styles/index.d.ts +12 -0
- package/lib/styles/index.js +1 -1
- 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 +9 -0
- 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 +26 -1
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.variable.css +16 -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 +71 -60
- package/lib/table/index.js +1 -1
- 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 +22 -63
- package/lib/table/table.less +63 -1
- package/lib/table/table.variable.css +60 -0
- package/lib/table/utils.d.ts +22 -0
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.variable.css +16 -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 +9 -1
- package/lib/message/message.d.ts +0 -2
- package/lib/table/common.d.ts +0 -3
- package/lib/table/table-layout.d.ts +0 -14
- package/lib/table/type.d.ts +0 -12
@@ -0,0 +1,116 @@
|
|
1
|
+
/**
|
2
|
+
* Tencent is pleased to support the open source community by making
|
3
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
4
|
+
*
|
5
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
6
|
+
*
|
7
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
8
|
+
*
|
9
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
10
|
+
*
|
11
|
+
* ---------------------------------------------------
|
12
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
13
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
14
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
15
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
16
|
+
*
|
17
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
18
|
+
* the Software.
|
19
|
+
*
|
20
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
21
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
23
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
24
|
+
* IN THE SOFTWARE.
|
25
|
+
*/
|
26
|
+
import { ExtractPropTypes } from 'vue';
|
27
|
+
declare const processProps: {
|
28
|
+
list: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
29
|
+
default: () => unknown[];
|
30
|
+
} & {
|
31
|
+
default: () => unknown[];
|
32
|
+
};
|
33
|
+
controllable: import("vue-types").VueTypeValidableDef<boolean> & {
|
34
|
+
default: boolean;
|
35
|
+
} & {
|
36
|
+
default: boolean;
|
37
|
+
};
|
38
|
+
showSteps: import("vue-types").VueTypeValidableDef<boolean> & {
|
39
|
+
default: boolean;
|
40
|
+
} & {
|
41
|
+
default: boolean;
|
42
|
+
};
|
43
|
+
curProcess: import("vue-types").VueTypeValidableDef<number> & {
|
44
|
+
default: number;
|
45
|
+
} & {
|
46
|
+
default: number;
|
47
|
+
};
|
48
|
+
displayKey: import("vue-types").VueTypeValidableDef<string> & {
|
49
|
+
default: string;
|
50
|
+
} & {
|
51
|
+
default: string;
|
52
|
+
};
|
53
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
54
|
+
default: string;
|
55
|
+
};
|
56
|
+
};
|
57
|
+
export declare type ProcessPropType = ExtractPropTypes<typeof processProps>;
|
58
|
+
declare const _default: import("vue").DefineComponent<{
|
59
|
+
list: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
60
|
+
default: () => unknown[];
|
61
|
+
} & {
|
62
|
+
default: () => unknown[];
|
63
|
+
};
|
64
|
+
controllable: import("vue-types").VueTypeValidableDef<boolean> & {
|
65
|
+
default: boolean;
|
66
|
+
} & {
|
67
|
+
default: boolean;
|
68
|
+
};
|
69
|
+
showSteps: import("vue-types").VueTypeValidableDef<boolean> & {
|
70
|
+
default: boolean;
|
71
|
+
} & {
|
72
|
+
default: boolean;
|
73
|
+
};
|
74
|
+
curProcess: import("vue-types").VueTypeValidableDef<number> & {
|
75
|
+
default: number;
|
76
|
+
} & {
|
77
|
+
default: number;
|
78
|
+
};
|
79
|
+
displayKey: import("vue-types").VueTypeValidableDef<string> & {
|
80
|
+
default: string;
|
81
|
+
} & {
|
82
|
+
default: string;
|
83
|
+
};
|
84
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
85
|
+
default: string;
|
86
|
+
};
|
87
|
+
}, {
|
88
|
+
defaultProcessList: import("vue").Ref<any[]>;
|
89
|
+
paddingBottom: import("vue").Ref<number>;
|
90
|
+
jumpTo: (index: any) => Promise<void>;
|
91
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:curProcess")[], "click" | "update:curProcess", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
92
|
+
list?: unknown;
|
93
|
+
controllable?: unknown;
|
94
|
+
showSteps?: unknown;
|
95
|
+
curProcess?: unknown;
|
96
|
+
displayKey?: unknown;
|
97
|
+
extCls?: unknown;
|
98
|
+
} & {
|
99
|
+
list: unknown[];
|
100
|
+
extCls: string;
|
101
|
+
controllable: boolean;
|
102
|
+
showSteps: boolean;
|
103
|
+
curProcess: number;
|
104
|
+
displayKey: string;
|
105
|
+
} & {}> & {
|
106
|
+
onClick?: (...args: any[]) => any;
|
107
|
+
"onUpdate:curProcess"?: (...args: any[]) => any;
|
108
|
+
}, {
|
109
|
+
list: unknown[];
|
110
|
+
extCls: string;
|
111
|
+
controllable: boolean;
|
112
|
+
showSteps: boolean;
|
113
|
+
curProcess: number;
|
114
|
+
displayKey: string;
|
115
|
+
}>;
|
116
|
+
export default _default;
|
@@ -0,0 +1,179 @@
|
|
1
|
+
@import '../styles/themes/themes.less';
|
2
|
+
|
3
|
+
@themeSelectors: primary, warning, success, danger;
|
4
|
+
|
5
|
+
* {
|
6
|
+
box-sizing: border-box;
|
7
|
+
}
|
8
|
+
|
9
|
+
.bk-process {
|
10
|
+
position: relative;
|
11
|
+
display: flex;
|
12
|
+
|
13
|
+
@keyframes loadingCircle {
|
14
|
+
100% {
|
15
|
+
transform: rotate(360deg);
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
.bk-process-toggle {
|
20
|
+
position: relative;
|
21
|
+
left: 15px;
|
22
|
+
width: 24px;
|
23
|
+
height: 24px;
|
24
|
+
font-size: 12px;
|
25
|
+
line-height: 24px;
|
26
|
+
color: @default-color;
|
27
|
+
text-align: center;
|
28
|
+
text-decoration: none;
|
29
|
+
border: 1px solid @light-gray;
|
30
|
+
border-radius: 50%;
|
31
|
+
|
32
|
+
&.active,
|
33
|
+
&:hover {
|
34
|
+
color: #fff;
|
35
|
+
background: @primary-color;
|
36
|
+
border-color: @primary-color;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
.bk-process-icon {
|
41
|
+
&-done {
|
42
|
+
display: inline-block;
|
43
|
+
height: 20px;
|
44
|
+
font-size: 21px;
|
45
|
+
line-height: 20px;
|
46
|
+
}
|
47
|
+
|
48
|
+
}
|
49
|
+
|
50
|
+
.bk-icon {
|
51
|
+
&.icon-loading {
|
52
|
+
display: inline-block;
|
53
|
+
font-size: @font-size-medium;
|
54
|
+
animation: loadingCircle 1s infinite linear;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
> ul {
|
61
|
+
-ms-display: flex;
|
62
|
+
-moz-display: flex;
|
63
|
+
-webkit-display: flex;
|
64
|
+
display: table;
|
65
|
+
display: flex;
|
66
|
+
width: 100%;
|
67
|
+
padding: 0;
|
68
|
+
margin: auto;
|
69
|
+
}
|
70
|
+
|
71
|
+
li {
|
72
|
+
position: relative;
|
73
|
+
display: table-cell;
|
74
|
+
height: 24px;
|
75
|
+
font-family: PingFang SC,Microsoft Yahei,Helvetica,Aria;
|
76
|
+
font-size: 12px;
|
77
|
+
line-height: 24px;
|
78
|
+
color: @default-color;
|
79
|
+
text-align: center;
|
80
|
+
background-color: #f0f1f5;
|
81
|
+
flex: 1;
|
82
|
+
|
83
|
+
i {
|
84
|
+
display: none;
|
85
|
+
}
|
86
|
+
|
87
|
+
&:first-of-type {
|
88
|
+
border-radius: 13px 0 0 13px;
|
89
|
+
}
|
90
|
+
|
91
|
+
&:last-of-type {
|
92
|
+
border-radius: 0 13px 13px 0;
|
93
|
+
|
94
|
+
&::before {
|
95
|
+
display: none;
|
96
|
+
}
|
97
|
+
|
98
|
+
&::after {
|
99
|
+
display: none;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
&::before {
|
104
|
+
position: absolute;
|
105
|
+
top: 0;
|
106
|
+
right: -25px;
|
107
|
+
z-index: 1;
|
108
|
+
width: 0;
|
109
|
+
height: 0;
|
110
|
+
border: 12px solid;
|
111
|
+
border-color: transparent transparent transparent #fff;
|
112
|
+
content: '';
|
113
|
+
}
|
114
|
+
|
115
|
+
&::after {
|
116
|
+
position: absolute;
|
117
|
+
top: 0;
|
118
|
+
right: -23px;
|
119
|
+
z-index: 1;
|
120
|
+
width: 0;
|
121
|
+
height: 0;
|
122
|
+
border: 12px solid;
|
123
|
+
border-color: transparent transparent transparent #f0f1f5;
|
124
|
+
content: '';
|
125
|
+
}
|
126
|
+
|
127
|
+
.bk-process-step {
|
128
|
+
font-size: 12px;
|
129
|
+
// color: $fnMainColor;
|
130
|
+
|
131
|
+
dd {
|
132
|
+
margin: 0;
|
133
|
+
line-height: 32px;
|
134
|
+
}
|
135
|
+
|
136
|
+
i {
|
137
|
+
display: none;
|
138
|
+
}
|
139
|
+
|
140
|
+
.success {
|
141
|
+
i {
|
142
|
+
display: inline-block;
|
143
|
+
color: @success-color;
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
.steps-loading {
|
148
|
+
top: -2px;
|
149
|
+
}
|
150
|
+
}
|
151
|
+
|
152
|
+
&.success {
|
153
|
+
color: #fff;
|
154
|
+
background: @success-color;
|
155
|
+
|
156
|
+
&::after {
|
157
|
+
border-color: transparent transparent transparent @success-color;
|
158
|
+
}
|
159
|
+
|
160
|
+
.icon-done {
|
161
|
+
font-size: 22px;
|
162
|
+
line-height: 18px;
|
163
|
+
}
|
164
|
+
}
|
165
|
+
|
166
|
+
&.current {
|
167
|
+
color: #fff;
|
168
|
+
background: @primary-color;
|
169
|
+
|
170
|
+
&::after {
|
171
|
+
border-color: transparent transparent transparent @primary-color;
|
172
|
+
}
|
173
|
+
|
174
|
+
>.bk-spin-loading {
|
175
|
+
vertical-align: -3px;
|
176
|
+
}
|
177
|
+
}
|
178
|
+
}
|
179
|
+
}
|
@@ -0,0 +1,225 @@
|
|
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
|
+
* {
|
88
|
+
box-sizing: border-box;
|
89
|
+
}
|
90
|
+
.bk-process {
|
91
|
+
position: relative;
|
92
|
+
display: flex;
|
93
|
+
}
|
94
|
+
@keyframes loadingCircle {
|
95
|
+
100% {
|
96
|
+
transform: rotate(360deg);
|
97
|
+
}
|
98
|
+
}
|
99
|
+
.bk-process .bk-process-toggle {
|
100
|
+
position: relative;
|
101
|
+
left: 15px;
|
102
|
+
width: 24px;
|
103
|
+
height: 24px;
|
104
|
+
font-size: 12px;
|
105
|
+
line-height: 24px;
|
106
|
+
color: var(--default-color);
|
107
|
+
text-align: center;
|
108
|
+
text-decoration: none;
|
109
|
+
border: 1px solid var(--light-gray);
|
110
|
+
border-radius: 50%;
|
111
|
+
}
|
112
|
+
.bk-process .bk-process-toggle.active,
|
113
|
+
.bk-process .bk-process-toggle:hover {
|
114
|
+
color: #fff;
|
115
|
+
background: var(--primary-color);
|
116
|
+
border-color: var(--primary-color);
|
117
|
+
}
|
118
|
+
.bk-process .bk-process-icon-done {
|
119
|
+
display: inline-block;
|
120
|
+
height: 20px;
|
121
|
+
font-size: 21px;
|
122
|
+
line-height: 20px;
|
123
|
+
}
|
124
|
+
.bk-process .bk-icon.icon-loading {
|
125
|
+
display: inline-block;
|
126
|
+
font-size: var(--font-size-medium);
|
127
|
+
animation: loadingCircle 1s infinite linear;
|
128
|
+
}
|
129
|
+
.bk-process > ul {
|
130
|
+
-ms-display: flex;
|
131
|
+
-moz-display: flex;
|
132
|
+
-webkit-display: flex;
|
133
|
+
display: table;
|
134
|
+
display: flex;
|
135
|
+
width: 100%;
|
136
|
+
padding: 0;
|
137
|
+
margin: auto;
|
138
|
+
}
|
139
|
+
.bk-process li {
|
140
|
+
position: relative;
|
141
|
+
display: table-cell;
|
142
|
+
height: 24px;
|
143
|
+
font-family: PingFang SC,Microsoft Yahei,Helvetica,Aria;
|
144
|
+
font-size: 12px;
|
145
|
+
line-height: 24px;
|
146
|
+
color: var(--default-color);
|
147
|
+
text-align: center;
|
148
|
+
background-color: #f0f1f5;
|
149
|
+
flex: 1;
|
150
|
+
}
|
151
|
+
.bk-process li i {
|
152
|
+
display: none;
|
153
|
+
}
|
154
|
+
.bk-process li:first-of-type {
|
155
|
+
border-radius: 13px 0 0 13px;
|
156
|
+
}
|
157
|
+
.bk-process li:last-of-type {
|
158
|
+
border-radius: 0 13px 13px 0;
|
159
|
+
}
|
160
|
+
.bk-process li:last-of-type::before {
|
161
|
+
display: none;
|
162
|
+
}
|
163
|
+
.bk-process li:last-of-type::after {
|
164
|
+
display: none;
|
165
|
+
}
|
166
|
+
.bk-process li::before {
|
167
|
+
position: absolute;
|
168
|
+
top: 0;
|
169
|
+
right: -25px;
|
170
|
+
z-index: 1;
|
171
|
+
width: 0;
|
172
|
+
height: 0;
|
173
|
+
border: 12px solid;
|
174
|
+
border-color: transparent transparent transparent #fff;
|
175
|
+
content: '';
|
176
|
+
}
|
177
|
+
.bk-process li::after {
|
178
|
+
position: absolute;
|
179
|
+
top: 0;
|
180
|
+
right: -23px;
|
181
|
+
z-index: 1;
|
182
|
+
width: 0;
|
183
|
+
height: 0;
|
184
|
+
border: 12px solid;
|
185
|
+
border-color: transparent transparent transparent #f0f1f5;
|
186
|
+
content: '';
|
187
|
+
}
|
188
|
+
.bk-process li .bk-process-step {
|
189
|
+
font-size: 12px;
|
190
|
+
}
|
191
|
+
.bk-process li .bk-process-step dd {
|
192
|
+
margin: 0;
|
193
|
+
line-height: 32px;
|
194
|
+
}
|
195
|
+
.bk-process li .bk-process-step i {
|
196
|
+
display: none;
|
197
|
+
}
|
198
|
+
.bk-process li .bk-process-step .success i {
|
199
|
+
display: inline-block;
|
200
|
+
color: var(--success-color);
|
201
|
+
}
|
202
|
+
.bk-process li .bk-process-step .steps-loading {
|
203
|
+
top: -2px;
|
204
|
+
}
|
205
|
+
.bk-process li.success {
|
206
|
+
color: #fff;
|
207
|
+
background: var(--success-color);
|
208
|
+
}
|
209
|
+
.bk-process li.success::after {
|
210
|
+
border-color: transparent transparent transparent var(--success-color);
|
211
|
+
}
|
212
|
+
.bk-process li.success .icon-done {
|
213
|
+
font-size: 22px;
|
214
|
+
line-height: 18px;
|
215
|
+
}
|
216
|
+
.bk-process li.current {
|
217
|
+
color: #fff;
|
218
|
+
background: var(--primary-color);
|
219
|
+
}
|
220
|
+
.bk-process li.current::after {
|
221
|
+
border-color: transparent transparent transparent var(--primary-color);
|
222
|
+
}
|
223
|
+
.bk-process li.current > .bk-spin-loading {
|
224
|
+
vertical-align: -3px;
|
225
|
+
}
|
package/lib/progress/index.d.ts
CHANGED
@@ -8,6 +8,7 @@ declare const BkProgress: {
|
|
8
8
|
theme: string;
|
9
9
|
extCls: string;
|
10
10
|
type: string;
|
11
|
+
format: (...args: any[]) => any;
|
11
12
|
percent: number;
|
12
13
|
strokeWidth: number;
|
13
14
|
strokeLinecap: string;
|
@@ -16,7 +17,6 @@ declare const BkProgress: {
|
|
16
17
|
};
|
17
18
|
showText: boolean;
|
18
19
|
textInside: boolean;
|
19
|
-
format: (...args: any[]) => any;
|
20
20
|
}> & Omit<Readonly<{
|
21
21
|
extCls?: unknown;
|
22
22
|
type?: unknown;
|
@@ -48,7 +48,7 @@ declare const BkProgress: {
|
|
48
48
|
} & {
|
49
49
|
size?: string;
|
50
50
|
format?: (...args: any[]) => any;
|
51
|
-
}> & {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "width" | "color" | "theme" | "extCls" | "type" | "percent" | "strokeWidth" | "strokeLinecap" | "titleStyle" | "showText" | "textInside"
|
51
|
+
}> & {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "width" | "color" | "theme" | "extCls" | "type" | "format" | "percent" | "strokeWidth" | "strokeLinecap" | "titleStyle" | "showText" | "textInside">;
|
52
52
|
$attrs: {
|
53
53
|
[x: string]: unknown;
|
54
54
|
};
|
@@ -104,6 +104,7 @@ declare const BkProgress: {
|
|
104
104
|
theme: string;
|
105
105
|
extCls: string;
|
106
106
|
type: string;
|
107
|
+
format: (...args: any[]) => any;
|
107
108
|
percent: number;
|
108
109
|
strokeWidth: number;
|
109
110
|
strokeLinecap: string;
|
@@ -112,7 +113,6 @@ declare const BkProgress: {
|
|
112
113
|
};
|
113
114
|
showText: boolean;
|
114
115
|
textInside: boolean;
|
115
|
-
format: (...args: any[]) => any;
|
116
116
|
}> & {
|
117
117
|
beforeCreate?: (() => void) | (() => void)[];
|
118
118
|
created?: (() => void) | (() => void)[];
|
@@ -215,6 +215,7 @@ declare const BkProgress: {
|
|
215
215
|
theme: string;
|
216
216
|
extCls: string;
|
217
217
|
type: string;
|
218
|
+
format: (...args: any[]) => any;
|
218
219
|
percent: number;
|
219
220
|
strokeWidth: number;
|
220
221
|
strokeLinecap: string;
|
@@ -223,6 +224,5 @@ declare const BkProgress: {
|
|
223
224
|
};
|
224
225
|
showText: boolean;
|
225
226
|
textInside: boolean;
|
226
|
-
format: (...args: any[]) => any;
|
227
227
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
228
228
|
export default BkProgress;
|
package/lib/progress/index.js
CHANGED
@@ -1 +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,r){"use strict";function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var s={exports:{}};!function(e){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.default=e.exports,e.exports.__esModule=!0}(s);var n=o(s.exports),c=function(e,r){var o=r.attrs,s=r.slots,c=o.percent,a=o.strokeWidth,i=o.size,l=o.color,p=o.titleStyle,d=o.showText,u=o.textInside,f=o.theme,h={height:"".concat(a,"px"),lineHeight:"".concat(a,"px")},y={width:"".concat(c,"%"),background:l,animationDuration:"3s"},b=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return(d||s.default)&&(e&&u||!e&&!u)?null==s?void 0:s.default():null};return t.createVNode("div",{class:"progress-outer"},[t.createVNode("div",{class:"bk-progress-".concat(i||"normal"," progress-bar"),style:h},[t.createVNode("div",{style:y,class:n({"progress-inner":!0},"bk-".concat(f),!0)},[t.createVNode("div",{class:"inner-text",style:p},[b()])])]),b(!1)])},a=function(e,r){var o=r.attrs,s=r.slots,n=o.width,c=o.percent,a=o.strokeWidth,i=o.color,l=o.strokeLinecap,p=o.theme,d=o.type,u=o.titleStyle,f=a||6,h=n||126,y={width:"number"==typeof h?"".concat(h,"px"):h,height:"number"==typeof h?"".concat(h,"px"):h,fontSize:"".concat(.15*h+6,"px")},b=50-f/2,x="dashboard"===d,v=2*Math.PI*b,g=x?.75:1,k="".concat(-1*v*(1-g)/2,"px"),P={strokeDasharray:"".concat(v*g,"px, ").concat(v,"px"),strokeDashoffset:k},m={strokeDasharray:"".concat(v*g*(c/100),"px, ").concat(v,"px"),strokeDashoffset:k,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"},T="\n M 50 50\n m 0 ".concat(x?"":"-").concat(b,"\n a ").concat(b," ").concat(b," 0 1 1 0 ").concat(x?"-":"").concat(2*b,"\n a ").concat(b," ").concat(b," 0 1 1 0 ").concat(x?"":"-").concat(2*b,"\n "),V={d:T,stroke:"","stroke-linecap":l,"stroke-width":f,"fill-opacity":"0",class:"process-circle-trail",style:P},N={d:T,stroke:i||"#13ce66","stroke-linecap":l,"stroke-width":c>0&&f||0,"fill-opacity":"0",class:"process-circle-path bk-".concat(p,"-circle-trail"),style:m};return t.createVNode("div",{class:"progress-outer-circle",style:y},[t.createVNode("svg",{viewBox:"0 0 100 100"},[t.createVNode("path",V,null),t.createVNode("path",N,null)]),t.createVNode("span",{class:"progress-circle-text",style:u},[null==s?void 0:s.default()])])};function i(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)}var l=t.defineComponent({name:"
|
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,r){"use strict";function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var s={exports:{}};!function(e){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.default=e.exports,e.exports.__esModule=!0}(s);var n=o(s.exports),c=function(e,r){var o=r.attrs,s=r.slots,c=o.percent,a=o.strokeWidth,i=o.size,l=o.color,p=o.titleStyle,d=o.showText,u=o.textInside,f=o.theme,h={height:"".concat(a,"px"),lineHeight:"".concat(a,"px")},y={width:"".concat(c,"%"),background:l,animationDuration:"3s"},b=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return(d||s.default)&&(e&&u||!e&&!u)?null==s?void 0:s.default():null};return t.createVNode("div",{class:"progress-outer"},[t.createVNode("div",{class:"bk-progress-".concat(i||"normal"," progress-bar"),style:h},[t.createVNode("div",{style:y,class:n({"progress-inner":!0},"bk-".concat(f),!0)},[t.createVNode("div",{class:"inner-text",style:p},[b()])])]),b(!1)])},a=function(e,r){var o=r.attrs,s=r.slots,n=o.width,c=o.percent,a=o.strokeWidth,i=o.color,l=o.strokeLinecap,p=o.theme,d=o.type,u=o.titleStyle,f=a||6,h=n||126,y={width:"number"==typeof h?"".concat(h,"px"):h,height:"number"==typeof h?"".concat(h,"px"):h,fontSize:"".concat(.15*h+6,"px")},b=50-f/2,x="dashboard"===d,v=2*Math.PI*b,g=x?.75:1,k="".concat(-1*v*(1-g)/2,"px"),P={strokeDasharray:"".concat(v*g,"px, ").concat(v,"px"),strokeDashoffset:k},m={strokeDasharray:"".concat(v*g*(c/100),"px, ").concat(v,"px"),strokeDashoffset:k,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"},T="\n M 50 50\n m 0 ".concat(x?"":"-").concat(b,"\n a ").concat(b," ").concat(b," 0 1 1 0 ").concat(x?"-":"").concat(2*b,"\n a ").concat(b," ").concat(b," 0 1 1 0 ").concat(x?"":"-").concat(2*b,"\n "),V={d:T,stroke:"","stroke-linecap":l,"stroke-width":f,"fill-opacity":"0",class:"process-circle-trail",style:P},N={d:T,stroke:i||"#13ce66","stroke-linecap":l,"stroke-width":c>0&&f||0,"fill-opacity":"0",class:"process-circle-path bk-".concat(p,"-circle-trail"),style:m};return t.createVNode("div",{class:"progress-outer-circle",style:y},[t.createVNode("svg",{viewBox:"0 0 100 100"},[t.createVNode("path",V,null),t.createVNode("path",N,null)]),t.createVNode("span",{class:"progress-circle-text",style:u},[null==s?void 0:s.default()])])};function i(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)}var l=t.defineComponent({name:"Progress",props:{extCls:r.PropTypes.string,type:r.PropTypes.string.validate((function(e){return["line","circle","dashboard"].includes(e)})).def("line"),percent:r.PropTypes.number.def(0),theme:r.PropTypes.theme().def("primary"),size:r.PropTypes.size(),width:r.PropTypes.number.def(126),strokeWidth:r.PropTypes.number,strokeLinecap:r.PropTypes.string.def("round"),textInside:r.PropTypes.bool.def(!1),showText:r.PropTypes.bool.def(!0),color:r.PropTypes.string,format:r.PropTypes.func.def((function(e){return"".concat(e,"%")})),titleStyle:r.PropTypes.object.def({fontSize:"16px",verticalAlign:"middle"})},setup:function(){return{}},methods:{validPercent:function(e){return!e||e<0?0:e>100?100:e},renderProcessInfo:function(){var e=this.$props,r=e.showText,o=e.format,s=e.percent,n=e.textInside,c=e.titleStyle,a=o(this.validPercent(s));return(r||this.$slots.default)&&n?this.$slots.default?this.$slots.default():t.createVNode("span",null,[a]):!r||n?null:t.createVNode("span",{class:"progress-text",title:"string"==typeof a?a:void 0,style:"string"==typeof a?c:void 0},[this.$slots.default?this.$slots.default():a])}},render:function(){var e=this.renderProcessInfo(),o=Object.assign(Object.assign({},this.$props),{percent:this.validPercent(this.percent)}),s=t.createVNode(c,o,i(e)?e:{default:function(){return[e]}});"circle"!==this.type&&"dashboard"!==this.type||(s=t.createVNode(a,o,i(e)?e:{default:function(){return[e]}}));var n={class:r.classes({extCls:!!this.extCls},"bk-progress bk-progress-".concat(this.type))};return t.createVNode("div",n,[s])}}),p=r.withInstall(l);e.default=p,Object.defineProperty(e,"__esModule",{value:!0})}));
|
@@ -105,6 +105,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
105
105
|
theme: string;
|
106
106
|
extCls: string;
|
107
107
|
type: string;
|
108
|
+
format: (...args: any[]) => any;
|
108
109
|
percent: number;
|
109
110
|
strokeWidth: number;
|
110
111
|
strokeLinecap: string;
|
@@ -113,6 +114,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
113
114
|
};
|
114
115
|
showText: boolean;
|
115
116
|
textInside: boolean;
|
116
|
-
format: (...args: any[]) => any;
|
117
117
|
}>;
|
118
118
|
export default _default;
|
@@ -5,6 +5,7 @@
|
|
5
5
|
--warning-color: #ff9c01;
|
6
6
|
--danger-color: #ea3636;
|
7
7
|
--default-color: #63656e;
|
8
|
+
--gray-color: #979ba5;
|
8
9
|
--light-gray: #c4c6cc;
|
9
10
|
--white-color: white;
|
10
11
|
--disable-color: #dcdee5;
|
@@ -67,6 +68,21 @@
|
|
67
68
|
--message-success-border-color: #dcffe2;
|
68
69
|
--message-danger-bg-color: #ffeded;
|
69
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;
|
70
86
|
}
|
71
87
|
@keyframes loading-scale-animate {
|
72
88
|
0% {
|
package/lib/radio/index.d.ts
CHANGED
@@ -142,7 +142,7 @@ declare const BkRadio: {
|
|
142
142
|
modelValue: string | number | boolean;
|
143
143
|
checked: boolean;
|
144
144
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & Readonly<{
|
145
|
-
|
145
|
+
Group: import("vue").DefineComponent<{
|
146
146
|
name: import("vue-types").VueTypeValidableDef<string> & {
|
147
147
|
default: string;
|
148
148
|
} & {
|
@@ -168,7 +168,7 @@ declare const BkRadio: {
|
|
168
168
|
name: string;
|
169
169
|
disabled: boolean;
|
170
170
|
}>;
|
171
|
-
|
171
|
+
Button: import("vue").DefineComponent<{
|
172
172
|
name: import("vue-types").VueTypeValidableDef<string> & {
|
173
173
|
default: string;
|
174
174
|
} & {
|
package/lib/radio/index.js
CHANGED
@@ -1 +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,o){"use strict";function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a={exports:{}},n={exports:{}};!function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0}(n);var s={exports:{}};!function(e){e.exports=function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var r,a,n=[],s=!0,l=!1;try{for(o=o.call(e);!(s=(r=o.next()).done)&&(n.push(r.value),!t||n.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{s||null==o.return||o.return()}finally{if(l)throw a}}return n}},e.exports.default=e.exports,e.exports.__esModule=!0}(s);var l={exports:{}},i={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r},e.exports.default=e.exports,e.exports.__esModule=!0}(i),function(e){var t=i.exports;e.exports=function(e,o){if(e){if("string"==typeof e)return t(e,o);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,o):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0}(l);var u={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0}(u),function(e){var t=n.exports,o=s.exports,r=l.exports,a=u.exports;e.exports=function(e,n){return t(e)||o(e,n)||r(e,n)||a()},e.exports.default=e.exports,e.exports.__esModule=!0}(a);var d=r(a.exports),p=Symbol("RadioGroup");function c(){var e=t.ref(!1);return[e,{blur:function(){e.value=!1},focus:function(){e.value=!0}}]}function h(){var e=t.getCurrentInstance(),r=e.props,a=e.emit,n=t.inject(p,o.EMPTY_OBJ),s=!o.isEmptyObj(n),l=t.reactive({isLocalChecked:r.checked}),i=t.computed((function(){return s?n.state.localValue===r.label:""!==r.modelValue?r.modelValue===r.label:l.isLocalChecked}));l.isLocalChecked=i.value;var u=t.computed((function(){return!(!s||!n.props.disabled)||r.disabled}));return{name:t.computed((function(){return s&&n.props.name?n.props.name:r.name})),isCheck:i,isDisabled:u,handlerChange:function(){u.value||(a("change",r.label),a("update:modelValue",r.label),s&&n.handleChange(r.label))}}}var f={name:o.PropTypes.string.def(""),label:o.PropTypes.oneOfType([String,Number,Boolean]).isRequired,modelValue:o.PropTypes.oneOfType([String,Number,Boolean]).def(""),checked:o.PropTypes.bool.def(!1),disabled:o.PropTypes.bool.def(!1)},b=t.defineComponent({name:"
|
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,o){"use strict";function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a={exports:{}},n={exports:{}};!function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0}(n);var s={exports:{}};!function(e){e.exports=function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var r,a,n=[],s=!0,l=!1;try{for(o=o.call(e);!(s=(r=o.next()).done)&&(n.push(r.value),!t||n.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{s||null==o.return||o.return()}finally{if(l)throw a}}return n}},e.exports.default=e.exports,e.exports.__esModule=!0}(s);var l={exports:{}},i={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r},e.exports.default=e.exports,e.exports.__esModule=!0}(i),function(e){var t=i.exports;e.exports=function(e,o){if(e){if("string"==typeof e)return t(e,o);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,o):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0}(l);var u={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0}(u),function(e){var t=n.exports,o=s.exports,r=l.exports,a=u.exports;e.exports=function(e,n){return t(e)||o(e,n)||r(e,n)||a()},e.exports.default=e.exports,e.exports.__esModule=!0}(a);var d=r(a.exports),p=Symbol("RadioGroup");function c(){var e=t.ref(!1);return[e,{blur:function(){e.value=!1},focus:function(){e.value=!0}}]}function h(){var e=t.getCurrentInstance(),r=e.props,a=e.emit,n=t.inject(p,o.EMPTY_OBJ),s=!o.isEmptyObj(n),l=t.reactive({isLocalChecked:r.checked}),i=t.computed((function(){return s?n.state.localValue===r.label:""!==r.modelValue?r.modelValue===r.label:l.isLocalChecked}));l.isLocalChecked=i.value;var u=t.computed((function(){return!(!s||!n.props.disabled)||r.disabled}));return{name:t.computed((function(){return s&&n.props.name?n.props.name:r.name})),isCheck:i,isDisabled:u,handlerChange:function(){u.value||(a("change",r.label),a("update:modelValue",r.label),s&&n.handleChange(r.label))}}}var f={name:o.PropTypes.string.def(""),label:o.PropTypes.oneOfType([String,Number,Boolean]).isRequired,modelValue:o.PropTypes.oneOfType([String,Number,Boolean]).def(""),checked:o.PropTypes.bool.def(!1),disabled:o.PropTypes.bool.def(!1)},b=t.defineComponent({name:"Radio",props:f,emits:["change","update:modelValue"],setup:function(){var e=c(),t=d(e,2),o=t[0],r=t[1],a=r.blur,n=r.focus,s=h();return{isFocus:o,realName:s.name,isCheck:s.isCheck,isDisabled:s.isDisabled,handleBlur:a,handleFocus:n,handlerChange:s.handlerChange}},render:function(){var e=o.classes({"bk-radio":!0,"is-focus":this.isFocus,"is-disabled":this.isDisabled,"is-checked":this.isCheck});return t.createVNode("label",{class:e,tabindex:"0"},[t.createVNode("input",{class:"bk-radio-input",type:"radio",tabindex:"0",name:this.realName,value:this.label,checked:this.isCheck,disabled:this.isDisabled,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handlerChange},null),t.createVNode("span",{class:"bk-radio-text"},[this.$slots.default?this.$slots.default():this.label])])}}),m={name:o.PropTypes.string.def(""),modelValue:o.PropTypes.oneOfType([String,Number,Boolean]),disabled:o.PropTypes.bool},y=t.defineComponent({name:"RadioGroup",props:m,emits:["change","update:modelValue"],setup:function(e,o){var r=t.reactive({localValue:e.modelValue});t.watch((function(){return e.modelValue}),(function(){r.localValue=e.modelValue}));return t.provide(p,{props:e,state:r,handleChange:function(e){o.emit("update:modelValue",e),o.emit("change",e)}}),{}},render:function(){return t.createVNode("div",{class:"bk-radio-group"},[this.$slots.default()])}}),x={name:o.PropTypes.string.def(""),label:o.PropTypes.oneOfType([String,Number,Boolean]).isRequired,modelValue:o.PropTypes.oneOfType([String,Number,Boolean]).def(""),checked:o.PropTypes.bool.def(!1),disabled:o.PropTypes.bool.def(!1),size:o.PropTypes.size},v=t.defineComponent({name:"RadioButton",props:x,emits:["change","update:modelValue"],setup:function(){var e=c(),t=d(e,2),o=t[0],r=t[1],a=r.blur,n=r.focus,s=h();return{isFocus:o,realName:s.name,isCheck:s.isCheck,isDisabled:s.isDisabled,handleBlur:a,handleFocus:n,handlerChange:s.handlerChange}},render:function(){var e=o.classes({"bk-radio-button":!0,"is-focus":this.isFocus,"is-disabled":this.isDisabled,"is-checked":this.isCheck});return t.createVNode("label",{class:e,tabindex:"0"},[t.createVNode("input",{class:"bk-radio-button-input",type:"radio",tabindex:"0",name:this.realName,value:this.label,checked:this.isCheck,disabled:this.isDisabled,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handlerChange},null),t.createVNode("div",{class:"bk-radio-button-text"},[this.$slots.default?this.$slots.default():this.label])])}}),g=o.withInstallProps(b,{Group:y,Button:v});e.BkRadio=g,e.BkRadioButton=v,e.BkRadioGroup=y,e.default=g,Object.defineProperty(e,"__esModule",{value:!0})}));
|