@cmstops/pro-compo 3.9.1-rc.0 → 3.9.1-rc.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. package/README.md +134 -107
  2. package/dist/index.css +49 -4
  3. package/dist/index.min.css +1 -1
  4. package/dist/index.min.js.map +1 -1
  5. package/es/baseFilter/component.js +71 -14
  6. package/es/config.js +1 -1
  7. package/es/contentDetailList/component.js +24 -0
  8. package/es/contentDetailList/components/Content/index.js +2 -1
  9. package/es/contentDetailList/components/Doc/index.js +6 -0
  10. package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.js +4 -2
  11. package/es/contentModal/component.js +16 -8
  12. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +2 -1
  13. package/es/contentModal/components/storeBox/index.js +4 -2
  14. package/es/dataTags/component.js +10 -5
  15. package/es/docHistory/component.js +43 -13
  16. package/es/docHistory/scripts/diff.js +4 -3
  17. package/es/docHistory/style/index.css +4 -0
  18. package/es/docHistory/style/index.less +37 -32
  19. package/es/docPreview/component.js +10 -5
  20. package/es/editMetaInfo/components/metaInfoForm.js +4 -2
  21. package/es/hooks/useAttachement.js +42 -2
  22. package/es/hooks/usePopper.js +3 -3
  23. package/es/hooks/useUpload.js +43 -4
  24. package/es/imageCrop/component.js +4 -2
  25. package/es/importData/component.js +6 -3
  26. package/es/index.css +49 -4
  27. package/es/mediaFilter/components/DocFilter.js +2 -1
  28. package/es/resourceGridList/component.js +4 -2
  29. package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +2 -1
  30. package/es/resourceModal/components/MediaSelection/MainContent/index.js +4 -2
  31. package/es/selectResourceModal/component.js +10 -5
  32. package/es/selectResourceModal/components/List/ListLocal/Upload.js +2 -1
  33. package/es/selectResourceModal/components/List/ListLocal/index.js +9 -4
  34. package/es/selectResourceModal/components/List/ListNormal/Filter.js +213 -82
  35. package/es/selectResourceModal/components/List/ListNormal/index.js +23 -7
  36. package/es/selectResourceModal/components/List/ListSystem/Filter.js +2 -1
  37. package/es/selectResourceModal/hooks/useResponsiveFilter.js +142 -0
  38. package/es/selectResourceModal/scripts/useCompoLf.js +1 -1
  39. package/es/selectResourceModal/style/index.css +45 -4
  40. package/es/selectResourceModal/style/index.less +55 -41
  41. package/es/selectResourceModal/style/list.less +203 -167
  42. package/es/selectThumb/component.js +16 -27
  43. package/es/userAvater/component.js +2 -1
  44. package/es/userDirector/component.js +2 -1
  45. package/es/utils/index.js +6 -6
  46. package/lib/baseFilter/component.js +69 -12
  47. package/lib/config.js +1 -1
  48. package/lib/contentDetailList/component.js +24 -0
  49. package/lib/contentDetailList/components/Content/index.js +2 -1
  50. package/lib/contentDetailList/components/Doc/index.js +6 -0
  51. package/lib/contentDetailList/components/ShowQRCode/QrcodeView/index.js +4 -2
  52. package/lib/contentModal/component.js +16 -8
  53. package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +2 -1
  54. package/lib/contentModal/components/storeBox/index.js +4 -2
  55. package/lib/dataTags/component.js +10 -5
  56. package/lib/docHistory/component.js +41 -11
  57. package/lib/docHistory/scripts/diff.js +4 -3
  58. package/lib/docHistory/style/index.css +4 -0
  59. package/lib/docHistory/style/index.less +37 -32
  60. package/lib/docPreview/component.js +10 -5
  61. package/lib/editMetaInfo/components/metaInfoForm.js +4 -2
  62. package/lib/hooks/useAttachement.js +42 -0
  63. package/lib/hooks/usePopper.js +3 -3
  64. package/lib/hooks/useUpload.js +43 -3
  65. package/lib/imageCrop/component.js +4 -2
  66. package/lib/importData/component.js +6 -3
  67. package/lib/index.css +49 -4
  68. package/lib/mediaFilter/components/DocFilter.js +2 -1
  69. package/lib/resourceGridList/component.js +4 -2
  70. package/lib/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +2 -1
  71. package/lib/resourceModal/components/MediaSelection/MainContent/index.js +4 -2
  72. package/lib/selectResourceModal/component.js +10 -5
  73. package/lib/selectResourceModal/components/List/ListLocal/Upload.js +2 -1
  74. package/lib/selectResourceModal/components/List/ListLocal/index.js +7 -2
  75. package/lib/selectResourceModal/components/List/ListNormal/Filter.js +210 -79
  76. package/lib/selectResourceModal/components/List/ListNormal/index.js +22 -6
  77. package/lib/selectResourceModal/components/List/ListSystem/Filter.js +2 -1
  78. package/lib/selectResourceModal/hooks/useResponsiveFilter.js +144 -0
  79. package/lib/selectResourceModal/scripts/useCompoLf.js +1 -1
  80. package/lib/selectResourceModal/style/index.css +45 -4
  81. package/lib/selectResourceModal/style/index.less +55 -41
  82. package/lib/selectResourceModal/style/list.less +203 -167
  83. package/lib/selectThumb/component.js +16 -27
  84. package/lib/userAvater/component.js +2 -1
  85. package/lib/userDirector/component.js +2 -1
  86. package/lib/utils/index.js +6 -6
  87. package/package.json +138 -138
  88. package/es/appCenter/component.d.ts +0 -0
  89. package/es/appCenter/index.d.ts +0 -2
  90. package/es/appCenter/script/api.d.ts +0 -11
  91. package/es/appCenter/script/apps.d.ts +0 -14
  92. package/es/appCenter/script/permissionMap.d.ts +0 -6
  93. package/es/appCenter/script/routeMap.d.ts +0 -4
  94. package/es/appCenter/style/index.d.ts +0 -1
  95. package/es/baseFilter/component.d.ts +0 -0
  96. package/es/baseFilter/components/FilterGroup.d.ts +0 -0
  97. package/es/baseFilter/components/filterItem.d.ts +0 -0
  98. package/es/baseFilter/index.d.ts +0 -2
  99. package/es/baseFilter/style/index.d.ts +0 -1
  100. package/es/baseFilter/useCalcWidth.d.ts +0 -16
  101. package/es/colorPalette/component.d.ts +0 -0
  102. package/es/colorPalette/components/colorPicker.d.ts +0 -0
  103. package/es/colorPalette/index.d.ts +0 -2
  104. package/es/colorPalette/style/index.d.ts +0 -1
  105. package/es/components.d.ts +0 -5
  106. package/es/config.d.ts +0 -4
  107. package/es/contentDetailList/__demo__/matrix/platform.d.ts +0 -36
  108. package/es/contentDetailList/component.d.ts +0 -0
  109. package/es/contentDetailList/components/Content/CompoItem/index.d.ts +0 -0
  110. package/es/contentDetailList/components/Content/ContentListItem/index.d.ts +0 -0
  111. package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.d.ts +0 -0
  112. package/es/contentDetailList/components/Content/DocItem/index.d.ts +0 -0
  113. package/es/contentDetailList/components/Content/DocMpItem/index.d.ts +0 -0
  114. package/es/contentDetailList/components/Content/GroupPieceItem/index.d.ts +0 -0
  115. package/es/contentDetailList/components/Content/KongoNavItem/index.d.ts +0 -0
  116. package/es/contentDetailList/components/Content/LiveItem/index.d.ts +0 -0
  117. package/es/contentDetailList/components/Content/MaccountItem/index.d.ts +0 -0
  118. package/es/contentDetailList/components/Content/courseItem/index.d.ts +0 -0
  119. package/es/contentDetailList/components/Content/funhdItem/index.d.ts +0 -0
  120. package/es/contentDetailList/components/Content/index.d.ts +0 -0
  121. package/es/contentDetailList/components/CustomWrp/CustomItem.d.ts +0 -0
  122. package/es/contentDetailList/components/CustomWrp/index.d.ts +0 -0
  123. package/es/contentDetailList/components/Doc/index.d.ts +0 -0
  124. package/es/contentDetailList/components/Records/MatrixItem/index.d.ts +0 -0
  125. package/es/contentDetailList/components/Records/index.d.ts +0 -0
  126. package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.d.ts +0 -0
  127. package/es/contentDetailList/components/ShowQRCode/index.d.ts +0 -0
  128. package/es/contentDetailList/index.d.ts +0 -2
  129. package/es/contentDetailList/script/api.d.ts +0 -6
  130. package/es/contentDetailList/style/index.d.ts +0 -1
  131. package/es/contentModal/component.d.ts +0 -0
  132. package/es/contentModal/components/CompoList/CompoFilter/index.d.ts +0 -0
  133. package/es/contentModal/components/CompoList/index.d.ts +0 -0
  134. package/es/contentModal/components/ContentList/MediaFilter/index.d.ts +0 -0
  135. package/es/contentModal/components/ContentList/index.d.ts +0 -0
  136. package/es/contentModal/components/Dejin/MediaFilter/index.d.ts +0 -0
  137. package/es/contentModal/components/Dejin/index.d.ts +0 -0
  138. package/es/contentModal/components/EqxiuList/MediaFilter/index.d.ts +0 -0
  139. package/es/contentModal/components/EqxiuList/index.d.ts +0 -0
  140. package/es/contentModal/components/LiveList/MediaFilter/index.d.ts +0 -0
  141. package/es/contentModal/components/LiveList/index.d.ts +0 -0
  142. package/es/contentModal/components/MpAccountList/MpAccountFilter/index.d.ts +0 -0
  143. package/es/contentModal/components/MpAccountList/index.d.ts +0 -0
  144. package/es/contentModal/components/MpContentList/MediaFilter/index.d.ts +0 -0
  145. package/es/contentModal/components/MpContentList/index.d.ts +0 -0
  146. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
  147. package/es/contentModal/components/ViewAllColumn/columnTree/index.d.ts +0 -0
  148. package/es/contentModal/components/ViewAllColumn/index.d.ts +0 -0
  149. package/es/contentModal/components/storeBox/index.d.ts +0 -0
  150. package/es/contentModal/index.d.ts +0 -2
  151. package/es/contentModal/script/api.d.ts +0 -18
  152. package/es/contentModal/style/index.d.ts +0 -1
  153. package/es/dataTags/component.d.ts +0 -0
  154. package/es/dataTags/index.d.ts +0 -2
  155. package/es/dataTags/style/index.d.ts +0 -1
  156. package/es/docHistory/component.d.ts +0 -0
  157. package/es/docHistory/components/DocDiffPanel/index.d.ts +0 -0
  158. package/es/docHistory/components/DocHistoryList/index.d.ts +0 -0
  159. package/es/docHistory/index.d.ts +0 -2
  160. package/es/docHistory/scripts/diff.d.ts +0 -1
  161. package/es/docHistory/scripts/useDocHistory.d.ts +0 -10
  162. package/es/docHistory/style/index.d.ts +0 -1
  163. package/es/docPreview/component.d.ts +0 -0
  164. package/es/docPreview/components/PreviewIframe.d.ts +0 -0
  165. package/es/docPreview/index.d.ts +0 -2
  166. package/es/docPreview/scripts/api.d.ts +0 -1
  167. package/es/docPreview/scripts/hook.d.ts +0 -33
  168. package/es/docPreview/style/index.d.ts +0 -1
  169. package/es/editMetaInfo/component.d.ts +0 -0
  170. package/es/editMetaInfo/components/metaInfoForm.d.ts +0 -0
  171. package/es/editMetaInfo/index.d.ts +0 -2
  172. package/es/editMetaInfo/script/api.d.ts +0 -6
  173. package/es/editMetaInfo/script/restaurants.d.ts +0 -4
  174. package/es/editMetaInfo/style/index.d.ts +0 -1
  175. package/es/emptyData/component.d.ts +0 -0
  176. package/es/emptyData/index.d.ts +0 -2
  177. package/es/emptyData/style/index.d.ts +0 -1
  178. package/es/emptyData/svg/add.d.ts +0 -0
  179. package/es/hooks/assets.d.ts +0 -1
  180. package/es/hooks/batch.d.ts +0 -8
  181. package/es/hooks/dialogVisible.d.ts +0 -8
  182. package/es/hooks/source.d.ts +0 -9
  183. package/es/hooks/toggle.d.ts +0 -6
  184. package/es/hooks/useAttachement.d.ts +0 -34
  185. package/es/hooks/useLocalStorage.d.ts +0 -10
  186. package/es/hooks/useMediaContext.d.ts +0 -12
  187. package/es/hooks/usePopper.d.ts +0 -8
  188. package/es/hooks/useSelection.d.ts +0 -30
  189. package/es/hooks/useUpload.d.ts +0 -30
  190. package/es/hooks/user.d.ts +0 -9
  191. package/es/imageCrop/component.d.ts +0 -0
  192. package/es/imageCrop/index.d.ts +0 -2
  193. package/es/imageCrop/script/api.d.ts +0 -1
  194. package/es/imageCrop/style/index.d.ts +0 -1
  195. package/es/importData/component.d.ts +0 -0
  196. package/es/importData/index.d.ts +0 -2
  197. package/es/importData/style/index.d.ts +0 -1
  198. package/es/index.d.ts +0 -30
  199. package/es/mediaFilter/component.d.ts +0 -0
  200. package/es/mediaFilter/components/DocFilter.d.ts +0 -0
  201. package/es/mediaFilter/components/FilterGroup.d.ts +0 -0
  202. package/es/mediaFilter/components/FilterItem.d.ts +0 -0
  203. package/es/mediaFilter/components/MpAccountFilter.d.ts +0 -0
  204. package/es/mediaFilter/components/MpContentFilter.d.ts +0 -0
  205. package/es/mediaFilter/index.d.ts +0 -3
  206. package/es/mediaFilter/script/optionsGetter.d.ts +0 -26
  207. package/es/mediaFilter/script/types.d.ts +0 -16
  208. package/es/mediaFilter/style/index.d.ts +0 -1
  209. package/es/mediaView/component.d.ts +0 -0
  210. package/es/mediaView/index.d.ts +0 -2
  211. package/es/mediaView/style/index.d.ts +0 -1
  212. package/es/messageBox/component.d.ts +0 -0
  213. package/es/messageBox/index.d.ts +0 -2
  214. package/es/messageBox/list.d.ts +0 -0
  215. package/es/messageBox/script/api.d.ts +0 -6
  216. package/es/messageBox/style/index.d.ts +0 -1
  217. package/es/previousVersion/component.d.ts +0 -0
  218. package/es/previousVersion/index.d.ts +0 -2
  219. package/es/previousVersion/script/api.d.ts +0 -15
  220. package/es/previousVersion/script/tool.d.ts +0 -6
  221. package/es/previousVersion/style/index.d.ts +0 -1
  222. package/es/resourceGridList/component.d.ts +0 -0
  223. package/es/resourceGridList/components/FileTypeThumb/index.d.ts +0 -0
  224. package/es/resourceGridList/index.d.ts +0 -2
  225. package/es/resourceGridList/style/index.d.ts +0 -1
  226. package/es/resourceModal/component.d.ts +0 -0
  227. package/es/resourceModal/components/MediaPreviewer/index.d.ts +0 -0
  228. package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.d.ts +0 -0
  229. package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.d.ts +0 -0
  230. package/es/resourceModal/components/MediaSelection/MainContent/index.d.ts +0 -0
  231. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.d.ts +0 -0
  232. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.d.ts +0 -0
  233. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.d.ts +0 -0
  234. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.d.ts +0 -0
  235. package/es/resourceModal/components/MediaSelection/index.d.ts +0 -0
  236. package/es/resourceModal/index.d.ts +0 -2
  237. package/es/resourceModal/script/api.d.ts +0 -25
  238. package/es/resourceModal/script/mediaSelection.d.ts +0 -14
  239. package/es/resourceModal/style/index.d.ts +0 -1
  240. package/es/selectAvatarList/component.d.ts +0 -0
  241. package/es/selectAvatarList/index.d.ts +0 -2
  242. package/es/selectAvatarList/style/index.d.ts +0 -1
  243. package/es/selectGategory/component.d.ts +0 -0
  244. package/es/selectGategory/components/ColumnSelection/index.d.ts +0 -0
  245. package/es/selectGategory/index.d.ts +0 -2
  246. package/es/selectGategory/script/api.d.ts +0 -6
  247. package/es/selectGategory/style/index.d.ts +0 -1
  248. package/es/selectResourceModal/component.d.ts +0 -0
  249. package/es/selectResourceModal/components/List/ListAi/index.d.ts +0 -0
  250. package/es/selectResourceModal/components/List/ListCardWrapper.d.ts +0 -0
  251. package/es/selectResourceModal/components/List/ListLocal/Upload.d.ts +0 -0
  252. package/es/selectResourceModal/components/List/ListLocal/index.d.ts +0 -0
  253. package/es/selectResourceModal/components/List/ListNormal/Filter.d.ts +0 -0
  254. package/es/selectResourceModal/components/List/ListNormal/index.d.ts +0 -0
  255. package/es/selectResourceModal/components/List/ListSystem/Filter.d.ts +0 -0
  256. package/es/selectResourceModal/components/List/ListSystem/SubList.d.ts +0 -0
  257. package/es/selectResourceModal/components/List/ListSystem/index.d.ts +0 -0
  258. package/es/selectResourceModal/components/List/ListVideo/index.d.ts +0 -0
  259. package/es/selectResourceModal/components/List/ListWraper.d.ts +0 -0
  260. package/es/selectResourceModal/components/ListSelected/index.d.ts +0 -0
  261. package/es/selectResourceModal/components/ListTabs/index.d.ts +0 -0
  262. package/es/selectResourceModal/index.d.ts +0 -2
  263. package/es/selectResourceModal/scripts/selectionApis.d.ts +0 -2
  264. package/es/selectResourceModal/scripts/useCompoLf.d.ts +0 -27
  265. package/es/selectResourceModal/scripts/useResourceSelect.d.ts +0 -7
  266. package/es/selectResourceModal/scripts/useTabFilter.d.ts +0 -22
  267. package/es/selectResourceModal/style/index.d.ts +0 -1
  268. package/es/selectThumb/component.d.ts +0 -0
  269. package/es/selectThumb/components/card.d.ts +0 -0
  270. package/es/selectThumb/components/colorPalette.d.ts +0 -0
  271. package/es/selectThumb/components/colorPicker.d.ts +0 -0
  272. package/es/selectThumb/index.d.ts +0 -2
  273. package/es/selectThumb/style/index.d.ts +0 -1
  274. package/es/thumbCard/component.d.ts +0 -0
  275. package/es/thumbCard/components/ThumbUploading/index.d.ts +0 -0
  276. package/es/thumbCard/index.d.ts +0 -2
  277. package/es/thumbCard/style/index.d.ts +0 -1
  278. package/es/typeIcons/component.d.ts +0 -0
  279. package/es/typeIcons/index.d.ts +0 -2
  280. package/es/typeIcons/style/index.d.ts +0 -1
  281. package/es/uploadBefore/component.d.ts +0 -0
  282. package/es/uploadBefore/components/UploadBefore.d.ts +0 -0
  283. package/es/uploadBefore/components/UploadForClick.d.ts +0 -0
  284. package/es/uploadBefore/index.d.ts +0 -2
  285. package/es/uploadBefore/script/api.d.ts +0 -16
  286. package/es/uploadBefore/script/fileTypeAdapter.d.ts +0 -39
  287. package/es/uploadBefore/script/fileUpload.d.ts +0 -7
  288. package/es/uploadBefore/script/uploadHooks.d.ts +0 -96
  289. package/es/uploadBefore/style/index.d.ts +0 -1
  290. package/es/uploadBefore/utils/dragUploadEvent.d.ts +0 -0
  291. package/es/uploadStep/component.d.ts +0 -0
  292. package/es/uploadStep/index.d.ts +0 -2
  293. package/es/uploadStep/script/fileTypeAdapter.d.ts +0 -20
  294. package/es/uploadStep/style/index.d.ts +0 -1
  295. package/es/userAvater/component.d.ts +0 -0
  296. package/es/userAvater/index.d.ts +0 -2
  297. package/es/userAvater/script/api.d.ts +0 -8
  298. package/es/userAvater/style/index.d.ts +0 -1
  299. package/es/userDirector/component.d.ts +0 -0
  300. package/es/userDirector/components/userTree.d.ts +0 -0
  301. package/es/userDirector/index.d.ts +0 -2
  302. package/es/userDirector/script/api.d.ts +0 -10
  303. package/es/userDirector/style/index.d.ts +0 -1
  304. package/es/utils/auth.d.ts +0 -5
  305. package/es/utils/date.d.ts +0 -3
  306. package/es/utils/doc.d.ts +0 -76
  307. package/es/utils/filter.d.ts +0 -21
  308. package/es/utils/index.d.ts +0 -17
  309. package/es/utils/request.d.ts +0 -9
  310. package/es/utils/resource.d.ts +0 -4
  311. package/es/utils/transcodeMedia.d.ts +0 -13
  312. package/es/utils/tusUpload.d.ts +0 -16
  313. package/es/utils/typeMap.d.ts +0 -185
  314. package/es/utils/uploadCatalog.d.ts +0 -1
  315. package/es/videoThumb/component.d.ts +0 -0
  316. package/es/videoThumb/index.d.ts +0 -2
  317. package/es/videoThumb/scripts/api.d.ts +0 -9
  318. package/es/videoThumb/scripts/useVideoThumbs.d.ts +0 -12
  319. package/es/videoThumb/style/index.d.ts +0 -1
