giime 0.6.36 → 0.6.38
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 +88 -88
- package/es/components/src/base/datePicker/DatePicker.vue.d.ts +3 -3
- package/es/components/src/base/datePicker/datePicker.d.ts +1 -1
- package/es/components/src/base/datePicker/index.d.ts +7 -7
- package/es/components/src/business/uploadPro/UploadPro.vue.mjs +1 -1
- package/es/components/src/business/uploadPro/UploadPro.vue2.mjs +38 -6
- package/es/components/src/business/uploadPro/UploadPro.vue2.mjs.map +1 -1
- package/es/components/src/business/uploadPro/uploadPro.mjs +1 -1
- package/es/components/src/business/uploadPro/uploadPro.mjs.map +1 -1
- package/es/components/src/composite/searchForm/searchFormItems/datePicker/SearchFormDatePicker.vue.d.ts +2 -5
- package/es/components/src/composite/searchForm/searchFormItems/datePicker/SearchFormDatePicker.vue2.mjs +6 -2
- package/es/components/src/composite/searchForm/searchFormItems/datePicker/SearchFormDatePicker.vue2.mjs.map +1 -1
- package/es/components/src/composite/searchForm/searchFormItems/datePicker/index.d.ts +2 -5
- package/es/components/src/composite/searchForm/searchFormItems/datePicker/searchFormDatePicker.d.ts +1 -2
- package/es/components/src/composite/searchForm/searchFormItems/datePicker/searchFormDatePicker.mjs +2 -2
- package/es/components/src/composite/searchForm/searchFormItems/datePicker/searchFormDatePicker.mjs.map +1 -1
- package/es/giime/index.mjs +1 -0
- package/es/giime/index.mjs.map +1 -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/useUploadFile/index.d.ts +8 -1
- package/es/hooks/base/useUploadFile/index.mjs +34 -2
- package/es/hooks/base/useUploadFile/index.mjs.map +1 -1
- package/es/index.css +88 -88
- package/es/utils/index.mjs +1 -0
- package/es/utils/index.mjs.map +1 -1
- package/es/utils/src/date/dateShortcuts.d.ts +2 -2
- package/es/utils/src/date/dateShortcuts.mjs +87 -82
- package/es/utils/src/date/dateShortcuts.mjs.map +1 -1
- package/es/utils/src/file.d.ts +1 -0
- package/es/utils/src/file.mjs +1 -0
- package/es/utils/src/file.mjs.map +1 -1
- package/lib/components/src/base/datePicker/DatePicker.vue.d.ts +3 -3
- package/lib/components/src/base/datePicker/datePicker.d.ts +1 -1
- package/lib/components/src/base/datePicker/index.d.ts +7 -7
- package/lib/components/src/business/uploadPro/UploadPro.vue.js +1 -1
- package/lib/components/src/business/uploadPro/UploadPro.vue2.js +38 -6
- package/lib/components/src/business/uploadPro/UploadPro.vue2.js.map +1 -1
- package/lib/components/src/business/uploadPro/uploadPro.js +1 -1
- package/lib/components/src/business/uploadPro/uploadPro.js.map +1 -1
- package/lib/components/src/composite/searchForm/searchFormItems/datePicker/SearchFormDatePicker.vue.d.ts +2 -5
- package/lib/components/src/composite/searchForm/searchFormItems/datePicker/SearchFormDatePicker.vue2.js +6 -2
- package/lib/components/src/composite/searchForm/searchFormItems/datePicker/SearchFormDatePicker.vue2.js.map +1 -1
- package/lib/components/src/composite/searchForm/searchFormItems/datePicker/index.d.ts +2 -5
- package/lib/components/src/composite/searchForm/searchFormItems/datePicker/searchFormDatePicker.d.ts +1 -2
- package/lib/components/src/composite/searchForm/searchFormItems/datePicker/searchFormDatePicker.js +2 -2
- package/lib/components/src/composite/searchForm/searchFormItems/datePicker/searchFormDatePicker.js.map +1 -1
- package/lib/giime/index.js +5 -0
- package/lib/giime/index.js.map +1 -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/useUploadFile/index.d.ts +8 -1
- package/lib/hooks/base/useUploadFile/index.js +34 -2
- package/lib/hooks/base/useUploadFile/index.js.map +1 -1
- package/lib/index.css +88 -88
- package/lib/utils/index.js +5 -0
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/src/date/dateShortcuts.d.ts +2 -2
- package/lib/utils/src/date/dateShortcuts.js +87 -82
- package/lib/utils/src/date/dateShortcuts.js.map +1 -1
- package/lib/utils/src/file.d.ts +1 -0
- package/lib/utils/src/file.js +5 -0
- package/lib/utils/src/file.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -878,32 +878,6 @@ video {
|
|
|
878
878
|
margin: 0;
|
|
879
879
|
}
|
|
880
880
|
|
|
881
|
-
.gm-number-interval-single[data-v-4e6f4d6f] {
|
|
882
|
-
border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
|
|
883
|
-
box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
|
|
884
|
-
background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
|
|
885
|
-
}
|
|
886
|
-
.gm-number-interval-single[data-v-4e6f4d6f] [data-v-4e6f4d6f] .el-input__wrapper {
|
|
887
|
-
box-shadow: none;
|
|
888
|
-
background: none;
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
.gm-number-interval-close[data-v-4e6f4d6f] {
|
|
892
|
-
display: none;
|
|
893
|
-
color: var(--el-input-icon-color, var(--el-text-color-placeholder));
|
|
894
|
-
}
|
|
895
|
-
|
|
896
|
-
.gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
|
|
897
|
-
display: flex;
|
|
898
|
-
}
|
|
899
|
-
.gm-upload-pro-preview-dialog[data-v-83f37e2f] [data-v-83f37e2f] .el-dialog__body {
|
|
900
|
-
padding: 0;
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
.gm-upload-pro-file-picture-card[data-v-83f37e2f] [data-v-83f37e2f] .el-upload-list__item, .gm-upload-pro-file-picture-card[data-v-83f37e2f] [data-v-83f37e2f] .el-upload--picture-card {
|
|
904
|
-
width: auto;
|
|
905
|
-
height: auto;
|
|
906
|
-
}
|
|
907
881
|
.gm-upload-pro-file {
|
|
908
882
|
line-height: normal;
|
|
909
883
|
}
|
|
@@ -942,6 +916,70 @@ video {
|
|
|
942
916
|
.gm-upload-pro-file-disabled .el-upload-list__item-status-label {
|
|
943
917
|
display: none;
|
|
944
918
|
}
|
|
919
|
+
.gm-upload-pro-preview-dialog[data-v-ca99928c] [data-v-ca99928c] .el-dialog__body {
|
|
920
|
+
padding: 0;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
.gm-upload-pro-file-picture-card[data-v-ca99928c] [data-v-ca99928c] .el-upload-list__item, .gm-upload-pro-file-picture-card[data-v-ca99928c] [data-v-ca99928c] .el-upload--picture-card {
|
|
924
|
+
width: auto;
|
|
925
|
+
height: auto;
|
|
926
|
+
}
|
|
927
|
+
.circular[data-v-d7b04fae] {
|
|
928
|
+
animation: loading-rotate-d7b04fae 2s linear infinite;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
.path[data-v-d7b04fae] {
|
|
932
|
+
animation: loading-dash-d7b04fae 1.5s ease-in-out infinite;
|
|
933
|
+
stroke-dasharray: 90, 150;
|
|
934
|
+
stroke-dashoffset: 0;
|
|
935
|
+
stroke: var(--el-color-primary);
|
|
936
|
+
stroke-linecap: round;
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
@keyframes loading-rotate-d7b04fae {
|
|
940
|
+
to {
|
|
941
|
+
transform: rotate(360deg);
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
@keyframes loading-dash-d7b04fae {
|
|
945
|
+
0% {
|
|
946
|
+
stroke-dasharray: 1, 200;
|
|
947
|
+
stroke-dashoffset: 0;
|
|
948
|
+
}
|
|
949
|
+
50% {
|
|
950
|
+
stroke-dasharray: 90, 150;
|
|
951
|
+
stroke-dashoffset: -40px;
|
|
952
|
+
}
|
|
953
|
+
100% {
|
|
954
|
+
stroke-dasharray: 90, 150;
|
|
955
|
+
stroke-dashoffset: -120px;
|
|
956
|
+
}
|
|
957
|
+
}
|
|
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
|
+
}
|
|
945
983
|
[data-v-488ca110] .gmSearchForm .el-form-item {
|
|
946
984
|
margin-right: 0;
|
|
947
985
|
margin-bottom: 4px;
|
|
@@ -969,13 +1007,6 @@ video {
|
|
|
969
1007
|
[data-v-98c2e804] .gmTableNoBorder .el-table__border-left-patch {
|
|
970
1008
|
height: 0;
|
|
971
1009
|
}
|
|
972
|
-
.gm-flex-center[data-v-c17deec9] {
|
|
973
|
-
align-items: center;
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
.gm-flex-justify-between[data-v-c17deec9] {
|
|
977
|
-
justify-content: space-between;
|
|
978
|
-
}
|
|
979
1010
|
.gm-upload-preview-dialog[data-v-8077ce51] [data-v-8077ce51] .el-dialog__body {
|
|
980
1011
|
padding: 0;
|
|
981
1012
|
}
|
|
@@ -1042,37 +1073,6 @@ video {
|
|
|
1042
1073
|
.gm-upload-file-disabled .el-upload-list__item-status-label {
|
|
1043
1074
|
display: none;
|
|
1044
1075
|
}
|
|
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,7 +1,7 @@
|
|
|
1
1
|
import type { DatePickerInstance } from 'element-plus';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
3
|
type: {
|
|
4
|
-
type: import("vue").PropType<"date" | "daterange" | "month" | "year" | "months" | "years" | "dates" | "week" | "
|
|
4
|
+
type: import("vue").PropType<"date" | "daterange" | "month" | "year" | "months" | "years" | "dates" | "week" | "datetimerange" | "datetime" | "monthrange" | "yearrange">;
|
|
5
5
|
default: "date";
|
|
6
6
|
};
|
|
7
7
|
shortcuts: {
|
|
@@ -107,7 +107,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
107
107
|
"visible-change": (...args: any[]) => void;
|
|
108
108
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
109
109
|
type: {
|
|
110
|
-
type: import("vue").PropType<"date" | "daterange" | "month" | "year" | "months" | "years" | "dates" | "week" | "
|
|
110
|
+
type: import("vue").PropType<"date" | "daterange" | "month" | "year" | "months" | "years" | "dates" | "week" | "datetimerange" | "datetime" | "monthrange" | "yearrange">;
|
|
111
111
|
default: "date";
|
|
112
112
|
};
|
|
113
113
|
shortcuts: {
|
|
@@ -207,7 +207,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
207
207
|
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
208
208
|
"onVisible-change"?: ((...args: any[]) => any) | undefined;
|
|
209
209
|
}, {
|
|
210
|
-
type: "date" | "daterange" | "month" | "year" | "months" | "years" | "dates" | "week" | "
|
|
210
|
+
type: "date" | "daterange" | "month" | "year" | "months" | "years" | "dates" | "week" | "datetimerange" | "datetime" | "monthrange" | "yearrange";
|
|
211
211
|
name: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>;
|
|
212
212
|
disabled: boolean;
|
|
213
213
|
modelValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number | Date | string[] | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => string | number | Date | string[] | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType))[], unknown, unknown>;
|
|
@@ -4,7 +4,7 @@ export type DateModelType = number | string | Date;
|
|
|
4
4
|
export type ModelValueType = SingleOrRange<DateModelType>;
|
|
5
5
|
export declare const datePickerProps: {
|
|
6
6
|
type: {
|
|
7
|
-
type: PropType<"date" | "daterange" | "month" | "year" | "months" | "years" | "dates" | "week" | "
|
|
7
|
+
type: PropType<"date" | "daterange" | "month" | "year" | "months" | "years" | "dates" | "week" | "datetimerange" | "datetime" | "monthrange" | "yearrange">;
|
|
8
8
|
default: "date";
|
|
9
9
|
};
|
|
10
10
|
shortcuts: {
|
|
@@ -2,7 +2,7 @@ import DatePicker from './DatePicker.vue';
|
|
|
2
2
|
export declare const GmDatePicker: import("../../../../utils").SFCWithInstall<{
|
|
3
3
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
4
4
|
type: {
|
|
5
|
-
type: import("vue").PropType<"date" | "daterange" | "month" | "year" | "months" | "years" | "dates" | "week" | "
|
|
5
|
+
type: import("vue").PropType<"date" | "daterange" | "month" | "year" | "months" | "years" | "dates" | "week" | "datetimerange" | "datetime" | "monthrange" | "yearrange">;
|
|
6
6
|
default: "date";
|
|
7
7
|
};
|
|
8
8
|
shortcuts: {
|
|
@@ -116,7 +116,7 @@ export declare const GmDatePicker: import("../../../../utils").SFCWithInstall<{
|
|
|
116
116
|
"visible-change": (...args: any[]) => void;
|
|
117
117
|
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
118
118
|
type: {
|
|
119
|
-
type: import("vue").PropType<"date" | "daterange" | "month" | "year" | "months" | "years" | "dates" | "week" | "
|
|
119
|
+
type: import("vue").PropType<"date" | "daterange" | "month" | "year" | "months" | "years" | "dates" | "week" | "datetimerange" | "datetime" | "monthrange" | "yearrange">;
|
|
120
120
|
default: "date";
|
|
121
121
|
};
|
|
122
122
|
shortcuts: {
|
|
@@ -216,7 +216,7 @@ export declare const GmDatePicker: import("../../../../utils").SFCWithInstall<{
|
|
|
216
216
|
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
217
217
|
"onVisible-change"?: ((...args: any[]) => any) | undefined;
|
|
218
218
|
}, {
|
|
219
|
-
type: "date" | "daterange" | "month" | "year" | "months" | "years" | "dates" | "week" | "
|
|
219
|
+
type: "date" | "daterange" | "month" | "year" | "months" | "years" | "dates" | "week" | "datetimerange" | "datetime" | "monthrange" | "yearrange";
|
|
220
220
|
name: import("element-plus/es/utils/index.js").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>;
|
|
221
221
|
disabled: boolean;
|
|
222
222
|
modelValue: import("element-plus/es/utils/index.js").EpPropMergeType<(new (...args: any[]) => string | number | Date | string[] | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => string | number | Date | string[] | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType))[], unknown, unknown>;
|
|
@@ -243,7 +243,7 @@ export declare const GmDatePicker: import("../../../../utils").SFCWithInstall<{
|
|
|
243
243
|
Defaults: {};
|
|
244
244
|
}, Readonly<import("vue").ExtractPropTypes<{
|
|
245
245
|
type: {
|
|
246
|
-
type: import("vue").PropType<"date" | "daterange" | "month" | "year" | "months" | "years" | "dates" | "week" | "
|
|
246
|
+
type: import("vue").PropType<"date" | "daterange" | "month" | "year" | "months" | "years" | "dates" | "week" | "datetimerange" | "datetime" | "monthrange" | "yearrange">;
|
|
247
247
|
default: "date";
|
|
248
248
|
};
|
|
249
249
|
shortcuts: {
|
|
@@ -348,7 +348,7 @@ export declare const GmDatePicker: import("../../../../utils").SFCWithInstall<{
|
|
|
348
348
|
handleClose: () => void;
|
|
349
349
|
elRef: import("vue").Ref<import("element-plus").DatePickerInstance | undefined>;
|
|
350
350
|
}, {}, {}, {}, {
|
|
351
|
-
type: "date" | "daterange" | "month" | "year" | "months" | "years" | "dates" | "week" | "
|
|
351
|
+
type: "date" | "daterange" | "month" | "year" | "months" | "years" | "dates" | "week" | "datetimerange" | "datetime" | "monthrange" | "yearrange";
|
|
352
352
|
name: import("element-plus/es/utils/index.js").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>;
|
|
353
353
|
disabled: boolean;
|
|
354
354
|
modelValue: import("element-plus/es/utils/index.js").EpPropMergeType<(new (...args: any[]) => string | number | Date | string[] | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => string | number | Date | string[] | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType))[], unknown, unknown>;
|
|
@@ -372,7 +372,7 @@ export declare const GmDatePicker: import("../../../../utils").SFCWithInstall<{
|
|
|
372
372
|
__isSuspense?: undefined;
|
|
373
373
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
374
374
|
type: {
|
|
375
|
-
type: import("vue").PropType<"date" | "daterange" | "month" | "year" | "months" | "years" | "dates" | "week" | "
|
|
375
|
+
type: import("vue").PropType<"date" | "daterange" | "month" | "year" | "months" | "years" | "dates" | "week" | "datetimerange" | "datetime" | "monthrange" | "yearrange">;
|
|
376
376
|
default: "date";
|
|
377
377
|
};
|
|
378
378
|
shortcuts: {
|
|
@@ -485,7 +485,7 @@ export declare const GmDatePicker: import("../../../../utils").SFCWithInstall<{
|
|
|
485
485
|
"panel-change": (...args: any[]) => void;
|
|
486
486
|
"visible-change": (...args: any[]) => void;
|
|
487
487
|
}, string, {
|
|
488
|
-
type: "date" | "daterange" | "month" | "year" | "months" | "years" | "dates" | "week" | "
|
|
488
|
+
type: "date" | "daterange" | "month" | "year" | "months" | "years" | "dates" | "week" | "datetimerange" | "datetime" | "monthrange" | "yearrange";
|
|
489
489
|
name: import("element-plus/es/utils/index.js").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>;
|
|
490
490
|
disabled: boolean;
|
|
491
491
|
modelValue: import("element-plus/es/utils/index.js").EpPropMergeType<(new (...args: any[]) => string | number | Date | string[] | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => string | number | Date | string[] | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType))[], unknown, unknown>;
|
|
@@ -3,7 +3,7 @@ import './UploadPro.vue3.mjs';
|
|
|
3
3
|
import './UploadPro.vue4.mjs';
|
|
4
4
|
import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
5
5
|
|
|
6
|
-
var UploadPro = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
6
|
+
var UploadPro = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ca99928c"]]);
|
|
7
7
|
|
|
8
8
|
export { UploadPro as default };
|
|
9
9
|
//# sourceMappingURL=UploadPro.vue.mjs.map
|
|
@@ -9,7 +9,7 @@ import { uploadFileProps } from './uploadPro.mjs';
|
|
|
9
9
|
import { getGmExports } from '../../../../utils/src/elementPlus/exports.mjs';
|
|
10
10
|
import { useUploadFile } from '../../../../hooks/base/useUploadFile/index.mjs';
|
|
11
11
|
|
|
12
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
12
|
+
const _withScopeId = (n) => (pushScopeId("data-v-ca99928c"), n = n(), popScopeId(), n);
|
|
13
13
|
const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
|
|
14
14
|
"div",
|
|
15
15
|
{ class: "el-upload__text gm-text-center !gm-text-xs gm-text-gray-500" },
|
|
@@ -42,12 +42,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
42
|
const emit = __emit;
|
|
43
43
|
const fileList = useModel(__props, "fileList");
|
|
44
44
|
const checkoutFiles = useModel(__props, "checkoutFiles");
|
|
45
|
-
const { uploadFile } = useUploadFile();
|
|
45
|
+
const { uploadFile, cancelUpload } = useUploadFile();
|
|
46
46
|
const loadingUids = ref(/* @__PURE__ */ new Set());
|
|
47
47
|
const uploadLoading = computed(() => props.showLoading && loadingUids.value.size > 0);
|
|
48
48
|
const httpRequest = async (options) => {
|
|
49
49
|
loadingUids.value.add(options.file.uid);
|
|
50
|
-
return uploadFile(options.file, {
|
|
50
|
+
return uploadFile(options.file, {
|
|
51
|
+
domainCode: props.domainCode,
|
|
52
|
+
sceneCode: props.sceneCode,
|
|
53
|
+
accept: props.accept,
|
|
54
|
+
acl: props.acl,
|
|
55
|
+
elOptions: options
|
|
56
|
+
});
|
|
51
57
|
};
|
|
52
58
|
const coverFileSuccess = (response, uploadFile2, uploadFiles) => {
|
|
53
59
|
loadingUids.value.delete(uploadFile2.uid);
|
|
@@ -57,13 +63,25 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
63
|
loadingUids.value.delete(uploadFile2.uid);
|
|
58
64
|
props.onError?.(error, uploadFile2, uploadFiles);
|
|
59
65
|
};
|
|
60
|
-
const beforeRemove = (file, files) => {
|
|
66
|
+
const beforeRemove = async (file, files) => {
|
|
61
67
|
if (props.disabled) {
|
|
62
68
|
return false;
|
|
63
69
|
}
|
|
70
|
+
if (props.deleteTip) {
|
|
71
|
+
await GmConfirmBox({ message: "\u786E\u5B9A\u5220\u9664\u8BE5\u6587\u4EF6\u5417\uFF1F" }, async () => {
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
if (file.status === "uploading" || loadingUids.value.has(file.uid)) {
|
|
75
|
+
cancelUpload(file.uid);
|
|
76
|
+
loadingUids.value.delete(file.uid);
|
|
77
|
+
}
|
|
64
78
|
return props.beforeRemove?.(file, files) ?? true;
|
|
65
79
|
};
|
|
66
80
|
const removeFile = (file, uploadFiles) => {
|
|
81
|
+
if (file.status === "uploading" || loadingUids.value.has(file.uid)) {
|
|
82
|
+
cancelUpload(file.uid);
|
|
83
|
+
loadingUids.value.delete(file.uid);
|
|
84
|
+
}
|
|
67
85
|
const index = fileList.value.indexOf(file);
|
|
68
86
|
if (index > -1) {
|
|
69
87
|
fileList.value.splice(index, 1);
|
|
@@ -119,6 +137,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
119
137
|
const _component_el_icon = resolveComponent("el-icon");
|
|
120
138
|
const _component_el_button = resolveComponent("el-button");
|
|
121
139
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
140
|
+
const _component_el_progress = resolveComponent("el-progress");
|
|
122
141
|
const _component_el_upload = resolveComponent("el-upload");
|
|
123
142
|
const _component_el_checkbox_group = resolveComponent("el-checkbox-group");
|
|
124
143
|
const _directive_loading = resolveDirective("loading");
|
|
@@ -203,12 +222,25 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
203
222
|
style: normalizeStyle({ width: _ctx.width + "px", height: _ctx.height + "px" })
|
|
204
223
|
},
|
|
205
224
|
[
|
|
206
|
-
|
|
225
|
+
file.status === "uploading" || loadingUids.value.has(file.uid) ? (openBlock(), createBlock(_component_el_progress, {
|
|
226
|
+
key: 0,
|
|
227
|
+
type: _ctx.listType === "picture-card" ? "circle" : "line",
|
|
228
|
+
"stroke-width": _ctx.listType === "picture-card" ? 6 : 2,
|
|
229
|
+
percentage: Number(file.percentage),
|
|
230
|
+
style: normalizeStyle(
|
|
231
|
+
_ctx.listType === "picture-card" ? {
|
|
232
|
+
width: _ctx.width - 20 + "px",
|
|
233
|
+
height: _ctx.width - 20 + "px"
|
|
234
|
+
} : "margin-top: 0.5rem"
|
|
235
|
+
),
|
|
236
|
+
width: _ctx.width - 20
|
|
237
|
+
}, null, 8, ["type", "stroke-width", "percentage", "style", "width"])) : (openBlock(), createBlock(unref(GmFileComponent), {
|
|
238
|
+
key: 1,
|
|
207
239
|
file,
|
|
208
240
|
size: _ctx.width - 40,
|
|
209
241
|
controls: false,
|
|
210
242
|
"show-icon": true
|
|
211
|
-
}, null, 8, ["file", "size"])
|
|
243
|
+
}, null, 8, ["file", "size"]))
|
|
212
244
|
],
|
|
213
245
|
4
|
|
214
246
|
/* STYLE */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UploadPro.vue2.mjs","sources":["../../../../../../../packages/components/src/business/uploadPro/UploadPro.vue"],"sourcesContent":["<template>\n <div>\n <div\n v-loading=\"uploadLoading\"\n ref=\"pasteFileRef\"\n :class=\"{ 'gm-upload-pro-file-picture-card': listType === 'picture-card', 'gm-upload-pro-file-disabled': disabled }\"\n class=\"gm-upload-pro-file\"\n >\n <el-checkbox-group v-model=\"checkoutFiles\">\n <el-upload\n ref=\"uploadFileRef\"\n v-bind=\"props\"\n v-model:file-list=\"fileList\"\n :before-remove=\"beforeRemove\"\n action=\"\"\n :http-request=\"httpRequest\"\n :on-success=\"coverFileSuccess\"\n :on-error=\"coverFileError\"\n >\n <slot v-if=\"!disabled\">\n <template v-if=\"listType === 'picture-card'\">\n <div\n class=\"gm-flex gm-flex-col gm-items-center gm-justify-center gm-rounded-md gm-border gm-border-dashed gm-p-1\"\n style=\"flex-direction: column\"\n :style=\"{ width: width + 'px', height: height + 'px' }\"\n >\n <el-icon :size=\"30\" color=\"#999\">\n <UploadFilled />\n </el-icon>\n <div class=\"el-upload__text gm-text-center !gm-text-xs gm-text-gray-500\">\n 将文件拖到此处,复制粘贴,或 <em class=\"gm-text-blue-700\">点击上传</em>\n </div>\n </div>\n </template>\n <template v-else>\n <el-button type=\"primary\" size=\"default\">点击上传</el-button>\n </template>\n </slot>\n <template v-if=\"showFileList && listType === 'picture-card'\" #file=\"{ file }\">\n <el-checkbox v-if=\"checkbox\" :value=\"file\" />\n <slot name=\"file\" :file=\"file\">\n <div class=\"gm-flex gm-items-center gm-justify-center gm-rounded-md\" :style=\"{ width: width + 'px', height: height + 'px' }\">\n <GmFileComponent :file=\"file\" :size=\"width - 40\" :controls=\"false\" :show-icon=\"true\" />\n </div>\n <div class=\"el-upload-list__item-actions\">\n <span class=\"el-upload-list__item-preview\" @click=\"handlePreview(file)\">\n <el-icon><View /></el-icon>\n </span>\n <span v-if=\"showDelete\" class=\"el-upload-list__item-delete\" @click=\"handleRemove(file, fileList)\">\n <el-icon><Delete /></el-icon>\n </span>\n </div>\n </slot>\n </template>\n <template v-else #file=\"slotValue\">\n <slot name=\"file\" v-bind=\"slotValue\" />\n </template>\n <template v-if=\"slots.trigger\" #trigger>\n <slot name=\"trigger\" />\n </template>\n <template v-if=\"slots.tip\" #tip>\n <div class=\"gm-text-sm\">\n <slot name=\"tip\" />\n </div>\n </template>\n </el-upload>\n </el-checkbox-group>\n\n <GmPreviewFile v-model:dialogVisible=\"dialogVisible\" v-model:file-index=\"fileIndex\" :file-list=\"fileList\" />\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ElMessageBox } from 'element-plus';\nimport { computed, ref, useSlots } from 'vue';\n// import { fileValidType } from '@giime/utils/src/file';\n// import { pasteFile } from '@giime/utils/src/pasteFile';\nimport { usePasteFile } from '@giime/hooks/base/usePasteFile';\nimport { GmConfirmBox } from '@giime/components/src/plugins/confirmBox';\nimport { Delete, UploadFilled, View } from '@element-plus/icons-vue';\nimport GmFileComponent from '../../composite/fileComponent';\nimport GmPreviewFile from '../../composite/previewFile';\nimport { GmUploadProUserFileResponse, uploadFileProps } from './uploadPro';\nimport type { UploadFile, UploadFiles, UploadInstance, UploadProps, UploadRawFile } from 'element-plus';\nimport { getGmExports } from '@giime/utils/src/elementPlus/exports';\nimport { useUploadFile } from '@giime/hooks/base/useUploadFile';\n\ndefineOptions({\n name: 'GmUploadPro',\n});\nconst slots = useSlots();\n\nconst props = defineProps(uploadFileProps);\nconst emit = defineEmits([\"handleRemove\"]);\n\n/** 上传文件 */\nconst fileList = defineModel<UploadFile[]>('fileList', { required: true });\n/** 多选数据 */\nconst checkoutFiles = defineModel<any[]>('checkoutFiles', { default: () => [] });\n\n/**上传功能 */\nconst { uploadFile } = useUploadFile();\n\nconst loadingUids = ref<Set<number>>(new Set());\nconst uploadLoading = computed(() => props.showLoading && loadingUids.value.size > 0);\n\n/* 上传 */\nconst httpRequest: UploadProps['httpRequest'] = async options => {\n loadingUids.value.add(options.file.uid);\n return uploadFile(options.file, { domainCode: props.domainCode, sceneCode: props.sceneCode, accept: props.accept, acl: props.acl });\n};\n// 上传成功\nconst coverFileSuccess: UploadProps['onSuccess'] = (response: GmUploadProUserFileResponse, uploadFile, uploadFiles) => {\n loadingUids.value.delete(uploadFile.uid);\n props.onSuccess?.(response, uploadFile, uploadFiles);\n};\n// 上传失败\nconst coverFileError: UploadProps['onError'] = (error, uploadFile, uploadFiles) => {\n loadingUids.value.delete(uploadFile.uid);\n props.onError?.(error, uploadFile, uploadFiles);\n};\n\n/* 删除文件前 */\nconst beforeRemove: UploadProps['beforeRemove'] = (file, files) => {\n if (props.disabled) {\n return false;\n }\n return props.beforeRemove?.(file, files) ?? true;\n};\n\n/* 删除文件 */\nconst removeFile = (file: UploadFile, uploadFiles: UploadFiles) => {\n const index = fileList.value.indexOf(file);\n if (index > -1) {\n fileList.value.splice(index, 1);\n emit('handleRemove', { file, index });\n return props.onRemove?.(file, uploadFiles);\n }\n};\n/**点击删除图标 */\nconst handleRemove = async (file: UploadFile, uploadFiles: UploadFiles) => {\n if (props.deleteTip) {\n await GmConfirmBox({ message: '确定删除该文件吗?' }, async () => {});\n }\n\n removeFile(file, uploadFiles);\n};\n\nconst uploadFileRef = ref<UploadInstance>();\nconst exposeEvents = ['abort', 'submit', 'clearFiles', 'handleStart', 'handleRemove'] as const;\nconst { exposeFns } = getGmExports(uploadFileRef, exposeEvents);\n\nconst pasteFileRef = ref<HTMLElement>();\n\n/** 预览 */\nconst dialogVisible = ref(false);\nconst fileIndex = ref(0);\n/**点击预览 */\nconst handlePreview = (file: UploadFile) => {\n fileIndex.value = fileList.value.indexOf(file);\n dialogVisible.value = true;\n};\n\n//** 复制粘贴 */\nconst { onSuccess, onError } = usePasteFile(pasteFileRef, { accept: props.accept, disabled: props.disabled });\nonSuccess((files: File[]) => {\n if (props.disabled) {\n return;\n }\n if (Array.isArray(files) && files.length > 0) {\n files.forEach(file => {\n if (file instanceof File) {\n const rawFile = file as UploadRawFile;\n uploadFileRef.value?.handleStart(rawFile);\n\n // 粘贴成功自动上传\n if (props.autoUpload) {\n uploadFileRef.value?.submit();\n }\n }\n });\n }\n});\n/**粘贴失败 */\nonError((error: Error) => {\n console.error('粘贴错误:', error);\n ElMessageBox.alert(error.message, '提示', {\n type: 'error',\n });\n});\ndefineExpose({\n ...exposeFns,\n uploadFileRef,\n});\n</script>\n\n<style scoped lang=\"scss\">\n.gm-upload-pro-preview-dialog {\n :deep(.el-dialog__body) {\n padding: 0;\n }\n}\n.gm-upload-pro-file-picture-card {\n :deep(.el-upload-list__item),\n :deep(.el-upload--picture-card) {\n width: auto;\n height: auto;\n }\n}\n</style>\n<style lang=\"scss\">\n.gm-upload-pro-file {\n line-height: normal;\n .el-checkbox-group {\n font-size: unset;\n }\n .el-checkbox {\n position: absolute;\n left: 10px;\n top: 0;\n z-index: 9;\n }\n .el-upload-list--picture-card {\n gap: 10px;\n }\n .el-upload-list__item {\n margin: 0;\n }\n .el-upload-list__item-file-name {\n line-height: 1.7;\n }\n .el-upload-dragger {\n padding: 0;\n border: none;\n width: 100%;\n height: 100%;\n display: flex;\n }\n .el-upload--picture-card {\n border: none;\n }\n}\n.gm-upload-pro-file-disabled {\n .el-upload--picture-card {\n display: none;\n }\n .el-upload-list__item-status-label {\n display: none;\n }\n}\n</style>\n"],"names":["_useModel","uploadFile"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2FA,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAEvB,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAGb,IAAM,MAAA,QAAA,GAAWA,QAA0B,CAAA,OAAA,EAAA,UAA8B,CAAA,CAAA;AAEzE,IAAM,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A;AACD,IAAa,QAAA,CAAA;AAAA,MACX,GAAG,SAAA;AAAA,MACH,aAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"UploadPro.vue2.mjs","sources":["../../../../../../../packages/components/src/business/uploadPro/UploadPro.vue"],"sourcesContent":["<template>\n <div>\n <div\n v-loading=\"uploadLoading\"\n ref=\"pasteFileRef\"\n :class=\"{ 'gm-upload-pro-file-picture-card': listType === 'picture-card', 'gm-upload-pro-file-disabled': disabled }\"\n class=\"gm-upload-pro-file\"\n >\n <el-checkbox-group v-model=\"checkoutFiles\">\n <el-upload\n ref=\"uploadFileRef\"\n v-bind=\"props\"\n v-model:file-list=\"fileList\"\n :before-remove=\"beforeRemove\"\n action=\"\"\n :http-request=\"httpRequest\"\n :on-success=\"coverFileSuccess\"\n :on-error=\"coverFileError\"\n >\n <slot v-if=\"!disabled\">\n <template v-if=\"listType === 'picture-card'\">\n <div\n class=\"gm-flex gm-flex-col gm-items-center gm-justify-center gm-rounded-md gm-border gm-border-dashed gm-p-1\"\n style=\"flex-direction: column\"\n :style=\"{ width: width + 'px', height: height + 'px' }\"\n >\n <el-icon :size=\"30\" color=\"#999\">\n <UploadFilled />\n </el-icon>\n <div class=\"el-upload__text gm-text-center !gm-text-xs gm-text-gray-500\">\n 将文件拖到此处,复制粘贴,或 <em class=\"gm-text-blue-700\">点击上传</em>\n </div>\n </div>\n </template>\n <template v-else>\n <el-button type=\"primary\" size=\"default\">点击上传</el-button>\n </template>\n </slot>\n <template v-if=\"showFileList && listType === 'picture-card'\" #file=\"{ file }\">\n <el-checkbox v-if=\"checkbox\" :value=\"file\" />\n\n <slot name=\"file\" :file=\"file\">\n <div class=\"gm-flex gm-items-center gm-justify-center gm-rounded-md\" :style=\"{ width: width + 'px', height: height + 'px' }\">\n <el-progress\n v-if=\"file.status === 'uploading' || loadingUids.has(file.uid)\"\n :type=\"listType === 'picture-card' ? 'circle' : 'line'\"\n :stroke-width=\"listType === 'picture-card' ? 6 : 2\"\n :percentage=\"Number(file.percentage)\"\n :style=\"\n listType === 'picture-card'\n ? {\n width: width - 20 + 'px',\n height: width - 20 + 'px',\n }\n : 'margin-top: 0.5rem'\n \"\n :width=\"width - 20\"\n />\n\n <GmFileComponent v-else :file=\"file\" :size=\"width - 40\" :controls=\"false\" :show-icon=\"true\" />\n </div>\n <div class=\"el-upload-list__item-actions\">\n <span class=\"el-upload-list__item-preview\" @click=\"handlePreview(file)\">\n <el-icon><View /></el-icon>\n </span>\n <span v-if=\"showDelete\" class=\"el-upload-list__item-delete\" @click=\"handleRemove(file, fileList)\">\n <el-icon><Delete /></el-icon>\n </span>\n </div>\n </slot>\n </template>\n <template v-else #file=\"slotValue\">\n <slot name=\"file\" v-bind=\"slotValue\" />\n </template>\n <template v-if=\"slots.trigger\" #trigger>\n <slot name=\"trigger\" />\n </template>\n <template v-if=\"slots.tip\" #tip>\n <div class=\"gm-text-sm\">\n <slot name=\"tip\" />\n </div>\n </template>\n </el-upload>\n </el-checkbox-group>\n\n <GmPreviewFile v-model:dialogVisible=\"dialogVisible\" v-model:file-index=\"fileIndex\" :file-list=\"fileList\" />\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ElMessageBox } from 'element-plus';\nimport { computed, ref, useSlots } from 'vue';\n// import { fileValidType } from '@giime/utils/src/file';\n// import { pasteFile } from '@giime/utils/src/pasteFile';\nimport { usePasteFile } from '@giime/hooks/base/usePasteFile';\nimport { GmConfirmBox } from '@giime/components/src/plugins/confirmBox';\nimport { Delete, UploadFilled, View } from '@element-plus/icons-vue';\nimport GmFileComponent from '../../composite/fileComponent';\nimport GmPreviewFile from '../../composite/previewFile';\nimport { GmUploadProUserFileResponse, uploadFileProps } from './uploadPro';\nimport type { UploadFile, UploadFiles, UploadInstance, UploadProps, UploadRawFile } from 'element-plus';\nimport { getGmExports } from '@giime/utils/src/elementPlus/exports';\nimport { useUploadFile } from '@giime/hooks/base/useUploadFile';\n\ndefineOptions({\n name: 'GmUploadPro',\n});\nconst slots = useSlots();\n\nconst props = defineProps(uploadFileProps);\nconst emit = defineEmits([\"handleRemove\"]);\n\n/** 上传文件 */\nconst fileList = defineModel<UploadFile[]>('fileList', { required: true });\n/** 多选数据 */\nconst checkoutFiles = defineModel<any[]>('checkoutFiles', { default: () => [] });\n/**上传功能 */\nconst { uploadFile, cancelUpload } = useUploadFile();\n\nconst loadingUids = ref<Set<number>>(new Set());\nconst uploadLoading = computed(() => props.showLoading && loadingUids.value.size > 0);\n\n/* 上传 */\nconst httpRequest: UploadProps['httpRequest'] = async options => {\n loadingUids.value.add(options.file.uid);\n return uploadFile(options.file, {\n domainCode: props.domainCode,\n sceneCode: props.sceneCode,\n accept: props.accept,\n acl: props.acl,\n elOptions: options,\n });\n};\n// 上传成功\nconst coverFileSuccess: UploadProps['onSuccess'] = (response: GmUploadProUserFileResponse, uploadFile, uploadFiles) => {\n loadingUids.value.delete(uploadFile.uid);\n props.onSuccess?.(response, uploadFile, uploadFiles);\n};\n// 上传失败\nconst coverFileError: UploadProps['onError'] = (error, uploadFile, uploadFiles) => {\n loadingUids.value.delete(uploadFile.uid);\n props.onError?.(error, uploadFile, uploadFiles);\n};\n\n/* 删除文件前 */\nconst beforeRemove: UploadProps['beforeRemove'] = async (file, files) => {\n if (props.disabled) {\n return false;\n }\n if (props.deleteTip) {\n await GmConfirmBox({ message: '确定删除该文件吗?' }, async () => {});\n }\n // 如果文件正在上传,取消上传请求\n if (file.status === 'uploading' || loadingUids.value.has(file.uid)) {\n cancelUpload(file.uid);\n loadingUids.value.delete(file.uid);\n }\n return props.beforeRemove?.(file, files) ?? true;\n};\n\n/* 删除文件 */\nconst removeFile = (file: UploadFile, uploadFiles: UploadFiles) => {\n // 如果文件正在上传,取消上传请求\n if (file.status === 'uploading' || loadingUids.value.has(file.uid)) {\n cancelUpload(file.uid);\n loadingUids.value.delete(file.uid);\n }\n\n const index = fileList.value.indexOf(file);\n if (index > -1) {\n fileList.value.splice(index, 1);\n emit('handleRemove', { file, index });\n return props.onRemove?.(file, uploadFiles);\n }\n};\n/**点击删除图标 */\nconst handleRemove = async (file: UploadFile, uploadFiles: UploadFiles) => {\n if (props.deleteTip) {\n await GmConfirmBox({ message: '确定删除该文件吗?' }, async () => {});\n }\n\n removeFile(file, uploadFiles);\n};\n\nconst uploadFileRef = ref<UploadInstance>();\nconst exposeEvents = ['abort', 'submit', 'clearFiles', 'handleStart', 'handleRemove'] as const;\nconst { exposeFns } = getGmExports(uploadFileRef, exposeEvents);\n\nconst pasteFileRef = ref<HTMLElement>();\n\n/** 预览 */\nconst dialogVisible = ref(false);\nconst fileIndex = ref(0);\n/**点击预览 */\nconst handlePreview = (file: UploadFile) => {\n fileIndex.value = fileList.value.indexOf(file);\n dialogVisible.value = true;\n};\n\n//** 复制粘贴 */\nconst { onSuccess, onError } = usePasteFile(pasteFileRef, { accept: props.accept, disabled: props.disabled });\nonSuccess((files: File[]) => {\n if (props.disabled) {\n return;\n }\n if (Array.isArray(files) && files.length > 0) {\n files.forEach(file => {\n if (file instanceof File) {\n const rawFile = file as UploadRawFile;\n uploadFileRef.value?.handleStart(rawFile);\n\n // 粘贴成功自动上传\n if (props.autoUpload) {\n uploadFileRef.value?.submit();\n }\n }\n });\n }\n});\n/**粘贴失败 */\nonError((error: Error) => {\n console.error('粘贴错误:', error);\n ElMessageBox.alert(error.message, '提示', {\n type: 'error',\n });\n});\ndefineExpose({\n ...exposeFns,\n uploadFileRef,\n});\n</script>\n\n<style scoped lang=\"scss\">\n.gm-upload-pro-preview-dialog {\n :deep(.el-dialog__body) {\n padding: 0;\n }\n}\n.gm-upload-pro-file-picture-card {\n :deep(.el-upload-list__item),\n :deep(.el-upload--picture-card) {\n width: auto;\n height: auto;\n }\n}\n</style>\n<style lang=\"scss\">\n.gm-upload-pro-file {\n line-height: normal;\n .el-checkbox-group {\n font-size: unset;\n }\n .el-checkbox {\n position: absolute;\n left: 10px;\n top: 0;\n z-index: 9;\n }\n .el-upload-list--picture-card {\n gap: 10px;\n }\n .el-upload-list__item {\n margin: 0;\n }\n .el-upload-list__item-file-name {\n line-height: 1.7;\n }\n .el-upload-dragger {\n padding: 0;\n border: none;\n width: 100%;\n height: 100%;\n display: flex;\n }\n .el-upload--picture-card {\n border: none;\n }\n}\n.gm-upload-pro-file-disabled {\n .el-upload--picture-card {\n display: none;\n }\n .el-upload-list__item-status-label {\n display: none;\n }\n}\n</style>\n"],"names":["_useModel","uploadFile"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4GA,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAEvB,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAGb,IAAM,MAAA,QAAA,GAAWA,QAA0B,CAAA,OAAA,EAAA,UAA8B,CAAA,CAAA;AAEzE,IAAM,MAAA,aAAA,GAAgBA,kBAAmB,eAAsC,CAAA,CAAA;AAE/E,IAAA,MAAM,EAAE,UAAA,EAAY,YAAa,EAAA,GAAI,aAAc,EAAA,CAAA;AAEnD,IAAA,MAAM,WAAc,GAAA,GAAA,iBAAqB,IAAA,GAAA,EAAK,CAAA,CAAA;AAC9C,IAAM,MAAA,aAAA,GAAgB,SAAS,MAAM,KAAA,CAAM,eAAe,WAAY,CAAA,KAAA,CAAM,OAAO,CAAC,CAAA,CAAA;AAGpF,IAAM,MAAA,WAAA,GAA0C,OAAM,OAAW,KAAA;AAC/D,MAAA,WAAA,CAAY,KAAM,CAAA,GAAA,CAAI,OAAQ,CAAA,IAAA,CAAK,GAAG,CAAA,CAAA;AACtC,MAAO,OAAA,UAA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C,KAAiB,KAAA;AACxB,MAAQ,OAAA,CAAA,KAAA,CAAM,6BAAS,KAAK,CAAA,CAAA;AAC5B,MAAa,YAAA,CAAA,KAAA,CAAM,KAAM,CAAA,OAAA,EAAS,cAAM,EAAA;AAAA,QACtC,IAAM,EAAA,OAAA;AAAA,OACP,CAAA,CAAA;AAAA,KACF,CAAA,CAAA;AACD,IAAa,QAAA,CAAA;AAAA,MACX,GAAG,SAAA;AAAA,MACH,aAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploadPro.mjs","sources":["../../../../../../../packages/components/src/business/uploadPro/uploadPro.ts"],"sourcesContent":["import { type PropType } from 'vue';\nimport { type UploadFile, type UploadProps, uploadProps, type UploadUserFile } from 'element-plus';\nimport type { ResourceUrlResponse } from '@giime/api/resource/interface';\n// import { previewFileProps } from '../../composite/previewFile/previewFile';\n\nexport const uploadFileProps = {\n ...uploadProps,\n // ...previewFileProps,\n listType: {\n type: String as PropType<UploadProps['listType']>,\n default: 'picture-card',\n },\n drag: {\n type: Boolean,\n default: true,\n },\n /**领域编码 */\n domainCode: {\n type: String,\n },\n /**场景编码 */\n sceneCode: {\n type: String,\n default: 'internal_oss',\n },\n /** 文件权限,默认继承桶 */\n acl: {\n type: String,\n default: 'default',\n },\n /**上传中是否loading */\n showLoading: {\n type: Boolean,\n default:
|
|
1
|
+
{"version":3,"file":"uploadPro.mjs","sources":["../../../../../../../packages/components/src/business/uploadPro/uploadPro.ts"],"sourcesContent":["import { type PropType } from 'vue';\nimport { type UploadFile, type UploadProps, uploadProps, type UploadUserFile } from 'element-plus';\nimport type { ResourceUrlResponse } from '@giime/api/resource/interface';\n// import { previewFileProps } from '../../composite/previewFile/previewFile';\n\nexport const uploadFileProps = {\n ...uploadProps,\n // ...previewFileProps,\n listType: {\n type: String as PropType<UploadProps['listType']>,\n default: 'picture-card',\n },\n drag: {\n type: Boolean,\n default: true,\n },\n /**领域编码 */\n domainCode: {\n type: String,\n },\n /**场景编码 */\n sceneCode: {\n type: String,\n default: 'internal_oss',\n },\n /** 文件权限,默认继承桶 */\n acl: {\n type: String,\n default: 'default',\n },\n /**上传中是否loading */\n showLoading: {\n type: Boolean,\n default: false,\n },\n /** 是否展示删除按钮 */\n showDelete: {\n type: Boolean,\n default: true,\n },\n /** 删除时提示 */\n deleteTip: {\n type: Boolean,\n default: false,\n },\n /** 是否开启文件多选 */\n checkbox: {\n type: Boolean,\n default: false,\n },\n /** 缩略图宽度 */\n width: {\n type: Number,\n default: 120,\n },\n /** 缩略图高度 */\n height: {\n type: Number,\n default: 120,\n },\n};\nexport type GmUploadProUserFileResponse = ResourceUrlResponse;\n\nexport type GmUploadProUserFile = Omit<UploadUserFile, 'response'> & { response?: GmUploadProUserFileResponse };\n"],"names":[],"mappings":";;AAKO,MAAM,eAAkB,GAAA;AAAA,EAC7B,GAAG,WAAA;AAAA;AAAA,EAEH,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,cAAA;AAAA,GACX;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA;AAAA,EAEA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA,EAEA,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,cAAA;AAAA,GACX;AAAA;AAAA,EAEA,GAAK,EAAA;AAAA,IACH,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,SAAA;AAAA,GACX;AAAA;AAAA,EAEA,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA;AAAA,EAEA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA;AAAA,EAEA,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA;AAAA,EAEA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA;AAAA,EAEA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,GAAA;AAAA,GACX;AAAA;AAAA,EAEA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,GAAA;AAAA,GACX;AACF;;;;"}
|
|
@@ -10,7 +10,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
required: true;
|
|
11
11
|
};
|
|
12
12
|
type: {
|
|
13
|
-
type: import("vue").PropType<"date" | "daterange" | "month" | "year" | "months" | "years" | "dates" | "week" | "
|
|
13
|
+
type: import("vue").PropType<"date" | "daterange" | "month" | "year" | "months" | "years" | "dates" | "week" | "datetimerange" | "datetime" | "monthrange" | "yearrange">;
|
|
14
14
|
required: true;
|
|
15
15
|
};
|
|
16
16
|
shortcuts: {
|
|
@@ -30,7 +30,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
30
|
};
|
|
31
31
|
valueFormat: {
|
|
32
32
|
type: import("vue").PropType<string | undefined>;
|
|
33
|
-
default: string;
|
|
34
33
|
};
|
|
35
34
|
startPlaceholder: {
|
|
36
35
|
type: StringConstructor;
|
|
@@ -60,7 +59,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
60
59
|
required: true;
|
|
61
60
|
};
|
|
62
61
|
type: {
|
|
63
|
-
type: import("vue").PropType<"date" | "daterange" | "month" | "year" | "months" | "years" | "dates" | "week" | "
|
|
62
|
+
type: import("vue").PropType<"date" | "daterange" | "month" | "year" | "months" | "years" | "dates" | "week" | "datetimerange" | "datetime" | "monthrange" | "yearrange">;
|
|
64
63
|
required: true;
|
|
65
64
|
};
|
|
66
65
|
shortcuts: {
|
|
@@ -80,7 +79,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
80
79
|
};
|
|
81
80
|
valueFormat: {
|
|
82
81
|
type: import("vue").PropType<string | undefined>;
|
|
83
|
-
default: string;
|
|
84
82
|
};
|
|
85
83
|
startPlaceholder: {
|
|
86
84
|
type: StringConstructor;
|
|
@@ -102,7 +100,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
102
100
|
}, {
|
|
103
101
|
disabled: boolean;
|
|
104
102
|
label: string;
|
|
105
|
-
valueFormat: string | undefined;
|
|
106
103
|
noDefaultSync: boolean;
|
|
107
104
|
}, {}>;
|
|
108
105
|
export default _default;
|