bkui-vue 0.0.1-beta.150 → 0.0.1-beta.153

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.
@@ -75,8 +75,9 @@
75
75
  margin-right: 0;
76
76
  }
77
77
  .bk-select .bk-select-trigger .bk-input input {
78
+ padding-right: 24px;
78
79
  cursor: pointer;
79
- background-color: #fff;
80
+ background-color: white;
80
81
  }
81
82
  .bk-select .bk-select-trigger .bk-input.is-focused {
82
83
  border-color: #3a84ff;
@@ -247,9 +248,13 @@
247
248
  white-space: nowrap;
248
249
  }
249
250
  .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option-item {
250
- display: flex;
251
- align-items: center;
252
- justify-content: space-between;
251
+ overflow: hidden;
252
+ text-overflow: ellipsis;
253
+ white-space: nowrap;
254
+ }
255
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option-item .done-icon {
256
+ position: absolute;
257
+ right: 10px;
253
258
  }
254
259
  .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option.is-hover {
255
260
  color: #3a84ff;
@@ -268,6 +273,9 @@
268
273
  cursor: not-allowed;
269
274
  background-color: transparent;
270
275
  }
276
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option.is-multiple {
277
+ padding-right: 32px;
278
+ }
271
279
  .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option.is-multiple.is-selected {
272
280
  background-color: #fff;
273
281
  }
@@ -117,6 +117,21 @@ declare const _default: import("vue").DefineComponent<{
117
117
  } & {
118
118
  default: boolean;
119
119
  };