@@ -95,7 +95,8 @@ const _sfc_main = vue.defineComponent({
95
95
  default: vue.withCtx(() => _cache[8] || (_cache[8] = [
96
96
  vue.createTextVNode(" \u590D\u5236\u94FE\u63A5 ")
97
97
  ])),
98
- _: 1
98
+ _: 1,
99
+ __: [8]
99
100
  }, 8, ["onClick"])
100
101
  ]),
101
102
  vue.createCommentVNode(" \u94FE\u63A5 "),
@@ -111,7 +112,8 @@ const _sfc_main = vue.defineComponent({
111
112
  default: vue.withCtx(() => _cache[10] || (_cache[10] = [
112
113
  vue.createTextVNode("\u53D6\u6D88\u9884\u89C8\u94FE\u63A5")
113
114
  ])),
114
- _: 1
115
+ _: 1,
116
+ __: [10]
115
117
  }),
116
118
  vue.createVNode(vue.unref(webVue.Button), {
117
119
  type: "primary",
@@ -120,7 +122,8 @@ const _sfc_main = vue.defineComponent({
120
122
  default: vue.withCtx(() => _cache[11] || (_cache[11] = [
121
123
  vue.createTextVNode(" \u66F4\u65B0\u9884\u89C8\u6709\u6548\u671F ")
122
124
  ])),
123
- _: 1
125
+ _: 1,
126
+ __: [11]
124
127
  })
125
128
  ])
