@cmstops/pro-compo 3.9.2-alpha.1 → 3.9.2-alpha.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 +6 -0
- package/dist/index.min.css +1 -1
- package/dist/index.min.js.map +1 -1
- package/es/baseFilter/component.js +71 -14
- package/es/contentDetailList/component.js +24 -0
- package/es/contentDetailList/components/Content/index.js +2 -1
- package/es/contentDetailList/components/Doc/index.js +6 -0
- package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.js +4 -2
- package/es/contentModal/component.js +16 -8
- package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +2 -1
- package/es/contentModal/components/storeBox/index.js +4 -2
- package/es/dataTags/component.js +10 -5
- package/es/docHistory/component.js +2 -1
- package/es/docPreview/component.js +10 -5
- package/es/editMetaInfo/components/metaInfoForm.js +4 -2
- package/es/hooks/useUpload.js +43 -4
- package/es/imageCrop/component.js +4 -2
- package/es/importData/component.js +6 -3
- package/es/index.css +6 -0
- package/es/mediaFilter/components/DocFilter.js +2 -1
- package/es/resourceGridList/component.js +4 -2
- package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +2 -1
- package/es/resourceModal/components/MediaSelection/MainContent/index.js +4 -2
- package/es/selectAddTo/style/css.js +1 -0
- package/es/selectAddTo/style/index.css +3 -0
- package/es/selectAddTo/style/index.js +1 -0
- package/es/selectAddTo/style/index.less +3 -0
- package/es/selectResourceModal/component.js +10 -5
- package/es/selectResourceModal/components/List/ListLocal/Upload.js +2 -1
- package/es/selectResourceModal/components/List/ListLocal/index.js +8 -3
- package/es/selectResourceModal/components/List/ListNormal/Filter.js +63 -30
- package/es/selectResourceModal/components/List/ListNormal/index.js +5 -4
- package/es/selectResourceModal/components/List/ListSystem/Filter.js +2 -1
- package/es/selectResourceModal/hooks/useResponsiveFilter.js +1 -1
- package/es/selectResourceModal/style/index.css +6 -0
- package/es/selectResourceModal/style/index.less +9 -0
- package/es/selectResourceModal/style/list.less +1 -0
- package/es/userAvater/component.js +2 -1
- package/es/userDirector/component.js +2 -1
- package/es/utils/index.js +6 -6
- package/lib/baseFilter/component.js +69 -12
- package/lib/contentDetailList/component.js +24 -0
- package/lib/contentDetailList/components/Content/index.js +2 -1
- package/lib/contentDetailList/components/Doc/index.js +6 -0
- package/lib/contentDetailList/components/ShowQRCode/QrcodeView/index.js +4 -2
- package/lib/contentModal/component.js +16 -8
- package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +2 -1
- package/lib/contentModal/components/storeBox/index.js +4 -2
- package/lib/dataTags/component.js +10 -5
- package/lib/docHistory/component.js +2 -1
- package/lib/docPreview/component.js +10 -5
- package/lib/editMetaInfo/components/metaInfoForm.js +4 -2
- package/lib/hooks/useUpload.js +43 -3
- package/lib/imageCrop/component.js +4 -2
- package/lib/importData/component.js +6 -3
- package/lib/index.css +6 -0
- package/lib/mediaFilter/components/DocFilter.js +2 -1
- package/lib/resourceGridList/component.js +4 -2
- package/lib/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +2 -1
- package/lib/resourceModal/components/MediaSelection/MainContent/index.js +4 -2
- 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/selectResourceModal/component.js +10 -5
- package/lib/selectResourceModal/components/List/ListLocal/Upload.js +2 -1
- package/lib/selectResourceModal/components/List/ListLocal/index.js +6 -1
- package/lib/selectResourceModal/components/List/ListNormal/Filter.js +62 -29
- package/lib/selectResourceModal/components/List/ListNormal/index.js +5 -4
- package/lib/selectResourceModal/components/List/ListSystem/Filter.js +2 -1
- package/lib/selectResourceModal/hooks/useResponsiveFilter.js +1 -1
- package/lib/selectResourceModal/style/index.css +6 -0
- package/lib/selectResourceModal/style/index.less +9 -0
- package/lib/selectResourceModal/style/list.less +1 -0
- package/lib/userAvater/component.js +2 -1
- package/lib/userDirector/component.js +2 -1
- package/lib/utils/index.js +6 -6
- package/package.json +1 -1
- package/es/appCenter/component.d.ts +0 -0
- package/es/appCenter/index.d.ts +0 -2
- package/es/appCenter/script/api.d.ts +0 -11
- package/es/appCenter/script/apps.d.ts +0 -14
- package/es/appCenter/script/permissionMap.d.ts +0 -6
- package/es/appCenter/script/routeMap.d.ts +0 -4
- package/es/appCenter/style/index.d.ts +0 -1
- package/es/baseFilter/component.d.ts +0 -0
- package/es/baseFilter/components/FilterGroup.d.ts +0 -0
- package/es/baseFilter/components/filterItem.d.ts +0 -0
- package/es/baseFilter/index.d.ts +0 -2
- package/es/baseFilter/style/index.d.ts +0 -1
- package/es/baseFilter/useCalcWidth.d.ts +0 -16
- package/es/colorPalette/component.d.ts +0 -0
- package/es/colorPalette/components/colorPicker.d.ts +0 -0
- package/es/colorPalette/index.d.ts +0 -2
- package/es/colorPalette/style/index.d.ts +0 -1
- package/es/components.d.ts +0 -5
- package/es/config.d.ts +0 -4
- package/es/contentDetailList/__demo__/matrix/platform.d.ts +0 -36
- package/es/contentDetailList/component.d.ts +0 -0
- package/es/contentDetailList/components/Content/CompoItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/ContentListItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/DocItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/DocMpItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/GroupPieceItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/KongoNavItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/LiveItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/MaccountItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/courseItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/funhdItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/index.d.ts +0 -0
- package/es/contentDetailList/components/CustomWrp/CustomItem.d.ts +0 -0
- package/es/contentDetailList/components/CustomWrp/index.d.ts +0 -0
- package/es/contentDetailList/components/Doc/index.d.ts +0 -0
- package/es/contentDetailList/components/Records/MatrixItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Records/index.d.ts +0 -0
- package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.d.ts +0 -0
- package/es/contentDetailList/components/ShowQRCode/index.d.ts +0 -0
- package/es/contentDetailList/index.d.ts +0 -2
- package/es/contentDetailList/script/api.d.ts +0 -6
- package/es/contentDetailList/style/index.d.ts +0 -1
- package/es/contentModal/component.d.ts +0 -0
- package/es/contentModal/components/CompoList/CompoFilter/index.d.ts +0 -0
- package/es/contentModal/components/CompoList/index.d.ts +0 -0
- package/es/contentModal/components/ContentList/MediaFilter/index.d.ts +0 -0
- package/es/contentModal/components/ContentList/index.d.ts +0 -0
- package/es/contentModal/components/Dejin/MediaFilter/index.d.ts +0 -0
- package/es/contentModal/components/Dejin/index.d.ts +0 -0
- package/es/contentModal/components/EqxiuList/MediaFilter/index.d.ts +0 -0
- package/es/contentModal/components/EqxiuList/index.d.ts +0 -0
- package/es/contentModal/components/LiveList/MediaFilter/index.d.ts +0 -0
- package/es/contentModal/components/LiveList/index.d.ts +0 -0
- package/es/contentModal/components/MpAccountList/MpAccountFilter/index.d.ts +0 -0
- package/es/contentModal/components/MpAccountList/index.d.ts +0 -0
- package/es/contentModal/components/MpContentList/MediaFilter/index.d.ts +0 -0
- package/es/contentModal/components/MpContentList/index.d.ts +0 -0
- package/es/contentModal/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
- package/es/contentModal/components/ViewAllColumn/columnTree/index.d.ts +0 -0
- package/es/contentModal/components/ViewAllColumn/index.d.ts +0 -0
- package/es/contentModal/components/storeBox/index.d.ts +0 -0
- package/es/contentModal/index.d.ts +0 -2
- package/es/contentModal/script/api.d.ts +0 -18
- package/es/contentModal/style/index.d.ts +0 -1
- package/es/dataTags/component.d.ts +0 -0
- package/es/dataTags/index.d.ts +0 -2
- package/es/dataTags/style/index.d.ts +0 -1
- package/es/docHistory/component.d.ts +0 -0
- package/es/docHistory/components/DocDiffPanel/index.d.ts +0 -0
- package/es/docHistory/components/DocHistoryList/index.d.ts +0 -0
- package/es/docHistory/index.d.ts +0 -2
- package/es/docHistory/scripts/diff.d.ts +0 -1
- package/es/docHistory/scripts/useDocHistory.d.ts +0 -10
- package/es/docHistory/style/index.d.ts +0 -1
- package/es/docPreview/component.d.ts +0 -0
- package/es/docPreview/components/PreviewIframe.d.ts +0 -0
- package/es/docPreview/index.d.ts +0 -2
- package/es/docPreview/scripts/api.d.ts +0 -1
- package/es/docPreview/scripts/hook.d.ts +0 -33
- package/es/docPreview/style/index.d.ts +0 -1
- package/es/editMetaInfo/component.d.ts +0 -0
- package/es/editMetaInfo/components/metaInfoForm.d.ts +0 -0
- package/es/editMetaInfo/index.d.ts +0 -2
- package/es/editMetaInfo/script/api.d.ts +0 -6
- package/es/editMetaInfo/script/restaurants.d.ts +0 -4
- package/es/editMetaInfo/style/index.d.ts +0 -1
- package/es/emptyData/component.d.ts +0 -0
- package/es/emptyData/index.d.ts +0 -2
- package/es/emptyData/style/index.d.ts +0 -1
- package/es/emptyData/svg/add.d.ts +0 -0
- package/es/hooks/assets.d.ts +0 -1
- package/es/hooks/batch.d.ts +0 -8
- package/es/hooks/dialogVisible.d.ts +0 -8
- package/es/hooks/source.d.ts +0 -9
- package/es/hooks/toggle.d.ts +0 -6
- package/es/hooks/useAttachement.d.ts +0 -53
- package/es/hooks/useLocalStorage.d.ts +0 -10
- package/es/hooks/useMediaContext.d.ts +0 -12
- package/es/hooks/usePopper.d.ts +0 -8
- package/es/hooks/useSelection.d.ts +0 -30
- package/es/hooks/useUpload.d.ts +0 -30
- package/es/hooks/user.d.ts +0 -9
- package/es/imageCrop/component.d.ts +0 -0
- package/es/imageCrop/index.d.ts +0 -2
- package/es/imageCrop/script/api.d.ts +0 -1
- package/es/imageCrop/style/index.d.ts +0 -1
- package/es/importData/component.d.ts +0 -0
- package/es/importData/index.d.ts +0 -2
- package/es/importData/style/index.d.ts +0 -1
- package/es/index.d.ts +0 -30
- package/es/mediaFilter/component.d.ts +0 -0
- package/es/mediaFilter/components/DocFilter.d.ts +0 -0
- package/es/mediaFilter/components/FilterGroup.d.ts +0 -0
- package/es/mediaFilter/components/FilterItem.d.ts +0 -0
- package/es/mediaFilter/components/MpAccountFilter.d.ts +0 -0
- package/es/mediaFilter/components/MpContentFilter.d.ts +0 -0
- package/es/mediaFilter/index.d.ts +0 -3
- package/es/mediaFilter/script/optionsGetter.d.ts +0 -26
- package/es/mediaFilter/script/types.d.ts +0 -16
- package/es/mediaFilter/style/index.d.ts +0 -1
- package/es/mediaView/component.d.ts +0 -0
- package/es/mediaView/index.d.ts +0 -2
- package/es/mediaView/style/index.d.ts +0 -1
- package/es/messageBox/component.d.ts +0 -0
- package/es/messageBox/index.d.ts +0 -2
- package/es/messageBox/list.d.ts +0 -0
- package/es/messageBox/script/api.d.ts +0 -6
- package/es/messageBox/style/index.d.ts +0 -1
- package/es/previousVersion/component.d.ts +0 -0
- package/es/previousVersion/index.d.ts +0 -2
- package/es/previousVersion/script/api.d.ts +0 -15
- package/es/previousVersion/script/tool.d.ts +0 -6
- package/es/previousVersion/style/index.d.ts +0 -1
- package/es/resourceGridList/component.d.ts +0 -0
- package/es/resourceGridList/components/FileTypeThumb/index.d.ts +0 -0
- package/es/resourceGridList/index.d.ts +0 -2
- package/es/resourceGridList/style/index.d.ts +0 -1
- package/es/resourceModal/component.d.ts +0 -0
- package/es/resourceModal/components/MediaPreviewer/index.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/MainContent/index.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/index.d.ts +0 -0
- package/es/resourceModal/index.d.ts +0 -2
- package/es/resourceModal/script/api.d.ts +0 -25
- package/es/resourceModal/script/mediaSelection.d.ts +0 -14
- package/es/resourceModal/style/index.d.ts +0 -1
- package/es/selectAvatarList/component.d.ts +0 -0
- package/es/selectAvatarList/index.d.ts +0 -2
- package/es/selectAvatarList/style/index.d.ts +0 -1
- package/es/selectGategory/component.d.ts +0 -0
- package/es/selectGategory/components/ColumnSelection/index.d.ts +0 -0
- package/es/selectGategory/index.d.ts +0 -2
- package/es/selectGategory/script/api.d.ts +0 -6
- package/es/selectGategory/style/index.d.ts +0 -1
- package/es/selectResourceModal/__demo__/module/DivWrapper.d.ts +0 -268
- package/es/selectResourceModal/__demo__/module/basic.d.ts +0 -299
- package/es/selectResourceModal/component.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListAi/index.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListCardWrapper.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListLocal/Upload.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListLocal/index.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListNormal/Filter.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListNormal/index.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListSystem/Filter.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListSystem/SubList.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListSystem/index.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListVideo/index.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListWraper.d.ts +0 -0
- package/es/selectResourceModal/components/ListSelected/index.d.ts +0 -0
- package/es/selectResourceModal/components/ListTabs/index.d.ts +0 -0
- package/es/selectResourceModal/hooks/useResponsiveFilter.d.ts +0 -21
- package/es/selectResourceModal/index.d.ts +0 -2
- package/es/selectResourceModal/scripts/selectionApis.d.ts +0 -2
- package/es/selectResourceModal/scripts/useCompoLf.d.ts +0 -27
- package/es/selectResourceModal/scripts/useResourceSelect.d.ts +0 -7
- package/es/selectResourceModal/scripts/useTabFilter.d.ts +0 -22
- package/es/selectResourceModal/style/index.d.ts +0 -1
- package/es/selectThumb/component.d.ts +0 -0
- package/es/selectThumb/components/card.d.ts +0 -0
- package/es/selectThumb/components/colorPalette.d.ts +0 -0
- package/es/selectThumb/components/colorPicker.d.ts +0 -0
- package/es/selectThumb/index.d.ts +0 -2
- package/es/selectThumb/style/index.d.ts +0 -1
- package/es/thumbCard/component.d.ts +0 -0
- package/es/thumbCard/components/ThumbUploading/index.d.ts +0 -0
- package/es/thumbCard/index.d.ts +0 -2
- package/es/thumbCard/style/index.d.ts +0 -1
- package/es/typeIcons/component.d.ts +0 -0
- package/es/typeIcons/index.d.ts +0 -2
- package/es/typeIcons/style/index.d.ts +0 -1
- package/es/uploadBefore/component.d.ts +0 -0
- package/es/uploadBefore/components/UploadBefore.d.ts +0 -0
- package/es/uploadBefore/components/UploadForClick.d.ts +0 -0
- package/es/uploadBefore/index.d.ts +0 -2
- package/es/uploadBefore/script/api.d.ts +0 -16
- package/es/uploadBefore/script/fileTypeAdapter.d.ts +0 -39
- package/es/uploadBefore/script/fileUpload.d.ts +0 -7
- package/es/uploadBefore/script/uploadHooks.d.ts +0 -96
- package/es/uploadBefore/style/index.d.ts +0 -1
- package/es/uploadBefore/utils/dragUploadEvent.d.ts +0 -0
- package/es/uploadStep/component.d.ts +0 -0
- package/es/uploadStep/index.d.ts +0 -2
- package/es/uploadStep/script/fileTypeAdapter.d.ts +0 -20
- package/es/uploadStep/style/index.d.ts +0 -1
- package/es/userAvater/component.d.ts +0 -0
- package/es/userAvater/index.d.ts +0 -2
- package/es/userAvater/script/api.d.ts +0 -8
- package/es/userAvater/style/index.d.ts +0 -1
- package/es/userDirector/component.d.ts +0 -0
- package/es/userDirector/components/userTree.d.ts +0 -0
- package/es/userDirector/index.d.ts +0 -2
- package/es/userDirector/script/api.d.ts +0 -10
- package/es/userDirector/style/index.d.ts +0 -1
- package/es/utils/auth.d.ts +0 -5
- package/es/utils/date.d.ts +0 -3
- package/es/utils/doc.d.ts +0 -76
- package/es/utils/filter.d.ts +0 -21
- package/es/utils/index.d.ts +0 -17
- package/es/utils/request.d.ts +0 -9
- package/es/utils/resource.d.ts +0 -4
- package/es/utils/transcodeMedia.d.ts +0 -13
- package/es/utils/tusUpload.d.ts +0 -16
- package/es/utils/typeMap.d.ts +0 -185
- package/es/utils/uploadCatalog.d.ts +0 -1
- package/es/videoThumb/component.d.ts +0 -0
- package/es/videoThumb/index.d.ts +0 -2
- package/es/videoThumb/scripts/api.d.ts +0 -9
- package/es/videoThumb/scripts/useVideoThumbs.d.ts +0 -12
- package/es/videoThumb/style/index.d.ts +0 -1
|
@@ -23,6 +23,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
23
23
|
var _a;
|
|
24
24
|
return (_a = userInfo == null ? void 0 : userInfo.value) == null ? void 0 : _a.repository_id;
|
|
25
25
|
});
|
|
26
|
+
const { template, initTemplate } = useUpload.useUploadConfig();
|
|
26
27
|
const { list, uploadFile, reTranscode, transcodingFile, removeRecord } = useUpload["default"]();
|
|
27
28
|
function handleChange(file) {
|
|
28
29
|
if (!baseAPI || !repoId.value)
|
|
@@ -32,7 +33,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
32
33
|
file.file,
|
|
33
34
|
0,
|
|
34
35
|
repoId.value,
|
|
35
|
-
(media) => transcodingFile(baseAPI, media, repoId.value)
|
|
36
|
+
(media) => transcodingFile(baseAPI, media, repoId.value),
|
|
37
|
+
{ template: template.value }
|
|
36
38
|
);
|
|
37
39
|
}
|
|
38
40
|
async function handleOptions(e) {
|
|
@@ -55,6 +57,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
55
57
|
removeRecord(e.item);
|
|
56
58
|
}
|
|
57
59
|
}
|
|
60
|
+
vue.onMounted(() => {
|
|
61
|
+
initTemplate(baseAPI);
|
|
62
|
+
});
|
|
58
63
|
return (_ctx, _cache) => {
|
|
59
64
|
return vue.openBlock(), vue.createBlock(ListWraper, null, {
|
|
60
65
|
"footer-extra": vue.withCtx(() => [
|
|
@@ -46,10 +46,12 @@ const _hoisted_14 = ["onClick"];
|
|
|
46
46
|
const _sfc_main = vue.defineComponent({
|
|
47
47
|
__name: "Filter",
|
|
48
48
|
props: {
|
|
49
|
+
smallScreen: { type: Boolean },
|
|
49
50
|
disableUploadBy: { type: Boolean }
|
|
50
51
|
},
|
|
51
52
|
emits: ["upload", "change"],
|
|
52
53
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
54
|
+
var _a, _b, _c;
|
|
53
55
|
const props = __props;
|
|
54
56
|
const emits = __emit;
|
|
55
57
|
const userInfo = vue.inject("userInfo");
|
|
@@ -63,8 +65,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
63
65
|
hiddenElementList,
|
|
64
66
|
visible,
|
|
65
67
|
show,
|
|
66
|
-
hide
|
|
67
|
-
refreshLayout
|
|
68
|
+
hide
|
|
68
69
|
} = useResponsiveFilter.useResponsiveFilter(filterItemsRef);
|
|
69
70
|
const { options, loading, load, loadMore, handleSearch } = useSelection({
|
|
70
71
|
labelStr: "alias",
|
|
@@ -99,7 +100,17 @@ const _sfc_main = vue.defineComponent({
|
|
|
99
100
|
sf: "",
|
|
100
101
|
directory_id: void 0
|
|
101
102
|
};
|
|
102
|
-
|
|
103
|
+
if ((_a = filterOptions == null ? void 0 : filterOptions.value) == null ? void 0 : _a.mediaTypeStrict) {
|
|
104
|
+
originFilter.catalog = filterOptions.value.mediaType.split(",");
|
|
105
|
+
}
|
|
106
|
+
const filter = vue.ref(
|
|
107
|
+
JSON.parse(
|
|
108
|
+
JSON.stringify({
|
|
109
|
+
...originFilter,
|
|
110
|
+
catalog: ((_c = (_b = filterOptions == null ? void 0 : filterOptions.value) == null ? void 0 : _b.mediaType) == null ? void 0 : _c.split(",")) || []
|
|
111
|
+
})
|
|
112
|
+
)
|
|
113
|
+
);
|
|
103
114
|
const handleReset = () => {
|
|
104
115
|
filter.value = JSON.parse(JSON.stringify(originFilter));
|
|
105
116
|
};
|
|
@@ -178,27 +189,18 @@ const _sfc_main = vue.defineComponent({
|
|
|
178
189
|
}
|
|
179
190
|
}
|
|
180
191
|
emits("change", result);
|
|
181
|
-
refreshLayout();
|
|
182
192
|
},
|
|
183
193
|
{ deep: true, immediate: true }
|
|
184
194
|
);
|
|
185
195
|
vue.onMounted(() => {
|
|
186
|
-
var _a;
|
|
187
196
|
load();
|
|
188
|
-
if ((_a = filterOptions == null ? void 0 : filterOptions.value) == null ? void 0 : _a.mediaType) {
|
|
189
|
-
const initialCatalog = filterOptions.value.mediaType.split(",");
|
|
190
|
-
filter.value.catalog = initialCatalog;
|
|
191
|
-
if (filterOptions.value.mediaTypeStrict) {
|
|
192
|
-
originFilter.catalog = initialCatalog;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
197
|
});
|
|
196
198
|
__expose({
|
|
197
199
|
filter,
|
|
198
200
|
handleReset
|
|
199
201
|
});
|
|
200
202
|
return (_ctx, _cache) => {
|
|
201
|
-
var
|
|
203
|
+
var _a2;
|
|
202
204
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
203
205
|
vue.createCommentVNode(" Use filterItemsRef's parentElement as the container for boundary checks "),
|
|
204
206
|
vue.createElementVNode("div", _hoisted_2, [
|
|
@@ -221,7 +223,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
221
223
|
}, {
|
|
222
224
|
default: vue.withCtx(() => [
|
|
223
225
|
vue.createElementVNode("span", _hoisted_4, [
|
|
224
|
-
_cache[
|
|
226
|
+
_cache[11] || (_cache[11] = vue.createTextVNode(" \u66F4\u591A ")),
|
|
225
227
|
vue.createVNode(vue.unref(icon.IconCaretDown))
|
|
226
228
|
])
|
|
227
229
|
]),
|
|
@@ -254,16 +256,18 @@ const _sfc_main = vue.defineComponent({
|
|
|
254
256
|
}, {
|
|
255
257
|
content: vue.withCtx(() => [
|
|
256
258
|
vue.createVNode(vue.unref(webVue.Doption), { value: 0 }, {
|
|
257
|
-
default: vue.withCtx(() => _cache[
|
|
259
|
+
default: vue.withCtx(() => _cache[12] || (_cache[12] = [
|
|
258
260
|
vue.createTextVNode("\u7CBE\u51C6\u641C")
|
|
259
261
|
])),
|
|
260
|
-
_: 1
|
|
262
|
+
_: 1,
|
|
263
|
+
__: [12]
|
|
261
264
|
}),
|
|
262
265
|
vue.createVNode(vue.unref(webVue.Doption), { value: 1 }, {
|
|
263
|
-
default: vue.withCtx(() => _cache[
|
|
266
|
+
default: vue.withCtx(() => _cache[13] || (_cache[13] = [
|
|
264
267
|
vue.createTextVNode("\u6A21\u7CCA\u641C")
|
|
265
268
|
])),
|
|
266
|
-
_: 1
|
|
269
|
+
_: 1,
|
|
270
|
+
__: [13]
|
|
267
271
|
})
|
|
268
272
|
]),
|
|
269
273
|
default: vue.withCtx(() => [
|
|
@@ -292,15 +296,22 @@ const _sfc_main = vue.defineComponent({
|
|
|
292
296
|
title: "alias",
|
|
293
297
|
key: "id"
|
|
294
298
|
},
|
|
295
|
-
"allow-clear": ""
|
|
296
|
-
|
|
299
|
+
"allow-clear": "",
|
|
300
|
+
"allow-search": "",
|
|
301
|
+
"filter-tree-node": (searchValue, nodeData) => {
|
|
302
|
+
console.log(nodeData);
|
|
303
|
+
if (!nodeData.alias)
|
|
304
|
+
return false;
|
|
305
|
+
return nodeData.alias.toLowerCase().indexOf(searchValue.toLowerCase()) > -1;
|
|
306
|
+
}
|
|
307
|
+
}, null, 8, ["modelValue", "data", "filter-tree-node"])
|
|
297
308
|
]),
|
|
298
309
|
vue.createCommentVNode(" \u7D20\u6750\u7C7B\u578B "),
|
|
299
310
|
vue.createElementVNode("div", _hoisted_7, [
|
|
300
311
|
vue.createVNode(vue.unref(webVue.Select), {
|
|
301
312
|
modelValue: filter.value.catalog,
|
|
302
313
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => filter.value.catalog = $event),
|
|
303
|
-
disabled: (
|
|
314
|
+
disabled: (_a2 = vue.unref(filterOptions)) == null ? void 0 : _a2.mediaTypeStrict,
|
|
304
315
|
"popup-container": "#resource-filter-pannel",
|
|
305
316
|
"allow-clear": "",
|
|
306
317
|
placeholder: "\u7C7B\u578B",
|
|
@@ -378,30 +389,52 @@ const _sfc_main = vue.defineComponent({
|
|
|
378
389
|
vue.createElementVNode("div", _hoisted_11, [
|
|
379
390
|
vue.createCommentVNode(" \u91CD\u7F6E\u6309\u94AE - Wrap in filter-item to be managed by the hook "),
|
|
380
391
|
vue.withDirectives(vue.createElementVNode("div", _hoisted_12, [
|
|
381
|
-
vue.
|
|
392
|
+
_ctx.smallScreen ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Button), {
|
|
393
|
+
key: 0,
|
|
394
|
+
type: "text",
|
|
395
|
+
onClick: handleReset
|
|
396
|
+
}, {
|
|
397
|
+
icon: vue.withCtx(() => [
|
|
398
|
+
vue.createVNode(vue.unref(icon.IconRefresh))
|
|
399
|
+
]),
|
|
400
|
+
_: 1
|
|
401
|
+
})) : (vue.openBlock(), vue.createBlock(vue.unref(webVue.Button), {
|
|
402
|
+
key: 1,
|
|
382
403
|
type: "text",
|
|
383
404
|
onClick: handleReset
|
|
384
405
|
}, {
|
|
385
|
-
default: vue.withCtx(() => _cache[
|
|
406
|
+
default: vue.withCtx(() => _cache[14] || (_cache[14] = [
|
|
386
407
|
vue.createTextVNode(" \u91CD\u7F6E ")
|
|
387
408
|
])),
|
|
388
|
-
_: 1
|
|
389
|
-
|
|
409
|
+
_: 1,
|
|
410
|
+
__: [14]
|
|
411
|
+
}))
|
|
390
412
|
], 512), [
|
|
391
413
|
[vue.vShow, !isEmpty.value]
|
|
392
414
|
]),
|
|
393
|
-
vue.
|
|
415
|
+
_ctx.smallScreen ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Button), {
|
|
416
|
+
key: 0,
|
|
394
417
|
type: "primary",
|
|
395
418
|
onClick: _cache[9] || (_cache[9] = ($event) => emits("upload"))
|
|
419
|
+
}, {
|
|
420
|
+
icon: vue.withCtx(() => [
|
|
421
|
+
vue.createVNode(vue.unref(icon.IconUpload))
|
|
422
|
+
]),
|
|
423
|
+
_: 1
|
|
424
|
+
})) : (vue.openBlock(), vue.createBlock(vue.unref(webVue.Button), {
|
|
425
|
+
key: 1,
|
|
426
|
+
type: "primary",
|
|
427
|
+
onClick: _cache[10] || (_cache[10] = ($event) => emits("upload"))
|
|
396
428
|
}, {
|
|
397
429
|
icon: vue.withCtx(() => [
|
|
398
430
|
vue.createVNode(vue.unref(icon.IconUpload))
|
|
399
431
|
]),
|
|
400
432
|
default: vue.withCtx(() => [
|
|
401
|
-
_cache[
|
|
433
|
+
_cache[15] || (_cache[15] = vue.createTextVNode(" \u4E0A\u4F20 "))
|
|
402
434
|
]),
|
|
403
|
-
_: 1
|
|
404
|
-
|
|
435
|
+
_: 1,
|
|
436
|
+
__: [15]
|
|
437
|
+
}))
|
|
405
438
|
])
|
|
406
439
|
]),
|
|
407
440
|
searchInput.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_13, [
|
|
@@ -28,14 +28,14 @@ const _sfc_main = vue.defineComponent({
|
|
|
28
28
|
} = useAttachement["default"]({ key: props.activeKey, BASE_API });
|
|
29
29
|
vue.watch(() => props.activeKey, changeKey);
|
|
30
30
|
const listWrapper = vue.ref(null);
|
|
31
|
-
const
|
|
31
|
+
const smallScreen = vue.ref(false);
|
|
32
32
|
vue.watch(
|
|
33
33
|
() => {
|
|
34
34
|
var _a;
|
|
35
35
|
return (_a = listWrapper.value) == null ? void 0 : _a.offsetWidth;
|
|
36
36
|
},
|
|
37
37
|
(val) => {
|
|
38
|
-
|
|
38
|
+
smallScreen.value = !!(val && val < 600);
|
|
39
39
|
},
|
|
40
40
|
{ immediate: true }
|
|
41
41
|
);
|
|
@@ -52,9 +52,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
52
52
|
]),
|
|
53
53
|
header: vue.withCtx(() => [
|
|
54
54
|
vue.createVNode(Filter, {
|
|
55
|
+
smallScreen: smallScreen.value,
|
|
55
56
|
onChange: vue.unref(changeFilter),
|
|
56
57
|
onUpload: _cache[0] || (_cache[0] = ($event) => emits("change-tab", "local"))
|
|
57
|
-
}, null, 8, ["onChange"])
|
|
58
|
+
}, null, 8, ["smallScreen", "onChange"])
|
|
58
59
|
]),
|
|
59
60
|
footer: vue.withCtx(() => [
|
|
60
61
|
vue.createVNode(vue.unref(webVue.Pagination), {
|
|
@@ -63,7 +64,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
63
64
|
total: vue.unref(total),
|
|
64
65
|
"page-size": vue.unref(limit),
|
|
65
66
|
"show-total": "",
|
|
66
|
-
"show-page-size":
|
|
67
|
+
"show-page-size": !smallScreen.value,
|
|
67
68
|
"base-size": 3,
|
|
68
69
|
"buffer-size": 1,
|
|
69
70
|
onChange: _cache[2] || (_cache[2] = (e) => vue.unref(changePage)((e - 1) * vue.unref(limit))),
|
|
@@ -69,7 +69,7 @@ function useResponsiveFilter(filterItemsRef) {
|
|
|
69
69
|
if (!item || !item.classList || !item.classList.contains("filter-item"))
|
|
70
70
|
continue;
|
|
71
71
|
const itemRect = getRect(item);
|
|
72
|
-
if (itemRect.right > containerRight -
|
|
72
|
+
if (itemRect.right > containerRight - 400) {
|
|
73
73
|
hideElement(item);
|
|
74
74
|
} else {
|
|
75
75
|
currentRightmostBoundary = Math.max(
|
|
@@ -172,6 +172,7 @@
|
|
|
172
172
|
}
|
|
173
173
|
.resource-list-footer,
|
|
174
174
|
.resource-list-header,
|
|
175
|
+
.resource-list-content .resource-list-content-empty,
|
|
175
176
|
.resource-list-content .arco-scrollbar-container {
|
|
176
177
|
padding: 0 40px;
|
|
177
178
|
}
|
|
@@ -347,3 +348,8 @@
|
|
|
347
348
|
.resource-select-container .resource-select-header .arco-tabs-content {
|
|
348
349
|
display: none !important;
|
|
349
350
|
}
|
|
351
|
+
.resource-select-container .resource-list-content .resource-list-content-empty {
|
|
352
|
+
box-sizing: border-box;
|
|
353
|
+
width: 100%;
|
|
354
|
+
height: 100%;
|
|
355
|
+
}
|
|
@@ -229,7 +229,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
229
229
|
default: vue.withCtx(() => _cache[0] || (_cache[0] = [
|
|
230
230
|
vue.createTextVNode("\u5168\u90E8\u6E05\u9664")
|
|
231
231
|
])),
|
|
232
|
-
_: 1
|
|
232
|
+
_: 1,
|
|
233
|
+
__: [0]
|
|
233
234
|
})
|
|
234
235
|
]),
|
|
235
236
|
vue.createVNode(vue.unref(webVue.Scrollbar), {
|
package/lib/utils/index.js
CHANGED
|
@@ -144,13 +144,13 @@ async function copyContent(content) {
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
function mediaTime(v) {
|
|
147
|
-
const h = Math.floor(v /
|
|
148
|
-
const m = Math.floor(
|
|
149
|
-
const s = Math.floor(v
|
|
147
|
+
const h = Math.floor(v / 3600);
|
|
148
|
+
const m = Math.floor(v % 3600 / 60);
|
|
149
|
+
const s = Math.floor(v % 60);
|
|
150
150
|
let ret = "";
|
|
151
|
-
ret += `${h < 10 ? `0${h}` : h
|
|
152
|
-
ret += `${m < 10 ? `0${m}` : m
|
|
153
|
-
ret += s < 10 ? `0${s}` : s
|
|
151
|
+
ret += `${h < 10 ? `0${h}` : h}:`;
|
|
152
|
+
ret += `${m < 10 ? `0${m}` : m}:`;
|
|
153
|
+
ret += s < 10 ? `0${s}` : s;
|
|
154
154
|
return ret;
|
|
155
155
|
}
|
|
156
156
|
exports.copyContent = copyContent;
|
package/package.json
CHANGED
|
File without changes
|
package/es/appCenter/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
interface Params {
|
|
2
|
-
repo_id?: string;
|
|
3
|
-
app_id?: number;
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
}
|
|
6
|
-
export declare function getUserRepoActs(BASE_API: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
|
-
export declare function getPubApps(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
8
|
-
export declare function getResentApp(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
9
|
-
export declare function setResentApp(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
10
|
-
export declare function getBtnSlot(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
11
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/es/baseFilter/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated 改为其他方式实现
|
|
4
|
-
* @param filterItemsRef
|
|
5
|
-
* @param dpPannelRef
|
|
6
|
-
* @param moreBtnRef
|
|
7
|
-
* @returns
|
|
8
|
-
*/
|
|
9
|
-
export default function useCalcWidth(filterItemsRef: Ref<HTMLElement | undefined>, dpPannelRef: Ref<HTMLElement | undefined>, moreBtnRef: Ref<HTMLElement | undefined>): {
|
|
10
|
-
pannelArray: Ref<string, string>;
|
|
11
|
-
popperShowFlag: Ref<boolean, boolean>;
|
|
12
|
-
showPopper: () => void;
|
|
13
|
-
initDocWidthListener: () => void;
|
|
14
|
-
initPopper: () => void;
|
|
15
|
-
checkOverflow: () => void;
|
|
16
|
-
};
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
package/es/components.d.ts
DELETED
package/es/config.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
declare const platform: ({
|
|
2
|
-
id: number;
|
|
3
|
-
key: string;
|
|
4
|
-
name: string;
|
|
5
|
-
indexUrl: string;
|
|
6
|
-
isDataAsync: boolean;
|
|
7
|
-
type: string[];
|
|
8
|
-
pfIcon?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
id: number;
|
|
11
|
-
key: string;
|
|
12
|
-
name: string;
|
|
13
|
-
indexUrl: string;
|
|
14
|
-
pfIcon: string;
|
|
15
|
-
isDataAsync: boolean;
|
|
16
|
-
type: string[];
|
|
17
|
-
})[];
|
|
18
|
-
export declare function getPlatformInfoById(id: number): any;
|
|
19
|
-
export declare const accounts: {
|
|
20
|
-
id: number;
|
|
21
|
-
createdAt: string;
|
|
22
|
-
updatedAt: string;
|
|
23
|
-
deletedAt: null;
|
|
24
|
-
thirdId: string;
|
|
25
|
-
authorId: string;
|
|
26
|
-
platformAccountId: string;
|
|
27
|
-
avatar: string;
|
|
28
|
-
name: string;
|
|
29
|
-
platformId: number;
|
|
30
|
-
cookie: string;
|
|
31
|
-
token: string;
|
|
32
|
-
lastRequestAt: number;
|
|
33
|
-
lastSyncAt: number;
|
|
34
|
-
state: number;
|
|
35
|
-
}[];
|
|
36
|
-
export default platform;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
interface Params {
|
|
2
|
-
[key: string]: any;
|
|
3
|
-
}
|
|
4
|
-
export declare function generateDocPreviewLink(BASE_API: string, query?: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
|
-
export declare function getDocDetailsNew(BASE_API: string, query?: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|