120
+ list: import("vue-types").VueTypeValidableDef<unknown[]> & {
121
+ default: () => unknown[];
122
+ } & {
123
+ default: () => unknown[];
124
+ };
125
+ idKey: import("vue-types").VueTypeValidableDef<string> & {
126
+ default: string;
127
+ } & {
128
+ default: string;
129
+ };
130
+ displayKey: import("vue-types").VueTypeValidableDef<string> & {
131
+ default: string;
132
+ } & {
133
+ default: string;
134
+ };
120
135
  }, {
121
136
  selected: import("vue").Ref<{
122
137
  value: string;
@@ -310,7 +325,7 @@ declare const _default: import("vue").DefineComponent<{
310
325
  handleDeleteTag: (val: string) => void;
311
326
  handleInputChange: (value: any) => void;
312
327
  handleInputEnter: (val: string | number, e: Event) => void;
313
- handleKeydown: (e: KeyboardEvent) => void;
328
+ handleKeydown: (e: any) => void;
314
329
  handleSelectedAllOptionMouseEnter: () => void;
315
330
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "blur" | "change" | "toggle" | "clear" | "update:modelValue" | "scroll-end")[], "focus" | "blur" | "change" | "toggle" | "clear" | "update:modelValue" | "scroll-end", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
316
331
  modelValue: import("vue-types").VueTypeValidableDef<any>;
@@ -430,6 +445,21 @@ declare const _default: import("vue").DefineComponent<{
430
445
  } & {
431
446
  default: boolean;
432
447
  };
448
+ list: import("vue-types").VueTypeValidableDef<unknown[]> & {
449
+ default: () => unknown[];
450
+ } & {
451
+ default: () => unknown[];
452
+ };
453
+ idKey: import("vue-types").VueTypeValidableDef<string> & {
454
+ default: string;
455
+ } & {
456
+ default: string;
457
+ };
458
+ displayKey: import("vue-types").VueTypeValidableDef<string> & {
459
+ default: string;
460
+ } & {
461
+ default: string;
462
+ };
433
463
  }>> & {
434
464
  onFocus?: (...args: any[]) => any;
435
465
  onBlur?: (...args: any[]) => any;
@@ -442,6 +472,7 @@ declare const _default: import("vue").DefineComponent<{
442
472
  showOnInit: boolean;
443
473
  disabled: boolean;
444
474
  placeholder: string;
475
+ list: unknown[];
445
476
  size: string;
446
477
  multiple: boolean;
447
478
  loading: boolean;
@@ -451,6 +482,7 @@ declare const _default: import("vue").DefineComponent<{
451
482
  filterable: boolean;
452
483
  allowCreate: boolean;
453
484
  popoverMinWidth: number;
485
+ idKey: string;
454
486
  remoteMethod: (...args: any[]) => any;
455
487
  popoverOptions: {
456
488
  [key: string]: any;
@@ -465,5 +497,6 @@ declare const _default: import("vue").DefineComponent<{
465
497
  selectAllText: string;
466
498
  scrollLoading: boolean;
467
499
  customContent: boolean;
500
+ displayKey: string;
468
501
  }>;
469
502
  export default _default;
@@ -125,8 +125,9 @@
125
125
 
126
126
  .bk-input {
127
127
  input {
128
+ padding-right: 24px;
128
129
  cursor: pointer;
129
- background-color: #fff;
130
+ background-color: @white-color;
130
131
  }
131
132
 
132
133
  &.is-focused {
@@ -252,9 +253,12 @@
252
253
  .ellipsis();
253
254
 
254
255
  &-item {
255
- display: flex;
256
- align-items: center;
257
- justify-content: space-between;
256
+ .ellipsis();
257
+
258
+ .done-icon {
259
+ position: absolute;
260
+ right: 10px;
261
+ }
258
262
  }
259
263
 
260
264
  &.is-hover {
@@ -279,6 +283,8 @@
279
283
  }
280
284
 
281
285
  &.is-multiple {
286
+ padding-right: 32px;
287
+
282
288
  &.is-selected {
283
289
  background-color: #fff
284
290
  }
@@ -188,8 +188,9 @@
188
188
  margin-right: 0;
189
189
  }
190
190
  .bk-select .bk-select-trigger .bk-input input {
191
+ padding-right: 24px;
191
192
  cursor: pointer;
192
- background-color: #fff;
193
+ background-color: var(--white-color);
193
194
  }
194
195
  .bk-select .bk-select-trigger .bk-input.is-focused {
195
196
  border-color: var(--primary-color);
@@ -360,9 +361,13 @@
360
361
  white-space: nowrap;
361
362
  }
362
363
  .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option-item {
363
- display: flex;
364
- align-items: center;
365
- justify-content: space-between;
364
+ overflow: hidden;
365
+ text-overflow: ellipsis;
366
+ white-space: nowrap;
367
+ }
368
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option-item .done-icon {
369
+ position: absolute;
370
+ right: 10px;
366
371
  }
367
372
  .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option.is-hover {
368
373
  color: #3a84ff;
@@ -381,6 +386,9 @@
381
386
  cursor: not-allowed;
382
387
  background-color: transparent;
383
388
  }
389
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option.is-multiple {
390
+ padding-right: 32px;
391
+ }
384
392
  .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option.is-multiple.is-selected {
385
393
  background-color: #fff;
386
394
  }
@@ -14,8 +14,8 @@ declare const TagInput: {
14
14
  showClearOnlyHover: boolean;
15
15
  modelValue: string[];
16
16
  allowCreate: boolean;
17
- searchKey: string | string[];
18
17
  displayKey: string;
18
+ searchKey: string | string[];
19
19
  tooltipKey: string;
20
20
  saveKey: string;
21
21
  hasDeleteIcon: boolean;
@@ -182,7 +182,7 @@ declare const TagInput: {
182
182
  "onUpdate:modelValue"?: (...args: any[]) => any;
183
183
  onRemove?: (...args: any[]) => any;
184
184
  onRemoveAll?: (...args: any[]) => any;
185
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "trigger" | "placeholder" | "list" | "separator" | "clearable" | "showClearOnlyHover" | "modelValue" | "allowCreate" | "searchKey" | "displayKey" | "tooltipKey" | "saveKey" | "hasDeleteIcon" | "useGroup" | "maxData" | "maxResult" | "contentMaxHeight" | "contentWidth" | "allowNextFocus" | "allowAutoMatch" | "leftSpace" | "createTagValidator" | "filterCallback" | "tagTpl" | "tpl" | "pasteFn">;
185
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "trigger" | "placeholder" | "list" | "separator" | "clearable" | "showClearOnlyHover" | "modelValue" | "allowCreate" | "displayKey" | "searchKey" | "tooltipKey" | "saveKey" | "hasDeleteIcon" | "useGroup" | "maxData" | "maxResult" | "contentMaxHeight" | "contentWidth" | "allowNextFocus" | "allowAutoMatch" | "leftSpace" | "createTagValidator" | "filterCallback" | "tagTpl" | "tpl" | "pasteFn">;
186
186
  $attrs: {
187
187
  [x: string]: unknown;
188
188
  };
@@ -406,8 +406,8 @@ declare const TagInput: {
406
406
  showClearOnlyHover: boolean;
407
407
  modelValue: string[];
408
408
  allowCreate: boolean;
409
- searchKey: string | string[];
410
409
  displayKey: string;
410
+ searchKey: string | string[];
411
411
  tooltipKey: string;
412
412
  saveKey: string;
413
413
  hasDeleteIcon: boolean;
@@ -864,8 +864,8 @@ declare const TagInput: {
864
864
  showClearOnlyHover: boolean;
865
865
  modelValue: string[];
866
866
  allowCreate: boolean;
867
- searchKey: string | string[];
868
867
  displayKey: string;
868
+ searchKey: string | string[];
869
869
  tooltipKey: string;
870
870
  saveKey: string;
871
871
  hasDeleteIcon: boolean;
@@ -344,8 +344,8 @@ declare const _default: import("vue").DefineComponent<{
344
344
  showClearOnlyHover: boolean;
345
345
  modelValue: string[];
346
346
  allowCreate: boolean;
347
- searchKey: string | string[];
348
347
  displayKey: string;
348
+ searchKey: string | string[];
349
349
  tooltipKey: string;
350
350
  saveKey: string;
351
351
  hasDeleteIcon: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "0.0.1-beta.150",
3
+ "version": "0.0.1-beta.153",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*",
@@ -1,22 +0,0 @@
1
- .bk-head-cell-sort {
2
- display: flex;
3
- flex-direction: column;
4
- margin-left: 4px;
5
- font-size: 10px;
6
- }
7
- .bk-head-cell-sort .sort-action {
8
- display: flex;
9
- width: 18px;
10
- height: calc(var(--row-height)/2);
11
- color: #c0c4cc;
12
- cursor: pointer;
13
- }
14
- .bk-head-cell-sort .sort-action.active {
15
- color: #3a84ff;
16
- }
17
- .bk-head-cell-sort .sort-action.sort-asc {
18
- align-items: flex-end;
19
- }
20
- .bk-head-cell-sort .sort-action.sort-desc {
21
- align-items: flex-start;
22
- }