126
129
  ], 64)) : vue.unref(isPublish) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
@@ -140,7 +143,8 @@ const _sfc_main = vue.defineComponent({
140
143
  default: vue.withCtx(() => _cache[13] || (_cache[13] = [
141
144
  vue.createTextVNode(" \u590D\u5236\u94FE\u63A5 ")
142
145
  ])),
143
- _: 1
146
+ _: 1,
147
+ __: [13]
144
148
  }, 8, ["onClick"])
145
149
  ]),
146
150
  vue.createCommentVNode(" \u94FE\u63A5 "),
@@ -180,7 +184,8 @@ const _sfc_main = vue.defineComponent({
180
184
  default: vue.withCtx(() => _cache[18] || (_cache[18] = [
181
185
  vue.createTextVNode(" \u751F\u6210\u9884\u89C8\u94FE\u63A5 ")
182
186
  ])),
183
- _: 1
187
+ _: 1,
188
+ __: [18]
184
189
  })
185
190
  ])
186
191
  ], 64))
@@ -763,13 +763,15 @@ const _sfc_main = vue.defineComponent({
763
763
  default: vue.withCtx(() => _cache[29] || (_cache[29] = [
764
764
  vue.createTextVNode(" \u9ED8\u54C0\u6A21\u5F0F")
765
765
  ])),
766
- _: 1
766
+ _: 1,
767
+ __: [29]
767
768
  }),
