@cmstops/pro-compo 0.3.44 → 0.3.46

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.
Files changed (259) hide show
  1. package/dist/index.css +23 -15
  2. package/dist/index.min.css +1 -1
  3. package/es/appCenter/component.js +30 -1
  4. package/es/appCenter/script/api.js +8 -1
  5. package/es/appCenter/style/index.css +17 -14
  6. package/es/appCenter/style/index.less +33 -15
  7. package/es/docHistory/component.js +1 -0
  8. package/es/docPreview/component.js +46 -40
  9. package/es/hooks/useAttachement.js +2 -0
  10. package/es/hooks/useLocalStorage.js +31 -0
  11. package/es/hooks/useUpload.js +6 -2
  12. package/es/index.css +23 -15
  13. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +3 -3
  14. package/es/selectResourceModal/component.js +188 -43
  15. package/es/selectResourceModal/components/ListFilter/index.js +13 -1
  16. package/es/selectResourceModal/components/ListSelected/index.js +2 -0
  17. package/es/selectResourceModal/components/ListTabs/index.js +62 -0
  18. package/es/selectResourceModal/scripts/useResourceSelect.js +25 -0
  19. package/es/selectResourceModal/style/index.css +6 -1
  20. package/es/selectResourceModal/style/listSelected.less +7 -1
  21. package/es/utils/typeMap.js +1 -2
  22. package/lib/appCenter/component.js +29 -0
  23. package/lib/appCenter/script/api.js +8 -0
  24. package/lib/appCenter/style/index.css +17 -14
  25. package/lib/appCenter/style/index.less +33 -15
  26. package/lib/docHistory/component.js +1 -0
  27. package/lib/docPreview/component.js +45 -39
  28. package/lib/hooks/useAttachement.js +2 -0
  29. package/lib/hooks/useLocalStorage.js +34 -0
  30. package/lib/hooks/useUpload.js +5 -1
  31. package/lib/index.css +23 -15
  32. package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +2 -2
  33. package/lib/selectResourceModal/component.js +186 -41
  34. package/lib/selectResourceModal/components/ListFilter/index.js +13 -1
  35. package/lib/selectResourceModal/components/ListSelected/index.js +2 -0
  36. package/lib/selectResourceModal/components/ListTabs/index.js +63 -0
  37. package/lib/selectResourceModal/scripts/useResourceSelect.js +27 -0
  38. package/lib/selectResourceModal/style/index.css +6 -1
  39. package/lib/selectResourceModal/style/listSelected.less +7 -1
  40. package/lib/utils/typeMap.js +1 -2
  41. package/package.json +1 -1
  42. package/es/appCenter/component.d.ts +0 -0
  43. package/es/appCenter/index.d.ts +0 -2
  44. package/es/appCenter/script/api.d.ts +0 -10
  45. package/es/appCenter/script/apps.d.ts +0 -14
  46. package/es/appCenter/script/permissionMap.d.ts +0 -6
  47. package/es/appCenter/script/routeMap.d.ts +0 -4
  48. package/es/appCenter/style/index.d.ts +0 -1
  49. package/es/baseFilter/component.d.ts +0 -0
  50. package/es/baseFilter/components/FilterGroup.d.ts +0 -0
  51. package/es/baseFilter/components/filterItem.d.ts +0 -0
  52. package/es/baseFilter/index.d.ts +0 -2
  53. package/es/baseFilter/style/index.d.ts +0 -1
  54. package/es/baseFilter/useCalcWidth.d.ts +0 -16
  55. package/es/colorPalette/component.d.ts +0 -0
  56. package/es/colorPalette/components/colorPicker.d.ts +0 -0
  57. package/es/colorPalette/index.d.ts +0 -2
  58. package/es/colorPalette/style/index.d.ts +0 -1
  59. package/es/components.d.ts +0 -5
  60. package/es/config.d.ts +0 -4
  61. package/es/contentDetailList/__demo__/matrix/platform.d.ts +0 -36
  62. package/es/contentDetailList/component.d.ts +0 -0
  63. package/es/contentDetailList/components/Content/CompoItem/index.d.ts +0 -0
  64. package/es/contentDetailList/components/Content/ContentListItem/index.d.ts +0 -0
  65. package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.d.ts +0 -0
  66. package/es/contentDetailList/components/Content/DocItem/index.d.ts +0 -0
  67. package/es/contentDetailList/components/Content/DocMpItem/index.d.ts +0 -0
  68. package/es/contentDetailList/components/Content/GroupPieceItem/index.d.ts +0 -0
  69. package/es/contentDetailList/components/Content/KongoNavItem/index.d.ts +0 -0
  70. package/es/contentDetailList/components/Content/LiveItem/index.d.ts +0 -0
  71. package/es/contentDetailList/components/Content/MaccountItem/index.d.ts +0 -0
  72. package/es/contentDetailList/components/Content/courseItem/index.d.ts +0 -0
  73. package/es/contentDetailList/components/Content/funhdItem/index.d.ts +0 -0
  74. package/es/contentDetailList/components/Content/index.d.ts +0 -0
  75. package/es/contentDetailList/components/CustomWrp/CustomItem.d.ts +0 -0
  76. package/es/contentDetailList/components/CustomWrp/index.d.ts +0 -0
  77. package/es/contentDetailList/components/Doc/index.d.ts +0 -0
  78. package/es/contentDetailList/components/Records/MatrixItem/index.d.ts +0 -0
  79. package/es/contentDetailList/components/Records/index.d.ts +0 -0
  80. package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.d.ts +0 -0
  81. package/es/contentDetailList/components/ShowQRCode/index.d.ts +0 -0
  82. package/es/contentDetailList/index.d.ts +0 -2
  83. package/es/contentDetailList/script/api.d.ts +0 -6
  84. package/es/contentDetailList/style/index.d.ts +0 -1
  85. package/es/contentModal/component.d.ts +0 -0
  86. package/es/contentModal/components/CompoList/CompoFilter/index.d.ts +0 -0
  87. package/es/contentModal/components/CompoList/index.d.ts +0 -0
  88. package/es/contentModal/components/ContentList/MediaFilter/index.d.ts +0 -0
  89. package/es/contentModal/components/ContentList/index.d.ts +0 -0
  90. package/es/contentModal/components/EqxiuList/MediaFilter/index.d.ts +0 -0
  91. package/es/contentModal/components/EqxiuList/index.d.ts +0 -0
  92. package/es/contentModal/components/LiveList/MediaFilter/index.d.ts +0 -0
  93. package/es/contentModal/components/LiveList/index.d.ts +0 -0
  94. package/es/contentModal/components/MpAccountList/MpAccountFilter/index.d.ts +0 -0
  95. package/es/contentModal/components/MpAccountList/index.d.ts +0 -0
  96. package/es/contentModal/components/MpContentList/MediaFilter/index.d.ts +0 -0
  97. package/es/contentModal/components/MpContentList/index.d.ts +0 -0
  98. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
  99. package/es/contentModal/components/ViewAllColumn/columnTree/index.d.ts +0 -0
  100. package/es/contentModal/components/ViewAllColumn/index.d.ts +0 -0
  101. package/es/contentModal/components/storeBox/index.d.ts +0 -0
  102. package/es/contentModal/index.d.ts +0 -2
  103. package/es/contentModal/script/api.d.ts +0 -14
  104. package/es/contentModal/style/index.d.ts +0 -1
  105. package/es/dataTags/component.d.ts +0 -0
  106. package/es/dataTags/index.d.ts +0 -2
  107. package/es/dataTags/style/index.d.ts +0 -1
  108. package/es/docHistory/component.d.ts +0 -0
  109. package/es/docHistory/components/DocDiffPanel/index.d.ts +0 -0
  110. package/es/docHistory/components/DocHistoryList/index.d.ts +0 -0
  111. package/es/docHistory/index.d.ts +0 -2
  112. package/es/docHistory/scripts/diff.d.ts +0 -1
  113. package/es/docHistory/scripts/useDocHistory.d.ts +0 -10
  114. package/es/docHistory/style/index.d.ts +0 -1
  115. package/es/docPreview/component.d.ts +0 -0
  116. package/es/docPreview/components/PreviewIframe.d.ts +0 -0
  117. package/es/docPreview/index.d.ts +0 -2
  118. package/es/docPreview/scripts/api.d.ts +0 -1
  119. package/es/docPreview/scripts/hook.d.ts +0 -20
  120. package/es/docPreview/style/index.d.ts +0 -1
  121. package/es/editMetaInfo/component.d.ts +0 -0
  122. package/es/editMetaInfo/components/metaInfoForm.d.ts +0 -0
  123. package/es/editMetaInfo/index.d.ts +0 -2
  124. package/es/editMetaInfo/script/api.d.ts +0 -6
  125. package/es/editMetaInfo/script/restaurants.d.ts +0 -4
  126. package/es/editMetaInfo/style/index.d.ts +0 -1
  127. package/es/emptyData/component.d.ts +0 -0
  128. package/es/emptyData/index.d.ts +0 -2
  129. package/es/emptyData/style/index.d.ts +0 -1
  130. package/es/emptyData/svg/add.d.ts +0 -0
  131. package/es/hooks/assets.d.ts +0 -1
  132. package/es/hooks/batch.d.ts +0 -8
  133. package/es/hooks/dialogVisible.d.ts +0 -8
  134. package/es/hooks/source.d.ts +0 -9
  135. package/es/hooks/toggle.d.ts +0 -6
  136. package/es/hooks/useAttachement.d.ts +0 -25
  137. package/es/hooks/useLocalStorage.d.ts +0 -8
  138. package/es/hooks/useMediaContext.d.ts +0 -12
  139. package/es/hooks/usePopper.d.ts +0 -8
  140. package/es/hooks/useSelection.d.ts +0 -23
  141. package/es/hooks/useUpload.d.ts +0 -16
  142. package/es/hooks/user.d.ts +0 -9
  143. package/es/imageCrop/component.d.ts +0 -0
  144. package/es/imageCrop/index.d.ts +0 -2
  145. package/es/imageCrop/script/api.d.ts +0 -1
  146. package/es/imageCrop/style/index.d.ts +0 -1
  147. package/es/index.d.ts +0 -29
  148. package/es/mediaFilter/component.d.ts +0 -0
  149. package/es/mediaFilter/components/DocFilter.d.ts +0 -0
  150. package/es/mediaFilter/components/FilterGroup.d.ts +0 -0
  151. package/es/mediaFilter/components/FilterItem.d.ts +0 -0
  152. package/es/mediaFilter/components/MpAccountFilter.d.ts +0 -0
  153. package/es/mediaFilter/components/MpContentFilter.d.ts +0 -0
  154. package/es/mediaFilter/index.d.ts +0 -3
  155. package/es/mediaFilter/script/optionsGetter.d.ts +0 -26
  156. package/es/mediaFilter/script/types.d.ts +0 -16
  157. package/es/mediaFilter/style/index.d.ts +0 -1
  158. package/es/mediaView/component.d.ts +0 -0
  159. package/es/mediaView/index.d.ts +0 -2
  160. package/es/mediaView/style/index.d.ts +0 -1
  161. package/es/messageBox/component.d.ts +0 -0
  162. package/es/messageBox/index.d.ts +0 -2
  163. package/es/messageBox/list.d.ts +0 -0
  164. package/es/messageBox/script/api.d.ts +0 -6
  165. package/es/messageBox/style/index.d.ts +0 -1
  166. package/es/previousVersion/component.d.ts +0 -0
  167. package/es/previousVersion/index.d.ts +0 -2
  168. package/es/previousVersion/script/api.d.ts +0 -15
  169. package/es/previousVersion/script/tool.d.ts +0 -6
  170. package/es/previousVersion/style/index.d.ts +0 -1
  171. package/es/resourceGridList/component.d.ts +0 -0
  172. package/es/resourceGridList/components/FileTypeThumb/index.d.ts +0 -0
  173. package/es/resourceGridList/index.d.ts +0 -2
  174. package/es/resourceGridList/style/index.d.ts +0 -1
  175. package/es/resourceModal/component.d.ts +0 -0
  176. package/es/resourceModal/components/MediaPreviewer/index.d.ts +0 -0
  177. package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.d.ts +0 -0
  178. package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.d.ts +0 -0
  179. package/es/resourceModal/components/MediaSelection/MainContent/index.d.ts +0 -0
  180. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.d.ts +0 -0
  181. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.d.ts +0 -0
  182. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.d.ts +0 -0
  183. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.d.ts +0 -0
  184. package/es/resourceModal/components/MediaSelection/index.d.ts +0 -0
  185. package/es/resourceModal/index.d.ts +0 -2
  186. package/es/resourceModal/script/api.d.ts +0 -25
  187. package/es/resourceModal/script/mediaSelection.d.ts +0 -14
  188. package/es/resourceModal/style/index.d.ts +0 -1
  189. package/es/selectAvatarList/component.d.ts +0 -0
  190. package/es/selectAvatarList/index.d.ts +0 -2
  191. package/es/selectAvatarList/style/index.d.ts +0 -1
  192. package/es/selectGategory/component.d.ts +0 -0
  193. package/es/selectGategory/components/ColumnSelection/index.d.ts +0 -0
  194. package/es/selectGategory/index.d.ts +0 -2
  195. package/es/selectGategory/script/api.d.ts +0 -6
  196. package/es/selectGategory/style/index.d.ts +0 -1
  197. package/es/selectResourceModal/component.d.ts +0 -0
  198. package/es/selectResourceModal/components/ListCardWrapper/index.d.ts +0 -0
  199. package/es/selectResourceModal/components/ListContent/index.d.ts +0 -0
  200. package/es/selectResourceModal/components/ListContentLocal/components/Upload.d.ts +0 -0
  201. package/es/selectResourceModal/components/ListContentLocal/index.d.ts +0 -0
  202. package/es/selectResourceModal/components/ListFilter/index.d.ts +0 -0
  203. package/es/selectResourceModal/components/ListFilter/scripts/api.d.ts +0 -1
  204. package/es/selectResourceModal/components/ListSelected/index.d.ts +0 -0
  205. package/es/selectResourceModal/components/Main/index.d.ts +0 -0
  206. package/es/selectResourceModal/components/Main/index.js +0 -215
  207. package/es/selectResourceModal/index.d.ts +0 -2
  208. package/es/selectResourceModal/style/index.d.ts +0 -1
  209. package/es/selectThumb/component.d.ts +0 -0
  210. package/es/selectThumb/components/card.d.ts +0 -0
  211. package/es/selectThumb/components/colorPalette.d.ts +0 -0
  212. package/es/selectThumb/components/colorPicker.d.ts +0 -0
  213. package/es/selectThumb/index.d.ts +0 -2
  214. package/es/selectThumb/style/index.d.ts +0 -1
  215. package/es/thumbCard/component.d.ts +0 -0
  216. package/es/thumbCard/index.d.ts +0 -2
  217. package/es/thumbCard/style/index.d.ts +0 -1
  218. package/es/typeIcons/component.d.ts +0 -0
  219. package/es/typeIcons/index.d.ts +0 -2
  220. package/es/typeIcons/style/index.d.ts +0 -1
  221. package/es/uploadBefore/component.d.ts +0 -0
  222. package/es/uploadBefore/components/UploadBefore.d.ts +0 -0
  223. package/es/uploadBefore/components/UploadForClick.d.ts +0 -0
  224. package/es/uploadBefore/index.d.ts +0 -2
  225. package/es/uploadBefore/script/api.d.ts +0 -16
  226. package/es/uploadBefore/script/fileTypeAdapter.d.ts +0 -39
  227. package/es/uploadBefore/script/fileUpload.d.ts +0 -7
  228. package/es/uploadBefore/script/uploadHooks.d.ts +0 -55
  229. package/es/uploadBefore/style/index.d.ts +0 -1
  230. package/es/uploadBefore/utils/dragUploadEvent.d.ts +0 -0
  231. package/es/uploadStep/component.d.ts +0 -0
  232. package/es/uploadStep/index.d.ts +0 -2
  233. package/es/uploadStep/script/fileTypeAdapter.d.ts +0 -20
  234. package/es/uploadStep/style/index.d.ts +0 -1
  235. package/es/userAvater/component.d.ts +0 -0
  236. package/es/userAvater/index.d.ts +0 -2
  237. package/es/userAvater/script/api.d.ts +0 -8
  238. package/es/userAvater/style/index.d.ts +0 -1
  239. package/es/userDirector/component.d.ts +0 -0
  240. package/es/userDirector/components/userTree.d.ts +0 -0
  241. package/es/userDirector/index.d.ts +0 -2
  242. package/es/userDirector/script/api.d.ts +0 -10
  243. package/es/userDirector/style/index.d.ts +0 -1
  244. package/es/utils/auth.d.ts +0 -5
  245. package/es/utils/date.d.ts +0 -3
  246. package/es/utils/doc.d.ts +0 -76
  247. package/es/utils/filter.d.ts +0 -9
  248. package/es/utils/index.d.ts +0 -17
  249. package/es/utils/request.d.ts +0 -9
  250. package/es/utils/transcodeMedia.d.ts +0 -13
  251. package/es/utils/tusUpload.d.ts +0 -16
  252. package/es/utils/typeMap.d.ts +0 -186
  253. package/es/utils/uploadCatalog.d.ts +0 -1
  254. package/es/videoThumb/component.d.ts +0 -0
  255. package/es/videoThumb/index.d.ts +0 -2
  256. package/es/videoThumb/scripts/api.d.ts +0 -9
  257. package/es/videoThumb/scripts/useVideoThumbs.d.ts +0 -7
  258. package/es/videoThumb/style/index.d.ts +0 -1
  259. package/lib/selectResourceModal/components/Main/index.js +0 -216
