@cmstops/pro-compo 3.9.2 → 3.10.5-nanning.2

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 (325) hide show
  1. package/README.md +103 -76
  2. package/dist/index.css +97 -4
  3. package/dist/index.min.css +1 -1
  4. package/dist/index.min.js.map +1 -1
  5. package/es/appCenter/script/api.d.ts +5 -5
  6. package/es/baseFilter/component.js +71 -14
  7. package/es/baseFilter/components/FilterGroup.js +1 -1
  8. package/es/baseFilter/components/filterItem.js +1 -1
  9. package/es/colorPalette/component.js +1 -1
  10. package/es/contentDetailList/component.js +33 -9
  11. package/es/contentDetailList/components/Content/CircleItem/index.d.ts +0 -0
  12. package/es/contentDetailList/components/Content/CircleItem/index.js +92 -0
  13. package/es/contentDetailList/components/Content/CompoItem/index.js +12 -12
  14. package/es/contentDetailList/components/Content/ContentListItem/index.js +15 -15
  15. package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +18 -18
  16. package/es/contentDetailList/components/Content/DocItem/index.js +27 -27
  17. package/es/contentDetailList/components/Content/DocMpItem/index.js +13 -13
  18. package/es/contentDetailList/components/Content/GroupPieceItem/index.js +11 -11
  19. package/es/contentDetailList/components/Content/KongoNavItem/index.js +14 -14
  20. package/es/contentDetailList/components/Content/LiveItem/index.js +9 -9
  21. package/es/contentDetailList/components/Content/MaccountItem/index.js +12 -12
  22. package/es/contentDetailList/components/Content/courseItem/index.js +10 -10
  23. package/es/contentDetailList/components/Content/funhdItem/index.js +10 -10
  24. package/es/contentDetailList/components/Content/index.js +173 -117
  25. package/es/contentDetailList/components/CustomWrp/CustomItem.js +5 -5
  26. package/es/contentDetailList/components/CustomWrp/index.js +10 -10
  27. package/es/contentDetailList/components/Doc/index.js +16 -10
  28. package/es/contentDetailList/components/Records/MatrixItem/index.js +22 -22
  29. package/es/contentDetailList/components/Records/index.js +8 -8
  30. package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.js +6 -6
  31. package/es/contentDetailList/components/ShowQRCode/index.js +1 -1
  32. package/es/contentDetailList/script/api.d.ts +2 -2
  33. package/es/contentModal/component.js +40 -40
  34. package/es/contentModal/components/CompoList/index.js +1 -1
  35. package/es/contentModal/components/Dejin/index.js +1 -1
  36. package/es/contentModal/components/MpContentList/MediaFilter/index.js +2 -2
  37. package/es/contentModal/components/MpContentList/index.js +1 -1
  38. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +3 -3
  39. package/es/contentModal/components/ViewAllColumn/index.js +7 -3
  40. package/es/contentModal/components/storeBox/index.js +8 -8
  41. package/es/contentModal/script/api.d.ts +13 -13
  42. package/es/dataTags/component.js +38 -38
  43. package/es/docHistory/component.js +44 -15
  44. package/es/docHistory/components/DocDiffPanel/index.js +2 -2
  45. package/es/docHistory/components/DocHistoryList/index.js +2 -2
  46. package/es/docHistory/scripts/diff.js +4 -3
  47. package/es/docHistory/scripts/useDocHistory.d.ts +1 -1
  48. package/es/docHistory/style/index.css +4 -0
  49. package/es/docHistory/style/index.less +5 -0
  50. package/es/docPreview/component.js +228 -60
  51. package/es/docPreview/components/PreviewIframe.js +37 -6
  52. package/es/docPreview/images/pc.js +2 -0
  53. package/es/docPreview/scripts/api.d.ts +2 -1
  54. package/es/docPreview/scripts/hook.d.ts +11 -1
  55. package/es/docPreview/scripts/hook.js +115 -4
  56. package/es/docPreview/style/index.css +48 -0
  57. package/es/docPreview/style/index.less +23 -0
  58. package/es/docPreview/style/previewIframe.less +31 -0
  59. package/es/editMetaInfo/component.js +24 -4
  60. package/es/editMetaInfo/components/metaInfoForm.js +358 -17
  61. package/es/editMetaInfo/script/api.d.ts +9 -2
  62. package/es/editMetaInfo/script/api.js +20 -1
  63. package/es/emptyData/component.js +4 -4
  64. package/es/emptyData/svg/acount.js +2 -2
  65. package/es/emptyData/svg/add.js +2 -2
  66. package/es/emptyData/svg/analize.js +2 -2
  67. package/es/emptyData/svg/analize_fail.js +2 -2
  68. package/es/emptyData/svg/empty.js +2 -2
  69. package/es/emptyData/svg/file.js +2 -2
  70. package/es/emptyData/svg/manager.js +2 -2
  71. package/es/emptyData/svg/message.js +2 -2
  72. package/es/emptyData/svg/noanalize.js +2 -2
  73. package/es/emptyData/svg/null.js +2 -2
  74. package/es/emptyData/svg/search.js +2 -2
  75. package/es/emptyData/svg/star.js +2 -2
  76. package/es/emptyData/svg/trash.js +2 -2
  77. package/es/emptyData/svg/user.js +2 -2
  78. package/es/hooks/assets.d.ts +1 -1
  79. package/es/hooks/source.d.ts +1 -1
  80. package/es/hooks/useAttachement.d.ts +32 -13
  81. package/es/hooks/useAttachement.js +42 -2
  82. package/es/hooks/usePopper.d.ts +1 -1
  83. package/es/hooks/usePopper.js +3 -3
  84. package/es/hooks/useUpload.d.ts +53 -5
  85. package/es/hooks/useUpload.js +43 -4
  86. package/es/hooks/user.d.ts +1 -1
  87. package/es/imageCrop/component.js +11 -11
  88. package/es/imageCrop/script/api.d.ts +1 -1
  89. package/es/importData/component.js +13 -13
  90. package/es/index.css +97 -4
  91. package/es/index.d.ts +1 -0
  92. package/es/index.js +1 -0
  93. package/es/mediaFilter/component.js +4 -4
  94. package/es/mediaFilter/components/DocFilter.js +1 -1
  95. package/es/mediaFilter/components/FilterGroup.js +1 -1
  96. package/es/mediaFilter/components/FilterItem.js +1 -1
  97. package/es/mediaView/component.js +8 -8
  98. package/es/messageBox/component.js +3 -3
  99. package/es/messageBox/script/api.d.ts +2 -2
  100. package/es/previousVersion/script/api.d.ts +4 -4
  101. package/es/resourceGridList/component.js +16 -16
  102. package/es/resourceGridList/components/FileTypeThumb/index.js +6 -6
  103. package/es/resourceModal/component.js +7 -7
  104. package/es/resourceModal/components/MediaPreviewer/index.js +8 -8
  105. package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +5 -5
  106. package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +6 -6
  107. package/es/resourceModal/components/MediaSelection/MainContent/index.js +18 -18
  108. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +3 -3
  109. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +3 -3
  110. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.js +2 -2
  111. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +4 -4
  112. package/es/resourceModal/components/MediaSelection/index.js +6 -6
  113. package/es/resourceModal/script/api.d.ts +11 -11
  114. package/es/selectAddTo/component.d.ts +0 -0
  115. package/es/selectAddTo/component.js +47 -0
  116. package/es/selectAddTo/component.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  117. package/es/selectAddTo/components/SelectAddToView.d.ts +0 -0
  118. package/es/selectAddTo/components/SelectAddToView.js +90 -0
  119. package/es/selectAddTo/components/SelectAddToView.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  120. package/es/selectAddTo/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
  121. package/es/selectAddTo/components/ViewAllColumn/MediaFilter/index.js +166 -0
  122. package/es/selectAddTo/components/ViewAllColumn/index.d.ts +0 -0
  123. package/es/selectAddTo/components/ViewAllColumn/index.js +212 -0
  124. package/es/selectAddTo/components/ViewAllColumn/index.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  125. package/es/selectAddTo/components/ViewAllColumn/script/useTableColumns.d.ts +6 -0
  126. package/es/selectAddTo/components/ViewAllColumn/script/useTableColumns.js +102 -0
  127. package/es/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.d.ts +144 -0
  128. package/es/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +182 -0
  129. package/es/selectAddTo/components/ViewAllColumn/types/index.d.ts +55 -0
  130. package/es/selectAddTo/index.d.ts +2 -0
  131. package/es/selectAddTo/index.js +7 -0
  132. package/es/selectAddTo/script/api.d.ts +18 -0
  133. package/es/selectAddTo/script/api.js +23 -0
  134. package/es/selectAddTo/script/index.d.ts +2 -0
  135. package/es/selectAddTo/script/useSelectAddToState.d.ts +13 -0
  136. package/es/selectAddTo/script/useSelectAddToState.js +55 -0
  137. package/es/selectAddTo/style/css.js +1 -0
  138. package/es/selectAddTo/style/index.css +3 -0
  139. package/es/selectAddTo/style/index.d.ts +1 -0
  140. package/es/selectAddTo/style/index.js +1 -0
  141. package/es/selectAddTo/style/index.less +3 -0
  142. package/es/selectAddTo/types/index.d.ts +37 -0
  143. package/es/selectGategory/component.js +5 -5
  144. package/es/selectGategory/components/ColumnSelection/index.js +6 -6
  145. package/es/selectGategory/script/api.d.ts +2 -2
  146. package/es/selectResourceModal/__demo__/module/DivWrapper.d.ts +261 -0
  147. package/es/selectResourceModal/__demo__/module/basic.d.ts +292 -0
  148. package/es/selectResourceModal/component.js +26 -34
  149. package/es/selectResourceModal/components/List/ListCardWrapper.js +6 -6
  150. package/es/selectResourceModal/components/List/ListLocal/Upload.js +1 -1
  151. package/es/selectResourceModal/components/List/ListLocal/index.js +8 -3
  152. package/es/selectResourceModal/components/List/ListNormal/Filter.js +210 -83
  153. package/es/selectResourceModal/components/List/ListNormal/index.js +23 -7
  154. package/es/selectResourceModal/components/List/ListSystem/Filter.js +3 -3
  155. package/es/selectResourceModal/components/List/ListSystem/SubList.js +3 -3
  156. package/es/selectResourceModal/components/List/ListSystem/index.js +2 -2
  157. package/es/selectResourceModal/components/List/ListWraper.js +2 -2
  158. package/es/selectResourceModal/components/ListSelected/index.js +6 -6
  159. package/es/selectResourceModal/components/ListTabs/index.js +1 -1
  160. package/es/selectResourceModal/hooks/useResponsiveFilter.d.ts +21 -0
  161. package/es/selectResourceModal/hooks/useResponsiveFilter.js +142 -0
  162. package/es/selectResourceModal/scripts/selectionApis.d.ts +2 -2
  163. package/es/selectResourceModal/scripts/useCompoLf.js +1 -1
  164. package/es/selectResourceModal/scripts/useTabFilter.js +1 -11
  165. package/es/selectResourceModal/style/index.css +45 -4
  166. package/es/selectResourceModal/style/index.less +14 -0
  167. package/es/selectResourceModal/style/list.less +40 -4
  168. package/es/selectThumb/component.js +76 -33
  169. package/es/selectThumb/components/card.js +3 -3
  170. package/es/style.css +63 -0
  171. package/es/thumbCard/component.js +7 -7
  172. package/es/thumbCard/components/ThumbUploading/index.js +3 -3
  173. package/es/typeIcons/component.js +1 -1
  174. package/es/uploadBefore/component.js +1 -1
  175. package/es/uploadBefore/components/UploadBefore.js +9 -9
  176. package/es/uploadBefore/script/api.d.ts +4 -4
  177. package/es/uploadStep/component.js +3 -3
  178. package/es/userAvater/component.js +3 -3
  179. package/es/userAvater/script/api.d.ts +4 -4
  180. package/es/userDirector/component.js +5 -5
  181. package/es/userDirector/components/userTree.js +2 -2
  182. package/es/userDirector/script/api.d.ts +6 -6
  183. package/es/utils/index.js +6 -6
  184. package/es/utils/request.d.ts +1 -1
  185. package/es/utils/transcodeMedia.d.ts +1 -1
  186. package/es/videoThumb/scripts/api.d.ts +1 -1
  187. package/lib/baseFilter/component.js +69 -12
  188. package/lib/baseFilter/components/FilterGroup.js +1 -1
  189. package/lib/baseFilter/components/filterItem.js +1 -1
  190. package/lib/colorPalette/component.js +1 -1
  191. package/lib/contentDetailList/component.js +33 -9
  192. package/lib/contentDetailList/components/Content/CircleItem/index.js +93 -0
  193. package/lib/contentDetailList/components/Content/CompoItem/index.js +12 -12
  194. package/lib/contentDetailList/components/Content/ContentListItem/index.js +15 -15
  195. package/lib/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +18 -18
  196. package/lib/contentDetailList/components/Content/DocItem/index.js +27 -27
  197. package/lib/contentDetailList/components/Content/DocMpItem/index.js +13 -13
  198. package/lib/contentDetailList/components/Content/GroupPieceItem/index.js +11 -11
  199. package/lib/contentDetailList/components/Content/KongoNavItem/index.js +14 -14
  200. package/lib/contentDetailList/components/Content/LiveItem/index.js +9 -9
  201. package/lib/contentDetailList/components/Content/MaccountItem/index.js +12 -12
  202. package/lib/contentDetailList/components/Content/courseItem/index.js +10 -10
  203. package/lib/contentDetailList/components/Content/funhdItem/index.js +10 -10
  204. package/lib/contentDetailList/components/Content/index.js +173 -117
  205. package/lib/contentDetailList/components/CustomWrp/CustomItem.js +5 -5
  206. package/lib/contentDetailList/components/CustomWrp/index.js +10 -10
  207. package/lib/contentDetailList/components/Doc/index.js +16 -10
  208. package/lib/contentDetailList/components/Records/MatrixItem/index.js +22 -22
  209. package/lib/contentDetailList/components/Records/index.js +8 -8
  210. package/lib/contentDetailList/components/ShowQRCode/QrcodeView/index.js +6 -6
  211. package/lib/contentDetailList/components/ShowQRCode/index.js +1 -1
  212. package/lib/contentModal/component.js +40 -40
  213. package/lib/contentModal/components/CompoList/index.js +1 -1
  214. package/lib/contentModal/components/Dejin/index.js +1 -1
  215. package/lib/contentModal/components/MpContentList/MediaFilter/index.js +2 -2
  216. package/lib/contentModal/components/MpContentList/index.js +1 -1
  217. package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +3 -3
  218. package/lib/contentModal/components/ViewAllColumn/index.js +7 -3
  219. package/lib/contentModal/components/storeBox/index.js +8 -8
  220. package/lib/dataTags/component.js +38 -38
  221. package/lib/docHistory/component.js +42 -13
  222. package/lib/docHistory/components/DocDiffPanel/index.js +2 -2
  223. package/lib/docHistory/components/DocHistoryList/index.js +2 -2
  224. package/lib/docHistory/scripts/diff.js +4 -3
  225. package/lib/docHistory/style/index.css +4 -0
  226. package/lib/docHistory/style/index.less +5 -0
  227. package/lib/docPreview/component.js +227 -59
  228. package/lib/docPreview/components/PreviewIframe.js +37 -6
  229. package/lib/docPreview/images/pc.js +3 -0
  230. package/lib/docPreview/scripts/hook.js +115 -3
  231. package/lib/docPreview/style/index.css +48 -0
  232. package/lib/docPreview/style/index.less +23 -0
  233. package/lib/docPreview/style/previewIframe.less +31 -0
  234. package/lib/editMetaInfo/component.js +23 -3
  235. package/lib/editMetaInfo/components/metaInfoForm.js +356 -15
  236. package/lib/editMetaInfo/script/api.js +21 -0
  237. package/lib/emptyData/component.js +4 -4
  238. package/lib/emptyData/svg/acount.js +2 -2
  239. package/lib/emptyData/svg/add.js +2 -2
  240. package/lib/emptyData/svg/analize.js +2 -2
  241. package/lib/emptyData/svg/analize_fail.js +2 -2
  242. package/lib/emptyData/svg/empty.js +2 -2
  243. package/lib/emptyData/svg/file.js +2 -2
  244. package/lib/emptyData/svg/manager.js +2 -2
  245. package/lib/emptyData/svg/message.js +2 -2
  246. package/lib/emptyData/svg/noanalize.js +2 -2
  247. package/lib/emptyData/svg/null.js +2 -2
  248. package/lib/emptyData/svg/search.js +2 -2
  249. package/lib/emptyData/svg/star.js +2 -2
  250. package/lib/emptyData/svg/trash.js +2 -2
  251. package/lib/emptyData/svg/user.js +2 -2
  252. package/lib/hooks/useAttachement.js +42 -0
  253. package/lib/hooks/usePopper.js +3 -3
  254. package/lib/hooks/useUpload.js +43 -3
  255. package/lib/imageCrop/component.js +11 -11
  256. package/lib/importData/component.js +13 -13
  257. package/lib/index.css +97 -4
  258. package/lib/index.js +2 -0
  259. package/lib/mediaFilter/component.js +4 -4
  260. package/lib/mediaFilter/components/DocFilter.js +1 -1
  261. package/lib/mediaFilter/components/FilterGroup.js +1 -1
  262. package/lib/mediaFilter/components/FilterItem.js +1 -1
  263. package/lib/mediaView/component.js +8 -8
  264. package/lib/messageBox/component.js +3 -3
  265. package/lib/resourceGridList/component.js +16 -16
  266. package/lib/resourceGridList/components/FileTypeThumb/index.js +6 -6
  267. package/lib/resourceModal/component.js +7 -7
  268. package/lib/resourceModal/components/MediaPreviewer/index.js +8 -8
  269. package/lib/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +5 -5
  270. package/lib/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +6 -6
  271. package/lib/resourceModal/components/MediaSelection/MainContent/index.js +18 -18
  272. package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +3 -3
  273. package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +3 -3
  274. package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/index.js +2 -2
  275. package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +4 -4
  276. package/lib/resourceModal/components/MediaSelection/index.js +6 -6
  277. package/lib/selectAddTo/component.js +48 -0
  278. package/lib/selectAddTo/component.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
  279. package/lib/selectAddTo/components/SelectAddToView.js +91 -0
  280. package/lib/selectAddTo/components/SelectAddToView.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
  281. package/lib/selectAddTo/components/ViewAllColumn/MediaFilter/index.js +167 -0
  282. package/lib/selectAddTo/components/ViewAllColumn/index.js +213 -0
  283. package/lib/selectAddTo/components/ViewAllColumn/index.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
  284. package/lib/selectAddTo/components/ViewAllColumn/script/useTableColumns.js +108 -0
  285. package/lib/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +184 -0
  286. package/lib/selectAddTo/index.js +8 -0
  287. package/lib/selectAddTo/script/api.js +27 -0
  288. package/lib/selectAddTo/script/useSelectAddToState.js +57 -0
  289. package/lib/selectAddTo/style/css.js +2 -0
  290. package/lib/selectAddTo/style/index.css +3 -0
  291. package/lib/selectAddTo/style/index.js +2 -0
  292. package/lib/selectAddTo/style/index.less +3 -0
  293. package/lib/selectGategory/component.js +5 -5
  294. package/lib/selectGategory/components/ColumnSelection/index.js +6 -6
  295. package/lib/selectResourceModal/component.js +25 -33
  296. package/lib/selectResourceModal/components/List/ListCardWrapper.js +6 -6
  297. package/lib/selectResourceModal/components/List/ListLocal/Upload.js +1 -1
  298. package/lib/selectResourceModal/components/List/ListLocal/index.js +6 -1
  299. package/lib/selectResourceModal/components/List/ListNormal/Filter.js +207 -80
  300. package/lib/selectResourceModal/components/List/ListNormal/index.js +22 -6
  301. package/lib/selectResourceModal/components/List/ListSystem/Filter.js +3 -3
  302. package/lib/selectResourceModal/components/List/ListSystem/SubList.js +3 -3
  303. package/lib/selectResourceModal/components/List/ListSystem/index.js +2 -2
  304. package/lib/selectResourceModal/components/List/ListWraper.js +2 -2
  305. package/lib/selectResourceModal/components/ListSelected/index.js +6 -6
  306. package/lib/selectResourceModal/components/ListTabs/index.js +1 -1
  307. package/lib/selectResourceModal/hooks/useResponsiveFilter.js +144 -0
  308. package/lib/selectResourceModal/scripts/useCompoLf.js +1 -1
  309. package/lib/selectResourceModal/scripts/useTabFilter.js +1 -13
  310. package/lib/selectResourceModal/style/index.css +45 -4
  311. package/lib/selectResourceModal/style/index.less +14 -0
  312. package/lib/selectResourceModal/style/list.less +40 -4
  313. package/lib/selectThumb/component.js +75 -32
  314. package/lib/selectThumb/components/card.js +3 -3
  315. package/lib/thumbCard/component.js +7 -7
  316. package/lib/thumbCard/components/ThumbUploading/index.js +3 -3
  317. package/lib/typeIcons/component.js +1 -1
  318. package/lib/uploadBefore/component.js +1 -1
  319. package/lib/uploadBefore/components/UploadBefore.js +9 -9
  320. package/lib/uploadStep/component.js +3 -3
  321. package/lib/userAvater/component.js +3 -3
  322. package/lib/userDirector/component.js +5 -5
  323. package/lib/userDirector/components/userTree.js +2 -2
  324. package/lib/utils/index.js +6 -6
  325. package/package.json +1 -1