768
769
  vue.createVNode(vue.unref(webVue.Radio), { value: 2 }, {
769
770
  default: vue.withCtx(() => _cache[30] || (_cache[30] = [
770
771
  vue.createTextVNode("\u975E\u9ED8\u54C0\u6A21\u5F0F")
771
772
  ])),
772
- _: 1
773
+ _: 1,
774
+ __: [30]
773
775
  })
774
776
  ]),
775
777
  _: 1
@@ -110,9 +110,51 @@ function getSysRsPage(BASE_API, params) {
110
110
  params
111
111
  });
112
112
  }
113
+ function getDirectory(BASE_API, params) {
114
+ return request(BASE_API, {
115
+ url: "/poplar/v3/directory/tree",
116
+ method: "get",
117
+ params
118
+ });
119
+ }
120
+ function useDirectory(options) {
121
+ const tree = vue.ref([]);
122
+ async function loadDirTree(parent_id) {
123
+ const params = parent_id ? { parent_id } : {};
124
+ const { code, message } = await getDirectory(options.BASE_API, params);
125
+ if (code === 0) {
126
+ if (!Array.isArray(message.data))
127
+ return [];
128
+ return message.data;
129
+ }
130
+ return [];
131
+ }
132
+ async function init() {
133
+ const result = await loadDirTree();
134
+ if (!Array.isArray(result))
135
+ return;
136
+ tree.value = result;
137
+ }
138
+ async function loadMore(target) {
139
+ const children = await loadDirTree(target.key);
140
+ target.children = children;
141
+ if (children.length === 0)
142
+ target.isLeaf = true;
143
+ }
144
+ vue.onMounted(() => {
145
+ init();
146
+ });
147
+ return {
148
+ tree,
149
+ init,
150
+ loadMore
151
+ };
152
+ }
113
153
  exports["default"] = useAttachement;
