@cmstops/pro-compo 3.9.2-alpha.2 → 3.9.2-alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.min.js.map +1 -1
- package/es/baseFilter/component.js +71 -14
- package/es/contentDetailList/component.js +24 -0
- package/es/contentDetailList/components/Content/index.js +2 -1
- package/es/contentDetailList/components/Doc/index.js +6 -0
- package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.js +4 -2
- package/es/contentModal/component.js +16 -8
- package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +2 -1
- package/es/contentModal/components/storeBox/index.js +4 -2
- package/es/dataTags/component.js +10 -5
- package/es/docHistory/component.js +43 -13
- package/es/docHistory/scripts/diff.js +4 -3
- package/es/docHistory/style/index.css +4 -0
- package/es/docHistory/style/index.less +5 -0
- package/es/docPreview/component.js +10 -5
- package/es/editMetaInfo/components/metaInfoForm.js +4 -2
- package/es/hooks/useUpload.js +43 -4
- package/es/imageCrop/component.js +4 -2
- package/es/importData/component.js +6 -3
- package/es/index.css +4 -0
- package/es/index.js +1 -0
- package/es/mediaFilter/components/DocFilter.js +2 -1
- package/es/resourceGridList/component.js +4 -2
- package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +2 -1
- package/es/resourceModal/components/MediaSelection/MainContent/index.js +4 -2
- package/es/selectAddTo/component.js +126 -0
- package/es/selectAddTo/component.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
- package/es/selectAddTo/components/ViewAllColumn/MediaFilter/index.js +169 -0
- package/es/selectAddTo/components/ViewAllColumn/columnTree/index.js +151 -0
- package/es/selectAddTo/components/ViewAllColumn/index.js +203 -0
- package/es/selectAddTo/components/ViewAllColumn/index.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
- package/es/selectAddTo/components/ViewAllColumn/script/useTableColumns.js +78 -0
- package/es/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +193 -0
- package/es/selectAddTo/index.js +16 -0
- package/es/selectAddTo/script/api.js +36 -0
- package/es/selectAddTo/script/useSelectAddToState.js +106 -0
- package/es/selectAddTo/style/css.js +1 -0
- package/es/selectAddTo/style/index.css +3 -0
- package/es/selectAddTo/style/index.js +1 -0
- package/es/selectAddTo/style/index.less +3 -0
- package/es/selectResourceModal/component.js +10 -5
- package/es/selectResourceModal/components/List/ListLocal/Upload.js +2 -1
- package/es/selectResourceModal/components/List/ListLocal/index.js +8 -3
- package/es/selectResourceModal/components/List/ListNormal/Filter.js +45 -22
- package/es/selectResourceModal/components/List/ListNormal/index.js +0 -1
- package/es/selectResourceModal/components/List/ListSystem/Filter.js +2 -1
- package/es/selectResourceModal/hooks/useResponsiveFilter.js +1 -1
- package/es/style.css +57 -0
- package/es/typeIcons/component.js +1 -1
- package/es/userAvater/component.js +2 -1
- package/es/userDirector/component.js +2 -1
- package/es/utils/index.js +6 -6
- package/lib/baseFilter/component.js +69 -12
- package/lib/contentDetailList/component.js +24 -0
- package/lib/contentDetailList/components/Content/index.js +2 -1
- package/lib/contentDetailList/components/Doc/index.js +6 -0
- package/lib/contentDetailList/components/ShowQRCode/QrcodeView/index.js +4 -2
- package/lib/contentModal/component.js +16 -8
- package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +2 -1
- package/lib/contentModal/components/storeBox/index.js +4 -2
- package/lib/dataTags/component.js +10 -5
- package/lib/docHistory/component.js +41 -11
- package/lib/docHistory/scripts/diff.js +4 -3
- package/lib/docHistory/style/index.css +4 -0
- package/lib/docHistory/style/index.less +5 -0
- package/lib/docPreview/component.js +10 -5
- package/lib/editMetaInfo/components/metaInfoForm.js +4 -2
- package/lib/hooks/useUpload.js +43 -3
- package/lib/imageCrop/component.js +4 -2
- package/lib/importData/component.js +6 -3
- package/lib/index.css +4 -0
- package/lib/index.js +2 -0
- package/lib/mediaFilter/components/DocFilter.js +2 -1
- package/lib/resourceGridList/component.js +4 -2
- package/lib/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +2 -1
- package/lib/resourceModal/components/MediaSelection/MainContent/index.js +4 -2
- package/lib/selectAddTo/component.js +127 -0
- package/lib/selectAddTo/component.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
- package/lib/selectAddTo/components/ViewAllColumn/MediaFilter/index.js +170 -0
- package/lib/selectAddTo/components/ViewAllColumn/columnTree/index.js +152 -0
- package/lib/selectAddTo/components/ViewAllColumn/index.js +204 -0
- package/lib/selectAddTo/components/ViewAllColumn/index.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
- package/lib/selectAddTo/components/ViewAllColumn/script/useTableColumns.js +80 -0
- package/lib/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +195 -0
- package/lib/selectAddTo/index.js +18 -0
- package/lib/selectAddTo/script/api.js +42 -0
- package/lib/selectAddTo/script/useSelectAddToState.js +108 -0
- package/lib/selectAddTo/style/css.js +2 -0
- package/lib/selectAddTo/style/index.css +3 -0
- package/lib/selectAddTo/style/index.js +2 -0
- package/lib/selectAddTo/style/index.less +3 -0
- package/lib/selectResourceModal/component.js +10 -5
- package/lib/selectResourceModal/components/List/ListLocal/Upload.js +2 -1
- package/lib/selectResourceModal/components/List/ListLocal/index.js +6 -1
- package/lib/selectResourceModal/components/List/ListNormal/Filter.js +44 -21
- package/lib/selectResourceModal/components/List/ListNormal/index.js +0 -1
- package/lib/selectResourceModal/components/List/ListSystem/Filter.js +2 -1
- package/lib/selectResourceModal/hooks/useResponsiveFilter.js +1 -1
- package/lib/typeIcons/component.js +1 -1
- package/lib/userAvater/component.js +2 -1
- package/lib/userDirector/component.js +2 -1
- package/lib/utils/index.js +6 -6
- package/package.json +1 -1
- package/es/appCenter/component.d.ts +0 -0
- package/es/appCenter/index.d.ts +0 -2
- package/es/appCenter/script/api.d.ts +0 -11
- package/es/appCenter/script/apps.d.ts +0 -14
- package/es/appCenter/script/permissionMap.d.ts +0 -6
- package/es/appCenter/script/routeMap.d.ts +0 -4
- package/es/appCenter/style/index.d.ts +0 -1
- package/es/baseFilter/component.d.ts +0 -0
- package/es/baseFilter/components/FilterGroup.d.ts +0 -0
- package/es/baseFilter/components/filterItem.d.ts +0 -0
- package/es/baseFilter/index.d.ts +0 -2
- package/es/baseFilter/style/index.d.ts +0 -1
- package/es/baseFilter/useCalcWidth.d.ts +0 -16
- package/es/colorPalette/component.d.ts +0 -0
- package/es/colorPalette/components/colorPicker.d.ts +0 -0
- package/es/colorPalette/index.d.ts +0 -2
- package/es/colorPalette/style/index.d.ts +0 -1
- package/es/components.d.ts +0 -5
- package/es/config.d.ts +0 -4
- package/es/contentDetailList/__demo__/matrix/platform.d.ts +0 -36
- package/es/contentDetailList/component.d.ts +0 -0
- package/es/contentDetailList/components/Content/CompoItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/ContentListItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/DocItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/DocMpItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/GroupPieceItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/KongoNavItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/LiveItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/MaccountItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/courseItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/funhdItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/index.d.ts +0 -0
- package/es/contentDetailList/components/CustomWrp/CustomItem.d.ts +0 -0
- package/es/contentDetailList/components/CustomWrp/index.d.ts +0 -0
- package/es/contentDetailList/components/Doc/index.d.ts +0 -0
- package/es/contentDetailList/components/Records/MatrixItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Records/index.d.ts +0 -0
- package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.d.ts +0 -0
- package/es/contentDetailList/components/ShowQRCode/index.d.ts +0 -0
- package/es/contentDetailList/index.d.ts +0 -2
- package/es/contentDetailList/script/api.d.ts +0 -6
- package/es/contentDetailList/style/index.d.ts +0 -1
- package/es/contentModal/component.d.ts +0 -0
- package/es/contentModal/components/CompoList/CompoFilter/index.d.ts +0 -0
- package/es/contentModal/components/CompoList/index.d.ts +0 -0
- package/es/contentModal/components/ContentList/MediaFilter/index.d.ts +0 -0
- package/es/contentModal/components/ContentList/index.d.ts +0 -0
- package/es/contentModal/components/Dejin/MediaFilter/index.d.ts +0 -0
- package/es/contentModal/components/Dejin/index.d.ts +0 -0
- package/es/contentModal/components/EqxiuList/MediaFilter/index.d.ts +0 -0
- package/es/contentModal/components/EqxiuList/index.d.ts +0 -0
- package/es/contentModal/components/LiveList/MediaFilter/index.d.ts +0 -0
- package/es/contentModal/components/LiveList/index.d.ts +0 -0
- package/es/contentModal/components/MpAccountList/MpAccountFilter/index.d.ts +0 -0
- package/es/contentModal/components/MpAccountList/index.d.ts +0 -0
- package/es/contentModal/components/MpContentList/MediaFilter/index.d.ts +0 -0
- package/es/contentModal/components/MpContentList/index.d.ts +0 -0
- package/es/contentModal/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
- package/es/contentModal/components/ViewAllColumn/columnTree/index.d.ts +0 -0
- package/es/contentModal/components/ViewAllColumn/index.d.ts +0 -0
- package/es/contentModal/components/storeBox/index.d.ts +0 -0
- package/es/contentModal/index.d.ts +0 -2
- package/es/contentModal/script/api.d.ts +0 -18
- package/es/contentModal/style/index.d.ts +0 -1
- package/es/dataTags/component.d.ts +0 -0
- package/es/dataTags/index.d.ts +0 -2
- package/es/dataTags/style/index.d.ts +0 -1
- package/es/docHistory/component.d.ts +0 -0
- package/es/docHistory/components/DocDiffPanel/index.d.ts +0 -0
- package/es/docHistory/components/DocHistoryList/index.d.ts +0 -0
- package/es/docHistory/index.d.ts +0 -2
- package/es/docHistory/scripts/diff.d.ts +0 -1
- package/es/docHistory/scripts/useDocHistory.d.ts +0 -10
- package/es/docHistory/style/index.d.ts +0 -1
- package/es/docPreview/component.d.ts +0 -0
- package/es/docPreview/components/PreviewIframe.d.ts +0 -0
- package/es/docPreview/index.d.ts +0 -2
- package/es/docPreview/scripts/api.d.ts +0 -1
- package/es/docPreview/scripts/hook.d.ts +0 -33
- package/es/docPreview/style/index.d.ts +0 -1
- package/es/editMetaInfo/component.d.ts +0 -0
- package/es/editMetaInfo/components/metaInfoForm.d.ts +0 -0
- package/es/editMetaInfo/index.d.ts +0 -2
- package/es/editMetaInfo/script/api.d.ts +0 -6
- package/es/editMetaInfo/script/restaurants.d.ts +0 -4
- package/es/editMetaInfo/style/index.d.ts +0 -1
- package/es/emptyData/component.d.ts +0 -0
- package/es/emptyData/index.d.ts +0 -2
- package/es/emptyData/style/index.d.ts +0 -1
- package/es/emptyData/svg/add.d.ts +0 -0
- package/es/hooks/assets.d.ts +0 -1
- package/es/hooks/batch.d.ts +0 -8
- package/es/hooks/dialogVisible.d.ts +0 -8
- package/es/hooks/source.d.ts +0 -9
- package/es/hooks/toggle.d.ts +0 -6
- package/es/hooks/useAttachement.d.ts +0 -53
- package/es/hooks/useLocalStorage.d.ts +0 -10
- package/es/hooks/useMediaContext.d.ts +0 -12
- package/es/hooks/usePopper.d.ts +0 -8
- package/es/hooks/useSelection.d.ts +0 -30
- package/es/hooks/useUpload.d.ts +0 -30
- package/es/hooks/user.d.ts +0 -9
- package/es/imageCrop/component.d.ts +0 -0
- package/es/imageCrop/index.d.ts +0 -2
- package/es/imageCrop/script/api.d.ts +0 -1
- package/es/imageCrop/style/index.d.ts +0 -1
- package/es/importData/component.d.ts +0 -0
- package/es/importData/index.d.ts +0 -2
- package/es/importData/style/index.d.ts +0 -1
- package/es/index.d.ts +0 -30
- package/es/mediaFilter/component.d.ts +0 -0
- package/es/mediaFilter/components/DocFilter.d.ts +0 -0
- package/es/mediaFilter/components/FilterGroup.d.ts +0 -0
- package/es/mediaFilter/components/FilterItem.d.ts +0 -0
- package/es/mediaFilter/components/MpAccountFilter.d.ts +0 -0
- package/es/mediaFilter/components/MpContentFilter.d.ts +0 -0
- package/es/mediaFilter/index.d.ts +0 -3
- package/es/mediaFilter/script/optionsGetter.d.ts +0 -26
- package/es/mediaFilter/script/types.d.ts +0 -16
- package/es/mediaFilter/style/index.d.ts +0 -1
- package/es/mediaView/component.d.ts +0 -0
- package/es/mediaView/index.d.ts +0 -2
- package/es/mediaView/style/index.d.ts +0 -1
- package/es/messageBox/component.d.ts +0 -0
- package/es/messageBox/index.d.ts +0 -2
- package/es/messageBox/list.d.ts +0 -0
- package/es/messageBox/script/api.d.ts +0 -6
- package/es/messageBox/style/index.d.ts +0 -1
- package/es/previousVersion/component.d.ts +0 -0
- package/es/previousVersion/index.d.ts +0 -2
- package/es/previousVersion/script/api.d.ts +0 -15
- package/es/previousVersion/script/tool.d.ts +0 -6
- package/es/previousVersion/style/index.d.ts +0 -1
- package/es/resourceGridList/component.d.ts +0 -0
- package/es/resourceGridList/components/FileTypeThumb/index.d.ts +0 -0
- package/es/resourceGridList/index.d.ts +0 -2
- package/es/resourceGridList/style/index.d.ts +0 -1
- package/es/resourceModal/component.d.ts +0 -0
- package/es/resourceModal/components/MediaPreviewer/index.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/MainContent/index.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/index.d.ts +0 -0
- package/es/resourceModal/index.d.ts +0 -2
- package/es/resourceModal/script/api.d.ts +0 -25
- package/es/resourceModal/script/mediaSelection.d.ts +0 -14
- package/es/resourceModal/style/index.d.ts +0 -1
- package/es/selectAvatarList/component.d.ts +0 -0
- package/es/selectAvatarList/index.d.ts +0 -2
- package/es/selectAvatarList/style/index.d.ts +0 -1
- package/es/selectGategory/component.d.ts +0 -0
- package/es/selectGategory/components/ColumnSelection/index.d.ts +0 -0
- package/es/selectGategory/index.d.ts +0 -2
- package/es/selectGategory/script/api.d.ts +0 -6
- package/es/selectGategory/style/index.d.ts +0 -1
- package/es/selectResourceModal/__demo__/module/DivWrapper.d.ts +0 -268
- package/es/selectResourceModal/__demo__/module/basic.d.ts +0 -299
- package/es/selectResourceModal/component.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListAi/index.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListCardWrapper.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListLocal/Upload.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListLocal/index.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListNormal/Filter.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListNormal/index.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListSystem/Filter.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListSystem/SubList.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListSystem/index.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListVideo/index.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListWraper.d.ts +0 -0
- package/es/selectResourceModal/components/ListSelected/index.d.ts +0 -0
- package/es/selectResourceModal/components/ListTabs/index.d.ts +0 -0
- package/es/selectResourceModal/hooks/useResponsiveFilter.d.ts +0 -21
- package/es/selectResourceModal/index.d.ts +0 -2
- package/es/selectResourceModal/scripts/selectionApis.d.ts +0 -2
- package/es/selectResourceModal/scripts/useCompoLf.d.ts +0 -27
- package/es/selectResourceModal/scripts/useResourceSelect.d.ts +0 -7
- package/es/selectResourceModal/scripts/useTabFilter.d.ts +0 -22
- package/es/selectResourceModal/style/index.d.ts +0 -1
- package/es/selectThumb/component.d.ts +0 -0
- package/es/selectThumb/components/card.d.ts +0 -0
- package/es/selectThumb/components/colorPalette.d.ts +0 -0
- package/es/selectThumb/components/colorPicker.d.ts +0 -0
- package/es/selectThumb/index.d.ts +0 -2
- package/es/selectThumb/style/index.d.ts +0 -1
- package/es/thumbCard/component.d.ts +0 -0
- package/es/thumbCard/components/ThumbUploading/index.d.ts +0 -0
- package/es/thumbCard/index.d.ts +0 -2
- package/es/thumbCard/style/index.d.ts +0 -1
- package/es/typeIcons/component.d.ts +0 -0
- package/es/typeIcons/index.d.ts +0 -2
- package/es/typeIcons/style/index.d.ts +0 -1
- package/es/uploadBefore/component.d.ts +0 -0
- package/es/uploadBefore/components/UploadBefore.d.ts +0 -0
- package/es/uploadBefore/components/UploadForClick.d.ts +0 -0
- package/es/uploadBefore/index.d.ts +0 -2
- package/es/uploadBefore/script/api.d.ts +0 -16
- package/es/uploadBefore/script/fileTypeAdapter.d.ts +0 -39
- package/es/uploadBefore/script/fileUpload.d.ts +0 -7
- package/es/uploadBefore/script/uploadHooks.d.ts +0 -96
- package/es/uploadBefore/style/index.d.ts +0 -1
- package/es/uploadBefore/utils/dragUploadEvent.d.ts +0 -0
- package/es/uploadStep/component.d.ts +0 -0
- package/es/uploadStep/index.d.ts +0 -2
- package/es/uploadStep/script/fileTypeAdapter.d.ts +0 -20
- package/es/uploadStep/style/index.d.ts +0 -1
- package/es/userAvater/component.d.ts +0 -0
- package/es/userAvater/index.d.ts +0 -2
- package/es/userAvater/script/api.d.ts +0 -8
- package/es/userAvater/style/index.d.ts +0 -1
- package/es/userDirector/component.d.ts +0 -0
- package/es/userDirector/components/userTree.d.ts +0 -0
- package/es/userDirector/index.d.ts +0 -2
- package/es/userDirector/script/api.d.ts +0 -10
- package/es/userDirector/style/index.d.ts +0 -1
- package/es/utils/auth.d.ts +0 -5
- package/es/utils/date.d.ts +0 -3
- package/es/utils/doc.d.ts +0 -76
- package/es/utils/filter.d.ts +0 -21
- package/es/utils/index.d.ts +0 -17
- package/es/utils/request.d.ts +0 -9
- package/es/utils/resource.d.ts +0 -4
- package/es/utils/transcodeMedia.d.ts +0 -13
- package/es/utils/tusUpload.d.ts +0 -16
- package/es/utils/typeMap.d.ts +0 -185
- package/es/utils/uploadCatalog.d.ts +0 -1
- package/es/videoThumb/component.d.ts +0 -0
- package/es/videoThumb/index.d.ts +0 -2
- package/es/videoThumb/scripts/api.d.ts +0 -9
- package/es/videoThumb/scripts/useVideoThumbs.d.ts +0 -12
- package/es/videoThumb/style/index.d.ts +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, nextTick, toRaw, openBlock, createElementBlock, Fragment, createElementVNode, withModifiers, createVNode, withCtx, renderList, createBlock, unref, normalizeStyle, createCommentVNode
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent, ref, computed, watch, nextTick, toRaw, openBlock, createElementBlock, Fragment, createElementVNode, withModifiers, createVNode, withCtx, renderList, createBlock, renderSlot, unref, createTextVNode, toDisplayString, normalizeStyle, createCommentVNode } from "vue";
|
|
2
|
+
import { InputGroup, Select, Option, Input, InputSearch, RangePicker, RadioGroup, Radio } from "@arco-design/web-vue";
|
|
3
3
|
import _sfc_main$2 from "./components/filterItem.js";
|
|
4
4
|
import _sfc_main$1 from "./components/FilterGroup.js";
|
|
5
5
|
const _sfc_main = defineComponent({
|
|
@@ -37,9 +37,11 @@ const _sfc_main = defineComponent({
|
|
|
37
37
|
});
|
|
38
38
|
return _columns;
|
|
39
39
|
});
|
|
40
|
-
const getOptions = (
|
|
41
|
-
return item
|
|
42
|
-
|
|
40
|
+
const getOptions = computed(() => {
|
|
41
|
+
return (item) => {
|
|
42
|
+
return item.options ? item.options : [];
|
|
43
|
+
};
|
|
44
|
+
});
|
|
43
45
|
const hasValue = computed(() => {
|
|
44
46
|
return (key) => {
|
|
45
47
|
var _a, _b;
|
|
@@ -76,7 +78,10 @@ const _sfc_main = defineComponent({
|
|
|
76
78
|
_form[column.range] = rangeTemp[column.range];
|
|
77
79
|
} else if (column.component === "select") {
|
|
78
80
|
_form[column.key] = column.defaultValue || null;
|
|
79
|
-
} else {
|
|
81
|
+
} else if (column.component === "input-group") {
|
|
82
|
+
_form[column.selectKey] = column.selectDefaultValue || "";
|
|
83
|
+
_form[column.inputKey] = column.inputDefaultValue || "";
|
|
84
|
+
} else if (column.component) {
|
|
80
85
|
_form[column.key] = column.defaultValue || "";
|
|
81
86
|
}
|
|
82
87
|
});
|
|
@@ -178,17 +183,48 @@ const _sfc_main = defineComponent({
|
|
|
178
183
|
active: hasValue.value(item.key)
|
|
179
184
|
}, {
|
|
180
185
|
default: withCtx(() => [
|
|
181
|
-
item.component === "input" ? (openBlock(), createBlock(unref(
|
|
182
|
-
|
|
186
|
+
item.slot ? renderSlot(_ctx.$slots, item.slot, { key: 0 }) : item.component === "input-group" ? (openBlock(), createBlock(unref(InputGroup), { key: 1 }, {
|
|
187
|
+
default: withCtx(() => [
|
|
188
|
+
createVNode(unref(Select), {
|
|
189
|
+
modelValue: form.value[item.selectKey],
|
|
190
|
+
"onUpdate:modelValue": ($event) => form.value[item.selectKey] = $event,
|
|
191
|
+
"default-active-first-option": "",
|
|
192
|
+
style: { "width": "100px" }
|
|
193
|
+
}, {
|
|
194
|
+
default: withCtx(() => [
|
|
195
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.selectOptions, (option, idx) => {
|
|
196
|
+
return openBlock(), createBlock(unref(Option), {
|
|
197
|
+
key: idx,
|
|
198
|
+
value: option.value
|
|
199
|
+
}, {
|
|
200
|
+
default: withCtx(() => [
|
|
201
|
+
createTextVNode(toDisplayString(option.label), 1)
|
|
202
|
+
]),
|
|
203
|
+
_: 2
|
|
204
|
+
}, 1032, ["value"]);
|
|
205
|
+
}), 128))
|
|
206
|
+
]),
|
|
207
|
+
_: 2
|
|
208
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"]),
|
|
209
|
+
createVNode(unref(Input), {
|
|
210
|
+
modelValue: form.value[item.inputKey],
|
|
211
|
+
"onUpdate:modelValue": ($event) => form.value[item.inputKey] = $event,
|
|
212
|
+
placeholder: item.placeholder ? item.placeholder : `\u8BF7\u8F93\u5165${item.inputLabel}`,
|
|
213
|
+
style: { "width": "180px" }
|
|
214
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
215
|
+
]),
|
|
216
|
+
_: 2
|
|
217
|
+
}, 1024)) : item.component === "input" ? (openBlock(), createBlock(unref(InputSearch), {
|
|
218
|
+
key: 2,
|
|
183
219
|
modelValue: form.value[item.key],
|
|
184
220
|
"onUpdate:modelValue": ($event) => form.value[item.key] = $event,
|
|
185
221
|
style: normalizeStyle({ width: styleWidth(columnsMap.value[item.key]) }),
|
|
186
222
|
"allow-clear": "",
|
|
187
223
|
size: "medium",
|
|
188
|
-
placeholder: `\u8BF7\u8F93\u5165${item.label}`
|
|
224
|
+
placeholder: item.placeholder ? item.placeholder : `\u8BF7\u8F93\u5165${item.label}`
|
|
189
225
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder"])) : createCommentVNode("v-if", true),
|
|
190
226
|
item.component === "select" ? (openBlock(), createBlock(unref(Select), {
|
|
191
|
-
key:
|
|
227
|
+
key: 3,
|
|
192
228
|
modelValue: form.value[item.key],
|
|
193
229
|
"onUpdate:modelValue": ($event) => form.value[item.key] = $event,
|
|
194
230
|
"popup-container": "#base-filter-popup-container",
|
|
@@ -196,13 +232,13 @@ const _sfc_main = defineComponent({
|
|
|
196
232
|
"allow-search": item.allowSearch,
|
|
197
233
|
"default-active-first-option": false,
|
|
198
234
|
style: normalizeStyle({ width: styleWidth(columnsMap.value[item.key]) }),
|
|
199
|
-
placeholder: `\u8BF7\u9009\u62E9${item.label}`,
|
|
235
|
+
placeholder: item.placeholder ? item.placeholder : `\u8BF7\u9009\u62E9${item.label}`,
|
|
200
236
|
onSearch: ($event) => handleSelectSearch($event, item),
|
|
201
237
|
onPopupVisibleChange: ($event) => handleSelectPopupChange($event, item),
|
|
202
238
|
onChange: ($event) => handleSelectChange($event, item)
|
|
203
239
|
}, {
|
|
204
240
|
default: withCtx(() => [
|
|
205
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(getOptions(item), (opt) => {
|
|
241
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(getOptions.value(item), (opt) => {
|
|
206
242
|
return openBlock(), createBlock(unref(Option), {
|
|
207
243
|
key: opt.value,
|
|
208
244
|
label: opt.label,
|
|
@@ -213,7 +249,7 @@ const _sfc_main = defineComponent({
|
|
|
213
249
|
_: 2
|
|
214
250
|
}, 1032, ["modelValue", "onUpdate:modelValue", "allow-search", "style", "placeholder", "onSearch", "onPopupVisibleChange", "onChange"])) : createCommentVNode("v-if", true),
|
|
215
251
|
item.component === "range-picker" ? (openBlock(), createBlock(unref(RangePicker), {
|
|
216
|
-
key:
|
|
252
|
+
key: 4,
|
|
217
253
|
modelValue: form.value[item.key].range,
|
|
218
254
|
"onUpdate:modelValue": ($event) => form.value[item.key].range = $event,
|
|
219
255
|
style: normalizeStyle({ width: styleWidth(form.value[item.key]) }),
|
|
@@ -224,7 +260,28 @@ const _sfc_main = defineComponent({
|
|
|
224
260
|
"popup-container": "#base-filter-popup-container",
|
|
225
261
|
onClick: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
226
262
|
}, ["stop"]))
|
|
227
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "style"])) : createCommentVNode("v-if", true)
|
|
263
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "style"])) : createCommentVNode("v-if", true),
|
|
264
|
+
item.component === "radio" ? (openBlock(), createBlock(unref(RadioGroup), {
|
|
265
|
+
key: 5,
|
|
266
|
+
modelValue: form.value[item.key],
|
|
267
|
+
"onUpdate:modelValue": ($event) => form.value[item.key] = $event,
|
|
268
|
+
type: "button"
|
|
269
|
+
}, {
|
|
270
|
+
default: withCtx(() => [
|
|
271
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.options || [], (option, idx) => {
|
|
272
|
+
return openBlock(), createBlock(unref(Radio), {
|
|
273
|
+
key: idx,
|
|
274
|
+
value: option.value
|
|
275
|
+
}, {
|
|
276
|
+
default: withCtx(() => [
|
|
277
|
+
createTextVNode(toDisplayString(option.label), 1)
|
|
278
|
+
]),
|
|
279
|
+
_: 2
|
|
280
|
+
}, 1032, ["value"]);
|
|
281
|
+
}), 128))
|
|
282
|
+
]),
|
|
283
|
+
_: 2
|
|
284
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
228
285
|
]),
|
|
229
286
|
_: 2
|
|
230
287
|
}, 1032, ["active"]);
|
|
@@ -104,6 +104,12 @@ const _sfc_main = defineComponent({
|
|
|
104
104
|
onCellMouseEnter: tableCellMouseEnter,
|
|
105
105
|
onCellMouseLeave: tableCellMouseLeave
|
|
106
106
|
}, {
|
|
107
|
+
"after-index": withCtx(() => [
|
|
108
|
+
renderSlot(_ctx.$slots, "after-index", {
|
|
109
|
+
row: element,
|
|
110
|
+
index
|
|
111
|
+
})
|
|
112
|
+
]),
|
|
107
113
|
batch: withCtx(() => [
|
|
108
114
|
renderSlot(_ctx.$slots, "batch", {
|
|
109
115
|
row: element,
|
|
@@ -128,6 +134,12 @@ const _sfc_main = defineComponent({
|
|
|
128
134
|
onCellMouseEnter: tableCellMouseEnter,
|
|
129
135
|
onCellMouseLeave: tableCellMouseLeave
|
|
130
136
|
}, {
|
|
137
|
+
"after-index": withCtx(() => [
|
|
138
|
+
renderSlot(_ctx.$slots, "after-index", {
|
|
139
|
+
row: element,
|
|
140
|
+
index
|
|
141
|
+
})
|
|
142
|
+
]),
|
|
131
143
|
tip: withCtx(() => [
|
|
132
144
|
renderSlot(_ctx.$slots, "tip", {
|
|
133
145
|
row: element,
|
|
@@ -224,6 +236,12 @@ const _sfc_main = defineComponent({
|
|
|
224
236
|
onCellMouseEnter: tableCellMouseEnter,
|
|
225
237
|
onCellMouseLeave: tableCellMouseLeave
|
|
226
238
|
}, {
|
|
239
|
+
"after-index": withCtx(() => [
|
|
240
|
+
renderSlot(_ctx.$slots, "after-index", {
|
|
241
|
+
row: item,
|
|
242
|
+
index
|
|
243
|
+
})
|
|
244
|
+
]),
|
|
227
245
|
batch: withCtx(() => [
|
|
228
246
|
renderSlot(_ctx.$slots, "batch", {
|
|
229
247
|
row: item,
|
|
@@ -248,6 +266,12 @@ const _sfc_main = defineComponent({
|
|
|
248
266
|
onCellMouseEnter: tableCellMouseEnter,
|
|
249
267
|
onCellMouseLeave: tableCellMouseLeave
|
|
250
268
|
}, {
|
|
269
|
+
"after-index": withCtx(() => [
|
|
270
|
+
renderSlot(_ctx.$slots, "after-index", {
|
|
271
|
+
row: item,
|
|
272
|
+
index
|
|
273
|
+
})
|
|
274
|
+
]),
|
|
251
275
|
tip: withCtx(() => [
|
|
252
276
|
renderSlot(_ctx.$slots, "tip", {
|
|
253
277
|
row: item,
|
|
@@ -142,7 +142,8 @@ const _sfc_main = defineComponent({
|
|
|
142
142
|
})
|
|
143
143
|
]),
|
|
144
144
|
index: withCtx(() => [
|
|
145
|
-
createElementVNode("span", _hoisted_1, toDisplayString(_ctx.index + 1), 1)
|
|
145
|
+
createElementVNode("span", _hoisted_1, toDisplayString(_ctx.index + 1), 1),
|
|
146
|
+
renderSlot(_ctx.$slots, "after-index")
|
|
146
147
|
]),
|
|
147
148
|
tip: withCtx(() => [
|
|
148
149
|
createCommentVNode(" \u5148\u6DFB\u52A0\u6587\u4EF6\u8D44\u6E90\uFF0C\u672A\u53D1\u5E03 "),
|
|
@@ -37,6 +37,12 @@ const _sfc_main = defineComponent({
|
|
|
37
37
|
index: _ctx.index
|
|
38
38
|
})
|
|
39
39
|
]),
|
|
40
|
+
"after-index": withCtx(() => [
|
|
41
|
+
renderSlot(_ctx.$slots, "after-index", {
|
|
42
|
+
row: _ctx.element,
|
|
43
|
+
index: _ctx.index
|
|
44
|
+
})
|
|
45
|
+
]),
|
|
40
46
|
batch: withCtx(() => [
|
|
41
47
|
renderSlot(_ctx.$slots, "batch", {
|
|
42
48
|
row: _ctx.item,
|
|
@@ -248,7 +248,8 @@ const _sfc_main = defineComponent({
|
|
|
248
248
|
default: withCtx(() => _cache[5] || (_cache[5] = [
|
|
249
249
|
createTextVNode(" \u751F\u6210\u9884\u89C8\u94FE\u63A5 ")
|
|
250
250
|
])),
|
|
251
|
-
_: 1
|
|
251
|
+
_: 1,
|
|
252
|
+
__: [5]
|
|
252
253
|
})) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
253
254
|
createVNode(unref(Button), {
|
|
254
255
|
class: "auto",
|
|
@@ -258,7 +259,8 @@ const _sfc_main = defineComponent({
|
|
|
258
259
|
default: withCtx(() => _cache[6] || (_cache[6] = [
|
|
259
260
|
createTextVNode(" \u590D\u5236\u4E8C\u7EF4\u7801 ")
|
|
260
261
|
])),
|
|
261
|
-
_: 1
|
|
262
|
+
_: 1,
|
|
263
|
+
__: [6]
|
|
262
264
|
}),
|
|
263
265
|
createVNode(unref(Button), {
|
|
264
266
|
class: "auto",
|
|
@@ -160,7 +160,8 @@ const _sfc_main = defineComponent({
|
|
|
160
160
|
default: withCtx(() => _cache[8] || (_cache[8] = [
|
|
161
161
|
createTextVNode("\u6DFB\u52A0 ")
|
|
162
162
|
])),
|
|
163
|
-
_: 1
|
|
163
|
+
_: 1,
|
|
164
|
+
__: [8]
|
|
164
165
|
}, 8, ["disabled"])
|
|
165
166
|
]),
|
|
166
167
|
_: 1
|
|
@@ -199,7 +200,8 @@ const _sfc_main = defineComponent({
|
|
|
199
200
|
default: withCtx(() => _cache[9] || (_cache[9] = [
|
|
200
201
|
createTextVNode(" \u6DFB\u52A0 ")
|
|
201
202
|
])),
|
|
202
|
-
_: 1
|
|
203
|
+
_: 1,
|
|
204
|
+
__: [9]
|
|
203
205
|
}, 8, ["disabled"])
|
|
204
206
|
]),
|
|
205
207
|
_: 1
|
|
@@ -239,7 +241,8 @@ const _sfc_main = defineComponent({
|
|
|
239
241
|
default: withCtx(() => _cache[10] || (_cache[10] = [
|
|
240
242
|
createTextVNode(" \u6DFB\u52A0 ")
|
|
241
243
|
])),
|
|
242
|
-
_: 1
|
|
244
|
+
_: 1,
|
|
245
|
+
__: [10]
|
|
243
246
|
}, 8, ["disabled"])
|
|
244
247
|
]),
|
|
245
248
|
_: 1
|
|
@@ -278,7 +281,8 @@ const _sfc_main = defineComponent({
|
|
|
278
281
|
default: withCtx(() => _cache[11] || (_cache[11] = [
|
|
279
282
|
createTextVNode(" \u6DFB\u52A0 ")
|
|
280
283
|
])),
|
|
281
|
-
_: 1
|
|
284
|
+
_: 1,
|
|
285
|
+
__: [11]
|
|
282
286
|
}, 8, ["disabled"])
|
|
283
287
|
]),
|
|
284
288
|
_: 1
|
|
@@ -317,7 +321,8 @@ const _sfc_main = defineComponent({
|
|
|
317
321
|
default: withCtx(() => _cache[12] || (_cache[12] = [
|
|
318
322
|
createTextVNode(" \u6DFB\u52A0 ")
|
|
319
323
|
])),
|
|
320
|
-
_: 1
|
|
324
|
+
_: 1,
|
|
325
|
+
__: [12]
|
|
321
326
|
}, 8, ["disabled"])
|
|
322
327
|
]),
|
|
323
328
|
_: 1
|
|
@@ -356,7 +361,8 @@ const _sfc_main = defineComponent({
|
|
|
356
361
|
default: withCtx(() => _cache[13] || (_cache[13] = [
|
|
357
362
|
createTextVNode(" \u6DFB\u52A0 ")
|
|
358
363
|
])),
|
|
359
|
-
_: 1
|
|
364
|
+
_: 1,
|
|
365
|
+
__: [13]
|
|
360
366
|
}, 8, ["disabled"])
|
|
361
367
|
]),
|
|
362
368
|
_: 1
|
|
@@ -395,7 +401,8 @@ const _sfc_main = defineComponent({
|
|
|
395
401
|
default: withCtx(() => _cache[14] || (_cache[14] = [
|
|
396
402
|
createTextVNode(" \u6DFB\u52A0 ")
|
|
397
403
|
])),
|
|
398
|
-
_: 1
|
|
404
|
+
_: 1,
|
|
405
|
+
__: [14]
|
|
399
406
|
}, 8, ["disabled"])
|
|
400
407
|
]),
|
|
401
408
|
_: 1
|
|
@@ -433,7 +440,8 @@ const _sfc_main = defineComponent({
|
|
|
433
440
|
default: withCtx(() => _cache[15] || (_cache[15] = [
|
|
434
441
|
createTextVNode(" \u6DFB\u52A0 ")
|
|
435
442
|
])),
|
|
436
|
-
_: 1
|
|
443
|
+
_: 1,
|
|
444
|
+
__: [15]
|
|
437
445
|
}, 8, ["disabled"])
|
|
438
446
|
]),
|
|
439
447
|
_: 1
|
|
@@ -286,7 +286,8 @@ const _sfc_main = defineComponent({
|
|
|
286
286
|
createVNode(unref(IconRefresh), { class: "reset-icon" }),
|
|
287
287
|
_cache[7] || (_cache[7] = createTextVNode(" \u91CD\u7F6E "))
|
|
288
288
|
]),
|
|
289
|
-
_: 1
|
|
289
|
+
_: 1,
|
|
290
|
+
__: [7]
|
|
290
291
|
}, 512), [
|
|
291
292
|
[vShow, showReset.value]
|
|
292
293
|
])
|
|
@@ -83,7 +83,8 @@ const _sfc_main = defineComponent({
|
|
|
83
83
|
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
84
84
|
createTextVNode("\u6E05\u7A7A")
|
|
85
85
|
])),
|
|
86
|
-
_: 1
|
|
86
|
+
_: 1,
|
|
87
|
+
__: [1]
|
|
87
88
|
})
|
|
88
89
|
])
|
|
89
90
|
]),
|
|
@@ -99,7 +100,8 @@ const _sfc_main = defineComponent({
|
|
|
99
100
|
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
100
101
|
createTextVNode("\u5DF2\u9009\u6570\u636E")
|
|
101
102
|
])),
|
|
102
|
-
_: 1
|
|
103
|
+
_: 1,
|
|
104
|
+
__: [0]
|
|
103
105
|
})) : createCommentVNode("v-if", true)
|
|
104
106
|
]),
|
|
105
107
|
_: 1
|
package/es/dataTags/component.js
CHANGED
|
@@ -133,7 +133,8 @@ const _sfc_main = defineComponent({
|
|
|
133
133
|
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
134
134
|
createTextVNode("\u539F\u521B")
|
|
135
135
|
])),
|
|
136
|
-
_: 1
|
|
136
|
+
_: 1,
|
|
137
|
+
__: [1]
|
|
137
138
|
}, 8, ["class"])
|
|
138
139
|
]),
|
|
139
140
|
_: 1
|
|
@@ -151,7 +152,8 @@ const _sfc_main = defineComponent({
|
|
|
151
152
|
default: withCtx(() => _cache[2] || (_cache[2] = [
|
|
152
153
|
createTextVNode("\u63A8\u8350")
|
|
153
154
|
])),
|
|
154
|
-
_: 1
|
|
155
|
+
_: 1,
|
|
156
|
+
__: [2]
|
|
155
157
|
}, 8, ["class"])
|
|
156
158
|
]),
|
|
157
159
|
_: 1
|
|
@@ -169,7 +171,8 @@ const _sfc_main = defineComponent({
|
|
|
169
171
|
default: withCtx(() => _cache[3] || (_cache[3] = [
|
|
170
172
|
createTextVNode("\u654F\u611F")
|
|
171
173
|
])),
|
|
172
|
-
_: 1
|
|
174
|
+
_: 1,
|
|
175
|
+
__: [3]
|
|
173
176
|
}, 8, ["class"])
|
|
174
177
|
]),
|
|
175
178
|
_: 1
|
|
@@ -187,7 +190,8 @@ const _sfc_main = defineComponent({
|
|
|
187
190
|
default: withCtx(() => _cache[4] || (_cache[4] = [
|
|
188
191
|
createTextVNode("\u5DF2\u63A8\u9001")
|
|
189
192
|
])),
|
|
190
|
-
_: 1
|
|
193
|
+
_: 1,
|
|
194
|
+
__: [4]
|
|
191
195
|
}, 8, ["class"])
|
|
192
196
|
]),
|
|
193
197
|
_: 1
|
|
@@ -223,7 +227,8 @@ const _sfc_main = defineComponent({
|
|
|
223
227
|
default: withCtx(() => _cache[5] || (_cache[5] = [
|
|
224
228
|
createTextVNode(" \u77E9\u9635\u5206\u53D1 ")
|
|
225
229
|
])),
|
|
226
|
-
_: 1
|
|
230
|
+
_: 1,
|
|
231
|
+
__: [5]
|
|
227
232
|
}, 8, ["class"])
|
|
228
233
|
]),
|
|
229
234
|
_: 1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent, computed, watch, onMounted, openBlock, createBlock,
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent, computed, watch, onMounted, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createVNode, unref, createTextVNode, createElementVNode, createElementBlock, Fragment, createCommentVNode } from "vue";
|
|
2
|
+
import { Button, Spin, Scrollbar, Drawer, Modal } from "@arco-design/web-vue";
|
|
3
3
|
import { DEFAULT_BASE_API } from "../config.js";
|
|
4
4
|
import { useDocHistory } from "./scripts/useDocHistory.js";
|
|
5
5
|
import _sfc_main$2 from "./components/DocHistoryList/index.js";
|
|
@@ -13,9 +13,11 @@ const _sfc_main = defineComponent({
|
|
|
13
13
|
__name: "component",
|
|
14
14
|
props: {
|
|
15
15
|
BASE_API: {},
|
|
16
|
+
wrap: { default: "drawer" },
|
|
16
17
|
visible: { type: Boolean },
|
|
17
18
|
docInfo: {},
|
|
18
|
-
pub: { type: Boolean }
|
|
19
|
+
pub: { type: Boolean },
|
|
20
|
+
currentIdx: {}
|
|
19
21
|
},
|
|
20
22
|
emits: ["update:visible", "select"],
|
|
21
23
|
setup(__props, { emit: __emit }) {
|
|
@@ -27,6 +29,20 @@ const _sfc_main = defineComponent({
|
|
|
27
29
|
emits("update:visible", val);
|
|
28
30
|
}
|
|
29
31
|
});
|
|
32
|
+
const wrapProps = computed(() => {
|
|
33
|
+
if (props.wrap === "drawer") {
|
|
34
|
+
return {
|
|
35
|
+
class: "doc-history-drawer-wrap",
|
|
36
|
+
title: "\u7248\u672C\u8BB0\u5F55",
|
|
37
|
+
width: 1e3
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
bodyClass: "doc-history-modal-wrap",
|
|
42
|
+
title: "\u7248\u672C\u8BB0\u5F55",
|
|
43
|
+
width: 1e3
|
|
44
|
+
};
|
|
45
|
+
});
|
|
30
46
|
const BASE_API = props.BASE_API || DEFAULT_BASE_API;
|
|
31
47
|
const {
|
|
32
48
|
initParams,
|
|
@@ -37,6 +53,10 @@ const _sfc_main = defineComponent({
|
|
|
37
53
|
list,
|
|
38
54
|
current
|
|
39
55
|
} = useDocHistory(BASE_API);
|
|
56
|
+
const wrapComponent = {
|
|
57
|
+
drawer: Drawer,
|
|
58
|
+
modal: Modal
|
|
59
|
+
};
|
|
40
60
|
function handeRevert() {
|
|
41
61
|
emits("select", list.value[current.value]);
|
|
42
62
|
}
|
|
@@ -49,20 +69,29 @@ const _sfc_main = defineComponent({
|
|
|
49
69
|
},
|
|
50
70
|
{ immediate: true }
|
|
51
71
|
);
|
|
52
|
-
|
|
72
|
+
watch(
|
|
73
|
+
() => props.currentIdx,
|
|
74
|
+
(val) => {
|
|
75
|
+
if (val) {
|
|
76
|
+
handleSelect(val);
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{ immediate: true }
|
|
80
|
+
);
|
|
81
|
+
onMounted(async () => {
|
|
53
82
|
if (!props.docInfo)
|
|
54
83
|
return;
|
|
55
84
|
initParams(props.docInfo.id, props.pub);
|
|
56
|
-
loadData();
|
|
85
|
+
await loadData();
|
|
86
|
+
if (props.currentIdx) {
|
|
87
|
+
handleSelect(props.currentIdx);
|
|
88
|
+
}
|
|
57
89
|
});
|
|
58
90
|
return (_ctx, _cache) => {
|
|
59
|
-
return openBlock(), createBlock(
|
|
91
|
+
return openBlock(), createBlock(resolveDynamicComponent(wrapComponent[_ctx.wrap]), mergeProps({
|
|
60
92
|
visible: vis.value,
|
|
61
|
-
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => vis.value = $event)
|
|
62
|
-
|
|
63
|
-
title: "\u7248\u672C\u8BB0\u5F55",
|
|
64
|
-
width: 1e3
|
|
65
|
-
}, {
|
|
93
|
+
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => vis.value = $event)
|
|
94
|
+
}, wrapProps.value), {
|
|
66
95
|
footer: withCtx(() => [
|
|
67
96
|
createVNode(unref(Button), {
|
|
68
97
|
type: "primary",
|
|
@@ -72,7 +101,8 @@ const _sfc_main = defineComponent({
|
|
|
72
101
|
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
73
102
|
createTextVNode(" \u8FD8\u539F\u6B64\u7248\u672C ")
|
|
74
103
|
])),
|
|
75
|
-
_: 1
|
|
104
|
+
_: 1,
|
|
105
|
+
__: [1]
|
|
76
106
|
}, 8, ["disabled"])
|
|
77
107
|
]),
|
|
78
108
|
default: withCtx(() => [
|
|
@@ -123,7 +153,7 @@ const _sfc_main = defineComponent({
|
|
|
123
153
|
])
|
|
124
154
|
]),
|
|
125
155
|
_: 1
|
|
126
|
-
},
|
|
156
|
+
}, 16, ["visible"]);
|
|
127
157
|
};
|
|
128
158
|
}
|
|
129
159
|
});
|
|
@@ -38,15 +38,16 @@ function CompareText(v_LeftList, v_RightList, lftPNode = null) {
|
|
|
38
38
|
for (let i = 0; i < rightLen; i++) {
|
|
39
39
|
if (!rightFather)
|
|
40
40
|
rightFather = v_RightList[i].parentNode;
|
|
41
|
-
const node = v_RightList[i].
|
|
41
|
+
const node = v_RightList[i].cloneNode(true);
|
|
42
42
|
try {
|
|
43
43
|
rightFather.removeChild(v_RightList[i]);
|
|
44
44
|
} catch (e) {
|
|
45
45
|
console.log(e);
|
|
46
46
|
}
|
|
47
|
-
if (lftPNode)
|
|
47
|
+
if (lftPNode && lftPNode.nodeType !== 3) {
|
|
48
48
|
lftPNode.appendChild(node);
|
|
49
|
-
|
|
49
|
+
PaintRemove(node);
|
|
50
|
+
}
|
|
50
51
|
}
|
|
51
52
|
} else if (rightLen === 0) {
|
|
52
53
|
for (let i = 0; i < leftLen; i++)
|
|
@@ -94,7 +94,8 @@ const _sfc_main = defineComponent({
|
|
|
94
94
|
default: withCtx(() => _cache[8] || (_cache[8] = [
|
|
95
95
|
createTextVNode(" \u590D\u5236\u94FE\u63A5 ")
|
|
96
96
|
])),
|
|
97
|
-
_: 1
|
|
97
|
+
_: 1,
|
|
98
|
+
__: [8]
|
|
98
99
|
}, 8, ["onClick"])
|
|
99
100
|
]),
|
|
100
101
|
createCommentVNode(" \u94FE\u63A5 "),
|
|
@@ -110,7 +111,8 @@ const _sfc_main = defineComponent({
|
|
|
110
111
|
default: withCtx(() => _cache[10] || (_cache[10] = [
|
|
111
112
|
createTextVNode("\u53D6\u6D88\u9884\u89C8\u94FE\u63A5")
|
|
112
113
|
])),
|
|
113
|
-
_: 1
|
|
114
|
+
_: 1,
|
|
115
|
+
__: [10]
|
|
114
116
|
}),
|
|
115
117
|
createVNode(unref(Button), {
|
|
116
118
|
type: "primary",
|
|
@@ -119,7 +121,8 @@ const _sfc_main = defineComponent({
|
|
|
119
121
|
default: withCtx(() => _cache[11] || (_cache[11] = [
|
|
120
122
|
createTextVNode(" \u66F4\u65B0\u9884\u89C8\u6709\u6548\u671F ")
|
|
121
123
|
])),
|
|
122
|
-
_: 1
|
|
124
|
+
_: 1,
|
|
125
|
+
__: [11]
|
|
123
126
|
})
|
|
124
127
|
])
|
|
125
128
|
], 64)) : unref(isPublish) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
@@ -139,7 +142,8 @@ const _sfc_main = defineComponent({
|
|
|
139
142
|
default: withCtx(() => _cache[13] || (_cache[13] = [
|
|
140
143
|
createTextVNode(" \u590D\u5236\u94FE\u63A5 ")
|
|
141
144
|
])),
|
|
142
|
-
_: 1
|
|
145
|
+
_: 1,
|
|
146
|
+
__: [13]
|
|
143
147
|
}, 8, ["onClick"])
|
|
144
148
|
]),
|
|
145
149
|
createCommentVNode(" \u94FE\u63A5 "),
|
|
@@ -179,7 +183,8 @@ const _sfc_main = defineComponent({
|
|
|
179
183
|
default: withCtx(() => _cache[18] || (_cache[18] = [
|
|
180
184
|
createTextVNode(" \u751F\u6210\u9884\u89C8\u94FE\u63A5 ")
|
|
181
185
|
])),
|
|
182
|
-
_: 1
|
|
186
|
+
_: 1,
|
|
187
|
+
__: [18]
|
|
183
188
|
})
|
|
184
189
|
])
|
|
185
190
|
], 64))
|
|
@@ -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
|