bkui-vue 2.0.1-beta.78 → 2.0.1-beta.79
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 +30 -30
- package/dist/index.esm.js +4233 -4228
- package/dist/index.umd.js +28 -28
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/button/button.css +188 -144
- package/lib/button/button.less +74 -71
- package/lib/button/button.variable.css +188 -144
- package/lib/index.js +1 -1
- package/lib/overflow-title/index.js +15 -7
- package/lib/select/index.js +8 -6
- package/lib/table/table.css +188 -144
- package/lib/table/table.variable.css +188 -144
- package/lib/tag-input/index.js +18 -9
- package/package.json +1 -1
@@ -794,310 +794,354 @@
|
|
794
794
|
align-items: center;
|
795
795
|
justify-content: center;
|
796
796
|
}
|
797
|
-
.bk-button.bk-button-
|
797
|
+
.bk-button.bk-button-small {
|
798
|
+
height: var(--component-size-small);
|
799
|
+
padding: var(--component-size-small-padding);
|
800
|
+
font-size: var(--font-size-base);
|
801
|
+
}
|
802
|
+
.bk-button.bk-button-large {
|
803
|
+
height: var(--component-size-large);
|
804
|
+
padding: var(--component-size-large-padding);
|
805
|
+
font-size: var(--font-size-large);
|
806
|
+
}
|
807
|
+
.bk-button .bk-button-text {
|
808
|
+
display: inline-flex;
|
809
|
+
align-items: center;
|
810
|
+
line-height: 1;
|
811
|
+
}
|
812
|
+
.bk-button.is-loading {
|
813
|
+
position: relative;
|
814
|
+
}
|
815
|
+
.bk-button.is-loading .bk-button-loading:not(:last-child) {
|
816
|
+
position: absolute;
|
817
|
+
}
|
818
|
+
.bk-button.is-loading .bk-button-text {
|
819
|
+
visibility: hidden;
|
820
|
+
}
|
821
|
+
.bk-button:hover {
|
822
|
+
border-color: var(--button-default-hover-border-color);
|
823
|
+
}
|
824
|
+
.bk-button:active {
|
825
|
+
color: var(--primary-color);
|
826
|
+
border-color: var(--primary-color);
|
827
|
+
}
|
828
|
+
.bk-button.is-text {
|
829
|
+
height: auto;
|
830
|
+
padding: 0;
|
831
|
+
font-size: inherit;
|
832
|
+
color: var(--default-color);
|
833
|
+
text-decoration: none;
|
834
|
+
cursor: pointer;
|
835
|
+
background-color: transparent;
|
836
|
+
border: none;
|
837
|
+
outline: none;
|
838
|
+
}
|
839
|
+
.bk-button.is-disabled {
|
840
|
+
color: var(--disable-color);
|
841
|
+
cursor: not-allowed;
|
842
|
+
border-color: var(--disable-color);
|
843
|
+
}
|
844
|
+
.bk-button.is-disabled:not(.is-text) {
|
845
|
+
background-color: var(--disable-bg-color);
|
846
|
+
}
|
847
|
+
.bk-button-group {
|
848
|
+
display: inline-block;
|
849
|
+
font-size: 0;
|
850
|
+
}
|
851
|
+
.bk-button-group.bk-button-group-small .bk-button {
|
852
|
+
height: var(--component-size-small);
|
853
|
+
padding: var(--component-size-small-padding);
|
854
|
+
font-size: var(--font-size-base);
|
855
|
+
}
|
856
|
+
.bk-button-group.bk-button-group-large .bk-button {
|
857
|
+
height: var(--component-size-large);
|
858
|
+
padding: var(--component-size-large-padding);
|
859
|
+
font-size: var(--font-size-large);
|
860
|
+
}
|
861
|
+
.bk-button-group .bk-button {
|
862
|
+
height: var(--component-size-base);
|
863
|
+
margin: 0 0 0 -1px;
|
864
|
+
border-radius: 0;
|
865
|
+
}
|
866
|
+
.bk-button-group .bk-button:not(.is-disabled) {
|
867
|
+
color: var(--default-color);
|
868
|
+
background-color: var(--white-color);
|
869
|
+
border-color: var(--light-gray);
|
870
|
+
}
|
871
|
+
.bk-button-group .bk-button.is-disabled {
|
872
|
+
color: var(--light-gray);
|
873
|
+
}
|
874
|
+
.bk-button-group .bk-button:first-child {
|
875
|
+
border-radius: var(--border-radius-base) 0 0 var(--border-radius-base);
|
876
|
+
}
|
877
|
+
.bk-button-group .bk-button:last-child {
|
878
|
+
border-radius: 0 var(--border-radius-base) var(--border-radius-base) 0;
|
879
|
+
}
|
880
|
+
.bk-button-group .bk-button:only-child {
|
881
|
+
border-radius: var(--border-radius-base);
|
882
|
+
}
|
883
|
+
.bk-button-group .bk-button:hover:not(.is-disabled),
|
884
|
+
.bk-button-group .bk-button.is-selected:not(.is-disabled) {
|
885
|
+
position: relative;
|
886
|
+
z-index: 1;
|
887
|
+
color: var(--primary-color);
|
888
|
+
background-color: var(--white-color);
|
889
|
+
border-color: var(--primary-color);
|
890
|
+
}
|
891
|
+
.bk-button-group .bk-button.is-selected:not(.is-disabled) {
|
892
|
+
background-color: var(--button-selected-bg-color);
|
893
|
+
}
|
894
|
+
.bk-button-group .bk-button.is-selected.is-disabled {
|
895
|
+
background-color: var(--button-disabled-selected-bg-color);
|
896
|
+
}
|
897
|
+
.bk-button.bk-button-primary,
|
898
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-primary {
|
798
899
|
background-color: var(--primary-color);
|
799
900
|
color: var(--white-color);
|
800
901
|
border-color: var(--primary-color);
|
801
902
|
}
|
802
|
-
.bk-button.bk-button-primary:hover
|
903
|
+
.bk-button.bk-button-primary:hover,
|
904
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-primary:hover {
|
803
905
|
background-color: var(--button-primary-hover-color);
|
804
906
|
border-color: var(--button-primary-hover-color);
|
805
907
|
}
|
806
|
-
.bk-button.bk-button-primary:active
|
908
|
+
.bk-button.bk-button-primary:active,
|
909
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-primary:active {
|
807
910
|
background-color: var(--button-primary-active-color);
|
808
911
|
border-color: var(--button-primary-active-color);
|
809
912
|
color: var(--white-color);
|
810
913
|
}
|
811
|
-
.bk-button.bk-button-primary.is-outline
|
914
|
+
.bk-button.bk-button-primary.is-outline,
|
915
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-primary.is-outline {
|
812
916
|
color: var(--primary-color);
|
813
917
|
border-color: var(--primary-color);
|
814
918
|
background-color: var(--white-color);
|
815
919
|
}
|
816
|
-
.bk-button.bk-button-primary.is-outline:hover
|
920
|
+
.bk-button.bk-button-primary.is-outline:hover,
|
921
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-primary.is-outline:hover {
|
817
922
|
background-color: var(--button-primary-hover-color);
|
818
923
|
border-color: var(--button-primary-hover-color);
|
819
924
|
color: var(--white-color);
|
820
925
|
}
|
821
|
-
.bk-button.bk-button-primary.is-outline:active
|
926
|
+
.bk-button.bk-button-primary.is-outline:active,
|
927
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-primary.is-outline:active {
|
822
928
|
background-color: var(--button-primary-active-color);
|
823
929
|
border-color: var(--button-primary-active-color);
|
824
930
|
color: var(--white-color);
|
825
931
|
}
|
826
|
-
.bk-button.bk-button-primary.is-text
|
932
|
+
.bk-button.bk-button-primary.is-text,
|
933
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-primary.is-text {
|
827
934
|
color: var(--primary-color);
|
828
935
|
background-color: transparent;
|
829
936
|
border: none;
|
830
937
|
}
|
831
|
-
.bk-button.bk-button-primary.is-text:not(.is-disabled):hover
|
938
|
+
.bk-button.bk-button-primary.is-text:not(.is-disabled):hover,
|
939
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-primary.is-text:not(.is-disabled):hover {
|
832
940
|
color: var(--button-primary-hover-color);
|
833
941
|
}
|
834
|
-
.bk-button.bk-button-primary.is-disabled
|
942
|
+
.bk-button.bk-button-primary.is-disabled,
|
943
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-primary.is-disabled {
|
835
944
|
color: var(--disable-color);
|
836
945
|
cursor: not-allowed;
|
837
946
|
}
|
838
|
-
.bk-button.bk-button-primary.is-disabled:not(.is-text)
|
947
|
+
.bk-button.bk-button-primary.is-disabled:not(.is-text),
|
948
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-primary.is-disabled:not(.is-text) {
|
839
949
|
background-color: var(--disable-color);
|
840
950
|
color: var(--white-color);
|
841
951
|
border-color: var(--disable-color);
|
842
952
|
}
|
843
|
-
.bk-button.bk-button-hover-primary:hover
|
953
|
+
.bk-button.bk-button-hover-primary:hover,
|
954
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-hover-primary:hover {
|
844
955
|
background-color: var(--button-primary-hover-color);
|
845
956
|
border-color: var(--button-primary-hover-color);
|
846
957
|
color: var(--white-color);
|
847
958
|
}
|
848
|
-
.bk-button.bk-button-warning
|
959
|
+
.bk-button.bk-button-warning,
|
960
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-warning {
|
849
961
|
background-color: var(--warning-color);
|
850
962
|
color: var(--white-color);
|
851
963
|
border-color: var(--warning-color);
|
852
964
|
}
|
853
|
-
.bk-button.bk-button-warning:hover
|
965
|
+
.bk-button.bk-button-warning:hover,
|
966
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-warning:hover {
|
854
967
|
background-color: var(--button-warning-hover-color);
|
855
968
|
border-color: var(--button-warning-hover-color);
|
856
969
|
}
|
857
|
-
.bk-button.bk-button-warning:active
|
970
|
+
.bk-button.bk-button-warning:active,
|
971
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-warning:active {
|
858
972
|
background-color: var(--button-warning-active-color);
|
859
973
|
border-color: var(--button-warning-active-color);
|
860
974
|
color: var(--white-color);
|
861
975
|
}
|
862
|
-
.bk-button.bk-button-warning.is-outline
|
976
|
+
.bk-button.bk-button-warning.is-outline,
|
977
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-warning.is-outline {
|
863
978
|
color: var(--warning-color);
|
864
979
|
border-color: var(--warning-color);
|
865
980
|
background-color: var(--white-color);
|
866
981
|
}
|
867
|
-
.bk-button.bk-button-warning.is-outline:hover
|
982
|
+
.bk-button.bk-button-warning.is-outline:hover,
|
983
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-warning.is-outline:hover {
|
868
984
|
background-color: var(--button-warning-hover-color);
|
869
985
|
border-color: var(--button-warning-hover-color);
|
870
986
|
color: var(--white-color);
|
871
987
|
}
|
872
|
-
.bk-button.bk-button-warning.is-outline:active
|
988
|
+
.bk-button.bk-button-warning.is-outline:active,
|
989
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-warning.is-outline:active {
|
873
990
|
background-color: var(--button-warning-active-color);
|
874
991
|
border-color: var(--button-warning-active-color);
|
875
992
|
color: var(--white-color);
|
876
993
|
}
|
877
|
-
.bk-button.bk-button-warning.is-text
|
994
|
+
.bk-button.bk-button-warning.is-text,
|
995
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-warning.is-text {
|
878
996
|
color: var(--warning-color);
|
879
997
|
background-color: transparent;
|
880
998
|
border: none;
|
881
999
|
}
|
882
|
-
.bk-button.bk-button-warning.is-text:not(.is-disabled):hover
|
1000
|
+
.bk-button.bk-button-warning.is-text:not(.is-disabled):hover,
|
1001
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-warning.is-text:not(.is-disabled):hover {
|
883
1002
|
color: var(--button-warning-hover-color);
|
884
1003
|
}
|
885
|
-
.bk-button.bk-button-warning.is-disabled
|
1004
|
+
.bk-button.bk-button-warning.is-disabled,
|
1005
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-warning.is-disabled {
|
886
1006
|
color: var(--disable-color);
|
887
1007
|
cursor: not-allowed;
|
888
1008
|
}
|
889
|
-
.bk-button.bk-button-warning.is-disabled:not(.is-text)
|
1009
|
+
.bk-button.bk-button-warning.is-disabled:not(.is-text),
|
1010
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-warning.is-disabled:not(.is-text) {
|
890
1011
|
background-color: var(--disable-color);
|
891
1012
|
color: var(--white-color);
|
892
1013
|
border-color: var(--disable-color);
|
893
1014
|
}
|
894
|
-
.bk-button.bk-button-hover-warning:hover
|
1015
|
+
.bk-button.bk-button-hover-warning:hover,
|
1016
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-hover-warning:hover {
|
895
1017
|
background-color: var(--button-warning-hover-color);
|
896
1018
|
border-color: var(--button-warning-hover-color);
|
897
1019
|
color: var(--white-color);
|
898
1020
|
}
|
899
|
-
.bk-button.bk-button-success
|
1021
|
+
.bk-button.bk-button-success,
|
1022
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-success {
|
900
1023
|
background-color: var(--success-color);
|
901
1024
|
color: var(--white-color);
|
902
1025
|
border-color: var(--success-color);
|
903
1026
|
}
|
904
|
-
.bk-button.bk-button-success:hover
|
1027
|
+
.bk-button.bk-button-success:hover,
|
1028
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-success:hover {
|
905
1029
|
background-color: var(--button-success-hover-color);
|
906
1030
|
border-color: var(--button-success-hover-color);
|
907
1031
|
}
|
908
|
-
.bk-button.bk-button-success:active
|
1032
|
+
.bk-button.bk-button-success:active,
|
1033
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-success:active {
|
909
1034
|
background-color: var(--button-success-active-color);
|
910
1035
|
border-color: var(--button-success-active-color);
|
911
1036
|
color: var(--white-color);
|
912
1037
|
}
|
913
|
-
.bk-button.bk-button-success.is-outline
|
1038
|
+
.bk-button.bk-button-success.is-outline,
|
1039
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-success.is-outline {
|
914
1040
|
color: var(--success-color);
|
915
1041
|
border-color: var(--success-color);
|
916
1042
|
background-color: var(--white-color);
|
917
1043
|
}
|
918
|
-
.bk-button.bk-button-success.is-outline:hover
|
1044
|
+
.bk-button.bk-button-success.is-outline:hover,
|
1045
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-success.is-outline:hover {
|
919
1046
|
background-color: var(--button-success-hover-color);
|
920
1047
|
border-color: var(--button-success-hover-color);
|
921
1048
|
color: var(--white-color);
|
922
1049
|
}
|
923
|
-
.bk-button.bk-button-success.is-outline:active
|
1050
|
+
.bk-button.bk-button-success.is-outline:active,
|
1051
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-success.is-outline:active {
|
924
1052
|
background-color: var(--button-success-active-color);
|
925
1053
|
border-color: var(--button-success-active-color);
|
926
1054
|
color: var(--white-color);
|
927
1055
|
}
|
928
|
-
.bk-button.bk-button-success.is-text
|
1056
|
+
.bk-button.bk-button-success.is-text,
|
1057
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-success.is-text {
|
929
1058
|
color: var(--success-color);
|
930
1059
|
background-color: transparent;
|
931
1060
|
border: none;
|
932
1061
|
}
|
933
|
-
.bk-button.bk-button-success.is-text:not(.is-disabled):hover
|
1062
|
+
.bk-button.bk-button-success.is-text:not(.is-disabled):hover,
|
1063
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-success.is-text:not(.is-disabled):hover {
|
934
1064
|
color: var(--button-success-hover-color);
|
935
1065
|
}
|
936
|
-
.bk-button.bk-button-success.is-disabled
|
1066
|
+
.bk-button.bk-button-success.is-disabled,
|
1067
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-success.is-disabled {
|
937
1068
|
color: var(--disable-color);
|
938
1069
|
cursor: not-allowed;
|
939
1070
|
}
|
940
|
-
.bk-button.bk-button-success.is-disabled:not(.is-text)
|
1071
|
+
.bk-button.bk-button-success.is-disabled:not(.is-text),
|
1072
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-success.is-disabled:not(.is-text) {
|
941
1073
|
background-color: var(--disable-color);
|
942
1074
|
color: var(--white-color);
|
943
1075
|
border-color: var(--disable-color);
|
944
1076
|
}
|
945
|
-
.bk-button.bk-button-hover-success:hover
|
1077
|
+
.bk-button.bk-button-hover-success:hover,
|
1078
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-hover-success:hover {
|
946
1079
|
background-color: var(--button-success-hover-color);
|
947
1080
|
border-color: var(--button-success-hover-color);
|
948
1081
|
color: var(--white-color);
|
949
1082
|
}
|
950
|
-
.bk-button.bk-button-danger
|
1083
|
+
.bk-button.bk-button-danger,
|
1084
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-danger {
|
951
1085
|
background-color: var(--danger-color);
|
952
1086
|
color: var(--white-color);
|
953
1087
|
border-color: var(--danger-color);
|
954
1088
|
}
|
955
|
-
.bk-button.bk-button-danger:hover
|
1089
|
+
.bk-button.bk-button-danger:hover,
|
1090
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-danger:hover {
|
956
1091
|
background-color: var(--button-danger-hover-color);
|
957
1092
|
border-color: var(--button-danger-hover-color);
|
958
1093
|
}
|
959
|
-
.bk-button.bk-button-danger:active
|
1094
|
+
.bk-button.bk-button-danger:active,
|
1095
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-danger:active {
|
960
1096
|
background-color: var(--button-danger-active-color);
|
961
1097
|
border-color: var(--button-danger-active-color);
|
962
1098
|
color: var(--white-color);
|
963
1099
|
}
|
964
|
-
.bk-button.bk-button-danger.is-outline
|
1100
|
+
.bk-button.bk-button-danger.is-outline,
|
1101
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-danger.is-outline {
|
965
1102
|
color: var(--danger-color);
|
966
1103
|
border-color: var(--danger-color);
|
967
1104
|
background-color: var(--white-color);
|
968
1105
|
}
|
969
|
-
.bk-button.bk-button-danger.is-outline:hover
|
1106
|
+
.bk-button.bk-button-danger.is-outline:hover,
|
1107
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-danger.is-outline:hover {
|
970
1108
|
background-color: var(--button-danger-hover-color);
|
971
1109
|
border-color: var(--button-danger-hover-color);
|
972
1110
|
color: var(--white-color);
|
973
1111
|
}
|
974
|
-
.bk-button.bk-button-danger.is-outline:active
|
1112
|
+
.bk-button.bk-button-danger.is-outline:active,
|
1113
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-danger.is-outline:active {
|
975
1114
|
background-color: var(--button-danger-active-color);
|
976
1115
|
border-color: var(--button-danger-active-color);
|
977
1116
|
color: var(--white-color);
|
978
1117
|
}
|
979
|
-
.bk-button.bk-button-danger.is-text
|
1118
|
+
.bk-button.bk-button-danger.is-text,
|
1119
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-danger.is-text {
|
980
1120
|
color: var(--danger-color);
|
981
1121
|
background-color: transparent;
|
982
1122
|
border: none;
|
983
1123
|
}
|
984
|
-
.bk-button.bk-button-danger.is-text:not(.is-disabled):hover
|
1124
|
+
.bk-button.bk-button-danger.is-text:not(.is-disabled):hover,
|
1125
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-danger.is-text:not(.is-disabled):hover {
|
985
1126
|
color: var(--button-danger-hover-color);
|
986
1127
|
}
|
987
|
-
.bk-button.bk-button-danger.is-disabled
|
1128
|
+
.bk-button.bk-button-danger.is-disabled,
|
1129
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-danger.is-disabled {
|
988
1130
|
color: var(--disable-color);
|
989
1131
|
cursor: not-allowed;
|
990
1132
|
}
|
991
|
-
.bk-button.bk-button-danger.is-disabled:not(.is-text)
|
1133
|
+
.bk-button.bk-button-danger.is-disabled:not(.is-text),
|
1134
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-danger.is-disabled:not(.is-text) {
|
992
1135
|
background-color: var(--disable-color);
|
993
1136
|
color: var(--white-color);
|
994
1137
|
border-color: var(--disable-color);
|
995
1138
|
}
|
996
|
-
.bk-button.bk-button-hover-danger:hover
|
1139
|
+
.bk-button.bk-button-hover-danger:hover,
|
1140
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-hover-danger:hover {
|
997
1141
|
background-color: var(--button-danger-hover-color);
|
998
1142
|
border-color: var(--button-danger-hover-color);
|
999
1143
|
color: var(--white-color);
|
1000
1144
|
}
|
1001
|
-
.bk-button.bk-button-small {
|
1002
|
-
height: var(--component-size-small);
|
1003
|
-
padding: var(--component-size-small-padding);
|
1004
|
-
font-size: var(--font-size-base);
|
1005
|
-
}
|
1006
|
-
.bk-button.bk-button-large {
|
1007
|
-
height: var(--component-size-large);
|
1008
|
-
padding: var(--component-size-large-padding);
|
1009
|
-
font-size: var(--font-size-large);
|
1010
|
-
}
|
1011
|
-
.bk-button .bk-button-text {
|
1012
|
-
display: inline-flex;
|
1013
|
-
align-items: center;
|
1014
|
-
line-height: 1;
|
1015
|
-
}
|
1016
|
-
.bk-button.is-loading {
|
1017
|
-
position: relative;
|
1018
|
-
}
|
1019
|
-
.bk-button.is-loading .bk-button-loading:not(:last-child) {
|
1020
|
-
position: absolute;
|
1021
|
-
}
|
1022
|
-
.bk-button.is-loading .bk-button-text {
|
1023
|
-
visibility: hidden;
|
1024
|
-
}
|
1025
|
-
.bk-button:hover {
|
1026
|
-
border-color: var(--button-default-hover-border-color);
|
1027
|
-
}
|
1028
|
-
.bk-button:active {
|
1029
|
-
color: var(--primary-color);
|
1030
|
-
border-color: var(--primary-color);
|
1031
|
-
}
|
1032
|
-
.bk-button.is-text {
|
1033
|
-
height: auto;
|
1034
|
-
padding: 0;
|
1035
|
-
font-size: inherit;
|
1036
|
-
color: var(--default-color);
|
1037
|
-
text-decoration: none;
|
1038
|
-
cursor: pointer;
|
1039
|
-
background-color: transparent;
|
1040
|
-
border: none;
|
1041
|
-
outline: none;
|
1042
|
-
}
|
1043
|
-
.bk-button.is-disabled {
|
1044
|
-
color: var(--disable-color);
|
1045
|
-
cursor: not-allowed;
|
1046
|
-
border-color: var(--disable-color);
|
1047
|
-
}
|
1048
|
-
.bk-button.is-disabled:not(.is-text) {
|
1049
|
-
background-color: var(--disable-bg-color);
|
1050
|
-
}
|
1051
|
-
.bk-button-group {
|
1052
|
-
display: inline-block;
|
1053
|
-
font-size: 0;
|
1054
|
-
}
|
1055
|
-
.bk-button-group.bk-button-group-small .bk-button {
|
1056
|
-
height: var(--component-size-small);
|
1057
|
-
padding: var(--component-size-small-padding);
|
1058
|
-
font-size: var(--font-size-base);
|
1059
|
-
}
|
1060
|
-
.bk-button-group.bk-button-group-large .bk-button {
|
1061
|
-
height: var(--component-size-large);
|
1062
|
-
padding: var(--component-size-large-padding);
|
1063
|
-
font-size: var(--font-size-large);
|
1064
|
-
}
|
1065
|
-
.bk-button-group .bk-button {
|
1066
|
-
height: var(--component-size-base);
|
1067
|
-
margin: 0 0 0 -1px;
|
1068
|
-
border-radius: 0;
|
1069
|
-
}
|
1070
|
-
.bk-button-group .bk-button:not(.is-disabled) {
|
1071
|
-
color: var(--default-color);
|
1072
|
-
background-color: var(--white-color);
|
1073
|
-
border-color: var(--light-gray);
|
1074
|
-
}
|
1075
|
-
.bk-button-group .bk-button.is-disabled {
|
1076
|
-
color: var(--light-gray);
|
1077
|
-
}
|
1078
|
-
.bk-button-group .bk-button:first-child {
|
1079
|
-
border-radius: var(--border-radius-base) 0 0 var(--border-radius-base);
|
1080
|
-
}
|
1081
|
-
.bk-button-group .bk-button:last-child {
|
1082
|
-
border-radius: 0 var(--border-radius-base) var(--border-radius-base) 0;
|
1083
|
-
}
|
1084
|
-
.bk-button-group .bk-button:only-child {
|
1085
|
-
border-radius: var(--border-radius-base);
|
1086
|
-
}
|
1087
|
-
.bk-button-group .bk-button:hover:not(.is-disabled),
|
1088
|
-
.bk-button-group .bk-button.is-selected:not(.is-disabled) {
|
1089
|
-
position: relative;
|
1090
|
-
z-index: 1;
|
1091
|
-
color: var(--primary-color);
|
1092
|
-
background-color: var(--white-color);
|
1093
|
-
border-color: var(--primary-color);
|
1094
|
-
}
|
1095
|
-
.bk-button-group .bk-button.is-selected:not(.is-disabled) {
|
1096
|
-
background-color: var(--button-selected-bg-color);
|
1097
|
-
}
|
1098
|
-
.bk-button-group .bk-button.is-selected.is-disabled {
|
1099
|
-
background-color: var(--button-disabled-selected-bg-color);
|
1100
|
-
}
|
1101
1145
|
.bk-exception {
|
1102
1146
|
position: relative;
|
1103
1147
|
display: flex;
|
package/lib/tag-input/index.js
CHANGED
@@ -18062,15 +18062,18 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
18062
18062
|
if (props.useGroup) {
|
18063
18063
|
var groupMap = {};
|
18064
18064
|
pageState.curPageList.forEach(function (item, index) {
|
18065
|
+
var _item$group, _item$group2, _groupMap$curGroupId;
|
18066
|
+
var curGroupId = (_item$group = item.group) === null || _item$group === void 0 ? void 0 : _item$group.groupId;
|
18067
|
+
var curGroupName = (_item$group2 = item.group) === null || _item$group2 === void 0 ? void 0 : _item$group2.groupName;
|
18065
18068
|
item.__index__ = index;
|
18066
|
-
if (!groupMap[
|
18067
|
-
groupMap[
|
18068
|
-
id:
|
18069
|
-
name:
|
18069
|
+
if (curGroupId && !groupMap[curGroupId]) {
|
18070
|
+
groupMap[curGroupId] = {
|
18071
|
+
id: curGroupId,
|
18072
|
+
name: curGroupName,
|
18070
18073
|
children: []
|
18071
18074
|
};
|
18072
18075
|
}
|
18073
|
-
groupMap[
|
18076
|
+
groupMap === null || groupMap === void 0 || (_groupMap$curGroupId = groupMap[curGroupId]) === null || _groupMap$curGroupId === void 0 || _groupMap$curGroupId.children.push(item);
|
18074
18077
|
});
|
18075
18078
|
return Object.keys(groupMap).map(function (key) {
|
18076
18079
|
return groupMap[key];
|
@@ -18292,6 +18295,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
18292
18295
|
};
|
18293
18296
|
var clearInput = function clearInput() {
|
18294
18297
|
curInputValue.value = '';
|
18298
|
+
tagInputRef.value.style.width = "".concat(INPUT_MIN_WIDTH, "px");
|
18295
18299
|
};
|
18296
18300
|
/**
|
18297
18301
|
* 获取输入框元素位置
|
@@ -18302,7 +18306,10 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
18302
18306
|
return 0;
|
18303
18307
|
}
|
18304
18308
|
var childNodes = getSelectedTagNodes();
|
18305
|
-
|
18309
|
+
// 聚焦的时候会存在空节点,导致backspace需要点击多次才能删除tag
|
18310
|
+
var index = childNodes.filter(function (item) {
|
18311
|
+
return item.className !== '';
|
18312
|
+
}).findIndex(function (_ref4) {
|
18306
18313
|
var id = _ref4.id;
|
18307
18314
|
return id === 'tagInputItem';
|
18308
18315
|
});
|
@@ -18331,7 +18338,9 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
18331
18338
|
if (charLen) {
|
18332
18339
|
filterData(value);
|
18333
18340
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
18334
|
-
|
18341
|
+
// getBoundingClientRect获取宽度在中文输入法输入的时候会存在为0的情况,导致不显示输入的内容,按回车以后光标在最前面,所以需要提供默认值
|
18342
|
+
var tagInputWidth = inputValueRef.value.getBoundingClientRect().width || charLen * INPUT_MIN_WIDTH;
|
18343
|
+
tagInputRef.value.style.width = "".concat(tagInputWidth, "px");
|
18335
18344
|
});
|
18336
18345
|
} else {
|
18337
18346
|
if (trigger === 'focus') {
|
@@ -18487,12 +18496,12 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
18487
18496
|
swapElementPositions(tagInputItemRef.value, nodes[index - 1]);
|
18488
18497
|
listState.selectedTagList.splice(index - 1, 1);
|
18489
18498
|
focusInputTrigger();
|
18490
|
-
var isExistInit = saveKeyMap.value[target[props.saveKey]];
|
18499
|
+
var isExistInit = target && saveKeyMap.value[target[props.saveKey]];
|
18491
18500
|
// 将删除的项加入加列表
|
18492
18501
|
if ((props.allowCreate && isExistInit || !props.allowCreate) && !isSingleSelect.value) {
|
18493
18502
|
listState.localList.push(target);
|
18494
18503
|
}
|
18495
|
-
tagInputRef.value = "".concat(INPUT_MIN_WIDTH, "px");
|
18504
|
+
tagInputRef.value.style.width = "".concat(INPUT_MIN_WIDTH, "px");
|
18496
18505
|
handleChange('remove');
|
18497
18506
|
};
|
18498
18507
|
var handleKeydown = function handleKeydown(e) {
|