114
154
  exports.getAttachmentsAll = getAttachmentsAll;
115
155
  exports.getAttachmentsMy = getAttachmentsMy;
116
156
  exports.getAttachmentsMyMessage = getAttachmentsMyMessage;
157
+ exports.getDirectory = getDirectory;
117
158
  exports.getSysRsByTag = getSysRsByTag;
118
159
  exports.getSysRsPage = getSysRsPage;
160
+ exports.useDirectory = useDirectory;
@@ -9,16 +9,16 @@ function usePopper(pannel, triggerEl) {
9
9
  };
10
10
  const show = () => {
11
11
  visible.value = true;
12
- window.onclick = (e) => {
12
+ window.onclick = () => {
13
13
  hide();
14
14
  visible.value = false;
15
15
  window.onclick = null;
16
16
  };
17
17
  };
18
- const initPopper = (placement = "bottom-start") => {
18
+ const initPopper = (placement = "bottom-start", of) => {
19
19
  if (!pannel.value || !triggerEl.value)
20
20
  return;
21
- const offset = [0, 10];
21
+ const offset = of != null ? of : [0, 10];
22
22
  if (window.__POWERED_BY_WUJIE__) {
23
23
  offset[1] = -54;
24
24
  }
@@ -75,7 +75,7 @@ function useUpload(options) {
75
75
  list.value = originList;
76
76
  }
77
77
  };
78
- const uploadFile = (BASE_API, file, dir = 0, repoId, callback) => {
78
+ const uploadFile = (BASE_API, file, dir = 0, repoId, callback, upOptions) => {
79
79
  const newFile = {
80
80
  id: file.id || index.generateUUID(),
81
81
  sig_id: file.sig_id || index.generateUUID(),
@@ -95,18 +95,24 @@ function useUpload(options) {
95
95
  };
96
96
  const uploading = upload.start(progress);
97
97
  uploading.then(async (url) => {
98
+ var _a;
98
99
  if (options == null ? void 0 : options.noAddMedia) {
99
100
  recordTaskStatusChange({ ...newFile, status: 0, url }, 1);
100
101
  callback && callback({ ...newFile, url }, "success");
101
102
  return;
102
103
  }
104
+ const params = {};
105
+ if ((_a = upOptions == null ? void 0 : upOptions.template) == null ? void 0 : _a.watermark) {
106
+ params.watermark = upOptions.template.watermark.default;
107
+ }
103
108
  const { code, message } = await addMedia(BASE_API, {
104
109
  url,
105
110
  size: newFile.size,
106
111
  directory_id: dir,
107
112
  repository_id: repoId,
108
113
  catalog: newFile.type,
109
- alias: newFile.name
114
+ alias: newFile.name,
115
+ ...params
110
116
  });
111
117
  if (code !== 0) {
112
118
  console.log("\u{1F525}\u{1F525}\u{1F525}\u{1F525}\u{1F525} \u4E0A\u4F20\u5931\u8D25\uFF1A", newFile.name, code, message);
@@ -196,9 +202,16 @@ function getConfiguration(BASE_API, params) {
196
202
  params
197
203
  });
198
204
  }
205
+ function getWatermarkTemplate(BASE_API) {
206
+ return request(BASE_API, {
207
+ url: `/poplar/v2/material/image/watermark`,
208
+ method: "get"
209
+ });
210
+ }
199
211
  function useUploadConfig() {
200
212
  const { get, set, remove } = useLocalStorage["default"]("LOCAL_UPLOAD_CONFIG");
201
213
  const config = vue.ref(get() || {});
214
+ const template = vue.ref({});
202
215
  async function initUploadConfig(BASE_API, domainId) {
203
216
  if (config.value.size_config_enabled != null)
204
217
  return;
@@ -247,16 +260,43 @@ function useUploadConfig() {
247
260
  );
248
261
  return false;
249
262
  }
263
+ async function initTemplate(BASE_API) {
264
+ try {
265
+ const { code, message } = await getWatermarkTemplate(BASE_API);
266
+ if (code !== 0)
267
+ return;
268
+ if (message) {
269
+ let defaultWaterMark;
270
+ if (Array.isArray(message.images)) {
271
+ message.images.forEach((item) => {
272
+ if (message.default === item.id)
273
+ defaultWaterMark = item;
274
+ });
275
+ }
276
+ template.value = {
277
+ watermark: {
278
+ default: defaultWaterMark,
279
+ images: message.images
280
+ }
281
+ };
282
+ }
283
+ } catch (e) {
284
+ console.error(e);
285
+ }
286
+ }
250
287
  window.addEventListener("beforeunload", remove, false);
251
288
  return {
252
289
  config,
290
+ template,
253
291
  checkFileSizeOutLimit,
254
- initUploadConfig
292
+ initUploadConfig,
293
+ initTemplate
255
294
  };
256
295
  }
257
296
  exports.addMedia = addMedia;
258
297
  exports["default"] = useUpload;
259
298
  exports.getMediaDetails = getMediaDetails;
260
299
  exports.getSize = getSize;
300
+ exports.getWatermarkTemplate = getWatermarkTemplate;
261
301
  exports.reTranscodeMedia = reTranscodeMedia;
262
302
  exports.useUploadConfig = useUploadConfig;
@@ -426,7 +426,8 @@ const _sfc_main = vue.defineComponent({
426
426
  default: vue.withCtx(() => _cache[5] || (_cache[5] = [
427
427
  vue.createTextVNode("\u53D6\u6D88")
428
428
  ])),
429
- _: 1
429
+ _: 1,
430
+ __: [5]
430
431
  }),
431
432
  vue.withDirectives(vue.createVNode(vue.unref(webVue.Button), {
432
433
  size: "medium",
@@ -437,7 +438,8 @@ const _sfc_main = vue.defineComponent({
437
438
  default: vue.withCtx(() => _cache[6] || (_cache[6] = [
438
439
  vue.createTextVNode("\u88C1\u526A")
439
440
  ])),
440
- _: 1
441
+ _: 1,
442
+ __: [6]
441
443
  }, 8, ["loading"]), [
442
444
  [vue.vShow, !croppering.value]
443
445
  ])
@@ -106,7 +106,8 @@ const _sfc_main = vue.defineComponent({
106
106
  default: vue.withCtx(() => _cache[1] || (_cache[1] = [
107
107
  vue.createTextVNode("\u4E0B\u8F7D\u6A21\u677F")
108
108
  ])),
109
- _: 1
109
+ _: 1,
110
+ __: [1]
110
111
  }, 8, ["href"])
111
112
  ]),
112
113
  _cache[6] || (_cache[6] = vue.createElementVNode("h3", null, "\u4E0A\u4F20\u6587\u4EF6", -1)),
@@ -127,7 +128,8 @@ const _sfc_main = vue.defineComponent({
127
128
  default: vue.withCtx(() => _cache[3] || (_cache[3] = [
128
129
  vue.createTextVNode(" \u4E0B\u8F7D\u5BFC\u5165\u7ED3\u679C ")
129
130
  ])),
130
- _: 1
131
+ _: 1,
132
+ __: [3]
131
133
  }, 8, ["href"])
132
134
  ])) : vue.createCommentVNode("v-if", true),
133
135
  importPercent.value === 1 && ((_b = importData.value) == null ? void 0 : _b.success_count) === void 0 ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_5, " \u5BFC\u5165\u5931\u8D25\uFF0C" + vue.toDisplayString(importErrorInfo.value), 1)) : vue.createCommentVNode("v-if", true)
@@ -158,7 +160,8 @@ const _sfc_main = vue.defineComponent({
158
160
  default: vue.withCtx(() => _cache[4] || (_cache[4] = [
159
161
  vue.createTextVNode("\u5F00\u59CB\u5BFC\u5165")
160
162
  ])),
161
- _: 1
163
+ _: 1,
164
+ __: [4]
162
165
  }, 8, ["loading"])) : vue.createCommentVNode("v-if", true)
