giime 0.7.10 → 0.7.11
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 +119 -116
- package/es/components/index.mjs +2 -0
- package/es/components/index.mjs.map +1 -1
- package/es/components/src/composite/fileComponent/FileComponent.vue.d.ts +3 -3
- package/es/components/src/composite/fileComponent/fileComponent.d.ts +1 -1
- package/es/components/src/composite/fileComponent/fileComponent.mjs.map +1 -1
- package/es/components/src/composite/fileComponent/index.d.ts +3 -3
- package/es/components/src/composite/fileList2/FileList.vue.d.ts +95 -0
- package/es/components/src/composite/fileList2/FileList.vue.mjs +6 -0
- package/es/components/src/composite/fileList2/FileList.vue.mjs.map +1 -0
- package/es/components/src/composite/fileList2/FileList.vue2.mjs +62 -0
- package/es/components/src/composite/fileList2/FileList.vue2.mjs.map +1 -0
- package/es/components/src/composite/fileList2/fileList.d.ts +47 -0
- package/es/components/src/composite/fileList2/fileList.mjs +24 -0
- package/es/components/src/composite/fileList2/fileList.mjs.map +1 -0
- package/es/components/src/composite/fileList2/index.d.ts +98 -0
- package/es/components/src/composite/fileList2/index.mjs +10 -0
- package/es/components/src/composite/fileList2/index.mjs.map +1 -0
- package/es/components/src/composite/index.d.ts +1 -0
- package/es/components/src/composite/index.mjs +2 -0
- package/es/components/src/composite/index.mjs.map +1 -1
- package/es/components/src/composite/previewFile/PreviewFile.vue.d.ts +3 -3
- package/es/components/src/composite/previewFile/PreviewFile.vue2.mjs +3 -2
- package/es/components/src/composite/previewFile/PreviewFile.vue2.mjs.map +1 -1
- package/es/components/src/composite/previewFile/index.d.ts +3 -3
- package/es/components/src/composite/previewFile/previewFile.d.ts +1 -1
- package/es/components/src/composite/uploadFile/UploadFile.vue.d.ts +3 -3
- package/es/components/src/composite/uploadFile/index.d.ts +7 -7
- package/es/components/src/composite/uploadFile/uploadFile.d.ts +1 -1
- package/es/giime/component.mjs +4 -0
- package/es/giime/component.mjs.map +1 -1
- package/es/giime/index.mjs +2 -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/index.css +119 -116
- package/global.d.ts +2 -0
- package/lib/components/index.js +18 -14
- package/lib/components/index.js.map +1 -1
- package/lib/components/src/composite/fileComponent/FileComponent.vue.d.ts +3 -3
- package/lib/components/src/composite/fileComponent/fileComponent.d.ts +1 -1
- package/lib/components/src/composite/fileComponent/fileComponent.js.map +1 -1
- package/lib/components/src/composite/fileComponent/index.d.ts +3 -3
- package/lib/components/src/composite/fileList2/FileList.vue.d.ts +95 -0
- package/lib/components/src/composite/fileList2/FileList.vue.js +10 -0
- package/lib/components/src/composite/fileList2/FileList.vue.js.map +1 -0
- package/lib/components/src/composite/fileList2/FileList.vue2.js +66 -0
- package/lib/components/src/composite/fileList2/FileList.vue2.js.map +1 -0
- package/lib/components/src/composite/fileList2/fileList.d.ts +47 -0
- package/lib/components/src/composite/fileList2/fileList.js +26 -0
- package/lib/components/src/composite/fileList2/fileList.js.map +1 -0
- package/lib/components/src/composite/fileList2/index.d.ts +98 -0
- package/lib/components/src/composite/fileList2/index.js +16 -0
- package/lib/components/src/composite/fileList2/index.js.map +1 -0
- package/lib/components/src/composite/index.d.ts +1 -0
- package/lib/components/src/composite/index.js +4 -0
- package/lib/components/src/composite/index.js.map +1 -1
- package/lib/components/src/composite/previewFile/PreviewFile.vue.d.ts +3 -3
- package/lib/components/src/composite/previewFile/PreviewFile.vue2.js +3 -2
- package/lib/components/src/composite/previewFile/PreviewFile.vue2.js.map +1 -1
- package/lib/components/src/composite/previewFile/index.d.ts +3 -3
- package/lib/components/src/composite/previewFile/previewFile.d.ts +1 -1
- package/lib/components/src/composite/uploadFile/UploadFile.vue.d.ts +3 -3
- package/lib/components/src/composite/uploadFile/index.d.ts +7 -7
- package/lib/components/src/composite/uploadFile/uploadFile.d.ts +1 -1
- package/lib/giime/component.js +32 -28
- package/lib/giime/component.js.map +1 -1
- package/lib/giime/index.js +80 -76
- 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/index.css +119 -116
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -590,6 +590,9 @@ video {
|
|
|
590
590
|
.gm-h-1 {
|
|
591
591
|
height: 0.25rem;
|
|
592
592
|
}
|
|
593
|
+
.gm-h-32 {
|
|
594
|
+
height: 8rem;
|
|
595
|
+
}
|
|
593
596
|
.gm-h-\[30px\] {
|
|
594
597
|
height: 30px;
|
|
595
598
|
}
|
|
@@ -873,13 +876,11 @@ video {
|
|
|
873
876
|
.gm-group:hover .group-hover\:gm-block {
|
|
874
877
|
display: block;
|
|
875
878
|
}
|
|
876
|
-
.gm-flex-center[data-v-c17deec9] {
|
|
877
|
-
align-items: center;
|
|
878
|
-
}
|
|
879
879
|
|
|
880
|
-
.gm-
|
|
881
|
-
|
|
880
|
+
.gm-range-number .el-form-item[data-v-1ae16d96] {
|
|
881
|
+
margin: 0;
|
|
882
882
|
}
|
|
883
|
+
|
|
883
884
|
.circular[data-v-d7b04fae] {
|
|
884
885
|
animation: loading-rotate-d7b04fae 2s linear infinite;
|
|
885
886
|
}
|
|
@@ -911,19 +912,6 @@ video {
|
|
|
911
912
|
stroke-dashoffset: -120px;
|
|
912
913
|
}
|
|
913
914
|
}
|
|
914
|
-
|
|
915
|
-
.gm-range-number .el-form-item[data-v-1ae16d96] {
|
|
916
|
-
margin: 0;
|
|
917
|
-
}
|
|
918
|
-
|
|
919
|
-
.gm-upload-pro-preview-dialog[data-v-9ac30390] [data-v-9ac30390] .el-dialog__body {
|
|
920
|
-
padding: 0;
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
.gm-upload-pro-file-picture-card[data-v-9ac30390] [data-v-9ac30390] .el-upload-list__item, .gm-upload-pro-file-picture-card[data-v-9ac30390] [data-v-9ac30390] .el-upload--picture-card {
|
|
924
|
-
width: auto;
|
|
925
|
-
height: auto;
|
|
926
|
-
}
|
|
927
915
|
.gm-upload-pro-file {
|
|
928
916
|
line-height: normal;
|
|
929
917
|
}
|
|
@@ -962,9 +950,20 @@ video {
|
|
|
962
950
|
.gm-upload-pro-file-disabled .el-upload-list__item-status-label {
|
|
963
951
|
display: none;
|
|
964
952
|
}
|
|
965
|
-
[data-v-
|
|
966
|
-
|
|
967
|
-
|
|
953
|
+
.gm-upload-pro-preview-dialog[data-v-9ac30390] [data-v-9ac30390] .el-dialog__body {
|
|
954
|
+
padding: 0;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
.gm-upload-pro-file-picture-card[data-v-9ac30390] [data-v-9ac30390] .el-upload-list__item, .gm-upload-pro-file-picture-card[data-v-9ac30390] [data-v-9ac30390] .el-upload--picture-card {
|
|
958
|
+
width: auto;
|
|
959
|
+
height: auto;
|
|
960
|
+
}
|
|
961
|
+
.gm-flex-center[data-v-c17deec9] {
|
|
962
|
+
align-items: center;
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
.gm-flex-justify-between[data-v-c17deec9] {
|
|
966
|
+
justify-content: space-between;
|
|
968
967
|
}
|
|
969
968
|
[data-v-2c351ff8] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
970
969
|
border-right: none;
|
|
@@ -989,15 +988,6 @@ video {
|
|
|
989
988
|
[data-v-2c351ff8] .gmTableNoBorder .el-table__border-left-patch {
|
|
990
989
|
height: 0;
|
|
991
990
|
}
|
|
992
|
-
|
|
993
|
-
.pagination-container[data-v-47d35e7b] {
|
|
994
|
-
background: #fff;
|
|
995
|
-
padding-top: 12px;
|
|
996
|
-
}
|
|
997
|
-
.pagination-container.hidden[data-v-47d35e7b] {
|
|
998
|
-
display: none;
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
991
|
.gm-number-interval-single[data-v-4e6f4d6f] {
|
|
1002
992
|
border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
|
|
1003
993
|
box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
|
|
@@ -1016,61 +1006,9 @@ video {
|
|
|
1016
1006
|
.gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
|
|
1017
1007
|
display: flex;
|
|
1018
1008
|
}
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
margin: 0;
|
|
1023
|
-
border-bottom: 1px solid #ebeef5;
|
|
1024
|
-
}
|
|
1025
|
-
.custom-operate-drawer .el-drawer__title {
|
|
1026
|
-
font-size: 14px;
|
|
1027
|
-
color: #333;
|
|
1028
|
-
}
|
|
1029
|
-
.custom-operate-drawer .el-drawer__body {
|
|
1030
|
-
padding: 15px;
|
|
1031
|
-
}
|
|
1032
|
-
.custom-operate-drawer .el-drawer__footer {
|
|
1033
|
-
padding: 10px 15px;
|
|
1034
|
-
border-top: 1px solid #ebeef5;
|
|
1035
|
-
}
|
|
1036
|
-
.custom-operate-drawer .el-checkbox {
|
|
1037
|
-
display: flex;
|
|
1038
|
-
align-items: center;
|
|
1039
|
-
}
|
|
1040
|
-
.custom-operate-drawer .el-input__inner {
|
|
1041
|
-
text-align: center;
|
|
1042
|
-
}
|
|
1043
|
-
.custom-operate-drawer .el-input__suffix {
|
|
1044
|
-
position: absolute;
|
|
1045
|
-
right: 10px;
|
|
1046
|
-
}
|
|
1047
|
-
.custom-operate-drawer .custom-content li {
|
|
1048
|
-
display: flex;
|
|
1049
|
-
align-items: center;
|
|
1050
|
-
justify-content: center;
|
|
1051
|
-
height: 44px;
|
|
1052
|
-
}
|
|
1053
|
-
.custom-operate-drawer .custom-group {
|
|
1054
|
-
max-height: calc(100vh - 226px);
|
|
1055
|
-
overflow-y: auto;
|
|
1056
|
-
}
|
|
1057
|
-
.custom-operate-drawer .custom-group::-webkit-scrollbar {
|
|
1058
|
-
/*滚动条整体样式*/
|
|
1059
|
-
width: 4px;
|
|
1060
|
-
/*高宽分别对应横竖滚动条的尺寸*/
|
|
1061
|
-
height: 1px;
|
|
1062
|
-
}
|
|
1063
|
-
.custom-operate-drawer .custom-group::-webkit-scrollbar-thumb {
|
|
1064
|
-
/*滚动条里面小方块*/
|
|
1065
|
-
border-radius: 10px;
|
|
1066
|
-
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
|
|
1067
|
-
background: #999;
|
|
1068
|
-
}
|
|
1069
|
-
.custom-operate-drawer .custom-group::-webkit-scrollbar-track {
|
|
1070
|
-
/*滚动条里面轨道*/
|
|
1071
|
-
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
|
|
1072
|
-
border-radius: 10px;
|
|
1073
|
-
background: #eee;
|
|
1009
|
+
[data-v-488ca110] .gmSearchForm .el-form-item {
|
|
1010
|
+
margin-right: 0;
|
|
1011
|
+
margin-bottom: 4px;
|
|
1074
1012
|
}
|
|
1075
1013
|
[data-v-98c2e804] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
1076
1014
|
border-right: none;
|
|
@@ -1095,6 +1033,58 @@ video {
|
|
|
1095
1033
|
[data-v-98c2e804] .gmTableNoBorder .el-table__border-left-patch {
|
|
1096
1034
|
height: 0;
|
|
1097
1035
|
}
|
|
1036
|
+
.gm-upload-preview-dialog[data-v-312f9322] [data-v-312f9322] .el-dialog__body {
|
|
1037
|
+
padding: 0;
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
.gm-upload-file-picture-card[data-v-312f9322] [data-v-312f9322] .el-upload-list__item, .gm-upload-file-picture-card[data-v-312f9322] [data-v-312f9322] .el-upload--picture-card {
|
|
1041
|
+
width: auto;
|
|
1042
|
+
height: auto;
|
|
1043
|
+
}
|
|
1044
|
+
.gm-upload-file {
|
|
1045
|
+
line-height: normal;
|
|
1046
|
+
}
|
|
1047
|
+
.gm-upload-file .el-checkbox {
|
|
1048
|
+
position: absolute;
|
|
1049
|
+
left: 10px;
|
|
1050
|
+
top: 0;
|
|
1051
|
+
z-index: 9;
|
|
1052
|
+
}
|
|
1053
|
+
.gm-upload-file .el-upload-list--picture-card {
|
|
1054
|
+
gap: 10px;
|
|
1055
|
+
}
|
|
1056
|
+
.gm-upload-file .el-upload-list__item {
|
|
1057
|
+
margin: 0;
|
|
1058
|
+
}
|
|
1059
|
+
.gm-upload-file .el-upload-list__item-file-name {
|
|
1060
|
+
line-height: normal;
|
|
1061
|
+
}
|
|
1062
|
+
.gm-upload-file .el-upload-dragger {
|
|
1063
|
+
padding: 0;
|
|
1064
|
+
border: none;
|
|
1065
|
+
width: 100%;
|
|
1066
|
+
height: 100%;
|
|
1067
|
+
display: flex;
|
|
1068
|
+
}
|
|
1069
|
+
.gm-upload-file .el-upload--picture-card {
|
|
1070
|
+
border: none;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
.gm-upload-file-disabled .el-upload--picture-card {
|
|
1074
|
+
display: none;
|
|
1075
|
+
}
|
|
1076
|
+
.gm-upload-file-disabled .el-upload-list__item-status-label {
|
|
1077
|
+
display: none;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
.pagination-container[data-v-47d35e7b] {
|
|
1081
|
+
background: #fff;
|
|
1082
|
+
padding-top: 12px;
|
|
1083
|
+
}
|
|
1084
|
+
.pagination-container.hidden[data-v-47d35e7b] {
|
|
1085
|
+
display: none;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1098
1088
|
@charset "UTF-8";
|
|
1099
1089
|
.table-custom-header-drawer .el-drawer__header {
|
|
1100
1090
|
padding: 10px 15px;
|
|
@@ -1151,46 +1141,59 @@ video {
|
|
|
1151
1141
|
border-radius: 10px;
|
|
1152
1142
|
background: #eee;
|
|
1153
1143
|
}
|
|
1154
|
-
|
|
1155
|
-
|
|
1144
|
+
@charset "UTF-8";
|
|
1145
|
+
.custom-operate-drawer .el-drawer__header {
|
|
1146
|
+
padding: 10px 15px;
|
|
1147
|
+
margin: 0;
|
|
1148
|
+
border-bottom: 1px solid #ebeef5;
|
|
1156
1149
|
}
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
height: auto;
|
|
1150
|
+
.custom-operate-drawer .el-drawer__title {
|
|
1151
|
+
font-size: 14px;
|
|
1152
|
+
color: #333;
|
|
1161
1153
|
}
|
|
1162
|
-
.
|
|
1163
|
-
|
|
1154
|
+
.custom-operate-drawer .el-drawer__body {
|
|
1155
|
+
padding: 15px;
|
|
1164
1156
|
}
|
|
1165
|
-
.
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
top: 0;
|
|
1169
|
-
z-index: 9;
|
|
1157
|
+
.custom-operate-drawer .el-drawer__footer {
|
|
1158
|
+
padding: 10px 15px;
|
|
1159
|
+
border-top: 1px solid #ebeef5;
|
|
1170
1160
|
}
|
|
1171
|
-
.
|
|
1172
|
-
|
|
1161
|
+
.custom-operate-drawer .el-checkbox {
|
|
1162
|
+
display: flex;
|
|
1163
|
+
align-items: center;
|
|
1173
1164
|
}
|
|
1174
|
-
.
|
|
1175
|
-
|
|
1165
|
+
.custom-operate-drawer .el-input__inner {
|
|
1166
|
+
text-align: center;
|
|
1176
1167
|
}
|
|
1177
|
-
.
|
|
1178
|
-
|
|
1168
|
+
.custom-operate-drawer .el-input__suffix {
|
|
1169
|
+
position: absolute;
|
|
1170
|
+
right: 10px;
|
|
1179
1171
|
}
|
|
1180
|
-
.
|
|
1181
|
-
padding: 0;
|
|
1182
|
-
border: none;
|
|
1183
|
-
width: 100%;
|
|
1184
|
-
height: 100%;
|
|
1172
|
+
.custom-operate-drawer .custom-content li {
|
|
1185
1173
|
display: flex;
|
|
1174
|
+
align-items: center;
|
|
1175
|
+
justify-content: center;
|
|
1176
|
+
height: 44px;
|
|
1186
1177
|
}
|
|
1187
|
-
.
|
|
1188
|
-
|
|
1178
|
+
.custom-operate-drawer .custom-group {
|
|
1179
|
+
max-height: calc(100vh - 226px);
|
|
1180
|
+
overflow-y: auto;
|
|
1189
1181
|
}
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1182
|
+
.custom-operate-drawer .custom-group::-webkit-scrollbar {
|
|
1183
|
+
/*滚动条整体样式*/
|
|
1184
|
+
width: 4px;
|
|
1185
|
+
/*高宽分别对应横竖滚动条的尺寸*/
|
|
1186
|
+
height: 1px;
|
|
1193
1187
|
}
|
|
1194
|
-
.
|
|
1195
|
-
|
|
1188
|
+
.custom-operate-drawer .custom-group::-webkit-scrollbar-thumb {
|
|
1189
|
+
/*滚动条里面小方块*/
|
|
1190
|
+
border-radius: 10px;
|
|
1191
|
+
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
|
|
1192
|
+
background: #999;
|
|
1193
|
+
}
|
|
1194
|
+
.custom-operate-drawer .custom-group::-webkit-scrollbar-track {
|
|
1195
|
+
/*滚动条里面轨道*/
|
|
1196
|
+
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
|
|
1197
|
+
border-radius: 10px;
|
|
1198
|
+
background: #eee;
|
|
1196
1199
|
}
|
package/es/components/index.mjs
CHANGED
|
@@ -277,6 +277,8 @@ export { ruleEditorEmits, ruleEditorProps } from './src/composite/ruleEditor/rul
|
|
|
277
277
|
export { GmRuleEditor } from './src/composite/ruleEditor/index.mjs';
|
|
278
278
|
export { uploadFileProps } from './src/composite/uploadFile/uploadFile.mjs';
|
|
279
279
|
export { GmUploadFile } from './src/composite/uploadFile/index.mjs';
|
|
280
|
+
export { fileProProps } from './src/composite/fileList2/fileList.mjs';
|
|
281
|
+
export { GmFileList } from './src/composite/fileList2/index.mjs';
|
|
280
282
|
export { messageTypes, normalizeMessageOptions } from './src/plugins/message/method.mjs';
|
|
281
283
|
export { GmMessage } from './src/plugins/message/index.mjs';
|
|
282
284
|
export { GmLoading } from './src/plugins/loading/index.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
default: number;
|
|
14
14
|
};
|
|
15
15
|
field: {
|
|
16
|
-
type:
|
|
16
|
+
type: StringConstructor;
|
|
17
17
|
default: string;
|
|
18
18
|
};
|
|
19
19
|
controls: {
|
|
@@ -46,7 +46,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
46
46
|
default: number;
|
|
47
47
|
};
|
|
48
48
|
field: {
|
|
49
|
-
type:
|
|
49
|
+
type: StringConstructor;
|
|
50
50
|
default: string;
|
|
51
51
|
};
|
|
52
52
|
controls: {
|
|
@@ -71,7 +71,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
71
71
|
file: Partial<UploadFile>;
|
|
72
72
|
showIcon: boolean;
|
|
73
73
|
controls: boolean;
|
|
74
|
-
field:
|
|
74
|
+
field: string;
|
|
75
75
|
controlslist: string;
|
|
76
76
|
oncontextmenu: boolean;
|
|
77
77
|
}, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileComponent.mjs","sources":["../../../../../../../packages/components/src/composite/fileComponent/fileComponent.ts"],"sourcesContent":["import { type PropType } from 'vue';\nimport { type UploadFile } from 'element-plus';\n\n/** 视频控制器 */\nexport type Controls = 'nodownload' | 'nofullscreen' | 'noremoteplayback' | 'noplaybackrate';\n\nexport const fileComponentProps = {\n /** 文件 */\n file: {\n type: Object as PropType<Partial<UploadFile>>,\n default: () => ({}),\n },\n /** 文件链接字段 */\n url: {\n type: String,\n default: 'url',\n },\n /** 图标大小 */\n size: {\n type: Number,\n default: 80,\n },\n /** 文件类型判断字段 */\n field: {\n type: String
|
|
1
|
+
{"version":3,"file":"fileComponent.mjs","sources":["../../../../../../../packages/components/src/composite/fileComponent/fileComponent.ts"],"sourcesContent":["import { type PropType } from 'vue';\nimport { type UploadFile } from 'element-plus';\n\n/** 视频控制器 */\nexport type Controls = 'nodownload' | 'nofullscreen' | 'noremoteplayback' | 'noplaybackrate';\n\nexport const fileComponentProps = {\n /** 文件 */\n file: {\n type: Object as PropType<Partial<UploadFile>>,\n default: () => ({}),\n },\n /** 文件链接字段 */\n url: {\n type: String,\n default: 'url',\n },\n /** 图标大小 */\n size: {\n type: Number,\n default: 80,\n },\n /** 文件类型判断字段 */\n field: {\n type: String,\n default: 'name',\n },\n /** 视频是否显示操作按钮 */\n controls: {\n type: Boolean,\n default: true,\n },\n /** 视频控制器选项 */\n controlslist: {\n type: String,\n default: '',\n },\n /** 视频是否显示右键菜单 */\n oncontextmenu: {\n type: Boolean,\n default: true,\n },\n /** 是否显示icon */\n showIcon: {\n type: Boolean,\n default: false,\n },\n};\n"],"names":[],"mappings":"AAMO,MAAM,kBAAqB,GAAA;AAAA;AAAA,EAEhC,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,OAAA,EAAS,OAAO,EAAC,CAAA;AAAA,GACnB;AAAA;AAAA,EAEA,GAAK,EAAA;AAAA,IACH,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA;AAAA,EAEA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA;AAAA,EAEA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,MAAA;AAAA,GACX;AAAA;AAAA,EAEA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA;AAAA,EAEA,YAAc,EAAA;AAAA,IACZ,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA;AAAA,EAEA,aAAe,EAAA;AAAA,IACb,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA;AAAA,EAEA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AACF;;;;"}
|
|
@@ -13,7 +13,7 @@ export declare const GmFileComponent: import("../../../../utils").SFCWithInstall
|
|
|
13
13
|
default: number;
|
|
14
14
|
};
|
|
15
15
|
field: {
|
|
16
|
-
type:
|
|
16
|
+
type: StringConstructor;
|
|
17
17
|
default: string;
|
|
18
18
|
};
|
|
19
19
|
controls: {
|
|
@@ -46,7 +46,7 @@ export declare const GmFileComponent: import("../../../../utils").SFCWithInstall
|
|
|
46
46
|
default: number;
|
|
47
47
|
};
|
|
48
48
|
field: {
|
|
49
|
-
type:
|
|
49
|
+
type: StringConstructor;
|
|
50
50
|
default: string;
|
|
51
51
|
};
|
|
52
52
|
controls: {
|
|
@@ -71,7 +71,7 @@ export declare const GmFileComponent: import("../../../../utils").SFCWithInstall
|
|
|
71
71
|
file: Partial<import("element-plus").UploadFile>;
|
|
72
72
|
showIcon: boolean;
|
|
73
73
|
controls: boolean;
|
|
74
|
-
field:
|
|
74
|
+
field: string;
|
|
75
75
|
controlslist: string;
|
|
76
76
|
oncontextmenu: boolean;
|
|
77
77
|
}, {}>> & Record<string, any>;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
fileList: {
|
|
3
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>[]>;
|
|
4
|
+
default: () => never[];
|
|
5
|
+
};
|
|
6
|
+
controlslist: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
oncontextmenu: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
width: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
file: {
|
|
19
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
20
|
+
default: () => {};
|
|
21
|
+
};
|
|
22
|
+
url: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
size: {
|
|
27
|
+
type: NumberConstructor;
|
|
28
|
+
default: number;
|
|
29
|
+
};
|
|
30
|
+
field: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
controls: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
showIcon: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
|
+
fileList: {
|
|
44
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>[]>;
|
|
45
|
+
default: () => never[];
|
|
46
|
+
};
|
|
47
|
+
controlslist: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
oncontextmenu: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
width: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
file: {
|
|
60
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
61
|
+
default: () => {};
|
|
62
|
+
};
|
|
63
|
+
url: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
size: {
|
|
68
|
+
type: NumberConstructor;
|
|
69
|
+
default: number;
|
|
70
|
+
};
|
|
71
|
+
field: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
controls: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
showIcon: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
}>>, {
|
|
84
|
+
size: number;
|
|
85
|
+
url: string;
|
|
86
|
+
width: string;
|
|
87
|
+
file: Partial<import("element-plus").UploadFile>;
|
|
88
|
+
showIcon: boolean;
|
|
89
|
+
controls: boolean;
|
|
90
|
+
fileList: Partial<import("element-plus").UploadFile>[];
|
|
91
|
+
field: string;
|
|
92
|
+
controlslist: string;
|
|
93
|
+
oncontextmenu: boolean;
|
|
94
|
+
}, {}>;
|
|
95
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileList.vue.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { defineComponent, ref, openBlock, createElementBlock, Fragment, createElementVNode, renderList, createVNode, unref, mergeProps } from 'vue';
|
|
2
|
+
import { GmFileComponent } from '../fileComponent/index.mjs';
|
|
3
|
+
import { GmPreviewFile } from '../previewFile/index.mjs';
|
|
4
|
+
import { fileProProps } from './fileList.mjs';
|
|
5
|
+
|
|
6
|
+
const _hoisted_1 = { class: "gm-flex gm-items-center gm-gap-4" };
|
|
7
|
+
const _hoisted_2 = ["onClick"];
|
|
8
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
...{
|
|
10
|
+
name: "GmFileList"
|
|
11
|
+
},
|
|
12
|
+
__name: "FileList",
|
|
13
|
+
props: fileProProps,
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
const dialog = ref(false);
|
|
17
|
+
const fileIndex = ref(0);
|
|
18
|
+
const handlePreview = (index) => {
|
|
19
|
+
fileIndex.value = index;
|
|
20
|
+
dialog.value = true;
|
|
21
|
+
};
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
return openBlock(), createElementBlock(
|
|
24
|
+
Fragment,
|
|
25
|
+
null,
|
|
26
|
+
[
|
|
27
|
+
createElementVNode("div", _hoisted_1, [
|
|
28
|
+
(openBlock(true), createElementBlock(
|
|
29
|
+
Fragment,
|
|
30
|
+
null,
|
|
31
|
+
renderList(_ctx.fileList, (file, index) => {
|
|
32
|
+
return openBlock(), createElementBlock("div", {
|
|
33
|
+
key: index,
|
|
34
|
+
class: "gm-relative gm-flex gm-h-32 gm-w-32 gm-cursor-pointer gm-items-center gm-justify-center gm-overflow-hidden gm-rounded gm-border",
|
|
35
|
+
onClick: ($event) => handlePreview(index)
|
|
36
|
+
}, [
|
|
37
|
+
createVNode(unref(GmFileComponent), mergeProps(props, {
|
|
38
|
+
file,
|
|
39
|
+
controls: false
|
|
40
|
+
}), null, 16, ["file"])
|
|
41
|
+
], 8, _hoisted_2);
|
|
42
|
+
}),
|
|
43
|
+
128
|
|
44
|
+
/* KEYED_FRAGMENT */
|
|
45
|
+
))
|
|
46
|
+
]),
|
|
47
|
+
createVNode(unref(GmPreviewFile), mergeProps(props, {
|
|
48
|
+
dialogVisible: dialog.value,
|
|
49
|
+
"onUpdate:dialogVisible": _cache[0] || (_cache[0] = ($event) => dialog.value = $event),
|
|
50
|
+
"file-index": fileIndex.value,
|
|
51
|
+
"onUpdate:fileIndex": _cache[1] || (_cache[1] = ($event) => fileIndex.value = $event)
|
|
52
|
+
}), null, 16, ["dialogVisible", "file-index"])
|
|
53
|
+
],
|
|
54
|
+
64
|
|
55
|
+
/* STABLE_FRAGMENT */
|
|
56
|
+
);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
export { _sfc_main as default };
|
|
62
|
+
//# sourceMappingURL=FileList.vue2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileList.vue2.mjs","sources":["../../../../../../../packages/components/src/composite/fileList2/FileList.vue"],"sourcesContent":["<template>\n <div class=\"gm-flex gm-items-center gm-gap-4\">\n <div\n v-for=\"(file, index) in fileList\"\n :key=\"index\"\n class=\"gm-relative gm-flex gm-h-32 gm-w-32 gm-cursor-pointer gm-items-center gm-justify-center gm-overflow-hidden gm-rounded gm-border\"\n @click=\"handlePreview(index)\"\n >\n <GmFileComponent v-bind=\"props\" :file :controls=\"false\" />\n </div>\n </div>\n\n <GmPreviewFile v-bind=\"props\" v-model:dialogVisible=\"dialog\" v-model:file-index=\"fileIndex\" />\n</template>\n\n<script setup lang=\"ts\">\nimport { ref } from 'vue';\nimport GmFileComponent from '../fileComponent';\nimport GmPreviewFile from '../previewFile';\nimport { fileProProps } from './fileList';\n\ndefineOptions({\n name: 'GmFileList',\n});\n\nconst props = defineProps(fileProProps);\n\nconst dialog = ref(false);\nconst fileIndex = ref(0);\nconst handlePreview = (index: number) => {\n fileIndex.value = index;\n dialog.value = true;\n};\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAyBA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAEd,IAAM,MAAA,MAAA,GAAS,IAAI,KAAK,CAAA,CAAA;AACxB,IAAM,MAAA,SAAA,GAAY,IAAI,CAAC,CAAA,CAAA;AACvB,IAAM,MAAA,aAAA,GAAgB,CAAC,KAAkB,KAAA;AACvC,MAAA,SAAA,CAAU,KAAQ,GAAA,KAAA,CAAA;AAClB,MAAA,MAAA,CAAO,KAAQ,GAAA,IAAA,CAAA;AAAA,KACjB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { UploadFile } from 'element-plus';
|
|
3
|
+
export declare const fileProProps: {
|
|
4
|
+
/** 文件列表 */
|
|
5
|
+
fileList: {
|
|
6
|
+
type: PropType<Partial<UploadFile>[]>;
|
|
7
|
+
default: () => never[];
|
|
8
|
+
};
|
|
9
|
+
/** 视频控制器选项 */
|
|
10
|
+
controlslist: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
/** 视频是否显示右键菜单 */
|
|
15
|
+
oncontextmenu: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
width: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
file: {
|
|
24
|
+
type: PropType<Partial<UploadFile>>;
|
|
25
|
+
default: () => {};
|
|
26
|
+
};
|
|
27
|
+
url: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
size: {
|
|
32
|
+
type: NumberConstructor;
|
|
33
|
+
default: number;
|
|
34
|
+
};
|
|
35
|
+
field: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
controls: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
showIcon: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import '../previewFile/index.mjs';
|
|
2
|
+
import { previewFileProps } from '../previewFile/previewFile.mjs';
|
|
3
|
+
|
|
4
|
+
const fileProProps = {
|
|
5
|
+
...previewFileProps,
|
|
6
|
+
/** 文件列表 */
|
|
7
|
+
fileList: {
|
|
8
|
+
type: Array,
|
|
9
|
+
default: () => []
|
|
10
|
+
},
|
|
11
|
+
/** 视频控制器选项 */
|
|
12
|
+
controlslist: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: "nodownload"
|
|
15
|
+
},
|
|
16
|
+
/** 视频是否显示右键菜单 */
|
|
17
|
+
oncontextmenu: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: false
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { fileProProps };
|
|
24
|
+
//# sourceMappingURL=fileList.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fileList.mjs","sources":["../../../../../../../packages/components/src/composite/fileList2/fileList.ts"],"sourcesContent":["import { previewFileProps } from '../previewFile';\nimport type { PropType } from 'vue';\nimport type { UploadFile } from 'element-plus';\n\nexport const fileProProps = {\n ...previewFileProps,\n /** 文件列表 */\n fileList: {\n type: Array as PropType<Partial<UploadFile>[]>,\n default: () => [],\n },\n /** 视频控制器选项 */\n controlslist: {\n type: String,\n default: 'nodownload',\n },\n /** 视频是否显示右键菜单 */\n oncontextmenu: {\n type: Boolean,\n default: false,\n },\n};\n"],"names":[],"mappings":";;;AAIO,MAAM,YAAe,GAAA;AAAA,EAC1B,GAAG,gBAAA;AAAA;AAAA,EAEH,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,KAAA;AAAA,IACN,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AAAA;AAAA,EAEA,YAAc,EAAA;AAAA,IACZ,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,YAAA;AAAA,GACX;AAAA;AAAA,EAEA,aAAe,EAAA;AAAA,IACb,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AACF;;;;"}
|