@cmstops/pro-compo 3.9.1-rc.1 → 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 +2 -9
  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 +208 -92
  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 +2 -9
  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 +205 -89
  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 -53
  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
@@ -109,6 +109,12 @@ const _sfc_main = vue.defineComponent({
109
109
  onCellMouseEnter: tableCellMouseEnter,
110
110
  onCellMouseLeave: tableCellMouseLeave
111
111
  }, {
112
+ "after-index": vue.withCtx(() => [
113
+ vue.renderSlot(_ctx.$slots, "after-index", {
114
+ row: element,
115
+ index: index$4
116
+ })
117
+ ]),
112
118
  batch: vue.withCtx(() => [
113
119
  vue.renderSlot(_ctx.$slots, "batch", {
114
120
  row: element,
@@ -133,6 +139,12 @@ const _sfc_main = vue.defineComponent({
133
139
  onCellMouseEnter: tableCellMouseEnter,
134
140
  onCellMouseLeave: tableCellMouseLeave
135
141
  }, {
142
+ "after-index": vue.withCtx(() => [
143
+ vue.renderSlot(_ctx.$slots, "after-index", {
144
+ row: element,
145
+ index: index$4
146
+ })
147
+ ]),
136
148
  tip: vue.withCtx(() => [
137
149
  vue.renderSlot(_ctx.$slots, "tip", {
138
150
  row: element,
@@ -229,6 +241,12 @@ const _sfc_main = vue.defineComponent({
229
241
  onCellMouseEnter: tableCellMouseEnter,
230
242
  onCellMouseLeave: tableCellMouseLeave
231
243
  }, {
244
+ "after-index": vue.withCtx(() => [
245
+ vue.renderSlot(_ctx.$slots, "after-index", {
246
+ row: item,
247
+ index: index$4
248
+ })
249
+ ]),
232
250
  batch: vue.withCtx(() => [
233
251
  vue.renderSlot(_ctx.$slots, "batch", {
234
252
  row: item,
@@ -253,6 +271,12 @@ const _sfc_main = vue.defineComponent({
253
271
  onCellMouseEnter: tableCellMouseEnter,
254
272
  onCellMouseLeave: tableCellMouseLeave
255
273
  }, {
274
+ "after-index": vue.withCtx(() => [
275
+ vue.renderSlot(_ctx.$slots, "after-index", {
276
+ row: item,
277
+ index: index$4
278
+ })
279
+ ]),
256
280
  tip: vue.withCtx(() => [
257
281
  vue.renderSlot(_ctx.$slots, "tip", {
258
282
  row: item,
@@ -143,7 +143,8 @@ const _sfc_main = vue.defineComponent({
143
143
  })
144
144
  ]),
145
145
  index: vue.withCtx(() => [
146
- vue.createElementVNode("span", _hoisted_1, vue.toDisplayString(_ctx.index + 1), 1)
146
+ vue.createElementVNode("span", _hoisted_1, vue.toDisplayString(_ctx.index + 1), 1),
147
+ vue.renderSlot(_ctx.$slots, "after-index")
147
148
  ]),
148
149
  tip: vue.withCtx(() => [
149
150
  vue.createCommentVNode(" \u5148\u6DFB\u52A0\u6587\u4EF6\u8D44\u6E90\uFF0C\u672A\u53D1\u5E03 "),
@@ -38,6 +38,12 @@ const _sfc_main = vue.defineComponent({
38
38
  index: _ctx.index
39
39
  })
40
40
  ]),
41
+ "after-index": vue.withCtx(() => [
42
+ vue.renderSlot(_ctx.$slots, "after-index", {
43
+ row: _ctx.element,
44
+ index: _ctx.index
45
+ })
46
+ ]),
41
47
  batch: vue.withCtx(() => [
42
48
  vue.renderSlot(_ctx.$slots, "batch", {
43
49
  row: _ctx.item,
@@ -253,7 +253,8 @@ const _sfc_main = vue.defineComponent({
253
253
  default: vue.withCtx(() => _cache[5] || (_cache[5] = [
254
254
  vue.createTextVNode(" \u751F\u6210\u9884\u89C8\u94FE\u63A5 ")
255
255
  ])),
256
- _: 1
256
+ _: 1,
257
+ __: [5]
257
258
  })) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
258
259
  vue.createVNode(vue.unref(webVue.Button), {
259
260
  class: "auto",
@@ -263,7 +264,8 @@ const _sfc_main = vue.defineComponent({
263
264
  default: vue.withCtx(() => _cache[6] || (_cache[6] = [
264
265
  vue.createTextVNode(" \u590D\u5236\u4E8C\u7EF4\u7801 ")
265
266
  ])),
266
- _: 1
267
+ _: 1,
268
+ __: [6]
267
269
  }),
268
270
  vue.createVNode(vue.unref(webVue.Button), {
269
271
  class: "auto",
@@ -161,7 +161,8 @@ const _sfc_main = vue.defineComponent({
161
161
  default: vue.withCtx(() => _cache[8] || (_cache[8] = [
162
162
  vue.createTextVNode("\u6DFB\u52A0 ")
163
163
  ])),
164
- _: 1
164
+ _: 1,
165
+ __: [8]
165
166
  }, 8, ["disabled"])
166
167
  ]),
167
168
  _: 1
@@ -200,7 +201,8 @@ const _sfc_main = vue.defineComponent({
200
201
  default: vue.withCtx(() => _cache[9] || (_cache[9] = [
201
202
  vue.createTextVNode(" \u6DFB\u52A0 ")
202
203
  ])),
203
- _: 1
204
+ _: 1,
205
+ __: [9]
204
206
  }, 8, ["disabled"])
205
207
  ]),
206
208
  _: 1
@@ -240,7 +242,8 @@ const _sfc_main = vue.defineComponent({
240
242
  default: vue.withCtx(() => _cache[10] || (_cache[10] = [
241
243
  vue.createTextVNode(" \u6DFB\u52A0 ")
242
244
  ])),
243
- _: 1
245
+ _: 1,
246
+ __: [10]
244
247
  }, 8, ["disabled"])
245
248
  ]),
246
249
  _: 1
@@ -279,7 +282,8 @@ const _sfc_main = vue.defineComponent({
279
282
  default: vue.withCtx(() => _cache[11] || (_cache[11] = [
280
283
  vue.createTextVNode(" \u6DFB\u52A0 ")
281
284
  ])),
282
- _: 1
285
+ _: 1,
286
+ __: [11]
283
287
  }, 8, ["disabled"])
284
288
  ]),
285
289
  _: 1
@@ -318,7 +322,8 @@ const _sfc_main = vue.defineComponent({
318
322
  default: vue.withCtx(() => _cache[12] || (_cache[12] = [
319
323
  vue.createTextVNode(" \u6DFB\u52A0 ")
320
324
  ])),
321
- _: 1
325
+ _: 1,
326
+ __: [12]
322
327
  }, 8, ["disabled"])
323
328
  ]),
324
329
  _: 1
@@ -357,7 +362,8 @@ const _sfc_main = vue.defineComponent({
357
362
  default: vue.withCtx(() => _cache[13] || (_cache[13] = [
358
363
  vue.createTextVNode(" \u6DFB\u52A0 ")
359
364
  ])),
360
- _: 1
365
+ _: 1,
366
+ __: [13]
361
367
  }, 8, ["disabled"])
362
368
  ]),
363
369
  _: 1
@@ -396,7 +402,8 @@ const _sfc_main = vue.defineComponent({
396
402
  default: vue.withCtx(() => _cache[14] || (_cache[14] = [
397
403
  vue.createTextVNode(" \u6DFB\u52A0 ")
398
404
  ])),
399
- _: 1
405
+ _: 1,
406
+ __: [14]
400
407
  }, 8, ["disabled"])
401
408
  ]),
402
409
  _: 1
@@ -434,7 +441,8 @@ const _sfc_main = vue.defineComponent({
434
441
  default: vue.withCtx(() => _cache[15] || (_cache[15] = [
435
442
  vue.createTextVNode(" \u6DFB\u52A0 ")
436
443
  ])),
437
- _: 1
444
+ _: 1,
445
+ __: [15]
438
446
  }, 8, ["disabled"])
439
447
  ]),
440
448
  _: 1
@@ -287,7 +287,8 @@ const _sfc_main = vue.defineComponent({
287
287
  vue.createVNode(vue.unref(icon.IconRefresh), { class: "reset-icon" }),
288
288
  _cache[7] || (_cache[7] = vue.createTextVNode(" \u91CD\u7F6E "))
289
289
  ]),
290
- _: 1
290
+ _: 1,
291
+ __: [7]
291
292
  }, 512), [
292
293
  [vue.vShow, showReset.value]
293
294
  ])
@@ -84,7 +84,8 @@ const _sfc_main = vue.defineComponent({
84
84
  default: vue.withCtx(() => _cache[1] || (_cache[1] = [
85
85
  vue.createTextVNode("\u6E05\u7A7A")
86
86
  ])),
87
- _: 1
87
+ _: 1,
88
+ __: [1]
88
89
  })
89
90
  ])
90
91
  ]),
@@ -100,7 +101,8 @@ const _sfc_main = vue.defineComponent({
100
101
  default: vue.withCtx(() => _cache[0] || (_cache[0] = [
101
102
  vue.createTextVNode("\u5DF2\u9009\u6570\u636E")
102
103
  ])),
103
- _: 1
104
+ _: 1,
105
+ __: [0]
104
106
  })) : vue.createCommentVNode("v-if", true)
105
107
  ]),
106
108
  _: 1
@@ -134,7 +134,8 @@ const _sfc_main = vue.defineComponent({
134
134
  default: vue.withCtx(() => _cache[1] || (_cache[1] = [
135
135
  vue.createTextVNode("\u539F\u521B")
136
136
  ])),
137
- _: 1
137
+ _: 1,
138
+ __: [1]
138
139
  }, 8, ["class"])
139
140
  ]),
140
141
  _: 1
@@ -152,7 +153,8 @@ const _sfc_main = vue.defineComponent({
152
153
  default: vue.withCtx(() => _cache[2] || (_cache[2] = [
153
154
  vue.createTextVNode("\u63A8\u8350")
154
155
  ])),
155
- _: 1
156
+ _: 1,
157
+ __: [2]
156
158
  }, 8, ["class"])
157
159
  ]),