163
166
  ]),
164
167
  _: 1
package/lib/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;
@@ -4925,6 +4966,10 @@
4925
4966
  .doc-history-drawer .arco-drawer-footer {
4926
4967
  text-align: left;
4927
4968
  }
4969
+ .doc-history-modal-wrap {
4970
+ height: 70vh;
4971
+ padding: 0;
4972
+ }
4928
4973
  .video-thumb {
4929
4974
  display: flex;
4930
4975
  flex-direction: column;
@@ -185,7 +185,8 @@ const _sfc_main = vue.defineComponent({
185
185
  default: vue.withCtx(() => [
186
186
  _cache[3] || (_cache[3] = vue.createTextVNode(" \u91CD\u7F6E "))
187
187
  ]),
188
- _: 1
188
+ _: 1,
189
+ __: [3]
189
190
  })) : vue.createCommentVNode("v-if", true)
190
191
  ]),
191
192
  right: vue.withCtx(() => [
@@ -205,7 +205,8 @@ const _sfc_main = vue.defineComponent({
205
205
  vue.createElementVNode("div", { class: "transcoding-progress" }, "\u8F6C\u7801\u4E2D\u2026")
206
206
  ], -1)
207
207
  ])),
208
- _: 1
208
+ _: 1,
209
+ __: [1]
209
210
  })) : vue.createCommentVNode("v-if", true)
