@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
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 };
|
|
@@ -38,9 +38,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
38
38
|
});
|
|
39
39
|
return _columns;
|
|
40
40
|
});
|
|
41
|
-
const getOptions = (
|
|
42
|
-
return item
|
|
43
|
-
|
|
41
|
+
const getOptions = vue.computed(() => {
|
|
42
|
+
return (item) => {
|
|
43
|
+
return item.options ? item.options : [];
|
|
44
|
+
};
|
|
45
|
+
});
|
|
44
46
|
const hasValue = vue.computed(() => {
|
|
45
47
|
return (key) => {
|
|
46
48
|
var _a, _b;
|
|
@@ -77,7 +79,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
77
79
|
_form[column.range] = rangeTemp[column.range];
|
|
78
80
|
} else if (column.component === "select") {
|
|
79
81
|
_form[column.key] = column.defaultValue || null;
|
|
80
|
-
} else {
|
|
82
|
+
} else if (column.component === "input-group") {
|
|
83
|
+
_form[column.selectKey] = column.selectDefaultValue || "";
|
|
84
|
+
_form[column.inputKey] = column.inputDefaultValue || "";
|
|
85
|
+
} else if (column.component) {
|
|
81
86
|
_form[column.key] = column.defaultValue || "";
|
|
82
87
|
}
|
|
83
88
|
});
|
|
@@ -179,17 +184,48 @@ const _sfc_main = vue.defineComponent({
|
|
|
179
184
|
active: hasValue.value(item.key)
|
|
180
185
|
}, {
|
|
181
186
|
default: vue.withCtx(() => [
|
|
182
|
-
item.component === "input" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.
|
|
183
|
-
|
|
187
|
+
item.slot ? vue.renderSlot(_ctx.$slots, item.slot, { key: 0 }) : item.component === "input-group" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.InputGroup), { key: 1 }, {
|
|
188
|
+
default: vue.withCtx(() => [
|
|
189
|
+
vue.createVNode(vue.unref(webVue.Select), {
|
|
190
|
+
modelValue: form.value[item.selectKey],
|
|
191
|
+
"onUpdate:modelValue": ($event) => form.value[item.selectKey] = $event,
|
|
192
|
+
"default-active-first-option": "",
|
|
193
|
+
style: { "width": "100px" }
|
|
194
|
+
}, {
|
|
195
|
+
default: vue.withCtx(() => [
|
|
196
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.selectOptions, (option, idx) => {
|
|
197
|
+
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
|
|
198
|
+
key: idx,
|
|
199
|
+
value: option.value
|
|
200
|
+
}, {
|
|
201
|
+
default: vue.withCtx(() => [
|
|
202
|
+
vue.createTextVNode(vue.toDisplayString(option.label), 1)
|
|
203
|
+
]),
|
|
204
|
+
_: 2
|
|
205
|
+
}, 1032, ["value"]);
|
|
206
|
+
}), 128))
|
|
207
|
+
]),
|
|
208
|
+
_: 2
|
|
209
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"]),
|
|
210
|
+
vue.createVNode(vue.unref(webVue.Input), {
|
|
211
|
+
modelValue: form.value[item.inputKey],
|
|
212
|
+
"onUpdate:modelValue": ($event) => form.value[item.inputKey] = $event,
|
|
213
|
+
placeholder: item.placeholder ? item.placeholder : `\u8BF7\u8F93\u5165${item.inputLabel}`,
|
|
214
|
+
style: { "width": "180px" }
|
|
215
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
216
|
+
]),
|
|
217
|
+
_: 2
|
|
218
|
+
}, 1024)) : item.component === "input" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.InputSearch), {
|
|
219
|
+
key: 2,
|
|
184
220
|
modelValue: form.value[item.key],
|
|
185
221
|
"onUpdate:modelValue": ($event) => form.value[item.key] = $event,
|
|
186
222
|
style: vue.normalizeStyle({ width: styleWidth(columnsMap.value[item.key]) }),
|
|
187
223
|
"allow-clear": "",
|
|
188
224
|
size: "medium",
|
|
189
|
-
placeholder: `\u8BF7\u8F93\u5165${item.label}`
|
|
225
|
+
placeholder: item.placeholder ? item.placeholder : `\u8BF7\u8F93\u5165${item.label}`
|
|
190
226
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder"])) : vue.createCommentVNode("v-if", true),
|
|
191
227
|
item.component === "select" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Select), {
|
|
192
|
-
key:
|
|
228
|
+
key: 3,
|
|
193
229
|
modelValue: form.value[item.key],
|
|
194
230
|
"onUpdate:modelValue": ($event) => form.value[item.key] = $event,
|
|
195
231
|
"popup-container": "#base-filter-popup-container",
|
|
@@ -197,13 +233,13 @@ const _sfc_main = vue.defineComponent({
|
|
|
197
233
|
"allow-search": item.allowSearch,
|
|
198
234
|
"default-active-first-option": false,
|
|
199
235
|
style: vue.normalizeStyle({ width: styleWidth(columnsMap.value[item.key]) }),
|
|
200
|
-
placeholder: `\u8BF7\u9009\u62E9${item.label}`,
|
|
236
|
+
placeholder: item.placeholder ? item.placeholder : `\u8BF7\u9009\u62E9${item.label}`,
|
|
201
237
|
onSearch: ($event) => handleSelectSearch($event, item),
|
|
202
238
|
onPopupVisibleChange: ($event) => handleSelectPopupChange($event, item),
|
|
203
239
|
onChange: ($event) => handleSelectChange($event, item)
|
|
204
240
|
}, {
|
|
205
241
|
default: vue.withCtx(() => [
|
|
206
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(getOptions(item), (opt) => {
|
|
242
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(getOptions.value(item), (opt) => {
|
|
207
243
|
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
|
|
208
244
|
key: opt.value,
|
|
209
245
|
label: opt.label,
|
|
@@ -214,7 +250,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
214
250
|
_: 2
|
|
215
251
|
}, 1032, ["modelValue", "onUpdate:modelValue", "allow-search", "style", "placeholder", "onSearch", "onPopupVisibleChange", "onChange"])) : vue.createCommentVNode("v-if", true),
|
|
216
252
|
item.component === "range-picker" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.RangePicker), {
|
|
217
|
-
key:
|
|
253
|
+
key: 4,
|
|
218
254
|
modelValue: form.value[item.key].range,
|
|
219
255
|
"onUpdate:modelValue": ($event) => form.value[item.key].range = $event,
|
|
220
256
|
style: vue.normalizeStyle({ width: styleWidth(form.value[item.key]) }),
|
|
@@ -225,7 +261,28 @@ const _sfc_main = vue.defineComponent({
|
|
|
225
261
|
"popup-container": "#base-filter-popup-container",
|
|
226
262
|
onClick: _cache[1] || (_cache[1] = vue.withModifiers(() => {
|
|
227
263
|
}, ["stop"]))
|
|
228
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "style"])) : vue.createCommentVNode("v-if", true)
|
|
264
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "style"])) : vue.createCommentVNode("v-if", true),
|
|
265
|
+
item.component === "radio" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.RadioGroup), {
|
|
266
|
+
key: 5,
|
|
267
|
+
modelValue: form.value[item.key],
|
|
268
|
+
"onUpdate:modelValue": ($event) => form.value[item.key] = $event,
|
|
269
|
+
type: "button"
|
|
270
|
+
}, {
|
|
271
|
+
default: vue.withCtx(() => [
|
|
272
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.options || [], (option, idx) => {
|
|
273
|
+
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Radio), {
|
|
274
|
+
key: idx,
|
|
275
|
+
value: option.value
|
|
276
|
+
}, {
|
|
277
|
+
default: vue.withCtx(() => [
|
|
278
|
+
vue.createTextVNode(vue.toDisplayString(option.label), 1)
|
|
279
|
+
]),
|
|
280
|
+
_: 2
|
|
281
|
+
}, 1032, ["value"]);
|
|
282
|
+
}), 128))
|
|
283
|
+
]),
|
|
284
|
+
_: 2
|
|
285
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
229
286
|
]),
|
|
230
287
|
_: 2
|
|
231
288
|
}, 1032, ["active"]);
|
package/lib/config.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3
3
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
4
|
-
const DEFAULT_BASE_API = ((_b = (_a = window.situoyun) == null ? void 0 : _a.env) == null ? void 0 : _b.BASE_HOST) || "https://site.cmstop.xyz";
|
|
4
|
+
const DEFAULT_BASE_API = ((_b = (_a = window.situoyun) == null ? void 0 : _a.env) == null ? void 0 : _b.BASE_HOST) || "https://site.r.cmstop.xyz";
|
|
5
5
|
const DEFAULT_BASE_ACCOUNT_HOST = ((_d = (_c = window.situoyun) == null ? void 0 : _c.env) == null ? void 0 : _d.BASE_ACCOUNT_HOST) || "https://account.cmstop.xyz";
|
|
6
6
|
const DEFAULT_UPLOAD_CHUNK_SIZE = ((_f = (_e = window.situoyun) == null ? void 0 : _e.env) == null ? void 0 : _f.UPLOAD_CHUNK_SIZE) || 5242880;
|
|
7
7
|
const DEFAULT_UPLOAD_URL = ((_h = (_g = window.situoyun) == null ? void 0 : _g.env) == null ? void 0 : _h.BASE_STATIC_FILE_API) || "https://oss.cmstop.xyz/maple/v1";
|
|
@@ -109,6 +109,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
109
109
|
onCellMouseEnter: tableCellMouseEnter,
|
|
110
110
|
onCellMouseLeave: tableCellMouseLeave
|
|
111
111
|
}, {
|
|
112
|
+
"after-index": vue.withCtx(() => [
|
|
113
|
+
vue.renderSlot(_ctx.$slots, "after-index", {
|
|
114
|
+
row: element,
|
|
115
|
+
index: index$4
|
|
116
|
+
})
|
|
117
|
+
]),
|
|
112
118
|
batch: vue.withCtx(() => [
|
|
113
119
|
vue.renderSlot(_ctx.$slots, "batch", {
|
|
114
120
|
row: element,
|
|
@@ -133,6 +139,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
133
139
|
onCellMouseEnter: tableCellMouseEnter,
|
|
134
140
|
onCellMouseLeave: tableCellMouseLeave
|
|
135
141
|
}, {
|
|
142
|
+
"after-index": vue.withCtx(() => [
|
|
143
|
+
vue.renderSlot(_ctx.$slots, "after-index", {
|
|
144
|
+
row: element,
|
|
145
|
+
index: index$4
|
|
146
|
+
})
|
|
147
|
+
]),
|
|
136
148
|
tip: vue.withCtx(() => [
|
|
137
149
|
vue.renderSlot(_ctx.$slots, "tip", {
|
|
138
150
|
row: element,
|
|
@@ -229,6 +241,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
229
241
|
onCellMouseEnter: tableCellMouseEnter,
|
|
230
242
|
onCellMouseLeave: tableCellMouseLeave
|
|
231
243
|
}, {
|
|
244
|
+
"after-index": vue.withCtx(() => [
|
|
245
|
+
vue.renderSlot(_ctx.$slots, "after-index", {
|
|
246
|
+
row: item,
|
|
247
|
+
index: index$4
|
|
248
|
+
})
|
|
249
|
+
]),
|
|
232
250
|
batch: vue.withCtx(() => [
|
|
233
251
|
vue.renderSlot(_ctx.$slots, "batch", {
|
|
234
252
|
row: item,
|
|
@@ -253,6 +271,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
253
271
|
onCellMouseEnter: tableCellMouseEnter,
|
|
254
272
|
onCellMouseLeave: tableCellMouseLeave
|
|
255
273
|
}, {
|
|
274
|
+
"after-index": vue.withCtx(() => [
|
|
275
|
+
vue.renderSlot(_ctx.$slots, "after-index", {
|
|
276
|
+
row: item,
|
|
277
|
+
index: index$4
|
|
278
|
+
})
|
|
279
|
+
]),
|
|
256
280
|
tip: vue.withCtx(() => [
|
|
257
281
|
vue.renderSlot(_ctx.$slots, "tip", {
|
|
258
282
|
row: item,
|
|
@@ -143,7 +143,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
143
143
|
})
|
|
144
144
|
]),
|
|
145
145
|
index: vue.withCtx(() => [
|
|
146
|
-
vue.createElementVNode("span", _hoisted_1, vue.toDisplayString(_ctx.index + 1), 1)
|
|
146
|
+
vue.createElementVNode("span", _hoisted_1, vue.toDisplayString(_ctx.index + 1), 1),
|
|
147
|
+
vue.renderSlot(_ctx.$slots, "after-index")
|
|
147
148
|
]),
|
|
148
149
|
tip: vue.withCtx(() => [
|
|
149
150
|
vue.createCommentVNode(" \u5148\u6DFB\u52A0\u6587\u4EF6\u8D44\u6E90\uFF0C\u672A\u53D1\u5E03 "),
|
|
@@ -38,6 +38,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
38
38
|
index: _ctx.index
|
|
39
39
|
})
|
|
40
40
|
]),
|
|
41
|
+
"after-index": vue.withCtx(() => [
|
|
42
|
+
vue.renderSlot(_ctx.$slots, "after-index", {
|
|
43
|
+
row: _ctx.element,
|
|
44
|
+
index: _ctx.index
|
|
45
|
+
})
|
|
46
|
+
]),
|
|
41
47
|
batch: vue.withCtx(() => [
|
|
42
48
|
vue.renderSlot(_ctx.$slots, "batch", {
|
|
43
49
|
row: _ctx.item,
|
|
@@ -253,7 +253,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
253
253
|
default: vue.withCtx(() => _cache[5] || (_cache[5] = [
|
|
254
254
|
vue.createTextVNode(" \u751F\u6210\u9884\u89C8\u94FE\u63A5 ")
|
|
255
255
|
])),
|
|
256
|
-
_: 1
|
|
256
|
+
_: 1,
|
|
257
|
+
__: [5]
|
|
257
258
|
})) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
258
259
|
vue.createVNode(vue.unref(webVue.Button), {
|
|
259
260
|
class: "auto",
|
|
@@ -263,7 +264,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
263
264
|
default: vue.withCtx(() => _cache[6] || (_cache[6] = [
|
|
264
265
|
vue.createTextVNode(" \u590D\u5236\u4E8C\u7EF4\u7801 ")
|
|
265
266
|
])),
|
|
266
|
-
_: 1
|
|
267
|
+
_: 1,
|
|
268
|
+
__: [6]
|
|
267
269
|
}),
|
|
268
270
|
vue.createVNode(vue.unref(webVue.Button), {
|
|
269
271
|
class: "auto",
|
|
@@ -161,7 +161,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
161
161
|
default: vue.withCtx(() => _cache[8] || (_cache[8] = [
|
|
162
162
|
vue.createTextVNode("\u6DFB\u52A0 ")
|
|
163
163
|
])),
|
|
164
|
-
_: 1
|
|
164
|
+
_: 1,
|
|
165
|
+
__: [8]
|
|
165
166
|
}, 8, ["disabled"])
|
|
166
167
|
]),
|
|
167
168
|
_: 1
|
|
@@ -200,7 +201,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
200
201
|
default: vue.withCtx(() => _cache[9] || (_cache[9] = [
|
|
201
202
|
vue.createTextVNode(" \u6DFB\u52A0 ")
|
|
202
203
|
])),
|
|
203
|
-
_: 1
|
|
204
|
+
_: 1,
|
|
205
|
+
__: [9]
|
|
204
206
|
}, 8, ["disabled"])
|
|
205
207
|
]),
|
|
206
208
|
_: 1
|
|
@@ -240,7 +242,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
240
242
|
default: vue.withCtx(() => _cache[10] || (_cache[10] = [
|
|
241
243
|
vue.createTextVNode(" \u6DFB\u52A0 ")
|
|
242
244
|
])),
|
|
243
|
-
_: 1
|
|
245
|
+
_: 1,
|
|
246
|
+
__: [10]
|
|
244
247
|
}, 8, ["disabled"])
|
|
245
248
|
]),
|
|
246
249
|
_: 1
|
|
@@ -279,7 +282,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
279
282
|
default: vue.withCtx(() => _cache[11] || (_cache[11] = [
|
|
280
283
|
vue.createTextVNode(" \u6DFB\u52A0 ")
|
|
281
284
|
])),
|
|
282
|
-
_: 1
|
|
285
|
+
_: 1,
|
|
286
|
+
__: [11]
|
|
283
287
|
}, 8, ["disabled"])
|
|
284
288
|
]),
|
|
285
289
|
_: 1
|
|
@@ -318,7 +322,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
318
322
|
default: vue.withCtx(() => _cache[12] || (_cache[12] = [
|
|
319
323
|
vue.createTextVNode(" \u6DFB\u52A0 ")
|
|
320
324
|
])),
|
|
321
|
-
_: 1
|
|
325
|
+
_: 1,
|
|
326
|
+
__: [12]
|
|
322
327
|
}, 8, ["disabled"])
|
|
323
328
|
]),
|
|
324
329
|
_: 1
|
|
@@ -357,7 +362,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
357
362
|
default: vue.withCtx(() => _cache[13] || (_cache[13] = [
|
|
358
363
|
vue.createTextVNode(" \u6DFB\u52A0 ")
|
|
359
364
|
])),
|
|
360
|
-
_: 1
|
|
365
|
+
_: 1,
|
|
366
|
+
__: [13]
|
|
361
367
|
}, 8, ["disabled"])
|
|
362
368
|
]),
|
|
363
369
|
_: 1
|
|
@@ -396,7 +402,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
396
402
|
default: vue.withCtx(() => _cache[14] || (_cache[14] = [
|
|
397
403
|
vue.createTextVNode(" \u6DFB\u52A0 ")
|
|
398
404
|
])),
|
|
399
|
-
_: 1
|
|
405
|
+
_: 1,
|
|
406
|
+
__: [14]
|
|
400
407
|
}, 8, ["disabled"])
|
|
401
408
|
]),
|
|
402
409
|
_: 1
|
|
@@ -434,7 +441,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
434
441
|
default: vue.withCtx(() => _cache[15] || (_cache[15] = [
|
|
435
442
|
vue.createTextVNode(" \u6DFB\u52A0 ")
|
|
436
443
|
])),
|
|
437
|
-
_: 1
|
|
444
|
+
_: 1,
|
|
445
|
+
__: [15]
|
|
438
446
|
}, 8, ["disabled"])
|
|
439
447
|
]),
|
|
440
448
|
_: 1
|
|
@@ -287,7 +287,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
287
287
|
vue.createVNode(vue.unref(icon.IconRefresh), { class: "reset-icon" }),
|
|
288
288
|
_cache[7] || (_cache[7] = vue.createTextVNode(" \u91CD\u7F6E "))
|
|
289
289
|
]),
|
|
290
|
-
_: 1
|
|
290
|
+
_: 1,
|
|
291
|
+
__: [7]
|
|
291
292
|
}, 512), [
|
|
292
293
|
[vue.vShow, showReset.value]
|
|
293
294
|
])
|
|
@@ -84,7 +84,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
84
84
|
default: vue.withCtx(() => _cache[1] || (_cache[1] = [
|
|
85
85
|
vue.createTextVNode("\u6E05\u7A7A")
|
|
86
86
|
])),
|
|
87
|
-
_: 1
|
|
87
|
+
_: 1,
|
|
88
|
+
__: [1]
|
|
88
89
|
})
|
|
89
90
|
])
|
|
90
91
|
]),
|
|
@@ -100,7 +101,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
100
101
|
default: vue.withCtx(() => _cache[0] || (_cache[0] = [
|
|
101
102
|
vue.createTextVNode("\u5DF2\u9009\u6570\u636E")
|
|
102
103
|
])),
|
|
103
|
-
_: 1
|
|
104
|
+
_: 1,
|
|
105
|
+
__: [0]
|
|
104
106
|
})) : vue.createCommentVNode("v-if", true)
|
|
105
107
|
]),
|
|
106
108
|
_: 1
|
|
@@ -134,7 +134,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
134
134
|
default: vue.withCtx(() => _cache[1] || (_cache[1] = [
|
|
135
135
|
vue.createTextVNode("\u539F\u521B")
|
|
136
136
|
])),
|
|
137
|
-
_: 1
|
|
137
|
+
_: 1,
|
|
138
|
+
__: [1]
|
|
138
139
|
}, 8, ["class"])
|
|
139
140
|
]),
|
|
140
141
|
_: 1
|
|
@@ -152,7 +153,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
152
153
|
default: vue.withCtx(() => _cache[2] || (_cache[2] = [
|
|
153
154
|
vue.createTextVNode("\u63A8\u8350")
|
|
154
155
|
])),
|
|
155
|
-
_: 1
|
|
156
|
+
_: 1,
|
|
157
|
+
__: [2]
|
|
156
158
|
}, 8, ["class"])
|
|
157
159
|
]),
|
|
158
160
|
_: 1
|
|
@@ -170,7 +172,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
170
172
|
default: vue.withCtx(() => _cache[3] || (_cache[3] = [
|
|
171
173
|
vue.createTextVNode("\u654F\u611F")
|
|
172
174
|
])),
|
|
173
|
-
_: 1
|
|
175
|
+
_: 1,
|
|
176
|
+
__: [3]
|
|
174
177
|
}, 8, ["class"])
|
|
175
178
|
]),
|
|
176
179
|
_: 1
|
|
@@ -188,7 +191,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
188
191
|
default: vue.withCtx(() => _cache[4] || (_cache[4] = [
|
|
189
192
|
vue.createTextVNode("\u5DF2\u63A8\u9001")
|
|
190
193
|
])),
|
|
191
|
-
_: 1
|
|
194
|
+
_: 1,
|
|
195
|
+
__: [4]
|
|
192
196
|
}, 8, ["class"])
|
|
193
197
|
]),
|
|
194
198
|
_: 1
|
|
@@ -224,7 +228,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
224
228
|
default: vue.withCtx(() => _cache[5] || (_cache[5] = [
|
|
225
229
|
vue.createTextVNode(" \u77E9\u9635\u5206\u53D1 ")
|
|
226
230
|
])),
|
|
227
|
-
_: 1
|
|
231
|
+
_: 1,
|
|
232
|
+
__: [5]
|
|
228
233
|
}, 8, ["class"])
|
|
229
234
|
]),
|
|
230
235
|
_: 1
|
|
@@ -14,9 +14,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
14
14
|
__name: "component",
|
|
15
15
|
props: {
|
|
16
16
|
BASE_API: {},
|
|
17
|
+
wrap: { default: "drawer" },
|
|
17
18
|
visible: { type: Boolean },
|
|
18
19
|
docInfo: {},
|
|
19
|
-
pub: { type: Boolean }
|
|
20
|
+
pub: { type: Boolean },
|
|
21
|
+
currentIdx: {}
|
|
20
22
|
},
|
|
21
23
|
emits: ["update:visible", "select"],
|
|
22
24
|
setup(__props, { emit: __emit }) {
|
|
@@ -28,6 +30,20 @@ const _sfc_main = vue.defineComponent({
|
|
|
28
30
|
emits("update:visible", val);
|
|
29
31
|
}
|
|
30
32
|
});
|
|
33
|
+
const wrapProps = vue.computed(() => {
|
|
34
|
+
if (props.wrap === "drawer") {
|
|
35
|
+
return {
|
|
36
|
+
class: "doc-history-drawer-wrap",
|
|
37
|
+
title: "\u7248\u672C\u8BB0\u5F55",
|
|
38
|
+
width: 1e3
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
bodyClass: "doc-history-modal-wrap",
|
|
43
|
+
title: "\u7248\u672C\u8BB0\u5F55",
|
|
44
|
+
width: 1e3
|
|
45
|
+
};
|
|
46
|
+
});
|
|
31
47
|
const BASE_API = props.BASE_API || config.DEFAULT_BASE_API;
|
|
32
48
|
const {
|
|
33
49
|
initParams,
|
|
@@ -38,6 +54,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
38
54
|
list,
|
|
39
55
|
current
|
|
40
56
|
} = useDocHistory.useDocHistory(BASE_API);
|
|
57
|
+
const wrapComponent = {
|
|
58
|
+
drawer: webVue.Drawer,
|
|
59
|
+
modal: webVue.Modal
|
|
60
|
+
};
|
|
41
61
|
function handeRevert() {
|
|
42
62
|
emits("select", list.value[current.value]);
|
|
43
63
|
}
|
|
@@ -50,20 +70,29 @@ const _sfc_main = vue.defineComponent({
|
|
|
50
70
|
},
|
|
51
71
|
{ immediate: true }
|
|
52
72
|
);
|
|
53
|
-
vue.
|
|
73
|
+
vue.watch(
|
|
74
|
+
() => props.currentIdx,
|
|
75
|
+
(val) => {
|
|
76
|
+
if (val) {
|
|
77
|
+
handleSelect(val);
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{ immediate: true }
|
|
81
|
+
);
|
|
82
|
+
vue.onMounted(async () => {
|
|
54
83
|
if (!props.docInfo)
|
|
55
84
|
return;
|
|
56
85
|
initParams(props.docInfo.id, props.pub);
|
|
57
|
-
loadData();
|
|
86
|
+
await loadData();
|
|
87
|
+
if (props.currentIdx) {
|
|
88
|
+
handleSelect(props.currentIdx);
|
|
89
|
+
}
|
|
58
90
|
});
|
|
59
91
|
return (_ctx, _cache) => {
|
|
60
|
-
return vue.openBlock(), vue.createBlock(vue.
|
|
92
|
+
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(wrapComponent[_ctx.wrap]), vue.mergeProps({
|
|
61
93
|
visible: vis.value,
|
|
62
|
-
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => vis.value = $event)
|
|
63
|
-
|
|
64
|
-
title: "\u7248\u672C\u8BB0\u5F55",
|
|
65
|
-
width: 1e3
|
|
66
|
-
}, {
|
|
94
|
+
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => vis.value = $event)
|
|
95
|
+
}, wrapProps.value), {
|
|
67
96
|
footer: vue.withCtx(() => [
|
|
68
97
|
vue.createVNode(vue.unref(webVue.Button), {
|
|
69
98
|
type: "primary",
|
|
@@ -73,7 +102,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
73
102
|
default: vue.withCtx(() => _cache[1] || (_cache[1] = [
|
|
74
103
|
vue.createTextVNode(" \u8FD8\u539F\u6B64\u7248\u672C ")
|
|
75
104
|
])),
|
|
76
|
-
_: 1
|
|
105
|
+
_: 1,
|
|
106
|
+
__: [1]
|
|
77
107
|
}, 8, ["disabled"])
|
|
78
108
|
]),
|
|
79
109
|
default: vue.withCtx(() => [
|
|
@@ -124,7 +154,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
124
154
|
])
|
|
125
155
|
]),
|
|
126
156
|
_: 1
|
|
127
|
-
},
|
|
157
|
+
}, 16, ["visible"]);
|
|
128
158
|
};
|
|
129
159
|
}
|
|
130
160
|
});
|
|
@@ -40,15 +40,16 @@ function CompareText(v_LeftList, v_RightList, lftPNode = null) {
|
|
|
40
40
|
for (let i = 0; i < rightLen; i++) {
|
|
41
41
|
if (!rightFather)
|
|
42
42
|
rightFather = v_RightList[i].parentNode;
|
|
43
|
-
const node = v_RightList[i].
|
|
43
|
+
const node = v_RightList[i].cloneNode(true);
|
|
44
44
|
try {
|
|
45
45
|
rightFather.removeChild(v_RightList[i]);
|
|
46
46
|
} catch (e) {
|
|
47
47
|
console.log(e);
|
|
48
48
|
}
|
|
49
|
-
if (lftPNode)
|
|
49
|
+
if (lftPNode && lftPNode.nodeType !== 3) {
|
|
50
50
|
lftPNode.appendChild(node);
|
|
51
|
-
|
|
51
|
+
PaintRemove(node);
|
|
52
|
+
}
|
|
52
53
|
}
|
|
53
54
|
} else if (rightLen === 0) {
|
|
54
55
|
for (let i = 0; i < leftLen; i++)
|
|
@@ -1,32 +1,37 @@
|
|
|
1
|
-
@import './docDiffPanel.less';
|
|
2
|
-
@import './docHistoryList.less';
|
|
3
|
-
|
|
4
|
-
.doc-history-wrap {
|
|
5
|
-
display: flex;
|
|
6
|
-
width: 100%;
|
|
7
|
-
height: 100%;
|
|
8
|
-
overflow: hidden;
|
|
9
|
-
|
|
10
|
-
.doc-diff-panel {
|
|
11
|
-
flex: 1;
|
|
12
|
-
height: 100%;
|
|
13
|
-
|
|
14
|
-
.doc-diff-panel-wrap {
|
|
15
|
-
padding: 24px;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.doc-history-list {
|
|
20
|
-
height: 100%;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.doc-history-drawer {
|
|
25
|
-
.arco-drawer-body {
|
|
26
|
-
padding: 0;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.arco-drawer-footer {
|
|
30
|
-
text-align: left;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
1
|
+
@import './docDiffPanel.less';
|
|
2
|
+
@import './docHistoryList.less';
|
|
3
|
+
|
|
4
|
+
.doc-history-wrap {
|
|
5
|
+
display: flex;
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 100%;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
|
|
10
|
+
.doc-diff-panel {
|
|
11
|
+
flex: 1;
|
|
12
|
+
height: 100%;
|
|
13
|
+
|
|
14
|
+
.doc-diff-panel-wrap {
|
|
15
|
+
padding: 24px;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.doc-history-list {
|
|
20
|
+
height: 100%;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.doc-history-drawer {
|
|
25
|
+
.arco-drawer-body {
|
|
26
|
+
padding: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.arco-drawer-footer {
|
|
30
|
+
text-align: left;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.doc-history-modal-wrap {
|
|
35
|
+
height: 70vh;
|
|
36
|
+
padding: 0;
|
|
37
|
+
}
|