158
160
  _: 1
@@ -170,7 +172,8 @@ const _sfc_main = vue.defineComponent({
170
172
  default: vue.withCtx(() => _cache[3] || (_cache[3] = [
171
173
  vue.createTextVNode("\u654F\u611F")
172
174
  ])),
173
- _: 1
175
+ _: 1,
176
+ __: [3]
174
177
  }, 8, ["class"])
175
178
  ]),
176
179
  _: 1
@@ -188,7 +191,8 @@ const _sfc_main = vue.defineComponent({
188
191
  default: vue.withCtx(() => _cache[4] || (_cache[4] = [
189
192
  vue.createTextVNode("\u5DF2\u63A8\u9001")
190
193
  ])),
191
- _: 1
194
+ _: 1,
195
+ __: [4]
192
196
  }, 8, ["class"])
193
197
  ]),
194
198
  _: 1
@@ -224,7 +228,8 @@ const _sfc_main = vue.defineComponent({
224
228
  default: vue.withCtx(() => _cache[5] || (_cache[5] = [
225
229
  vue.createTextVNode(" \u77E9\u9635\u5206\u53D1 ")
226
230
  ])),
227
- _: 1
231
+ _: 1,
232
+ __: [5]
228
233
  }, 8, ["class"])
229
234
  ]),
