bkui-vue 1.0.3-beta.53 → 1.0.3-beta.55
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/index.cjs.js +45 -47
- package/dist/index.esm.js +9612 -9562
- package/dist/index.umd.js +44 -46
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/dialog/dialog.css +5 -8
- package/lib/dialog/dialog.variable.css +5 -8
- package/lib/modal/index.js +7 -5
- package/lib/modal/modal.css +5 -8
- package/lib/modal/modal.less +6 -10
- package/lib/modal/modal.variable.css +5 -8
- package/lib/search-select/index.d.ts +18 -3
- package/lib/search-select/index.js +380 -211
- package/lib/search-select/input.d.ts +2 -1
- package/lib/search-select/search-select.css +19 -6
- package/lib/search-select/search-select.d.ts +6 -1
- package/lib/search-select/search-select.less +15 -12
- package/lib/search-select/search-select.variable.css +19 -6
- package/lib/search-select/selected.d.ts +2 -1
- package/lib/search-select/utils.d.ts +6 -1
- package/package.json +1 -1
@@ -53,8 +53,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
53
53
|
};
|
54
54
|
documentArrowEvent: (e: KeyboardEvent) => void;
|
55
55
|
handleClickOutside: (e: MouseEvent) => void;
|
56
|
-
handleInputFocus: (
|
56
|
+
handleInputFocus: () => void;
|
57
57
|
handleInputChange: (event: Event) => void;
|
58
|
+
handleInputPaste: (event: ClipboardEvent) => void;
|
58
59
|
handleLogicalChange: (logical: SearchLogical) => void;
|
59
60
|
handleInputKeyup: (event: KeyboardEvent) => void;
|
60
61
|
handleSelectItem: (item: ICommonItem, type?: SearchItemType) => Promise<void>;
|
@@ -189,6 +189,7 @@
|
|
189
189
|
margin-top: -4px;
|
190
190
|
color: #63656e;
|
191
191
|
border: none;
|
192
|
+
flex: 1;
|
192
193
|
}
|
193
194
|
.bk-search-select-container .search-container-input .input-before:before {
|
194
195
|
color: #c4c6cc;
|
@@ -287,12 +288,16 @@
|
|
287
288
|
}
|
288
289
|
.bk-search-select-menu .menu-item-mixin {
|
289
290
|
display: flex;
|
290
|
-
align-items: center;
|
291
291
|
width: 100%;
|
292
292
|
height: 32px;
|
293
|
+
max-width: 500px;
|
293
294
|
padding: 0 8px;
|
294
|
-
|
295
|
+
overflow: hidden;
|
296
|
+
text-overflow: ellipsis;
|
297
|
+
white-space: nowrap;
|
295
298
|
outline: none;
|
299
|
+
align-items: center;
|
300
|
+
flex: 0 0 32px;
|
296
301
|
}
|
297
302
|
.bk-search-select-menu .menu-item-mixin:hover {
|
298
303
|
cursor: pointer;
|
@@ -312,12 +317,16 @@
|
|
312
317
|
}
|
313
318
|
.bk-search-select-menu .menu-header-item {
|
314
319
|
display: flex;
|
315
|
-
align-items: center;
|
316
320
|
width: 100%;
|
317
321
|
height: 32px;
|
322
|
+
max-width: 500px;
|
318
323
|
padding: 0 8px;
|
319
|
-
|
324
|
+
overflow: hidden;
|
325
|
+
text-overflow: ellipsis;
|
326
|
+
white-space: nowrap;
|
320
327
|
outline: none;
|
328
|
+
align-items: center;
|
329
|
+
flex: 0 0 32px;
|
321
330
|
}
|
322
331
|
.bk-search-select-menu .menu-header-item:hover {
|
323
332
|
cursor: pointer;
|
@@ -366,12 +375,16 @@
|
|
366
375
|
}
|
367
376
|
.bk-search-select-menu .menu-content .menu-item {
|
368
377
|
display: flex;
|
369
|
-
align-items: center;
|
370
378
|
width: 100%;
|
371
379
|
height: 32px;
|
380
|
+
max-width: 500px;
|
372
381
|
padding: 0 8px;
|
373
|
-
|
382
|
+
overflow: hidden;
|
383
|
+
text-overflow: ellipsis;
|
384
|
+
white-space: nowrap;
|
374
385
|
outline: none;
|
386
|
+
align-items: center;
|
387
|
+
flex: 0 0 32px;
|
375
388
|
white-space: pre;
|
376
389
|
}
|
377
390
|
.bk-search-select-menu .menu-content .menu-item:hover {
|
@@ -137,8 +137,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
137
137
|
};
|
138
138
|
documentArrowEvent: (e: KeyboardEvent) => void;
|
139
139
|
handleClickOutside: (e: MouseEvent) => void;
|
140
|
-
handleInputFocus: (
|
140
|
+
handleInputFocus: () => void;
|
141
141
|
handleInputChange: (event: Event) => void;
|
142
|
+
handleInputPaste: (event: ClipboardEvent) => void;
|
142
143
|
handleLogicalChange: (logical: SearchLogical) => void;
|
143
144
|
handleInputKeyup: (event: KeyboardEvent) => void;
|
144
145
|
handleSelectItem: (item: ICommonItem, type?: SearchItemType) => Promise<void>;
|
@@ -209,6 +210,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
209
210
|
}[];
|
210
211
|
condition: string;
|
211
212
|
logical: SearchLogical;
|
213
|
+
nameRenderkey: string;
|
212
214
|
searchItem: {
|
213
215
|
id: string;
|
214
216
|
name: string;
|
@@ -278,6 +280,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
278
280
|
readonly showLogical: boolean;
|
279
281
|
isSpecialType: () => boolean;
|
280
282
|
addValue: (item: ICommonItem) => void;
|
283
|
+
str2Values: (str: string) => ICommonItem[];
|
284
|
+
addValues: (str: string, mergeValues?: boolean) => void;
|
285
|
+
getValue: (str: string) => ICommonItem;
|
281
286
|
toValue: () => ISearchValue;
|
282
287
|
toValueKey: () => string;
|
283
288
|
isInValueList: (item: ICommonItem) => boolean;
|
@@ -2,10 +2,8 @@
|
|
2
2
|
@import '../styles/themes/themes.less';
|
3
3
|
@import '../styles/mixins/mixins.less';
|
4
4
|
|
5
|
-
|
6
5
|
@search-select-name: ~'@{bk-prefix}-search-select';
|
7
6
|
|
8
|
-
|
9
7
|
.@{search-select-name} {
|
10
8
|
position: relative;
|
11
9
|
z-index: 9;
|
@@ -41,7 +39,7 @@
|
|
41
39
|
border-radius: @border-radius-base;
|
42
40
|
outline: none;
|
43
41
|
box-sizing: border-box;
|
44
|
-
transition: border .2s linear;
|
42
|
+
transition: border 0.2s linear;
|
45
43
|
resize: none;
|
46
44
|
flex-direction: row;
|
47
45
|
align-items: center;
|
@@ -72,7 +70,7 @@
|
|
72
70
|
margin-top: 4px;
|
73
71
|
overflow: visible;
|
74
72
|
text-align: left;
|
75
|
-
transition: max-height .3s cubic-bezier(.4, 0, .2, 1);
|
73
|
+
transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
76
74
|
flex: 1;
|
77
75
|
flex-wrap: wrap;
|
78
76
|
align-items: center;
|
@@ -91,7 +89,7 @@
|
|
91
89
|
align-self: center;
|
92
90
|
|
93
91
|
&.hidden-selected {
|
94
|
-
visibility: hidden
|
92
|
+
visibility: hidden;
|
95
93
|
}
|
96
94
|
|
97
95
|
&.overflow-selected {
|
@@ -139,6 +137,7 @@
|
|
139
137
|
margin-top: -4px;
|
140
138
|
color: @search-select-font-color;
|
141
139
|
border: none;
|
140
|
+
flex: 1;
|
142
141
|
|
143
142
|
.input-before {
|
144
143
|
&:before {
|
@@ -198,7 +197,7 @@
|
|
198
197
|
display: flex;
|
199
198
|
margin-right: 8px;
|
200
199
|
font-size: 16px;
|
201
|
-
transition: color .2s linear;
|
200
|
+
transition: color 0.2s linear;
|
202
201
|
align-items: center;
|
203
202
|
justify-content: center;
|
204
203
|
|
@@ -216,7 +215,7 @@
|
|
216
215
|
&::-webkit-scrollbar-thumb {
|
217
216
|
background: #e6e9ea;
|
218
217
|
border-radius: 20px;
|
219
|
-
box-shadow: inset 0 0 6px rgba(204, 204, 204, .3);
|
218
|
+
box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
|
220
219
|
}
|
221
220
|
}
|
222
221
|
|
@@ -255,12 +254,16 @@
|
|
255
254
|
|
256
255
|
.menu-item-mixin {
|
257
256
|
display: flex;
|
258
|
-
align-items: center;
|
259
257
|
width: 100%;
|
260
258
|
height: 32px;
|
259
|
+
max-width: 500px;
|
261
260
|
padding: 0 8px;
|
262
|
-
|
261
|
+
overflow: hidden;
|
262
|
+
text-overflow: ellipsis;
|
263
|
+
white-space: nowrap;
|
263
264
|
outline: none;
|
265
|
+
align-items: center;
|
266
|
+
flex: 0 0 32px;
|
264
267
|
|
265
268
|
&:hover {
|
266
269
|
cursor: pointer;
|
@@ -285,7 +288,7 @@
|
|
285
288
|
.menu-item-mixin();
|
286
289
|
|
287
290
|
&.is-disabled {
|
288
|
-
.menu-disabled-mixin()
|
291
|
+
.menu-disabled-mixin();
|
289
292
|
}
|
290
293
|
}
|
291
294
|
}
|
@@ -355,7 +358,7 @@
|
|
355
358
|
.menu-disabled-mixin();
|
356
359
|
|
357
360
|
.menu-name {
|
358
|
-
color: @light-gray
|
361
|
+
color: @light-gray;
|
359
362
|
}
|
360
363
|
}
|
361
364
|
|
@@ -394,7 +397,7 @@
|
|
394
397
|
}
|
395
398
|
|
396
399
|
&.is-disabled {
|
397
|
-
.menu-disabled-mixin()
|
400
|
+
.menu-disabled-mixin();
|
398
401
|
}
|
399
402
|
}
|
400
403
|
}
|
@@ -318,6 +318,7 @@
|
|
318
318
|
margin-top: -4px;
|
319
319
|
color: #63656e;
|
320
320
|
border: none;
|
321
|
+
flex: 1;
|
321
322
|
}
|
322
323
|
.bk-search-select-container .search-container-input .input-before:before {
|
323
324
|
color: #c4c6cc;
|
@@ -416,12 +417,16 @@
|
|
416
417
|
}
|
417
418
|
.bk-search-select-menu .menu-item-mixin {
|
418
419
|
display: flex;
|
419
|
-
align-items: center;
|
420
420
|
width: 100%;
|
421
421
|
height: 32px;
|
422
|
+
max-width: 500px;
|
422
423
|
padding: 0 8px;
|
423
|
-
|
424
|
+
overflow: hidden;
|
425
|
+
text-overflow: ellipsis;
|
426
|
+
white-space: nowrap;
|
424
427
|
outline: none;
|
428
|
+
align-items: center;
|
429
|
+
flex: 0 0 32px;
|
425
430
|
}
|
426
431
|
.bk-search-select-menu .menu-item-mixin:hover {
|
427
432
|
cursor: pointer;
|
@@ -441,12 +446,16 @@
|
|
441
446
|
}
|
442
447
|
.bk-search-select-menu .menu-header-item {
|
443
448
|
display: flex;
|
444
|
-
align-items: center;
|
445
449
|
width: 100%;
|
446
450
|
height: 32px;
|
451
|
+
max-width: 500px;
|
447
452
|
padding: 0 8px;
|
448
|
-
|
453
|
+
overflow: hidden;
|
454
|
+
text-overflow: ellipsis;
|
455
|
+
white-space: nowrap;
|
449
456
|
outline: none;
|
457
|
+
align-items: center;
|
458
|
+
flex: 0 0 32px;
|
450
459
|
}
|
451
460
|
.bk-search-select-menu .menu-header-item:hover {
|
452
461
|
cursor: pointer;
|
@@ -495,12 +504,16 @@
|
|
495
504
|
}
|
496
505
|
.bk-search-select-menu .menu-content .menu-item {
|
497
506
|
display: flex;
|
498
|
-
align-items: center;
|
499
507
|
width: 100%;
|
500
508
|
height: 32px;
|
509
|
+
max-width: 500px;
|
501
510
|
padding: 0 8px;
|
502
|
-
|
511
|
+
overflow: hidden;
|
512
|
+
text-overflow: ellipsis;
|
513
|
+
white-space: nowrap;
|
503
514
|
outline: none;
|
515
|
+
align-items: center;
|
516
|
+
flex: 0 0 32px;
|
504
517
|
white-space: pre;
|
505
518
|
}
|
506
519
|
.bk-search-select-menu .menu-content .menu-item:hover {
|
@@ -74,8 +74,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
74
74
|
};
|
75
75
|
documentArrowEvent: (e: KeyboardEvent) => void;
|
76
76
|
handleClickOutside: (e: MouseEvent) => void;
|
77
|
-
handleInputFocus: (
|
77
|
+
handleInputFocus: () => void;
|
78
78
|
handleInputChange: (event: Event) => void;
|
79
|
+
handleInputPaste: (event: ClipboardEvent) => void;
|
79
80
|
handleLogicalChange: (logical: SearchLogical) => void;
|
80
81
|
handleInputKeyup: (event: KeyboardEvent) => void;
|
81
82
|
handleSelectItem: (item: ICommonItem, type?: import("./utils").SearchItemType) => Promise<void>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { InjectionKey, Ref, VNode } from 'vue';
|
1
|
+
import { ComputedRef, InjectionKey, Ref, VNode } from 'vue';
|
2
2
|
/**
|
3
3
|
* @description: 获取menu list方法
|
4
4
|
* @param {ISearchItem} item 已选择的key字段 为空则代表当前并未选择key字段
|
@@ -24,6 +24,7 @@ export interface ISearchSelectProvider {
|
|
24
24
|
onEditBlur: () => void;
|
25
25
|
onValidate: (str: string) => void;
|
26
26
|
editKey: Ref<String>;
|
27
|
+
searchData: ComputedRef<ISearchItem[]>;
|
27
28
|
}
|
28
29
|
export declare const SEARCH_SLECT_PROVIDER_KEY: InjectionKey<ISearchSelectProvider>;
|
29
30
|
export declare const useSearchSelectProvider: (data: ISearchSelectProvider) => void;
|
@@ -78,6 +79,7 @@ export declare class SelectedItem {
|
|
78
79
|
values: ICommonItem[];
|
79
80
|
condition: string;
|
80
81
|
logical: SearchLogical;
|
82
|
+
nameRenderkey: string;
|
81
83
|
constructor(searchItem: ISearchItem, type?: SearchItemType);
|
82
84
|
get multiple(): boolean;
|
83
85
|
get placeholder(): string;
|
@@ -90,6 +92,9 @@ export declare class SelectedItem {
|
|
90
92
|
get showLogical(): boolean;
|
91
93
|
isSpecialType(): boolean;
|
92
94
|
addValue(item: ICommonItem): void;
|
95
|
+
str2Values(str: string): ICommonItem[];
|
96
|
+
addValues(str: string, mergeValues?: boolean): void;
|
97
|
+
getValue(str: string): ICommonItem;
|
93
98
|
toValue(): ISearchValue;
|
94
99
|
toValueKey(): string;
|
95
100
|
isInValueList(item: ICommonItem): boolean;
|