bkui-vue 0.0.1-beta.13 → 0.0.1-beta.16
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/README.md +25 -17
- package/README_EN.md +89 -0
- package/dist/bkui-vue.cjs.js +1897 -495
- package/dist/bkui-vue.esm.js +1893 -497
- package/dist/bkui-vue.umd.js +1897 -495
- package/dist/style.css +454 -177
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/index.js +1 -1
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.css +10 -1
- package/lib/breadcrumb/breadcrumb.d.ts +20 -0
- package/lib/breadcrumb/breadcrumb.less +13 -2
- package/lib/breadcrumb/breadcrumb.variable.css +10 -1
- package/lib/breadcrumb/index.d.ts +38 -2
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/index.js +1 -1
- package/lib/card/index.js +1 -1
- 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/index.js +1 -1
- package/lib/components.d.ts +2 -0
- package/lib/date-picker/index.js +1 -1
- package/lib/dialog/dialog.d.ts +3 -3
- package/lib/dialog/index.d.ts +7 -7
- package/lib/dialog/index.js +1 -1
- package/lib/directives/index.js +1 -1
- package/lib/divider/index.js +1 -1
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/index.js +1 -1
- package/lib/icon/angle-double-left.js +15 -0
- package/lib/icon/angle-double-right.js +15 -0
- package/lib/icon/angle-down-fill.d.ts +4 -0
- package/lib/icon/angle-down-fill.js +15 -0
- package/lib/icon/angle-down-line.js +15 -0
- package/lib/icon/angle-down.js +15 -0
- package/lib/icon/angle-left.js +15 -0
- package/lib/icon/angle-right.js +15 -0
- package/lib/icon/angle-up-fill.d.ts +4 -0
- package/lib/icon/angle-up-fill.js +15 -0
- package/lib/icon/angle-up.js +15 -0
- package/lib/icon/arrows-left.d.ts +4 -0
- package/lib/icon/arrows-left.js +15 -0
- package/lib/icon/circle.js +15 -0
- package/lib/icon/close.js +15 -0
- package/lib/icon/code.js +15 -0
- package/lib/icon/cog-shape.js +15 -0
- package/lib/icon/collapse-left.js +15 -0
- package/lib/icon/copy.js +15 -0
- package/lib/icon/done.js +15 -0
- package/lib/icon/down-shape.js +15 -0
- package/lib/icon/down-small.js +15 -0
- package/lib/icon/error.js +15 -0
- package/lib/icon/eye.js +15 -0
- package/lib/icon/folder-open.js +15 -0
- package/lib/icon/folder-shape-open.js +15 -0
- package/lib/icon/folder-shape.js +15 -0
- package/lib/icon/folder.js +15 -0
- package/lib/icon/help-document-fill.js +15 -0
- package/lib/icon/help-fill.js +15 -0
- package/lib/icon/help.js +15 -0
- package/lib/icon/icon.js +15 -0
- package/lib/icon/index.d.ts +7 -3
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.js +15 -0
- package/lib/icon/info.js +15 -0
- package/lib/icon/play-shape.js +15 -0
- package/lib/icon/plus.js +15 -0
- package/lib/icon/right-shape.js +15 -0
- package/lib/icon/search.js +15 -0
- package/lib/icon/share.js +15 -0
- package/lib/icon/spinner.d.ts +4 -0
- package/lib/icon/spinner.js +15 -0
- package/lib/icon/success.js +15 -0
- package/lib/icon/switcher-loading.js +15 -0
- package/lib/icon/text-file.js +15 -0
- package/lib/icon/tree-application-shape.js +15 -0
- package/lib/icon/unvisible.js +15 -0
- package/lib/icon/warn.js +15 -0
- package/lib/index.d.ts +1 -0
- package/lib/input/index.d.ts +19 -11
- package/lib/input/index.js +2 -2
- package/lib/input/input.css +1 -0
- package/lib/input/input.d.ts +5 -3
- package/lib/input/input.less +4 -3
- package/lib/input/input.variable.css +1 -0
- package/lib/link/index.js +1 -1
- package/lib/loading/index.js +1 -1
- package/lib/menu/index.js +1 -1
- package/lib/menu/submenu.css +3 -0
- package/lib/menu/submenu.less +1 -1
- package/lib/menu/submenu.variable.css +3 -0
- package/lib/message/index.js +1 -1
- package/lib/modal/index.d.ts +8 -8
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.d.ts +3 -3
- package/lib/modal/props.mixin.d.ts +1 -1
- package/lib/navigation/index.js +1 -1
- package/lib/notify/index.js +1 -1
- package/lib/notify/notifyConstructor.d.ts +2 -2
- package/lib/popover/index.d.ts +103 -48
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +22 -13
- package/lib/popover/popover.d.ts +30 -23
- package/lib/popover/popover.less +55 -45
- package/lib/popover/popover.variable.css +22 -13
- package/lib/popover/props.d.ts +77 -0
- 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 +23 -1
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +0 -3
- package/lib/progress/progress.d.ts +17 -1
- package/lib/progress/progress.less +0 -4
- package/lib/progress/progress.variable.css +0 -3
- package/lib/radio/index.d.ts +2 -2
- package/lib/radio/index.js +1 -1
- package/lib/rate/index.js +1 -1
- package/lib/select/common.d.ts +10 -1
- package/lib/select/index.d.ts +132 -189
- package/lib/select/index.js +2 -2
- package/lib/select/option.d.ts +1 -7
- package/lib/select/optionGroup.d.ts +22 -15
- package/lib/select/select.css +71 -14
- package/lib/select/select.d.ts +40 -55
- package/lib/select/select.less +73 -14
- package/lib/select/select.variable.css +71 -14
- package/lib/shared/bk-helper-core.d.ts +6 -0
- package/lib/shared/bk-popover.d.ts +45 -4
- package/lib/shared/index.d.ts +10 -0
- package/lib/shared/index.js +1 -1
- package/lib/shared/utils.d.ts +6 -0
- package/lib/sideslider/index.d.ts +7 -7
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.d.ts +3 -3
- package/lib/slider/index.js +2 -2
- package/lib/steps/index.d.ts +8 -8
- package/lib/steps/index.js +2 -2
- package/lib/steps/steps.d.ts +2 -2
- package/lib/styles/index.d.ts +2 -0
- package/lib/styles/index.js +1 -1
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +149 -135
- package/lib/switcher/switcher.less +210 -154
- package/lib/switcher/switcher.variable.css +149 -135
- package/lib/tab/index.js +1 -1
- package/lib/table/index.d.ts +76 -1
- package/lib/table/index.js +1 -1
- package/lib/table/props.d.ts +38 -0
- package/lib/table/render.d.ts +1 -1
- package/lib/table/table.css +6 -4
- package/lib/table/table.d.ts +34 -0
- package/lib/table/table.less +4 -4
- package/lib/table/table.variable.css +6 -4
- package/lib/table/utils.d.ts +8 -0
- package/lib/tag/index.js +1 -1
- package/lib/tree/index.d.ts +22 -8
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +52 -0
- package/lib/tree/tree.css +16 -7
- package/lib/tree/tree.d.ts +13 -7
- package/lib/tree/tree.less +24 -24
- package/lib/tree/tree.variable.css +16 -7
- package/lib/tree/util.d.ts +3 -44
- package/lib/virtual-render/index.d.ts +410 -0
- package/lib/virtual-render/index.js +1 -0
- package/lib/virtual-render/props.d.ts +156 -0
- package/lib/virtual-render/v-virtual-render.d.ts +7 -0
- package/lib/virtual-render/virtual-render.css +40 -0
- package/lib/virtual-render/virtual-render.d.ts +183 -0
- package/lib/virtual-render/virtual-render.less +51 -0
- package/lib/virtual-render/virtual-render.variable.css +40 -0
- package/package.json +11 -7
@@ -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
@@ -3,6 +3,7 @@ declare const BkProgress: {
|
|
3
3
|
$: import("vue").ComponentInternalInstance;
|
4
4
|
$data: {};
|
5
5
|
$props: Partial<{
|
6
|
+
fixed: number;
|
6
7
|
width: number;
|
7
8
|
color: string;
|
8
9
|
theme: string;
|
@@ -12,6 +13,7 @@ declare const BkProgress: {
|
|
12
13
|
percent: number;
|
13
14
|
strokeWidth: number;
|
14
15
|
strokeLinecap: string;
|
16
|
+
bgColor: string;
|
15
17
|
titleStyle: {
|
16
18
|
[key: string]: any;
|
17
19
|
};
|
@@ -29,9 +31,12 @@ declare const BkProgress: {
|
|
29
31
|
textInside?: unknown;
|
30
32
|
showText?: unknown;
|
31
33
|
color?: unknown;
|
34
|
+
bgColor?: unknown;
|
35
|
+
fixed?: unknown;
|
32
36
|
format?: unknown;
|
33
37
|
titleStyle?: unknown;
|
34
38
|
} & {
|
39
|
+
fixed: number;
|
35
40
|
width: number;
|
36
41
|
color: string;
|
37
42
|
theme: string;
|
@@ -40,6 +45,7 @@ declare const BkProgress: {
|
|
40
45
|
percent: number;
|
41
46
|
strokeWidth: number;
|
42
47
|
strokeLinecap: string;
|
48
|
+
bgColor: string;
|
43
49
|
titleStyle: {
|
44
50
|
[key: string]: any;
|
45
51
|
};
|
@@ -48,7 +54,7 @@ declare const BkProgress: {
|
|
48
54
|
} & {
|
49
55
|
size?: string;
|
50
56
|
format?: (...args: any[]) => any;
|
51
|
-
}> & {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "width" | "color" | "theme" | "extCls" | "type" | "format" | "percent" | "strokeWidth" | "strokeLinecap" | "titleStyle" | "showText" | "textInside">;
|
57
|
+
}> & {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "fixed" | "width" | "color" | "theme" | "extCls" | "type" | "format" | "percent" | "strokeWidth" | "strokeLinecap" | "bgColor" | "titleStyle" | "showText" | "textInside">;
|
52
58
|
$attrs: {
|
53
59
|
[x: string]: unknown;
|
54
60
|
};
|
@@ -74,9 +80,12 @@ declare const BkProgress: {
|
|
74
80
|
textInside?: unknown;
|
75
81
|
showText?: unknown;
|
76
82
|
color?: unknown;
|
83
|
+
bgColor?: unknown;
|
84
|
+
fixed?: unknown;
|
77
85
|
format?: unknown;
|
78
86
|
titleStyle?: unknown;
|
79
87
|
} & {
|
88
|
+
fixed: number;
|
80
89
|
width: number;
|
81
90
|
color: string;
|
82
91
|
theme: string;
|
@@ -85,6 +94,7 @@ declare const BkProgress: {
|
|
85
94
|
percent: number;
|
86
95
|
strokeWidth: number;
|
87
96
|
strokeLinecap: string;
|
97
|
+
bgColor: string;
|
88
98
|
titleStyle: {
|
89
99
|
[key: string]: any;
|
90
100
|
};
|
@@ -99,6 +109,7 @@ declare const BkProgress: {
|
|
99
109
|
[key: string]: any;
|
100
110
|
}>[];
|
101
111
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
112
|
+
fixed: number;
|
102
113
|
width: number;
|
103
114
|
color: string;
|
104
115
|
theme: string;
|
@@ -108,6 +119,7 @@ declare const BkProgress: {
|
|
108
119
|
percent: number;
|
109
120
|
strokeWidth: number;
|
110
121
|
strokeLinecap: string;
|
122
|
+
bgColor: string;
|
111
123
|
titleStyle: {
|
112
124
|
[key: string]: any;
|
113
125
|
};
|
@@ -145,9 +157,12 @@ declare const BkProgress: {
|
|
145
157
|
textInside?: unknown;
|
146
158
|
showText?: unknown;
|
147
159
|
color?: unknown;
|
160
|
+
bgColor?: unknown;
|
161
|
+
fixed?: unknown;
|
148
162
|
format?: unknown;
|
149
163
|
titleStyle?: unknown;
|
150
164
|
} & {
|
165
|
+
fixed: number;
|
151
166
|
width: number;
|
152
167
|
color: string;
|
153
168
|
theme: string;
|
@@ -156,6 +171,7 @@ declare const BkProgress: {
|
|
156
171
|
percent: number;
|
157
172
|
strokeWidth: number;
|
158
173
|
strokeLinecap: string;
|
174
|
+
bgColor: string;
|
159
175
|
titleStyle: {
|
160
176
|
[key: string]: any;
|
161
177
|
};
|
@@ -185,9 +201,12 @@ declare const BkProgress: {
|
|
185
201
|
textInside?: unknown;
|
186
202
|
showText?: unknown;
|
187
203
|
color?: unknown;
|
204
|
+
bgColor?: unknown;
|
205
|
+
fixed?: unknown;
|
188
206
|
format?: unknown;
|
189
207
|
titleStyle?: unknown;
|
190
208
|
} & {
|
209
|
+
fixed: number;
|
191
210
|
width: number;
|
192
211
|
color: string;
|
193
212
|
theme: string;
|
@@ -196,6 +215,7 @@ declare const BkProgress: {
|
|
196
215
|
percent: number;
|
197
216
|
strokeWidth: number;
|
198
217
|
strokeLinecap: string;
|
218
|
+
bgColor: string;
|
199
219
|
titleStyle: {
|
200
220
|
[key: string]: any;
|
201
221
|
};
|
@@ -210,6 +230,7 @@ declare const BkProgress: {
|
|
210
230
|
[key: string]: any;
|
211
231
|
}>[];
|
212
232
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
233
|
+
fixed: number;
|
213
234
|
width: number;
|
214
235
|
color: string;
|
215
236
|
theme: string;
|
@@ -219,6 +240,7 @@ declare const BkProgress: {
|
|
219
240
|
percent: number;
|
220
241
|
strokeWidth: number;
|
221
242
|
strokeLinecap: string;
|
243
|
+
bgColor: string;
|
222
244
|
titleStyle: {
|
223
245
|
[key: string]: any;
|
224
246
|
};
|
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.
|
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.__esModule=!0,e.exports.default=e.exports}(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.bgColor,f=o.titleStyle,h=a||6,y=n||126,b={width:"number"==typeof y?"".concat(y,"px"):y,height:"number"==typeof y?"".concat(y,"px"):y,fontSize:"".concat(.15*y+6,"px")},x=50-h/2,v="dashboard"===d,g=2*Math.PI*x,P=v?.75:1,k="".concat(-1*g*(1-P)/2,"px"),m={strokeDasharray:"".concat(g*P,"px, ").concat(g,"px"),strokeDashoffset:k},T={strokeDasharray:"".concat(g*P*(c/100),"px, ").concat(g,"px"),strokeDashoffset:k,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"},V="\n M 50 50\n m 0 ".concat(v?"":"-").concat(x,"\n a ").concat(x," ").concat(x," 0 1 1 0 ").concat(v?"-":"").concat(2*x,"\n a ").concat(x," ").concat(x," 0 1 1 0 ").concat(v?"":"-").concat(2*x,"\n "),N={d:V,stroke:u||"#f5f5f5","stroke-linecap":l,"stroke-width":h,"fill-opacity":"0",class:"process-circle-trail",style:m},w={d:V,stroke:i||"#13ce66","stroke-linecap":l,"stroke-width":c>0&&h||0,"fill-opacity":"0",class:"process-circle-path bk-".concat(p,"-circle-trail"),style:T};return t.createVNode("div",{class:"progress-outer-circle",style:b},[t.createVNode("svg",{viewBox:"0 0 100 100"},[t.createVNode("path",N,null),t.createVNode("path",w,null)]),t.createVNode("span",{class:"progress-circle-text",style:f},[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,bgColor:r.PropTypes.string,fixed:r.PropTypes.number.validate((function(e){return e>=0&&e<=20})).def(0),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,r=this.$props,o=r.showText,s=r.format,n=r.percent,c=r.textInside,a=r.titleStyle,i=r.fixed,l=s(null===(e=this.validPercent(n))||void 0===e?void 0:e.toFixed(i));return(o||this.$slots.default)&&c?this.$slots.default?this.$slots.default():t.createVNode("span",null,[l]):!o||c?null:t.createVNode("span",{class:"progress-text",style:"string"==typeof l?a:void 0},[this.$slots.default?this.$slots.default():l])}},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})}));
|
@@ -45,6 +45,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
45
45
|
color: import("vue-types").VueTypeValidableDef<string> & {
|
46
46
|
default: string;
|
47
47
|
};
|
48
|
+
bgColor: import("vue-types").VueTypeValidableDef<string> & {
|
49
|
+
default: string;
|
50
|
+
};
|
51
|
+
fixed: import("vue-types").VueTypeValidableDef<number> & {
|
52
|
+
default: number;
|
53
|
+
} & {
|
54
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
55
|
+
} & {
|
56
|
+
default: number;
|
57
|
+
};
|
48
58
|
format: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
49
59
|
default: (...args: any[]) => any;
|
50
60
|
} & {
|
@@ -64,7 +74,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
64
74
|
}, {}, unknown, {}, {
|
65
75
|
/** 验证进度值 */
|
66
76
|
validPercent(percent?: number): number;
|
67
|
-
/** text
|
77
|
+
/** text 区域展示内容*/
|
68
78
|
renderProcessInfo(): JSX.Element | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
69
79
|
[key: string]: any;
|
70
80
|
}>[];
|
@@ -80,9 +90,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
80
90
|
textInside?: unknown;
|
81
91
|
showText?: unknown;
|
82
92
|
color?: unknown;
|
93
|
+
bgColor?: unknown;
|
94
|
+
fixed?: unknown;
|
83
95
|
format?: unknown;
|
84
96
|
titleStyle?: unknown;
|
85
97
|
} & {
|
98
|
+
fixed: number;
|
86
99
|
width: number;
|
87
100
|
color: string;
|
88
101
|
theme: string;
|
@@ -91,6 +104,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
91
104
|
percent: number;
|
92
105
|
strokeWidth: number;
|
93
106
|
strokeLinecap: string;
|
107
|
+
bgColor: string;
|
94
108
|
titleStyle: {
|
95
109
|
[key: string]: any;
|
96
110
|
};
|
@@ -100,6 +114,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
100
114
|
size?: string;
|
101
115
|
format?: (...args: any[]) => any;
|
102
116
|
}> & {}, {
|
117
|
+
fixed: number;
|
103
118
|
width: number;
|
104
119
|
color: string;
|
105
120
|
theme: string;
|
@@ -109,6 +124,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
109
124
|
percent: number;
|
110
125
|
strokeWidth: number;
|
111
126
|
strokeLinecap: string;
|
127
|
+
bgColor: string;
|
112
128
|
titleStyle: {
|
113
129
|
[key: string]: any;
|
114
130
|
};
|
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
|
} & {
|