giime 0.7.18 → 0.7.20
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.css +118 -118
- package/es/components/src/base/button/Button.vue.d.ts +13 -11
- package/es/components/src/base/button/Button.vue2.mjs +29 -14
- package/es/components/src/base/button/Button.vue2.mjs.map +1 -1
- package/es/components/src/base/button/button.d.ts +4 -1
- package/es/components/src/base/button/button.mjs +6 -1
- package/es/components/src/base/button/button.mjs.map +1 -1
- package/es/components/src/base/button/index.d.ts +31 -31
- package/es/components/src/composite/operateButton/OperateButton.vue.d.ts +8 -2
- package/es/components/src/composite/operateButton/index.d.ts +8 -2
- package/es/components/src/composite/operateButton/operateButton.d.ts +4 -1
- package/es/components/src/composite/tableCustom/customOperate/customOperate.d.ts +4 -1
- package/es/giime/version.d.ts +1 -1
- package/es/giime/version.mjs +1 -1
- package/es/giime/version.mjs.map +1 -1
- package/es/hooks/base/useDictionary/index.mjs +6 -5
- package/es/hooks/base/useDictionary/index.mjs.map +1 -1
- package/es/index.css +118 -118
- package/lib/components/src/base/button/Button.vue.d.ts +13 -11
- package/lib/components/src/base/button/Button.vue2.js +27 -12
- package/lib/components/src/base/button/Button.vue2.js.map +1 -1
- package/lib/components/src/base/button/button.d.ts +4 -1
- package/lib/components/src/base/button/button.js +6 -1
- package/lib/components/src/base/button/button.js.map +1 -1
- package/lib/components/src/base/button/index.d.ts +31 -31
- package/lib/components/src/composite/operateButton/OperateButton.vue.d.ts +8 -2
- package/lib/components/src/composite/operateButton/index.d.ts +8 -2
- package/lib/components/src/composite/operateButton/operateButton.d.ts +4 -1
- package/lib/components/src/composite/tableCustom/customOperate/customOperate.d.ts +4 -1
- package/lib/giime/version.d.ts +1 -1
- package/lib/giime/version.js +1 -1
- package/lib/giime/version.js.map +1 -1
- package/lib/hooks/base/useDictionary/index.js +5 -4
- package/lib/hooks/base/useDictionary/index.js.map +1 -1
- package/lib/index.css +118 -118
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -873,56 +873,41 @@ video {
|
|
|
873
873
|
.gm-group:hover .group-hover\:gm-block {
|
|
874
874
|
display: block;
|
|
875
875
|
}
|
|
876
|
-
.gm-flex-center[data-v-c17deec9] {
|
|
877
|
-
align-items: center;
|
|
878
|
-
}
|
|
879
876
|
|
|
880
|
-
.gm-
|
|
881
|
-
|
|
877
|
+
.gm-range-number .el-form-item[data-v-1ae16d96] {
|
|
878
|
+
margin: 0;
|
|
882
879
|
}
|
|
883
|
-
|
|
884
|
-
|
|
880
|
+
|
|
881
|
+
.gm-upload-pro-preview-dialog[data-v-80b383d8] [data-v-80b383d8] .el-dialog__body {
|
|
882
|
+
padding: 0;
|
|
885
883
|
}
|
|
886
884
|
|
|
887
|
-
.
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
885
|
+
.gm-upload-pro-file-picture-card[data-v-80b383d8] [data-v-80b383d8] .el-upload-list__item, .gm-upload-pro-file-picture-card[data-v-80b383d8] [data-v-80b383d8] .el-upload--picture-card {
|
|
886
|
+
width: auto;
|
|
887
|
+
height: auto;
|
|
888
|
+
}
|
|
889
|
+
[data-v-2c351ff8] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
890
|
+
border-right: none;
|
|
893
891
|
}
|
|
894
892
|
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
transform: rotate(360deg);
|
|
898
|
-
}
|
|
893
|
+
[data-v-2c351ff8] .gmTableNoBorder .el-table__inner-wrapper:before {
|
|
894
|
+
height: 0;
|
|
899
895
|
}
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
stroke-dashoffset: 0;
|
|
904
|
-
}
|
|
905
|
-
50% {
|
|
906
|
-
stroke-dasharray: 90, 150;
|
|
907
|
-
stroke-dashoffset: -40px;
|
|
908
|
-
}
|
|
909
|
-
100% {
|
|
910
|
-
stroke-dasharray: 90, 150;
|
|
911
|
-
stroke-dashoffset: -120px;
|
|
912
|
-
}
|
|
896
|
+
|
|
897
|
+
[data-v-2c351ff8] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
|
|
898
|
+
height: 0;
|
|
913
899
|
}
|
|
914
900
|
|
|
915
|
-
|
|
916
|
-
|
|
901
|
+
[data-v-2c351ff8] .gmTableNoBorder.el-table--border:after {
|
|
902
|
+
height: 0;
|
|
917
903
|
}
|
|
918
904
|
|
|
919
|
-
|
|
920
|
-
|
|
905
|
+
[data-v-2c351ff8] .gmTableNoBorder.el-table--border:before {
|
|
906
|
+
height: 0;
|
|
921
907
|
}
|
|
922
908
|
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
height: auto;
|
|
909
|
+
[data-v-2c351ff8] .gmTableNoBorder .el-table__border-left-patch {
|
|
910
|
+
height: 0;
|
|
926
911
|
}
|
|
927
912
|
.gm-upload-pro-file {
|
|
928
913
|
line-height: normal;
|
|
@@ -966,38 +951,29 @@ video {
|
|
|
966
951
|
margin-right: 0;
|
|
967
952
|
margin-bottom: 4px;
|
|
968
953
|
}
|
|
969
|
-
[data-v-
|
|
954
|
+
[data-v-98c2e804] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
970
955
|
border-right: none;
|
|
971
956
|
}
|
|
972
957
|
|
|
973
|
-
[data-v-
|
|
958
|
+
[data-v-98c2e804] .gmTableNoBorder .el-table__inner-wrapper:before {
|
|
974
959
|
height: 0;
|
|
975
960
|
}
|
|
976
961
|
|
|
977
|
-
[data-v-
|
|
962
|
+
[data-v-98c2e804] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
|
|
978
963
|
height: 0;
|
|
979
964
|
}
|
|
980
965
|
|
|
981
|
-
[data-v-
|
|
966
|
+
[data-v-98c2e804] .gmTableNoBorder.el-table--border:after {
|
|
982
967
|
height: 0;
|
|
983
968
|
}
|
|
984
969
|
|
|
985
|
-
[data-v-
|
|
970
|
+
[data-v-98c2e804] .gmTableNoBorder.el-table--border:before {
|
|
986
971
|
height: 0;
|
|
987
972
|
}
|
|
988
973
|
|
|
989
|
-
[data-v-
|
|
974
|
+
[data-v-98c2e804] .gmTableNoBorder .el-table__border-left-patch {
|
|
990
975
|
height: 0;
|
|
991
976
|
}
|
|
992
|
-
|
|
993
|
-
.pagination-container[data-v-47d35e7b] {
|
|
994
|
-
background: #fff;
|
|
995
|
-
padding-top: 12px;
|
|
996
|
-
}
|
|
997
|
-
.pagination-container.hidden[data-v-47d35e7b] {
|
|
998
|
-
display: none;
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
977
|
.gm-number-interval-single[data-v-4e6f4d6f] {
|
|
1002
978
|
border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
|
|
1003
979
|
box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
|
|
@@ -1016,6 +992,96 @@ video {
|
|
|
1016
992
|
.gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
|
|
1017
993
|
display: flex;
|
|
1018
994
|
}
|
|
995
|
+
.gm-upload-preview-dialog[data-v-312f9322] [data-v-312f9322] .el-dialog__body {
|
|
996
|
+
padding: 0;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
.gm-upload-file-picture-card[data-v-312f9322] [data-v-312f9322] .el-upload-list__item, .gm-upload-file-picture-card[data-v-312f9322] [data-v-312f9322] .el-upload--picture-card {
|
|
1000
|
+
width: auto;
|
|
1001
|
+
height: auto;
|
|
1002
|
+
}
|
|
1003
|
+
.gm-upload-file {
|
|
1004
|
+
line-height: normal;
|
|
1005
|
+
}
|
|
1006
|
+
.gm-upload-file .el-checkbox {
|
|
1007
|
+
position: absolute;
|
|
1008
|
+
left: 10px;
|
|
1009
|
+
top: 0;
|
|
1010
|
+
z-index: 9;
|
|
1011
|
+
}
|
|
1012
|
+
.gm-upload-file .el-upload-list--picture-card {
|
|
1013
|
+
gap: 10px;
|
|
1014
|
+
}
|
|
1015
|
+
.gm-upload-file .el-upload-list__item {
|
|
1016
|
+
margin: 0;
|
|
1017
|
+
}
|
|
1018
|
+
.gm-upload-file .el-upload-list__item-file-name {
|
|
1019
|
+
line-height: normal;
|
|
1020
|
+
}
|
|
1021
|
+
.gm-upload-file .el-upload-dragger {
|
|
1022
|
+
padding: 0;
|
|
1023
|
+
border: none;
|
|
1024
|
+
width: 100%;
|
|
1025
|
+
height: 100%;
|
|
1026
|
+
display: flex;
|
|
1027
|
+
}
|
|
1028
|
+
.gm-upload-file .el-upload--picture-card {
|
|
1029
|
+
border: none;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
.gm-upload-file-disabled .el-upload--picture-card {
|
|
1033
|
+
display: none;
|
|
1034
|
+
}
|
|
1035
|
+
.gm-upload-file-disabled .el-upload-list__item-status-label {
|
|
1036
|
+
display: none;
|
|
1037
|
+
}
|
|
1038
|
+
.gm-flex-center[data-v-c17deec9] {
|
|
1039
|
+
align-items: center;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
.gm-flex-justify-between[data-v-c17deec9] {
|
|
1043
|
+
justify-content: space-between;
|
|
1044
|
+
}
|
|
1045
|
+
.circular[data-v-d7b04fae] {
|
|
1046
|
+
animation: loading-rotate-d7b04fae 2s linear infinite;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
.path[data-v-d7b04fae] {
|
|
1050
|
+
animation: loading-dash-d7b04fae 1.5s ease-in-out infinite;
|
|
1051
|
+
stroke-dasharray: 90, 150;
|
|
1052
|
+
stroke-dashoffset: 0;
|
|
1053
|
+
stroke: var(--el-color-primary);
|
|
1054
|
+
stroke-linecap: round;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
@keyframes loading-rotate-d7b04fae {
|
|
1058
|
+
to {
|
|
1059
|
+
transform: rotate(360deg);
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
@keyframes loading-dash-d7b04fae {
|
|
1063
|
+
0% {
|
|
1064
|
+
stroke-dasharray: 1, 200;
|
|
1065
|
+
stroke-dashoffset: 0;
|
|
1066
|
+
}
|
|
1067
|
+
50% {
|
|
1068
|
+
stroke-dasharray: 90, 150;
|
|
1069
|
+
stroke-dashoffset: -40px;
|
|
1070
|
+
}
|
|
1071
|
+
100% {
|
|
1072
|
+
stroke-dasharray: 90, 150;
|
|
1073
|
+
stroke-dashoffset: -120px;
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
.pagination-container[data-v-47d35e7b] {
|
|
1078
|
+
background: #fff;
|
|
1079
|
+
padding-top: 12px;
|
|
1080
|
+
}
|
|
1081
|
+
.pagination-container.hidden[data-v-47d35e7b] {
|
|
1082
|
+
display: none;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1019
1085
|
@charset "UTF-8";
|
|
1020
1086
|
.custom-operate-drawer .el-drawer__header {
|
|
1021
1087
|
padding: 10px 15px;
|
|
@@ -1072,29 +1138,6 @@ video {
|
|
|
1072
1138
|
border-radius: 10px;
|
|
1073
1139
|
background: #eee;
|
|
1074
1140
|
}
|
|
1075
|
-
[data-v-98c2e804] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
1076
|
-
border-right: none;
|
|
1077
|
-
}
|
|
1078
|
-
|
|
1079
|
-
[data-v-98c2e804] .gmTableNoBorder .el-table__inner-wrapper:before {
|
|
1080
|
-
height: 0;
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
[data-v-98c2e804] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
|
|
1084
|
-
height: 0;
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
|
-
[data-v-98c2e804] .gmTableNoBorder.el-table--border:after {
|
|
1088
|
-
height: 0;
|
|
1089
|
-
}
|
|
1090
|
-
|
|
1091
|
-
[data-v-98c2e804] .gmTableNoBorder.el-table--border:before {
|
|
1092
|
-
height: 0;
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
|
-
[data-v-98c2e804] .gmTableNoBorder .el-table__border-left-patch {
|
|
1096
|
-
height: 0;
|
|
1097
|
-
}
|
|
1098
1141
|
@charset "UTF-8";
|
|
1099
1142
|
.table-custom-header-drawer .el-drawer__header {
|
|
1100
1143
|
padding: 10px 15px;
|
|
@@ -1150,47 +1193,4 @@ video {
|
|
|
1150
1193
|
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
|
|
1151
1194
|
border-radius: 10px;
|
|
1152
1195
|
background: #eee;
|
|
1153
|
-
}
|
|
1154
|
-
.gm-upload-preview-dialog[data-v-312f9322] [data-v-312f9322] .el-dialog__body {
|
|
1155
|
-
padding: 0;
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1158
|
-
.gm-upload-file-picture-card[data-v-312f9322] [data-v-312f9322] .el-upload-list__item, .gm-upload-file-picture-card[data-v-312f9322] [data-v-312f9322] .el-upload--picture-card {
|
|
1159
|
-
width: auto;
|
|
1160
|
-
height: auto;
|
|
1161
|
-
}
|
|
1162
|
-
.gm-upload-file {
|
|
1163
|
-
line-height: normal;
|
|
1164
|
-
}
|
|
1165
|
-
.gm-upload-file .el-checkbox {
|
|
1166
|
-
position: absolute;
|
|
1167
|
-
left: 10px;
|
|
1168
|
-
top: 0;
|
|
1169
|
-
z-index: 9;
|
|
1170
|
-
}
|
|
1171
|
-
.gm-upload-file .el-upload-list--picture-card {
|
|
1172
|
-
gap: 10px;
|
|
1173
|
-
}
|
|
1174
|
-
.gm-upload-file .el-upload-list__item {
|
|
1175
|
-
margin: 0;
|
|
1176
|
-
}
|
|
1177
|
-
.gm-upload-file .el-upload-list__item-file-name {
|
|
1178
|
-
line-height: normal;
|
|
1179
|
-
}
|
|
1180
|
-
.gm-upload-file .el-upload-dragger {
|
|
1181
|
-
padding: 0;
|
|
1182
|
-
border: none;
|
|
1183
|
-
width: 100%;
|
|
1184
|
-
height: 100%;
|
|
1185
|
-
display: flex;
|
|
1186
|
-
}
|
|
1187
|
-
.gm-upload-file .el-upload--picture-card {
|
|
1188
|
-
border: none;
|
|
1189
|
-
}
|
|
1190
|
-
|
|
1191
|
-
.gm-upload-file-disabled .el-upload--picture-card {
|
|
1192
|
-
display: none;
|
|
1193
|
-
}
|
|
1194
|
-
.gm-upload-file-disabled .el-upload-list__item-status-label {
|
|
1195
|
-
display: none;
|
|
1196
1196
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
+
loading: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: undefined;
|
|
5
|
+
};
|
|
2
6
|
size: {
|
|
3
7
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
4
8
|
readonly required: false;
|
|
@@ -14,7 +18,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
14
18
|
__epPropKey: true;
|
|
15
19
|
};
|
|
16
20
|
nativeType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
|
|
17
|
-
loading: BooleanConstructor;
|
|
18
21
|
loadingIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => any, boolean>;
|
|
19
22
|
plain: BooleanConstructor;
|
|
20
23
|
text: BooleanConstructor;
|
|
@@ -56,8 +59,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
56
59
|
readonly dark: boolean;
|
|
57
60
|
readonly circle: boolean;
|
|
58
61
|
readonly disabled: boolean;
|
|
59
|
-
readonly nativeType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
|
|
60
62
|
readonly loading: boolean;
|
|
63
|
+
readonly nativeType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
|
|
61
64
|
readonly bg: boolean;
|
|
62
65
|
readonly autofocus: boolean;
|
|
63
66
|
readonly tag: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>))[], unknown, unknown>;
|
|
@@ -98,7 +101,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
98
101
|
readonly tag: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>))[], unknown, unknown, "button", boolean>;
|
|
99
102
|
}>> & {
|
|
100
103
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
101
|
-
}, "type" | "plain" | "link" | "text" | "round" | "dark" | "circle" | "disabled" | "
|
|
104
|
+
}, "type" | "plain" | "link" | "text" | "round" | "dark" | "circle" | "disabled" | "loading" | "nativeType" | "loadingIcon" | "bg" | "autofocus" | "autoInsertSpace" | "tag">;
|
|
102
105
|
$attrs: {
|
|
103
106
|
[x: string]: unknown;
|
|
104
107
|
};
|
|
@@ -231,9 +234,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
231
234
|
default?(_: {}): any;
|
|
232
235
|
};
|
|
233
236
|
}) | undefined>;
|
|
234
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
238
|
+
loading: {
|
|
239
|
+
type: BooleanConstructor;
|
|
240
|
+
default: undefined;
|
|
241
|
+
};
|
|
237
242
|
size: {
|
|
238
243
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
239
244
|
readonly required: false;
|
|
@@ -249,7 +254,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
249
254
|
__epPropKey: true;
|
|
250
255
|
};
|
|
251
256
|
nativeType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
|
|
252
|
-
loading: BooleanConstructor;
|
|
253
257
|
loadingIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => any, boolean>;
|
|
254
258
|
plain: BooleanConstructor;
|
|
255
259
|
text: BooleanConstructor;
|
|
@@ -262,9 +266,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
262
266
|
dark: BooleanConstructor;
|
|
263
267
|
autoInsertSpace: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
264
268
|
tag: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, "button", boolean>;
|
|
265
|
-
}
|
|
266
|
-
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
267
|
-
}, {
|
|
269
|
+
}>>, {
|
|
268
270
|
type: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger", unknown>;
|
|
269
271
|
plain: boolean;
|
|
270
272
|
link: boolean;
|
|
@@ -273,8 +275,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
273
275
|
dark: boolean;
|
|
274
276
|
circle: boolean;
|
|
275
277
|
disabled: boolean;
|
|
276
|
-
nativeType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
|
|
277
278
|
loading: boolean;
|
|
279
|
+
nativeType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
|
|
278
280
|
loadingIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
|
|
279
281
|
bg: boolean;
|
|
280
282
|
autofocus: boolean;
|
|
@@ -1,22 +1,35 @@
|
|
|
1
|
-
import { defineComponent, useSlots, ref, resolveComponent, openBlock, createBlock, mergeProps,
|
|
2
|
-
import '
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { getGmEvent } from '../../../../utils/src/elementPlus/event.mjs';
|
|
1
|
+
import { defineComponent, useSlots, useAttrs, ref, computed, resolveComponent, openBlock, createBlock, mergeProps, unref, createSlots, withCtx, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
|
|
2
|
+
import { omit } from 'lodash-es';
|
|
3
|
+
import { buttonProps } from './button.mjs';
|
|
4
|
+
import { isBoolean } from '../../../../utils/src/is.mjs';
|
|
6
5
|
|
|
7
6
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
7
|
...{
|
|
9
|
-
name: "GmButton"
|
|
8
|
+
name: "GmButton",
|
|
9
|
+
inheritAttrs: false
|
|
10
10
|
},
|
|
11
11
|
__name: "Button",
|
|
12
12
|
props: buttonProps,
|
|
13
|
-
|
|
14
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
13
|
+
setup(__props, { expose: __expose }) {
|
|
15
14
|
const slots = useSlots();
|
|
15
|
+
const attrs = useAttrs();
|
|
16
16
|
const props = __props;
|
|
17
|
-
const emit = __emit;
|
|
18
|
-
const elEvents = getGmEvent(buttonEmits$1, emit);
|
|
19
17
|
const elRef = ref();
|
|
18
|
+
const isLoading = ref(false);
|
|
19
|
+
const realLoading = computed(() => {
|
|
20
|
+
if (isBoolean(props.loading)) {
|
|
21
|
+
return props.loading;
|
|
22
|
+
}
|
|
23
|
+
return isLoading.value;
|
|
24
|
+
});
|
|
25
|
+
const handleClick = async (evt) => {
|
|
26
|
+
try {
|
|
27
|
+
isLoading.value = true;
|
|
28
|
+
return await attrs.onClick?.(evt);
|
|
29
|
+
} finally {
|
|
30
|
+
isLoading.value = false;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
20
33
|
__expose({
|
|
21
34
|
elRef
|
|
22
35
|
});
|
|
@@ -25,9 +38,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
25
38
|
return openBlock(), createBlock(_component_el_button, mergeProps({
|
|
26
39
|
ref_key: "elRef",
|
|
27
40
|
ref: elRef
|
|
28
|
-
},
|
|
29
|
-
type: _ctx.disabled ? "info" : _ctx.type
|
|
30
|
-
|
|
41
|
+
}, unref(omit)(unref(attrs), "onClick"), {
|
|
42
|
+
type: _ctx.disabled ? "info" : _ctx.type,
|
|
43
|
+
loading: realLoading.value,
|
|
44
|
+
onClick: handleClick
|
|
45
|
+
}), createSlots({
|
|
31
46
|
_: 2
|
|
32
47
|
/* DYNAMIC */
|
|
33
48
|
}, [
|
|
@@ -52,7 +67,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
67
|
]),
|
|
53
68
|
key: "2"
|
|
54
69
|
} : void 0
|
|
55
|
-
]), 1040, ["type"]);
|
|
70
|
+
]), 1040, ["type", "loading"]);
|
|
56
71
|
};
|
|
57
72
|
}
|
|
58
73
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.vue2.mjs","sources":["../../../../../../../packages/components/src/base/button/Button.vue"],"sourcesContent":["<template>\n <el-button ref=\"elRef\" v-bind=\"
|
|
1
|
+
{"version":3,"file":"Button.vue2.mjs","sources":["../../../../../../../packages/components/src/base/button/Button.vue"],"sourcesContent":["<template>\n <el-button ref=\"elRef\" v-bind=\"omit(attrs, 'onClick')\" :type=\"disabled ? 'info' : type\" :loading=\"realLoading\" @click=\"handleClick\">\n <template v-if=\"slots.loading\" #loading=\"slotValue\">\n <slot name=\"loading\" v-bind=\"slotValue\" />\n </template>\n <template v-if=\"slots.default\" #default>\n <slot />\n </template>\n <template v-if=\"slots.icon\" #icon=\"slotValue\">\n <slot name=\"icon\" v-bind=\"slotValue\" />\n </template>\n </el-button>\n</template>\n<script lang=\"ts\" setup>\nimport { computed, ref, useAttrs, useSlots } from 'vue';\nimport { omit } from 'lodash-es';\nimport { buttonProps } from './button';\nimport type { ButtonInstance } from 'element-plus';\nimport { isBoolean } from '@giime/utils/src/is';\n\ndefineOptions({\n name: 'GmButton',\n inheritAttrs: false,\n});\nconst slots = useSlots();\nconst attrs = useAttrs() as {\n onClick: (evt: MouseEvent) => Promise<any> | any;\n};\nconst props = defineProps(buttonProps);\n// const emit = defineEmits(buttonEmits);\n// 重发el的事件\n// const elEvents = getGmEvent(elButtonEmits, emit);\n\nconst elRef = ref<ButtonInstance>();\nconst isLoading = ref(false);\nconst realLoading = computed(() => {\n // 优先使用用户传进来的loading\n if (isBoolean(props.loading)) {\n return props.loading;\n }\n return isLoading.value;\n});\nconst handleClick = async (evt: MouseEvent) => {\n try {\n isLoading.value = true;\n return await attrs.onClick?.(evt);\n } finally {\n isLoading.value = false;\n }\n};\ndefineExpose({\n elRef,\n});\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;AAwBA,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AACvB,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAGvB,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAKd,IAAA,MAAM,QAAQ,GAAoB,EAAA,CAAA;AAClC,IAAM,MAAA,SAAA,GAAY,IAAI,KAAK,CAAA,CAAA;AAC3B,IAAM,MAAA,WAAA,GAAc,SAAS,MAAM;AAEjC,MAAI,IAAA,SAAA,CAAU,KAAM,CAAA,OAAO,CAAG,EAAA;AAC5B,QAAA,OAAO,KAAM,CAAA,OAAA,CAAA;AAAA,OACf;AACA,MAAA,OAAO,SAAU,CAAA,KAAA,CAAA;AAAA,KAClB,CAAA,CAAA;AACD,IAAM,MAAA,WAAA,GAAc,OAAO,GAAoB,KAAA;AAC7C,MAAI,IAAA;AACF,QAAA,SAAA,CAAU,KAAQ,GAAA,IAAA,CAAA;AAClB,QAAO,OAAA,MAAM,KAAM,CAAA,OAAA,GAAU,GAAG,CAAA,CAAA;AAAA,OAChC,SAAA;AACA,QAAA,SAAA,CAAU,KAAQ,GAAA,KAAA,CAAA;AAAA,OACpB;AAAA,KACF,CAAA;AACA,IAAa,QAAA,CAAA;AAAA,MACX,KAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export declare const buttonProps: {
|
|
2
|
+
loading: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: undefined;
|
|
5
|
+
};
|
|
2
6
|
size: {
|
|
3
7
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
4
8
|
readonly required: false;
|
|
@@ -14,7 +18,6 @@ export declare const buttonProps: {
|
|
|
14
18
|
__epPropKey: true;
|
|
15
19
|
};
|
|
16
20
|
nativeType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
|
|
17
|
-
loading: BooleanConstructor;
|
|
18
21
|
loadingIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => any, boolean>;
|
|
19
22
|
plain: BooleanConstructor;
|
|
20
23
|
text: BooleanConstructor;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { buttonProps as buttonProps$1, buttonEmits as buttonEmits$1, buttonTypes as buttonTypes$1, buttonNativeTypes as buttonNativeTypes$1 } from 'element-plus';
|
|
2
2
|
|
|
3
3
|
const buttonProps = {
|
|
4
|
-
...buttonProps$1
|
|
4
|
+
...buttonProps$1,
|
|
5
|
+
loading: {
|
|
6
|
+
type: Boolean,
|
|
7
|
+
default: void 0
|
|
8
|
+
// 默认undefined,表示不使用loading
|
|
9
|
+
}
|
|
5
10
|
};
|
|
6
11
|
const buttonEmits = {
|
|
7
12
|
...buttonEmits$1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.mjs","sources":["../../../../../../../packages/components/src/base/button/button.ts"],"sourcesContent":["import {\n buttonEmits as elButtonEmits,\n buttonNativeTypes as elButtonNativeTypes,\n buttonProps as elButtonProps,\n buttonTypes as elButtonTypes,\n} from 'element-plus';\n// import type { ExtractPropTypes } from 'vue';\n\nexport const buttonProps = {\n ...elButtonProps,\n};\n\nexport const buttonEmits = {\n ...elButtonEmits,\n // 自定义事件\n // submit: (value: any) => !!value,\n};\n\nexport const buttonTypes = [...elButtonTypes];\n\nexport const buttonNativeTypes = [...elButtonNativeTypes];\n"],"names":["elButtonProps","elButtonEmits","elButtonTypes","elButtonNativeTypes"],"mappings":";;AAQO,MAAM,WAAc,GAAA;AAAA,EACzB,GAAGA,aAAA;
|
|
1
|
+
{"version":3,"file":"button.mjs","sources":["../../../../../../../packages/components/src/base/button/button.ts"],"sourcesContent":["import {\n buttonEmits as elButtonEmits,\n buttonNativeTypes as elButtonNativeTypes,\n buttonProps as elButtonProps,\n buttonTypes as elButtonTypes,\n} from 'element-plus';\n// import type { ExtractPropTypes } from 'vue';\n\nexport const buttonProps = {\n ...elButtonProps,\n loading: {\n type: Boolean,\n default: undefined, // 默认undefined,表示不使用loading\n },\n};\n\nexport const buttonEmits = {\n ...elButtonEmits,\n // 自定义事件\n // submit: (value: any) => !!value,\n};\n\nexport const buttonTypes = [...elButtonTypes];\n\nexport const buttonNativeTypes = [...elButtonNativeTypes];\n"],"names":["elButtonProps","elButtonEmits","elButtonTypes","elButtonNativeTypes"],"mappings":";;AAQO,MAAM,WAAc,GAAA;AAAA,EACzB,GAAGA,aAAA;AAAA,EACH,OAAS,EAAA;AAAA,IACP,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA,CAAA;AAAA;AAAA,GACX;AACF,EAAA;AAEO,MAAM,WAAc,GAAA;AAAA,EACzB,GAAGC,aAAA;AAAA;AAAA;AAGL,EAAA;AAEa,MAAA,WAAA,GAAc,CAAC,GAAGC,aAAa,EAAA;AAE/B,MAAA,iBAAA,GAAoB,CAAC,GAAGC,mBAAmB;;;;"}
|