@cmstops/pro-compo 3.9.2 → 3.10.5-stable.1
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/README.md +103 -76
- package/dist/index.css +97 -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/component.js +71 -14
- 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/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 +7 -3
- 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 +228 -60
- package/es/docPreview/components/PreviewIframe.js +37 -6
- package/es/docPreview/images/pc.js +2 -0
- package/es/docPreview/scripts/api.d.ts +2 -1
- package/es/docPreview/scripts/hook.d.ts +11 -1
- package/es/docPreview/scripts/hook.js +115 -4
- package/es/docPreview/style/index.css +48 -0
- package/es/docPreview/style/index.less +23 -0
- package/es/docPreview/style/previewIframe.less +31 -0
- 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 +32 -13
- package/es/hooks/useAttachement.js +42 -2
- 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 +97 -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 +210 -83
- 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/useCompoLf.js +1 -1
- 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 +76 -33
- 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/component.js +69 -12
- 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/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 +7 -3
- 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 +227 -59
- package/lib/docPreview/components/PreviewIframe.js +37 -6
- package/lib/docPreview/images/pc.js +3 -0
- package/lib/docPreview/scripts/hook.js +115 -3
- package/lib/docPreview/style/index.css +48 -0
- package/lib/docPreview/style/index.less +23 -0
- package/lib/docPreview/style/previewIframe.less +31 -0
- 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/useAttachement.js +42 -0
- 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 +97 -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 +207 -80
- 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/useCompoLf.js +1 -1
- 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 +75 -32
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, provide, computed, watch, nextTick, openBlock, createElementBlock, createCommentVNode, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, Fragment, renderList, createBlock, createVNode, unref, withCtx, createTextVNode } from "vue";
|
|
1
|
+
import { defineComponent, ref, provide, computed, watch, nextTick, onMounted, openBlock, createElementBlock, createCommentVNode, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, Fragment, renderList, createBlock, createVNode, unref, withCtx, createTextVNode } from "vue";
|
|
2
2
|
import { RadioGroup, Radio, Switch } from "@arco-design/web-vue";
|
|
3
3
|
import { docThumbObjMap, docThumbArrMap } from "../utils/doc.js";
|
|
4
4
|
import _sfc_main$4 from "../imageCrop/component.js";
|
|
@@ -234,7 +234,6 @@ const _sfc_main = defineComponent({
|
|
|
234
234
|
thumbOptionIndex.value = index;
|
|
235
235
|
};
|
|
236
236
|
const openDialogMediaSelection = (type, index) => {
|
|
237
|
-
console.log(type, index, "dkdk");
|
|
238
237
|
thumbBannerModel.value = type || "thumb";
|
|
239
238
|
thumbOptionIndex.value = index || 0;
|
|
240
239
|
dialogMediaSelectionShow.value = true;
|
|
@@ -271,6 +270,16 @@ const _sfc_main = defineComponent({
|
|
|
271
270
|
temp = [{ url: data[0].url, thumb: data[0].url }];
|
|
272
271
|
}
|
|
273
272
|
styleData.value.data = temp;
|
|
273
|
+
styleData.value.cover_url = data[0].url;
|
|
274
|
+
const getColors = getThemeColor(BASE_API, data[0].url);
|
|
275
|
+
getColors.then((themes) => {
|
|
276
|
+
styleData.value.cover_colorList = JSON.parse(JSON.stringify(themes));
|
|
277
|
+
styleData.value.cover_theme_color = `rgb(${themes[1]})`;
|
|
278
|
+
callback(styleData.value);
|
|
279
|
+
}).catch((e) => {
|
|
280
|
+
styleData.value.banner_theme_color = `rgb(255, 255, 255)`;
|
|
281
|
+
callback(styleData.value);
|
|
282
|
+
});
|
|
274
283
|
} else if (thumbBannerModel.value === "banner") {
|
|
275
284
|
styleData.value.banner_url = data[0].url;
|
|
276
285
|
const getColors = getThemeColor(BASE_API, data[0].url);
|
|
@@ -338,10 +347,15 @@ const _sfc_main = defineComponent({
|
|
|
338
347
|
});
|
|
339
348
|
};
|
|
340
349
|
const modelChange = () => {
|
|
350
|
+
styleData.value.cover_theme_color = "";
|
|
341
351
|
if (!props.dataValue)
|
|
342
352
|
return;
|
|
343
353
|
if (styleData.value.model === oldData.value.model) {
|
|
344
|
-
|
|
354
|
+
nextTick(() => {
|
|
355
|
+
styleData.value.data = oldData.value.data;
|
|
356
|
+
styleData.value.cover_theme_color = oldData.value.cover_theme_color;
|
|
357
|
+
styleData.value.cover_colorList = oldData.value.cover_colorList;
|
|
358
|
+
});
|
|
345
359
|
} else {
|
|
346
360
|
styleData.value.data = [];
|
|
347
361
|
}
|
|
@@ -354,6 +368,15 @@ const _sfc_main = defineComponent({
|
|
|
354
368
|
},
|
|
355
369
|
set(value) {
|
|
356
370
|
styleData.value.banner_url = value.url;
|
|
371
|
+
styleData.value.cover_colorList = styleData.value.banner_colorList;
|
|
372
|
+
}
|
|
373
|
+
});
|
|
374
|
+
const cover = computed({
|
|
375
|
+
get() {
|
|
376
|
+
const { cover_theme_color } = styleData.value;
|
|
377
|
+
return cover_theme_color;
|
|
378
|
+
},
|
|
379
|
+
set() {
|
|
357
380
|
}
|
|
358
381
|
});
|
|
359
382
|
const hasBanner = computed({
|
|
@@ -366,6 +389,15 @@ const _sfc_main = defineComponent({
|
|
|
366
389
|
callback(styleData.value);
|
|
367
390
|
}
|
|
368
391
|
});
|
|
392
|
+
const hasCover = computed({
|
|
393
|
+
get() {
|
|
394
|
+
return !!cover.value;
|
|
395
|
+
},
|
|
396
|
+
set(value) {
|
|
397
|
+
styleData.value.cover = value;
|
|
398
|
+
callback(styleData.value);
|
|
399
|
+
}
|
|
400
|
+
});
|
|
369
401
|
const pcBanner = computed({
|
|
370
402
|
get() {
|
|
371
403
|
const { pc_banner_url_info, pc_banner_url } = styleData.value;
|
|
@@ -378,6 +410,10 @@ const _sfc_main = defineComponent({
|
|
|
378
410
|
const colorChange = (styleData2) => {
|
|
379
411
|
callback(styleData2);
|
|
380
412
|
};
|
|
413
|
+
onMounted(() => {
|
|
414
|
+
if (!styleData.value.cover_url)
|
|
415
|
+
;
|
|
416
|
+
});
|
|
381
417
|
return (_ctx, _cache) => {
|
|
382
418
|
var _a, _b, _c, _d, _e, _f;
|
|
383
419
|
return openBlock(), createElementBlock("div", {
|
|
@@ -387,20 +423,20 @@ const _sfc_main = defineComponent({
|
|
|
387
423
|
}, [
|
|
388
424
|
createCommentVNode(" \u5C01\u9762\u6807\u9898"),
|
|
389
425
|
createElementVNode("div", {
|
|
390
|
-
class: normalizeClass(["banner-view", { flex:
|
|
426
|
+
class: normalizeClass(["banner-view", { flex: __props.flex }])
|
|
391
427
|
}, [
|
|
392
|
-
|
|
428
|
+
__props.mode !== "smiple" && __props.showTitle ? (openBlock(), createElementBlock("div", {
|
|
393
429
|
key: 0,
|
|
394
430
|
class: "title",
|
|
395
|
-
style: normalizeStyle({ width:
|
|
431
|
+
style: normalizeStyle({ width: __props.offset })
|
|
396
432
|
}, [
|
|
397
|
-
|
|
398
|
-
createElementVNode("span", null, toDisplayString(
|
|
433
|
+
__props.titleValid ? (openBlock(), createElementBlock("span", _hoisted_1, "*")) : createCommentVNode("v-if", true),
|
|
434
|
+
createElementVNode("span", null, toDisplayString(__props.title ? __props.title : "\u5C01\u9762"), 1),
|
|
399
435
|
createCommentVNode(" \u4E0A\u4E0B\u5E03\u5C40\u663E\u793A tip"),
|
|
400
|
-
((_a = curtemplate.value) == null ? void 0 : _a.value) !== "4" && !
|
|
436
|
+
((_a = curtemplate.value) == null ? void 0 : _a.value) !== "4" && !__props.flex ? (openBlock(), createElementBlock("span", _hoisted_2, " (" + toDisplayString((_b = curtemplate.value) == null ? void 0 : _b.alias) + "\u6BD4\u4F8B\uFF1A" + toDisplayString((_c = curtemplate.value) == null ? void 0 : _c.ratioStr) + ") ", 1)) : createCommentVNode("v-if", true)
|
|
401
437
|
], 4)) : createCommentVNode("v-if", true),
|
|
402
438
|
createElementVNode("div", _hoisted_3, [
|
|
403
|
-
["thumbs"].includes(
|
|
439
|
+
["thumbs"].includes(__props.mode) ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
404
440
|
(openBlock(true), createElementBlock(Fragment, null, renderList(thumbsLengthList.value, (item, index) => {
|
|
405
441
|
return openBlock(), createBlock(_sfc_main$1, {
|
|
406
442
|
key: index,
|
|
@@ -410,7 +446,7 @@ const _sfc_main = defineComponent({
|
|
|
410
446
|
parentRef: selectThumbRef.value,
|
|
411
447
|
idx: index,
|
|
412
448
|
"preview-list": previewList.value,
|
|
413
|
-
"is-popover":
|
|
449
|
+
"is-popover": __props.localUpload,
|
|
414
450
|
"thumb-model": "thumb",
|
|
415
451
|
onFileForShowThumb: fileForShowThumb,
|
|
416
452
|
onChangeThumbType: changeThumbType,
|
|
@@ -431,7 +467,7 @@ const _sfc_main = defineComponent({
|
|
|
431
467
|
model: model.value,
|
|
432
468
|
idx: index,
|
|
433
469
|
"preview-list": previewList.value,
|
|
434
|
-
"is-popover":
|
|
470
|
+
"is-popover": __props.localUpload,
|
|
435
471
|
"thumb-model": "thumb",
|
|
436
472
|
onFileForShowThumb: fileForShowThumb,
|
|
437
473
|
onChangeThumbType: changeThumbType,
|
|
@@ -443,9 +479,9 @@ const _sfc_main = defineComponent({
|
|
|
443
479
|
], 2112)) : createCommentVNode("v-if", true),
|
|
444
480
|
createCommentVNode(" \u5DE6\u53F3\u5E03\u5C40\u663E\u793Atip "),
|
|
445
481
|
createElementVNode("div", _hoisted_6, [
|
|
446
|
-
((_d = curtemplate.value) == null ? void 0 : _d.value) !== "4" &&
|
|
482
|
+
((_d = curtemplate.value) == null ? void 0 : _d.value) !== "4" && __props.flex ? (openBlock(), createElementBlock("span", _hoisted_7, " (" + toDisplayString((_e = curtemplate.value) == null ? void 0 : _e.alias) + "\u6BD4\u4F8B\uFF1A" + toDisplayString((_f = curtemplate.value) == null ? void 0 : _f.ratioStr) + ") ", 1)) : createCommentVNode("v-if", true)
|
|
447
483
|
]),
|
|
448
|
-
["doc"].includes(
|
|
484
|
+
["doc"].includes(__props.mode) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
449
485
|
createCommentVNode(" \u9009\u62E9\u5927\u56FE\u3001\u4E09\u56FE\u3001\u5355\u56FE...\u7B49\u6A21\u5F0F "),
|
|
450
486
|
createVNode(unref(RadioGroup), {
|
|
451
487
|
modelValue: model.value,
|
|
@@ -469,22 +505,29 @@ const _sfc_main = defineComponent({
|
|
|
469
505
|
}), 128))
|
|
470
506
|
]),
|
|
471
507
|
_: 1
|
|
472
|
-
}, 8, ["modelValue"])
|
|
508
|
+
}, 8, ["modelValue"]),
|
|
509
|
+
hasCover.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
510
|
+
key: 0,
|
|
511
|
+
"style-data": styleData.value,
|
|
512
|
+
model: "cover",
|
|
513
|
+
style: { "margin-top": "10px" },
|
|
514
|
+
onChange: colorChange
|
|
515
|
+
}, null, 8, ["style-data"])) : createCommentVNode("v-if", true)
|
|
473
516
|
], 64)) : createCommentVNode("v-if", true)
|
|
474
517
|
])
|
|
475
518
|
], 2),
|
|
476
|
-
|
|
519
|
+
__props.mode === "doc" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
477
520
|
createCommentVNode(" \u72EC\u7ACB\u8F6E\u535A\u56FE "),
|
|
478
521
|
createElementVNode("div", {
|
|
479
|
-
class: normalizeClass(["banner-view", { flex:
|
|
522
|
+
class: normalizeClass(["banner-view", { flex: __props.flex }])
|
|
480
523
|
}, [
|
|
481
524
|
createElementVNode("div", {
|
|
482
525
|
class: "title",
|
|
483
|
-
style: normalizeStyle({ width:
|
|
526
|
+
style: normalizeStyle({ width: __props.offset })
|
|
484
527
|
}, [
|
|
485
528
|
_cache[11] || (_cache[11] = createElementVNode("span", { style: { "margin-right": "10px" } }, "\u72EC\u7ACB\u8F6E\u64AD\u56FE", -1)),
|
|
486
529
|
createCommentVNode(" \u4E0A\u4E0B\u5E03\u5C40\u5F00\u5173\u5728\u6807\u9898\u540E "),
|
|
487
|
-
!
|
|
530
|
+
!__props.flex ? (openBlock(), createBlock(unref(Switch), {
|
|
488
531
|
key: 0,
|
|
489
532
|
modelValue: hasBanner.value,
|
|
490
533
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => hasBanner.value = $event),
|
|
@@ -493,7 +536,7 @@ const _sfc_main = defineComponent({
|
|
|
493
536
|
], 4),
|
|
494
537
|
createElementVNode("div", _hoisted_8, [
|
|
495
538
|
createCommentVNode(" \u5DE6\u53F3\u5E03\u5C40\u5F00\u5173\u663E\u793A "),
|
|
496
|
-
|
|
539
|
+
__props.flex ? (openBlock(), createBlock(unref(Switch), {
|
|
497
540
|
key: 0,
|
|
498
541
|
modelValue: hasBanner.value,
|
|
499
542
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => hasBanner.value = $event),
|
|
@@ -507,16 +550,16 @@ const _sfc_main = defineComponent({
|
|
|
507
550
|
"onUpdate:data": _cache[5] || (_cache[5] = ($event) => banner.value = $event),
|
|
508
551
|
parentRef: selectThumbRef.value,
|
|
509
552
|
"preview-list": previewList.value,
|
|
510
|
-
"is-popover":
|
|
553
|
+
"is-popover": __props.localUpload,
|
|
511
554
|
"thumb-model": "banner",
|
|
512
555
|
onFileForShowThumb: fileForShowThumb,
|
|
513
556
|
onChangeThumbType: changeThumbType,
|
|
514
557
|
onUploadLocal: _cache[6] || (_cache[6] = (cb) => _ctx.$emit("upload", cb)),
|
|
515
558
|
onOpen: openDialogMediaSelection
|
|
516
559
|
}, null, 8, ["data", "parentRef", "preview-list", "is-popover"])) : createCommentVNode("v-if", true),
|
|
517
|
-
hasBanner.value && styleData.value.banner_theme_color ? (openBlock(), createElementBlock("div", _hoisted_9, _cache[12] || (_cache[12] = [
|
|
560
|
+
hasBanner.value && styleData.value.banner_theme_color ? (openBlock(), createElementBlock("div", _hoisted_9, [..._cache[12] || (_cache[12] = [
|
|
518
561
|
createElementVNode("span", null, "\u72EC\u7ACB\u8F6E\u64AD\u56FE\u80CC\u666F\u989C\u8272", -1)
|
|
519
|
-
]))) : createCommentVNode("v-if", true),
|
|
562
|
+
])])) : createCommentVNode("v-if", true),
|
|
520
563
|
createCommentVNode(" banner\u8C03\u8272\u677F "),
|
|
521
564
|
hasBanner.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
522
565
|
key: 3,
|
|
@@ -528,17 +571,17 @@ const _sfc_main = defineComponent({
|
|
|
528
571
|
], 2),
|
|
529
572
|
createCommentVNode(" pc\u5C01\u9762\u56FE\uFF08\u4E13\u9898\u5934\u56FE\u5171\u7528\u4E00\u4E2A\u5B57\u6BB5\uFF09 "),
|
|
530
573
|
createElementVNode("div", {
|
|
531
|
-
class: normalizeClass(["banner-view", { flex:
|
|
574
|
+
class: normalizeClass(["banner-view", { flex: __props.flex }])
|
|
532
575
|
}, [
|
|
533
576
|
createElementVNode("div", {
|
|
534
577
|
class: "title",
|
|
535
|
-
style: normalizeStyle({ width:
|
|
578
|
+
style: normalizeStyle({ width: __props.offset })
|
|
536
579
|
}, [
|
|
537
580
|
docSeriesShowTopThemeColor.value ? (openBlock(), createElementBlock("span", _hoisted_10, [
|
|
538
|
-
|
|
539
|
-
createElementVNode("span", null, toDisplayString(
|
|
581
|
+
__props.topImageTitleValid ? (openBlock(), createElementBlock("span", _hoisted_11, "*")) : createCommentVNode("v-if", true),
|
|
582
|
+
createElementVNode("span", null, toDisplayString(__props.topImageTitle || "\u5C01\u9762\u5934\u56FE"), 1)
|
|
540
583
|
])) : (openBlock(), createElementBlock("span", _hoisted_12, "PC\u5C01\u9762\u56FE")),
|
|
541
|
-
!
|
|
584
|
+
!__props.flex ? (openBlock(), createElementBlock("span", _hoisted_13, " (\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A1242px*662px) ")) : createCommentVNode("v-if", true)
|
|
542
585
|
], 4),
|
|
543
586
|
createElementVNode("div", _hoisted_14, [
|
|
544
587
|
createVNode(_sfc_main$1, {
|
|
@@ -547,17 +590,17 @@ const _sfc_main = defineComponent({
|
|
|
547
590
|
"onUpdate:data": _cache[7] || (_cache[7] = ($event) => pcBanner.value = $event),
|
|
548
591
|
parentRef: selectThumbRef.value,
|
|
549
592
|
previewList: previewList.value,
|
|
550
|
-
"is-popover":
|
|
593
|
+
"is-popover": __props.localUpload,
|
|
551
594
|
thumbModel: "pcBanner",
|
|
552
595
|
onFileForShowThumb: fileForShowThumb,
|
|
553
596
|
onChangeThumbType: changeThumbType,
|
|
554
597
|
onUploadLocal: _cache[8] || (_cache[8] = (cb) => _ctx.$emit("upload", cb)),
|
|
555
598
|
onOpen: openDialogMediaSelection
|
|
556
599
|
}, null, 8, ["data", "parentRef", "previewList", "is-popover"]),
|
|
557
|
-
|
|
558
|
-
docSeriesShowTopThemeColor.value && styleData.value.top_theme_color ? (openBlock(), createElementBlock("div", _hoisted_16, _cache[13] || (_cache[13] = [
|
|
600
|
+
__props.flex ? (openBlock(), createElementBlock("span", _hoisted_15, "(\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A1242px*662px)")) : createCommentVNode("v-if", true),
|
|
601
|
+
docSeriesShowTopThemeColor.value && styleData.value.top_theme_color ? (openBlock(), createElementBlock("div", _hoisted_16, [..._cache[13] || (_cache[13] = [
|
|
559
602
|
createElementVNode("span", null, "\u56FE\u7247\u80CC\u666F\u989C\u8272", -1)
|
|
560
|
-
]))) : createCommentVNode("v-if", true),
|
|
603
|
+
])])) : createCommentVNode("v-if", true),
|
|
561
604
|
docSeriesShowTopThemeColor.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
562
605
|
key: 2,
|
|
563
606
|
model: "top",
|
|
@@ -583,7 +626,7 @@ const _sfc_main = defineComponent({
|
|
|
583
626
|
visible: dialogMediaSelectionShow.value,
|
|
584
627
|
"onUpdate:visible": _cache[9] || (_cache[9] = ($event) => dialogMediaSelectionShow.value = $event),
|
|
585
628
|
maxcount: 1,
|
|
586
|
-
"media-use-type":
|
|
629
|
+
"media-use-type": __props.mediaUseType,
|
|
587
630
|
userInfo: { domain_id: 1, repository_id: 4 },
|
|
588
631
|
filterOptions: { mediaType: "image", mediaTypeStrict: true },
|
|
589
632
|
wrap: "modal",
|
|
@@ -70,7 +70,7 @@ const _sfc_main = defineComponent({
|
|
|
70
70
|
return (_ctx, _cache) => {
|
|
71
71
|
var _a;
|
|
72
72
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
73
|
-
|
|
73
|
+
__props.isPopover ? (openBlock(), createBlock(unref(Popover), {
|
|
74
74
|
key: 0,
|
|
75
75
|
trigger: "hover",
|
|
76
76
|
position: "bottom",
|
|
@@ -105,7 +105,7 @@ const _sfc_main = defineComponent({
|
|
|
105
105
|
}, [
|
|
106
106
|
createVNode(unref(IconEdit))
|
|
107
107
|
]),
|
|
108
|
-
|
|
108
|
+
__props.along ? (openBlock(), createElementBlock("span", {
|
|
109
109
|
key: 0,
|
|
110
110
|
class: "half",
|
|
111
111
|
onClick: withModifiers(remove, ["stop"])
|
|
@@ -151,7 +151,7 @@ const _sfc_main = defineComponent({
|
|
|
151
151
|
}, [
|
|
152
152
|
createVNode(unref(IconEdit))
|
|
153
153
|
]),
|
|
154
|
-
|
|
154
|
+
__props.along ? (openBlock(), createElementBlock("span", {
|
|
155
155
|
key: 0,
|
|
156
156
|
class: "half",
|
|
157
157
|
onClick: withModifiers(remove, ["stop"])
|
package/es/style.css
CHANGED
|
@@ -1,6 +1,69 @@
|
|
|
1
|
+
.content-tabs[data-v-7f81762c] .arco-tabs-content {
|
|
2
|
+
padding: 0;
|
|
3
|
+
}
|
|
4
|
+
.add-content-modal-body[data-v-7f81762c] {
|
|
5
|
+
padding: 0;
|
|
6
|
+
}
|
|
1
7
|
.type-icons-container {
|
|
2
8
|
display: inline-block;
|
|
3
9
|
vertical-align: middle;
|
|
4
10
|
line-height: 12px;
|
|
5
11
|
font-size: 18px;
|
|
6
12
|
}
|
|
13
|
+
.content-tabs[data-v-00adfb7c] .arco-tabs-content {
|
|
14
|
+
padding: 0;
|
|
15
|
+
}
|
|
16
|
+
.add-content-modal-body[data-v-00adfb7c] {
|
|
17
|
+
padding: 0;
|
|
18
|
+
}
|
|
19
|
+
.view-all-column-container[data-v-01c2d0b8] {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
height: 100%;
|
|
23
|
+
}
|
|
24
|
+
.content-table-view[data-v-01c2d0b8] {
|
|
25
|
+
flex: 1;
|
|
26
|
+
overflow: auto;
|
|
27
|
+
margin: 16px 0;
|
|
28
|
+
}
|
|
29
|
+
.bottom-view[data-v-01c2d0b8] {
|
|
30
|
+
display: flex;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
align-items: center;
|
|
33
|
+
padding: 16px 0;
|
|
34
|
+
}
|
|
35
|
+
.bottom-view .left[data-v-01c2d0b8] {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
gap: 16px;
|
|
39
|
+
}
|
|
40
|
+
.title-span[data-v-01c2d0b8] {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
gap: 8px;
|
|
44
|
+
}
|
|
45
|
+
.title-span .icon[data-v-01c2d0b8] {
|
|
46
|
+
font-size: 16px;
|
|
47
|
+
}
|
|
48
|
+
.title-span .title[data-v-01c2d0b8] {
|
|
49
|
+
flex: 1;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
text-overflow: ellipsis;
|
|
52
|
+
white-space: nowrap;
|
|
53
|
+
}
|
|
54
|
+
.pic-thumb-img[data-v-01c2d0b8] {
|
|
55
|
+
width: 80px;
|
|
56
|
+
height: 80px;
|
|
57
|
+
object-fit: cover;
|
|
58
|
+
border-radius: 4px;
|
|
59
|
+
}
|
|
60
|
+
.pic-thumb-img.placeholder[data-v-01c2d0b8] {
|
|
61
|
+
background-color: #f5f5f5;
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
}
|
|
66
|
+
.pic-thumb-img.placeholder .placeholder-text[data-v-01c2d0b8] {
|
|
67
|
+
color: #999;
|
|
68
|
+
font-size: 12px;
|
|
69
|
+
}
|
|
@@ -81,26 +81,26 @@ const _sfc_main = defineComponent({
|
|
|
81
81
|
}, [
|
|
82
82
|
isUploading.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
83
83
|
key: 0,
|
|
84
|
-
meta:
|
|
85
|
-
}, null, 8, ["meta"])) :
|
|
84
|
+
meta: __props.meta
|
|
85
|
+
}, null, 8, ["meta"])) : __props.catalog && __props.url ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
86
86
|
createCommentVNode(" \u6709\u7C7B\u578B\u7684\u5C01\u9762 "),
|
|
87
87
|
createCommentVNode(" \u56FE\u7247 "),
|
|
88
|
-
|
|
88
|
+
__props.catalog ? (openBlock(), createBlock(unref(Image), mergeProps({
|
|
89
89
|
key: 0,
|
|
90
90
|
class: "thumb-image",
|
|
91
91
|
src: realThumb.value
|
|
92
92
|
}, aImageAttr.value), null, 16, ["src"])) : createCommentVNode("v-if", true)
|
|
93
93
|
], 64)) : createCommentVNode("v-if", true),
|
|
94
94
|
createCommentVNode(" \u4E00\u4E9B\u6807\u7B7E\uFF08\u56DB\u4E2A\u89D2\uFF09 "),
|
|
95
|
-
["video", "audio"].includes(
|
|
96
|
-
|
|
97
|
-
createTextVNode(" " + toDisplayString(unref(mediaTime)((_a =
|
|
95
|
+
["video", "audio"].includes(__props.catalog) && __props.meta ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
96
|
+
__props.catalog === "video" ? (openBlock(), createBlock(unref(IconVideoTag), { key: 0 })) : (openBlock(), createBlock(unref(IconAudioTag), { key: 1 })),
|
|
97
|
+
createTextVNode(" " + toDisplayString(unref(mediaTime)((_a = __props.meta) == null ? void 0 : _a.length)), 1)
|
|
98
98
|
])) : createCommentVNode("v-if", true),
|
|
99
99
|
createCommentVNode(" \u5916\u6302\u9009\u9879 "),
|
|
100
100
|
createElementVNode("div", {
|
|
101
101
|
class: normalizeClass(["thumb-handler-list", thumbHandlerClass.value])
|
|
102
102
|
}, [
|
|
103
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
103
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.handlersKey, (item) => {
|
|
104
104
|
return openBlock(), createElementBlock("div", {
|
|
105
105
|
key: item.key,
|
|
106
106
|
class: "handler-item",
|
|
@@ -29,12 +29,12 @@ const _sfc_main = defineComponent({
|
|
|
29
29
|
!isFaild.value ? (openBlock(), createBlock(unref(Progress), {
|
|
30
30
|
key: 0,
|
|
31
31
|
type: "circle",
|
|
32
|
-
percent: (_a =
|
|
32
|
+
percent: (_a = __props.meta) == null ? void 0 : _a.progress
|
|
33
33
|
}, null, 8, ["percent"])) : createCommentVNode("v-if", true),
|
|
34
|
-
|
|
34
|
+
__props.meta.msg ? (openBlock(), createElementBlock("div", {
|
|
35
35
|
key: 1,
|
|
36
36
|
class: normalizeClass(["thumb-upload-text", textStatusClass.value])
|
|
37
|
-
}, toDisplayString((_b =
|
|
37
|
+
}, toDisplayString((_b = __props.meta) == null ? void 0 : _b.msg), 3)) : createCommentVNode("v-if", true)
|
|
38
38
|
]);
|
|
39
39
|
};
|
|
40
40
|
}
|
|
@@ -35,7 +35,7 @@ const _sfc_main = defineComponent({
|
|
|
35
35
|
createVNode(unref(IconYinpinji), { style: { "color": "#1fb7c2" } })
|
|
36
36
|
], 2112)) : props.doc && props.type === "video_album" ? (openBlock(), createElementBlock(Fragment, { key: 7 }, [
|
|
37
37
|
createCommentVNode(" \u89C6\u9891\u96C6 "),
|
|
38
|
-
createVNode(unref(IconShipinji))
|
|
38
|
+
createVNode(unref(IconShipinji), { style: { "color": "#f05050" } })
|
|
39
39
|
], 2112)) : props.doc && props.type === "mini_program" ? (openBlock(), createElementBlock(Fragment, { key: 8 }, [
|
|
40
40
|
createCommentVNode(" \u89C6\u9891\u96C6 "),
|
|
41
41
|
createVNode(unref(IconMiniprogram))
|
|
@@ -62,7 +62,7 @@ const _sfc_main = defineComponent({
|
|
|
62
62
|
return (_ctx, _cache) => {
|
|
63
63
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
64
64
|
createVNode(_sfc_main$1, {
|
|
65
|
-
"upload-method":
|
|
65
|
+
"upload-method": __props.uploadMethod,
|
|
66
66
|
onAfterChoose: afterChoose
|
|
67
67
|
}, null, 8, ["upload-method"]),
|
|
68
68
|
createVNode(_sfc_main$2, {
|
|
@@ -121,9 +121,9 @@ const _sfc_main = defineComponent({
|
|
|
121
121
|
onOk: handleOk,
|
|
122
122
|
onCancel: handleClose
|
|
123
123
|
}, {
|
|
124
|
-
title: withCtx(() => _cache[1] || (_cache[1] = [
|
|
125
|
-
createTextVNode("\u4E0A\u4F20\u914D\u7F6E")
|
|
126
|
-
])),
|
|
124
|
+
title: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
125
|
+
createTextVNode("\u4E0A\u4F20\u914D\u7F6E", -1)
|
|
126
|
+
])]),
|
|
127
127
|
default: withCtx(() => [
|
|
128
128
|
createElementVNode("div", _hoisted_1, [
|
|
129
129
|
createVNode(unref(Table), {
|
|
@@ -162,8 +162,8 @@ const _sfc_main = defineComponent({
|
|
|
162
162
|
}, 1032, ["value"]);
|
|
163
163
|
}), 128))
|
|
164
164
|
]),
|
|
165
|
-
_:
|
|
166
|
-
},
|
|
165
|
+
_: 1
|
|
166
|
+
}, 8, ["modelValue", "onUpdate:modelValue"])) : (openBlock(), createElementBlock("div", _hoisted_2, "\u2014 \u2014"))
|
|
167
167
|
]),
|
|
168
168
|
vTransTemp: withCtx(({ rowIndex, record }) => [
|
|
169
169
|
["dir", "video"].includes(record.type) ? (openBlock(), createBlock(unref(Select), {
|
|
@@ -187,8 +187,8 @@ const _sfc_main = defineComponent({
|
|
|
187
187
|
}, 1032, ["value"]);
|
|
188
188
|
}), 128))
|
|
189
189
|
]),
|
|
190
|
-
_:
|
|
191
|
-
},
|
|
190
|
+
_: 1
|
|
191
|
+
}, 8, ["modelValue", "onUpdate:modelValue"])) : (openBlock(), createElementBlock("div", _hoisted_3, "\u2014 \u2014"))
|
|
192
192
|
]),
|
|
193
193
|
aTransTemp: withCtx(({ record, rowIndex }) => [
|
|
194
194
|
["dir", "audio"].includes(record.type) ? (openBlock(), createBlock(unref(Select), {
|
|
@@ -212,8 +212,8 @@ const _sfc_main = defineComponent({
|
|
|
212
212
|
}, 1032, ["value"]);
|
|
213
213
|
}), 128))
|
|
214
214
|
]),
|
|
215
|
-
_:
|
|
216
|
-
},
|
|
215
|
+
_: 1
|
|
216
|
+
}, 8, ["modelValue", "onUpdate:modelValue"])) : (openBlock(), createElementBlock("div", _hoisted_4, "\u2014 \u2014"))
|
|
217
217
|
]),
|
|
218
218
|
_: 1
|
|
219
219
|
}, 8, ["data"])
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare function getWaterMark(BASE_API: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2
|
-
export declare function getVideoTransTemplate(BASE_API: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
3
|
-
export declare function getAudioTransTrempalte(BASE_API: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
1
|
+
export declare function getWaterMark(BASE_API: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
2
|
+
export declare function getVideoTransTemplate(BASE_API: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
3
|
+
export declare function getAudioTransTrempalte(BASE_API: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
4
4
|
export declare type TypeAddMediaParam = {
|
|
5
5
|
url: string;
|
|
6
6
|
alias: string;
|
|
@@ -13,4 +13,4 @@ export declare type TypeAddMediaParam = {
|
|
|
13
13
|
video_transcode_template?: any;
|
|
14
14
|
audio_transcode_template?: any;
|
|
15
15
|
};
|
|
16
|
-
export declare function addMedia(BASE_API: string, params: TypeAddMediaParam): Promise<import("axios").AxiosResponse<any, any>>;
|
|
16
|
+
export declare function addMedia(BASE_API: string, params: TypeAddMediaParam): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
@@ -62,7 +62,7 @@ const _sfc_main = defineComponent({
|
|
|
62
62
|
const uploadingFilter = (state) => [3, 5].includes(state);
|
|
63
63
|
return (_ctx, _cache) => {
|
|
64
64
|
return withDirectives((openBlock(), createElementBlock("div", {
|
|
65
|
-
class: normalizeClass(["panel_wrp", { global:
|
|
65
|
+
class: normalizeClass(["panel_wrp", { global: __props.global }])
|
|
66
66
|
}, [
|
|
67
67
|
createVNode(unref(Card), {
|
|
68
68
|
hoverable: "",
|
|
@@ -99,7 +99,7 @@ const _sfc_main = defineComponent({
|
|
|
99
99
|
createElementVNode("div", {
|
|
100
100
|
class: normalizeClass(["panel_list", { un_expend: !unref(expend) }])
|
|
101
101
|
}, [
|
|
102
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
102
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.fileList, (file) => {
|
|
103
103
|
return openBlock(), createElementBlock("div", {
|
|
104
104
|
key: file.id,
|
|
105
105
|
class: "panel_item"
|
|
@@ -141,7 +141,7 @@ const _sfc_main = defineComponent({
|
|
|
141
141
|
_: 1
|
|
142
142
|
}, 8, ["class", "body-style"])
|
|
143
143
|
], 2)), [
|
|
144
|
-
[vShow,
|
|
144
|
+
[vShow, __props.visable]
|
|
145
145
|
]);
|
|
146
146
|
};
|
|
147
147
|
}
|
|
@@ -137,9 +137,9 @@ const _sfc_main = defineComponent({
|
|
|
137
137
|
type: "text",
|
|
138
138
|
onClick: _cache[1] || (_cache[1] = ($event) => loginOut())
|
|
139
139
|
}, {
|
|
140
|
-
default: withCtx(() => _cache[2] || (_cache[2] = [
|
|
141
|
-
createTextVNode("\u9000\u51FA")
|
|
142
|
-
])),
|
|
140
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
141
|
+
createTextVNode("\u9000\u51FA", -1)
|
|
142
|
+
])]),
|
|
143
143
|
_: 1
|
|
144
144
|
})
|
|
145
145
|
])
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
interface Params {
|
|
2
2
|
[key: string]: any;
|
|
3
3
|
}
|
|
4
|
-
export declare function getUserInfo(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
|
-
export declare function getUserDetails(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
|
-
export declare function domainSelect(BASE_API: string, did: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
|
-
export declare function accountLogout(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
4
|
+
export declare function getUserInfo(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
5
|
+
export declare function getUserDetails(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
6
|
+
export declare function domainSelect(BASE_API: string, did: number): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
7
|
+
export declare function accountLogout(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
8
8
|
export {};
|
|
@@ -225,9 +225,9 @@ const _sfc_main = defineComponent({
|
|
|
225
225
|
size: "mini",
|
|
226
226
|
onClick: clearUserSelectedList
|
|
227
227
|
}, {
|
|
228
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
229
|
-
createTextVNode("\u5168\u90E8\u6E05\u9664")
|
|
230
|
-
])),
|
|
228
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
229
|
+
createTextVNode("\u5168\u90E8\u6E05\u9664", -1)
|
|
230
|
+
])]),
|
|
231
231
|
_: 1
|
|
232
232
|
})
|
|
233
233
|
]),
|
|
@@ -259,8 +259,8 @@ const _sfc_main = defineComponent({
|
|
|
259
259
|
default: withCtx(() => [
|
|
260
260
|
createVNode(unref(IconDelete))
|
|
261
261
|
]),
|
|
262
|
-
_:
|
|
263
|
-
},
|
|
262
|
+
_: 1
|
|
263
|
+
}, 8, ["onClick"])
|
|
264
264
|
])
|
|
265
265
|
]);
|
|
266
266
|
}), 128))
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
interface Params {
|
|
2
2
|
[key: string]: any;
|
|
3
3
|
}
|
|
4
|
-
export declare function getRepoRoleList(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
|
-
export declare function getRoleAllUser(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
|
-
export declare function getDepartList(BASE_API: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
|
-
export declare function getDepartUserList(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
8
|
-
export declare function getRepoUserList(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
9
|
-
export declare function getDepartChildren(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any>>;
|
|
4
|
+
export declare function getRepoRoleList(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
5
|
+
export declare function getRoleAllUser(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
6
|
+
export declare function getDepartList(BASE_API: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
7
|
+
export declare function getDepartUserList(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
8
|
+
export declare function getRepoUserList(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
9
|
+
export declare function getDepartChildren(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
10
10
|
export {};
|
package/es/utils/index.js
CHANGED
|
@@ -137,13 +137,13 @@ async function copyContent(content) {
|
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
function mediaTime(v) {
|
|
140
|
-
const h = Math.floor(v /
|
|
141
|
-
const m = Math.floor(
|
|
142
|
-
const s = Math.floor(v
|
|
140
|
+
const h = Math.floor(v / 3600);
|
|
141
|
+
const m = Math.floor(v % 3600 / 60);
|
|
142
|
+
const s = Math.floor(v % 60);
|
|
143
143
|
let ret = "";
|
|
144
|
-
ret += `${h < 10 ? `0${h}` : h
|
|
145
|
-
ret += `${m < 10 ? `0${m}` : m
|
|
146
|
-
ret += s < 10 ? `0${s}` : s
|
|
144
|
+
ret += `${h < 10 ? `0${h}` : h}:`;
|
|
145
|
+
ret += `${m < 10 ? `0${m}` : m}:`;
|
|
146
|
+
ret += s < 10 ? `0${s}` : s;
|
|
147
147
|
return ret;
|
|
148
148
|
}
|
|
149
149
|
export { copyContent, dateYYYYDDMMHHmm, generateUUID, getRealUrl, getThemeColor, mediaTime, noCoverText, replaceSuffix, timeFormat, to, validateForm };
|
package/es/utils/request.d.ts
CHANGED
|
@@ -6,4 +6,4 @@ declare module 'axios' {
|
|
|
6
6
|
}
|
|
7
7
|
function create(config?: AxiosRequestConfig): AxiosInstance;
|
|
8
8
|
}
|
|
9
|
-
export default function (BASE_API: string, options: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
9
|
+
export default function (BASE_API: string, options: any): Promise<import("axios").AxiosResponse<any, any, {}>>;
|