@@ -7,24 +7,72 @@ export declare type TypeAddMediaParam = {
7
7
  directory_id: number;
8
8
  size: number;
9
9
  };
10
+ declare type WaterMark = {
11
+ id: string;
12
+ position: string;
13
+ url: string;
14
+ title: string;
15
+ };
16
+ declare type UploadTemplate = {
17
+ watermark?: {
18
+ default?: WaterMark;
19
+ images: WaterMark[];
20
+ };
21
+ };
10
22
  export declare function getSize(value: number): string;
11
- export declare function addMedia(BASE_API: string, params: TypeAddMediaParam): Promise<import("axios").AxiosResponse<any, any>>;
12
- export declare function getMediaDetails(BASE_API: string, repoId: number, id: number): Promise<import("axios").AxiosResponse<any, any>>;
13
- export declare function reTranscodeMedia(BASE_API: string, media_id: number): Promise<import("axios").AxiosResponse<any, any>>;
23
+ export declare function addMedia(BASE_API: string, params: TypeAddMediaParam): Promise<import("axios").AxiosResponse<any, any, {}>>;
24
+ export declare function getMediaDetails(BASE_API: string, repoId: number, id: number): Promise<import("axios").AxiosResponse<any, any, {}>>;
25
+ export declare function reTranscodeMedia(BASE_API: string, media_id: number): Promise<import("axios").AxiosResponse<any, any, {}>>;
14
26
  declare type UploadOptions = {
15
- noAddMedia: boolean;
27
+ noAddMedia?: boolean;
28
+ };
29
+ declare type UploadFileOptions = {
30
+ template?: UploadTemplate;
16
31
  };
