bkui-vue 2.0.1-beta.102 → 2.0.1-beta.104

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.
@@ -17,11 +17,11 @@
17
17
  }
18
18
 
19
19
  .div-input {
20
+ flex: 1 1 auto;
20
21
  height: 100%;
21
22
  padding: 5px 0;
22
23
  line-height: 20px;
23
24
  word-break: break-all;
24
- flex: 1 1 auto;
25
25
 
26
26
  &:focus {
27
27
  outline: none;
@@ -29,21 +29,21 @@
29
29
  }
30
30
 
31
31
  &-container {
32
+ box-sizing: border-box;
32
33
  // position: relative;
33
34
  display: flex;
35
+ flex-direction: row;
36
+ flex-wrap: wrap;
37
+ align-items: center;
34
38
  min-height: 30px;
35
39
  overflow: hidden;
36
40
  font-size: 12px;
37
41
  color: @search-select-font-color;
42
+ resize: none;
38
43
  border: @border-width-base @border-style-base @border-style-color;
39
44
  border-radius: @border-radius-base;
40
45
  outline: none;
41
- box-sizing: border-box;
42
46
  transition: border 0.2s linear;
43
- resize: none;
44
- flex-direction: row;
45
- align-items: center;
46
- flex-wrap: wrap;
47
47
 
48
48
  &.is-focus {
49
49
  overflow: auto;
@@ -55,8 +55,8 @@
55
55
  }
56
56
 
57
57
  .search-prefix {
58
- flex: 0 0 auto;
59
58
  display: flex;
59
+ flex: 0 0 auto;
60
60
  align-items: center;
61
61
  height: 100%;
62
62
  }
@@ -64,6 +64,9 @@
64
64
  .search-container {
65
65
  position: relative;
66
66
  display: flex;
67
+ flex: 1;
68
+ flex-wrap: wrap;
69
+ align-items: center;
67
70
  max-width: calc(100% - 42px);
68
71
  min-height: 26px;
69
72
  padding: 0 2px;
@@ -71,13 +74,12 @@
71
74
  overflow: visible;
72
75
  text-align: left;
73
76
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
74
- flex: 1;
75
- flex-wrap: wrap;
76
- align-items: center;
77
77
 
78
78
  &-selected {
79
79
  position: relative;
80
80
  display: inline-block;
81
+ flex: 0 0 auto;
82
+ align-self: center;
81
83
  max-width: 99%;
82
84
  padding-left: 8px;
83
85
  margin: 0 0 4px 6px;
@@ -85,8 +87,6 @@
85
87
  color: @search-select-font-color;
86
88
  background: #f0f1f5;
87
89
  border-radius: 2px;
88
- flex: 0 0 auto;
89
- align-self: center;
90
90
 
91
91
  &.hidden-selected {
92
92
  visibility: hidden;
@@ -115,6 +115,8 @@
115
115
  top: 4px;
116
116
  right: 3px;
117
117
  display: inline-flex;
118
+ align-items: center;
119
+ justify-content: center;
118
120
  width: 14px;
119
121
  height: 14px;
120
122
  overflow: hidden;
@@ -123,24 +125,22 @@
123
125
  color: #979ba5;
124
126
  text-align: center;
125
127
  cursor: pointer;
126
- align-items: center;
127
- justify-content: center;
128
128
  }
129
129
  }
130
130
 
131
131
  &-input {
132
132
  position: relative;
133
133
  display: block;
134
- height: 100%;
134
+ flex: 1;
135
135
  min-width: 40px;
136
+ height: 100%;
136
137
  padding: 0 10px;
137
138
  margin-top: -4px;
138
139
  color: @search-select-font-color;
139
140
  border: none;
140
- flex: 1;
141
141
 
142
142
  .input-before {
143
- &:before {
143
+ &::after {
144
144
  color: @search-select-placeholder-color;
145
145
  content: attr(data-placeholder);
146
146
  }
@@ -158,13 +158,13 @@
158
158
  .selected-input {
159
159
  position: relative;
160
160
  display: flex;
161
- height: 100%;
161
+ align-items: center;
162
162
  min-width: 40px;
163
+ height: 100%;
163
164
  padding: 0 10px;
164
165
  margin-top: -4px;
165
166
  color: @search-select-font-color;
166
167
  border: none;
167
- align-items: center;
168
168
  }
169
169
  }
170
170
 
@@ -173,19 +173,19 @@
173
173
  top: 0;
174
174
  right: 0;
175
175
  display: flex;
176
- color: @light-gray;
177
176
  align-items: center;
177
+ color: @light-gray;
178
178
  .search-prefix();
179
179
 
180
180
  .search-clear {
181
181
  display: flex;
182
+ align-items: center;
183
+ justify-content: center;
182
184
  width: 12px;
183
185
  height: 12px;
184
186
  margin-right: 6px;
185
187
  font-size: 12px;
186
188
  color: @light-gray;
187
- align-items: center;
188
- justify-content: center;
189
189
 
190
190
  &:hover {
191
191
  color: #979ba5;
@@ -195,11 +195,11 @@
195
195
 
196
196
  .search-nextfix-icon {
197
197
  display: flex;
198
+ align-items: center;
199
+ justify-content: center;
198
200
  margin-right: 8px;
199
201
  font-size: 16px;
200
202
  transition: color 0.2s linear;
201
- align-items: center;
202
- justify-content: center;
203
203
 
204
204
  &.is-focus {
205
205
  .focus();
@@ -221,31 +221,31 @@
221
221
 
222
222
  &-tips {
223
223
  display: flex;
224
+ align-items: center;
224
225
  margin-top: 5px;
225
226
  font-size: 12px;
226
227
  line-height: 16px;
227
228
  color: @search-select-message-color;
228
- align-items: center;
229
229
 
230
230
  .select-tips {
231
231
  display: flex;
232
+ align-items: center;
233
+ justify-content: center;
232
234
  width: 16px;
233
235
  height: 16px;
234
236
  margin-right: 5px;
235
237
  overflow: hidden;
236
238
  font-size: 16px;
237
- align-items: center;
238
- justify-content: center;
239
239
  }
240
240
  }
241
241
  }
242
242
 
243
243
  .@{search-select-name}-menu {
244
244
  display: flex;
245
+ flex-direction: column;
245
246
  min-width: 200px;
246
247
  font-size: 12px;
247
248
  color: @search-select-font-color;
248
- flex-direction: column;
249
249
 
250
250
  .menu-list-mixin {
251
251
  display: flex;
@@ -254,16 +254,16 @@
254
254
 
255
255
  .menu-item-mixin {
256
256
  display: flex;
257
+ flex: 0 0 32px;
258
+ align-items: center;
257
259
  width: 100%;
258
- height: 32px;
259
260
  max-width: 500px;
261
+ height: 32px;
260
262
  padding: 0 8px;
261
263
  overflow: hidden;
262
264
  text-overflow: ellipsis;
263
265
  white-space: nowrap;
264
266
  outline: none;
265
- align-items: center;
266
- flex: 0 0 32px;
267
267
 
268
268
  &:hover {
269
269
  cursor: pointer;
@@ -300,17 +300,17 @@
300
300
 
301
301
  .menu-condition {
302
302
  display: flex;
303
+ flex: 0 0 64px;
304
+ flex-direction: column;
303
305
  width: 64px;
304
306
  padding: 8px 8px 2px 10px;
305
307
  background-color: #f5f7fa;
306
- flex-direction: column;
307
- flex: 0 0 64px;
308
308
 
309
309
  &-title {
310
310
  display: flex;
311
+ align-items: center;
311
312
  margin-bottom: 12px;
312
313
  line-height: 24px;
313
- align-items: center;
314
314
  }
315
315
  .@{bk-prefix}-radio {
316
316
  width: 50px;
@@ -324,12 +324,12 @@
324
324
 
325
325
  .menu-content {
326
326
  display: flex;
327
+ flex: 1;
328
+ flex-direction: column;
327
329
  // max-height: 240px;
328
330
  padding: 4px 0;
329
331
  margin: 0;
330
332
  overflow: auto;
331
- flex-direction: column;
332
- flex: 1;
333
333
 
334
334
  .menu-item {
335
335
  .menu-item-mixin();
@@ -365,25 +365,25 @@
365
365
 
366
366
  .menu-name {
367
367
  display: flex;
368
+ align-items: center;
368
369
  // max-width: 100px;
369
370
  margin-right: 5px;
370
371
  font-weight: bold;
371
372
  color: @search-select-font-color;
372
- align-items: center;
373
373
  }
374
374
  }
375
375
  }
376
376
 
377
377
  .menu-footer {
378
378
  display: flex;
379
+ align-items: center;
379
380
  width: 100%;
380
381
  height: 32px;
381
382
  border-top: @border-width-base @border-style-base @search-select-menu-border-color;
382
- align-items: center;
383
383
 
384
384
  &-btn {
385
- flex: 1;
386
385
  display: flex;
386
+ flex: 1;
387
387
  align-items: center;
388
388
  justify-content: center;
389
389
  height: 100%;
@@ -603,30 +603,30 @@
603
603
  border-color: var(--search-select-focus-border-color) !important;
604
604
  }
605
605
  .bk-search-select .div-input {
606
+ flex: 1 1 auto;
606
607
  height: 100%;
607
608
  padding: 5px 0;
608
609
  line-height: 20px;
609
610
  word-break: break-all;
610
- flex: 1 1 auto;
611
611
  }
612
612
  .bk-search-select .div-input:focus {
613
613
  outline: none;
614
614
  }
615
615
  .bk-search-select-container {
616
+ box-sizing: border-box;
616
617
  display: flex;
618
+ flex-direction: row;
619
+ flex-wrap: wrap;
620
+ align-items: center;
617
621
  min-height: 30px;
618
622
  overflow: hidden;
619
623
  font-size: 12px;
620
624
  color: var(--search-select-font-color);
625
+ resize: none;
621
626
  border: var(--border-width-base) var(--border-style-base) var(--border-style-color);
622
627
  border-radius: var(--border-radius-base);
623
628
  outline: none;
624
- box-sizing: border-box;
625
629
  transition: border 0.2s linear;
626
- resize: none;
627
- flex-direction: row;
628
- align-items: center;
629
- flex-wrap: wrap;
630
630
  }
631
631
  .bk-search-select-container.is-focus {
632
632
  overflow: auto;
@@ -635,14 +635,17 @@
635
635
  border-color: var(--search-select-focus-border-color) !important;
636
636
  }
637
637
  .bk-search-select-container .search-prefix {
638
- flex: 0 0 auto;
639
638
  display: flex;
639
+ flex: 0 0 auto;
640
640
  align-items: center;
641
641
  height: 100%;
642
642
  }
643
643
  .bk-search-select-container .search-container {
644
644
  position: relative;
645
645
  display: flex;
646
+ flex: 1;
647
+ flex-wrap: wrap;
648
+ align-items: center;
646
649
  max-width: calc(100% - 42px);
647
650
  min-height: 26px;
648
651
  padding: 0 2px;
@@ -650,13 +653,12 @@
650
653
  overflow: visible;
651
654
  text-align: left;
652
655
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
653
- flex: 1;
654
- flex-wrap: wrap;
655
- align-items: center;
656
656
  }
657
657
  .bk-search-select-container .search-container-selected {
658
658
  position: relative;
659
659
  display: inline-block;
660
+ flex: 0 0 auto;
661
+ align-self: center;
660
662
  max-width: 99%;
661
663
  padding-left: 8px;
662
664
  margin: 0 0 4px 6px;
@@ -664,8 +666,6 @@
664
666
  color: var(--search-select-font-color);
665
667
  background: #f0f1f5;
666
668
  border-radius: 2px;
667
- flex: 0 0 auto;
668
- align-self: center;
669
669
  }
670
670
  .bk-search-select-container .search-container-selected.hidden-selected {
671
671
  visibility: hidden;
@@ -689,6 +689,8 @@
689
689
  top: 4px;
690
690
  right: 3px;
691
691
  display: inline-flex;
692
+ align-items: center;
693
+ justify-content: center;
692
694
  width: 14px;
693
695
  height: 14px;
694
696
  overflow: hidden;
@@ -697,21 +699,19 @@
697
699
  color: #979ba5;
698
700
  text-align: center;
699
701
  cursor: pointer;
700
- align-items: center;
701
- justify-content: center;
702
702
  }
703
703
  .bk-search-select-container .search-container-input {
704
704
  position: relative;
705
705
  display: block;
706
- height: 100%;
706
+ flex: 1;
707
707
  min-width: 40px;
708
+ height: 100%;
708
709
  padding: 0 10px;
709
710
  margin-top: -4px;
710
711
  color: var(--search-select-font-color);
711
712
  border: none;
712
- flex: 1;
713
713
  }
714
- .bk-search-select-container .search-container-input .input-before:before {
714
+ .bk-search-select-container .search-container-input .input-before::after {
715
715
  color: var(--search-select-placeholder-color);
716
716
  content: attr(data-placeholder);
717
717
  }
@@ -723,33 +723,33 @@
723
723
  .bk-search-select-container .search-container .selected-input {
724
724
  position: relative;
725
725
  display: flex;
726
- height: 100%;
726
+ align-items: center;
727
727
  min-width: 40px;
728
+ height: 100%;
728
729
  padding: 0 10px;
729
730
  margin-top: -4px;
730
731
  color: var(--search-select-font-color);
731
732
  border: none;
732
- align-items: center;
733
733
  }
734
734
  .bk-search-select-container .search-nextfix {
735
735
  position: absolute;
736
736
  top: 0;
737
737
  right: 0;
738
738
  color: var(--light-gray);
739
- flex: 0 0 auto;
740
739
  display: flex;
740
+ flex: 0 0 auto;
741
741
  align-items: center;
742
742
  height: 100%;
743
743
  }
744
744
  .bk-search-select-container .search-nextfix .search-clear {
745
745
  display: flex;
746
+ align-items: center;
747
+ justify-content: center;
746
748
  width: 12px;
747
749
  height: 12px;
748
750
  margin-right: 6px;
749
751
  font-size: 12px;
750
752
  color: var(--light-gray);
751
- align-items: center;
752
- justify-content: center;
753
753
  }
754
754
  .bk-search-select-container .search-nextfix .search-clear:hover {
755
755
  color: #979ba5;
@@ -757,11 +757,11 @@
757
757
  }
758
758
  .bk-search-select-container .search-nextfix .search-nextfix-icon {
759
759
  display: flex;
760
+ align-items: center;
761
+ justify-content: center;
760
762
  margin-right: 8px;
761
763
  font-size: 16px;
762
764
  transition: color 0.2s linear;
763
- align-items: center;
764
- justify-content: center;
765
765
  }
766
766
  .bk-search-select-container .search-nextfix .search-nextfix-icon.is-focus {
767
767
  color: var(--search-select-focus-color);
@@ -779,28 +779,28 @@
779
779
  }
780
780
  .bk-search-select-tips {
781
781
  display: flex;
782
+ align-items: center;
782
783
  margin-top: 5px;
783
784
  font-size: 12px;
784
785
  line-height: 16px;
785
786
  color: var(--search-select-message-color);
786
- align-items: center;
787
787
  }
788
788
  .bk-search-select-tips .select-tips {
789
789
  display: flex;
790
+ align-items: center;
791
+ justify-content: center;
790
792
  width: 16px;
791
793
  height: 16px;
792
794
  margin-right: 5px;
793
795
  overflow: hidden;
794
796
  font-size: 16px;
795
- align-items: center;
796
- justify-content: center;
797
797
  }
798
798
  .bk-search-select-menu {
799
799
  display: flex;
800
+ flex-direction: column;
800
801
  min-width: 200px;
801
802
  font-size: 12px;
802
803
  color: var(--search-select-font-color);
803
- flex-direction: column;
804
804
  }
805
805
  .bk-search-select-menu .menu-list-mixin {
806
806
  display: flex;
@@ -808,16 +808,16 @@
808
808
  }
809
809
  .bk-search-select-menu .menu-item-mixin {
810
810
  display: flex;
811
+ flex: 0 0 32px;
812
+ align-items: center;
811
813
  width: 100%;
812
- height: 32px;
813
814
  max-width: 500px;
815
+ height: 32px;
814
816
  padding: 0 8px;
815
817
  overflow: hidden;
816
818
  text-overflow: ellipsis;
817
819
  white-space: nowrap;
818
820
  outline: none;
819
- align-items: center;
820
- flex: 0 0 32px;
821
821
  }
822
822
  .bk-search-select-menu .menu-item-mixin:hover {
823
823
  cursor: pointer;
@@ -837,16 +837,16 @@
837
837
  }
838
838
  .bk-search-select-menu .menu-header-item {
839
839
  display: flex;
840
+ flex: 0 0 32px;
841
+ align-items: center;
840
842
  width: 100%;
841
- height: 32px;
842
843
  max-width: 500px;
844
+ height: 32px;
843
845
  padding: 0 8px;
844
846
  overflow: hidden;
845
847
  text-overflow: ellipsis;
846
848
  white-space: nowrap;
847
849
  outline: none;
848
- align-items: center;
849
- flex: 0 0 32px;
850
850
  }
851
851
  .bk-search-select-menu .menu-header-item:hover {
852
852
  cursor: pointer;
@@ -866,17 +866,17 @@
866
866
  }
867
867
  .bk-search-select-menu .menu-content-wrapper .menu-condition {
868
868
  display: flex;
869
+ flex: 0 0 64px;
870
+ flex-direction: column;
869
871
  width: 64px;
870
872
  padding: 8px 8px 2px 10px;
871
873
  background-color: #f5f7fa;
872
- flex-direction: column;
873
- flex: 0 0 64px;
874
874
  }
875
875
  .bk-search-select-menu .menu-content-wrapper .menu-condition-title {
876
876
  display: flex;
877
+ align-items: center;
877
878
  margin-bottom: 12px;
878
879
  line-height: 24px;
879
- align-items: center;
880
880
  }
881
881
  .bk-search-select-menu .menu-content-wrapper .menu-condition .bk-radio {
882
882
  width: 50px;
@@ -887,24 +887,24 @@
887
887
  }
888
888
  .bk-search-select-menu .menu-content {
889
889
  display: flex;
890
+ flex: 1;
891
+ flex-direction: column;
890
892
  padding: 4px 0;
891
893
  margin: 0;
892
894
  overflow: auto;
893
- flex-direction: column;
894
- flex: 1;
895
895
  }
896
896
  .bk-search-select-menu .menu-content .menu-item {
897
897
  display: flex;
898
+ flex: 0 0 32px;
899
+ align-items: center;
898
900
  width: 100%;
899
- height: 32px;
900
901
  max-width: 500px;
902
+ height: 32px;
901
903
  padding: 0 8px;
902
904
  overflow: hidden;
903
905
  text-overflow: ellipsis;
904
906
  white-space: nowrap;
905
907
  outline: none;
906
- align-items: center;
907
- flex: 0 0 32px;
908
908
  white-space: pre;
909
909
  }
910
910
  .bk-search-select-menu .menu-content .menu-item:hover {
@@ -939,21 +939,21 @@
939
939
  }
940
940
  .bk-search-select-menu .menu-content .menu-item .menu-name {
941
941
  display: flex;
942
+ align-items: center;
942
943
  margin-right: 5px;
943
944
  font-weight: bold;
944
945
  color: var(--search-select-font-color);
945
- align-items: center;
946
946
  }
947
947
  .bk-search-select-menu .menu-footer {
948
948
  display: flex;
949
+ align-items: center;
949
950
  width: 100%;
950
951
  height: 32px;
951
952
  border-top: var(--border-width-base) var(--border-style-base) var(--search-select-menu-border-color);
952
- align-items: center;
953
953
  }
954
954
  .bk-search-select-menu .menu-footer-btn {
955
- flex: 1;
956
955
  display: flex;
956
+ flex: 1;
957
957
  align-items: center;
958
958
  justify-content: center;
959
959
  height: 100%;
@@ -245,6 +245,11 @@ declare const BkSelect: {
245
245
  } & {
246
246
  default: string;
247
247
  };
248
+ hideIgnoreReference: import("vue-types").VueTypeValidableDef<boolean> & {
249
+ default: boolean;
250
+ } & {
251
+ default: boolean;
252
+ };
248
253
  componentEventDelay: import("vue-types").VueTypeValidableDef<number> & {
249
254
  default: number;
250
255
  } & {
@@ -710,6 +715,11 @@ declare const BkSelect: {
710
715
  } & {
711
716
  default: string;
712
717
  };
718
+ hideIgnoreReference: import("vue-types").VueTypeValidableDef<boolean> & {
719
+ default: boolean;
720
+ } & {
721
+ default: boolean;
722
+ };
713
723
  componentEventDelay: import("vue-types").VueTypeValidableDef<number> & {
714
724
  default: number;
715
725
  } & {
@@ -999,6 +1009,11 @@ declare const BkSelect: {
999
1009
  } & {
1000
1010
  default: string;
1001
1011
  };
1012
+ hideIgnoreReference: import("vue-types").VueTypeValidableDef<boolean> & {
1013
+ default: boolean;
1014
+ } & {
1015
+ default: boolean;
1016
+ };
1002
1017
  componentEventDelay: import("vue-types").VueTypeValidableDef<number> & {
1003
1018
  default: number;
1004
1019
  } & {
@@ -1405,6 +1420,11 @@ declare const BkSelect: {
1405
1420
  } & {
1406
1421
  default: string;
1407
1422
  };
1423
+ hideIgnoreReference: import("vue-types").VueTypeValidableDef<boolean> & {
1424
+ default: boolean;
1425
+ } & {
1426
+ default: boolean;
1427
+ };
1408
1428
  componentEventDelay: import("vue-types").VueTypeValidableDef<number> & {
1409
1429
  default: number;
1410
1430
  } & {
@@ -1870,6 +1890,11 @@ declare const BkSelect: {
1870
1890
  } & {
1871
1891
  default: string;
1872
1892
  };
1893
+ hideIgnoreReference: import("vue-types").VueTypeValidableDef<boolean> & {
1894
+ default: boolean;
1895
+ } & {
1896
+ default: boolean;
1897
+ };
1873
1898
  componentEventDelay: import("vue-types").VueTypeValidableDef<number> & {
1874
1899
  default: number;
1875
1900
  } & {
@@ -2209,6 +2234,11 @@ declare const BkSelect: {
2209
2234
  } & {
2210
2235
  default: string;
2211
2236
  };
2237
+ hideIgnoreReference: import("vue-types").VueTypeValidableDef<boolean> & {
2238
+ default: boolean;
2239
+ } & {
2240
+ default: boolean;
2241
+ };
2212
2242
  componentEventDelay: import("vue-types").VueTypeValidableDef<number> & {
2213
2243
  default: number;
2214
2244
  } & {
@@ -2674,6 +2704,11 @@ declare const BkSelect: {
2674
2704
  } & {
2675
2705
  default: string;
2676
2706
  };
2707
+ hideIgnoreReference: import("vue-types").VueTypeValidableDef<boolean> & {
2708
+ default: boolean;
2709
+ } & {
2710
+ default: boolean;
2711
+ };
2677
2712
  componentEventDelay: import("vue-types").VueTypeValidableDef<number> & {
2678
2713
  default: number;
2679
2714
  } & {
@@ -2419,6 +2419,8 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
2419
2419
  };
2420
2420
  var handleKeydown = function handleKeydown(e) {
2421
2421
  switch (e.code) {
2422
+ // 主键盘及数字小键盘的 Enter
2423
+ case 'NumpadEnter':
2422
2424
  case 'Enter':
2423
2425
  {
2424
2426
  emit('enter', e.target.value, e);
@@ -3375,6 +3377,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3375
3377
  break;
3376
3378
  }
3377
3379
  // 选择选项
3380
+ case 'NumpadEnter':
3378
3381
  case 'Enter':
3379
3382
  {
3380
3383
  var value = e.target.value;