210
211
  ], 10, _hoisted_10)
211
212
  ]);
@@ -222,7 +223,8 @@ const _sfc_main = vue.defineComponent({
222
223
  default: vue.withCtx(() => _cache[2] || (_cache[2] = [
223
224
  vue.createTextVNode("\u52A0\u8F7D\u66F4\u591A\u2026 ")
224
225
  ])),
225
- _: 1
226
+ _: 1,
227
+ __: [2]
226
228
  })) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_13, "\u6CA1\u6709\u66F4\u591A\u4E86\u2026"))
227
229
  ])) : vue.createCommentVNode("v-if", true),
228
230
  !((_d = _ctx.fileList) == null ? void 0 : _d.length) && !((_e = _ctx.folderList) == null ? void 0 : _e.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, _cache[3] || (_cache[3] = [
@@ -94,7 +94,8 @@ const _sfc_main = vue.defineComponent({
94
94
  ])) : vue.createCommentVNode("v-if", true)
95
95
  ];
96
96
  }),
97
- _: 1
97
+ _: 1,
98
+ __: [1]
98
99
  })
99
100
  ]);
100
101
  };
@@ -178,7 +178,8 @@ const _sfc_main = vue.defineComponent({
178
178
  vue.createElementVNode("div", { class: "transcoding-progress" }, "\u8F6C\u7801\u4E2D\u2026")
179
179
  ], -1)
180
180
  ])),
181
- _: 1
181
+ _: 1,
182
+ __: [1]
182
183
  })) : vue.createCommentVNode("v-if", true)
183
184
  ], 2)
184
185
  ]);
@@ -195,7 +196,8 @@ const _sfc_main = vue.defineComponent({
195
196
  default: vue.withCtx(() => _cache[2] || (_cache[2] = [
196
197
  vue.createTextVNode("\u52A0\u8F7D\u66F4\u591A\u2026 ")
197
198
  ])),
198
- _: 1
199
+ _: 1,
200
+ __: [2]
199
201
  }, 8, ["onClick"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_13, "\u6CA1\u6709\u66F4\u591A\u4E86\u2026"))
200
202
  ])) : vue.createCommentVNode("v-if", true),
201
203
  !_ctx.fileList.length && !_ctx.folderList.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, _cache[3] || (_cache[3] = [
@@ -125,7 +125,8 @@ const _sfc_main = vue.defineComponent({
125
125
  default: vue.withCtx(() => _cache[1] || (_cache[1] = [
126
126
  vue.createTextVNode("\u53D6\u6D88")
127
127
  ])),
128
- _: 1
128
+ _: 1,
129
+ __: [1]
129
130
  }, 8, ["onClick"]),
130
131
  vue.createVNode(vue.unref(webVue.Button), {
131
132
  type: "primary",
@@ -134,7 +135,8 @@ const _sfc_main = vue.defineComponent({
134
135
  default: vue.withCtx(() => _cache[2] || (_cache[2] = [
135
136
  vue.createTextVNode(" \u786E\u5B9A ")
136
137
  ])),
137
- _: 1
138
+ _: 1,
139
+ __: [2]
138
140
  })
139
141
  ], 64)) : vue.createCommentVNode("v-if", true)
140
142
  ], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