17
32
  export default function useUpload(options?: UploadOptions): {
18
33
  list: import("vue").Ref<any[], any[]>;
19
- uploadFile: (BASE_API: string, file: any, dir: number | undefined, repoId: number, callback?: CallbackFunc | undefined) => void;
34
+ uploadFile: (BASE_API: string, file: any, dir: number | undefined, repoId: number, callback?: CallbackFunc | undefined, upOptions?: UploadFileOptions | undefined) => void;
20
35
  reTranscode: (BASE_API: string, file: any) => Promise<boolean>;
21
36
  transcodingFile: (BASE_API: string, file: any, repoId: number) => void;
22
37
  recordTaskStatusChange: (file: any, progress: number, isTrans?: boolean | undefined) => void;
23
38
  removeRecord: (file: any) => void;
24
39
  };
40
+ export declare function getWatermarkTemplate(BASE_API: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
25
41
  export declare function useUploadConfig(): {
26
42
  config: import("vue").Ref<any, any>;
43
+ template: import("vue").Ref<{
44
+ watermark?: {
45
+ default?: {
46
+ id: string;
47
+ position: string;
48
+ url: string;
49
+ title: string;
50
+ } | undefined;
51
+ images: {
52
+ id: string;
53
+ position: string;
54
+ url: string;
55
+ title: string;
56
+ }[];
57
+ } | undefined;
58
+ }, UploadTemplate | {
59
+ watermark?: {
60
+ default?: {
61
+ id: string;
62
+ position: string;
63
+ url: string;
64
+ title: string;
65
+ } | undefined;
66
+ images: {
67
+ id: string;
68
+ position: string;
69
+ url: string;
70
+ title: string;
71
+ }[];
72
+ } | undefined;
73
+ }>;
27
74
  checkFileSizeOutLimit: (file: File, callback: (msg: string) => void) => boolean;
28
75
  initUploadConfig: (BASE_API: string, domainId: number) => Promise<void>;
76
+ initTemplate: (BASE_API: string) => Promise<void>;
29
77
  };
30
78
  export {};
@@ -73,7 +73,7 @@ function useUpload(options) {
73
73
  list.value = originList;
74
74
  }
75
75
  };
