@cmstops/pro-compo 3.9.1-stable.0 → 3.9.1-stable.10
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 +49 -4
- package/dist/index.min.css +1 -1
- package/dist/index.min.js.map +1 -1
- package/es/appCenter/script/api.d.ts +5 -5
- package/es/baseFilter/components/FilterGroup.js +1 -1
- package/es/baseFilter/components/filterItem.js +1 -1
- package/es/colorPalette/component.js +1 -1
- package/es/config.js +1 -1
- package/es/contentDetailList/component.js +33 -9
- package/es/contentDetailList/components/Content/CompoItem/index.js +12 -12
- package/es/contentDetailList/components/Content/ContentListItem/index.js +15 -15
- package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +18 -18
- package/es/contentDetailList/components/Content/DocItem/index.js +27 -27
- package/es/contentDetailList/components/Content/DocMpItem/index.js +13 -13
- package/es/contentDetailList/components/Content/GroupPieceItem/index.js +11 -11
- package/es/contentDetailList/components/Content/KongoNavItem/index.js +14 -14
- package/es/contentDetailList/components/Content/LiveItem/index.js +9 -9
- package/es/contentDetailList/components/Content/MaccountItem/index.js +12 -12
- package/es/contentDetailList/components/Content/courseItem/index.js +10 -10
- package/es/contentDetailList/components/Content/funhdItem/index.js +10 -10
- package/es/contentDetailList/components/Content/index.js +118 -117
- package/es/contentDetailList/components/CustomWrp/CustomItem.js +5 -5
- package/es/contentDetailList/components/CustomWrp/index.js +10 -10
- package/es/contentDetailList/components/Doc/index.js +16 -10
- package/es/contentDetailList/components/Records/MatrixItem/index.js +22 -22
- package/es/contentDetailList/components/Records/index.js +8 -8
- package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.js +6 -6
- package/es/contentDetailList/components/ShowQRCode/index.js +1 -1
- package/es/contentDetailList/script/api.d.ts +2 -2
- package/es/contentModal/component.js +40 -40
- package/es/contentModal/components/CompoList/index.js +1 -1
- package/es/contentModal/components/Dejin/index.js +1 -1
- package/es/contentModal/components/MpContentList/MediaFilter/index.js +2 -2
- package/es/contentModal/components/MpContentList/index.js +1 -1
- package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +3 -3
- package/es/contentModal/components/ViewAllColumn/index.js +41 -20
- package/es/contentModal/components/storeBox/index.js +8 -8
- package/es/contentModal/script/api.d.ts +13 -13
- package/es/dataTags/component.js +38 -38
- package/es/docHistory/component.js +44 -15
- package/es/docHistory/components/DocDiffPanel/index.js +2 -2
- package/es/docHistory/components/DocHistoryList/index.js +2 -2
- package/es/docHistory/scripts/diff.js +4 -3
- package/es/docHistory/scripts/useDocHistory.d.ts +1 -1
- package/es/docHistory/style/index.css +4 -0
- package/es/docHistory/style/index.less +5 -0
- package/es/docPreview/component.js +15 -15
- package/es/docPreview/components/PreviewIframe.js +2 -2
- package/es/docPreview/scripts/api.d.ts +1 -1
- package/es/docPreview/scripts/hook.d.ts +1 -1
- package/es/editMetaInfo/components/metaInfoForm.js +11 -11
- package/es/editMetaInfo/script/api.d.ts +2 -2
- package/es/emptyData/component.js +4 -4
- package/es/emptyData/svg/acount.js +2 -2
- package/es/emptyData/svg/add.js +2 -2
- package/es/emptyData/svg/analize.js +2 -2
- package/es/emptyData/svg/analize_fail.js +2 -2
- package/es/emptyData/svg/empty.js +2 -2
- package/es/emptyData/svg/file.js +2 -2
- package/es/emptyData/svg/manager.js +2 -2
- package/es/emptyData/svg/message.js +2 -2
- package/es/emptyData/svg/noanalize.js +2 -2
- package/es/emptyData/svg/null.js +2 -2
- package/es/emptyData/svg/search.js +2 -2
- package/es/emptyData/svg/star.js +2 -2
- package/es/emptyData/svg/trash.js +2 -2
- package/es/emptyData/svg/user.js +2 -2
- package/es/hooks/assets.d.ts +1 -1
- package/es/hooks/source.d.ts +1 -1
- package/es/hooks/useAttachement.d.ts +7 -7
- package/es/hooks/usePopper.d.ts +1 -1
- package/es/hooks/usePopper.js +3 -3
- package/es/hooks/useUpload.d.ts +53 -5
- package/es/hooks/useUpload.js +43 -4
- package/es/hooks/user.d.ts +1 -1
- package/es/imageCrop/component.js +11 -11
- package/es/imageCrop/script/api.d.ts +1 -1
- package/es/importData/component.js +13 -13
- package/es/index.css +49 -4
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/mediaFilter/component.js +4 -4
- package/es/mediaFilter/components/DocFilter.js +1 -1
- package/es/mediaFilter/components/FilterGroup.js +1 -1
- package/es/mediaFilter/components/FilterItem.js +1 -1
- package/es/mediaView/component.js +8 -8
- package/es/messageBox/component.js +3 -3
- package/es/messageBox/script/api.d.ts +2 -2
- package/es/previousVersion/script/api.d.ts +4 -4
- package/es/resourceGridList/component.js +16 -16
- package/es/resourceGridList/components/FileTypeThumb/index.js +6 -6
- package/es/resourceModal/component.js +7 -7
- package/es/resourceModal/components/MediaPreviewer/index.js +8 -8
- package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +5 -5
- package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +6 -6
- package/es/resourceModal/components/MediaSelection/MainContent/index.js +18 -18
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +3 -3
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +3 -3
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.js +2 -2
- package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +4 -4
- package/es/resourceModal/components/MediaSelection/index.js +6 -6
- package/es/resourceModal/script/api.d.ts +11 -11
- package/es/selectAddTo/component.d.ts +0 -0
- package/es/selectAddTo/component.js +47 -0
- package/es/selectAddTo/component.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
- package/es/selectAddTo/components/SelectAddToView.d.ts +0 -0
- package/es/selectAddTo/components/SelectAddToView.js +90 -0
- package/es/selectAddTo/components/SelectAddToView.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
- package/es/selectAddTo/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
- package/es/selectAddTo/components/ViewAllColumn/MediaFilter/index.js +166 -0
- package/es/selectAddTo/components/ViewAllColumn/index.d.ts +0 -0
- package/es/selectAddTo/components/ViewAllColumn/index.js +212 -0
- package/es/selectAddTo/components/ViewAllColumn/index.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
- package/es/selectAddTo/components/ViewAllColumn/script/useTableColumns.d.ts +6 -0
- package/es/selectAddTo/components/ViewAllColumn/script/useTableColumns.js +102 -0
- package/es/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.d.ts +144 -0
- package/es/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +182 -0
- package/es/selectAddTo/components/ViewAllColumn/types/index.d.ts +55 -0
- package/es/selectAddTo/index.d.ts +2 -0
- package/es/selectAddTo/index.js +7 -0
- package/es/selectAddTo/script/api.d.ts +18 -0
- package/es/selectAddTo/script/api.js +23 -0
- package/es/selectAddTo/script/index.d.ts +2 -0
- package/es/selectAddTo/script/useSelectAddToState.d.ts +13 -0
- package/es/selectAddTo/script/useSelectAddToState.js +55 -0
- package/es/selectAddTo/style/css.js +1 -0
- package/es/selectAddTo/style/index.css +3 -0
- package/es/selectAddTo/style/index.d.ts +1 -0
- package/es/selectAddTo/style/index.js +1 -0
- package/es/selectAddTo/style/index.less +3 -0
- package/es/selectAddTo/types/index.d.ts +37 -0
- package/es/selectGategory/component.js +5 -5
- package/es/selectGategory/components/ColumnSelection/index.js +6 -6
- package/es/selectGategory/script/api.d.ts +2 -2
- package/es/selectResourceModal/__demo__/module/DivWrapper.d.ts +261 -0
- package/es/selectResourceModal/__demo__/module/basic.d.ts +292 -0
- package/es/selectResourceModal/component.js +26 -34
- package/es/selectResourceModal/components/List/ListCardWrapper.js +6 -6
- package/es/selectResourceModal/components/List/ListLocal/Upload.js +1 -1
- package/es/selectResourceModal/components/List/ListLocal/index.js +8 -3
- package/es/selectResourceModal/components/List/ListNormal/Filter.js +202 -94
- package/es/selectResourceModal/components/List/ListNormal/index.js +23 -7
- package/es/selectResourceModal/components/List/ListSystem/Filter.js +3 -3
- package/es/selectResourceModal/components/List/ListSystem/SubList.js +3 -3
- package/es/selectResourceModal/components/List/ListSystem/index.js +2 -2
- package/es/selectResourceModal/components/List/ListWraper.js +2 -2
- package/es/selectResourceModal/components/ListSelected/index.js +6 -6
- package/es/selectResourceModal/components/ListTabs/index.js +1 -1
- package/es/selectResourceModal/hooks/useResponsiveFilter.d.ts +21 -0
- package/es/selectResourceModal/hooks/useResponsiveFilter.js +142 -0
- package/es/selectResourceModal/scripts/selectionApis.d.ts +2 -2
- package/es/selectResourceModal/scripts/useTabFilter.js +1 -11
- package/es/selectResourceModal/style/index.css +45 -4
- package/es/selectResourceModal/style/index.less +14 -0
- package/es/selectResourceModal/style/list.less +40 -4
- package/es/selectThumb/component.js +38 -38
- package/es/selectThumb/components/card.js +3 -3
- package/es/style.css +63 -0
- package/es/thumbCard/component.js +7 -7
- package/es/thumbCard/components/ThumbUploading/index.js +3 -3
- package/es/typeIcons/component.js +1 -1
- package/es/uploadBefore/component.js +1 -1
- package/es/uploadBefore/components/UploadBefore.js +9 -9
- package/es/uploadBefore/script/api.d.ts +4 -4
- package/es/uploadStep/component.js +3 -3
- package/es/userAvater/component.js +3 -3
- package/es/userAvater/script/api.d.ts +4 -4
- package/es/userDirector/component.js +5 -5
- package/es/userDirector/components/userTree.js +2 -2
- package/es/userDirector/script/api.d.ts +6 -6
- package/es/utils/index.js +6 -6
- package/es/utils/request.d.ts +1 -1
- package/es/utils/transcodeMedia.d.ts +1 -1
- package/es/videoThumb/scripts/api.d.ts +1 -1
- package/lib/baseFilter/components/FilterGroup.js +1 -1
- package/lib/baseFilter/components/filterItem.js +1 -1
- package/lib/colorPalette/component.js +1 -1
- package/lib/config.js +1 -1
- package/lib/contentDetailList/component.js +33 -9
- package/lib/contentDetailList/components/Content/CompoItem/index.js +12 -12
- package/lib/contentDetailList/components/Content/ContentListItem/index.js +15 -15
- package/lib/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +18 -18
- package/lib/contentDetailList/components/Content/DocItem/index.js +27 -27
- package/lib/contentDetailList/components/Content/DocMpItem/index.js +13 -13
- package/lib/contentDetailList/components/Content/GroupPieceItem/index.js +11 -11
- package/lib/contentDetailList/components/Content/KongoNavItem/index.js +14 -14
- package/lib/contentDetailList/components/Content/LiveItem/index.js +9 -9
- package/lib/contentDetailList/components/Content/MaccountItem/index.js +12 -12
- package/lib/contentDetailList/components/Content/courseItem/index.js +10 -10
- package/lib/contentDetailList/components/Content/funhdItem/index.js +10 -10
- package/lib/contentDetailList/components/Content/index.js +118 -117
- package/lib/contentDetailList/components/CustomWrp/CustomItem.js +5 -5
- package/lib/contentDetailList/components/CustomWrp/index.js +10 -10
- package/lib/contentDetailList/components/Doc/index.js +16 -10
- package/lib/contentDetailList/components/Records/MatrixItem/index.js +22 -22
- package/lib/contentDetailList/components/Records/index.js +8 -8
- package/lib/contentDetailList/components/ShowQRCode/QrcodeView/index.js +6 -6
- package/lib/contentDetailList/components/ShowQRCode/index.js +1 -1
- package/lib/contentModal/component.js +40 -40
- package/lib/contentModal/components/CompoList/index.js +1 -1
- package/lib/contentModal/components/Dejin/index.js +1 -1
- package/lib/contentModal/components/MpContentList/MediaFilter/index.js +2 -2
- package/lib/contentModal/components/MpContentList/index.js +1 -1
- package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +3 -3
- package/lib/contentModal/components/ViewAllColumn/index.js +40 -19
- package/lib/contentModal/components/storeBox/index.js +8 -8
- package/lib/dataTags/component.js +38 -38
- package/lib/docHistory/component.js +42 -13
- package/lib/docHistory/components/DocDiffPanel/index.js +2 -2
- package/lib/docHistory/components/DocHistoryList/index.js +2 -2
- package/lib/docHistory/scripts/diff.js +4 -3
- package/lib/docHistory/style/index.css +4 -0
- package/lib/docHistory/style/index.less +5 -0
- package/lib/docPreview/component.js +15 -15
- package/lib/docPreview/components/PreviewIframe.js +2 -2
- package/lib/editMetaInfo/components/metaInfoForm.js +11 -11
- package/lib/emptyData/component.js +4 -4
- package/lib/emptyData/svg/acount.js +2 -2
- package/lib/emptyData/svg/add.js +2 -2
- package/lib/emptyData/svg/analize.js +2 -2
- package/lib/emptyData/svg/analize_fail.js +2 -2
- package/lib/emptyData/svg/empty.js +2 -2
- package/lib/emptyData/svg/file.js +2 -2
- package/lib/emptyData/svg/manager.js +2 -2
- package/lib/emptyData/svg/message.js +2 -2
- package/lib/emptyData/svg/noanalize.js +2 -2
- package/lib/emptyData/svg/null.js +2 -2
- package/lib/emptyData/svg/search.js +2 -2
- package/lib/emptyData/svg/star.js +2 -2
- package/lib/emptyData/svg/trash.js +2 -2
- package/lib/emptyData/svg/user.js +2 -2
- package/lib/hooks/usePopper.js +3 -3
- package/lib/hooks/useUpload.js +43 -3
- package/lib/imageCrop/component.js +11 -11
- package/lib/importData/component.js +13 -13
- package/lib/index.css +49 -4
- package/lib/index.js +2 -0
- package/lib/mediaFilter/component.js +4 -4
- package/lib/mediaFilter/components/DocFilter.js +1 -1
- package/lib/mediaFilter/components/FilterGroup.js +1 -1
- package/lib/mediaFilter/components/FilterItem.js +1 -1
- package/lib/mediaView/component.js +8 -8
- package/lib/messageBox/component.js +3 -3
- package/lib/resourceGridList/component.js +16 -16
- package/lib/resourceGridList/components/FileTypeThumb/index.js +6 -6
- package/lib/resourceModal/component.js +7 -7
- package/lib/resourceModal/components/MediaPreviewer/index.js +8 -8
- package/lib/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +5 -5
- package/lib/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +6 -6
- package/lib/resourceModal/components/MediaSelection/MainContent/index.js +18 -18
- package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +3 -3
- package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +3 -3
- package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/index.js +2 -2
- package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +4 -4
- package/lib/resourceModal/components/MediaSelection/index.js +6 -6
- package/lib/selectAddTo/component.js +48 -0
- package/lib/selectAddTo/component.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
- package/lib/selectAddTo/components/SelectAddToView.js +91 -0
- package/lib/selectAddTo/components/SelectAddToView.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
- package/lib/selectAddTo/components/ViewAllColumn/MediaFilter/index.js +167 -0
- package/lib/selectAddTo/components/ViewAllColumn/index.js +213 -0
- package/lib/selectAddTo/components/ViewAllColumn/index.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
- package/lib/selectAddTo/components/ViewAllColumn/script/useTableColumns.js +108 -0
- package/lib/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +184 -0
- package/lib/selectAddTo/index.js +8 -0
- package/lib/selectAddTo/script/api.js +27 -0
- package/lib/selectAddTo/script/useSelectAddToState.js +57 -0
- package/lib/selectAddTo/style/css.js +2 -0
- package/lib/selectAddTo/style/index.css +3 -0
- package/lib/selectAddTo/style/index.js +2 -0
- package/lib/selectAddTo/style/index.less +3 -0
- package/lib/selectGategory/component.js +5 -5
- package/lib/selectGategory/components/ColumnSelection/index.js +6 -6
- package/lib/selectResourceModal/component.js +25 -33
- package/lib/selectResourceModal/components/List/ListCardWrapper.js +6 -6
- package/lib/selectResourceModal/components/List/ListLocal/Upload.js +1 -1
- package/lib/selectResourceModal/components/List/ListLocal/index.js +6 -1
- package/lib/selectResourceModal/components/List/ListNormal/Filter.js +199 -91
- package/lib/selectResourceModal/components/List/ListNormal/index.js +22 -6
- package/lib/selectResourceModal/components/List/ListSystem/Filter.js +3 -3
- package/lib/selectResourceModal/components/List/ListSystem/SubList.js +3 -3
- package/lib/selectResourceModal/components/List/ListSystem/index.js +2 -2
- package/lib/selectResourceModal/components/List/ListWraper.js +2 -2
- package/lib/selectResourceModal/components/ListSelected/index.js +6 -6
- package/lib/selectResourceModal/components/ListTabs/index.js +1 -1
- package/lib/selectResourceModal/hooks/useResponsiveFilter.js +144 -0
- package/lib/selectResourceModal/scripts/useTabFilter.js +1 -13
- package/lib/selectResourceModal/style/index.css +45 -4
- package/lib/selectResourceModal/style/index.less +14 -0
- package/lib/selectResourceModal/style/list.less +40 -4
- package/lib/selectThumb/component.js +38 -38
- package/lib/selectThumb/components/card.js +3 -3
- package/lib/thumbCard/component.js +7 -7
- package/lib/thumbCard/components/ThumbUploading/index.js +3 -3
- package/lib/typeIcons/component.js +1 -1
- package/lib/uploadBefore/component.js +1 -1
- package/lib/uploadBefore/components/UploadBefore.js +9 -9
- package/lib/uploadStep/component.js +3 -3
- package/lib/userAvater/component.js +3 -3
- package/lib/userDirector/component.js +5 -5
- package/lib/userDirector/components/userTree.js +2 -2
- package/lib/utils/index.js +6 -6
- package/package.json +1 -1
package/es/hooks/useUpload.js
CHANGED
|
@@ -73,7 +73,7 @@ function useUpload(options) {
|
|
|
73
73
|
list.value = originList;
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
|
-
const uploadFile = (BASE_API, file, dir = 0, repoId, callback) => {
|
|
76
|
+
const uploadFile = (BASE_API, file, dir = 0, repoId, callback, upOptions) => {
|
|
77
77
|
const newFile = {
|
|
78
78
|
id: file.id || generateUUID(),
|
|
79
79
|
sig_id: file.sig_id || generateUUID(),
|
|
@@ -93,18 +93,24 @@ function useUpload(options) {
|
|
|
93
93
|
};
|
|
94
94
|
const uploading = upload.start(progress);
|
|
95
95
|
uploading.then(async (url) => {
|
|
96
|
+
var _a;
|
|
96
97
|
if (options == null ? void 0 : options.noAddMedia) {
|
|
97
98
|
recordTaskStatusChange({ ...newFile, status: 0, url }, 1);
|
|
98
99
|
callback && callback({ ...newFile, url }, "success");
|
|
99
100
|
return;
|
|
100
101
|
}
|
|
102
|
+
const params = {};
|
|
103
|
+
if ((_a = upOptions == null ? void 0 : upOptions.template) == null ? void 0 : _a.watermark) {
|
|
104
|
+
params.watermark = upOptions.template.watermark.default;
|
|
105
|
+
}
|
|
101
106
|
const { code, message } = await addMedia(BASE_API, {
|
|
102
107
|
url,
|
|
103
108
|
size: newFile.size,
|
|
104
109
|
directory_id: dir,
|
|
105
110
|
repository_id: repoId,
|
|
106
111
|
catalog: newFile.type,
|
|
107
|
-
alias: newFile.name
|
|
112
|
+
alias: newFile.name,
|
|
113
|
+
...params
|
|
108
114
|
});
|
|
109
115
|
if (code !== 0) {
|
|
110
116
|
console.log("\u{1F525}\u{1F525}\u{1F525}\u{1F525}\u{1F525} \u4E0A\u4F20\u5931\u8D25\uFF1A", newFile.name, code, message);
|
|
@@ -194,9 +200,16 @@ function getConfiguration(BASE_API, params) {
|
|
|
194
200
|
params
|
|
195
201
|
});
|
|
196
202
|
}
|
|
203
|
+
function getWatermarkTemplate(BASE_API) {
|
|
204
|
+
return request(BASE_API, {
|
|
205
|
+
url: `/poplar/v2/material/image/watermark`,
|
|
206
|
+
method: "get"
|
|
207
|
+
});
|
|
208
|
+
}
|
|
197
209
|
function useUploadConfig() {
|
|
198
210
|
const { get, set, remove } = useLocalstorage("LOCAL_UPLOAD_CONFIG");
|
|
199
211
|
const config = ref(get() || {});
|
|
212
|
+
const template = ref({});
|
|
200
213
|
async function initUploadConfig(BASE_API, domainId) {
|
|
201
214
|
if (config.value.size_config_enabled != null)
|
|
202
215
|
return;
|
|
@@ -245,11 +258,37 @@ function useUploadConfig() {
|
|
|
245
258
|
);
|
|
246
259
|
return false;
|
|
247
260
|
}
|
|
261
|
+
async function initTemplate(BASE_API) {
|
|
262
|
+
try {
|
|
263
|
+
const { code, message } = await getWatermarkTemplate(BASE_API);
|
|
264
|
+
if (code !== 0)
|
|
265
|
+
return;
|
|
266
|
+
if (message) {
|
|
267
|
+
let defaultWaterMark;
|
|
268
|
+
if (Array.isArray(message.images)) {
|
|
269
|
+
message.images.forEach((item) => {
|
|
270
|
+
if (message.default === item.id)
|
|
271
|
+
defaultWaterMark = item;
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
template.value = {
|
|
275
|
+
watermark: {
|
|
276
|
+
default: defaultWaterMark,
|
|
277
|
+
images: message.images
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
} catch (e) {
|
|
282
|
+
console.error(e);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
248
285
|
window.addEventListener("beforeunload", remove, false);
|
|
249
286
|
return {
|
|
250
287
|
config,
|
|
288
|
+
template,
|
|
251
289
|
checkFileSizeOutLimit,
|
|
252
|
-
initUploadConfig
|
|
290
|
+
initUploadConfig,
|
|
291
|
+
initTemplate
|
|
253
292
|
};
|
|
254
293
|
}
|
|
255
|
-
export { addMedia, useUpload as default, getMediaDetails, getSize, reTranscodeMedia, useUploadConfig };
|
|
294
|
+
export { addMedia, useUpload as default, getMediaDetails, getSize, getWatermarkTemplate, reTranscodeMedia, useUploadConfig };
|
package/es/hooks/user.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
interface Params {
|
|
2
2
|
[key: string]: any;
|
|
3
3
|
}
|
|
4
|
-
export declare function getChannels(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
4
|
+
export declare function getChannels(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
5
5
|
declare const useLoadUserInfo: (BASE_API: string) => {
|
|
6
6
|
userInfo: import("vue").Ref<any, any>;
|
|
7
7
|
getUserInfoHandle: () => Promise<void>;
|
|
@@ -318,7 +318,7 @@ const _sfc_main = defineComponent({
|
|
|
318
318
|
});
|
|
319
319
|
return (_ctx, _cache) => {
|
|
320
320
|
return openBlock(), createBlock(unref(Modal), {
|
|
321
|
-
visible:
|
|
321
|
+
visible: __props.visible,
|
|
322
322
|
width: "986px",
|
|
323
323
|
"mask-closable": false,
|
|
324
324
|
"title-align": "center",
|
|
@@ -328,7 +328,7 @@ const _sfc_main = defineComponent({
|
|
|
328
328
|
onCancel: _cache[4] || (_cache[4] = ($event) => setVisible(false))
|
|
329
329
|
}, {
|
|
330
330
|
title: withCtx(() => [
|
|
331
|
-
createTextVNode(toDisplayString(
|
|
331
|
+
createTextVNode(toDisplayString(__props.aspectRatioProp ? "\u88C1\u526A\u56FE\u7247" : "\u8BF7\u9009\u62E9\u88C1\u526A\u6BD4\u4F8B"), 1)
|
|
332
332
|
]),
|
|
333
333
|
footer: withCtx(() => [
|
|
334
334
|
createElementVNode("span", _hoisted_7, [
|
|
@@ -416,9 +416,9 @@ const _sfc_main = defineComponent({
|
|
|
416
416
|
size: "medium",
|
|
417
417
|
onClick: cancelDialog
|
|
418
418
|
}, {
|
|
419
|
-
default: withCtx(() => _cache[5] || (_cache[5] = [
|
|
420
|
-
createTextVNode("\u53D6\u6D88")
|
|
421
|
-
])),
|
|
419
|
+
default: withCtx(() => [..._cache[5] || (_cache[5] = [
|
|
420
|
+
createTextVNode("\u53D6\u6D88", -1)
|
|
421
|
+
])]),
|
|
422
422
|
_: 1
|
|
423
423
|
}),
|
|
424
424
|
withDirectives(createVNode(unref(Button), {
|
|
@@ -427,9 +427,9 @@ const _sfc_main = defineComponent({
|
|
|
427
427
|
loading: saveLoading.value,
|
|
428
428
|
onClick: save
|
|
429
429
|
}, {
|
|
430
|
-
default: withCtx(() => _cache[6] || (_cache[6] = [
|
|
431
|
-
createTextVNode("\u88C1\u526A")
|
|
432
|
-
])),
|
|
430
|
+
default: withCtx(() => [..._cache[6] || (_cache[6] = [
|
|
431
|
+
createTextVNode("\u88C1\u526A", -1)
|
|
432
|
+
])]),
|
|
433
433
|
_: 1
|
|
434
434
|
}, 8, ["loading"]), [
|
|
435
435
|
[vShow, !croppering.value]
|
|
@@ -449,7 +449,7 @@ const _sfc_main = defineComponent({
|
|
|
449
449
|
default: withCtx(() => [
|
|
450
450
|
createElementVNode("div", {
|
|
451
451
|
class: normalizeClass(["edit", {
|
|
452
|
-
fullHeight:
|
|
452
|
+
fullHeight: __props.aspectRatioProp && !Array.isArray(__props.aspectRatioProp)
|
|
453
453
|
}])
|
|
454
454
|
}, [
|
|
455
455
|
createElementVNode("div", _hoisted_1, [
|
|
@@ -463,7 +463,7 @@ const _sfc_main = defineComponent({
|
|
|
463
463
|
}, null, 40, _hoisted_2)) : createCommentVNode("v-if", true)
|
|
464
464
|
])
|
|
465
465
|
], 2),
|
|
466
|
-
!
|
|
466
|
+
!__props.aspectRatioProp ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
467
467
|
(openBlock(), createElementBlock(Fragment, null, renderList(aspectRatioList, (item, i) => {
|
|
468
468
|
return createElementVNode("div", {
|
|
469
469
|
key: item.lable,
|
|
@@ -472,7 +472,7 @@ const _sfc_main = defineComponent({
|
|
|
472
472
|
}, toDisplayString(item.label), 11, _hoisted_4);
|
|
473
473
|
}), 64))
|
|
474
474
|
])) : createCommentVNode("v-if", true),
|
|
475
|
-
|
|
475
|
+
__props.aspectRatioProp && Array.isArray(__props.aspectRatioProp) && customizedAspectRatioList.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
476
476
|
(openBlock(true), createElementBlock(Fragment, null, renderList(customizedAspectRatioList.value, (item, i) => {
|
|
477
477
|
return openBlock(), createElementBlock("div", {
|
|
478
478
|
key: item.lable,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getFileRealUrl(BASE_API: string, url: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
1
|
+
export declare function getFileRealUrl(BASE_API: string, url: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
@@ -89,7 +89,7 @@ const _sfc_main = defineComponent({
|
|
|
89
89
|
onOk: handleOk
|
|
90
90
|
}, {
|
|
91
91
|
title: withCtx(() => [
|
|
92
|
-
createTextVNode(toDisplayString(
|
|
92
|
+
createTextVNode(toDisplayString(__props.title || "\u5BFC\u5165\u6570\u636E"), 1)
|
|
93
93
|
]),
|
|
94
94
|
default: withCtx(() => {
|
|
95
95
|
var _a, _b;
|
|
@@ -97,14 +97,14 @@ const _sfc_main = defineComponent({
|
|
|
97
97
|
createElementVNode("div", _hoisted_1, [
|
|
98
98
|
_cache[5] || (_cache[5] = createElementVNode("h3", null, "\u4E0B\u8F7D\u5BFC\u5165\u6A21\u7248", -1)),
|
|
99
99
|
createElementVNode("p", _hoisted_2, [
|
|
100
|
-
_cache[2] || (_cache[2] = createTextVNode(" \u4E25\u683C\u6309\u7167\u6A21\u677F\u683C\u5F0F\u53CA\u5185\u5BB9\u51C6\u5907\u5BFC\u5165\u7684\u6570\u636E\u3002 ")),
|
|
100
|
+
_cache[2] || (_cache[2] = createTextVNode(" \u4E25\u683C\u6309\u7167\u6A21\u677F\u683C\u5F0F\u53CA\u5185\u5BB9\u51C6\u5907\u5BFC\u5165\u7684\u6570\u636E\u3002 ", -1)),
|
|
101
101
|
createVNode(unref(Link), {
|
|
102
102
|
target: "_blank",
|
|
103
|
-
href:
|
|
103
|
+
href: __props.importTemplateUrl
|
|
104
104
|
}, {
|
|
105
|
-
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
106
|
-
createTextVNode("\u4E0B\u8F7D\u6A21\u677F")
|
|
107
|
-
])),
|
|
105
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
106
|
+
createTextVNode("\u4E0B\u8F7D\u6A21\u677F", -1)
|
|
107
|
+
])]),
|
|
108
108
|
_: 1
|
|
109
109
|
}, 8, ["href"])
|
|
110
110
|
]),
|
|
@@ -123,9 +123,9 @@ const _sfc_main = defineComponent({
|
|
|
123
123
|
target: "_blank",
|
|
124
124
|
href: importData.value.result_url
|
|
125
125
|
}, {
|
|
126
|
-
default: withCtx(() => _cache[3] || (_cache[3] = [
|
|
127
|
-
createTextVNode(" \u4E0B\u8F7D\u5BFC\u5165\u7ED3\u679C ")
|
|
128
|
-
])),
|
|
126
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
127
|
+
createTextVNode(" \u4E0B\u8F7D\u5BFC\u5165\u7ED3\u679C ", -1)
|
|
128
|
+
])]),
|
|
129
129
|
_: 1
|
|
130
130
|
}, 8, ["href"])
|
|
131
131
|
])) : createCommentVNode("v-if", true),
|
|
@@ -142,7 +142,7 @@ const _sfc_main = defineComponent({
|
|
|
142
142
|
draggable: "",
|
|
143
143
|
"with-credentials": true,
|
|
144
144
|
limit: 1,
|
|
145
|
-
action:
|
|
145
|
+
action: __props.uploadAction,
|
|
146
146
|
accept: ".xls,.xlsx",
|
|
147
147
|
onSuccess: uploadSuccess,
|
|
148
148
|
onChange: uploadChange
|
|
@@ -154,9 +154,9 @@ const _sfc_main = defineComponent({
|
|
|
154
154
|
class: "primary2",
|
|
155
155
|
onClick: importStart
|
|
156
156
|
}, {
|
|
157
|
-
default: withCtx(() => _cache[4] || (_cache[4] = [
|
|
158
|
-
createTextVNode("\u5F00\u59CB\u5BFC\u5165")
|
|
159
|
-
])),
|
|
157
|
+
default: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
158
|
+
createTextVNode("\u5F00\u59CB\u5BFC\u5165", -1)
|
|
159
|
+
])]),
|
|
160
160
|
_: 1
|
|
161
161
|
}, 8, ["loading"])) : createCommentVNode("v-if", true)
|
|
162
162
|
]),
|
package/es/index.css
CHANGED
|
@@ -4529,11 +4529,13 @@
|
|
|
4529
4529
|
}
|
|
4530
4530
|
.resource-list-footer,
|
|
4531
4531
|
.resource-list-header,
|
|
4532
|
+
.resource-list-content .resource-list-content-empty,
|
|
4532
4533
|
.resource-list-content .arco-scrollbar-container {
|
|
4533
4534
|
padding: 0 40px;
|
|
4534
4535
|
}
|
|
4535
4536
|
.resource-list-footer {
|
|
4536
4537
|
display: flex;
|
|
4538
|
+
flex-wrap: wrap;
|
|
4537
4539
|
justify-content: space-between;
|
|
4538
4540
|
padding-bottom: 20px;
|
|
4539
4541
|
}
|
|
@@ -4543,6 +4545,10 @@
|
|
|
4543
4545
|
gap: 10px;
|
|
4544
4546
|
align-items: center;
|
|
4545
4547
|
justify-content: flex-end;
|
|
4548
|
+
margin-top: 10px;
|
|
4549
|
+
}
|
|
4550
|
+
.resource-list-footer .footer-right .list-selected-wrapper {
|
|
4551
|
+
font-size: 12px;
|
|
4546
4552
|
}
|
|
4547
4553
|
.resource-list-content-loading {
|
|
4548
4554
|
display: flex;
|
|
@@ -4554,7 +4560,7 @@
|
|
|
4554
4560
|
.resource-list .list-item-grid {
|
|
4555
4561
|
display: grid;
|
|
4556
4562
|
grid-gap: 20px;
|
|
4557
|
-
grid-template-columns: repeat(
|
|
4563
|
+
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
4558
4564
|
}
|
|
4559
4565
|
.resource-list .list-content {
|
|
4560
4566
|
margin-top: 30px;
|
|
@@ -4597,7 +4603,8 @@
|
|
|
4597
4603
|
}
|
|
4598
4604
|
.resource-list .list-filter-wrapper .list-filter-tags {
|
|
4599
4605
|
display: flex;
|
|
4600
|
-
|
|
4606
|
+
flex-wrap: wrap;
|
|
4607
|
+
gap: 10px;
|
|
4601
4608
|
margin-top: 10px;
|
|
4602
4609
|
}
|
|
4603
4610
|
.resource-list .list-filter-wrapper .list-filter-tags .list-filter-tag {
|
|
@@ -4618,16 +4625,41 @@
|
|
|
4618
4625
|
justify-content: space-between;
|
|
4619
4626
|
}
|
|
4620
4627
|
.resource-list .list-filter-wrapper .list-filter .filter-list {
|
|
4628
|
+
position: relative;
|
|
4629
|
+
/** 给 popup 一个参考 */
|
|
4621
4630
|
display: flex;
|
|
4622
|
-
flex-wrap: wrap;
|
|
4623
|
-
gap: 10px;
|
|
4624
4631
|
}
|
|
4625
4632
|
.resource-list .list-filter-wrapper .list-filter .filter-list .filter-item {
|
|
4626
4633
|
width: 100px;
|
|
4634
|
+
margin-right: 10px;
|
|
4635
|
+
}
|
|
4636
|
+
.resource-list .list-filter-wrapper .list-filter .filter-list .arco-trigger-popup {
|
|
4637
|
+
z-index: 100000 !important;
|
|
4627
4638
|
}
|
|
4628
4639
|
.resource-list .list-filter-wrapper .list-filter .arco-input-prepend {
|
|
4629
4640
|
padding: 0;
|
|
4630
4641
|
}
|
|
4642
|
+
.resource-list .list-filter-wrapper .list-filter .more-btn {
|
|
4643
|
+
position: relative;
|
|
4644
|
+
/** 给 poperjs 一个参考 */
|
|
4645
|
+
}
|
|
4646
|
+
.resource-list .list-filter-wrapper .list-filter .more-btn .filter-pannel {
|
|
4647
|
+
inset: 40px auto auto auto !important;
|
|
4648
|
+
}
|
|
4649
|
+
.resource-list .list-filter-wrapper .filter-extra {
|
|
4650
|
+
display: flex;
|
|
4651
|
+
gap: 10px;
|
|
4652
|
+
}
|
|
4653
|
+
.resource-list .list-filter-wrapper .filter-pannel {
|
|
4654
|
+
z-index: 100000;
|
|
4655
|
+
display: flex;
|
|
4656
|
+
flex-direction: column;
|
|
4657
|
+
gap: 10px;
|
|
4658
|
+
padding: 10px;
|
|
4659
|
+
background-color: #fff;
|
|
4660
|
+
border-radius: 4px;
|
|
4661
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
4662
|
+
}
|
|
4631
4663
|
.resource-list .title {
|
|
4632
4664
|
display: flex;
|
|
4633
4665
|
gap: 8px;
|
|
@@ -4641,6 +4673,10 @@
|
|
|
4641
4673
|
height: 16px;
|
|
4642
4674
|
background-color: #4886ff;
|
|
4643
4675
|
}
|
|
4676
|
+
.resource-select-wrap {
|
|
4677
|
+
width: 100%;
|
|
4678
|
+
height: 100%;
|
|
4679
|
+
}
|
|
4644
4680
|
.resource-select-modal-body {
|
|
4645
4681
|
height: 80vh;
|
|
4646
4682
|
padding: 0;
|
|
@@ -4669,6 +4705,11 @@
|
|
|
4669
4705
|
.resource-select-container .resource-select-header .arco-tabs-content {
|
|
4670
4706
|
display: none !important;
|
|
4671
4707
|
}
|
|
4708
|
+
.resource-select-container .resource-list-content .resource-list-content-empty {
|
|
4709
|
+
box-sizing: border-box;
|
|
4710
|
+
width: 100%;
|
|
4711
|
+
height: 100%;
|
|
4712
|
+
}
|
|
4672
4713
|
.iframe-container {
|
|
4673
4714
|
position: relative;
|
|
4674
4715
|
height: 95vh;
|
|
@@ -4925,6 +4966,10 @@
|
|
|
4925
4966
|
.doc-history-drawer .arco-drawer-footer {
|
|
4926
4967
|
text-align: left;
|
|
4927
4968
|
}
|
|
4969
|
+
.doc-history-modal-wrap {
|
|
4970
|
+
height: 70vh;
|
|
4971
|
+
padding: 0;
|
|
4972
|
+
}
|
|
4928
4973
|
.video-thumb {
|
|
4929
4974
|
display: flex;
|
|
4930
4975
|
flex-direction: column;
|
package/es/index.d.ts
CHANGED
|
@@ -28,3 +28,4 @@ export { default as docPreview } from './docPreview';
|
|
|
28
28
|
export { default as docHistory } from './docHistory';
|
|
29
29
|
export { default as videoThumb } from './videoThumb';
|
|
30
30
|
export { default as importData } from './importData';
|
|
31
|
+
export { default as selectAddTo } from './selectAddTo';
|
package/es/index.js
CHANGED
|
@@ -28,3 +28,4 @@ export { default as docPreview } from "./docPreview/index.js";
|
|
|
28
28
|
export { default as docHistory } from "./docHistory/index.js";
|
|
29
29
|
export { default as videoThumb } from "./videoThumb/index.js";
|
|
30
30
|
export { default as importData } from "./importData/index.js";
|
|
31
|
+
export { default as selectAddTo } from "./selectAddTo/index.js";
|
|
@@ -27,10 +27,10 @@ const _sfc_main = defineComponent({
|
|
|
27
27
|
}
|
|
28
28
|
return (_ctx, _cache) => {
|
|
29
29
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
30
|
-
|
|
30
|
+
__props.filterType === "DOC" ? (openBlock(), createBlock(_sfc_main$1, {
|
|
31
31
|
key: 0,
|
|
32
|
-
"filter-keys":
|
|
33
|
-
"filter-type":
|
|
32
|
+
"filter-keys": __props.docFilterKeys,
|
|
33
|
+
"filter-type": __props.docFilterType,
|
|
34
34
|
onSearch: handleFilterSearch,
|
|
35
35
|
onChange: handleFilterChange
|
|
36
36
|
}, {
|
|
@@ -38,7 +38,7 @@ const _sfc_main = defineComponent({
|
|
|
38
38
|
renderSlot(_ctx.$slots, "right")
|
|
39
39
|
]),
|
|
40
40
|
_: 3
|
|
41
|
-
}, 8, ["filter-keys", "filter-type"])) :
|
|
41
|
+
}, 8, ["filter-keys", "filter-type"])) : __props.filterType === "MEDIA" ? (openBlock(), createBlock(MedFilter, { key: 1 })) : __props.filterType === "MP_ACOUNT" ? (openBlock(), createBlock(_sfc_main$2, { key: 2 })) : __props.filterType === "MP_CONTENT" ? (openBlock(), createBlock(_sfc_main$3, { key: 3 })) : createCommentVNode("v-if", true)
|
|
42
42
|
]);
|
|
43
43
|
};
|
|
44
44
|
}
|
|
@@ -182,7 +182,7 @@ const _sfc_main = defineComponent({
|
|
|
182
182
|
createVNode(unref(IconRefresh))
|
|
183
183
|
]),
|
|
184
184
|
default: withCtx(() => [
|
|
185
|
-
_cache[3] || (_cache[3] = createTextVNode(" \u91CD\u7F6E "))
|
|
185
|
+
_cache[3] || (_cache[3] = createTextVNode(" \u91CD\u7F6E ", -1))
|
|
186
186
|
]),
|
|
187
187
|
_: 1
|
|
188
188
|
})) : createCommentVNode("v-if", true)
|
|
@@ -146,7 +146,7 @@ const _sfc_main = defineComponent({
|
|
|
146
146
|
}, {
|
|
147
147
|
default: withCtx(() => [
|
|
148
148
|
createElementVNode("span", _hoisted_4, [
|
|
149
|
-
_cache[0] || (_cache[0] = createTextVNode(" \u66F4\u591A\u7B5B\u9009 ")),
|
|
149
|
+
_cache[0] || (_cache[0] = createTextVNode(" \u66F4\u591A\u7B5B\u9009 ", -1)),
|
|
150
150
|
createVNode(unref(IconCaretDown))
|
|
151
151
|
])
|
|
152
152
|
]),
|
|
@@ -91,7 +91,7 @@ const _sfc_main = defineComponent({
|
|
|
91
91
|
withDirectives(createVNode(unref(Button), { type: "secondary" }, {
|
|
92
92
|
default: withCtx(() => [
|
|
93
93
|
createElementVNode("span", _hoisted_5, [
|
|
94
|
-
createTextVNode(toDisplayString(
|
|
94
|
+
createTextVNode(toDisplayString(__props.label) + " ", 1),
|
|
95
95
|
createVNode(unref(IconCaretDown))
|
|
96
96
|
])
|
|
97
97
|
]),
|
|
@@ -28,7 +28,7 @@ const _sfc_main = defineComponent({
|
|
|
28
28
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
29
29
|
createVNode(unref(ImagePreview), {
|
|
30
30
|
visible: imageVisible.value,
|
|
31
|
-
src:
|
|
31
|
+
src: __props.url,
|
|
32
32
|
onClose: closePreviewer
|
|
33
33
|
}, null, 8, ["visible", "src"]),
|
|
34
34
|
withDirectives(createElementVNode("div", _hoisted_1, [
|
|
@@ -39,22 +39,22 @@ const _sfc_main = defineComponent({
|
|
|
39
39
|
createVNode(unref(IconClose))
|
|
40
40
|
]),
|
|
41
41
|
createElementVNode("div", _hoisted_2, [
|
|
42
|
-
|
|
42
|
+
__props.type === "video" ? (openBlock(), createElementBlock("video", {
|
|
43
43
|
key: 0,
|
|
44
44
|
class: "video",
|
|
45
45
|
controls: "",
|
|
46
|
-
src:
|
|
47
|
-
}, null, 8, _hoisted_3)) :
|
|
46
|
+
src: __props.url
|
|
47
|
+
}, null, 8, _hoisted_3)) : __props.type === "audio" ? (openBlock(), createElementBlock("audio", {
|
|
48
48
|
key: 1,
|
|
49
49
|
class: "audio",
|
|
50
50
|
controls: "",
|
|
51
|
-
src:
|
|
52
|
-
}, null, 8, _hoisted_4)) : (openBlock(), createElementBlock("div", _hoisted_5, _cache[0] || (_cache[0] = [
|
|
51
|
+
src: __props.url
|
|
52
|
+
}, null, 8, _hoisted_4)) : (openBlock(), createElementBlock("div", _hoisted_5, [..._cache[0] || (_cache[0] = [
|
|
53
53
|
createElementVNode("span", { class: "text" }, "\u6682\u4E0D\u652F\u6301\u8BE5\u7C7B\u578B\u6587\u4EF6\u9884\u89C8", -1)
|
|
54
|
-
])))
|
|
54
|
+
])]))
|
|
55
55
|
])
|
|
56
56
|
], 512), [
|
|
57
|
-
[vShow,
|
|
57
|
+
[vShow, __props.type !== "image"]
|
|
58
58
|
])
|
|
59
59
|
], 64);
|
|
60
60
|
};
|
|
@@ -97,9 +97,9 @@ const _sfc_main = defineComponent({
|
|
|
97
97
|
createVNode(unref(Tabs), null, {
|
|
98
98
|
default: withCtx(() => [
|
|
99
99
|
withDirectives((openBlock(), createBlock(unref(TabPane), { key: "1" }, {
|
|
100
|
-
title: withCtx(() => _cache[2] || (_cache[2] = [
|
|
101
|
-
createTextVNode("\u6D88\u606F")
|
|
102
|
-
])),
|
|
100
|
+
title: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
101
|
+
createTextVNode("\u6D88\u606F", -1)
|
|
102
|
+
])]),
|
|
103
103
|
default: withCtx(() => [
|
|
104
104
|
unreadMessages.value.length === 0 ? (openBlock(), createBlock(_sfc_main$1, {
|
|
105
105
|
key: 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
interface Params {
|
|
2
2
|
[key: string]: any;
|
|
3
3
|
}
|
|
4
|
-
export declare function getNoticeList(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
|
-
export declare function setAllMsgRead(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
4
|
+
export declare function getNoticeList(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
5
|
+
export declare function setAllMsgRead(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
6
6
|
export {};
|
|
@@ -3,13 +3,13 @@ interface Params {
|
|
|
3
3
|
app_id?: number;
|
|
4
4
|
[key: string]: any;
|
|
5
5
|
}
|
|
6
|
-
export declare function getChildCategorylists(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
|
-
export declare function getCategorylists(BASE_API: string, repository_id: string, channel_id: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
|
+
export declare function getChildCategorylists(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
7
|
+
export declare function getCategorylists(BASE_API: string, repository_id: string, channel_id: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
8
8
|
export declare function getCategorylistsGroups(BASE_API: string, params: Params, data?: {
|
|
9
9
|
repeatReport: boolean;
|
|
10
10
|
}): Promise<any>;
|
|
11
11
|
export declare function getMlists(BASE_API: string, params: Params, data?: {
|
|
12
12
|
repeatReport: boolean;
|
|
13
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
14
|
-
export declare function submitTo(BASE_API: string, data: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
13
|
+
}): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
14
|
+
export declare function submitTo(BASE_API: string, data: Params): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
15
15
|
export {};
|
|
@@ -78,9 +78,9 @@ const _sfc_main = defineComponent({
|
|
|
78
78
|
return [
|
|
79
79
|
createElementVNode("div", _hoisted_1, [
|
|
80
80
|
createCommentVNode(" \u6587\u4EF6\u5939 "),
|
|
81
|
-
|
|
81
|
+
__props.folderList ? withDirectives((openBlock(), createElementBlock("div", _hoisted_2, [
|
|
82
82
|
createCommentVNode(" \u6587\u4EF6\u5939\u6570\u91CF<10 "),
|
|
83
|
-
!isFold.value ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(
|
|
83
|
+
!isFold.value ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(__props.folderList, (item, index) => {
|
|
84
84
|
return openBlock(), createElementBlock("div", {
|
|
85
85
|
key: index,
|
|
86
86
|
class: "item folder-item",
|
|
@@ -108,7 +108,7 @@ const _sfc_main = defineComponent({
|
|
|
108
108
|
], 8, _hoisted_3);
|
|
109
109
|
}), 128)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
110
110
|
createCommentVNode(" \u6587\u4EF6\u5939\u6570\u91CF>10 "),
|
|
111
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList((_a =
|
|
111
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList((_a = __props.folderList) == null ? void 0 : _a.slice(0, 9), (item, index) => {
|
|
112
112
|
return openBlock(), createElementBlock("div", {
|
|
113
113
|
key: index,
|
|
114
114
|
class: "item folder-item",
|
|
@@ -133,7 +133,7 @@ const _sfc_main = defineComponent({
|
|
|
133
133
|
], 8, _hoisted_5);
|
|
134
134
|
}), 128))
|
|
135
135
|
], 64)),
|
|
136
|
-
((_b =
|
|
136
|
+
((_b = __props.folderList) == null ? void 0 : _b.length) > 10 ? (openBlock(), createElementBlock("div", {
|
|
137
137
|
key: 2,
|
|
138
138
|
class: "folder-more-button",
|
|
139
139
|
onClick: _cache[0] || (_cache[0] = ($event) => isFold.value = !isFold.value)
|
|
@@ -144,11 +144,11 @@ const _sfc_main = defineComponent({
|
|
|
144
144
|
])
|
|
145
145
|
])) : createCommentVNode("v-if", true)
|
|
146
146
|
], 512)), [
|
|
147
|
-
[vShow, ((_c =
|
|
147
|
+
[vShow, ((_c = __props.folderList) == null ? void 0 : _c.length) !== 0 && __props.showFolder]
|
|
148
148
|
]) : createCommentVNode("v-if", true),
|
|
149
149
|
createCommentVNode(" \u6587\u4EF6 "),
|
|
150
150
|
createElementVNode("div", _hoisted_9, [
|
|
151
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
151
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.fileList, (item, index) => {
|
|
152
152
|
return openBlock(), createElementBlock("div", {
|
|
153
153
|
key: index,
|
|
154
154
|
class: "item"
|
|
@@ -163,7 +163,7 @@ const _sfc_main = defineComponent({
|
|
|
163
163
|
}, [
|
|
164
164
|
createVNode(_sfc_main$1, {
|
|
165
165
|
"item-data": item,
|
|
166
|
-
preview:
|
|
166
|
+
preview: __props.preview,
|
|
167
167
|
onConfirm: _clickFileItem
|
|
168
168
|
}, null, 8, ["item-data", "preview"])
|
|
169
169
|
]),
|
|
@@ -199,34 +199,34 @@ const _sfc_main = defineComponent({
|
|
|
199
199
|
effect: "dark",
|
|
200
200
|
placement: "bottom"
|
|
201
201
|
}, {
|
|
202
|
-
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
202
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
203
203
|
createElementVNode("div", { class: "transcoding-in-progress grid-mode" }, [
|
|
204
204
|
createElementVNode("div", { class: "transcoding-progress" }, "\u8F6C\u7801\u4E2D\u2026")
|
|
205
205
|
], -1)
|
|
206
|
-
])),
|
|
206
|
+
])]),
|
|
207
207
|
_: 1
|
|
208
208
|
})) : createCommentVNode("v-if", true)
|
|
209
209
|
], 10, _hoisted_10)
|
|
210
210
|
]);
|
|
211
211
|
}), 128))
|
|
212
212
|
]),
|
|
213
|
-
|
|
214
|
-
!
|
|
213
|
+
__props.fileListCount ? (openBlock(), createElementBlock("div", _hoisted_12, [
|
|
214
|
+
!__props.isOver ? (openBlock(), createBlock(unref(Button), {
|
|
215
215
|
key: 0,
|
|
216
216
|
class: "loadmore_tips",
|
|
217
217
|
size: "small",
|
|
218
218
|
type: "text",
|
|
219
219
|
onClick: _loadFileMore
|
|
220
220
|
}, {
|
|
221
|
-
default: withCtx(() => _cache[2] || (_cache[2] = [
|
|
222
|
-
createTextVNode("\u52A0\u8F7D\u66F4\u591A\u2026 ")
|
|
223
|
-
])),
|
|
221
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
222
|
+
createTextVNode("\u52A0\u8F7D\u66F4\u591A\u2026 ", -1)
|
|
223
|
+
])]),
|
|
224
224
|
_: 1
|
|
225
225
|
})) : (openBlock(), createElementBlock("div", _hoisted_13, "\u6CA1\u6709\u66F4\u591A\u4E86\u2026"))
|
|
226
226
|
])) : createCommentVNode("v-if", true),
|
|
227
|
-
!((_d =
|
|
227
|
+
!((_d = __props.fileList) == null ? void 0 : _d.length) && !((_e = __props.folderList) == null ? void 0 : _e.length) ? (openBlock(), createElementBlock("div", _hoisted_14, [..._cache[3] || (_cache[3] = [
|
|
228
228
|
createElementVNode("p", null, "\u6682\u65E0\u7D20\u6750", -1)
|
|
229
|
-
]))) : createCommentVNode("v-if", true)
|
|
229
|
+
])])) : createCommentVNode("v-if", true)
|
|
230
230
|
])
|
|
231
231
|
];
|
|
232
232
|
}),
|
|
@@ -102,24 +102,24 @@ const _sfc_main = defineComponent({
|
|
|
102
102
|
return (_ctx, _cache) => {
|
|
103
103
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
104
104
|
createElementVNode("div", _hoisted_1, [
|
|
105
|
-
|
|
105
|
+
__props.itemData.thumb ? (openBlock(), createElementBlock("div", {
|
|
106
106
|
key: 0,
|
|
107
107
|
class: "pic",
|
|
108
|
-
style: normalizeStyle({ "background-image": "url(" +
|
|
108
|
+
style: normalizeStyle({ "background-image": "url(" + __props.itemData.thumb + ")" })
|
|
109
109
|
}, [
|
|
110
110
|
getRate.value ? (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(getRate.value), 1)) : createCommentVNode("v-if", true),
|
|
111
|
-
|
|
111
|
+
__props.itemData.source === "ai" ? (openBlock(), createElementBlock("div", _hoisted_3, "AI\u751F\u6210")) : createCommentVNode("v-if", true)
|
|
112
112
|
], 4)) : (openBlock(), createElementBlock("div", {
|
|
113
113
|
key: 1,
|
|
114
|
-
class: normalizeClass(["pic", `${
|
|
114
|
+
class: normalizeClass(["pic", `${__props.itemData.catalog} ${__props.itemData.series}`]),
|
|
115
115
|
style: normalizeStyle(picStyle.value)
|
|
116
116
|
}, [
|
|
117
117
|
getRate.value ? (openBlock(), createElementBlock("div", _hoisted_4, toDisplayString(getRate.value), 1)) : createCommentVNode("v-if", true),
|
|
118
|
-
|
|
118
|
+
__props.itemData.source === "ai" ? (openBlock(), createElementBlock("div", _hoisted_5, "AI\u751F\u6210")) : createCommentVNode("v-if", true)
|
|
119
119
|
], 6)),
|
|
120
120
|
createVNode(Transition, { name: "el-fade-in" }, {
|
|
121
121
|
default: withCtx(() => [
|
|
122
|
-
|
|
122
|
+
__props.preview ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
123
123
|
createElementVNode("span", {
|
|
124
124
|
class: "half",
|
|
125
125
|
onClick: withModifiers(openPreview, ["stop"])
|