bkui-vue 0.0.1-beta.27 → 0.0.1-beta.28

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.
@@ -0,0 +1,250 @@
1
+ @import '../styles/themes/themes.less';
2
+
3
+ @min-height: 32px;
4
+ @tag-input-disabled-bg-color: #fafbfd;
5
+
6
+ .@{bk-prefix}-tag-input {
7
+ position: relative;
8
+ min-height: @min-height;
9
+
10
+ .bk-popover-reference {
11
+ display: block;
12
+ }
13
+
14
+ .bk-tag-input-trigger {
15
+ position: relative;
16
+ display: flex;
17
+ min-height: @min-height;
18
+ padding: 0 0 0 5px;
19
+ overflow: hidden;
20
+ font-size: 12px;
21
+ cursor: pointer;
22
+ background: @white-color;
23
+ border: 1px solid @light-gray;
24
+ border-radius: 2px;
25
+ align-items: center;
26
+ justify-content: space-between;
27
+
28
+ &.active {
29
+ border-color: @primary-color;
30
+ }
31
+
32
+ &.disabled {
33
+ cursor: not-allowed;
34
+ background: @tag-input-disabled-bg-color;
35
+ border-color: @disable-color;
36
+ }
37
+
38
+ .tag-list {
39
+ display: inline-flex;
40
+ max-height: 135px;
41
+ padding: 0;
42
+ margin: 0;
43
+ overflow: auto;
44
+ align-items: center;
45
+ flex-wrap: wrap;
46
+
47
+ > li {
48
+ display: inline-flex;
49
+ height: 22px;
50
+ margin: 4px 5px 4px 0;
51
+ overflow: hidden;
52
+ font-size: 12px;
53
+ border: solid 1px transparent;
54
+ border-radius: 2px;
55
+ align-items: center;
56
+
57
+ &.tag-item {
58
+ background: #f0f1f5;
59
+ border-color: #f0f1f5;
60
+ }
61
+ }
62
+
63
+ .remove-tag {
64
+ flex-shrink: 0;
65
+ margin-right: 5px;
66
+ font-size: 14px;
67
+ line-height: 0;
68
+ }
69
+
70
+ .tag {
71
+ max-width: 190px;
72
+ overflow: hidden;
73
+ text-overflow: ellipsis;
74
+ word-break: break-all;
75
+ white-space: nowrap;
76
+ flex: 1;
77
+ }
78
+
79
+ .text {
80
+ padding: 0 5px;
81
+ line-height: 20px;
82
+ color: @default-color;
83
+ background-color: #f0f1f5;
84
+ border-radius: 2px;
85
+ box-sizing: border-box;
86
+ }
87
+
88
+ .tag-input {
89
+ width: 10px;
90
+ height: 22px;
91
+ max-width: 295px;
92
+ padding: 0;
93
+ border: 0;
94
+ outline: none;
95
+ box-sizing: border-box;
96
+ }
97
+ }
98
+
99
+ .placeholder {
100
+ position: absolute;
101
+ top: 0;
102
+ left: 8px;
103
+ padding: 0;
104
+ margin: 0;
105
+ line-height: 30px;
106
+ color: @light-gray;
107
+ }
108
+
109
+ .clear-icon {
110
+ margin-right: 5px;
111
+ font-size: 14px;
112
+ line-height: 0;
113
+ color: @light-gray;
114
+ cursor: pointer;
115
+
116
+ &:hover {
117
+ color: @gray-color;
118
+ }
119
+ }
120
+ }
121
+
122
+ .bk-popover-content {
123
+ padding: 0;
124
+ }
125
+ }
126
+
127
+ .bk-selector-list {
128
+ min-width: 150px;
129
+
130
+ .outside-ul {
131
+ max-height: 160px;
132
+ padding: 0;
133
+ padding: 6px 0;
134
+ margin: 0;
135
+ overflow-y: auto;
136
+ list-style: none;
137
+ background-color: @white-color;
138
+ border: 1px solid #dcdee5;
139
+ border-radius: 2px;
140
+
141
+ &::-webkit-scrollbar {
142
+ width: 6px;
143
+ height: 6px;
144
+ }
145
+
146
+ &::-webkit-scrollbar-thumb {
147
+ min-height: 24px;
148
+ background-color: #dcdee5;
149
+ border-radius: 3px;
150
+ }
151
+ }
152
+
153
+ .bk-selector-group-item {
154
+ list-style: none;
155
+
156
+ .group-name {
157
+ padding-left: 11px;
158
+ font-size: 12px;
159
+ line-height: 32px;
160
+ color: #979ba5;
161
+ }
162
+ }
163
+
164
+ .bk-selector-group-list-item {
165
+ padding: 0;
166
+ margin: 0;
167
+ list-style: none;
168
+ }
169
+
170
+ .bk-selector-list-item {
171
+ position: relative;
172
+ width: 100%;
173
+ cursor: pointer;
174
+ background-color: @white-color;
175
+ border-right: @light-gray;
176
+ border-left: @light-gray;
177
+
178
+ &:first-child {
179
+ border-top: @light-gray;
180
+ }
181
+
182
+ &:last-child {
183
+ border-bottom: @light-gray;
184
+ }
185
+
186
+ &.bk-selector-selected {
187
+ background-color: #f4f6fa;
188
+
189
+ .selected-icon {
190
+ display: inline-block;
191
+ }
192
+ }
193
+
194
+ &.bk-selector-actived {
195
+ background-color: #f4f6fa;
196
+ }
197
+
198
+ &:hover {
199
+ background-color: #eaf3ff;
200
+ }
201
+
202
+ &.disabled {
203
+ cursor: not-allowed;
204
+ background: @white-color;
205
+
206
+ .text {
207
+ color: @light-gray;
208
+ }
209
+ }
210
+
211
+ &.loading {
212
+ padding: 5px 0 3px;
213
+ text-align: center;
214
+ }
215
+
216
+ .loading {
217
+ position: relative;
218
+ width: 100%;
219
+ height: 40px;
220
+ font-size: 14px;
221
+ cursor: default;
222
+ }
223
+
224
+ .text {
225
+ padding: 0 10px;
226
+ overflow: hidden;
227
+ font-size: 12px;
228
+ line-height: 32px;
229
+ color: @default-color;
230
+ text-overflow: ellipsis;
231
+ white-space: nowrap;
232
+ }
233
+
234
+ .bk-selector-tools {
235
+ position: absolute;
236
+ top: 10px;
237
+ right: 0;
238
+ display: none;
239
+ font-size: 12px;
240
+
241
+ .bk-selector-list-icon {
242
+ margin-right: 14px;
243
+ }
244
+ }
245
+
246
+ .highlight-text {
247
+ color: @primary-color;
248
+ }
249
+ }
250
+ }
@@ -0,0 +1,301 @@
1
+ :root {
2
+ --bk-prefix: bk;
3
+ --popover-max-height: 216px;
4
+ --primary-color: #3a84ff;
5
+ --success-color: #2dcb56;
6
+ --warning-color: #ff9c01;
7
+ --danger-color: #ea3636;
8
+ --default-color: #63656e;
9
+ --gray-color: #979ba5;
10
+ --light-gray: #c4c6cc;
11
+ --white-color: white;
12
+ --disable-color: #dcdee5;
13
+ --font-size-base: 12px;
14
+ --font-size-medium: 14px;
15
+ --font-size-large: 16px;
16
+ --line-height-base: 16px;
17
+ --line-height-medium: 16px;
18
+ --line-height-large: 18px;
19
+ --component-size-small: 26px;
20
+ --component-size-base: 32px;
21
+ --component-size-large: 38px;
22
+ --border-width-base: 1px;
23
+ --border-style-base: solid;
24
+ --border-radius-base: 2px;
25
+ --input-disabled-bg: #fafbfd;
26
+ --input-disabled-border: var(--disable-color);
27
+ --input-height-base: var(--component-size-base);
28
+ --input-color: var(--default-color);
29
+ --input-bg: white;
30
+ --input-border-color: var(--light-gray);
31
+ --input-broder-radius: 3px;
32
+ --input-shadow-color: #a3c5fd;
33
+ --input-horizontal-padding: 10px;
34
+ --input-block-color: #f4f6fa;
35
+ --input-icon-size: var(--font-size-large);
36
+ --input-maxlength-color: #979ba5;
37
+ --button-primary-hover-color: #5594fa;
38
+ --button-danger-hover-color: #ff5656;
39
+ --button-success-hover-color: #45e35f;
40
+ --button-warning-hover-color: #ffb848;
41
+ --button-default-hover-border-color: #979ba5;
42
+ --button-primary-active-color: #2c77f4;
43
+ --button-danger-active-color: #db2626;
44
+ --button-success-active-color: #1ab943;
45
+ --button-warning-active-color: #eb9000;
46
+ --fixed-navbar-background: #fff;
47
+ --fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
48
+ --switch-default-color: #fff;
49
+ --switch-grey-color: #c4c6cc;
50
+ --breadcrumb-black-color: #979ba5;
51
+ --breadcrumb-primary-hover-color: #0082ff;
52
+ --breadcrumb-fn-main-color: #63656e;
53
+ --link-default-hover-color: #979ba5;
54
+ --link-primary-hover-color: #699df4;
55
+ --link-success-hover-color: #45e35f;
56
+ --link-warning-hover-color: #ffb848;
57
+ --link-danger-hover-color: #ff5656;
58
+ --link-default-disabled-color: #dcdee5;
59
+ --link-primary-disabled-color: #a3c5fd;
60
+ --link-success-disabled-color: #94f5a4;
61
+ --link-warning-disabled-color: #ffd695;
62
+ --link-danger-disabled-color: #fd9c9c;
63
+ --message-color: var(--default-color);
64
+ --message-primary-bg-color: #f0f8ff;
65
+ --message-primary-border-color: #e1ecff;
66
+ --message-warning-bg-color: #fff4e2;
67
+ --message-warning-border-color: #ffe8c3;
68
+ --message-success-bg-color: #f2fff4;
69
+ --message-success-border-color: #dcffe2;
70
+ --message-danger-bg-color: #ffeded;
71
+ --message-danger-border-color: #ffdddd;
72
+ --slider-default-bg: #dcdee5;
73
+ --slider-disable-bar-bg: #979ba5;
74
+ --menu-bg-color: #182132;
75
+ --submenu-bg-color: #151d2c;
76
+ --menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
77
+ --menu-color: #96a2b9;
78
+ --menu-group-color: var(--default-color);
79
+ --menu-width: 260px;
80
+ --menu-collapse-width: 60px;
81
+ --menu-active-color: white;
82
+ --nav-header-bg-color: #182132;
83
+ --nav-bg-color: #182132;
84
+ --date-picker-disabled-bg: #fafbfd;
85
+ --date-picker-dropdown-mb: 4px;
86
+ --date-picker-dropdown-bg: #fff;
87
+ --table-bg-color: var(--white-color);
88
+ --table-border-color: #dcdee5;
89
+ --table-head-bg-color: #fafbfd;
90
+ --table-head-font-color: #313238;
91
+ --table-body-font-color: #575961;
92
+ --table-row-hover-bg-color: #f5f7fa;
93
+ }
94
+ .bk-tag-input {
95
+ position: relative;
96
+ min-height: 32px;
97
+ }
98
+ .bk-tag-input .bk-popover-reference {
99
+ display: block;
100
+ }
101
+ .bk-tag-input .bk-tag-input-trigger {
102
+ position: relative;
103
+ display: flex;
104
+ min-height: 32px;
105
+ padding: 0 0 0 5px;
106
+ overflow: hidden;
107
+ font-size: 12px;
108
+ cursor: pointer;
109
+ background: var(--white-color);
110
+ border: 1px solid var(--light-gray);
111
+ border-radius: 2px;
112
+ align-items: center;
113
+ justify-content: space-between;
114
+ }
115
+ .bk-tag-input .bk-tag-input-trigger.active {
116
+ border-color: var(--primary-color);
117
+ }
118
+ .bk-tag-input .bk-tag-input-trigger.disabled {
119
+ cursor: not-allowed;
120
+ background: #fafbfd;
121
+ border-color: var(--disable-color);
122
+ }
123
+ .bk-tag-input .bk-tag-input-trigger .tag-list {
124
+ display: inline-flex;
125
+ max-height: 135px;
126
+ padding: 0;
127
+ margin: 0;
128
+ overflow: auto;
129
+ align-items: center;
130
+ flex-wrap: wrap;
131
+ }
132
+ .bk-tag-input .bk-tag-input-trigger .tag-list > li {
133
+ display: inline-flex;
134
+ height: 22px;
135
+ margin: 4px 5px 4px 0;
136
+ overflow: hidden;
137
+ font-size: 12px;
138
+ border: solid 1px transparent;
139
+ border-radius: 2px;
140
+ align-items: center;
141
+ }
142
+ .bk-tag-input .bk-tag-input-trigger .tag-list > li.tag-item {
143
+ background: #f0f1f5;
144
+ border-color: #f0f1f5;
145
+ }
146
+ .bk-tag-input .bk-tag-input-trigger .tag-list .remove-tag {
147
+ flex-shrink: 0;
148
+ margin-right: 5px;
149
+ font-size: 14px;
150
+ line-height: 0;
151
+ }
152
+ .bk-tag-input .bk-tag-input-trigger .tag-list .tag {
153
+ max-width: 190px;
154
+ overflow: hidden;
155
+ text-overflow: ellipsis;
156
+ word-break: break-all;
157
+ white-space: nowrap;
158
+ flex: 1;
159
+ }
160
+ .bk-tag-input .bk-tag-input-trigger .tag-list .text {
161
+ padding: 0 5px;
162
+ line-height: 20px;
163
+ color: var(--default-color);
164
+ background-color: #f0f1f5;
165
+ border-radius: 2px;
166
+ box-sizing: border-box;
167
+ }
168
+ .bk-tag-input .bk-tag-input-trigger .tag-list .tag-input {
169
+ width: 10px;
170
+ height: 22px;
171
+ max-width: 295px;
172
+ padding: 0;
173
+ border: 0;
174
+ outline: none;
175
+ box-sizing: border-box;
176
+ }
177
+ .bk-tag-input .bk-tag-input-trigger .placeholder {
178
+ position: absolute;
179
+ top: 0;
180
+ left: 8px;
181
+ padding: 0;
182
+ margin: 0;
183
+ line-height: 30px;
184
+ color: var(--light-gray);
185
+ }
186
+ .bk-tag-input .bk-tag-input-trigger .clear-icon {
187
+ margin-right: 5px;
188
+ font-size: 14px;
189
+ line-height: 0;
190
+ color: var(--light-gray);
191
+ cursor: pointer;
192
+ }
193
+ .bk-tag-input .bk-tag-input-trigger .clear-icon:hover {
194
+ color: var(--gray-color);
195
+ }
196
+ .bk-tag-input .bk-popover-content {
197
+ padding: 0;
198
+ }
199
+ .bk-selector-list {
200
+ min-width: 150px;
201
+ }
202
+ .bk-selector-list .outside-ul {
203
+ max-height: 160px;
204
+ padding: 0;
205
+ padding: 6px 0;
206
+ margin: 0;
207
+ overflow-y: auto;
208
+ list-style: none;
209
+ background-color: var(--white-color);
210
+ border: 1px solid #dcdee5;
211
+ border-radius: 2px;
212
+ }
213
+ .bk-selector-list .outside-ul::-webkit-scrollbar {
214
+ width: 6px;
215
+ height: 6px;
216
+ }
217
+ .bk-selector-list .outside-ul::-webkit-scrollbar-thumb {
218
+ min-height: 24px;
219
+ background-color: #dcdee5;
220
+ border-radius: 3px;
221
+ }
222
+ .bk-selector-list .bk-selector-group-item {
223
+ list-style: none;
224
+ }
225
+ .bk-selector-list .bk-selector-group-item .group-name {
226
+ padding-left: 11px;
227
+ font-size: 12px;
228
+ line-height: 32px;
229
+ color: #979ba5;
230
+ }
231
+ .bk-selector-list .bk-selector-group-list-item {
232
+ padding: 0;
233
+ margin: 0;
234
+ list-style: none;
235
+ }
236
+ .bk-selector-list .bk-selector-list-item {
237
+ position: relative;
238
+ width: 100%;
239
+ cursor: pointer;
240
+ background-color: var(--white-color);
241
+ border-right: var(--light-gray);
242
+ border-left: var(--light-gray);
243
+ }
244
+ .bk-selector-list .bk-selector-list-item:first-child {
245
+ border-top: var(--light-gray);
246
+ }
247
+ .bk-selector-list .bk-selector-list-item:last-child {
248
+ border-bottom: var(--light-gray);
249
+ }
250
+ .bk-selector-list .bk-selector-list-item.bk-selector-selected {
251
+ background-color: #f4f6fa;
252
+ }
253
+ .bk-selector-list .bk-selector-list-item.bk-selector-selected .selected-icon {
254
+ display: inline-block;
255
+ }
256
+ .bk-selector-list .bk-selector-list-item.bk-selector-actived {
257
+ background-color: #f4f6fa;
258
+ }
259
+ .bk-selector-list .bk-selector-list-item:hover {
260
+ background-color: #eaf3ff;
261
+ }
262
+ .bk-selector-list .bk-selector-list-item.disabled {
263
+ cursor: not-allowed;
264
+ background: var(--white-color);
265
+ }
266
+ .bk-selector-list .bk-selector-list-item.disabled .text {
267
+ color: var(--light-gray);
268
+ }
269
+ .bk-selector-list .bk-selector-list-item.loading {
270
+ padding: 5px 0 3px;
271
+ text-align: center;
272
+ }
273
+ .bk-selector-list .bk-selector-list-item .loading {
274
+ position: relative;
275
+ width: 100%;
276
+ height: 40px;
277
+ font-size: 14px;
278
+ cursor: default;
279
+ }
280
+ .bk-selector-list .bk-selector-list-item .text {
281
+ padding: 0 10px;
282
+ overflow: hidden;
283
+ font-size: 12px;
284
+ line-height: 32px;
285
+ color: var(--default-color);
286
+ text-overflow: ellipsis;
287
+ white-space: nowrap;
288
+ }
289
+ .bk-selector-list .bk-selector-list-item .bk-selector-tools {
290
+ position: absolute;
291
+ top: 10px;
292
+ right: 0;
293
+ display: none;
294
+ font-size: 12px;
295
+ }
296
+ .bk-selector-list .bk-selector-list-item .bk-selector-tools .bk-selector-list-icon {
297
+ margin-right: 14px;
298
+ }
299
+ .bk-selector-list .bk-selector-list-item .highlight-text {
300
+ color: var(--primary-color);
301
+ }
@@ -0,0 +1,131 @@
1
+ import { ExtractPropTypes, PropType, VNode } from 'vue';
2
+ declare const tagProps: () => {
3
+ modelValue: import("vue-types").VueTypeDef<string[]> & {
4
+ default: () => string[];
5
+ };
6
+ placeholder: import("vue-types").VueTypeValidableDef<string> & {
7
+ default: string;
8
+ } & {
9
+ default: string;
10
+ };
11
+ list: import("vue-types").VueTypeDef<{
12
+ [key: string]: any;
13
+ }[]> & {
14
+ default: () => {
15
+ [key: string]: any;
16
+ }[];
17
+ };
18
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
19
+ default: boolean;
20
+ } & {
21
+ default: boolean;
22
+ };
23
+ tooltipKey: import("vue-types").VueTypeValidableDef<string> & {
24
+ default: string;
25
+ } & {
26
+ default: string;
27
+ };
28
+ saveKey: import("vue-types").VueTypeValidableDef<string> & {
29
+ default: string;
30
+ } & {
31
+ default: string;
32
+ };
33
+ displayKey: import("vue-types").VueTypeValidableDef<string> & {
34
+ default: string;
35
+ } & {
36
+ default: string;
37
+ };
38
+ hasDeleteIcon: import("vue-types").VueTypeValidableDef<boolean> & {
39
+ default: boolean;
40
+ } & {
41
+ default: boolean;
42
+ };
43
+ clearable: import("vue-types").VueTypeValidableDef<boolean> & {
44
+ default: boolean;
45
+ } & {
46
+ default: boolean;
47
+ };
48
+ trigger: import("vue-types").VueTypeDef<string> & {
49
+ default: string;
50
+ };
51
+ searchKey: import("vue-types").VueTypeDef<string | string[]> & {
52
+ default: string | (() => string[]);
53
+ };
54
+ useGroup: import("vue-types").VueTypeValidableDef<boolean> & {
55
+ default: boolean;
56
+ } & {
57
+ default: boolean;
58
+ };
59
+ allowCreate: import("vue-types").VueTypeValidableDef<boolean> & {
60
+ default: boolean;
61
+ } & {
62
+ default: boolean;
63
+ };
64
+ maxData: import("vue-types").VueTypeValidableDef<number> & {
65
+ default: number;
66
+ } & {
67
+ default: number;
68
+ };
69
+ maxResult: import("vue-types").VueTypeValidableDef<number> & {
70
+ default: number;
71
+ } & {
72
+ default: number;
73
+ };
74
+ contentMaxHeight: import("vue-types").VueTypeValidableDef<number> & {
75
+ default: number;
76
+ } & {
77
+ default: number;
78
+ };
79
+ contentWidth: import("vue-types").VueTypeValidableDef<number> & {
80
+ default: number;
81
+ } & {
82
+ default: number;
83
+ };
84
+ separator: import("vue-types").VueTypeValidableDef<string> & {
85
+ default: string;
86
+ } & {
87
+ default: string;
88
+ };
89
+ allowNextFocus: import("vue-types").VueTypeValidableDef<boolean> & {
90
+ default: boolean;
91
+ } & {
92
+ default: boolean;
93
+ };
94
+ allowAutoMatch: import("vue-types").VueTypeValidableDef<boolean> & {
95
+ default: boolean;
96
+ } & {
97
+ default: boolean;
98
+ };
99
+ showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
100
+ default: boolean;
101
+ } & {
102
+ default: boolean;
103
+ };
104
+ leftSpace: import("vue-types").VueTypeValidableDef<number> & {
105
+ default: number;
106
+ } & {
107
+ default: number;
108
+ };
109
+ createTagValidator: {
110
+ type: PropType<(tag: any) => boolean>;
111
+ default: any;
112
+ };
113
+ filterCallback: {
114
+ type: PropType<(value: string, searchKey: string | string[], list: any[]) => any[]>;
115
+ default: any;
116
+ };
117
+ tagTpl: {
118
+ type: PropType<(node: any, highlightKeyword: Function, h: Function, ctx: VNode) => VNode>;
119
+ default: any;
120
+ };
121
+ tpl: {
122
+ type: PropType<(node: any, h: Function, ctx: VNode) => VNode>;
123
+ default: any;
124
+ };
125
+ pasteFn: {
126
+ type: PropType<(value: string) => any[]>;
127
+ default: any;
128
+ };
129
+ };
130
+ export default tagProps;
131
+ export declare type TagProps = Partial<ExtractPropTypes<ReturnType<typeof tagProps>>>;
@@ -0,0 +1,38 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ node: import("vue-types").VueTypeValidableDef<{
3
+ [key: string]: any;
4
+ }> & {
5
+ default: () => {
6
+ [key: string]: any;
7
+ };
8
+ };
9
+ displayKey: import("vue-types").VueTypeValidableDef<string> & {
10
+ default: string;
11
+ };
12
+ tpl: {
13
+ type: FunctionConstructor;
14
+ default: any;
15
+ };
16
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
+ node: import("vue-types").VueTypeValidableDef<{
18
+ [key: string]: any;
19
+ }> & {
20
+ default: () => {
21
+ [key: string]: any;
22
+ };
23
+ };
24
+ displayKey: import("vue-types").VueTypeValidableDef<string> & {
25
+ default: string;
26
+ };
27
+ tpl: {
28
+ type: FunctionConstructor;
29
+ default: any;
30
+ };
31
+ }>>, {
32
+ displayKey: string;
33
+ tpl: Function;
34
+ node: {
35
+ [key: string]: any;
36
+ };
37
+ }>;
38
+ export default _default;