@cmstops/pro-compo 3.9.1-rc.0 → 3.9.1-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +134 -107
- package/dist/index.css +49 -4
- package/dist/index.min.css +1 -1
- package/dist/index.min.js.map +1 -1
- package/es/baseFilter/component.js +71 -14
- package/es/config.js +1 -1
- 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 +37 -32
- package/es/docPreview/component.js +10 -5
- package/es/editMetaInfo/components/metaInfoForm.js +4 -2
- package/es/hooks/useAttachement.js +42 -2
- package/es/hooks/usePopper.js +3 -3
- 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 +49 -4
- 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/selectResourceModal/component.js +10 -5
- package/es/selectResourceModal/components/List/ListLocal/Upload.js +2 -1
- package/es/selectResourceModal/components/List/ListLocal/index.js +9 -4
- package/es/selectResourceModal/components/List/ListNormal/Filter.js +213 -82
- package/es/selectResourceModal/components/List/ListNormal/index.js +23 -7
- package/es/selectResourceModal/components/List/ListSystem/Filter.js +2 -1
- package/es/selectResourceModal/hooks/useResponsiveFilter.js +142 -0
- package/es/selectResourceModal/scripts/useCompoLf.js +1 -1
- package/es/selectResourceModal/style/index.css +45 -4
- package/es/selectResourceModal/style/index.less +55 -41
- package/es/selectResourceModal/style/list.less +203 -167
- package/es/selectThumb/component.js +16 -27
- 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/config.js +1 -1
- 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 +37 -32
- package/lib/docPreview/component.js +10 -5
- package/lib/editMetaInfo/components/metaInfoForm.js +4 -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 +4 -2
- package/lib/importData/component.js +6 -3
- package/lib/index.css +49 -4
- 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/selectResourceModal/component.js +10 -5
- package/lib/selectResourceModal/components/List/ListLocal/Upload.js +2 -1
- package/lib/selectResourceModal/components/List/ListLocal/index.js +7 -2
- package/lib/selectResourceModal/components/List/ListNormal/Filter.js +210 -79
- package/lib/selectResourceModal/components/List/ListNormal/index.js +22 -6
- package/lib/selectResourceModal/components/List/ListSystem/Filter.js +2 -1
- package/lib/selectResourceModal/hooks/useResponsiveFilter.js +144 -0
- package/lib/selectResourceModal/scripts/useCompoLf.js +1 -1
- package/lib/selectResourceModal/style/index.css +45 -4
- package/lib/selectResourceModal/style/index.less +55 -41
- package/lib/selectResourceModal/style/list.less +203 -167
- package/lib/selectThumb/component.js +16 -27
- package/lib/userAvater/component.js +2 -1
- package/lib/userDirector/component.js +2 -1
- package/lib/utils/index.js +6 -6
- package/package.json +138 -138
- 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 -34
- 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/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/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
|
@@ -762,13 +762,15 @@ const _sfc_main = defineComponent({
|
|
|
762
762
|
default: withCtx(() => _cache[29] || (_cache[29] = [
|
|
763
763
|
createTextVNode(" \u9ED8\u54C0\u6A21\u5F0F")
|
|
764
764
|
])),
|
|
765
|
-
_: 1
|
|
765
|
+
_: 1,
|
|
766
|
+
__: [29]
|
|
766
767
|
}),
|
|
767
768
|
createVNode(unref(Radio), { value: 2 }, {
|
|
768
769
|
default: withCtx(() => _cache[30] || (_cache[30] = [
|
|
769
770
|
createTextVNode("\u975E\u9ED8\u54C0\u6A21\u5F0F")
|
|
770
771
|
])),
|
|
771
|
-
_: 1
|
|
772
|
+
_: 1,
|
|
773
|
+
__: [30]
|
|
772
774
|
})
|
|
773
775
|
]),
|
|
774
776
|
_: 1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref, computed } from "vue";
|
|
1
|
+
import { ref, computed, onMounted } from "vue";
|
|
2
2
|
import request from "../utils/request.js";
|
|
3
3
|
function getAttachmentsAll(BASE_API, query) {
|
|
4
4
|
return request(BASE_API, {
|
|
@@ -108,4 +108,44 @@ function getSysRsPage(BASE_API, params) {
|
|
|
108
108
|
params
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
|
-
|
|
111
|
+
function getDirectory(BASE_API, params) {
|
|
112
|
+
return request(BASE_API, {
|
|
113
|
+
url: "/poplar/v3/directory/tree",
|
|
114
|
+
method: "get",
|
|
115
|
+
params
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
function useDirectory(options) {
|
|
119
|
+
const tree = ref([]);
|
|
120
|
+
async function loadDirTree(parent_id) {
|
|
121
|
+
const params = parent_id ? { parent_id } : {};
|
|
122
|
+
const { code, message } = await getDirectory(options.BASE_API, params);
|
|
123
|
+
if (code === 0) {
|
|
124
|
+
if (!Array.isArray(message.data))
|
|
125
|
+
return [];
|
|
126
|
+
return message.data;
|
|
127
|
+
}
|
|
128
|
+
return [];
|
|
129
|
+
}
|
|
130
|
+
async function init() {
|
|
131
|
+
const result = await loadDirTree();
|
|
132
|
+
if (!Array.isArray(result))
|
|
133
|
+
return;
|
|
134
|
+
tree.value = result;
|
|
135
|
+
}
|
|
136
|
+
async function loadMore(target) {
|
|
137
|
+
const children = await loadDirTree(target.key);
|
|
138
|
+
target.children = children;
|
|
139
|
+
if (children.length === 0)
|
|
140
|
+
target.isLeaf = true;
|
|
141
|
+
}
|
|
142
|
+
onMounted(() => {
|
|
143
|
+
init();
|
|
144
|
+
});
|
|
145
|
+
return {
|
|
146
|
+
tree,
|
|
147
|
+
init,
|
|
148
|
+
loadMore
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
export { useAttachement as default, getAttachmentsAll, getAttachmentsMy, getAttachmentsMyMessage, getDirectory, getSysRsByTag, getSysRsPage, useDirectory };
|
package/es/hooks/usePopper.js
CHANGED
|
@@ -8,16 +8,16 @@ function usePopper(pannel, triggerEl) {
|
|
|
8
8
|
};
|
|
9
9
|
const show = () => {
|
|
10
10
|
visible.value = true;
|
|
11
|
-
window.onclick = (
|
|
11
|
+
window.onclick = () => {
|
|
12
12
|
hide();
|
|
13
13
|
visible.value = false;
|
|
14
14
|
window.onclick = null;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
const initPopper = (placement = "bottom-start") => {
|
|
17
|
+
const initPopper = (placement = "bottom-start", of) => {
|
|
18
18
|
if (!pannel.value || !triggerEl.value)
|
|
19
19
|
return;
|
|
20
|
-
const offset = [0, 10];
|
|
20
|
+
const offset = of != null ? of : [0, 10];
|
|
21
21
|
if (window.__POWERED_BY_WUJIE__) {
|
|
22
22
|
offset[1] = -54;
|
|
23
23
|
}
|
package/es/hooks/useUpload.js
CHANGED
|
@@ -73,7 +73,7 @@ function useUpload(options) {
|
|
|
73
73
|
list.value = originList;
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
|
-
const uploadFile = (BASE_API, file, dir = 0, repoId, callback) => {
|
|
76
|
+
const uploadFile = (BASE_API, file, dir = 0, repoId, callback, upOptions) => {
|
|
77
77
|
const newFile = {
|
|
78
78
|
id: file.id || generateUUID(),
|
|
79
79
|
sig_id: file.sig_id || generateUUID(),
|
|
@@ -93,18 +93,24 @@ function useUpload(options) {
|
|
|
93
93
|
};
|
|
94
94
|
const uploading = upload.start(progress);
|
|
95
95
|
uploading.then(async (url) => {
|
|
96
|
+
var _a;
|
|
96
97
|
if (options == null ? void 0 : options.noAddMedia) {
|
|
97
98
|
recordTaskStatusChange({ ...newFile, status: 0, url }, 1);
|
|
98
99
|
callback && callback({ ...newFile, url }, "success");
|
|
99
100
|
return;
|
|
100
101
|
}
|
|
102
|
+
const params = {};
|
|
103
|
+
if ((_a = upOptions == null ? void 0 : upOptions.template) == null ? void 0 : _a.watermark) {
|
|
104
|
+
params.watermark = upOptions.template.watermark.default;
|
|
105
|
+
}
|
|
101
106
|
const { code, message } = await addMedia(BASE_API, {
|
|
102
107
|
url,
|
|
103
108
|
size: newFile.size,
|
|
104
109
|
directory_id: dir,
|
|
105
110
|
repository_id: repoId,
|
|
106
111
|
catalog: newFile.type,
|
|
107
|
-
alias: newFile.name
|
|
112
|
+
alias: newFile.name,
|
|
113
|
+
...params
|
|
108
114
|
});
|
|
109
115
|
if (code !== 0) {
|
|
110
116
|
console.log("\u{1F525}\u{1F525}\u{1F525}\u{1F525}\u{1F525} \u4E0A\u4F20\u5931\u8D25\uFF1A", newFile.name, code, message);
|
|
@@ -194,9 +200,16 @@ function getConfiguration(BASE_API, params) {
|
|
|
194
200
|
params
|
|
195
201
|
});
|
|
196
202
|
}
|
|
203
|
+
function getWatermarkTemplate(BASE_API) {
|
|
204
|
+
return request(BASE_API, {
|
|
205
|
+
url: `/poplar/v2/material/image/watermark`,
|
|
206
|
+
method: "get"
|
|
207
|
+
});
|
|
208
|
+
}
|
|
197
209
|
function useUploadConfig() {
|
|
198
210
|
const { get, set, remove } = useLocalstorage("LOCAL_UPLOAD_CONFIG");
|
|
199
211
|
const config = ref(get() || {});
|
|
212
|
+
const template = ref({});
|
|
200
213
|
async function initUploadConfig(BASE_API, domainId) {
|
|
201
214
|
if (config.value.size_config_enabled != null)
|
|
202
215
|
return;
|
|
@@ -245,11 +258,37 @@ function useUploadConfig() {
|
|
|
245
258
|
);
|
|
246
259
|
return false;
|
|
247
260
|
}
|
|
261
|
+
async function initTemplate(BASE_API) {
|
|
262
|
+
try {
|
|
263
|
+
const { code, message } = await getWatermarkTemplate(BASE_API);
|
|
264
|
+
if (code !== 0)
|
|
265
|
+
return;
|
|
266
|
+
if (message) {
|
|
267
|
+
let defaultWaterMark;
|
|
268
|
+
if (Array.isArray(message.images)) {
|
|
269
|
+
message.images.forEach((item) => {
|
|
270
|
+
if (message.default === item.id)
|
|
271
|
+
defaultWaterMark = item;
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
template.value = {
|
|
275
|
+
watermark: {
|
|
276
|
+
default: defaultWaterMark,
|
|
277
|
+
images: message.images
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
} catch (e) {
|
|
282
|
+
console.error(e);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
248
285
|
window.addEventListener("beforeunload", remove, false);
|
|
249
286
|
return {
|
|
250
287
|
config,
|
|
288
|
+
template,
|
|
251
289
|
checkFileSizeOutLimit,
|
|
252
|
-
initUploadConfig
|
|
290
|
+
initUploadConfig,
|
|
291
|
+
initTemplate
|
|
253
292
|
};
|
|
254
293
|
}
|
|
255
|
-
export { addMedia, useUpload as default, getMediaDetails, getSize, reTranscodeMedia, useUploadConfig };
|
|
294
|
+
export { addMedia, useUpload as default, getMediaDetails, getSize, getWatermarkTemplate, reTranscodeMedia, useUploadConfig };
|
|
@@ -419,7 +419,8 @@ const _sfc_main = defineComponent({
|
|
|
419
419
|
default: withCtx(() => _cache[5] || (_cache[5] = [
|
|
420
420
|
createTextVNode("\u53D6\u6D88")
|
|
421
421
|
])),
|
|
422
|
-
_: 1
|
|
422
|
+
_: 1,
|
|
423
|
+
__: [5]
|
|
423
424
|
}),
|
|
424
425
|
withDirectives(createVNode(unref(Button), {
|
|
425
426
|
size: "medium",
|
|
@@ -430,7 +431,8 @@ const _sfc_main = defineComponent({
|
|
|
430
431
|
default: withCtx(() => _cache[6] || (_cache[6] = [
|
|
431
432
|
createTextVNode("\u88C1\u526A")
|
|
432
433
|
])),
|
|
433
|
-
_: 1
|
|
434
|
+
_: 1,
|
|
435
|
+
__: [6]
|
|
434
436
|
}, 8, ["loading"]), [
|
|
435
437
|
[vShow, !croppering.value]
|
|
436
438
|
])
|
|
@@ -105,7 +105,8 @@ const _sfc_main = defineComponent({
|
|
|
105
105
|
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
106
106
|
createTextVNode("\u4E0B\u8F7D\u6A21\u677F")
|
|
107
107
|
])),
|
|
108
|
-
_: 1
|
|
108
|
+
_: 1,
|
|
109
|
+
__: [1]
|
|
109
110
|
}, 8, ["href"])
|
|
110
111
|
]),
|
|
111
112
|
_cache[6] || (_cache[6] = createElementVNode("h3", null, "\u4E0A\u4F20\u6587\u4EF6", -1)),
|
|
@@ -126,7 +127,8 @@ const _sfc_main = defineComponent({
|
|
|
126
127
|
default: withCtx(() => _cache[3] || (_cache[3] = [
|
|
127
128
|
createTextVNode(" \u4E0B\u8F7D\u5BFC\u5165\u7ED3\u679C ")
|
|
128
129
|
])),
|
|
129
|
-
_: 1
|
|
130
|
+
_: 1,
|
|
131
|
+
__: [3]
|
|
130
132
|
}, 8, ["href"])
|
|
131
133
|
])) : createCommentVNode("v-if", true),
|
|
132
134
|
importPercent.value === 1 && ((_b = importData.value) == null ? void 0 : _b.success_count) === void 0 ? (openBlock(), createElementBlock("p", _hoisted_5, " \u5BFC\u5165\u5931\u8D25\uFF0C" + toDisplayString(importErrorInfo.value), 1)) : createCommentVNode("v-if", true)
|
|
@@ -157,7 +159,8 @@ const _sfc_main = defineComponent({
|
|
|
157
159
|
default: withCtx(() => _cache[4] || (_cache[4] = [
|
|
158
160
|
createTextVNode("\u5F00\u59CB\u5BFC\u5165")
|
|
159
161
|
])),
|
|
160
|
-
_: 1
|
|
162
|
+
_: 1,
|
|
163
|
+
__: [4]
|
|
161
164
|
}, 8, ["loading"])) : createCommentVNode("v-if", true)
|
|
162
165
|
]),
|
|
163
166
|
_: 1
|
package/es/index.css
CHANGED
|
@@ -4529,11 +4529,13 @@
|
|
|
4529
4529
|
}
|
|
4530
4530
|
.resource-list-footer,
|
|
4531
4531
|
.resource-list-header,
|
|
4532
|
+
.resource-list-content .resource-list-content-empty,
|
|
4532
4533
|
.resource-list-content .arco-scrollbar-container {
|
|
4533
4534
|
padding: 0 40px;
|
|
4534
4535
|
}
|
|
4535
4536
|
.resource-list-footer {
|
|
4536
4537
|
display: flex;
|
|
4538
|
+
flex-wrap: wrap;
|
|
4537
4539
|
justify-content: space-between;
|
|
4538
4540
|
padding-bottom: 20px;
|
|
4539
4541
|
}
|
|
@@ -4543,6 +4545,10 @@
|
|
|
4543
4545
|
gap: 10px;
|
|
4544
4546
|
align-items: center;
|
|
4545
4547
|
justify-content: flex-end;
|
|
4548
|
+
margin-top: 10px;
|
|
4549
|
+
}
|
|
4550
|
+
.resource-list-footer .footer-right .list-selected-wrapper {
|
|
4551
|
+
font-size: 12px;
|
|
4546
4552
|
}
|
|
4547
4553
|
.resource-list-content-loading {
|
|
4548
4554
|
display: flex;
|
|
@@ -4554,7 +4560,7 @@
|
|
|
4554
4560
|
.resource-list .list-item-grid {
|
|
4555
4561
|
display: grid;
|
|
4556
4562
|
grid-gap: 20px;
|
|
4557
|
-
grid-template-columns: repeat(
|
|
4563
|
+
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
4558
4564
|
}
|
|
4559
4565
|
.resource-list .list-content {
|
|
4560
4566
|
margin-top: 30px;
|
|
@@ -4597,7 +4603,8 @@
|
|
|
4597
4603
|
}
|
|
4598
4604
|
.resource-list .list-filter-wrapper .list-filter-tags {
|
|
4599
4605
|
display: flex;
|
|
4600
|
-
|
|
4606
|
+
flex-wrap: wrap;
|
|
4607
|
+
gap: 10px;
|
|
4601
4608
|
margin-top: 10px;
|
|
4602
4609
|
}
|
|
4603
4610
|
.resource-list .list-filter-wrapper .list-filter-tags .list-filter-tag {
|
|
@@ -4618,16 +4625,41 @@
|
|
|
4618
4625
|
justify-content: space-between;
|
|
4619
4626
|
}
|
|
4620
4627
|
.resource-list .list-filter-wrapper .list-filter .filter-list {
|
|
4628
|
+
position: relative;
|
|
4629
|
+
/** 给 popup 一个参考 */
|
|
4621
4630
|
display: flex;
|
|
4622
|
-
flex-wrap: wrap;
|
|
4623
|
-
gap: 10px;
|
|
4624
4631
|
}
|
|
4625
4632
|
.resource-list .list-filter-wrapper .list-filter .filter-list .filter-item {
|
|
4626
4633
|
width: 100px;
|
|
4634
|
+
margin-right: 10px;
|
|
4635
|
+
}
|
|
4636
|
+
.resource-list .list-filter-wrapper .list-filter .filter-list .arco-trigger-popup {
|
|
4637
|
+
z-index: 100000 !important;
|
|
4627
4638
|
}
|
|
4628
4639
|
.resource-list .list-filter-wrapper .list-filter .arco-input-prepend {
|
|
4629
4640
|
padding: 0;
|
|
4630
4641
|
}
|
|
4642
|
+
.resource-list .list-filter-wrapper .list-filter .more-btn {
|
|
4643
|
+
position: relative;
|
|
4644
|
+
/** 给 poperjs 一个参考 */
|
|
4645
|
+
}
|
|
4646
|
+
.resource-list .list-filter-wrapper .list-filter .more-btn .filter-pannel {
|
|
4647
|
+
inset: 40px auto auto auto !important;
|
|
4648
|
+
}
|
|
4649
|
+
.resource-list .list-filter-wrapper .filter-extra {
|
|
4650
|
+
display: flex;
|
|
4651
|
+
gap: 10px;
|
|
4652
|
+
}
|
|
4653
|
+
.resource-list .list-filter-wrapper .filter-pannel {
|
|
4654
|
+
z-index: 100000;
|
|
4655
|
+
display: flex;
|
|
4656
|
+
flex-direction: column;
|
|
4657
|
+
gap: 10px;
|
|
4658
|
+
padding: 10px;
|
|
4659
|
+
background-color: #fff;
|
|
4660
|
+
border-radius: 4px;
|
|
4661
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
4662
|
+
}
|
|
4631
4663
|
.resource-list .title {
|
|
4632
4664
|
display: flex;
|
|
4633
4665
|
gap: 8px;
|
|
@@ -4641,6 +4673,10 @@
|
|
|
4641
4673
|
height: 16px;
|
|
4642
4674
|
background-color: #4886ff;
|
|
4643
4675
|
}
|
|
4676
|
+
.resource-select-wrap {
|
|
4677
|
+
width: 100%;
|
|
4678
|
+
height: 100%;
|
|
4679
|
+
}
|
|
4644
4680
|
.resource-select-modal-body {
|
|
4645
4681
|
height: 80vh;
|
|
4646
4682
|
padding: 0;
|
|
@@ -4669,6 +4705,11 @@
|
|
|
4669
4705
|
.resource-select-container .resource-select-header .arco-tabs-content {
|
|
4670
4706
|
display: none !important;
|
|
4671
4707
|
}
|
|
4708
|
+
.resource-select-container .resource-list-content .resource-list-content-empty {
|
|
4709
|
+
box-sizing: border-box;
|
|
4710
|
+
width: 100%;
|
|
4711
|
+
height: 100%;
|
|
4712
|
+
}
|
|
4672
4713
|
.iframe-container {
|
|
4673
4714
|
position: relative;
|
|
4674
4715
|
height: 95vh;
|
|
@@ -4925,6 +4966,10 @@
|
|
|
4925
4966
|
.doc-history-drawer .arco-drawer-footer {
|
|
4926
4967
|
text-align: left;
|
|
4927
4968
|
}
|
|
4969
|
+
.doc-history-modal-wrap {
|
|
4970
|
+
height: 70vh;
|
|
4971
|
+
padding: 0;
|
|
4972
|
+
}
|
|
4928
4973
|
.video-thumb {
|
|
4929
4974
|
display: flex;
|
|
4930
4975
|
flex-direction: column;
|
|
@@ -204,7 +204,8 @@ const _sfc_main = defineComponent({
|
|
|
204
204
|
createElementVNode("div", { class: "transcoding-progress" }, "\u8F6C\u7801\u4E2D\u2026")
|
|
205
205
|
], -1)
|
|
206
206
|
])),
|
|
207
|
-
_: 1
|
|
207
|
+
_: 1,
|
|
208
|
+
__: [1]
|
|
208
209
|
})) : createCommentVNode("v-if", true)
|
|
209
210
|
], 10, _hoisted_10)
|
|
210
211
|
]);
|
|
@@ -221,7 +222,8 @@ const _sfc_main = defineComponent({
|
|
|
221
222
|
default: withCtx(() => _cache[2] || (_cache[2] = [
|
|
222
223
|
createTextVNode("\u52A0\u8F7D\u66F4\u591A\u2026 ")
|
|
223
224
|
])),
|
|
224
|
-
_: 1
|
|
225
|
+
_: 1,
|
|
226
|
+
__: [2]
|
|
225
227
|
})) : (openBlock(), createElementBlock("div", _hoisted_13, "\u6CA1\u6709\u66F4\u591A\u4E86\u2026"))
|
|
226
228
|
])) : createCommentVNode("v-if", true),
|
|
227
229
|
!((_d = _ctx.fileList) == null ? void 0 : _d.length) && !((_e = _ctx.folderList) == null ? void 0 : _e.length) ? (openBlock(), createElementBlock("div", _hoisted_14, _cache[3] || (_cache[3] = [
|
|
@@ -177,7 +177,8 @@ const _sfc_main = defineComponent({
|
|
|
177
177
|
createElementVNode("div", { class: "transcoding-progress" }, "\u8F6C\u7801\u4E2D\u2026")
|
|
178
178
|
], -1)
|
|
179
179
|
])),
|
|
180
|
-
_: 1
|
|
180
|
+
_: 1,
|
|
181
|
+
__: [1]
|
|
181
182
|
})) : createCommentVNode("v-if", true)
|
|
182
183
|
], 2)
|
|
183
184
|
]);
|
|
@@ -194,7 +195,8 @@ const _sfc_main = defineComponent({
|
|
|
194
195
|
default: withCtx(() => _cache[2] || (_cache[2] = [
|
|
195
196
|
createTextVNode("\u52A0\u8F7D\u66F4\u591A\u2026 ")
|
|
196
197
|
])),
|
|
197
|
-
_: 1
|
|
198
|
+
_: 1,
|
|
199
|
+
__: [2]
|
|
198
200
|
}, 8, ["onClick"])) : (openBlock(), createElementBlock("div", _hoisted_13, "\u6CA1\u6709\u66F4\u591A\u4E86\u2026"))
|
|
199
201
|
])) : createCommentVNode("v-if", true),
|
|
200
202
|
!_ctx.fileList.length && !_ctx.folderList.length ? (openBlock(), createElementBlock("div", _hoisted_14, _cache[3] || (_cache[3] = [
|
|
@@ -124,7 +124,8 @@ const _sfc_main = defineComponent({
|
|
|
124
124
|
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
125
125
|
createTextVNode("\u53D6\u6D88")
|
|
126
126
|
])),
|
|
127
|
-
_: 1
|
|
127
|
+
_: 1,
|
|
128
|
+
__: [1]
|
|
128
129
|
}, 8, ["onClick"]),
|
|
129
130
|
createVNode(unref(Button), {
|
|
130
131
|
type: "primary",
|
|
@@ -133,7 +134,8 @@ const _sfc_main = defineComponent({
|
|
|
133
134
|
default: withCtx(() => _cache[2] || (_cache[2] = [
|
|
134
135
|
createTextVNode(" \u786E\u5B9A ")
|
|
135
136
|
])),
|
|
136
|
-
_: 1
|
|
137
|
+
_: 1,
|
|
138
|
+
__: [2]
|
|
137
139
|
})
|
|
138
140
|
], 64)) : createCommentVNode("v-if", true)
|
|
139
141
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
@@ -143,7 +145,8 @@ const _sfc_main = defineComponent({
|
|
|
143
145
|
default: withCtx(() => _cache[3] || (_cache[3] = [
|
|
144
146
|
createTextVNode("\u53D6\u6D88")
|
|
145
147
|
])),
|
|
146
|
-
_: 1
|
|
148
|
+
_: 1,
|
|
149
|
+
__: [3]
|
|
147
150
|
}, 8, ["onClick"]),
|
|
148
151
|
createVNode(unref(Button), {
|
|
149
152
|
disabled: isEmpty,
|
|
@@ -153,7 +156,8 @@ const _sfc_main = defineComponent({
|
|
|
153
156
|
default: withCtx(() => _cache[4] || (_cache[4] = [
|
|
154
157
|
createTextVNode(" \u7F16\u8F91 ")
|
|
155
158
|
])),
|
|
156
|
-
_: 2
|
|
159
|
+
_: 2,
|
|
160
|
+
__: [4]
|
|
157
161
|
}, 1032, ["disabled", "onClick"]),
|
|
158
162
|
createVNode(unref(Button), {
|
|
159
163
|
disabled: isEmpty,
|
|
@@ -163,7 +167,8 @@ const _sfc_main = defineComponent({
|
|
|
163
167
|
default: withCtx(() => _cache[5] || (_cache[5] = [
|
|
164
168
|
createTextVNode(" \u4F7F\u7528 ")
|
|
165
169
|
])),
|
|
166
|
-
_: 2
|
|
170
|
+
_: 2,
|
|
171
|
+
__: [5]
|
|
167
172
|
}, 1032, ["disabled", "onClick"])
|
|
168
173
|
], 64))
|
|
169
174
|
]),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent, inject, computed, openBlock, createBlock, withCtx, renderSlot, createElementVNode, createVNode, unref, createElementBlock, toDisplayString, createCommentVNode, Fragment, renderList } from "vue";
|
|
1
|
+
import { defineComponent, inject, computed, onMounted, openBlock, createBlock, withCtx, renderSlot, createElementVNode, createVNode, unref, createElementBlock, toDisplayString, createCommentVNode, Fragment, renderList } from "vue";
|
|
2
2
|
import _sfc_main$2 from "./Upload.js";
|
|
3
|
-
import useUpload from "../../../../hooks/useUpload.js";
|
|
3
|
+
import useUpload, { useUploadConfig } from "../../../../hooks/useUpload.js";
|
|
4
4
|
import _sfc_main$1 from "../ListWraper.js";
|
|
5
5
|
const _hoisted_1 = { class: "list-upload" };
|
|
6
6
|
const _hoisted_2 = { class: "list-content" };
|
|
@@ -22,6 +22,7 @@ const _sfc_main = defineComponent({
|
|
|
22
22
|
var _a;
|
|
23
23
|
return (_a = userInfo == null ? void 0 : userInfo.value) == null ? void 0 : _a.repository_id;
|
|
24
24
|
});
|
|
25
|
+
const { template, initTemplate } = useUploadConfig();
|
|
25
26
|
const { list, uploadFile, reTranscode, transcodingFile, removeRecord } = useUpload();
|
|
26
27
|
function handleChange(file) {
|
|
27
28
|
if (!baseAPI || !repoId.value)
|
|
@@ -31,7 +32,8 @@ const _sfc_main = defineComponent({
|
|
|
31
32
|
file.file,
|
|
32
33
|
0,
|
|
33
34
|
repoId.value,
|
|
34
|
-
(media) => transcodingFile(baseAPI, media, repoId.value)
|
|
35
|
+
(media) => transcodingFile(baseAPI, media, repoId.value),
|
|
36
|
+
{ template: template.value }
|
|
35
37
|
);
|
|
36
38
|
}
|
|
37
39
|
async function handleOptions(e) {
|
|
@@ -54,6 +56,9 @@ const _sfc_main = defineComponent({
|
|
|
54
56
|
removeRecord(e.item);
|
|
55
57
|
}
|
|
56
58
|
}
|
|
59
|
+
onMounted(() => {
|
|
60
|
+
initTemplate(baseAPI);
|
|
61
|
+
});
|
|
57
62
|
return (_ctx, _cache) => {
|
|
58
63
|
return openBlock(), createBlock(_sfc_main$1, null, {
|
|
59
64
|
"footer-extra": withCtx(() => [
|
|
@@ -73,7 +78,7 @@ const _sfc_main = defineComponent({
|
|
|
73
78
|
return openBlock(), createElementBlock(Fragment, {
|
|
74
79
|
key: item.sig_id
|
|
75
80
|
}, [
|
|
76
|
-
createCommentVNode(" \n onOptions \u7528\u4E8E\u5904\u7406\u5361\u7247\u91CC\u5916\u90E8\u4E0D\u80FD\u6355\u83B7\u7684\u64CD\u4F5C\n 1. \u6BD4\u5982\u5916\u90E8\u65E0\u6CD5\u5904\u7406\u9700\u8981\u91CD\u65B0\u4E0A\u4F20/\u8F6C\u7801/\u5220\u9664\u7684\u903B\u8F91 \n 2. \u90A3\u4E48\u5C31\u5C06\u5904\u7406\u7684\u65B9\u6CD5\u4E5F\u4E00\u540C\u629B\u51FA\uFF0C\u7531\u5916\u90E8\u8C03\u7528\n "),
|
|
81
|
+
createCommentVNode(" \r\n onOptions \u7528\u4E8E\u5904\u7406\u5361\u7247\u91CC\u5916\u90E8\u4E0D\u80FD\u6355\u83B7\u7684\u64CD\u4F5C\r\n 1. \u6BD4\u5982\u5916\u90E8\u65E0\u6CD5\u5904\u7406\u9700\u8981\u91CD\u65B0\u4E0A\u4F20/\u8F6C\u7801/\u5220\u9664\u7684\u903B\u8F91 \r\n 2. \u90A3\u4E48\u5C31\u5C06\u5904\u7406\u7684\u65B9\u6CD5\u4E5F\u4E00\u540C\u629B\u51FA\uFF0C\u7531\u5916\u90E8\u8C03\u7528\r\n "),
|
|
77
82
|
renderSlot(_ctx.$slots, "item", {
|
|
78
83
|
item,
|
|
79
84
|
onOptions: handleOptions
|