@cmstops/pro-compo 3.9.2-alpha.2 → 3.9.2-alpha.21
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 +4 -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 +43 -13
- package/es/docHistory/scripts/diff.js +4 -3
- package/es/docHistory/style/index.css +4 -0
- package/es/docHistory/style/index.less +5 -0
- 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 +4 -0
- package/es/index.js +1 -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/component.js +126 -0
- package/es/selectAddTo/component.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
- package/es/selectAddTo/components/ViewAllColumn/MediaFilter/index.js +169 -0
- package/es/selectAddTo/components/ViewAllColumn/columnTree/index.js +151 -0
- package/es/selectAddTo/components/ViewAllColumn/index.js +209 -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.js +78 -0
- package/es/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +193 -0
- package/es/selectAddTo/index.js +16 -0
- package/es/selectAddTo/script/api.js +36 -0
- package/es/selectAddTo/script/useSelectAddToState.js +106 -0
- 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 +45 -22
- package/es/selectResourceModal/components/List/ListNormal/index.js +0 -1
- package/es/selectResourceModal/components/List/ListSystem/Filter.js +2 -1
- package/es/selectResourceModal/hooks/useResponsiveFilter.js +1 -1
- package/es/style.css +57 -0
- package/es/typeIcons/component.js +1 -1
- 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 +41 -11
- 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 +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 +4 -0
- package/lib/index.js +2 -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/component.js +127 -0
- package/lib/selectAddTo/component.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
- package/lib/selectAddTo/components/ViewAllColumn/MediaFilter/index.js +170 -0
- package/lib/selectAddTo/components/ViewAllColumn/columnTree/index.js +152 -0
- package/lib/selectAddTo/components/ViewAllColumn/index.js +210 -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 +80 -0
- package/lib/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +195 -0
- package/lib/selectAddTo/index.js +18 -0
- package/lib/selectAddTo/script/api.js +42 -0
- package/lib/selectAddTo/script/useSelectAddToState.js +108 -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/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 +44 -21
- package/lib/selectResourceModal/components/List/ListNormal/index.js +0 -1
- package/lib/selectResourceModal/components/List/ListSystem/Filter.js +2 -1
- package/lib/selectResourceModal/hooks/useResponsiveFilter.js +1 -1
- package/lib/typeIcons/component.js +1 -1
- 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
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
var vue = require("vue");
|
|
4
|
+
var webVue = require("@arco-design/web-vue");
|
|
5
|
+
const useTableColumns = (props, selectedData, isItemChecked) => {
|
|
6
|
+
const columns = vue.ref([
|
|
7
|
+
{
|
|
8
|
+
title: "\u52FE",
|
|
9
|
+
dataIndex: "select",
|
|
10
|
+
slotName: "select",
|
|
11
|
+
width: 40,
|
|
12
|
+
titleSlotName: "selectTitle",
|
|
13
|
+
render: ({ record }) => {
|
|
14
|
+
if (props.typeKey === "series:special_v3") {
|
|
15
|
+
if (record.isLeaf) {
|
|
16
|
+
return vue.h(webVue.Checkbox, {
|
|
17
|
+
modelValue: isItemChecked.value(selectedData.value, record),
|
|
18
|
+
class: "icon"
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return vue.h(webVue.Checkbox, {
|
|
24
|
+
modelValue: isItemChecked.value(selectedData.value, record),
|
|
25
|
+
class: "icon"
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
title: "\u4E13\u9898/\u680F\u76EE\u540D\u79F0",
|
|
31
|
+
dataIndex: "title",
|
|
32
|
+
slotName: "title",
|
|
33
|
+
width: 428
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
title: "\u7F16\u8F91",
|
|
37
|
+
dataIndex: "duty_editor",
|
|
38
|
+
slotName: "duty_editor",
|
|
39
|
+
width: 100
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
title: "\u53D1\u5E03\u65F6\u95F4",
|
|
43
|
+
dataIndex: "pub_time",
|
|
44
|
+
slotName: "pub_time",
|
|
45
|
+
width: 150
|
|
46
|
+
}
|
|
47
|
+
]);
|
|
48
|
+
const politicalColumns = vue.ref([
|
|
49
|
+
{
|
|
50
|
+
title: "\u52FE",
|
|
51
|
+
dataIndex: "select",
|
|
52
|
+
slotName: "select",
|
|
53
|
+
width: 40,
|
|
54
|
+
titleSlotName: "selectTitle"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
title: "\u653F\u60C5\u4EBA\u7269\u59D3\u540D",
|
|
58
|
+
dataIndex: "name",
|
|
59
|
+
slotName: "name",
|
|
60
|
+
width: 428
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
title: "\u804C\u4F4D",
|
|
64
|
+
dataIndex: "position",
|
|
65
|
+
slotName: "position",
|
|
66
|
+
width: 100
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
title: "\u5730\u533A",
|
|
70
|
+
dataIndex: "city_alias",
|
|
71
|
+
slotName: "city_alias",
|
|
72
|
+
width: 150
|
|
73
|
+
}
|
|
74
|
+
]);
|
|
75
|
+
return {
|
|
76
|
+
columns,
|
|
77
|
+
politicalColumns
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
exports.useTableColumns = useTableColumns;
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
var vue = require("vue");
|
|
4
|
+
var webVue = require("@arco-design/web-vue");
|
|
5
|
+
var config = require("../../../../config.js");
|
|
6
|
+
var api = require("../../../script/api.js");
|
|
7
|
+
var batch = require("../../../../hooks/batch.js");
|
|
8
|
+
const useViewAllColumnState = (props, emit) => {
|
|
9
|
+
const _maxSelect = props.maxSelect || 100;
|
|
10
|
+
const selectedData = vue.ref([]);
|
|
11
|
+
const mediaFileData = vue.ref([]);
|
|
12
|
+
const filter = vue.ref(null);
|
|
13
|
+
const dataLoading = vue.ref(false);
|
|
14
|
+
const group_id = vue.ref(0);
|
|
15
|
+
const page = vue.ref({
|
|
16
|
+
index: 1,
|
|
17
|
+
size: 30,
|
|
18
|
+
total: 0
|
|
19
|
+
});
|
|
20
|
+
const tempSelectedData = vue.computed(() => props.defaultSelectedData || []);
|
|
21
|
+
vue.watch(
|
|
22
|
+
() => tempSelectedData.value,
|
|
23
|
+
(val) => {
|
|
24
|
+
selectedData.value = val;
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
const importantBanner = vue.computed(() => {
|
|
28
|
+
if (!props.banner || props.banner === "all")
|
|
29
|
+
return false;
|
|
30
|
+
return !!props.banner;
|
|
31
|
+
});
|
|
32
|
+
const { isItemChecked, tableCellMouseEnter, tableCellMouseLeave } = batch();
|
|
33
|
+
const selectTableCell = (record) => {
|
|
34
|
+
selectData(record);
|
|
35
|
+
};
|
|
36
|
+
const selectTableAll = (checked) => {
|
|
37
|
+
if (checked) {
|
|
38
|
+
selectedData.value = [];
|
|
39
|
+
mediaFileData.value.forEach((item) => selectData(item));
|
|
40
|
+
} else {
|
|
41
|
+
selectedData.value = [];
|
|
42
|
+
}
|
|
43
|
+
emitChange();
|
|
44
|
+
};
|
|
45
|
+
const selectData = (record) => {
|
|
46
|
+
if (importantBanner.value) {
|
|
47
|
+
const { cover } = record;
|
|
48
|
+
if (!(cover == null ? void 0 : cover.banner)) {
|
|
49
|
+
return webVue.Message.warning({ content: "\u8BE5\u5185\u5BB9\u4E0D\u5177\u5907\u72EC\u7ACB\u8F6E\u64AD\u56FE" });
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
addDataToSelectedList(record);
|
|
53
|
+
return true;
|
|
54
|
+
};
|
|
55
|
+
const addDataToSelectedList = async (record) => {
|
|
56
|
+
const index = selectedData.value.findIndex((v) => v.id === record.id);
|
|
57
|
+
if (selectedData.value.length < _maxSelect) {
|
|
58
|
+
if (index === -1) {
|
|
59
|
+
selectedData.value.push(record);
|
|
60
|
+
} else {
|
|
61
|
+
selectedData.value.splice(index, 1);
|
|
62
|
+
}
|
|
63
|
+
emitChange();
|
|
64
|
+
} else {
|
|
65
|
+
if (index === -1) {
|
|
66
|
+
selectedData.value.splice(selectedData.value.length - 1, 1);
|
|
67
|
+
selectedData.value.push(record);
|
|
68
|
+
} else {
|
|
69
|
+
selectedData.value.splice(index, 1);
|
|
70
|
+
}
|
|
71
|
+
emitChange();
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
const emitChange = () => {
|
|
75
|
+
emit("change", selectedData.value);
|
|
76
|
+
};
|
|
77
|
+
const search = (_filter) => {
|
|
78
|
+
var _a;
|
|
79
|
+
_filter = { ..._filter };
|
|
80
|
+
const where = [];
|
|
81
|
+
_filter.precise_kw && where.push(`precise_kw:${_filter.precise_kw}`);
|
|
82
|
+
_filter.keywords && where.push(`kw:${_filter.keywords}`);
|
|
83
|
+
_filter.type && where.push(`series:${_filter.type}`);
|
|
84
|
+
_filter.state && where.push(`state:${_filter.state}`);
|
|
85
|
+
_filter.cover_type && where.push(`cover_type:${_filter.cover_type}`);
|
|
86
|
+
_filter.banner && where.push(`banner:${_filter.banner}`);
|
|
87
|
+
if (((_a = _filter.publish_date) == null ? void 0 : _a.length) === 2) {
|
|
88
|
+
where.push(`publish_from:${_filter.publish_date[0] / 1e3}`);
|
|
89
|
+
where.push(`publish_to:${_filter.publish_date[1] / 1e3}`);
|
|
90
|
+
}
|
|
91
|
+
_filter.where = where;
|
|
92
|
+
filter.value = _filter;
|
|
93
|
+
page.value.index = 1;
|
|
94
|
+
loadData();
|
|
95
|
+
};
|
|
96
|
+
const pageChangeHandle = (index) => {
|
|
97
|
+
page.value.index = index;
|
|
98
|
+
loadData();
|
|
99
|
+
};
|
|
100
|
+
vue.watch(
|
|
101
|
+
() => group_id.value,
|
|
102
|
+
() => {
|
|
103
|
+
page.value.index = 1;
|
|
104
|
+
loadData();
|
|
105
|
+
}
|
|
106
|
+
);
|
|
107
|
+
const loadData = async () => {
|
|
108
|
+
var _a, _b;
|
|
109
|
+
const params = {
|
|
110
|
+
limit: page.value.size,
|
|
111
|
+
offset: page.value.size * (page.value.index - 1),
|
|
112
|
+
where: ["state:15|19"]
|
|
113
|
+
};
|
|
114
|
+
params.where.push(props.typeKey);
|
|
115
|
+
if (filter.value) {
|
|
116
|
+
const _filter = filter.value;
|
|
117
|
+
params.order = _filter.order;
|
|
118
|
+
params.sort = _filter.sort;
|
|
119
|
+
if (_filter.where) {
|
|
120
|
+
params.where = [...params.where, ..._filter.where];
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
params.where = params.where.join(",");
|
|
124
|
+
dataLoading.value = true;
|
|
125
|
+
try {
|
|
126
|
+
let response;
|
|
127
|
+
if (props.typeKey && props.typeKey !== "ZQ") {
|
|
128
|
+
response = await api.getCategoryMediaNew(config.DEFAULT_BASE_API, params);
|
|
129
|
+
} else {
|
|
130
|
+
params.keyword = ((_a = filter.value) == null ? void 0 : _a.precise_kw) || ((_b = filter.value) == null ? void 0 : _b.keywords) || "";
|
|
131
|
+
params.state = 2;
|
|
132
|
+
response = await api.getPoliticals(config.DEFAULT_BASE_API, params);
|
|
133
|
+
}
|
|
134
|
+
const { code, message } = response;
|
|
135
|
+
if (code === 0) {
|
|
136
|
+
mediaFileData.value = (message.data || message.datas).map((v) => ({
|
|
137
|
+
...v,
|
|
138
|
+
catalog: "doc",
|
|
139
|
+
target_id: v.id,
|
|
140
|
+
target_type: 3,
|
|
141
|
+
pub_time: v.pub_time || v.created_at,
|
|
142
|
+
update_time: v.updated_at,
|
|
143
|
+
pub_user_alias: v.author_alias,
|
|
144
|
+
key: v.id,
|
|
145
|
+
isLeaf: props.typeKey !== "series:special_v3"
|
|
146
|
+
}));
|
|
147
|
+
page.value.total = message.total || message.count;
|
|
148
|
+
}
|
|
149
|
+
} catch (error) {
|
|
150
|
+
console.error("Failed to load data:", error);
|
|
151
|
+
} finally {
|
|
152
|
+
dataLoading.value = false;
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
const loadMore = async (record, done) => {
|
|
156
|
+
try {
|
|
157
|
+
const res = await api.getMlists(config.DEFAULT_BASE_API, {
|
|
158
|
+
rid: props.rid,
|
|
159
|
+
gid: record.special_id
|
|
160
|
+
});
|
|
161
|
+
setTimeout(() => {
|
|
162
|
+
done(
|
|
163
|
+
res.message.map((item) => ({
|
|
164
|
+
...item,
|
|
165
|
+
isLeaf: true,
|
|
166
|
+
key: item.id,
|
|
167
|
+
parentName: record.title,
|
|
168
|
+
parentId: record.id
|
|
169
|
+
}))
|
|
170
|
+
);
|
|
171
|
+
}, 2e3);
|
|
172
|
+
} catch (error) {
|
|
173
|
+
console.error("Failed to load more data:", error);
|
|
174
|
+
done([]);
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
return {
|
|
178
|
+
selectedData,
|
|
179
|
+
mediaFileData,
|
|
180
|
+
filter,
|
|
181
|
+
dataLoading,
|
|
182
|
+
group_id,
|
|
183
|
+
page,
|
|
184
|
+
isItemChecked,
|
|
185
|
+
tableCellMouseEnter,
|
|
186
|
+
tableCellMouseLeave,
|
|
187
|
+
selectTableCell,
|
|
188
|
+
selectTableAll,
|
|
189
|
+
search,
|
|
190
|
+
pageChangeHandle,
|
|
191
|
+
loadData,
|
|
192
|
+
loadMore
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
exports.useViewAllColumnState = useViewAllColumnState;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
var component = require("./component.js");
|
|
4
|
+
var index = require("./components/ViewAllColumn/index.js");
|
|
5
|
+
var index$1 = require("./components/ViewAllColumn/MediaFilter/index.js");
|
|
6
|
+
var index$2 = require("./components/ViewAllColumn/columnTree/index.js");
|
|
7
|
+
const selectAddTo = Object.assign(component, {
|
|
8
|
+
install: (app) => {
|
|
9
|
+
app.component("SelectAddTo", component);
|
|
10
|
+
app.component("ViewAllColumn", index);
|
|
11
|
+
app.component("MediaFilter", index$1);
|
|
12
|
+
app.component("ColumnTree", index$2);
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
exports.ViewAllColumn = index;
|
|
16
|
+
exports.MediaFilter = index$1;
|
|
17
|
+
exports.ColumnTree = index$2;
|
|
18
|
+
exports["default"] = selectAddTo;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
var request = require("../../utils/request.js");
|
|
4
|
+
function getCategoryPath(BASE_API, params) {
|
|
5
|
+
return request(BASE_API, {
|
|
6
|
+
url: `/poplar/v2/repo/${params == null ? void 0 : params.repo}/category/${params == null ? void 0 : params.category}/path`,
|
|
7
|
+
method: "get"
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
function getCategoryMediaNew(BASE_API, params) {
|
|
11
|
+
return request(BASE_API, {
|
|
12
|
+
url: `/poplar/v3/s/documents`,
|
|
13
|
+
method: "get",
|
|
14
|
+
params
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function getPoliticals(BASE_API, params) {
|
|
18
|
+
return request(BASE_API, {
|
|
19
|
+
url: "/poplar/v2/politics/list",
|
|
20
|
+
method: "get",
|
|
21
|
+
params
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function getMlists(BASE_API, params) {
|
|
25
|
+
return request(BASE_API, {
|
|
26
|
+
url: `/poplar/v2/mlists`,
|
|
27
|
+
method: "get",
|
|
28
|
+
params
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function getConfigurationNew(BASE_API, params) {
|
|
32
|
+
return request(BASE_API, {
|
|
33
|
+
url: "/poplar/v2/configuration",
|
|
34
|
+
method: "get",
|
|
35
|
+
params
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
exports.getCategoryMediaNew = getCategoryMediaNew;
|
|
39
|
+
exports.getCategoryPath = getCategoryPath;
|
|
40
|
+
exports.getConfigurationNew = getConfigurationNew;
|
|
41
|
+
exports.getMlists = getMlists;
|
|
42
|
+
exports.getPoliticals = getPoliticals;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
var vue = require("vue");
|
|
4
|
+
var api = require("./api.js");
|
|
5
|
+
var config = require("../../config.js");
|
|
6
|
+
var user = require("../../hooks/user.js");
|
|
7
|
+
const useSelectAddToState = (props, emit) => {
|
|
8
|
+
const BASE_API = props.BASE_API || config.DEFAULT_BASE_API;
|
|
9
|
+
const visible = vue.computed({
|
|
10
|
+
get() {
|
|
11
|
+
return props.visible;
|
|
12
|
+
},
|
|
13
|
+
set(value) {
|
|
14
|
+
setVisible(value);
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
const selectedData = vue.ref([]);
|
|
18
|
+
const configData = vue.ref({});
|
|
19
|
+
const { userInfo, getUserInfoHandle } = user["default"](BASE_API);
|
|
20
|
+
const title = vue.computed(() => {
|
|
21
|
+
const titleMap = {
|
|
22
|
+
"series:video_album": "\u6DFB\u52A0\u81F3\u89C6\u9891\u5408\u96C6",
|
|
23
|
+
"series:special_v3": "\u6DFB\u52A0\u81F3\u4E13\u9898",
|
|
24
|
+
"series:audio_album": "\u6DFB\u52A0\u81F3\u97F3\u9891\u5408\u96C6",
|
|
25
|
+
"series:article_album": "\u6DFB\u52A0\u81F3\u653F\u60C5\u4EBA\u7269\u76F8\u5173\u62A5\u9053"
|
|
26
|
+
};
|
|
27
|
+
return titleMap[props.typeKey || ""] || "";
|
|
28
|
+
});
|
|
29
|
+
const hasSelected = vue.computed(() => selectedData.value.length > 0);
|
|
30
|
+
const typeDataController = vue.computed(() => {
|
|
31
|
+
if (!props.typeData)
|
|
32
|
+
return {};
|
|
33
|
+
try {
|
|
34
|
+
return JSON.parse(JSON.stringify(props.typeData));
|
|
35
|
+
} catch (e) {
|
|
36
|
+
console.warn("Failed to parse typeData:", e);
|
|
37
|
+
return {};
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
const setVisible = (bool) => {
|
|
41
|
+
emit("update:visible", bool);
|
|
42
|
+
};
|
|
43
|
+
const selectedDataChangeHandle = (data) => {
|
|
44
|
+
selectedData.value = data;
|
|
45
|
+
};
|
|
46
|
+
const handleOk = () => {
|
|
47
|
+
setVisible(false);
|
|
48
|
+
};
|
|
49
|
+
const handleCancel = () => {
|
|
50
|
+
setVisible(false);
|
|
51
|
+
};
|
|
52
|
+
const comfirm = () => {
|
|
53
|
+
emit("comfirm", JSON.parse(JSON.stringify(selectedData.value)));
|
|
54
|
+
};
|
|
55
|
+
const HandleOpen = () => {
|
|
56
|
+
selectedData.value = props.defaultSelectedData || [];
|
|
57
|
+
};
|
|
58
|
+
const HandleClose = () => {
|
|
59
|
+
selectedData.value = [];
|
|
60
|
+
};
|
|
61
|
+
const tabsChange = () => {
|
|
62
|
+
selectedData.value = [];
|
|
63
|
+
};
|
|
64
|
+
const loadConfig = async () => {
|
|
65
|
+
var _a;
|
|
66
|
+
try {
|
|
67
|
+
const res = await api.getConfigurationNew(BASE_API, {
|
|
68
|
+
module: "third_party_services"
|
|
69
|
+
});
|
|
70
|
+
if (res.code === 0 && ((_a = res.message) == null ? void 0 : _a.length)) {
|
|
71
|
+
res.message.forEach((item) => {
|
|
72
|
+
configData.value[item.key] = JSON.parse(item.value);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
} catch (error) {
|
|
76
|
+
console.error("Failed to load configuration:", error);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
const checkServiceEnable = (key) => {
|
|
80
|
+
const data = configData.value[key];
|
|
81
|
+
if (!data)
|
|
82
|
+
return false;
|
|
83
|
+
if (!data.enable && typeof data.enable !== "undefined")
|
|
84
|
+
return false;
|
|
85
|
+
return true;
|
|
86
|
+
};
|
|
87
|
+
return {
|
|
88
|
+
visible,
|
|
89
|
+
title,
|
|
90
|
+
selectedData,
|
|
91
|
+
hasSelected,
|
|
92
|
+
typeDataController,
|
|
93
|
+
userInfo,
|
|
94
|
+
configData,
|
|
95
|
+
setVisible,
|
|
96
|
+
selectedDataChangeHandle,
|
|
97
|
+
handleOk,
|
|
98
|
+
handleCancel,
|
|
99
|
+
comfirm,
|
|
100
|
+
HandleOpen,
|
|
101
|
+
HandleClose,
|
|
102
|
+
tabsChange,
|
|
103
|
+
loadConfig,
|
|
104
|
+
checkServiceEnable,
|
|
105
|
+
getUserInfoHandle
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
exports.useSelectAddToState = useSelectAddToState;
|
|
@@ -125,7 +125,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
125
125
|
default: vue.withCtx(() => _cache[1] || (_cache[1] = [
|
|
126
126
|
vue.createTextVNode("\u53D6\u6D88")
|
|
127
127
|
])),
|
|
128
|
-
_: 1
|
|
128
|
+
_: 1,
|
|
129
|
+
__: [1]
|
|
129
130
|
}, 8, ["onClick"]),
|
|
130
131
|
vue.createVNode(vue.unref(webVue.Button), {
|
|
131
132
|
type: "primary",
|
|
@@ -134,7 +135,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
134
135
|
default: vue.withCtx(() => _cache[2] || (_cache[2] = [
|
|
135
136
|
vue.createTextVNode(" \u786E\u5B9A ")
|
|
136
137
|
])),
|
|
137
|
-
_: 1
|
|
138
|
+
_: 1,
|
|
139
|
+
__: [2]
|
|
138
140
|
})
|
|
139
141
|
], 64)) : vue.createCommentVNode("v-if", true)
|
|
140
142
|
], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
@@ -144,7 +146,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
144
146
|
default: vue.withCtx(() => _cache[3] || (_cache[3] = [
|
|
145
147
|
vue.createTextVNode("\u53D6\u6D88")
|
|
146
148
|
])),
|
|
147
|
-
_: 1
|
|
149
|
+
_: 1,
|
|
150
|
+
__: [3]
|
|
148
151
|
}, 8, ["onClick"]),
|
|
149
152
|
vue.createVNode(vue.unref(webVue.Button), {
|
|
150
153
|
disabled: isEmpty,
|
|
@@ -154,7 +157,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
154
157
|
default: vue.withCtx(() => _cache[4] || (_cache[4] = [
|
|
155
158
|
vue.createTextVNode(" \u7F16\u8F91 ")
|
|
156
159
|
])),
|
|
157
|
-
_: 2
|
|
160
|
+
_: 2,
|
|
161
|
+
__: [4]
|
|
158
162
|
}, 1032, ["disabled", "onClick"]),
|
|
159
163
|
vue.createVNode(vue.unref(webVue.Button), {
|
|
160
164
|
disabled: isEmpty,
|
|
@@ -164,7 +168,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
164
168
|
default: vue.withCtx(() => _cache[5] || (_cache[5] = [
|
|
165
169
|
vue.createTextVNode(" \u4F7F\u7528 ")
|
|
166
170
|
])),
|
|
167
|
-
_: 2
|
|
171
|
+
_: 2,
|
|
172
|
+
__: [5]
|
|
168
173
|
}, 1032, ["disabled", "onClick"])
|
|
169
174
|
], 64))
|
|
170
175
|
]),
|
|
@@ -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(() => [
|