@@ -144,7 +146,8 @@ const _sfc_main = vue.defineComponent({
144
146
  default: vue.withCtx(() => _cache[3] || (_cache[3] = [
145
147
  vue.createTextVNode("\u53D6\u6D88")
146
148
  ])),
147
- _: 1
149
+ _: 1,
150
+ __: [3]
148
151
  }, 8, ["onClick"]),
149
152
  vue.createVNode(vue.unref(webVue.Button), {
150
153
  disabled: isEmpty,
@@ -154,7 +157,8 @@ const _sfc_main = vue.defineComponent({
154
157
  default: vue.withCtx(() => _cache[4] || (_cache[4] = [
155
158
  vue.createTextVNode(" \u7F16\u8F91 ")
156
159
  ])),
157
- _: 2
160
+ _: 2,
161
+ __: [4]
158
162
  }, 1032, ["disabled", "onClick"]),
159
163
  vue.createVNode(vue.unref(webVue.Button), {
160
164
  disabled: isEmpty,
@@ -164,7 +168,8 @@ const _sfc_main = vue.defineComponent({
164
168
  default: vue.withCtx(() => _cache[5] || (_cache[5] = [
165
169
  vue.createTextVNode(" \u4F7F\u7528 ")
166
170
  ])),
167
- _: 2
171
+ _: 2,
172
+ __: [5]
168
173
  }, 1032, ["disabled", "onClick"])
169
174
  ], 64))
170
175
  ]),
@@ -48,7 +48,8 @@ const _sfc_main = vue.defineComponent({
48
48
  default: vue.withCtx(() => [
49
49
  _cache[0] || (_cache[0] = vue.createTextVNode(" \u672C\u5730\u4E0A\u4F20 "))
50
50
  ]),
51
- _: 1
51
+ _: 1,
52
+ __: [0]
52
53
  })
53
54
  ]),
54
55
  _: 1
@@ -23,6 +23,7 @@ const _sfc_main = vue.defineComponent({
23
23
  var _a;
24
24
  return (_a = userInfo == null ? void 0 : userInfo.value) == null ? void 0 : _a.repository_id;
25
25
  });
26
+ const { template, initTemplate } = useUpload.useUploadConfig();
26
27
  const { list, uploadFile, reTranscode, transcodingFile, removeRecord } = useUpload["default"]();
27
28
  function handleChange(file) {
28
29
  if (!baseAPI || !repoId.value)
@@ -32,7 +33,8 @@ const _sfc_main = vue.defineComponent({
32
33
  file.file,
33
34
  0,
34
35
  repoId.value,
35
- (media) => transcodingFile(baseAPI, media, repoId.value)
36
+ (media) => transcodingFile(baseAPI, media, repoId.value),
37
+ { template: template.value }
36
38
  );
37
39
  }
38
40
  async function handleOptions(e) {
@@ -55,6 +57,9 @@ const _sfc_main = vue.defineComponent({
55
57
  removeRecord(e.item);
56
58
  }
57
59
  }
60
+ vue.onMounted(() => {
61
+ initTemplate(baseAPI);
62
+ });
58
63
  return (_ctx, _cache) => {
59
64
  return vue.openBlock(), vue.createBlock(ListWraper, null, {
60
65
  "footer-extra": vue.withCtx(() => [
@@ -74,7 +79,7 @@ const _sfc_main = vue.defineComponent({
74
79
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
75
80
  key: item.sig_id
76
81
  }, [
77
- vue.createCommentVNode(" \n onOptions \u7528\u4E8E\u5904\u7406\u5361\u7247\u91CC\u5916\u90E8\u4E0D\u80FD\u6355\u83B7\u7684\u64CD\u4F5C\n 1. \u6BD4\u5982\u5916\u90E8\u65E0\u6CD5\u5904\u7406\u9700\u8981\u91CD\u65B0\u4E0A\u4F20/\u8F6C\u7801/\u5220\u9664\u7684\u903B\u8F91 \n 2. \u90A3\u4E48\u5C31\u5C06\u5904\u7406\u7684\u65B9\u6CD5\u4E5F\u4E00\u540C\u629B\u51FA\uFF0C\u7531\u5916\u90E8\u8C03\u7528\n "),
82
+ vue.createCommentVNode(" \r\n onOptions \u7528\u4E8E\u5904\u7406\u5361\u7247\u91CC\u5916\u90E8\u4E0D\u80FD\u6355\u83B7\u7684\u64CD\u4F5C\r\n 1. \u6BD4\u5982\u5916\u90E8\u65E0\u6CD5\u5904\u7406\u9700\u8981\u91CD\u65B0\u4E0A\u4F20/\u8F6C\u7801/\u5220\u9664\u7684\u903B\u8F91 \r\n 2. \u90A3\u4E48\u5C31\u5C06\u5904\u7406\u7684\u65B9\u6CD5\u4E5F\u4E00\u540C\u629B\u51FA\uFF0C\u7531\u5916\u90E8\u8C03\u7528\r\n "),
78
83
  vue.renderSlot(_ctx.$slots, "item", {
79
84
  item,
80
85
  onOptions: handleOptions