giime 0.7.19 → 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 +96 -96
- 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/index.css +96 -96
- 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/index.css +96 -96
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -886,36 +886,28 @@ video {
|
|
|
886
886
|
width: auto;
|
|
887
887
|
height: auto;
|
|
888
888
|
}
|
|
889
|
-
|
|
890
|
-
|
|
889
|
+
[data-v-2c351ff8] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
890
|
+
border-right: none;
|
|
891
891
|
}
|
|
892
892
|
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
stroke-dasharray: 90, 150;
|
|
896
|
-
stroke-dashoffset: 0;
|
|
897
|
-
stroke: var(--el-color-primary);
|
|
898
|
-
stroke-linecap: round;
|
|
893
|
+
[data-v-2c351ff8] .gmTableNoBorder .el-table__inner-wrapper:before {
|
|
894
|
+
height: 0;
|
|
899
895
|
}
|
|
900
896
|
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
transform: rotate(360deg);
|
|
904
|
-
}
|
|
897
|
+
[data-v-2c351ff8] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
|
|
898
|
+
height: 0;
|
|
905
899
|
}
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
stroke-dashoffset: -120px;
|
|
918
|
-
}
|
|
900
|
+
|
|
901
|
+
[data-v-2c351ff8] .gmTableNoBorder.el-table--border:after {
|
|
902
|
+
height: 0;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
[data-v-2c351ff8] .gmTableNoBorder.el-table--border:before {
|
|
906
|
+
height: 0;
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
[data-v-2c351ff8] .gmTableNoBorder .el-table__border-left-patch {
|
|
910
|
+
height: 0;
|
|
919
911
|
}
|
|
920
912
|
.gm-upload-pro-file {
|
|
921
913
|
line-height: normal;
|
|
@@ -955,31 +947,6 @@ video {
|
|
|
955
947
|
.gm-upload-pro-file-disabled .el-upload-list__item-status-label {
|
|
956
948
|
display: none;
|
|
957
949
|
}
|
|
958
|
-
.gm-flex-center[data-v-c17deec9] {
|
|
959
|
-
align-items: center;
|
|
960
|
-
}
|
|
961
|
-
|
|
962
|
-
.gm-flex-justify-between[data-v-c17deec9] {
|
|
963
|
-
justify-content: space-between;
|
|
964
|
-
}
|
|
965
|
-
.gm-number-interval-single[data-v-4e6f4d6f] {
|
|
966
|
-
border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
|
|
967
|
-
box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
|
|
968
|
-
background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
|
|
969
|
-
}
|
|
970
|
-
.gm-number-interval-single[data-v-4e6f4d6f] [data-v-4e6f4d6f] .el-input__wrapper {
|
|
971
|
-
box-shadow: none;
|
|
972
|
-
background: none;
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
.gm-number-interval-close[data-v-4e6f4d6f] {
|
|
976
|
-
display: none;
|
|
977
|
-
color: var(--el-input-icon-color, var(--el-text-color-placeholder));
|
|
978
|
-
}
|
|
979
|
-
|
|
980
|
-
.gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
|
|
981
|
-
display: flex;
|
|
982
|
-
}
|
|
983
950
|
[data-v-d3111183] .gmSearchForm .el-form-item {
|
|
984
951
|
margin-right: 0;
|
|
985
952
|
margin-bottom: 4px;
|
|
@@ -1007,36 +974,31 @@ video {
|
|
|
1007
974
|
[data-v-98c2e804] .gmTableNoBorder .el-table__border-left-patch {
|
|
1008
975
|
height: 0;
|
|
1009
976
|
}
|
|
1010
|
-
.gm-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
.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 {
|
|
1015
|
-
width: auto;
|
|
1016
|
-
height: auto;
|
|
1017
|
-
}
|
|
1018
|
-
[data-v-2c351ff8] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
1019
|
-
border-right: none;
|
|
977
|
+
.gm-number-interval-single[data-v-4e6f4d6f] {
|
|
978
|
+
border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
|
|
979
|
+
box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
|
|
980
|
+
background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
|
|
1020
981
|
}
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
982
|
+
.gm-number-interval-single[data-v-4e6f4d6f] [data-v-4e6f4d6f] .el-input__wrapper {
|
|
983
|
+
box-shadow: none;
|
|
984
|
+
background: none;
|
|
1024
985
|
}
|
|
1025
986
|
|
|
1026
|
-
[data-v-
|
|
1027
|
-
|
|
987
|
+
.gm-number-interval-close[data-v-4e6f4d6f] {
|
|
988
|
+
display: none;
|
|
989
|
+
color: var(--el-input-icon-color, var(--el-text-color-placeholder));
|
|
1028
990
|
}
|
|
1029
991
|
|
|
1030
|
-
[data-v-
|
|
1031
|
-
|
|
992
|
+
.gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
|
|
993
|
+
display: flex;
|
|
1032
994
|
}
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
height: 0;
|
|
995
|
+
.gm-upload-preview-dialog[data-v-312f9322] [data-v-312f9322] .el-dialog__body {
|
|
996
|
+
padding: 0;
|
|
1036
997
|
}
|
|
1037
998
|
|
|
1038
|
-
[data-v-
|
|
1039
|
-
|
|
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;
|
|
1040
1002
|
}
|
|
1041
1003
|
.gm-upload-file {
|
|
1042
1004
|
line-height: normal;
|
|
@@ -1073,6 +1035,44 @@ video {
|
|
|
1073
1035
|
.gm-upload-file-disabled .el-upload-list__item-status-label {
|
|
1074
1036
|
display: none;
|
|
1075
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
1076
|
|
|
1077
1077
|
.pagination-container[data-v-47d35e7b] {
|
|
1078
1078
|
background: #fff;
|
|
@@ -1083,112 +1083,112 @@ video {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
|
|
1085
1085
|
@charset "UTF-8";
|
|
1086
|
-
.
|
|
1086
|
+
.custom-operate-drawer .el-drawer__header {
|
|
1087
1087
|
padding: 10px 15px;
|
|
1088
1088
|
margin: 0;
|
|
1089
1089
|
border-bottom: 1px solid #ebeef5;
|
|
1090
1090
|
}
|
|
1091
|
-
.
|
|
1091
|
+
.custom-operate-drawer .el-drawer__title {
|
|
1092
1092
|
font-size: 14px;
|
|
1093
1093
|
color: #333;
|
|
1094
1094
|
}
|
|
1095
|
-
.
|
|
1095
|
+
.custom-operate-drawer .el-drawer__body {
|
|
1096
1096
|
padding: 15px;
|
|
1097
1097
|
}
|
|
1098
|
-
.
|
|
1098
|
+
.custom-operate-drawer .el-drawer__footer {
|
|
1099
1099
|
padding: 10px 15px;
|
|
1100
1100
|
border-top: 1px solid #ebeef5;
|
|
1101
1101
|
}
|
|
1102
|
-
.
|
|
1102
|
+
.custom-operate-drawer .el-checkbox {
|
|
1103
1103
|
display: flex;
|
|
1104
1104
|
align-items: center;
|
|
1105
1105
|
}
|
|
1106
|
-
.
|
|
1106
|
+
.custom-operate-drawer .el-input__inner {
|
|
1107
1107
|
text-align: center;
|
|
1108
1108
|
}
|
|
1109
|
-
.
|
|
1109
|
+
.custom-operate-drawer .el-input__suffix {
|
|
1110
1110
|
position: absolute;
|
|
1111
1111
|
right: 10px;
|
|
1112
1112
|
}
|
|
1113
|
-
.
|
|
1113
|
+
.custom-operate-drawer .custom-content li {
|
|
1114
1114
|
display: flex;
|
|
1115
1115
|
align-items: center;
|
|
1116
1116
|
justify-content: center;
|
|
1117
1117
|
height: 44px;
|
|
1118
1118
|
}
|
|
1119
|
-
.
|
|
1119
|
+
.custom-operate-drawer .custom-group {
|
|
1120
1120
|
max-height: calc(100vh - 226px);
|
|
1121
1121
|
overflow-y: auto;
|
|
1122
1122
|
}
|
|
1123
|
-
.
|
|
1123
|
+
.custom-operate-drawer .custom-group::-webkit-scrollbar {
|
|
1124
1124
|
/*滚动条整体样式*/
|
|
1125
1125
|
width: 4px;
|
|
1126
1126
|
/*高宽分别对应横竖滚动条的尺寸*/
|
|
1127
1127
|
height: 1px;
|
|
1128
1128
|
}
|
|
1129
|
-
.
|
|
1129
|
+
.custom-operate-drawer .custom-group::-webkit-scrollbar-thumb {
|
|
1130
1130
|
/*滚动条里面小方块*/
|
|
1131
1131
|
border-radius: 10px;
|
|
1132
1132
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
|
|
1133
1133
|
background: #999;
|
|
1134
1134
|
}
|
|
1135
|
-
.
|
|
1135
|
+
.custom-operate-drawer .custom-group::-webkit-scrollbar-track {
|
|
1136
1136
|
/*滚动条里面轨道*/
|
|
1137
1137
|
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
|
|
1138
1138
|
border-radius: 10px;
|
|
1139
1139
|
background: #eee;
|
|
1140
1140
|
}
|
|
1141
1141
|
@charset "UTF-8";
|
|
1142
|
-
.custom-
|
|
1142
|
+
.table-custom-header-drawer .el-drawer__header {
|
|
1143
1143
|
padding: 10px 15px;
|
|
1144
1144
|
margin: 0;
|
|
1145
1145
|
border-bottom: 1px solid #ebeef5;
|
|
1146
1146
|
}
|
|
1147
|
-
.custom-
|
|
1147
|
+
.table-custom-header-drawer .el-drawer__title {
|
|
1148
1148
|
font-size: 14px;
|
|
1149
1149
|
color: #333;
|
|
1150
1150
|
}
|
|
1151
|
-
.custom-
|
|
1151
|
+
.table-custom-header-drawer .el-drawer__body {
|
|
1152
1152
|
padding: 15px;
|
|
1153
1153
|
}
|
|
1154
|
-
.custom-
|
|
1154
|
+
.table-custom-header-drawer .el-drawer__footer {
|
|
1155
1155
|
padding: 10px 15px;
|
|
1156
1156
|
border-top: 1px solid #ebeef5;
|
|
1157
1157
|
}
|
|
1158
|
-
.custom-
|
|
1158
|
+
.table-custom-header-drawer .el-checkbox {
|
|
1159
1159
|
display: flex;
|
|
1160
1160
|
align-items: center;
|
|
1161
1161
|
}
|
|
1162
|
-
.custom-
|
|
1162
|
+
.table-custom-header-drawer .el-input__inner {
|
|
1163
1163
|
text-align: center;
|
|
1164
1164
|
}
|
|
1165
|
-
.custom-
|
|
1165
|
+
.table-custom-header-drawer .el-input__suffix {
|
|
1166
1166
|
position: absolute;
|
|
1167
1167
|
right: 10px;
|
|
1168
1168
|
}
|
|
1169
|
-
.custom-
|
|
1169
|
+
.table-custom-header-drawer .custom-content li {
|
|
1170
1170
|
display: flex;
|
|
1171
1171
|
align-items: center;
|
|
1172
1172
|
justify-content: center;
|
|
1173
1173
|
height: 44px;
|
|
1174
1174
|
}
|
|
1175
|
-
.custom-
|
|
1175
|
+
.table-custom-header-drawer .custom-group {
|
|
1176
1176
|
max-height: calc(100vh - 226px);
|
|
1177
1177
|
overflow-y: auto;
|
|
1178
1178
|
}
|
|
1179
|
-
.custom-
|
|
1179
|
+
.table-custom-header-drawer .custom-group::-webkit-scrollbar {
|
|
1180
1180
|
/*滚动条整体样式*/
|
|
1181
1181
|
width: 4px;
|
|
1182
1182
|
/*高宽分别对应横竖滚动条的尺寸*/
|
|
1183
1183
|
height: 1px;
|
|
1184
1184
|
}
|
|
1185
|
-
.custom-
|
|
1185
|
+
.table-custom-header-drawer .custom-group::-webkit-scrollbar-thumb {
|
|
1186
1186
|
/*滚动条里面小方块*/
|
|
1187
1187
|
border-radius: 10px;
|
|
1188
1188
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
|
|
1189
1189
|
background: #999;
|
|
1190
1190
|
}
|
|
1191
|
-
.custom-
|
|
1191
|
+
.table-custom-header-drawer .custom-group::-webkit-scrollbar-track {
|
|
1192
1192
|
/*滚动条里面轨道*/
|
|
1193
1193
|
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
|
|
1194
1194
|
border-radius: 10px;
|
|
@@ -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;;;;"}
|