@@ -1,2 +0,0 @@
1
- declare const selectGategory: any;
2
- export default selectGategory;
@@ -1,6 +0,0 @@
1
- interface Params {
2
- [key: string]: any;
3
- }
4
- export declare function getCategoryPath(BASE_API: string, params: Params): import("axios").AxiosPromise<any>;
5
- export declare function getCategoryCategoriesTree(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
6
- export {};
@@ -1 +0,0 @@
1
- import './index.less';
File without changes
@@ -1 +0,0 @@
1
- export declare function getAccountList(BASE_API: string, id: number, query: any): import("axios").AxiosPromise<any>;
File without changes
@@ -1,215 +0,0 @@
1
- import { defineComponent, ref, provide, computed, openBlock, createElementBlock, createCommentVNode, createElementVNode, createVNode, unref, withCtx, withDirectives, vShow, createBlock, createTextVNode } from "vue";
2
- import { Tabs, Button, TabPane, Scrollbar, Pagination } from "@arco-design/web-vue";
3
- import { IconClose } from "@arco-design/web-vue/es/icon";
4
- import emptyData from "../../../emptyData/index.js";
5
- import _sfc_main$1 from "../ListFilter/index.js";
6
- import _sfc_main$2 from "../ListContent/index.js";
7
- import _sfc_main$4 from "../ListSelected/index.js";
8
- import _sfc_main$3 from "../ListContentLocal/index.js";
9
- import useAttachement from "../../../hooks/useAttachement.js";
10
- import { DEFAULT_BASE_API } from "../../../config.js";
11
- const _hoisted_1 = { class: "resource-select-main" };
12
- const _hoisted_2 = {
13
- key: 0,
14
- class: "resource-select-container"
15
- };
16
- const _hoisted_3 = { class: "resource-select-header" };
17
- const _hoisted_4 = {
18
- key: 0,
19
- class: "resource-select-filter"
20
- };
21
- const _hoisted_5 = { class: "resource-select-content" };
22
- const _hoisted_6 = { class: "resource-select-footer" };
23
- const _hoisted_7 = { class: "footer-left" };
24
- const _hoisted_8 = {
25
- key: 0,
26
- class: "footer-right"
27
- };
28
- const _sfc_main = defineComponent({
29
- __name: "index",
30
- props: {
31
- BASE_API: {},
32
- userInfo: {},
33
- maxcount: {},
34
- filterOptions: {}
35
- },
36
- emits: ["close", "submit"],
37
- setup(__props, { emit: __emit }) {
38
- const props = __props;
39
- const emits = __emit;
40
- const BASE_API = props.BASE_API || DEFAULT_BASE_API;
41
- const activeKey = ref("all");
42
- provide("userInfo", computed(() => props.userInfo));
43
- provide("baseAPI", BASE_API);
44
- const {
45
- list,
46
- total,
47
- limit,
48
- loading,
49
- changeKey,
50
- changeFilter,
51
- changePage,
52
- changeSize
53
- } = useAttachement({ key: "all", BASE_API });
54
- const selected = ref([]);
55
- const selectedKeys = computed(() => selected.value.map((item) => item.id));
56
- const disableSelect = computed(() => props.maxcount && selected.value.length >= props.maxcount);
57
- function handleSelect(params) {
58
- const { id } = params;
59
- const index = selected.value.findIndex((item) => item.id === id);
60
- if (index > -1)
61
- selected.value.splice(index, 1);
62
- else
63
- selected.value.push(params);
64
- }
65
- function handleClear() {
66
- selected.value = [];
67
- }
68
- function handleClose() {
69
- handleClear();
70
- emits("close");
71
- }
72
- const handleSelectOne = (params) => {
73
- if (Array.isArray(params))
74
- emits("submit", params);
75
- else
76
- emits("submit", [params]);
77
- handleClose();
78
- };
79
- function handleConfirm() {
80
- handleSelectOne(selected.value);
81
- }
82
- function handleToUpload() {
83
- changeKey("local");
84
- activeKey.value = "local";
85
- }
86
- return (_ctx, _cache) => {
87
- return openBlock(), createElementBlock("div", _hoisted_1, [
88
- _ctx.userInfo ? (openBlock(), createElementBlock("div", _hoisted_2, [
89
- createCommentVNode(" \u5934\u90E8 "),
90
- createElementVNode("div", _hoisted_3, [
91
- createVNode(unref(Tabs), {
92
- "active-key": activeKey.value,
93
- "onUpdate:activeKey": _cache[0] || (_cache[0] = ($event) => activeKey.value = $event),
94
- onChange: unref(changeKey)
95
- }, {
96
- extra: withCtx(() => [
97
- createVNode(unref(Button), {
98
- type: "secondary",
99
- shape: "round",
100
- onClick: handleClose
101
- }, {
102
- icon: withCtx(() => [
103
- createVNode(unref(IconClose))
104
- ]),
105
- _: 1
106
- })
107
- ]),
108
- default: withCtx(() => [
109
- createVNode(unref(TabPane), {
110
- key: "all",
111
- title: "\u5168\u90E8\u7D20\u6750"
112
- }),
113
- createVNode(unref(TabPane), {
114
- key: "my",
115
- title: "\u6211\u7684\u7D20\u6750"
116
- }),
117
- createVNode(unref(TabPane), {
118
- key: "remind",
119
- title: "\u63D0\u9192\u6211\u7684"
120
- }),
121
- createVNode(unref(TabPane), {
122
- key: "local",
123
- title: "\u672C\u5730\u7D20\u6750"
124
- })
125
- ]),
126
- _: 1
127
- }, 8, ["active-key", "onChange"])
128
- ]),
129
- createCommentVNode(" \u7B5B\u9009 "),
130
- activeKey.value !== "local" ? (openBlock(), createElementBlock("div", _hoisted_4, [
131
- createVNode(_sfc_main$1, {
132
- "disable-upload-by": !["all", "remind"].includes(activeKey.value),
133
- filterOptions: _ctx.filterOptions,
134
- onChange: unref(changeFilter),
135
- onUpload: handleToUpload
136
- }, null, 8, ["disable-upload-by", "filterOptions", "onChange"])
137
- ])) : createCommentVNode("v-if", true),
138
- createCommentVNode(" \u5217\u8868\u90E8\u5206 "),
139
- createElementVNode("div", _hoisted_5, [
140
- createVNode(unref(Scrollbar), {
141
- "outer-style": { height: "100%" },
142
- style: { "height": "100%", "overflow": "auto" }
143
- }, {
144
- default: withCtx(() => [
145
- withDirectives(createVNode(_sfc_main$2, {
146
- loading: unref(loading),
147
- list: unref(list),
148
- disable: disableSelect.value,
149
- "select-keys": selectedKeys.value,
150
- onSelect: handleSelect,
151
- onSelectOne: handleSelectOne
152
- }, null, 8, ["loading", "list", "disable", "select-keys"]), [
153
- [vShow, activeKey.value !== "local"]
154
- ]),
155
- withDirectives(createVNode(_sfc_main$3, {
156
- disable: disableSelect.value,
157
- "select-keys": selectedKeys.value,
158
- onSelect: handleSelect,
159
- onSelectOne: handleSelectOne
160
- }, null, 8, ["disable", "select-keys"]), [
161
- [vShow, activeKey.value === "local"]
162
- ])
163
- ]),
164
- _: 1
165
- })
166
- ]),
167
- createCommentVNode(" \u5E95\u90E8 "),
168
- createElementVNode("div", _hoisted_6, [
169
- createElementVNode("div", _hoisted_7, [
170
- activeKey.value !== "local" ? (openBlock(), createBlock(unref(Pagination), {
171
- key: 0,
172
- total: unref(total),
173
- "page-size": unref(limit),
174
- "show-total": "",
175
- "show-page-size": "",
176
- "base-size": 3,
177
- "buffer-size": 1,
178
- onChange: _cache[1] || (_cache[1] = (e) => unref(changePage)((e - 1) * unref(limit))),
179
- onPageSizeChange: unref(changeSize)
180
- }, null, 8, ["total", "page-size", "onPageSizeChange"])) : createCommentVNode("v-if", true)
181
- ]),
182
- selected.value.length ? (openBlock(), createElementBlock("div", _hoisted_8, [
183
- createVNode(_sfc_main$4, {
184
- maxcount: _ctx.maxcount,
185
- selected: selected.value,
186
- onRemove: handleSelect,
187
- onClear: handleClear
188
- }, null, 8, ["maxcount", "selected"]),
189
- createVNode(unref(Button), { onClick: handleClose }, {
190
- default: withCtx(() => [
191
- createTextVNode("\u53D6\u6D88")
192
- ]),
193
- _: 1
194
- }),
195
- createVNode(unref(Button), {
196
- type: "primary",
197
- onClick: handleConfirm
198
- }, {
199
- default: withCtx(() => [
200
- createTextVNode("\u786E\u5B9A")
201
- ]),
202
- _: 1
203
- })
204
- ])) : createCommentVNode("v-if", true)
205
- ])
206
- ])) : (openBlock(), createBlock(unref(emptyData), {
207
- key: 1,
208
- type: "empty",
209
- customTip: "\u6682\u65E0\u6743\u9650"
210
- }))
211
- ]);
212
- };
213
- }
214
- });
215
- export { _sfc_main as default };
@@ -1,2 +0,0 @@
1
- declare const selectResourceModal: any;
2
- export default selectResourceModal;
@@ -1 +0,0 @@
1
- import './index.less';
File without changes
File without changes
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- declare const selectThumb: any;
2
- export default selectThumb;
@@ -1 +0,0 @@
1
- import './index.less';
File without changes
@@ -1,2 +0,0 @@
1
- declare const thumbCard: any;
2
- export default thumbCard;
@@ -1 +0,0 @@
1
- import './index.less';
File without changes
@@ -1,2 +0,0 @@
1
- declare const typeIcons: any;
2
- export default typeIcons;
@@ -1 +0,0 @@
1
- import './index.less';
File without changes
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- declare const uploadBefore: any;
2
- export default uploadBefore;
@@ -1,16 +0,0 @@
1
- export declare function getWaterMark(BASE_API: string): import("axios").AxiosPromise<any>;
2
- export declare function getVideoTransTemplate(BASE_API: string): import("axios").AxiosPromise<any>;
3
- export declare function getAudioTransTrempalte(BASE_API: string): import("axios").AxiosPromise<any>;
4
- export declare type TypeAddMediaParam = {
5
- url: string;
6
- alias: string;
7
- catalog: string;
8
- repository_id: number;
9
- directory_id: number;
10
- size: number;
11
- enable_ai_catalog?: 0 | 1;
12
- watermark?: any;
13
- video_transcode_template?: any;
14
- audio_transcode_template?: any;
15
- };
16
- export declare function addMedia(BASE_API: string, params: TypeAddMediaParam): import("axios").AxiosPromise<any>;
@@ -1,39 +0,0 @@
1
- /** @description 文件类型适配器 @author LilMartin */
2
- import type { FileItem } from '@arco-design/web-vue';
3
- export interface CFileItem {
4
- file: File;
5
- id: string;
6
- url?: string;
7
- dirId?: string;
8
- }
9
- export interface SFileItem {
10
- name: string;
11
- size: number;
12
- sizeCN: string;
13
- type: string;
14
- typeCN?: string;
15
- id: string;
16
- dirId?: string;
17
- }
18
- export interface BFileItem extends SFileItem {
19
- isAnalize?: 0 | 1;
20
- watermark?: any;
21
- videotemp?: any;
22
- audiotemp?: any;
23
- }
24
- export interface LFileItem extends BFileItem {
25
- percent: number;
26
- state: number;
27
- count?: number;
28
- }
29
- declare type FileMaybeType = File | FileItem;
30
- export declare function fileAdapter(fileMeta: FileMaybeType): {
31
- url: string;
32
- file: File;
33
- id: string;
34
- dirId?: string | undefined;
35
- } | undefined;
36
- export declare function checkType(type: string): "图片" | "目录" | "其他";
37
- export declare function getMediaType(type: string): string;
38
- export declare function getSize(value: number): string;
39
- export {};
@@ -1,7 +0,0 @@
1
- import { BFileItem } from './fileTypeAdapter';
2
- export declare function uploadFile(file: File, cb: (p: number) => void): Promise<false | import("tus-js-client").Upload>;
3
- export declare function uploadAddRequest(file: BFileItem, metaData: {
4
- rid: number;
5
- dirId: number;
6
- url: string;
7
- }, BASE_API: string, cb?: (cbData: any) => void): Promise<void>;
@@ -1,55 +0,0 @@
1
- import { CFileItem, LFileItem } from './fileTypeAdapter';
2
- export declare function usePannelList(): {
3
- panelList: import("vue").Ref<{
4
- percent: number;
5
- state: number;
6
- count?: number | undefined;
7
- isAnalize?: 0 | 1 | undefined;
8
- watermark?: any;
9
- videotemp?: any;
10
- audiotemp?: any;
11
- name: string;
12
- size: number;
13
- sizeCN: string;
14
- type: string;
15
- typeCN?: string | undefined;
16
- id: string;
17
- dirId?: string | undefined;
18
- }[]>;
19
- panelFIleAdd: (fileMetaData: LFileItem) => void;
20
- panelFileStatusChange: (id: string, p: number, s: number) => void;
21
- };
22
- export declare function usePreUploadOptions(): {
23
- preOptionsList: import("vue").Ref<{
24
- isAnalize?: 0 | 1 | undefined;
25
- watermark?: any;
26
- videotemp?: any;
27
- audiotemp?: any;
28
- name: string;
29
- size: number;
30
- sizeCN: string;
31
- type: string;
32
- typeCN?: string | undefined;
33
- id: string;
34
- dirId?: string | undefined;
35
- }[]>;
36
- uploadFileToShowFileTrans: (file: CFileItem) => void;
37
- };
38
- export declare function useUplaodList(): {
39
- fileList: import("vue").Ref<{
40
- file: {
41
- readonly lastModified: number;
42
- readonly name: string;
43
- readonly size: number;
44
- readonly type: string;
45
- arrayBuffer: () => Promise<ArrayBuffer>;
46
- slice: (start?: number | undefined, end?: number | undefined, contentType?: string | undefined) => Blob;
47
- stream: () => ReadableStream<any>;
48
- text: () => Promise<string>;
49
- };
50
- id: string;
51
- url?: string | undefined;
52
- dirId?: string | undefined;
53
- }[]>;
54
- uploadFileAdd: (file: CFileItem) => void;
55
- };
@@ -1 +0,0 @@
1
- import './index.less';
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- declare const uploadStep: any;
2
- export default uploadStep;
@@ -1,20 +0,0 @@
1
- export interface CFileItem {
2
- file: File;
3
- id: string;
4
- url?: string;
5
- dirId?: string;
6
- }
7
- export interface SFileItem {
8
- name: string;
9
- size: number;
10
- sizeCN: string;
11
- type: string;
12
- typeCN?: string;
13
- id: string;
14
- dirId?: string;
15
- }
16
- export interface LFileItem extends SFileItem {
17
- percent: number;
18
- state: number;
19
- count?: number;
20
- }
@@ -1 +0,0 @@
1
- import './index.less';
File without changes
@@ -1,2 +0,0 @@
1
- declare const userAvater: any;
2
- export default userAvater;
@@ -1,8 +0,0 @@
1
- interface Params {
2
- [key: string]: any;
3
- }
4
- export declare function getUserInfo(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
5
- export declare function getUserDetails(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
6
- export declare function domainSelect(BASE_API: string, did: number): import("axios").AxiosPromise<any>;
7
- export declare function accountLogout(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
8
- export {};
@@ -1 +0,0 @@
1
- import './index.less';
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- declare const userDirector: any;
2
- export default userDirector;
@@ -1,10 +0,0 @@
1
- interface Params {
2
- [key: string]: any;
3
- }
4
- export declare function getRepoRoleList(BASE_API: string, params: Params): import("axios").AxiosPromise<any>;
5
- export declare function getRoleAllUser(BASE_API: string, params: Params): import("axios").AxiosPromise<any>;
6
- export declare function getDepartList(BASE_API: string): import("axios").AxiosPromise<any>;
7
- export declare function getDepartUserList(BASE_API: string, params: Params): import("axios").AxiosPromise<any>;
8
- export declare function getRepoUserList(BASE_API: string, params: Params): import("axios").AxiosPromise<any>;
9
- export declare function getDepartChildren(BASE_API: string, params: Params): import("axios").AxiosPromise<any>;
10
- export {};
@@ -1 +0,0 @@
1
- import './index.less';
@@ -1,5 +0,0 @@
1
- export declare function getToken(): string | null;
2
- export declare function setToken(token: string): void;
3
- export declare function getRID(): string | null;
4
- export declare function setRID(rid: string | number): void;
5
- export declare function removeToken(): void;
@@ -1,3 +0,0 @@
1
- export declare function getSpaceDate(date: any): string | 0;
2
- declare const _default: null;
3
- export default _default;
package/es/utils/doc.d.ts DELETED
@@ -1,76 +0,0 @@
1
- declare type KeyValue = {
2
- [key: string]: string;
3
- };
4
- export declare const docStateMap: {
5
- 0: string;
6
- 10: string;
7
- 12: string;
8
- 13: string;
9
- 14: string;
10
- 15: string;
11
- 16: string;
12
- 17: string;
13
- 19: string;
14
- 22: string;
15
- };
16
- export declare const docPubStateMap: KeyValue;
17
- export declare const stateOptions: () => {
18
- value: string;
19
- label: string;
20
- }[];
21
- export declare const docThumbObjMap: any;
22
- export declare const docThumbRatioMap: () => any;
23
- export declare const docThumbArrMap: () => unknown[];
24
- export declare const docThumbOptions: () => {
25
- label: any;
26
- value: string;
27
- }[];
28
- export declare const docThumbMap: () => any;
29
- export declare const docThumbTypeMap: () => {
30
- value: string;
31
- label: any;
32
- }[];
33
- export declare const docSeries: KeyValue;
34
- export declare const typeOptions: () => {
35
- value: string;
36
- label: string;
37
- }[];
38
- export declare const otherSeries: {
39
- wechat: string;
40
- ad: string;
41
- activity: string;
42
- booklink: string;
43
- vote_activity: string;
44
- vote: string;
45
- cloud_lottery: string;
46
- cloud_form: string;
47
- };
48
- export declare const editDocTypeToRouteMap: {
49
- imagetext: string;
50
- atlas: string;
51
- video: string;
52
- video_album: string;
53
- svideo: string;
54
- audio: string;
55
- audio_album: string;
56
- special_v3: string;
57
- h5: string;
58
- mini_program: string;
59
- sp_topic: string;
60
- local_live: string;
61
- };
62
- export declare const approvalItem: (item: any) => any;
63
- export declare const getPublishParmas: (categories: any[], categories_with: any[], docData: any) => {
64
- category: {
65
- id: any;
66
- repo_id: any;
67
- };
68
- category_with: {
69
- id: any;
70
- repo_id: any;
71
- }[];
72
- clean_offline_time: boolean;
73
- id: any;
74
- };
75
- export declare function getDocThumb(item: any): any;
76
- export {};
@@ -1,9 +0,0 @@
1
- export declare const rateOptions: import("vue").Ref<{
2
- label: string;
3
- value: string;
4
- }[]>;
5
- export declare const keywordsSelection: import("vue").Ref<{
6
- name: string;
7
- value: string;
8
- }[]>;
9
- export declare const timeFormat: import("vue").ComputedRef<(value: any) => string>;
@@ -1,17 +0,0 @@
1
- export declare const dateYYYYDDMMHHmm: (date: any) => string;
2
- export declare const generateUUID: () => string;
3
- /**
4
- * @description await 回调处理
5
- * @param { Promise } promise
6
- * @param { Object= } errorExt - Additional Information you can pass to the err object
7
- * @return { Promise }
8
- */
9
- export declare const to: <T, U = Error>(promise: Promise<T>, errorExt?: any) => Promise<[U, undefined] | [null, T]>;
10
- export declare function replaceSuffix(str: string, insert: string): string;
11
- export declare const noCoverText: (item: any) => any;
12
- export declare const timeFormat: (value: any) => string;
13
- export declare const validateForm: (formRef: any) => Promise<unknown>;
14
- export declare function getRealUrl(BASE_API: string, url: string): Promise<unknown>;
15
- export declare function getThemeColor(BASE_API: string, src: string): Promise<unknown>;
16
- export declare function copyContent(content: string | Blob): Promise<boolean>;
17
- export declare function mediaTime(v: number): string;
@@ -1,9 +0,0 @@
1
- declare module 'axios' {
2
- interface AxiosResponse<T = any> {
3
- code: number;
4
- data: T;
5
- message: T;
6
- }
7
- function create(config?: AxiosRequestConfig): AxiosInstance;
8
- }
9
- export default function (BASE_API: string, options: any): import("axios").AxiosPromise<any>;
@@ -1,13 +0,0 @@
1
- export declare function getTranscodingProgress(BASE_API: string, id: number): import("axios").AxiosPromise<any>;
2
- /**
3
- * 转码逻辑
4
- * @description 转码逻辑抽离,后期所有涉及到转码的地方都可用该方法
5
- */
6
- export declare class TranscodingTask {
7
- file: any;
8
- pollCount: number;
9
- taskInterval: any;
10
- constructor(file: any);
11
- start(BASE_API: string, callback: (progress: number) => any): Promise<unknown>;
12
- abort(): void;
13
- }