@cmstops/pro-compo 3.9.2-alpha.1 → 3.9.2-alpha.11
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 +6 -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 +2 -1
- 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 +6 -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/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 +63 -30
- package/es/selectResourceModal/components/List/ListNormal/index.js +5 -4
- package/es/selectResourceModal/components/List/ListSystem/Filter.js +2 -1
- package/es/selectResourceModal/hooks/useResponsiveFilter.js +1 -1
- package/es/selectResourceModal/style/index.css +6 -0
- package/es/selectResourceModal/style/index.less +9 -0
- package/es/selectResourceModal/style/list.less +1 -0
- 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 +2 -1
- 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 +6 -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/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 +62 -29
- package/lib/selectResourceModal/components/List/ListNormal/index.js +5 -4
- package/lib/selectResourceModal/components/List/ListSystem/Filter.js +2 -1
- package/lib/selectResourceModal/hooks/useResponsiveFilter.js +1 -1
- package/lib/selectResourceModal/style/index.css +6 -0
- package/lib/selectResourceModal/style/index.less +9 -0
- package/lib/selectResourceModal/style/list.less +1 -0
- 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
|
@@ -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] = [
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index.less";
|
|
@@ -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(() => [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, inject, computed, ref, watch, onMounted, openBlock, createElementBlock, createCommentVNode, createElementVNode, withDirectives, createVNode, unref, withModifiers, withCtx, createTextVNode, vShow, toDisplayString, Fragment, renderList, createBlock, normalizeClass } from "vue";
|
|
2
2
|
import { Button, Input, Dropdown, Doption, TreeSelect, Select, Option, RangePicker } from "@arco-design/web-vue";
|
|
3
|
-
import { IconCaretDown, IconUpload } from "@arco-design/web-vue/es/icon";
|
|
3
|
+
import { IconCaretDown, IconRefresh, IconUpload } from "@arco-design/web-vue/es/icon";
|
|
4
4
|
import useSelection from "../../../../hooks/useSelection.js";
|
|
5
5
|
import { useDirectory } from "../../../../hooks/useAttachement.js";
|
|
6
6
|
import { RESOURCE_SOURCE_OPTIONS, RESOURCE_CATALOG_OPTIONS } from "../../../../utils/typeMap.js";
|
|
@@ -45,10 +45,12 @@ const _hoisted_14 = ["onClick"];
|
|
|
45
45
|
const _sfc_main = defineComponent({
|
|
46
46
|
__name: "Filter",
|
|
47
47
|
props: {
|
|
48
|
+
smallScreen: { type: Boolean },
|
|
48
49
|
disableUploadBy: { type: Boolean }
|
|
49
50
|
},
|
|
50
51
|
emits: ["upload", "change"],
|
|
51
52
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
53
|
+
var _a, _b, _c;
|
|
52
54
|
const props = __props;
|
|
53
55
|
const emits = __emit;
|
|
54
56
|
const userInfo = inject("userInfo");
|
|
@@ -62,8 +64,7 @@ const _sfc_main = defineComponent({
|
|
|
62
64
|
hiddenElementList,
|
|
63
65
|
visible,
|
|
64
66
|
show,
|
|
65
|
-
hide
|
|
66
|
-
refreshLayout
|
|
67
|
+
hide
|
|
67
68
|
} = useResponsiveFilter(filterItemsRef);
|
|
68
69
|
const { options, loading, load, loadMore, handleSearch } = useSelection({
|
|
69
70
|
labelStr: "alias",
|
|
@@ -98,7 +99,17 @@ const _sfc_main = defineComponent({
|
|
|
98
99
|
sf: "",
|
|
99
100
|
directory_id: void 0
|
|
100
101
|
};
|
|
101
|
-
|
|
102
|
+
if ((_a = filterOptions == null ? void 0 : filterOptions.value) == null ? void 0 : _a.mediaTypeStrict) {
|
|
103
|
+
originFilter.catalog = filterOptions.value.mediaType.split(",");
|
|
104
|
+
}
|
|
105
|
+
const filter = ref(
|
|
106
|
+
JSON.parse(
|
|
107
|
+
JSON.stringify({
|
|
108
|
+
...originFilter,
|
|
109
|
+
catalog: ((_c = (_b = filterOptions == null ? void 0 : filterOptions.value) == null ? void 0 : _b.mediaType) == null ? void 0 : _c.split(",")) || []
|
|
110
|
+
})
|
|
111
|
+
)
|
|
112
|
+
);
|
|
102
113
|
const handleReset = () => {
|
|
103
114
|
filter.value = JSON.parse(JSON.stringify(originFilter));
|
|
104
115
|
};
|
|
@@ -177,27 +188,18 @@ const _sfc_main = defineComponent({
|
|
|
177
188
|
}
|
|
178
189
|
}
|
|
179
190
|
emits("change", result);
|
|
180
|
-
refreshLayout();
|
|
181
191
|
},
|
|
182
192
|
{ deep: true, immediate: true }
|
|
183
193
|
);
|
|
184
194
|
onMounted(() => {
|
|
185
|
-
var _a;
|
|
186
195
|
load();
|
|
187
|
-
if ((_a = filterOptions == null ? void 0 : filterOptions.value) == null ? void 0 : _a.mediaType) {
|
|
188
|
-
const initialCatalog = filterOptions.value.mediaType.split(",");
|
|
189
|
-
filter.value.catalog = initialCatalog;
|
|
190
|
-
if (filterOptions.value.mediaTypeStrict) {
|
|
191
|
-
originFilter.catalog = initialCatalog;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
196
|
});
|
|
195
197
|
__expose({
|
|
196
198
|
filter,
|
|
197
199
|
handleReset
|
|
198
200
|
});
|
|
199
201
|
return (_ctx, _cache) => {
|
|
200
|
-
var
|
|
202
|
+
var _a2;
|
|
201
203
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
202
204
|
createCommentVNode(" Use filterItemsRef's parentElement as the container for boundary checks "),
|
|
203
205
|
createElementVNode("div", _hoisted_2, [
|
|
@@ -220,7 +222,7 @@ const _sfc_main = defineComponent({
|
|
|
220
222
|
}, {
|
|
221
223
|
default: withCtx(() => [
|
|
222
224
|
createElementVNode("span", _hoisted_4, [
|
|
223
|
-
_cache[
|
|
225
|
+
_cache[11] || (_cache[11] = createTextVNode(" \u66F4\u591A ")),
|
|
224
226
|
createVNode(unref(IconCaretDown))
|
|
225
227
|
])
|
|
226
228
|
]),
|
|
@@ -253,16 +255,18 @@ const _sfc_main = defineComponent({
|
|
|
253
255
|
}, {
|
|
254
256
|
content: withCtx(() => [
|
|
255
257
|
createVNode(unref(Doption), { value: 0 }, {
|
|
256
|
-
default: withCtx(() => _cache[
|
|
258
|
+
default: withCtx(() => _cache[12] || (_cache[12] = [
|
|
257
259
|
createTextVNode("\u7CBE\u51C6\u641C")
|
|
258
260
|
])),
|
|
259
|
-
_: 1
|
|
261
|
+
_: 1,
|
|
262
|
+
__: [12]
|
|
260
263
|
}),
|
|
261
264
|
createVNode(unref(Doption), { value: 1 }, {
|
|
262
|
-
default: withCtx(() => _cache[
|
|
265
|
+
default: withCtx(() => _cache[13] || (_cache[13] = [
|
|
263
266
|
createTextVNode("\u6A21\u7CCA\u641C")
|
|
264
267
|
])),
|
|
265
|
-
_: 1
|
|
268
|
+
_: 1,
|
|
269
|
+
__: [13]
|
|
266
270
|
})
|
|
267
271
|
]),
|
|
268
272
|
default: withCtx(() => [
|
|
@@ -291,15 +295,22 @@ const _sfc_main = defineComponent({
|
|
|
291
295
|
title: "alias",
|
|
292
296
|
key: "id"
|
|
293
297
|
},
|
|
294
|
-
"allow-clear": ""
|
|
295
|
-
|
|
298
|
+
"allow-clear": "",
|
|
299
|
+
"allow-search": "",
|
|
300
|
+
"filter-tree-node": (searchValue, nodeData) => {
|
|
301
|
+
console.log(nodeData);
|
|
302
|
+
if (!nodeData.alias)
|
|
303
|
+
return false;
|
|
304
|
+
return nodeData.alias.toLowerCase().indexOf(searchValue.toLowerCase()) > -1;
|
|
305
|
+
}
|
|
306
|
+
}, null, 8, ["modelValue", "data", "filter-tree-node"])
|
|
296
307
|
]),
|
|
297
308
|
createCommentVNode(" \u7D20\u6750\u7C7B\u578B "),
|
|
298
309
|
createElementVNode("div", _hoisted_7, [
|
|
299
310
|
createVNode(unref(Select), {
|
|
300
311
|
modelValue: filter.value.catalog,
|
|
301
312
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => filter.value.catalog = $event),
|
|
302
|
-
disabled: (
|
|
313
|
+
disabled: (_a2 = unref(filterOptions)) == null ? void 0 : _a2.mediaTypeStrict,
|
|
303
314
|
"popup-container": "#resource-filter-pannel",
|
|
304
315
|
"allow-clear": "",
|
|
305
316
|
placeholder: "\u7C7B\u578B",
|
|
@@ -377,30 +388,52 @@ const _sfc_main = defineComponent({
|
|
|
377
388
|
createElementVNode("div", _hoisted_11, [
|
|
378
389
|
createCommentVNode(" \u91CD\u7F6E\u6309\u94AE - Wrap in filter-item to be managed by the hook "),
|
|
379
390
|
withDirectives(createElementVNode("div", _hoisted_12, [
|
|
380
|
-
|
|
391
|
+
_ctx.smallScreen ? (openBlock(), createBlock(unref(Button), {
|
|
392
|
+
key: 0,
|
|
393
|
+
type: "text",
|
|
394
|
+
onClick: handleReset
|
|
395
|
+
}, {
|
|
396
|
+
icon: withCtx(() => [
|
|
397
|
+
createVNode(unref(IconRefresh))
|
|
398
|
+
]),
|
|
399
|
+
_: 1
|
|
400
|
+
})) : (openBlock(), createBlock(unref(Button), {
|
|
401
|
+
key: 1,
|
|
381
402
|
type: "text",
|
|
382
403
|
onClick: handleReset
|
|
383
404
|
}, {
|
|
384
|
-
default: withCtx(() => _cache[
|
|
405
|
+
default: withCtx(() => _cache[14] || (_cache[14] = [
|
|
385
406
|
createTextVNode(" \u91CD\u7F6E ")
|
|
386
407
|
])),
|
|
387
|
-
_: 1
|
|
388
|
-
|
|
408
|
+
_: 1,
|
|
409
|
+
__: [14]
|
|
410
|
+
}))
|
|
389
411
|
], 512), [
|
|
390
412
|
[vShow, !isEmpty.value]
|
|
391
413
|
]),
|
|
392
|
-
|
|
414
|
+
_ctx.smallScreen ? (openBlock(), createBlock(unref(Button), {
|
|
415
|
+
key: 0,
|
|
393
416
|
type: "primary",
|
|
394
417
|
onClick: _cache[9] || (_cache[9] = ($event) => emits("upload"))
|
|
418
|
+
}, {
|
|
419
|
+
icon: withCtx(() => [
|
|
420
|
+
createVNode(unref(IconUpload))
|
|
421
|
+
]),
|
|
422
|
+
_: 1
|
|
423
|
+
})) : (openBlock(), createBlock(unref(Button), {
|
|
424
|
+
key: 1,
|
|
425
|
+
type: "primary",
|
|
426
|
+
onClick: _cache[10] || (_cache[10] = ($event) => emits("upload"))
|
|
395
427
|
}, {
|
|
396
428
|
icon: withCtx(() => [
|
|
397
429
|
createVNode(unref(IconUpload))
|
|
398
430
|
]),
|
|
399
431
|
default: withCtx(() => [
|
|
400
|
-
_cache[
|
|
432
|
+
_cache[15] || (_cache[15] = createTextVNode(" \u4E0A\u4F20 "))
|
|
401
433
|
]),
|
|
402
|
-
_: 1
|
|
403
|
-
|
|
434
|
+
_: 1,
|
|
435
|
+
__: [15]
|
|
436
|
+
}))
|
|
404
437
|
])
|
|
405
438
|
]),
|
|
406
439
|
searchInput.value ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
@@ -27,14 +27,14 @@ const _sfc_main = defineComponent({
|
|
|
27
27
|
} = useAttachement({ key: props.activeKey, BASE_API });
|
|
28
28
|
watch(() => props.activeKey, changeKey);
|
|
29
29
|
const listWrapper = ref(null);
|
|
30
|
-
const
|
|
30
|
+
const smallScreen = ref(false);
|
|
31
31
|
watch(
|
|
32
32
|
() => {
|
|
33
33
|
var _a;
|
|
34
34
|
return (_a = listWrapper.value) == null ? void 0 : _a.offsetWidth;
|
|
35
35
|
},
|
|
36
36
|
(val) => {
|
|
37
|
-
|
|
37
|
+
smallScreen.value = !!(val && val < 600);
|
|
38
38
|
},
|
|
39
39
|
{ immediate: true }
|
|
40
40
|
);
|
|
@@ -51,9 +51,10 @@ const _sfc_main = defineComponent({
|
|
|
51
51
|
]),
|
|
52
52
|
header: withCtx(() => [
|
|
53
53
|
createVNode(_sfc_main$2, {
|
|
54
|
+
smallScreen: smallScreen.value,
|
|
54
55
|
onChange: unref(changeFilter),
|
|
55
56
|
onUpload: _cache[0] || (_cache[0] = ($event) => emits("change-tab", "local"))
|
|
56
|
-
}, null, 8, ["onChange"])
|
|
57
|
+
}, null, 8, ["smallScreen", "onChange"])
|
|
57
58
|
]),
|
|
58
59
|
footer: withCtx(() => [
|
|
59
60
|
createVNode(unref(Pagination), {
|
|
@@ -62,7 +63,7 @@ const _sfc_main = defineComponent({
|
|
|
62
63
|
total: unref(total),
|
|
63
64
|
"page-size": unref(limit),
|
|
64
65
|
"show-total": "",
|
|
65
|
-
"show-page-size":
|
|
66
|
+
"show-page-size": !smallScreen.value,
|
|
66
67
|
"base-size": 3,
|
|
67
68
|
"buffer-size": 1,
|
|
68
69
|
onChange: _cache[2] || (_cache[2] = (e) => unref(changePage)((e - 1) * unref(limit))),
|
|
@@ -67,7 +67,7 @@ function useResponsiveFilter(filterItemsRef) {
|
|
|
67
67
|
if (!item || !item.classList || !item.classList.contains("filter-item"))
|
|
68
68
|
continue;
|
|
69
69
|
const itemRect = getRect(item);
|
|
70
|
-
if (itemRect.right > containerRight -
|
|
70
|
+
if (itemRect.right > containerRight - 400) {
|
|
71
71
|
hideElement(item);
|
|
72
72
|
} else {
|
|
73
73
|
currentRightmostBoundary = Math.max(
|
|
@@ -172,6 +172,7 @@
|
|
|
172
172
|
}
|
|
173
173
|
.resource-list-footer,
|
|
174
174
|
.resource-list-header,
|
|
175
|
+
.resource-list-content .resource-list-content-empty,
|
|
175
176
|
.resource-list-content .arco-scrollbar-container {
|
|
176
177
|
padding: 0 40px;
|
|
177
178
|
}
|
|
@@ -347,3 +348,8 @@
|
|
|
347
348
|
.resource-select-container .resource-select-header .arco-tabs-content {
|
|
348
349
|
display: none !important;
|
|
349
350
|
}
|
|
351
|
+
.resource-select-container .resource-list-content .resource-list-content-empty {
|
|
352
|
+
box-sizing: border-box;
|
|
353
|
+
width: 100%;
|
|
354
|
+
height: 100%;
|
|
355
|
+
}
|
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"]);
|