76
- const uploadFile = (BASE_API, file, dir = 0, repoId, callback) => {
76
+ const uploadFile = (BASE_API, file, dir = 0, repoId, callback, upOptions) => {
77
77
  const newFile = {
78
78
  id: file.id || generateUUID(),
79
79
  sig_id: file.sig_id || generateUUID(),
@@ -93,18 +93,24 @@ function useUpload(options) {
93
93
  };
94
94
  const uploading = upload.start(progress);
95
95
  uploading.then(async (url) => {
96
+ var _a;
96
97
  if (options == null ? void 0 : options.noAddMedia) {
97
98
  recordTaskStatusChange({ ...newFile, status: 0, url }, 1);
98
99
  callback && callback({ ...newFile, url }, "success");
99
100
  return;
100
101
  }
102
+ const params = {};
103
+ if ((_a = upOptions == null ? void 0 : upOptions.template) == null ? void 0 : _a.watermark) {
104
+ params.watermark = upOptions.template.watermark.default;
105
+ }
101
106
  const { code, message } = await addMedia(BASE_API, {
102
107
  url,
103
108
  size: newFile.size,
104
109
  directory_id: dir,
105
110
  repository_id: repoId,
106
111
  catalog: newFile.type,
107
- alias: newFile.name
112
+ alias: newFile.name,
113
+ ...params
108
114
  });
109
115
  if (code !== 0) {
110
116
  console.log("\u{1F525}\u{1F525}\u{1F525}\u{1F525}\u{1F525} \u4E0A\u4F20\u5931\u8D25\uFF1A", newFile.name, code, message);
@@ -194,9 +200,16 @@ function getConfiguration(BASE_API, params) {
194
200
  params
195
201
  });
196
202
  }
203
+ function getWatermarkTemplate(BASE_API) {
204
+ return request(BASE_API, {
205
+ url: `/poplar/v2/material/image/watermark`,
206
+ method: "get"
207
+ });
208
+ }
197
209
  function useUploadConfig() {
198
210
  const { get, set, remove } = useLocalstorage("LOCAL_UPLOAD_CONFIG");
199
211
  const config = ref(get() || {});
212
+ const template = ref({});
200
213
  async function initUploadConfig(BASE_API, domainId) {
201
214
  if (config.value.size_config_enabled != null)
202
215
  return;
@@ -245,11 +258,37 @@ function useUploadConfig() {
245
258
  );
246
259
  return false;
247
260
  }
261
+ async function initTemplate(BASE_API) {
262
+ try {
263
+ const { code, message } = await getWatermarkTemplate(BASE_API);
264
+ if (code !== 0)
265
+ return;
266
+ if (message) {
267
+ let defaultWaterMark;
268
+ if (Array.isArray(message.images)) {
269
+ message.images.forEach((item) => {
270
+ if (message.default === item.id)
271
+ defaultWaterMark = item;
272
+ });
273
+ }
274
+ template.value = {
275
+ watermark: {
276
+ default: defaultWaterMark,
277
+ images: message.images
278
+ }
279
+ };
280
+ }
281
+ } catch (e) {
282
+ console.error(e);
283
+ }
284
+ }
248
285
  window.addEventListener("beforeunload", remove, false);
249
286
  return {
250
287
  config,
288
+ template,
251
289
  checkFileSizeOutLimit,
252
- initUploadConfig
290
+ initUploadConfig,
291
+ initTemplate
253
292
  };
254
293
  }
255
- export { addMedia, useUpload as default, getMediaDetails, getSize, reTranscodeMedia, useUploadConfig };
294
+ export { addMedia, useUpload as default, getMediaDetails, getSize, getWatermarkTemplate, reTranscodeMedia, useUploadConfig };
@@ -1,7 +1,7 @@
1
1
  interface Params {
2
2
  [key: string]: any;
3
3
  }
4
- export declare function getChannels(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
4
+ export declare function getChannels(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any, {}>>;
5
5
  declare const useLoadUserInfo: (BASE_API: string) => {
6
6
  userInfo: import("vue").Ref<any, any>;
7
7
  getUserInfoHandle: () => Promise<void>;
@@ -318,7 +318,7 @@ const _sfc_main = defineComponent({
318
318
  });
319
319
  return (_ctx, _cache) => {
320
320
  return openBlock(), createBlock(unref(Modal), {
321
- visible: _ctx.visible,
321
+ visible: __props.visible,
322
322
  width: "986px",
323
323
  "mask-closable": false,
324
324
  "title-align": "center",
@@ -328,7 +328,7 @@ const _sfc_main = defineComponent({
328
328
  onCancel: _cache[4] || (_cache[4] = ($event) => setVisible(false))
329
329
  }, {
330
330
  title: withCtx(() => [
331
- createTextVNode(toDisplayString(_ctx.aspectRatioProp ? "\u88C1\u526A\u56FE\u7247" : "\u8BF7\u9009\u62E9\u88C1\u526A\u6BD4\u4F8B"), 1)
331
+ createTextVNode(toDisplayString(__props.aspectRatioProp ? "\u88C1\u526A\u56FE\u7247" : "\u8BF7\u9009\u62E9\u88C1\u526A\u6BD4\u4F8B"), 1)
332
332
  ]),
333
333
  footer: withCtx(() => [
334
334
  createElementVNode("span", _hoisted_7, [
@@ -416,9 +416,9 @@ const _sfc_main = defineComponent({
416
416
  size: "medium",
417
417
  onClick: cancelDialog
418
418
  }, {
419
- default: withCtx(() => _cache[5] || (_cache[5] = [
420
- createTextVNode("\u53D6\u6D88")
421
- ])),
419
+ default: withCtx(() => [..._cache[5] || (_cache[5] = [
420
+ createTextVNode("\u53D6\u6D88", -1)
421
+ ])]),
422
422
  _: 1
423
423
  }),
424
424
  withDirectives(createVNode(unref(Button), {
@@ -427,9 +427,9 @@ const _sfc_main = defineComponent({
427
427
  loading: saveLoading.value,
428
428
  onClick: save
429
429
  }, {
430
- default: withCtx(() => _cache[6] || (_cache[6] = [
431
- createTextVNode("\u88C1\u526A")
432
- ])),
430
+ default: withCtx(() => [..._cache[6] || (_cache[6] = [
431
+ createTextVNode("\u88C1\u526A", -1)
432
+ ])]),
433
433
  _: 1
434
434
  }, 8, ["loading"]), [
435
435
  [vShow, !croppering.value]
@@ -449,7 +449,7 @@ const _sfc_main = defineComponent({
449
449
  default: withCtx(() => [
450
450
  createElementVNode("div", {
451
451
  class: normalizeClass(["edit", {
452
- fullHeight: _ctx.aspectRatioProp && !Array.isArray(_ctx.aspectRatioProp)
452
+ fullHeight: __props.aspectRatioProp && !Array.isArray(__props.aspectRatioProp)
453
453
  }])
454
454
  }, [
455
455
  createElementVNode("div", _hoisted_1, [
@@ -463,7 +463,7 @@ const _sfc_main = defineComponent({
463
463
  }, null, 40, _hoisted_2)) : createCommentVNode("v-if", true)
464
464
  ])
465
465
  ], 2),
466
- !_ctx.aspectRatioProp ? (openBlock(), createElementBlock("div", _hoisted_3, [
466
+ !__props.aspectRatioProp ? (openBlock(), createElementBlock("div", _hoisted_3, [
467
467
  (openBlock(), createElementBlock(Fragment, null, renderList(aspectRatioList, (item, i) => {
468
468
  return createElementVNode("div", {
469
469
  key: item.lable,
@@ -472,7 +472,7 @@ const _sfc_main = defineComponent({
472
472
  }, toDisplayString(item.label), 11, _hoisted_4);
473
473
  }), 64))
474
474
  ])) : createCommentVNode("v-if", true),
475
- _ctx.aspectRatioProp && Array.isArray(_ctx.aspectRatioProp) && customizedAspectRatioList.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_5, [
475
+ __props.aspectRatioProp && Array.isArray(__props.aspectRatioProp) && customizedAspectRatioList.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_5, [
476
476
  (openBlock(true), createElementBlock(Fragment, null, renderList(customizedAspectRatioList.value, (item, i) => {
477
477
  return openBlock(), createElementBlock("div", {
478
478
  key: item.lable,
@@ -1 +1 @@
1
- export declare function getFileRealUrl(BASE_API: string, url: string): Promise<import("axios").AxiosResponse<any, any>>;
1
+ export declare function getFileRealUrl(BASE_API: string, url: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
@@ -89,7 +89,7 @@ const _sfc_main = defineComponent({
89
89
  onOk: handleOk
90
90
  }, {
91
91
  title: withCtx(() => [
92
- createTextVNode(toDisplayString(_ctx.title || "\u5BFC\u5165\u6570\u636E"), 1)
92
+ createTextVNode(toDisplayString(__props.title || "\u5BFC\u5165\u6570\u636E"), 1)
93
93
  ]),
94
94
  default: withCtx(() => {
95
95
  var _a, _b;
@@ -97,14 +97,14 @@ const _sfc_main = defineComponent({
97
97
  createElementVNode("div", _hoisted_1, [
98
98
  _cache[5] || (_cache[5] = createElementVNode("h3", null, "\u4E0B\u8F7D\u5BFC\u5165\u6A21\u7248", -1)),
99
99
  createElementVNode("p", _hoisted_2, [
100
- _cache[2] || (_cache[2] = createTextVNode(" \u4E25\u683C\u6309\u7167\u6A21\u677F\u683C\u5F0F\u53CA\u5185\u5BB9\u51C6\u5907\u5BFC\u5165\u7684\u6570\u636E\u3002 ")),
100
+ _cache[2] || (_cache[2] = createTextVNode(" \u4E25\u683C\u6309\u7167\u6A21\u677F\u683C\u5F0F\u53CA\u5185\u5BB9\u51C6\u5907\u5BFC\u5165\u7684\u6570\u636E\u3002 ", -1)),
101
101
  createVNode(unref(Link), {
102
102
  target: "_blank",
103
- href: _ctx.importTemplateUrl
103
+ href: __props.importTemplateUrl
104
104
  }, {
105
- default: withCtx(() => _cache[1] || (_cache[1] = [
106
- createTextVNode("\u4E0B\u8F7D\u6A21\u677F")
107
- ])),
105
+ default: withCtx(() => [..._cache[1] || (_cache[1] = [
106
+ createTextVNode("\u4E0B\u8F7D\u6A21\u677F", -1)
107
+ ])]),
108
108
  _: 1
109
109
  }, 8, ["href"])
110
110
  ]),
@@ -123,9 +123,9 @@ const _sfc_main = defineComponent({
123
123
  target: "_blank",
124
124
  href: importData.value.result_url
125
125
  }, {
126
- default: withCtx(() => _cache[3] || (_cache[3] = [
127
- createTextVNode(" \u4E0B\u8F7D\u5BFC\u5165\u7ED3\u679C ")
128
- ])),
126
+ default: withCtx(() => [..._cache[3] || (_cache[3] = [
127
+ createTextVNode(" \u4E0B\u8F7D\u5BFC\u5165\u7ED3\u679C ", -1)
128
+ ])]),
129
129
  _: 1
130
130
  }, 8, ["href"])
131
131
  ])) : createCommentVNode("v-if", true),
@@ -142,7 +142,7 @@ const _sfc_main = defineComponent({
142
142
  draggable: "",
143
143
  "with-credentials": true,
144
144
  limit: 1,
145
- action: _ctx.uploadAction,
145
+ action: __props.uploadAction,
146
146
  accept: ".xls,.xlsx",
147
147
  onSuccess: uploadSuccess,
148
148
  onChange: uploadChange
@@ -154,9 +154,9 @@ const _sfc_main = defineComponent({
154
154
  class: "primary2",
155
155
  onClick: importStart
156
156
  }, {
157
- default: withCtx(() => _cache[4] || (_cache[4] = [
158
- createTextVNode("\u5F00\u59CB\u5BFC\u5165")
159
- ])),
157
+ default: withCtx(() => [..._cache[4] || (_cache[4] = [
158
+ createTextVNode("\u5F00\u59CB\u5BFC\u5165", -1)
159
+ ])]),
160
160
  _: 1
161
161
  }, 8, ["loading"])) : createCommentVNode("v-if", true)
162
162
  ]),
package/es/index.css CHANGED
@@ -4529,11 +4529,13 @@
4529
4529
  }
4530
4530
  .resource-list-footer,
4531
4531
  .resource-list-header,
4532
+ .resource-list-content .resource-list-content-empty,
4532
4533
  .resource-list-content .arco-scrollbar-container {
4533
4534
  padding: 0 40px;
4534
4535
  }
4535
4536
  .resource-list-footer {
4536
4537
  display: flex;
4538
+ flex-wrap: wrap;
4537
4539
  justify-content: space-between;
4538
4540
  padding-bottom: 20px;
4539
4541
  }
@@ -4543,6 +4545,10 @@
4543
4545
  gap: 10px;
4544
4546
  align-items: center;
4545
4547
  justify-content: flex-end;
4548
+ margin-top: 10px;
4549
+ }
4550
+ .resource-list-footer .footer-right .list-selected-wrapper {
4551
+ font-size: 12px;
4546
4552
  }
4547
4553
  .resource-list-content-loading {
4548
4554
  display: flex;
@@ -4554,7 +4560,7 @@
4554
4560
  .resource-list .list-item-grid {
4555
4561
  display: grid;
4556
4562
  grid-gap: 20px;
4557
- grid-template-columns: repeat(5, 1fr);
4563
+ grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
4558
4564
  }
4559
4565
  .resource-list .list-content {
4560
4566
  margin-top: 30px;
@@ -4597,7 +4603,8 @@
4597
4603
  }
4598
4604
  .resource-list .list-filter-wrapper .list-filter-tags {
4599
4605
  display: flex;
4600
- justify-content: space-between;
4606
+ flex-wrap: wrap;
4607
+ gap: 10px;
4601
4608
  margin-top: 10px;
4602
4609
  }
4603
4610
  .resource-list .list-filter-wrapper .list-filter-tags .list-filter-tag {
@@ -4618,16 +4625,41 @@
4618
4625
  justify-content: space-between;
4619
4626
  }
4620
4627
  .resource-list .list-filter-wrapper .list-filter .filter-list {
4628
+ position: relative;
4629
+ /** 给 popup 一个参考 */
4621
4630
  display: flex;
4622
- flex-wrap: wrap;
4623
- gap: 10px;
4624
4631
  }
4625
4632
  .resource-list .list-filter-wrapper .list-filter .filter-list .filter-item {
4626
4633
  width: 100px;
4634
+ margin-right: 10px;
4635
+ }
4636
+ .resource-list .list-filter-wrapper .list-filter .filter-list .arco-trigger-popup {
4637
+ z-index: 100000 !important;
4627
4638
  }
4628
4639
  .resource-list .list-filter-wrapper .list-filter .arco-input-prepend {
4629
4640
  padding: 0;
4630
4641
  }
4642
+ .resource-list .list-filter-wrapper .list-filter .more-btn {
4643
+ position: relative;
4644
+ /** 给 poperjs 一个参考 */
4645
+ }
4646
+ .resource-list .list-filter-wrapper .list-filter .more-btn .filter-pannel {
4647
+ inset: 40px auto auto auto !important;
4648
+ }
4649
+ .resource-list .list-filter-wrapper .filter-extra {
4650
+ display: flex;
4651
+ gap: 10px;
4652
+ }
4653
+ .resource-list .list-filter-wrapper .filter-pannel {
4654
+ z-index: 100000;
4655
+ display: flex;
4656
+ flex-direction: column;
4657
+ gap: 10px;
4658
+ padding: 10px;
4659
+ background-color: #fff;
4660
+ border-radius: 4px;
4661
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
4662
+ }
4631
4663
  .resource-list .title {
4632
4664
  display: flex;
4633
4665
  gap: 8px;
@@ -4641,6 +4673,10 @@
4641
4673
  height: 16px;
4642
4674
  background-color: #4886ff;
4643
4675
  }
4676
+ .resource-select-wrap {
4677
+ width: 100%;
4678
+ height: 100%;
4679
+ }
4644
4680
  .resource-select-modal-body {
4645
4681
  height: 80vh;
4646
4682
  padding: 0;
@@ -4669,6 +4705,11 @@
4669
4705
  .resource-select-container .resource-select-header .arco-tabs-content {
4670
4706
  display: none !important;
4671
4707
  }
4708
+ .resource-select-container .resource-list-content .resource-list-content-empty {
4709
+ box-sizing: border-box;
4710
+ width: 100%;
4711
+ height: 100%;
4712
+ }
4672
4713
  .iframe-container {
4673
4714
  position: relative;
4674
4715
  height: 95vh;
@@ -4701,6 +4742,33 @@
4701
4742
  border: none;
4702
4743
  outline: none;
4703
4744
  }
4745
+ .iframe-container-pc {
4746
+ position: relative;
4747
+ height: 95vh;
4748
+ overflow: hidden;
4749
+ aspect-ratio: 1920 / 1080;
4750
+ }
4751
+ .iframe-container-pc img {
4752
+ position: absolute;
4753
+ width: 100%;
4754
+ height: 100%;
4755
+ }
4756
+ .iframe-container-pc .iframe-content-pc {
4757
+ position: absolute;
4758
+ top: 70px;
4759
+ left: 56px;
4760
+ width: calc(100% - 106px);
4761
+ height: calc(100% - 140px);
4762
+ overflow: hidden;
4763
+ background-color: white;
4764
+ border-radius: 15px;
4765
+ }
4766
+ .iframe-container-pc iframe {
4767
+ width: 100%;
4768
+ height: 100%;
4769
+ border: none;
4770
+ outline: none;
4771
+ }
4704
4772
  .doc-preview-container {
4705
4773
  position: fixed;
4706
4774
  top: 0;
@@ -4818,6 +4886,27 @@
4818
4886
  font-size: 20px;
4819
4887
  cursor: pointer;
4820
4888
  }
4889
+ .v-bottom {
4890
+ position: absolute;
4891
+ bottom: 24px;
4892
+ left: 100%;
4893
+ z-index: 999;
4894
+ width: 100%;
4895
+ color: #fff;
4896
+ font-size: 12px;
4897
+ transform: translateX(-60%);
4898
+ }
4899
+ .v-bottom span {
4900
+ width: 120px;
4901
+ height: 42px;
4902
+ margin-right: 16px;
4903
+ padding: 10px 16px;
4904
+ font-size: 12px;
4905
+ background: rgba(216, 216, 216, 0.05);
4906
+ background-color: #00000068;
4907
+ border-radius: 6px;
4908
+ opacity: 1;
4909
+ }
4821
4910
  .doc-diff-panel-wrap {
4822
4911
  box-sizing: border-box;
4823
4912
  width: 100% !important;
@@ -4925,6 +5014,10 @@
4925
5014
  .doc-history-drawer .arco-drawer-footer {
4926
5015
  text-align: left;
4927
5016
  }
5017
+ .doc-history-modal-wrap {
5018
+ height: 70vh;
5019
+ padding: 0;
5020
+ }
4928
5021
  .video-thumb {
4929
5022
  display: flex;
4930
5023
  flex-direction: column;
package/es/index.d.ts CHANGED
@@ -28,3 +28,4 @@ export { default as docPreview } from './docPreview';
28
28
  export { default as docHistory } from './docHistory';
29
29
  export { default as videoThumb } from './videoThumb';
30
30
  export { default as importData } from './importData';
31
+ export { default as selectAddTo } from './selectAddTo';
package/es/index.js CHANGED
@@ -28,3 +28,4 @@ export { default as docPreview } from "./docPreview/index.js";
28
28
  export { default as docHistory } from "./docHistory/index.js";
29
29
  export { default as videoThumb } from "./videoThumb/index.js";
30
30
  export { default as importData } from "./importData/index.js";
31
+ export { default as selectAddTo } from "./selectAddTo/index.js";
@@ -27,10 +27,10 @@ const _sfc_main = defineComponent({
27
27
  }
28
28
  return (_ctx, _cache) => {
29
29
  return openBlock(), createElementBlock("div", _hoisted_1, [
30
- _ctx.filterType === "DOC" ? (openBlock(), createBlock(_sfc_main$1, {
30
+ __props.filterType === "DOC" ? (openBlock(), createBlock(_sfc_main$1, {
31
31
  key: 0,
32
- "filter-keys": _ctx.docFilterKeys,
33
- "filter-type": _ctx.docFilterType,
32
+ "filter-keys": __props.docFilterKeys,
33
+ "filter-type": __props.docFilterType,
34
34
  onSearch: handleFilterSearch,
35
35
  onChange: handleFilterChange
36
36
  }, {
@@ -38,7 +38,7 @@ const _sfc_main = defineComponent({
38
38
  renderSlot(_ctx.$slots, "right")
39
39
  ]),
40
40
  _: 3
41
- }, 8, ["filter-keys", "filter-type"])) : _ctx.filterType === "MEDIA" ? (openBlock(), createBlock(MedFilter, { key: 1 })) : _ctx.filterType === "MP_ACOUNT" ? (openBlock(), createBlock(_sfc_main$2, { key: 2 })) : _ctx.filterType === "MP_CONTENT" ? (openBlock(), createBlock(_sfc_main$3, { key: 3 })) : createCommentVNode("v-if", true)
41
+ }, 8, ["filter-keys", "filter-type"])) : __props.filterType === "MEDIA" ? (openBlock(), createBlock(MedFilter, { key: 1 })) : __props.filterType === "MP_ACOUNT" ? (openBlock(), createBlock(_sfc_main$2, { key: 2 })) : __props.filterType === "MP_CONTENT" ? (openBlock(), createBlock(_sfc_main$3, { key: 3 })) : createCommentVNode("v-if", true)
42
42
  ]);
43
43
  };
44
44
  }
@@ -182,7 +182,7 @@ const _sfc_main = defineComponent({
182
182
  createVNode(unref(IconRefresh))
183
183
  ]),
184
184
  default: withCtx(() => [
185
- _cache[3] || (_cache[3] = createTextVNode(" \u91CD\u7F6E "))
185
+ _cache[3] || (_cache[3] = createTextVNode(" \u91CD\u7F6E ", -1))
186
186
  ]),
187
187
  _: 1
188
188
  })) : createCommentVNode("v-if", true)
@@ -146,7 +146,7 @@ const _sfc_main = defineComponent({
146
146
  }, {
147
147
  default: withCtx(() => [
148
148
  createElementVNode("span", _hoisted_4, [
149
- _cache[0] || (_cache[0] = createTextVNode(" \u66F4\u591A\u7B5B\u9009 ")),
149
+ _cache[0] || (_cache[0] = createTextVNode(" \u66F4\u591A\u7B5B\u9009 ", -1)),
150
150
  createVNode(unref(IconCaretDown))
151
151
  ])
152
152
  ]),
@@ -91,7 +91,7 @@ const _sfc_main = defineComponent({
91
91
  withDirectives(createVNode(unref(Button), { type: "secondary" }, {
92
92
  default: withCtx(() => [
93
93
  createElementVNode("span", _hoisted_5, [
94
- createTextVNode(toDisplayString(_ctx.label) + " ", 1),
94
+ createTextVNode(toDisplayString(__props.label) + " ", 1),
95
95
  createVNode(unref(IconCaretDown))
96
96
  ])
97
97
  ]),
@@ -28,7 +28,7 @@ const _sfc_main = defineComponent({
28
28
  return openBlock(), createElementBlock(Fragment, null, [
29
29
  createVNode(unref(ImagePreview), {
30
30
  visible: imageVisible.value,
31
- src: _ctx.url,
31
+ src: __props.url,
32
32
  onClose: closePreviewer
33
33
  }, null, 8, ["visible", "src"]),
34
34
  withDirectives(createElementVNode("div", _hoisted_1, [
@@ -39,22 +39,22 @@ const _sfc_main = defineComponent({
39
39
  createVNode(unref(IconClose))
40
40
  ]),
41
41
  createElementVNode("div", _hoisted_2, [
42
- _ctx.type === "video" ? (openBlock(), createElementBlock("video", {
42
+ __props.type === "video" ? (openBlock(), createElementBlock("video", {
43
43
  key: 0,
44
44
  class: "video",
45
45
  controls: "",
46
- src: _ctx.url
47
- }, null, 8, _hoisted_3)) : _ctx.type === "audio" ? (openBlock(), createElementBlock("audio", {
46
+ src: __props.url
47
+ }, null, 8, _hoisted_3)) : __props.type === "audio" ? (openBlock(), createElementBlock("audio", {
48
48
  key: 1,
49
49
  class: "audio",
50
50
  controls: "",
51
- src: _ctx.url
52
- }, null, 8, _hoisted_4)) : (openBlock(), createElementBlock("div", _hoisted_5, _cache[0] || (_cache[0] = [
51
+ src: __props.url
52
+ }, null, 8, _hoisted_4)) : (openBlock(), createElementBlock("div", _hoisted_5, [..._cache[0] || (_cache[0] = [
53
53
  createElementVNode("span", { class: "text" }, "\u6682\u4E0D\u652F\u6301\u8BE5\u7C7B\u578B\u6587\u4EF6\u9884\u89C8", -1)
54
- ])))
54
+ ])]))
55
55
  ])
56
56
  ], 512), [
57
- [vShow, _ctx.type !== "image"]
57
+ [vShow, __props.type !== "image"]
58
58
  ])
59
59
  ], 64);
60
60
  };
@@ -97,9 +97,9 @@ const _sfc_main = defineComponent({
97
97
  createVNode(unref(Tabs), null, {
98
98
  default: withCtx(() => [
99
99
  withDirectives((openBlock(), createBlock(unref(TabPane), { key: "1" }, {
100
- title: withCtx(() => _cache[2] || (_cache[2] = [
101
- createTextVNode("\u6D88\u606F")
102
- ])),
100
+ title: withCtx(() => [..._cache[2] || (_cache[2] = [
101
+ createTextVNode("\u6D88\u606F", -1)
102
+ ])]),
103
103
  default: withCtx(() => [
104
104
  unreadMessages.value.length === 0 ? (openBlock(), createBlock(_sfc_main$1, {
105
105
  key: 0,
@@ -1,6 +1,6 @@
1
1
  interface Params {
2
2
  [key: string]: any;
3
3
  }
4
- export declare function getNoticeList(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
5
- export declare function setAllMsgRead(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
4
+ export declare function getNoticeList(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any, {}>>;
5
+ export declare function setAllMsgRead(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any, {}>>;
6
6
  export {};
@@ -3,13 +3,13 @@ interface Params {
3
3
  app_id?: number;
4
4
  [key: string]: any;
5
5
  }
6
- export declare function getChildCategorylists(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any>>;
7
- export declare function getCategorylists(BASE_API: string, repository_id: string, channel_id: string): Promise<import("axios").AxiosResponse<any, any>>;
6
+ export declare function getChildCategorylists(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any, {}>>;
7
+ export declare function getCategorylists(BASE_API: string, repository_id: string, channel_id: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
8
8
  export declare function getCategorylistsGroups(BASE_API: string, params: Params, data?: {
9
9
  repeatReport: boolean;
10
10
  }): Promise<any>;
11
11
  export declare function getMlists(BASE_API: string, params: Params, data?: {
12
12
  repeatReport: boolean;
13
- }): Promise<import("axios").AxiosResponse<any, any>>;
14
- export declare function submitTo(BASE_API: string, data: Params): Promise<import("axios").AxiosResponse<any, any>>;
13
+ }): Promise<import("axios").AxiosResponse<any, any, {}>>;
14
+ export declare function submitTo(BASE_API: string, data: Params): Promise<import("axios").AxiosResponse<any, any, {}>>;
15
15
  export {};