bkui-vue 2.0.1-beta.103 → 2.0.1-beta.105

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.
@@ -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%;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "2.0.1-beta.103",
3
+ "version": "2.0.1-beta.105",
4
4
  "workspaces": [
5
5
  "packages/**",
6
6
  "scripts/cli",