giime 0.6.38 → 0.6.39
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 +102 -102
- package/es/components/src/composite/uploadFile/UploadFile.vue.mjs +1 -1
- package/es/components/src/composite/uploadFile/UploadFile.vue2.mjs +4 -3
- package/es/components/src/composite/uploadFile/UploadFile.vue2.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/index.css +102 -102
- package/lib/components/src/composite/uploadFile/UploadFile.vue.js +1 -1
- package/lib/components/src/composite/uploadFile/UploadFile.vue2.js +4 -3
- package/lib/components/src/composite/uploadFile/UploadFile.vue2.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/index.css +102 -102
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -873,57 +873,56 @@ 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
|
+
}
|
|
876
879
|
|
|
877
|
-
.gm-
|
|
878
|
-
|
|
880
|
+
.gm-flex-justify-between[data-v-c17deec9] {
|
|
881
|
+
justify-content: space-between;
|
|
882
|
+
}
|
|
883
|
+
.gm-upload-preview-dialog[data-v-62eb3199] [data-v-62eb3199] .el-dialog__body {
|
|
884
|
+
padding: 0;
|
|
879
885
|
}
|
|
880
886
|
|
|
881
|
-
.gm-upload-
|
|
882
|
-
|
|
887
|
+
.gm-upload-file-picture-card[data-v-62eb3199] [data-v-62eb3199] .el-upload-list__item, .gm-upload-file-picture-card[data-v-62eb3199] [data-v-62eb3199] .el-upload--picture-card {
|
|
888
|
+
width: auto;
|
|
889
|
+
height: auto;
|
|
883
890
|
}
|
|
884
|
-
.gm-upload-
|
|
885
|
-
|
|
891
|
+
.gm-upload-file {
|
|
892
|
+
line-height: normal;
|
|
886
893
|
}
|
|
887
|
-
.gm-upload-
|
|
894
|
+
.gm-upload-file .el-checkbox {
|
|
888
895
|
position: absolute;
|
|
889
896
|
left: 10px;
|
|
890
897
|
top: 0;
|
|
891
898
|
z-index: 9;
|
|
892
899
|
}
|
|
893
|
-
.gm-upload-
|
|
900
|
+
.gm-upload-file .el-upload-list--picture-card {
|
|
894
901
|
gap: 10px;
|
|
895
902
|
}
|
|
896
|
-
.gm-upload-
|
|
903
|
+
.gm-upload-file .el-upload-list__item {
|
|
897
904
|
margin: 0;
|
|
898
905
|
}
|
|
899
|
-
.gm-upload-
|
|
900
|
-
line-height:
|
|
906
|
+
.gm-upload-file .el-upload-list__item-file-name {
|
|
907
|
+
line-height: normal;
|
|
901
908
|
}
|
|
902
|
-
.gm-upload-
|
|
909
|
+
.gm-upload-file .el-upload-dragger {
|
|
903
910
|
padding: 0;
|
|
904
911
|
border: none;
|
|
905
912
|
width: 100%;
|
|
906
913
|
height: 100%;
|
|
907
914
|
display: flex;
|
|
908
915
|
}
|
|
909
|
-
.gm-upload-
|
|
916
|
+
.gm-upload-file .el-upload--picture-card {
|
|
910
917
|
border: none;
|
|
911
918
|
}
|
|
912
919
|
|
|
913
|
-
.gm-upload-
|
|
920
|
+
.gm-upload-file-disabled .el-upload--picture-card {
|
|
914
921
|
display: none;
|
|
915
922
|
}
|
|
916
|
-
.gm-upload-
|
|
923
|
+
.gm-upload-file-disabled .el-upload-list__item-status-label {
|
|
917
924
|
display: none;
|
|
918
925
|
}
|
|
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
926
|
.circular[data-v-d7b04fae] {
|
|
928
927
|
animation: loading-rotate-d7b04fae 2s linear infinite;
|
|
929
928
|
}
|
|
@@ -955,65 +954,60 @@ video {
|
|
|
955
954
|
stroke-dashoffset: -120px;
|
|
956
955
|
}
|
|
957
956
|
}
|
|
958
|
-
.gm-flex-center[data-v-c17deec9] {
|
|
959
|
-
align-items: center;
|
|
960
|
-
}
|
|
961
957
|
|
|
962
|
-
.gm-
|
|
963
|
-
|
|
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;
|
|
958
|
+
.gm-range-number .el-form-item[data-v-1ae16d96] {
|
|
959
|
+
margin: 0;
|
|
973
960
|
}
|
|
974
961
|
|
|
975
|
-
.gm-
|
|
976
|
-
|
|
977
|
-
color: var(--el-input-icon-color, var(--el-text-color-placeholder));
|
|
962
|
+
.gm-upload-pro-preview-dialog[data-v-ca99928c] [data-v-ca99928c] .el-dialog__body {
|
|
963
|
+
padding: 0;
|
|
978
964
|
}
|
|
979
965
|
|
|
980
|
-
.gm-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
[data-v-488ca110] .gmSearchForm .el-form-item {
|
|
984
|
-
margin-right: 0;
|
|
985
|
-
margin-bottom: 4px;
|
|
966
|
+
.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 {
|
|
967
|
+
width: auto;
|
|
968
|
+
height: auto;
|
|
986
969
|
}
|
|
987
|
-
|
|
988
|
-
|
|
970
|
+
.gm-upload-pro-file {
|
|
971
|
+
line-height: normal;
|
|
989
972
|
}
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
height: 0;
|
|
973
|
+
.gm-upload-pro-file .el-checkbox-group {
|
|
974
|
+
font-size: unset;
|
|
993
975
|
}
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
976
|
+
.gm-upload-pro-file .el-checkbox {
|
|
977
|
+
position: absolute;
|
|
978
|
+
left: 10px;
|
|
979
|
+
top: 0;
|
|
980
|
+
z-index: 9;
|
|
997
981
|
}
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
height: 0;
|
|
982
|
+
.gm-upload-pro-file .el-upload-list--picture-card {
|
|
983
|
+
gap: 10px;
|
|
1001
984
|
}
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
height: 0;
|
|
985
|
+
.gm-upload-pro-file .el-upload-list__item {
|
|
986
|
+
margin: 0;
|
|
1005
987
|
}
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
height: 0;
|
|
988
|
+
.gm-upload-pro-file .el-upload-list__item-file-name {
|
|
989
|
+
line-height: 1.7;
|
|
1009
990
|
}
|
|
1010
|
-
.gm-upload-
|
|
991
|
+
.gm-upload-pro-file .el-upload-dragger {
|
|
1011
992
|
padding: 0;
|
|
993
|
+
border: none;
|
|
994
|
+
width: 100%;
|
|
995
|
+
height: 100%;
|
|
996
|
+
display: flex;
|
|
997
|
+
}
|
|
998
|
+
.gm-upload-pro-file .el-upload--picture-card {
|
|
999
|
+
border: none;
|
|
1012
1000
|
}
|
|
1013
1001
|
|
|
1014
|
-
.gm-upload-
|
|
1015
|
-
|
|
1016
|
-
|
|
1002
|
+
.gm-upload-pro-file-disabled .el-upload--picture-card {
|
|
1003
|
+
display: none;
|
|
1004
|
+
}
|
|
1005
|
+
.gm-upload-pro-file-disabled .el-upload-list__item-status-label {
|
|
1006
|
+
display: none;
|
|
1007
|
+
}
|
|
1008
|
+
[data-v-488ca110] .gmSearchForm .el-form-item {
|
|
1009
|
+
margin-right: 0;
|
|
1010
|
+
margin-bottom: 4px;
|
|
1017
1011
|
}
|
|
1018
1012
|
[data-v-2c351ff8] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
1019
1013
|
border-right: none;
|
|
@@ -1038,41 +1032,6 @@ video {
|
|
|
1038
1032
|
[data-v-2c351ff8] .gmTableNoBorder .el-table__border-left-patch {
|
|
1039
1033
|
height: 0;
|
|
1040
1034
|
}
|
|
1041
|
-
.gm-upload-file {
|
|
1042
|
-
line-height: normal;
|
|
1043
|
-
}
|
|
1044
|
-
.gm-upload-file .el-checkbox {
|
|
1045
|
-
position: absolute;
|
|
1046
|
-
left: 10px;
|
|
1047
|
-
top: 0;
|
|
1048
|
-
z-index: 9;
|
|
1049
|
-
}
|
|
1050
|
-
.gm-upload-file .el-upload-list--picture-card {
|
|
1051
|
-
gap: 10px;
|
|
1052
|
-
}
|
|
1053
|
-
.gm-upload-file .el-upload-list__item {
|
|
1054
|
-
margin: 0;
|
|
1055
|
-
}
|
|
1056
|
-
.gm-upload-file .el-upload-list__item-file-name {
|
|
1057
|
-
line-height: normal;
|
|
1058
|
-
}
|
|
1059
|
-
.gm-upload-file .el-upload-dragger {
|
|
1060
|
-
padding: 0;
|
|
1061
|
-
border: none;
|
|
1062
|
-
width: 100%;
|
|
1063
|
-
height: 100%;
|
|
1064
|
-
display: flex;
|
|
1065
|
-
}
|
|
1066
|
-
.gm-upload-file .el-upload--picture-card {
|
|
1067
|
-
border: none;
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
|
-
.gm-upload-file-disabled .el-upload--picture-card {
|
|
1071
|
-
display: none;
|
|
1072
|
-
}
|
|
1073
|
-
.gm-upload-file-disabled .el-upload-list__item-status-label {
|
|
1074
|
-
display: none;
|
|
1075
|
-
}
|
|
1076
1035
|
|
|
1077
1036
|
.pagination-container[data-v-47d35e7b] {
|
|
1078
1037
|
background: #fff;
|
|
@@ -1082,6 +1041,24 @@ video {
|
|
|
1082
1041
|
display: none;
|
|
1083
1042
|
}
|
|
1084
1043
|
|
|
1044
|
+
.gm-number-interval-single[data-v-4e6f4d6f] {
|
|
1045
|
+
border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
|
|
1046
|
+
box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
|
|
1047
|
+
background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
|
|
1048
|
+
}
|
|
1049
|
+
.gm-number-interval-single[data-v-4e6f4d6f] [data-v-4e6f4d6f] .el-input__wrapper {
|
|
1050
|
+
box-shadow: none;
|
|
1051
|
+
background: none;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
.gm-number-interval-close[data-v-4e6f4d6f] {
|
|
1055
|
+
display: none;
|
|
1056
|
+
color: var(--el-input-icon-color, var(--el-text-color-placeholder));
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
.gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
|
|
1060
|
+
display: flex;
|
|
1061
|
+
}
|
|
1085
1062
|
@charset "UTF-8";
|
|
1086
1063
|
.custom-operate-drawer .el-drawer__header {
|
|
1087
1064
|
padding: 10px 15px;
|
|
@@ -1138,6 +1115,29 @@ video {
|
|
|
1138
1115
|
border-radius: 10px;
|
|
1139
1116
|
background: #eee;
|
|
1140
1117
|
}
|
|
1118
|
+
[data-v-98c2e804] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
1119
|
+
border-right: none;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
[data-v-98c2e804] .gmTableNoBorder .el-table__inner-wrapper:before {
|
|
1123
|
+
height: 0;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
[data-v-98c2e804] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
|
|
1127
|
+
height: 0;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
[data-v-98c2e804] .gmTableNoBorder.el-table--border:after {
|
|
1131
|
+
height: 0;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
[data-v-98c2e804] .gmTableNoBorder.el-table--border:before {
|
|
1135
|
+
height: 0;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
[data-v-98c2e804] .gmTableNoBorder .el-table__border-left-patch {
|
|
1139
|
+
height: 0;
|
|
1140
|
+
}
|
|
1141
1141
|
@charset "UTF-8";
|
|
1142
1142
|
.table-custom-header-drawer .el-drawer__header {
|
|
1143
1143
|
padding: 10px 15px;
|
|
@@ -3,7 +3,7 @@ import './UploadFile.vue3.mjs';
|
|
|
3
3
|
import './UploadFile.vue4.mjs';
|
|
4
4
|
import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
5
5
|
|
|
6
|
-
var UploadFile = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
6
|
+
var UploadFile = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-62eb3199"]]);
|
|
7
7
|
|
|
8
8
|
export { UploadFile as default };
|
|
9
9
|
//# sourceMappingURL=UploadFile.vue.mjs.map
|
|
@@ -9,7 +9,7 @@ import { GmFileComponent } from '../fileComponent/index.mjs';
|
|
|
9
9
|
import { GmPreviewFile } from '../previewFile/index.mjs';
|
|
10
10
|
import { uploadFileProps } from './uploadFile.mjs';
|
|
11
11
|
|
|
12
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
12
|
+
const _withScopeId = (n) => (pushScopeId("data-v-62eb3199"), 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" },
|
|
@@ -225,8 +225,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
225
225
|
size: _ctx.width - 40,
|
|
226
226
|
url: _ctx.url,
|
|
227
227
|
controls: false,
|
|
228
|
-
"show-icon": true
|
|
229
|
-
|
|
228
|
+
"show-icon": true,
|
|
229
|
+
field: _ctx.field
|
|
230
|
+
}, null, 8, ["file", "size", "url", "field"])
|
|
230
231
|
],
|
|
231
232
|
4
|
|
232
233
|
/* STYLE */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UploadFile.vue2.mjs","sources":["../../../../../../../packages/components/src/composite/uploadFile/UploadFile.vue"],"sourcesContent":["<template>\n <div>\n <div\n ref=\"pasteFileRef\"\n :class=\"{ 'gm-upload-file-picture-card': listType === 'picture-card', 'gm-upload-file-disabled': disabled }\"\n class=\"gm-upload-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 >\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\" :url=\"url\" :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 </el-upload>\n </el-checkbox-group>\n\n <GmPreviewFile\n v-model:dialogVisible=\"dialogVisible\"\n v-model:file-index=\"fileIndex\"\n :file-list=\"fileList\"\n :controls=\"controls\"\n :oncontextmenu=\"oncontextmenu\"\n :controlslist=\"controlslist\"\n :field=\"field\"\n />\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref } from 'vue';\nimport { ElMessageBox } from 'element-plus';\nimport { useAliossHookStore } from '@giime/utils/src/alioss/aliossPutHook';\nimport { 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 '../fileComponent';\nimport GmPreviewFile from '../previewFile';\nimport { uploadFileProps } from './uploadFile';\nimport type { UploadFile, UploadFiles, UploadInstance, UploadRawFile, UploadRequestOptions, UploadStatus } from 'element-plus';\nimport type { AliOssResponse } from '@giime/utils/src/alioss/aliossPutHook';\n\ndefineOptions({\n name: 'GmUploadFile',\n});\n\nconst props = defineProps(uploadFileProps);\nconst emit = defineEmits([\"handleRemove\", \"handleSaveFileSuccess\"]);\n\nconst { uploadFile, saveFileResult } = useAliossHookStore();\n\nsaveFileResult((res: AliOssResponse) => {\n emit('handleSaveFileSuccess', res);\n});\n\n/** 上传文件 */\nconst fileList = defineModel<UploadFile[]>('fileList', { required: true, default: () => [] });\n/** 多选数据 */\nconst checkoutFiles = defineModel<any[]>('checkoutFiles', { default: () => [] });\n\n/* 上传 */\nconst httpRequest = async (params: UploadRequestOptions) => {\n const { file } = params;\n\n // 验证文件类型\n if (props.accept && props.accept !== '*') {\n const isValidType = fileValidType(file, props.accept);\n if (!isValidType) {\n throw new Error(`文件类型不支持,请上传 ${props.accept} 格式的文件`);\n }\n }\n\n const res = await uploadFile({\n file,\n fileName: props.fileName,\n folder: props.folder,\n seat: props.seat,\n partSize: props.partSize,\n parallel: props.parallel,\n options: props.options,\n bucket: props.bucket,\n saveStore: props.saveStore,\n platform: props.platform,\n cdn: props.cdn,\n });\n return res;\n};\n\n/* 删除文件前 */\nconst beforeRemove = (file: UploadFile, files: UploadFiles) => {\n if (props.disabled) {\n return false;\n }\n return props.beforeRemove ? 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};\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 pasteFileRef = ref<HTMLElement>();\n/* 手动上传 */\nconst submit = () => {\n uploadFileRef.value!.submit();\n};\n\n/** 取消上传 */\nconst abort = (file: UploadFile) => {\n uploadFileRef.value!.abort(file);\n};\n\n/** 清空已上传的文件列表 */\nconst clearFiles = (status?: UploadStatus[]) => {\n uploadFileRef.value!.clearFiles(status);\n};\n\n/** 手动选择文件 */\nconst handleStart = (rawFile: UploadRawFile) => {\n uploadFileRef.value!.handleStart(rawFile);\n};\n\n/** 预览 */\nconst dialogVisible = ref(false);\nconst fileIndex = ref(0);\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 (Array.isArray(files) && files.length > 0) {\n files.forEach(file => {\n if (file instanceof File) {\n const rawFile = file as UploadRawFile;\n handleStart(rawFile);\n\n // 粘贴成功自动上传\n if (props.autoUpload) {\n submit();\n }\n }\n });\n }\n});\n\nonError((error: Error) => {\n console.error('粘贴错误:', error);\n ElMessageBox.alert(error.message, '提示', {\n type: 'error',\n });\n});\n\ndefineExpose({\n submit,\n abort,\n clearFiles,\n handleStart,\n uploadFileRef,\n});\n</script>\n\n<style scoped lang=\"scss\">\n.gm-upload-preview-dialog {\n :deep(.el-dialog__body) {\n padding: 0;\n }\n}\n.gm-upload-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-file {\n line-height: normal;\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: normal;\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-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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAEb,IAAA,MAAM,EAAE,UAAA,EAAY,cAAe,EAAA,GAAI,kBAAmB,EAAA,CAAA;AAE1D,IAAA,cAAA,CAAe,CAAC,GAAwB,KAAA;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,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;AAED,IAAa,QAAA,CAAA;AAAA,MACX,MAAA;AAAA,MACA,KAAA;AAAA,MACA,UAAA;AAAA,MACA,WAAA;AAAA,MACA,aAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"UploadFile.vue2.mjs","sources":["../../../../../../../packages/components/src/composite/uploadFile/UploadFile.vue"],"sourcesContent":["<template>\n <div>\n <div\n ref=\"pasteFileRef\"\n :class=\"{ 'gm-upload-file-picture-card': listType === 'picture-card', 'gm-upload-file-disabled': disabled }\"\n class=\"gm-upload-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 >\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\" :url=\"url\" :controls=\"false\" :show-icon=\"true\" :field=\"field\" />\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 </el-upload>\n </el-checkbox-group>\n\n <GmPreviewFile\n v-model:dialogVisible=\"dialogVisible\"\n v-model:file-index=\"fileIndex\"\n :file-list=\"fileList\"\n :controls=\"controls\"\n :oncontextmenu=\"oncontextmenu\"\n :controlslist=\"controlslist\"\n :field=\"field\"\n />\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref } from 'vue';\nimport { ElMessageBox } from 'element-plus';\nimport { useAliossHookStore } from '@giime/utils/src/alioss/aliossPutHook';\nimport { 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 '../fileComponent';\nimport GmPreviewFile from '../previewFile';\nimport { uploadFileProps } from './uploadFile';\nimport type { UploadFile, UploadFiles, UploadInstance, UploadRawFile, UploadRequestOptions, UploadStatus } from 'element-plus';\nimport type { AliOssResponse } from '@giime/utils/src/alioss/aliossPutHook';\n\ndefineOptions({\n name: 'GmUploadFile',\n});\n\nconst props = defineProps(uploadFileProps);\nconst emit = defineEmits([\"handleRemove\", \"handleSaveFileSuccess\"]);\n\nconst { uploadFile, saveFileResult } = useAliossHookStore();\n\nsaveFileResult((res: AliOssResponse) => {\n emit('handleSaveFileSuccess', res);\n});\n\n/** 上传文件 */\nconst fileList = defineModel<UploadFile[]>('fileList', { required: true, default: () => [] });\n/** 多选数据 */\nconst checkoutFiles = defineModel<any[]>('checkoutFiles', { default: () => [] });\n\n/* 上传 */\nconst httpRequest = async (params: UploadRequestOptions) => {\n const { file } = params;\n\n // 验证文件类型\n if (props.accept && props.accept !== '*') {\n const isValidType = fileValidType(file, props.accept);\n if (!isValidType) {\n throw new Error(`文件类型不支持,请上传 ${props.accept} 格式的文件`);\n }\n }\n\n const res = await uploadFile({\n file,\n fileName: props.fileName,\n folder: props.folder,\n seat: props.seat,\n partSize: props.partSize,\n parallel: props.parallel,\n options: props.options,\n bucket: props.bucket,\n saveStore: props.saveStore,\n platform: props.platform,\n cdn: props.cdn,\n });\n return res;\n};\n\n/* 删除文件前 */\nconst beforeRemove = (file: UploadFile, files: UploadFiles) => {\n if (props.disabled) {\n return false;\n }\n return props.beforeRemove ? 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};\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 pasteFileRef = ref<HTMLElement>();\n/* 手动上传 */\nconst submit = () => {\n uploadFileRef.value!.submit();\n};\n\n/** 取消上传 */\nconst abort = (file: UploadFile) => {\n uploadFileRef.value!.abort(file);\n};\n\n/** 清空已上传的文件列表 */\nconst clearFiles = (status?: UploadStatus[]) => {\n uploadFileRef.value!.clearFiles(status);\n};\n\n/** 手动选择文件 */\nconst handleStart = (rawFile: UploadRawFile) => {\n uploadFileRef.value!.handleStart(rawFile);\n};\n\n/** 预览 */\nconst dialogVisible = ref(false);\nconst fileIndex = ref(0);\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 (Array.isArray(files) && files.length > 0) {\n files.forEach(file => {\n if (file instanceof File) {\n const rawFile = file as UploadRawFile;\n handleStart(rawFile);\n\n // 粘贴成功自动上传\n if (props.autoUpload) {\n submit();\n }\n }\n });\n }\n});\n\nonError((error: Error) => {\n console.error('粘贴错误:', error);\n ElMessageBox.alert(error.message, '提示', {\n type: 'error',\n });\n});\n\ndefineExpose({\n submit,\n abort,\n clearFiles,\n handleStart,\n uploadFileRef,\n});\n</script>\n\n<style scoped lang=\"scss\">\n.gm-upload-preview-dialog {\n :deep(.el-dialog__body) {\n padding: 0;\n }\n}\n.gm-upload-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-file {\n line-height: normal;\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: normal;\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-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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;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O,CAAA,CAAA;AAGnB,YAAA,IAAI,MAAM,UAAY,EAAA;AACpB,cAAO,MAAA,EAAA,CAAA;AAAA,aACT;AAAA,WACF;AAAA,SACD,CAAA,CAAA;AAAA,OACH;AAAA,KACD,CAAA,CAAA;AAED,IAAA,OAAA,CAAQ,CAAC,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;AAED,IAAa,QAAA,CAAA;AAAA,MACX,MAAA;AAAA,MACA,KAAA;AAAA,MACA,UAAA;AAAA,MACA,WAAA;AAAA,MACA,aAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/es/giime/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.6.
|
|
1
|
+
export declare const version = "0.6.39";
|
package/es/giime/version.mjs
CHANGED
package/es/giime/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.6.
|
|
1
|
+
{"version":3,"file":"version.mjs","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.6.38';\n"],"names":[],"mappings":"AAAO,MAAM,OAAU,GAAA;;;;"}
|
package/es/index.css
CHANGED
|
@@ -873,57 +873,56 @@ 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
|
+
}
|
|
876
879
|
|
|
877
|
-
.gm-
|
|
878
|
-
|
|
880
|
+
.gm-flex-justify-between[data-v-c17deec9] {
|
|
881
|
+
justify-content: space-between;
|
|
882
|
+
}
|
|
883
|
+
.gm-upload-preview-dialog[data-v-62eb3199] [data-v-62eb3199] .el-dialog__body {
|
|
884
|
+
padding: 0;
|
|
879
885
|
}
|
|
880
886
|
|
|
881
|
-
.gm-upload-
|
|
882
|
-
|
|
887
|
+
.gm-upload-file-picture-card[data-v-62eb3199] [data-v-62eb3199] .el-upload-list__item, .gm-upload-file-picture-card[data-v-62eb3199] [data-v-62eb3199] .el-upload--picture-card {
|
|
888
|
+
width: auto;
|
|
889
|
+
height: auto;
|
|
883
890
|
}
|
|
884
|
-
.gm-upload-
|
|
885
|
-
|
|
891
|
+
.gm-upload-file {
|
|
892
|
+
line-height: normal;
|
|
886
893
|
}
|
|
887
|
-
.gm-upload-
|
|
894
|
+
.gm-upload-file .el-checkbox {
|
|
888
895
|
position: absolute;
|
|
889
896
|
left: 10px;
|
|
890
897
|
top: 0;
|
|
891
898
|
z-index: 9;
|
|
892
899
|
}
|
|
893
|
-
.gm-upload-
|
|
900
|
+
.gm-upload-file .el-upload-list--picture-card {
|
|
894
901
|
gap: 10px;
|
|
895
902
|
}
|
|
896
|
-
.gm-upload-
|
|
903
|
+
.gm-upload-file .el-upload-list__item {
|
|
897
904
|
margin: 0;
|
|
898
905
|
}
|
|
899
|
-
.gm-upload-
|
|
900
|
-
line-height:
|
|
906
|
+
.gm-upload-file .el-upload-list__item-file-name {
|
|
907
|
+
line-height: normal;
|
|
901
908
|
}
|
|
902
|
-
.gm-upload-
|
|
909
|
+
.gm-upload-file .el-upload-dragger {
|
|
903
910
|
padding: 0;
|
|
904
911
|
border: none;
|
|
905
912
|
width: 100%;
|
|
906
913
|
height: 100%;
|
|
907
914
|
display: flex;
|
|
908
915
|
}
|
|
909
|
-
.gm-upload-
|
|
916
|
+
.gm-upload-file .el-upload--picture-card {
|
|
910
917
|
border: none;
|
|
911
918
|
}
|
|
912
919
|
|
|
913
|
-
.gm-upload-
|
|
920
|
+
.gm-upload-file-disabled .el-upload--picture-card {
|
|
914
921
|
display: none;
|
|
915
922
|
}
|
|
916
|
-
.gm-upload-
|
|
923
|
+
.gm-upload-file-disabled .el-upload-list__item-status-label {
|
|
917
924
|
display: none;
|
|
918
925
|
}
|
|
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
926
|
.circular[data-v-d7b04fae] {
|
|
928
927
|
animation: loading-rotate-d7b04fae 2s linear infinite;
|
|
929
928
|
}
|
|
@@ -955,65 +954,60 @@ video {
|
|
|
955
954
|
stroke-dashoffset: -120px;
|
|
956
955
|
}
|
|
957
956
|
}
|
|
958
|
-
.gm-flex-center[data-v-c17deec9] {
|
|
959
|
-
align-items: center;
|
|
960
|
-
}
|
|
961
957
|
|
|
962
|
-
.gm-
|
|
963
|
-
|
|
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;
|
|
958
|
+
.gm-range-number .el-form-item[data-v-1ae16d96] {
|
|
959
|
+
margin: 0;
|
|
973
960
|
}
|
|
974
961
|
|
|
975
|
-
.gm-
|
|
976
|
-
|
|
977
|
-
color: var(--el-input-icon-color, var(--el-text-color-placeholder));
|
|
962
|
+
.gm-upload-pro-preview-dialog[data-v-ca99928c] [data-v-ca99928c] .el-dialog__body {
|
|
963
|
+
padding: 0;
|
|
978
964
|
}
|
|
979
965
|
|
|
980
|
-
.gm-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
[data-v-488ca110] .gmSearchForm .el-form-item {
|
|
984
|
-
margin-right: 0;
|
|
985
|
-
margin-bottom: 4px;
|
|
966
|
+
.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 {
|
|
967
|
+
width: auto;
|
|
968
|
+
height: auto;
|
|
986
969
|
}
|
|
987
|
-
|
|
988
|
-
|
|
970
|
+
.gm-upload-pro-file {
|
|
971
|
+
line-height: normal;
|
|
989
972
|
}
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
height: 0;
|
|
973
|
+
.gm-upload-pro-file .el-checkbox-group {
|
|
974
|
+
font-size: unset;
|
|
993
975
|
}
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
976
|
+
.gm-upload-pro-file .el-checkbox {
|
|
977
|
+
position: absolute;
|
|
978
|
+
left: 10px;
|
|
979
|
+
top: 0;
|
|
980
|
+
z-index: 9;
|
|
997
981
|
}
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
height: 0;
|
|
982
|
+
.gm-upload-pro-file .el-upload-list--picture-card {
|
|
983
|
+
gap: 10px;
|
|
1001
984
|
}
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
height: 0;
|
|
985
|
+
.gm-upload-pro-file .el-upload-list__item {
|
|
986
|
+
margin: 0;
|
|
1005
987
|
}
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
height: 0;
|
|
988
|
+
.gm-upload-pro-file .el-upload-list__item-file-name {
|
|
989
|
+
line-height: 1.7;
|
|
1009
990
|
}
|
|
1010
|
-
.gm-upload-
|
|
991
|
+
.gm-upload-pro-file .el-upload-dragger {
|
|
1011
992
|
padding: 0;
|
|
993
|
+
border: none;
|
|
994
|
+
width: 100%;
|
|
995
|
+
height: 100%;
|
|
996
|
+
display: flex;
|
|
997
|
+
}
|
|
998
|
+
.gm-upload-pro-file .el-upload--picture-card {
|
|
999
|
+
border: none;
|
|
1012
1000
|
}
|
|
1013
1001
|
|
|
1014
|
-
.gm-upload-
|
|
1015
|
-
|
|
1016
|
-
|
|
1002
|
+
.gm-upload-pro-file-disabled .el-upload--picture-card {
|
|
1003
|
+
display: none;
|
|
1004
|
+
}
|
|
1005
|
+
.gm-upload-pro-file-disabled .el-upload-list__item-status-label {
|
|
1006
|
+
display: none;
|
|
1007
|
+
}
|
|
1008
|
+
[data-v-488ca110] .gmSearchForm .el-form-item {
|
|
1009
|
+
margin-right: 0;
|
|
1010
|
+
margin-bottom: 4px;
|
|
1017
1011
|
}
|
|
1018
1012
|
[data-v-2c351ff8] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
1019
1013
|
border-right: none;
|
|
@@ -1038,41 +1032,6 @@ video {
|
|
|
1038
1032
|
[data-v-2c351ff8] .gmTableNoBorder .el-table__border-left-patch {
|
|
1039
1033
|
height: 0;
|
|
1040
1034
|
}
|
|
1041
|
-
.gm-upload-file {
|
|
1042
|
-
line-height: normal;
|
|
1043
|
-
}
|
|
1044
|
-
.gm-upload-file .el-checkbox {
|
|
1045
|
-
position: absolute;
|
|
1046
|
-
left: 10px;
|
|
1047
|
-
top: 0;
|
|
1048
|
-
z-index: 9;
|
|
1049
|
-
}
|
|
1050
|
-
.gm-upload-file .el-upload-list--picture-card {
|
|
1051
|
-
gap: 10px;
|
|
1052
|
-
}
|
|
1053
|
-
.gm-upload-file .el-upload-list__item {
|
|
1054
|
-
margin: 0;
|
|
1055
|
-
}
|
|
1056
|
-
.gm-upload-file .el-upload-list__item-file-name {
|
|
1057
|
-
line-height: normal;
|
|
1058
|
-
}
|
|
1059
|
-
.gm-upload-file .el-upload-dragger {
|
|
1060
|
-
padding: 0;
|
|
1061
|
-
border: none;
|
|
1062
|
-
width: 100%;
|
|
1063
|
-
height: 100%;
|
|
1064
|
-
display: flex;
|
|
1065
|
-
}
|
|
1066
|
-
.gm-upload-file .el-upload--picture-card {
|
|
1067
|
-
border: none;
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
|
-
.gm-upload-file-disabled .el-upload--picture-card {
|
|
1071
|
-
display: none;
|
|
1072
|
-
}
|
|
1073
|
-
.gm-upload-file-disabled .el-upload-list__item-status-label {
|
|
1074
|
-
display: none;
|
|
1075
|
-
}
|
|
1076
1035
|
|
|
1077
1036
|
.pagination-container[data-v-47d35e7b] {
|
|
1078
1037
|
background: #fff;
|
|
@@ -1082,6 +1041,24 @@ video {
|
|
|
1082
1041
|
display: none;
|
|
1083
1042
|
}
|
|
1084
1043
|
|
|
1044
|
+
.gm-number-interval-single[data-v-4e6f4d6f] {
|
|
1045
|
+
border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
|
|
1046
|
+
box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
|
|
1047
|
+
background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
|
|
1048
|
+
}
|
|
1049
|
+
.gm-number-interval-single[data-v-4e6f4d6f] [data-v-4e6f4d6f] .el-input__wrapper {
|
|
1050
|
+
box-shadow: none;
|
|
1051
|
+
background: none;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
.gm-number-interval-close[data-v-4e6f4d6f] {
|
|
1055
|
+
display: none;
|
|
1056
|
+
color: var(--el-input-icon-color, var(--el-text-color-placeholder));
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
.gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
|
|
1060
|
+
display: flex;
|
|
1061
|
+
}
|
|
1085
1062
|
@charset "UTF-8";
|
|
1086
1063
|
.custom-operate-drawer .el-drawer__header {
|
|
1087
1064
|
padding: 10px 15px;
|
|
@@ -1138,6 +1115,29 @@ video {
|
|
|
1138
1115
|
border-radius: 10px;
|
|
1139
1116
|
background: #eee;
|
|
1140
1117
|
}
|
|
1118
|
+
[data-v-98c2e804] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
1119
|
+
border-right: none;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
[data-v-98c2e804] .gmTableNoBorder .el-table__inner-wrapper:before {
|
|
1123
|
+
height: 0;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
[data-v-98c2e804] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
|
|
1127
|
+
height: 0;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
[data-v-98c2e804] .gmTableNoBorder.el-table--border:after {
|
|
1131
|
+
height: 0;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
[data-v-98c2e804] .gmTableNoBorder.el-table--border:before {
|
|
1135
|
+
height: 0;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
[data-v-98c2e804] .gmTableNoBorder .el-table__border-left-patch {
|
|
1139
|
+
height: 0;
|
|
1140
|
+
}
|
|
1141
1141
|
@charset "UTF-8";
|
|
1142
1142
|
.table-custom-header-drawer .el-drawer__header {
|
|
1143
1143
|
padding: 10px 15px;
|
|
@@ -7,7 +7,7 @@ require('./UploadFile.vue3.js');
|
|
|
7
7
|
require('./UploadFile.vue4.js');
|
|
8
8
|
var _pluginVue_exportHelper = require('../../../../_virtual/_plugin-vue_export-helper.js');
|
|
9
9
|
|
|
10
|
-
var UploadFile = /* @__PURE__ */ _pluginVue_exportHelper.default(UploadFile_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-
|
|
10
|
+
var UploadFile = /* @__PURE__ */ _pluginVue_exportHelper.default(UploadFile_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-62eb3199"]]);
|
|
11
11
|
|
|
12
12
|
exports.default = UploadFile;
|
|
13
13
|
//# sourceMappingURL=UploadFile.vue.js.map
|
|
@@ -13,7 +13,7 @@ var index$2 = require('../fileComponent/index.js');
|
|
|
13
13
|
var index$3 = require('../previewFile/index.js');
|
|
14
14
|
var uploadFile = require('./uploadFile.js');
|
|
15
15
|
|
|
16
|
-
const _withScopeId = (n) => (vue.pushScopeId("data-v-
|
|
16
|
+
const _withScopeId = (n) => (vue.pushScopeId("data-v-62eb3199"), n = n(), vue.popScopeId(), n);
|
|
17
17
|
const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode(
|
|
18
18
|
"div",
|
|
19
19
|
{ class: "el-upload__text gm-text-center !gm-text-xs gm-text-gray-500" },
|
|
@@ -229,8 +229,9 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
229
229
|
size: _ctx.width - 40,
|
|
230
230
|
url: _ctx.url,
|
|
231
231
|
controls: false,
|
|
232
|
-
"show-icon": true
|
|
233
|
-
|
|
232
|
+
"show-icon": true,
|
|
233
|
+
field: _ctx.field
|
|
234
|
+
}, null, 8, ["file", "size", "url", "field"])
|
|
234
235
|
],
|
|
235
236
|
4
|
|
236
237
|
/* STYLE */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UploadFile.vue2.js","sources":["../../../../../../../packages/components/src/composite/uploadFile/UploadFile.vue"],"sourcesContent":["<template>\n <div>\n <div\n ref=\"pasteFileRef\"\n :class=\"{ 'gm-upload-file-picture-card': listType === 'picture-card', 'gm-upload-file-disabled': disabled }\"\n class=\"gm-upload-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 >\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\" :url=\"url\" :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 </el-upload>\n </el-checkbox-group>\n\n <GmPreviewFile\n v-model:dialogVisible=\"dialogVisible\"\n v-model:file-index=\"fileIndex\"\n :file-list=\"fileList\"\n :controls=\"controls\"\n :oncontextmenu=\"oncontextmenu\"\n :controlslist=\"controlslist\"\n :field=\"field\"\n />\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref } from 'vue';\nimport { ElMessageBox } from 'element-plus';\nimport { useAliossHookStore } from '@giime/utils/src/alioss/aliossPutHook';\nimport { 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 '../fileComponent';\nimport GmPreviewFile from '../previewFile';\nimport { uploadFileProps } from './uploadFile';\nimport type { UploadFile, UploadFiles, UploadInstance, UploadRawFile, UploadRequestOptions, UploadStatus } from 'element-plus';\nimport type { AliOssResponse } from '@giime/utils/src/alioss/aliossPutHook';\n\ndefineOptions({\n name: 'GmUploadFile',\n});\n\nconst props = defineProps(uploadFileProps);\nconst emit = defineEmits([\"handleRemove\", \"handleSaveFileSuccess\"]);\n\nconst { uploadFile, saveFileResult } = useAliossHookStore();\n\nsaveFileResult((res: AliOssResponse) => {\n emit('handleSaveFileSuccess', res);\n});\n\n/** 上传文件 */\nconst fileList = defineModel<UploadFile[]>('fileList', { required: true, default: () => [] });\n/** 多选数据 */\nconst checkoutFiles = defineModel<any[]>('checkoutFiles', { default: () => [] });\n\n/* 上传 */\nconst httpRequest = async (params: UploadRequestOptions) => {\n const { file } = params;\n\n // 验证文件类型\n if (props.accept && props.accept !== '*') {\n const isValidType = fileValidType(file, props.accept);\n if (!isValidType) {\n throw new Error(`文件类型不支持,请上传 ${props.accept} 格式的文件`);\n }\n }\n\n const res = await uploadFile({\n file,\n fileName: props.fileName,\n folder: props.folder,\n seat: props.seat,\n partSize: props.partSize,\n parallel: props.parallel,\n options: props.options,\n bucket: props.bucket,\n saveStore: props.saveStore,\n platform: props.platform,\n cdn: props.cdn,\n });\n return res;\n};\n\n/* 删除文件前 */\nconst beforeRemove = (file: UploadFile, files: UploadFiles) => {\n if (props.disabled) {\n return false;\n }\n return props.beforeRemove ? 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};\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 pasteFileRef = ref<HTMLElement>();\n/* 手动上传 */\nconst submit = () => {\n uploadFileRef.value!.submit();\n};\n\n/** 取消上传 */\nconst abort = (file: UploadFile) => {\n uploadFileRef.value!.abort(file);\n};\n\n/** 清空已上传的文件列表 */\nconst clearFiles = (status?: UploadStatus[]) => {\n uploadFileRef.value!.clearFiles(status);\n};\n\n/** 手动选择文件 */\nconst handleStart = (rawFile: UploadRawFile) => {\n uploadFileRef.value!.handleStart(rawFile);\n};\n\n/** 预览 */\nconst dialogVisible = ref(false);\nconst fileIndex = ref(0);\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 (Array.isArray(files) && files.length > 0) {\n files.forEach(file => {\n if (file instanceof File) {\n const rawFile = file as UploadRawFile;\n handleStart(rawFile);\n\n // 粘贴成功自动上传\n if (props.autoUpload) {\n submit();\n }\n }\n });\n }\n});\n\nonError((error: Error) => {\n console.error('粘贴错误:', error);\n ElMessageBox.alert(error.message, '提示', {\n type: 'error',\n });\n});\n\ndefineExpose({\n submit,\n abort,\n clearFiles,\n handleStart,\n uploadFileRef,\n});\n</script>\n\n<style scoped lang=\"scss\">\n.gm-upload-preview-dialog {\n :deep(.el-dialog__body) {\n padding: 0;\n }\n}\n.gm-upload-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-file {\n line-height: normal;\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: normal;\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-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":["useAliossHookStore","_useModel","file","fileValidType","GmConfirmBox","ref","usePasteFile","ElMessageBox"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAEb,IAAA,MAAM,EAAE,UAAA,EAAY,cAAe,EAAA,GAAIA,gCAAmB,EAAA,CAAA;AAE1D,IAAA,cAAA,CAAe,CAAC,GAAwB,KAAA;AACtC,MAAA,IAAA,CAAK,yBAAyB,GAAG,CAAA,CAAA;AAAA,KAClC,CAAA,CAAA;AAGD,IAAM,MAAA,QAAA,GAAWC,YAA0B,CAAA,OAAA,EAAA,UAAiD,CAAA,CAAA;AAE5F,IAAM,MAAA,aAAA,GAAgBA,sBAAmB,eAAsC,CAAA,CAAA;AAG/E,IAAM,MAAA,WAAA,GAAc,OAAO,MAAiC,KAAA;AAC1D,MAAM,MAAA,QAAEC,QAAS,GAAA,MAAA,CAAA;AAGjB,MAAA,IAAI,KAAM,CAAA,MAAA,IAAU,KAAM,CAAA,MAAA,KAAW,GAAK,EAAA;AACxC,QAAA,MAAM,WAAc,GAAAC,kBAAA,CAAcD,MAAM,EAAA,KAAA,CAAM,MAAM,CAAA,CAAA;AACpD,QAAA,IAAI,CAAC,WAAa,EAAA;AAChB,UAAA,MAAM,IAAI,KAAA,CAAM,CAAe,mEAAA,EAAA,KAAA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../../../../packages/components/src/composite/uploadFile/UploadFile.vue"],"sourcesContent":["<template>\n <div>\n <div\n ref=\"pasteFileRef\"\n :class=\"{ 'gm-upload-file-picture-card': listType === 'picture-card', 'gm-upload-file-disabled': disabled }\"\n class=\"gm-upload-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 >\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\" :url=\"url\" :controls=\"false\" :show-icon=\"true\" :field=\"field\" />\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 </el-upload>\n </el-checkbox-group>\n\n <GmPreviewFile\n v-model:dialogVisible=\"dialogVisible\"\n v-model:file-index=\"fileIndex\"\n :file-list=\"fileList\"\n :controls=\"controls\"\n :oncontextmenu=\"oncontextmenu\"\n :controlslist=\"controlslist\"\n :field=\"field\"\n />\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref } from 'vue';\nimport { ElMessageBox } from 'element-plus';\nimport { useAliossHookStore } from '@giime/utils/src/alioss/aliossPutHook';\nimport { 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 '../fileComponent';\nimport GmPreviewFile from '../previewFile';\nimport { uploadFileProps } from './uploadFile';\nimport type { UploadFile, UploadFiles, UploadInstance, UploadRawFile, UploadRequestOptions, UploadStatus } from 'element-plus';\nimport type { AliOssResponse } from '@giime/utils/src/alioss/aliossPutHook';\n\ndefineOptions({\n name: 'GmUploadFile',\n});\n\nconst props = defineProps(uploadFileProps);\nconst emit = defineEmits([\"handleRemove\", \"handleSaveFileSuccess\"]);\n\nconst { uploadFile, saveFileResult } = useAliossHookStore();\n\nsaveFileResult((res: AliOssResponse) => {\n emit('handleSaveFileSuccess', res);\n});\n\n/** 上传文件 */\nconst fileList = defineModel<UploadFile[]>('fileList', { required: true, default: () => [] });\n/** 多选数据 */\nconst checkoutFiles = defineModel<any[]>('checkoutFiles', { default: () => [] });\n\n/* 上传 */\nconst httpRequest = async (params: UploadRequestOptions) => {\n const { file } = params;\n\n // 验证文件类型\n if (props.accept && props.accept !== '*') {\n const isValidType = fileValidType(file, props.accept);\n if (!isValidType) {\n throw new Error(`文件类型不支持,请上传 ${props.accept} 格式的文件`);\n }\n }\n\n const res = await uploadFile({\n file,\n fileName: props.fileName,\n folder: props.folder,\n seat: props.seat,\n partSize: props.partSize,\n parallel: props.parallel,\n options: props.options,\n bucket: props.bucket,\n saveStore: props.saveStore,\n platform: props.platform,\n cdn: props.cdn,\n });\n return res;\n};\n\n/* 删除文件前 */\nconst beforeRemove = (file: UploadFile, files: UploadFiles) => {\n if (props.disabled) {\n return false;\n }\n return props.beforeRemove ? 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};\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 pasteFileRef = ref<HTMLElement>();\n/* 手动上传 */\nconst submit = () => {\n uploadFileRef.value!.submit();\n};\n\n/** 取消上传 */\nconst abort = (file: UploadFile) => {\n uploadFileRef.value!.abort(file);\n};\n\n/** 清空已上传的文件列表 */\nconst clearFiles = (status?: UploadStatus[]) => {\n uploadFileRef.value!.clearFiles(status);\n};\n\n/** 手动选择文件 */\nconst handleStart = (rawFile: UploadRawFile) => {\n uploadFileRef.value!.handleStart(rawFile);\n};\n\n/** 预览 */\nconst dialogVisible = ref(false);\nconst fileIndex = ref(0);\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 (Array.isArray(files) && files.length > 0) {\n files.forEach(file => {\n if (file instanceof File) {\n const rawFile = file as UploadRawFile;\n handleStart(rawFile);\n\n // 粘贴成功自动上传\n if (props.autoUpload) {\n submit();\n }\n }\n });\n }\n});\n\nonError((error: Error) => {\n console.error('粘贴错误:', error);\n ElMessageBox.alert(error.message, '提示', {\n type: 'error',\n });\n});\n\ndefineExpose({\n submit,\n abort,\n clearFiles,\n handleStart,\n uploadFileRef,\n});\n</script>\n\n<style scoped lang=\"scss\">\n.gm-upload-preview-dialog {\n :deep(.el-dialog__body) {\n padding: 0;\n }\n}\n.gm-upload-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-file {\n line-height: normal;\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: normal;\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-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":["useAliossHookStore","_useModel","file","fileValidType","GmConfirmBox","ref","usePasteFile","ElMessageBox"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAEb,IAAA,MAAM,EAAE,UAAA,EAAY,cAAe,EAAA,GAAIA,gCAAmB,EAAA,CAAA;AAE1D,IAAA,cAAA,CAAe,CAAC,GAAwB,KAAA;AACtC,MAAA,IAAA,CAAK,yBAAyB,GAAG,CAAA,CAAA;AAAA,KAClC,CAAA,CAAA;AAGD,IAAM,MAAA,QAAA,GAAWC,YAA0B,CAAA,OAAA,EAAA,UAAiD,CAAA,CAAA;AAE5F,IAAM,MAAA,aAAA,GAAgBA,sBAAmB,eAAsC,CAAA,CAAA;AAG/E,IAAM,MAAA,WAAA,GAAc,OAAO,MAAiC,KAAA;AAC1D,MAAM,MAAA,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A;AAAA,MACA,WAAA;AAAA,MACA,aAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/giime/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.6.
|
|
1
|
+
export declare const version = "0.6.39";
|
package/lib/giime/version.js
CHANGED
package/lib/giime/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.6.
|
|
1
|
+
{"version":3,"file":"version.js","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.6.38';\n"],"names":[],"mappings":";;AAAO,MAAM,OAAU,GAAA;;;;"}
|
package/lib/index.css
CHANGED
|
@@ -873,57 +873,56 @@ 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
|
+
}
|
|
876
879
|
|
|
877
|
-
.gm-
|
|
878
|
-
|
|
880
|
+
.gm-flex-justify-between[data-v-c17deec9] {
|
|
881
|
+
justify-content: space-between;
|
|
882
|
+
}
|
|
883
|
+
.gm-upload-preview-dialog[data-v-62eb3199] [data-v-62eb3199] .el-dialog__body {
|
|
884
|
+
padding: 0;
|
|
879
885
|
}
|
|
880
886
|
|
|
881
|
-
.gm-upload-
|
|
882
|
-
|
|
887
|
+
.gm-upload-file-picture-card[data-v-62eb3199] [data-v-62eb3199] .el-upload-list__item, .gm-upload-file-picture-card[data-v-62eb3199] [data-v-62eb3199] .el-upload--picture-card {
|
|
888
|
+
width: auto;
|
|
889
|
+
height: auto;
|
|
883
890
|
}
|
|
884
|
-
.gm-upload-
|
|
885
|
-
|
|
891
|
+
.gm-upload-file {
|
|
892
|
+
line-height: normal;
|
|
886
893
|
}
|
|
887
|
-
.gm-upload-
|
|
894
|
+
.gm-upload-file .el-checkbox {
|
|
888
895
|
position: absolute;
|
|
889
896
|
left: 10px;
|
|
890
897
|
top: 0;
|
|
891
898
|
z-index: 9;
|
|
892
899
|
}
|
|
893
|
-
.gm-upload-
|
|
900
|
+
.gm-upload-file .el-upload-list--picture-card {
|
|
894
901
|
gap: 10px;
|
|
895
902
|
}
|
|
896
|
-
.gm-upload-
|
|
903
|
+
.gm-upload-file .el-upload-list__item {
|
|
897
904
|
margin: 0;
|
|
898
905
|
}
|
|
899
|
-
.gm-upload-
|
|
900
|
-
line-height:
|
|
906
|
+
.gm-upload-file .el-upload-list__item-file-name {
|
|
907
|
+
line-height: normal;
|
|
901
908
|
}
|
|
902
|
-
.gm-upload-
|
|
909
|
+
.gm-upload-file .el-upload-dragger {
|
|
903
910
|
padding: 0;
|
|
904
911
|
border: none;
|
|
905
912
|
width: 100%;
|
|
906
913
|
height: 100%;
|
|
907
914
|
display: flex;
|
|
908
915
|
}
|
|
909
|
-
.gm-upload-
|
|
916
|
+
.gm-upload-file .el-upload--picture-card {
|
|
910
917
|
border: none;
|
|
911
918
|
}
|
|
912
919
|
|
|
913
|
-
.gm-upload-
|
|
920
|
+
.gm-upload-file-disabled .el-upload--picture-card {
|
|
914
921
|
display: none;
|
|
915
922
|
}
|
|
916
|
-
.gm-upload-
|
|
923
|
+
.gm-upload-file-disabled .el-upload-list__item-status-label {
|
|
917
924
|
display: none;
|
|
918
925
|
}
|
|
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
926
|
.circular[data-v-d7b04fae] {
|
|
928
927
|
animation: loading-rotate-d7b04fae 2s linear infinite;
|
|
929
928
|
}
|
|
@@ -955,65 +954,60 @@ video {
|
|
|
955
954
|
stroke-dashoffset: -120px;
|
|
956
955
|
}
|
|
957
956
|
}
|
|
958
|
-
.gm-flex-center[data-v-c17deec9] {
|
|
959
|
-
align-items: center;
|
|
960
|
-
}
|
|
961
957
|
|
|
962
|
-
.gm-
|
|
963
|
-
|
|
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;
|
|
958
|
+
.gm-range-number .el-form-item[data-v-1ae16d96] {
|
|
959
|
+
margin: 0;
|
|
973
960
|
}
|
|
974
961
|
|
|
975
|
-
.gm-
|
|
976
|
-
|
|
977
|
-
color: var(--el-input-icon-color, var(--el-text-color-placeholder));
|
|
962
|
+
.gm-upload-pro-preview-dialog[data-v-ca99928c] [data-v-ca99928c] .el-dialog__body {
|
|
963
|
+
padding: 0;
|
|
978
964
|
}
|
|
979
965
|
|
|
980
|
-
.gm-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
[data-v-488ca110] .gmSearchForm .el-form-item {
|
|
984
|
-
margin-right: 0;
|
|
985
|
-
margin-bottom: 4px;
|
|
966
|
+
.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 {
|
|
967
|
+
width: auto;
|
|
968
|
+
height: auto;
|
|
986
969
|
}
|
|
987
|
-
|
|
988
|
-
|
|
970
|
+
.gm-upload-pro-file {
|
|
971
|
+
line-height: normal;
|
|
989
972
|
}
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
height: 0;
|
|
973
|
+
.gm-upload-pro-file .el-checkbox-group {
|
|
974
|
+
font-size: unset;
|
|
993
975
|
}
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
976
|
+
.gm-upload-pro-file .el-checkbox {
|
|
977
|
+
position: absolute;
|
|
978
|
+
left: 10px;
|
|
979
|
+
top: 0;
|
|
980
|
+
z-index: 9;
|
|
997
981
|
}
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
height: 0;
|
|
982
|
+
.gm-upload-pro-file .el-upload-list--picture-card {
|
|
983
|
+
gap: 10px;
|
|
1001
984
|
}
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
height: 0;
|
|
985
|
+
.gm-upload-pro-file .el-upload-list__item {
|
|
986
|
+
margin: 0;
|
|
1005
987
|
}
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
height: 0;
|
|
988
|
+
.gm-upload-pro-file .el-upload-list__item-file-name {
|
|
989
|
+
line-height: 1.7;
|
|
1009
990
|
}
|
|
1010
|
-
.gm-upload-
|
|
991
|
+
.gm-upload-pro-file .el-upload-dragger {
|
|
1011
992
|
padding: 0;
|
|
993
|
+
border: none;
|
|
994
|
+
width: 100%;
|
|
995
|
+
height: 100%;
|
|
996
|
+
display: flex;
|
|
997
|
+
}
|
|
998
|
+
.gm-upload-pro-file .el-upload--picture-card {
|
|
999
|
+
border: none;
|
|
1012
1000
|
}
|
|
1013
1001
|
|
|
1014
|
-
.gm-upload-
|
|
1015
|
-
|
|
1016
|
-
|
|
1002
|
+
.gm-upload-pro-file-disabled .el-upload--picture-card {
|
|
1003
|
+
display: none;
|
|
1004
|
+
}
|
|
1005
|
+
.gm-upload-pro-file-disabled .el-upload-list__item-status-label {
|
|
1006
|
+
display: none;
|
|
1007
|
+
}
|
|
1008
|
+
[data-v-488ca110] .gmSearchForm .el-form-item {
|
|
1009
|
+
margin-right: 0;
|
|
1010
|
+
margin-bottom: 4px;
|
|
1017
1011
|
}
|
|
1018
1012
|
[data-v-2c351ff8] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
1019
1013
|
border-right: none;
|
|
@@ -1038,41 +1032,6 @@ video {
|
|
|
1038
1032
|
[data-v-2c351ff8] .gmTableNoBorder .el-table__border-left-patch {
|
|
1039
1033
|
height: 0;
|
|
1040
1034
|
}
|
|
1041
|
-
.gm-upload-file {
|
|
1042
|
-
line-height: normal;
|
|
1043
|
-
}
|
|
1044
|
-
.gm-upload-file .el-checkbox {
|
|
1045
|
-
position: absolute;
|
|
1046
|
-
left: 10px;
|
|
1047
|
-
top: 0;
|
|
1048
|
-
z-index: 9;
|
|
1049
|
-
}
|
|
1050
|
-
.gm-upload-file .el-upload-list--picture-card {
|
|
1051
|
-
gap: 10px;
|
|
1052
|
-
}
|
|
1053
|
-
.gm-upload-file .el-upload-list__item {
|
|
1054
|
-
margin: 0;
|
|
1055
|
-
}
|
|
1056
|
-
.gm-upload-file .el-upload-list__item-file-name {
|
|
1057
|
-
line-height: normal;
|
|
1058
|
-
}
|
|
1059
|
-
.gm-upload-file .el-upload-dragger {
|
|
1060
|
-
padding: 0;
|
|
1061
|
-
border: none;
|
|
1062
|
-
width: 100%;
|
|
1063
|
-
height: 100%;
|
|
1064
|
-
display: flex;
|
|
1065
|
-
}
|
|
1066
|
-
.gm-upload-file .el-upload--picture-card {
|
|
1067
|
-
border: none;
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
|
-
.gm-upload-file-disabled .el-upload--picture-card {
|
|
1071
|
-
display: none;
|
|
1072
|
-
}
|
|
1073
|
-
.gm-upload-file-disabled .el-upload-list__item-status-label {
|
|
1074
|
-
display: none;
|
|
1075
|
-
}
|
|
1076
1035
|
|
|
1077
1036
|
.pagination-container[data-v-47d35e7b] {
|
|
1078
1037
|
background: #fff;
|
|
@@ -1082,6 +1041,24 @@ video {
|
|
|
1082
1041
|
display: none;
|
|
1083
1042
|
}
|
|
1084
1043
|
|
|
1044
|
+
.gm-number-interval-single[data-v-4e6f4d6f] {
|
|
1045
|
+
border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
|
|
1046
|
+
box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
|
|
1047
|
+
background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
|
|
1048
|
+
}
|
|
1049
|
+
.gm-number-interval-single[data-v-4e6f4d6f] [data-v-4e6f4d6f] .el-input__wrapper {
|
|
1050
|
+
box-shadow: none;
|
|
1051
|
+
background: none;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
.gm-number-interval-close[data-v-4e6f4d6f] {
|
|
1055
|
+
display: none;
|
|
1056
|
+
color: var(--el-input-icon-color, var(--el-text-color-placeholder));
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
.gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
|
|
1060
|
+
display: flex;
|
|
1061
|
+
}
|
|
1085
1062
|
@charset "UTF-8";
|
|
1086
1063
|
.custom-operate-drawer .el-drawer__header {
|
|
1087
1064
|
padding: 10px 15px;
|
|
@@ -1138,6 +1115,29 @@ video {
|
|
|
1138
1115
|
border-radius: 10px;
|
|
1139
1116
|
background: #eee;
|
|
1140
1117
|
}
|
|
1118
|
+
[data-v-98c2e804] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
1119
|
+
border-right: none;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
[data-v-98c2e804] .gmTableNoBorder .el-table__inner-wrapper:before {
|
|
1123
|
+
height: 0;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
[data-v-98c2e804] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
|
|
1127
|
+
height: 0;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
[data-v-98c2e804] .gmTableNoBorder.el-table--border:after {
|
|
1131
|
+
height: 0;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
[data-v-98c2e804] .gmTableNoBorder.el-table--border:before {
|
|
1135
|
+
height: 0;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
[data-v-98c2e804] .gmTableNoBorder .el-table__border-left-patch {
|
|
1139
|
+
height: 0;
|
|
1140
|
+
}
|
|
1141
1141
|
@charset "UTF-8";
|
|
1142
1142
|
.table-custom-header-drawer .el-drawer__header {
|
|
1143
1143
|
padding: 10px 15px;
|