230
235
  _: 1
@@ -14,9 +14,11 @@ const _sfc_main = vue.defineComponent({
14
14
  __name: "component",
15
15
  props: {
16
16
  BASE_API: {},
17
+ wrap: { default: "drawer" },
17
18
  visible: { type: Boolean },
18
19
  docInfo: {},
19
- pub: { type: Boolean }
20
+ pub: { type: Boolean },
21
+ currentIdx: {}
20
22
  },
21
23
  emits: ["update:visible", "select"],
22
24
  setup(__props, { emit: __emit }) {
@@ -28,6 +30,20 @@ const _sfc_main = vue.defineComponent({
28
30
  emits("update:visible", val);
29
31
  }
30
32
  });
33
+ const wrapProps = vue.computed(() => {
34
+ if (props.wrap === "drawer") {
35
+ return {
36
+ class: "doc-history-drawer-wrap",
37
+ title: "\u7248\u672C\u8BB0\u5F55",
38
+ width: 1e3
39
+ };
40
+ }
41
+ return {
42
+ bodyClass: "doc-history-modal-wrap",
43
+ title: "\u7248\u672C\u8BB0\u5F55",
44
+ width: 1e3
45
+ };
46
+ });
31
47
  const BASE_API = props.BASE_API || config.DEFAULT_BASE_API;
32
48
  const {
33
49
  initParams,
@@ -38,6 +54,10 @@ const _sfc_main = vue.defineComponent({
38
54
  list,
39
55
  current
40
56
  } = useDocHistory.useDocHistory(BASE_API);
57
+ const wrapComponent = {
58
+ drawer: webVue.Drawer,
59
+ modal: webVue.Modal
60
+ };
41
61
  function handeRevert() {
42
62
  emits("select", list.value[current.value]);
43
63
  }
@@ -50,20 +70,29 @@ const _sfc_main = vue.defineComponent({
50
70
  },
51
71
  { immediate: true }
52
72
  );
53
- vue.onMounted(() => {
73
+ vue.watch(
74
+ () => props.currentIdx,
75
+ (val) => {
76
+ if (val) {
77
+ handleSelect(val);
78
+ }
79
+ },
80
+ { immediate: true }
81
+ );
82
+ vue.onMounted(async () => {
54
83
  if (!props.docInfo)
55
84
  return;
56
85
  initParams(props.docInfo.id, props.pub);
57
- loadData();
86
+ await loadData();
87
+ if (props.currentIdx) {
88
+ handleSelect(props.currentIdx);
89
+ }
58
90
  });
59
91
  return (_ctx, _cache) => {
60
- return vue.openBlock(), vue.createBlock(vue.unref(webVue.Drawer), {
92
+ return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(wrapComponent[_ctx.wrap]), vue.mergeProps({
61
93
  visible: vis.value,
62
- "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => vis.value = $event),
63
- class: "doc-history-drawer",
64
- title: "\u7248\u672C\u8BB0\u5F55",
65
- width: 1e3
66
- }, {
94
+ "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => vis.value = $event)
95
+ }, wrapProps.value), {
67
96
  footer: vue.withCtx(() => [
68
97
  vue.createVNode(vue.unref(webVue.Button), {
69
98
  type: "primary",
@@ -73,7 +102,8 @@ const _sfc_main = vue.defineComponent({
73
102
  default: vue.withCtx(() => _cache[1] || (_cache[1] = [
74
103
  vue.createTextVNode(" \u8FD8\u539F\u6B64\u7248\u672C ")
75
104
  ])),
76
- _: 1
105
+ _: 1,
106
+ __: [1]
77
107
  }, 8, ["disabled"])
78
108
  ]),
79
109
  default: vue.withCtx(() => [
@@ -124,7 +154,7 @@ const _sfc_main = vue.defineComponent({
124
154
  ])
125
155
  ]),
126
156
  _: 1
127
- }, 8, ["visible"]);
157
+ }, 16, ["visible"]);
128
158
  };
129
159
  }
130
160
  });
@@ -40,15 +40,16 @@ function CompareText(v_LeftList, v_RightList, lftPNode = null) {
40
40
  for (let i = 0; i < rightLen; i++) {
41
41
  if (!rightFather)
42
42
  rightFather = v_RightList[i].parentNode;
43
- const node = v_RightList[i].clone(true);
43
+ const node = v_RightList[i].cloneNode(true);
44
44
  try {
45
45
  rightFather.removeChild(v_RightList[i]);
46
46
  } catch (e) {
47
47
  console.log(e);
48
48
  }
49
- if (lftPNode)
49
+ if (lftPNode && lftPNode.nodeType !== 3) {
50
50
  lftPNode.appendChild(node);
51
- PaintRemove(node);
51
+ PaintRemove(node);
52
+ }
52
53
  }
53
54
  } else if (rightLen === 0) {
54
55
  for (let i = 0; i < leftLen; i++)
@@ -105,3 +105,7 @@
105
105
  .doc-history-drawer .arco-drawer-footer {
106
106
  text-align: left;
107
107
  }
108
+ .doc-history-modal-wrap {
109
+ height: 70vh;
110
+ padding: 0;
111
+ }
@@ -1,32 +1,37 @@
1
- @import './docDiffPanel.less';
2
- @import './docHistoryList.less';
3
-
4
- .doc-history-wrap {
5
- display: flex;
6
- width: 100%;
7
- height: 100%;
8
- overflow: hidden;
9
-
10
- .doc-diff-panel {
11
- flex: 1;
12
- height: 100%;
13
-
14
- .doc-diff-panel-wrap {
15
- padding: 24px;
16
- }
17
- }
18
-
19
- .doc-history-list {
20
- height: 100%;
21
- }
22
- }
23
-
24
- .doc-history-drawer {
25
- .arco-drawer-body {
26
- padding: 0;
27
- }
28
-
29
- .arco-drawer-footer {
30
- text-align: left;
31
- }
32
- }
1
+ @import './docDiffPanel.less';
2
+ @import './docHistoryList.less';
3
+
4
+ .doc-history-wrap {
5
+ display: flex;
6
+ width: 100%;
7
+ height: 100%;
8
+ overflow: hidden;
9
+
10
+ .doc-diff-panel {
11
+ flex: 1;
12
+ height: 100%;
13
+
14
+ .doc-diff-panel-wrap {
15
+ padding: 24px;
16
+ }
17
+ }
18
+
19
+ .doc-history-list {
20
+ height: 100%;
21
+ }
22
+ }
23
+
24
+ .doc-history-drawer {
25
+ .arco-drawer-body {
26
+ padding: 0;
27
+ }
28
+
29
+ .arco-drawer-footer {
30
+ text-align: left;
31
+ }
32
+ }
33
+
34
+ .doc-history-modal-wrap {
35
+ height: 70vh;
36
+ padding: 0;
37
+ }
@@ -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
@@ -112,7 +112,7 @@ function getSysRsPage(BASE_API, params) {
112
112
  }
113
113
  function getDirectory(BASE_API, params) {
114
114
  return request(BASE_API, {
115
- url: "/poplar/v3/directories",
115
+ url: "/poplar/v3/directory/tree",
116
116
  method: "get",
117
117
  params
118
118
  });
@@ -125,14 +125,7 @@ function useDirectory(options) {
125
125
  if (code === 0) {
126
126
  if (!Array.isArray(message.data))
127
127
  return [];
128
- return message.data.map(({ alias, id }) => {
129
- return {
130
- title: alias,
131
- key: id,
132
- isLeaf: false,
133
- children: []
134
- };
135
- });
128
+ return message.data;
136
129
  }
137
130
  return [];
138
131
  }
@@ -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;