@cmstops/pro-compo 3.9.2-alpha.25 → 3.9.2-alpha.27

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 (339) hide show
  1. package/dist/index.css +61 -0
  2. package/dist/index.min.css +1 -1
  3. package/es/appCenter/component.d.ts +0 -0
  4. package/es/appCenter/component.js +0 -1
  5. package/es/appCenter/index.d.ts +2 -0
  6. package/es/appCenter/script/api.d.ts +11 -0
  7. package/es/appCenter/script/apps.d.ts +14 -0
  8. package/es/appCenter/script/permissionMap.d.ts +6 -0
  9. package/es/appCenter/script/routeMap.d.ts +4 -0
  10. package/es/appCenter/style/index.d.ts +1 -0
  11. package/es/baseFilter/component.d.ts +0 -0
  12. package/es/baseFilter/components/FilterGroup.d.ts +0 -0
  13. package/es/baseFilter/components/FilterGroup.js +18 -9
  14. package/es/baseFilter/components/filterItem.d.ts +0 -0
  15. package/es/baseFilter/index.d.ts +2 -0
  16. package/es/baseFilter/style/index.d.ts +1 -0
  17. package/es/baseFilter/useCalcWidth.d.ts +16 -0
  18. package/es/colorPalette/component.d.ts +0 -0
  19. package/es/colorPalette/components/colorPicker.d.ts +0 -0
  20. package/es/colorPalette/index.d.ts +2 -0
  21. package/es/colorPalette/style/index.d.ts +1 -0
  22. package/es/components.d.ts +5 -0
  23. package/es/config.d.ts +4 -0
  24. package/es/config.js +1 -1
  25. package/es/contentDetailList/__demo__/matrix/platform.d.ts +36 -0
  26. package/es/contentDetailList/component.d.ts +0 -0
  27. package/es/contentDetailList/component.js +6 -3
  28. package/es/contentDetailList/components/Content/CompoItem/index.d.ts +0 -0
  29. package/es/contentDetailList/components/Content/ContentListItem/index.d.ts +0 -0
  30. package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.d.ts +0 -0
  31. package/es/contentDetailList/components/Content/DocItem/index.d.ts +0 -0
  32. package/es/contentDetailList/components/Content/DocItem/index.js +46 -24
  33. package/es/contentDetailList/components/Content/DocMpItem/index.d.ts +0 -0
  34. package/es/contentDetailList/components/Content/GroupPieceItem/index.d.ts +0 -0
  35. package/es/contentDetailList/components/Content/KongoNavItem/index.d.ts +0 -0
  36. package/es/contentDetailList/components/Content/LiveItem/index.d.ts +0 -0
  37. package/es/contentDetailList/components/Content/MaccountItem/index.d.ts +0 -0
  38. package/es/contentDetailList/components/Content/courseItem/index.d.ts +0 -0
  39. package/es/contentDetailList/components/Content/funhdItem/index.d.ts +0 -0
  40. package/es/contentDetailList/components/Content/index.d.ts +0 -0
  41. package/es/contentDetailList/components/CustomWrp/CustomItem.d.ts +0 -0
  42. package/es/contentDetailList/components/CustomWrp/index.d.ts +0 -0
  43. package/es/contentDetailList/components/Doc/index.d.ts +0 -0
  44. package/es/contentDetailList/components/Doc/index.js +5 -2
  45. package/es/contentDetailList/components/Records/MatrixItem/index.d.ts +0 -0
  46. package/es/contentDetailList/components/Records/index.d.ts +0 -0
  47. package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.d.ts +0 -0
  48. package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.js +2 -2
  49. package/es/contentDetailList/components/ShowQRCode/index.d.ts +0 -0
  50. package/es/contentDetailList/index.d.ts +2 -0
  51. package/es/contentDetailList/script/api.d.ts +6 -0
  52. package/es/contentDetailList/style/DocItem.less +15 -0
  53. package/es/contentDetailList/style/index.css +13 -0
  54. package/es/contentDetailList/style/index.d.ts +1 -0
  55. package/es/contentModal/component.d.ts +0 -0
  56. package/es/contentModal/component.js +8 -8
  57. package/es/contentModal/components/CompoList/CompoFilter/index.d.ts +0 -0
  58. package/es/contentModal/components/CompoList/index.d.ts +0 -0
  59. package/es/contentModal/components/ContentList/MediaFilter/index.d.ts +0 -0
  60. package/es/contentModal/components/ContentList/index.d.ts +0 -0
  61. package/es/contentModal/components/Dejin/MediaFilter/index.d.ts +0 -0
  62. package/es/contentModal/components/Dejin/index.d.ts +0 -0
  63. package/es/contentModal/components/EqxiuList/MediaFilter/index.d.ts +0 -0
  64. package/es/contentModal/components/EqxiuList/index.d.ts +0 -0
  65. package/es/contentModal/components/LiveList/MediaFilter/index.d.ts +0 -0
  66. package/es/contentModal/components/LiveList/index.d.ts +0 -0
  67. package/es/contentModal/components/MpAccountList/MpAccountFilter/index.d.ts +0 -0
  68. package/es/contentModal/components/MpAccountList/index.d.ts +0 -0
  69. package/es/contentModal/components/MpContentList/MediaFilter/index.d.ts +0 -0
  70. package/es/contentModal/components/MpContentList/index.d.ts +0 -0
  71. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
  72. package/es/contentModal/components/ViewAllColumn/columnTree/index.d.ts +0 -0
  73. package/es/contentModal/components/ViewAllColumn/index.d.ts +0 -0
  74. package/es/contentModal/components/storeBox/index.d.ts +0 -0
  75. package/es/contentModal/components/storeBox/index.js +2 -2
  76. package/es/contentModal/index.d.ts +2 -0
  77. package/es/contentModal/script/api.d.ts +18 -0
  78. package/es/contentModal/style/index.d.ts +1 -0
  79. package/es/dataTags/component.d.ts +0 -0
  80. package/es/dataTags/component.js +5 -5
  81. package/es/dataTags/index.d.ts +2 -0
  82. package/es/dataTags/style/index.d.ts +1 -0
  83. package/es/docHistory/component.d.ts +0 -0
  84. package/es/docHistory/component.js +1 -1
  85. package/es/docHistory/components/DocDiffPanel/index.d.ts +0 -0
  86. package/es/docHistory/components/DocHistoryList/index.d.ts +0 -0
  87. package/es/docHistory/index.d.ts +2 -0
  88. package/es/docHistory/scripts/diff.d.ts +1 -0
  89. package/es/docHistory/scripts/useDocHistory.d.ts +10 -0
  90. package/es/docHistory/style/index.d.ts +1 -0
  91. package/es/docPreview/component.d.ts +0 -0
  92. package/es/docPreview/component.js +234 -60
  93. package/es/docPreview/components/PreviewIframe.d.ts +0 -0
  94. package/es/docPreview/components/PreviewIframe.js +35 -4
  95. package/es/docPreview/images/pc.js +2 -0
  96. package/es/docPreview/index.d.ts +2 -0
  97. package/es/docPreview/scripts/api.d.ts +2 -0
  98. package/es/docPreview/scripts/hook.d.ts +43 -0
  99. package/es/docPreview/scripts/hook.js +115 -4
  100. package/es/docPreview/style/index.css +48 -0
  101. package/es/docPreview/style/index.d.ts +1 -0
  102. package/es/docPreview/style/index.less +23 -0
  103. package/es/docPreview/style/previewIframe.less +31 -0
  104. package/es/editMetaInfo/component.d.ts +0 -0
  105. package/es/editMetaInfo/components/metaInfoForm.d.ts +0 -0
  106. package/es/editMetaInfo/components/metaInfoForm.js +2 -2
  107. package/es/editMetaInfo/index.d.ts +2 -0
  108. package/es/editMetaInfo/script/api.d.ts +6 -0
  109. package/es/editMetaInfo/script/restaurants.d.ts +4 -0
  110. package/es/editMetaInfo/style/index.d.ts +1 -0
  111. package/es/emptyData/component.d.ts +0 -0
  112. package/es/emptyData/index.d.ts +2 -0
  113. package/es/emptyData/style/index.d.ts +1 -0
  114. package/es/emptyData/svg/add.d.ts +0 -0
  115. package/es/hooks/assets.d.ts +1 -0
  116. package/es/hooks/batch.d.ts +8 -0
  117. package/es/hooks/dialogVisible.d.ts +8 -0
  118. package/es/hooks/source.d.ts +9 -0
  119. package/es/hooks/toggle.d.ts +6 -0
  120. package/es/hooks/useAttachement.d.ts +53 -0
  121. package/es/hooks/useLocalStorage.d.ts +10 -0
  122. package/es/hooks/useMediaContext.d.ts +12 -0
  123. package/es/hooks/usePopper.d.ts +8 -0
  124. package/es/hooks/useSelection.d.ts +30 -0
  125. package/es/hooks/useUpload.d.ts +78 -0
  126. package/es/hooks/user.d.ts +9 -0
  127. package/es/imageCrop/component.d.ts +0 -0
  128. package/es/imageCrop/component.js +2 -2
  129. package/es/imageCrop/index.d.ts +2 -0
  130. package/es/imageCrop/script/api.d.ts +1 -0
  131. package/es/imageCrop/style/index.d.ts +1 -0
  132. package/es/importData/component.d.ts +0 -0
  133. package/es/importData/component.js +4 -4
  134. package/es/importData/index.d.ts +2 -0
  135. package/es/importData/style/index.d.ts +1 -0
  136. package/es/index.css +61 -0
  137. package/es/index.d.ts +31 -0
  138. package/es/mediaFilter/component.d.ts +0 -0
  139. package/es/mediaFilter/components/DocFilter.d.ts +0 -0
  140. package/es/mediaFilter/components/DocFilter.js +1 -1
  141. package/es/mediaFilter/components/FilterGroup.d.ts +0 -0
  142. package/es/mediaFilter/components/FilterGroup.js +1 -1
  143. package/es/mediaFilter/components/FilterItem.d.ts +0 -0
  144. package/es/mediaFilter/components/MpAccountFilter.d.ts +0 -0
  145. package/es/mediaFilter/components/MpContentFilter.d.ts +0 -0
  146. package/es/mediaFilter/index.d.ts +3 -0
  147. package/es/mediaFilter/script/optionsGetter.d.ts +26 -0
  148. package/es/mediaFilter/script/types.d.ts +16 -0
  149. package/es/mediaFilter/style/index.d.ts +1 -0
  150. package/es/mediaView/component.d.ts +0 -0
  151. package/es/mediaView/index.d.ts +2 -0
  152. package/es/mediaView/style/index.d.ts +1 -0
  153. package/es/messageBox/component.d.ts +0 -0
  154. package/es/messageBox/component.js +1 -1
  155. package/es/messageBox/index.d.ts +2 -0
  156. package/es/messageBox/list.d.ts +0 -0
  157. package/es/messageBox/script/api.d.ts +6 -0
  158. package/es/messageBox/style/index.d.ts +1 -0
  159. package/es/previousVersion/component.d.ts +0 -0
  160. package/es/previousVersion/index.d.ts +2 -0
  161. package/es/previousVersion/script/api.d.ts +15 -0
  162. package/es/previousVersion/script/tool.d.ts +6 -0
  163. package/es/previousVersion/style/index.d.ts +1 -0
  164. package/es/resourceGridList/component.d.ts +0 -0
  165. package/es/resourceGridList/component.js +1 -1
  166. package/es/resourceGridList/components/FileTypeThumb/index.d.ts +0 -0
  167. package/es/resourceGridList/index.d.ts +2 -0
  168. package/es/resourceGridList/style/index.d.ts +1 -0
  169. package/es/resourceModal/component.d.ts +0 -0
  170. package/es/resourceModal/component.js +1 -1
  171. package/es/resourceModal/components/MediaPreviewer/index.d.ts +0 -0
  172. package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.d.ts +0 -0
  173. package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.d.ts +0 -0
  174. package/es/resourceModal/components/MediaSelection/MainContent/index.d.ts +0 -0
  175. package/es/resourceModal/components/MediaSelection/MainContent/index.js +1 -1
  176. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.d.ts +0 -0
  177. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +1 -1
  178. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.d.ts +0 -0
  179. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +1 -1
  180. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.d.ts +0 -0
  181. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.d.ts +0 -0
  182. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +1 -1
  183. package/es/resourceModal/components/MediaSelection/index.d.ts +0 -0
  184. package/es/resourceModal/index.d.ts +2 -0
  185. package/es/resourceModal/script/api.d.ts +25 -0
  186. package/es/resourceModal/script/mediaSelection.d.ts +14 -0
  187. package/es/resourceModal/style/index.d.ts +1 -0
  188. package/es/selectAddTo/component.d.ts +0 -0
  189. package/es/selectAddTo/components/SelectAddToView.d.ts +0 -0
  190. package/es/selectAddTo/components/SelectAddToView.js +2 -2
  191. package/es/selectAddTo/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
  192. package/es/selectAddTo/components/ViewAllColumn/index.d.ts +0 -0
  193. package/es/selectAddTo/components/ViewAllColumn/script/useTableColumns.d.ts +6 -0
  194. package/es/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.d.ts +144 -0
  195. package/es/selectAddTo/components/ViewAllColumn/types/index.d.ts +55 -0
  196. package/es/selectAddTo/index.d.ts +2 -0
  197. package/es/selectAddTo/script/api.d.ts +18 -0
  198. package/es/selectAddTo/script/index.d.ts +2 -0
  199. package/es/selectAddTo/script/useSelectAddToState.d.ts +13 -0
  200. package/es/selectAddTo/style/index.d.ts +1 -0
  201. package/es/selectAddTo/types/index.d.ts +37 -0
  202. package/es/selectAvatarList/component.d.ts +0 -0
  203. package/es/selectAvatarList/index.d.ts +2 -0
  204. package/es/selectAvatarList/style/index.d.ts +1 -0
  205. package/es/selectGategory/component.d.ts +0 -0
  206. package/es/selectGategory/component.js +1 -1
  207. package/es/selectGategory/components/ColumnSelection/index.d.ts +0 -0
  208. package/es/selectGategory/index.d.ts +2 -0
  209. package/es/selectGategory/script/api.d.ts +6 -0
  210. package/es/selectGategory/style/index.d.ts +1 -0
  211. package/es/selectResourceModal/__demo__/module/DivWrapper.d.ts +261 -0
  212. package/es/selectResourceModal/__demo__/module/basic.d.ts +292 -0
  213. package/es/selectResourceModal/component.d.ts +0 -0
  214. package/es/selectResourceModal/component.js +7 -15
  215. package/es/selectResourceModal/components/List/ListAi/index.d.ts +0 -0
  216. package/es/selectResourceModal/components/List/ListCardWrapper.d.ts +0 -0
  217. package/es/selectResourceModal/components/List/ListLocal/Upload.d.ts +0 -0
  218. package/es/selectResourceModal/components/List/ListLocal/Upload.js +1 -1
  219. package/es/selectResourceModal/components/List/ListLocal/index.d.ts +0 -0
  220. package/es/selectResourceModal/components/List/ListNormal/Filter.d.ts +0 -0
  221. package/es/selectResourceModal/components/List/ListNormal/Filter.js +5 -5
  222. package/es/selectResourceModal/components/List/ListNormal/index.d.ts +0 -0
  223. package/es/selectResourceModal/components/List/ListSystem/Filter.d.ts +0 -0
  224. package/es/selectResourceModal/components/List/ListSystem/Filter.js +1 -1
  225. package/es/selectResourceModal/components/List/ListSystem/SubList.d.ts +0 -0
  226. package/es/selectResourceModal/components/List/ListSystem/SubList.js +1 -1
  227. package/es/selectResourceModal/components/List/ListSystem/index.d.ts +0 -0
  228. package/es/selectResourceModal/components/List/ListVideo/index.d.ts +0 -0
  229. package/es/selectResourceModal/components/List/ListWraper.d.ts +0 -0
  230. package/es/selectResourceModal/components/ListSelected/index.d.ts +0 -0
  231. package/es/selectResourceModal/components/ListTabs/index.d.ts +0 -0
  232. package/es/selectResourceModal/hooks/useResponsiveFilter.d.ts +21 -0
  233. package/es/selectResourceModal/index.d.ts +2 -0
  234. package/es/selectResourceModal/scripts/selectionApis.d.ts +2 -0
  235. package/es/selectResourceModal/scripts/useCompoLf.d.ts +27 -0
  236. package/es/selectResourceModal/scripts/useResourceSelect.d.ts +7 -0
  237. package/es/selectResourceModal/scripts/useTabFilter.d.ts +22 -0
  238. package/es/selectResourceModal/scripts/useTabFilter.js +1 -11
  239. package/es/selectResourceModal/style/index.d.ts +1 -0
  240. package/es/selectThumb/component.d.ts +0 -0
  241. package/es/selectThumb/components/card.d.ts +0 -0
  242. package/es/selectThumb/components/colorPalette.d.ts +0 -0
  243. package/es/selectThumb/components/colorPicker.d.ts +0 -0
  244. package/es/selectThumb/index.d.ts +2 -0
  245. package/es/selectThumb/style/index.d.ts +1 -0
  246. package/es/thumbCard/component.d.ts +0 -0
  247. package/es/thumbCard/components/ThumbUploading/index.d.ts +0 -0
  248. package/es/thumbCard/index.d.ts +2 -0
  249. package/es/thumbCard/style/index.d.ts +1 -0
  250. package/es/typeIcons/component.d.ts +0 -0
  251. package/es/typeIcons/index.d.ts +2 -0
  252. package/es/typeIcons/style/index.d.ts +1 -0
  253. package/es/uploadBefore/component.d.ts +0 -0
  254. package/es/uploadBefore/components/UploadBefore.d.ts +0 -0
  255. package/es/uploadBefore/components/UploadBefore.js +1 -1
  256. package/es/uploadBefore/components/UploadForClick.d.ts +0 -0
  257. package/es/uploadBefore/index.d.ts +2 -0
  258. package/es/uploadBefore/script/api.d.ts +16 -0
  259. package/es/uploadBefore/script/fileTypeAdapter.d.ts +39 -0
  260. package/es/uploadBefore/script/fileUpload.d.ts +7 -0
  261. package/es/uploadBefore/script/uploadHooks.d.ts +96 -0
  262. package/es/uploadBefore/style/index.d.ts +1 -0
  263. package/es/uploadBefore/utils/dragUploadEvent.d.ts +0 -0
  264. package/es/uploadStep/component.d.ts +0 -0
  265. package/es/uploadStep/index.d.ts +2 -0
  266. package/es/uploadStep/script/fileTypeAdapter.d.ts +20 -0
  267. package/es/uploadStep/style/index.d.ts +1 -0
  268. package/es/userAvater/component.d.ts +0 -0
  269. package/es/userAvater/component.js +1 -1
  270. package/es/userAvater/index.d.ts +2 -0
  271. package/es/userAvater/script/api.d.ts +8 -0
  272. package/es/userAvater/style/index.d.ts +1 -0
  273. package/es/userDirector/component.d.ts +0 -0
  274. package/es/userDirector/component.js +1 -1
  275. package/es/userDirector/components/userTree.d.ts +0 -0
  276. package/es/userDirector/index.d.ts +2 -0
  277. package/es/userDirector/script/api.d.ts +10 -0
  278. package/es/userDirector/style/index.d.ts +1 -0
  279. package/es/utils/auth.d.ts +5 -0
  280. package/es/utils/date.d.ts +3 -0
  281. package/es/utils/doc.d.ts +76 -0
  282. package/es/utils/filter.d.ts +21 -0
  283. package/es/utils/index.d.ts +17 -0
  284. package/es/utils/request.d.ts +9 -0
  285. package/es/utils/resource.d.ts +4 -0
  286. package/es/utils/transcodeMedia.d.ts +13 -0
  287. package/es/utils/tusUpload.d.ts +16 -0
  288. package/es/utils/typeMap.d.ts +185 -0
  289. package/es/utils/uploadCatalog.d.ts +1 -0
  290. package/es/videoThumb/component.d.ts +0 -0
  291. package/es/videoThumb/index.d.ts +2 -0
  292. package/es/videoThumb/scripts/api.d.ts +9 -0
  293. package/es/videoThumb/scripts/useVideoThumbs.d.ts +12 -0
  294. package/es/videoThumb/style/index.d.ts +1 -0
  295. package/lib/appCenter/component.js +0 -1
  296. package/lib/baseFilter/components/FilterGroup.js +17 -8
  297. package/lib/config.js +1 -1
  298. package/lib/contentDetailList/component.js +6 -3
  299. package/lib/contentDetailList/components/Content/DocItem/index.js +46 -24
  300. package/lib/contentDetailList/components/Doc/index.js +5 -2
  301. package/lib/contentDetailList/components/ShowQRCode/QrcodeView/index.js +2 -2
  302. package/lib/contentDetailList/style/DocItem.less +15 -0
  303. package/lib/contentDetailList/style/index.css +13 -0
  304. package/lib/contentModal/component.js +8 -8
  305. package/lib/contentModal/components/storeBox/index.js +2 -2
  306. package/lib/dataTags/component.js +5 -5
  307. package/lib/docHistory/component.js +1 -1
  308. package/lib/docPreview/component.js +233 -59
  309. package/lib/docPreview/components/PreviewIframe.js +35 -4
  310. package/lib/docPreview/images/pc.js +3 -0
  311. package/lib/docPreview/scripts/hook.js +115 -3
  312. package/lib/docPreview/style/index.css +48 -0
  313. package/lib/docPreview/style/index.less +23 -0
  314. package/lib/docPreview/style/previewIframe.less +31 -0
  315. package/lib/editMetaInfo/components/metaInfoForm.js +2 -2
  316. package/lib/imageCrop/component.js +2 -2
  317. package/lib/importData/component.js +4 -4
  318. package/lib/index.css +61 -0
  319. package/lib/mediaFilter/components/DocFilter.js +1 -1
  320. package/lib/mediaFilter/components/FilterGroup.js +1 -1
  321. package/lib/messageBox/component.js +1 -1
  322. package/lib/resourceGridList/component.js +1 -1
  323. package/lib/resourceModal/component.js +1 -1
  324. package/lib/resourceModal/components/MediaSelection/MainContent/index.js +1 -1
  325. package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +1 -1
  326. package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +1 -1
  327. package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +1 -1
  328. package/lib/selectAddTo/components/SelectAddToView.js +2 -2
  329. package/lib/selectGategory/component.js +1 -1
  330. package/lib/selectResourceModal/component.js +6 -14
  331. package/lib/selectResourceModal/components/List/ListLocal/Upload.js +1 -1
  332. package/lib/selectResourceModal/components/List/ListNormal/Filter.js +5 -5
  333. package/lib/selectResourceModal/components/List/ListSystem/Filter.js +1 -1
  334. package/lib/selectResourceModal/components/List/ListSystem/SubList.js +1 -1
  335. package/lib/selectResourceModal/scripts/useTabFilter.js +1 -13
  336. package/lib/uploadBefore/components/UploadBefore.js +1 -1
  337. package/lib/userAvater/component.js +1 -1
  338. package/lib/userDirector/component.js +1 -1
  339. package/package.json +1 -1
@@ -0,0 +1,17 @@
1
+ export declare const dateYYYYDDMMHHmm: (date: any) => string;
2
+ export declare const generateUUID: () => string;
3
+ /**
4
+ * @description await 回调处理
5
+ * @param { Promise } promise
6
+ * @param { Object= } errorExt - Additional Information you can pass to the err object
7
+ * @return { Promise }
8
+ */
9
+ export declare const to: <T, U = Error>(promise: Promise<T>, errorExt?: any) => Promise<[U, undefined] | [null, T]>;
10
+ export declare function replaceSuffix(str: string, insert: string): string;
11
+ export declare const noCoverText: (item: any) => any;
12
+ export declare const timeFormat: (value: any) => string;
13
+ export declare const validateForm: (formRef: any) => Promise<unknown>;
14
+ export declare function getRealUrl(BASE_API: string, url: string): Promise<unknown>;
15
+ export declare function getThemeColor(BASE_API: string, src: string): Promise<unknown>;
16
+ export declare function copyContent(content: string | Blob): Promise<boolean>;
17
+ export declare function mediaTime(v: number): string;
@@ -0,0 +1,9 @@
1
+ declare module 'axios' {
2
+ interface AxiosResponse<T = any> {
3
+ code: number;
4
+ data: T;
5
+ message: T;
6
+ }
7
+ function create(config?: AxiosRequestConfig): AxiosInstance;
8
+ }
9
+ export default function (BASE_API: string, options: any): Promise<import("axios").AxiosResponse<any, any>>;
@@ -0,0 +1,4 @@
1
+ export declare const keywordsSelection: {
2
+ name: string;
3
+ value: string;
4
+ }[];
@@ -0,0 +1,13 @@
1
+ export declare function getTranscodingProgress(BASE_API: string, id: number): Promise<import("axios").AxiosResponse<any, any>>;
2
+ /**
3
+ * 转码逻辑
4
+ * @description 转码逻辑抽离,后期所有涉及到转码的地方都可用该方法
5
+ */
6
+ export declare class TranscodingTask {
7
+ file: any;
8
+ pollCount: number;
9
+ taskInterval: any;
10
+ constructor(file: any);
11
+ start(BASE_API: string, callback: (progress: number) => any): Promise<unknown>;
12
+ abort(): void;
13
+ }
@@ -0,0 +1,16 @@
1
+ import * as TUS from 'tus-js-client';
2
+ /**
3
+ * @description 通过 TUS 实现大文件分片上传
4
+ * @param file 要上传的文件
5
+ * @param progressCallback 上传进度回调函数
6
+ * @returns
7
+ */
8
+ export declare function uploadByTUS(file: File, progressCallback?: (b: number, t: number) => void): Promise<TUS.Upload>;
9
+ export declare class TusUploadTask {
10
+ file: any;
11
+ upload: any;
12
+ platformKey?: string;
13
+ constructor(file: any, platformKey?: string);
14
+ start(callback: (bytesUploaded: any, bytesTotal: any) => any): Promise<unknown>;
15
+ abort(): any;
16
+ }
@@ -0,0 +1,185 @@
1
+ export declare const docType: {
2
+ blank: string;
3
+ atlas: string;
4
+ video: string;
5
+ video_album: string;
6
+ imagetext: string;
7
+ link: string;
8
+ wechat: string;
9
+ live: string;
10
+ ad: string;
11
+ h5: string;
12
+ special_v3: string;
13
+ activity: string;
14
+ booklink: string;
15
+ svideo: string;
16
+ audio: string;
17
+ audio_album: string;
18
+ vote_activity: string;
19
+ vote: string;
20
+ cloud_form: string;
21
+ };
22
+ export declare const catalogMap: {
23
+ doc: string;
24
+ video: string;
25
+ project: string;
26
+ audio: string;
27
+ image: string;
28
+ pdf: string;
29
+ officeexcel: string;
30
+ officeppt: string;
31
+ officedoc: string;
32
+ rar: string;
33
+ zip: string;
34
+ txt: string;
35
+ html: string;
36
+ exe: string;
37
+ other: string;
38
+ contentList: string;
39
+ column: string;
40
+ link: string;
41
+ banners: string;
42
+ group: string;
43
+ mpGroup: string;
44
+ mpList: string;
45
+ mpAccount: string;
46
+ mpTopic: string;
47
+ mpContent: string;
48
+ };
49
+ export declare const target_type_map: {
50
+ 3: string;
51
+ 4: string;
52
+ 5: string;
53
+ 6: string;
54
+ 7: string;
55
+ 8: string;
56
+ 9: string;
57
+ 10: string;
58
+ 13: string;
59
+ 14: any;
60
+ 15: string;
61
+ 16: string;
62
+ 17: string;
63
+ 18: string;
64
+ };
65
+ export declare const key_target_type_map: any;
66
+ export declare const approveFlowStatusMap: {
67
+ 1: string;
68
+ 2: string;
69
+ 3: string;
70
+ 4: string;
71
+ 5: string;
72
+ 6: string;
73
+ 7: string;
74
+ 8: string;
75
+ };
76
+ export declare const groupPieceType: any;
77
+ export declare const componentsColumns: any;
78
+ export declare const compoColumnsWithKeyMap: {
79
+ top: string;
80
+ banner: string;
81
+ newsletters: string;
82
+ svideo: string;
83
+ function: string;
84
+ special: string;
85
+ news_letter: string;
86
+ focus: string;
87
+ horizon_slide: string;
88
+ radio: string;
89
+ tv: string;
90
+ mp_account: string;
91
+ column: string;
92
+ image: string;
93
+ timeline: string;
94
+ rank: string;
95
+ group_list: string;
96
+ };
97
+ export declare const compoColumnsMap: () => any;
98
+ export declare const contentList_list_type_map: {
99
+ 1: string;
100
+ 2: string;
101
+ 3: string;
102
+ 4: string;
103
+ 5: string;
104
+ 6: string;
105
+ 7: string;
106
+ };
107
+ export declare const contentList_relation_type_map: {
108
+ 0: string;
109
+ 1: string;
110
+ 2: string;
111
+ 3: string;
112
+ 4: string;
113
+ 10: string;
114
+ };
115
+ export declare const contentList_layout_map: any;
116
+ export declare const mp_type_map: any;
117
+ export declare const mpTypeOptions: () => {
118
+ value: string;
119
+ label: any;
120
+ }[];
121
+ export declare const kongo_source_map: {
122
+ app: string;
123
+ url: string;
124
+ document: string;
125
+ category_list: string;
126
+ service: string;
127
+ political: string;
128
+ applet: string;
129
+ };
130
+ export declare const calcApprovingUser: (data: any) => any;
131
+ export declare const calcApprovingDependent: (data: any) => string;
132
+ export declare const ilive_type_map: {
133
+ 1: string;
134
+ 2: string;
135
+ 3: string;
136
+ };
137
+ export declare const local_live_doc_type: any;
138
+ export declare const local_live_doc_status: {
139
+ value: number;
140
+ label: string;
141
+ bgColor: string;
142
+ }[];
143
+ export declare const matrixPublishStateMap: {
144
+ '-1': string;
145
+ 0: string;
146
+ 1: string;
147
+ 2: string;
148
+ 3: string;
149
+ 4: string;
150
+ };
151
+ export declare const matrixPublishFormalStateMap: {
152
+ '-1': string;
153
+ 0: string;
154
+ 1: string;
155
+ 2: string;
156
+ 3: string;
157
+ 4: string;
158
+ 5: string;
159
+ 6: string;
160
+ 7: string;
161
+ 8: string;
162
+ 9: string;
163
+ 10: string;
164
+ 11: string;
165
+ 12: string;
166
+ 13: string;
167
+ };
168
+ export declare const RESOURCE_SOURCE_DICT: {
169
+ ai: string;
170
+ live_rec: string;
171
+ backend: string;
172
+ };
173
+ export declare const RESOURCE_CATALOG_DICT: {
174
+ image: string;
175
+ video: string;
176
+ audio: string;
177
+ };
178
+ export declare const RESOURCE_SOURCE_OPTIONS: {
179
+ value: string;
180
+ label: string;
181
+ }[];
182
+ export declare const RESOURCE_CATALOG_OPTIONS: {
183
+ value: string;
184
+ label: string;
185
+ }[];
@@ -0,0 +1 @@
1
+ export declare function checkType(file: any, param: any): any;
File without changes
@@ -0,0 +1,2 @@
1
+ declare const videoThumb: any;
2
+ export default videoThumb;
@@ -0,0 +1,9 @@
1
+ declare type EditThumbParams = {
2
+ url: string;
3
+ count: number;
4
+ start: number;
5
+ end: number;
6
+ search: string;
7
+ };
8
+ export declare function editthumb(BASE_URL: string, params: EditThumbParams): Promise<import("axios").AxiosResponse<any, any>>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ export declare function getHMSF(time: string): string;
2
+ export declare function useVideoThumbs(): {
3
+ loading: import("vue").Ref<boolean, boolean>;
4
+ thumbs: import("vue").Ref<any[], any[]>;
5
+ curThumb: import("vue").Ref<string | undefined, string | undefined>;
6
+ getVideoThumbs: (BASE_API: string, url: string, duration: number) => Promise<void>;
7
+ handleSelectThumb: (idx: number) => void;
8
+ };
9
+ export declare function useDragger(moveCallback: any, upCallback: any, downCallback: any): {
10
+ isDrag: import("vue").Ref<boolean, boolean>;
11
+ handleMousedown: (e: MouseEvent) => void;
12
+ };
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -112,7 +112,6 @@ const _sfc_main = vue.defineComponent({
112
112
  }
113
113
  };
114
114
  const getAppBtnSlot = async () => {
115
- await api.getPubApps(BASE_API, { rid, type: "2,3" });
116
115
  const params = {
117
116
  slot_key: "head-applist-panel"
118
117
  };
@@ -16,13 +16,12 @@ const _sfc_main = vue.defineComponent({
16
16
  __name: "FilterGroup",
17
17
  setup(__props, { expose: __expose }) {
18
18
  const getRect = (el) => {
19
- if (!el || !el.getClientRects())
19
+ var _a;
20
+ const rects = (_a = el == null ? void 0 : el.getClientRects) == null ? void 0 : _a.call(el);
21
+ if (!rects || rects.length === 0)
20
22
  return { right: 0, width: 0 };
21
- const [{ right, width }] = el.getClientRects();
22
- return {
23
- right,
24
- width
25
- };
23
+ const { right, width } = rects[0];
24
+ return { right, width };
26
25
  };
27
26
  const moreBtnRef = vue.ref();
28
27
  const dpPannelRef = vue.ref();
@@ -39,7 +38,11 @@ const _sfc_main = vue.defineComponent({
39
38
  filterBorder.value = (_b = getRect(filterItemsRef.value)) == null ? void 0 : _b.right;
40
39
  }
41
40
  };
42
- const initDocWidthListener = () => window.onresize = () => initWidth();
41
+ let __onResize__ = null;
42
+ const initDocWidthListener = () => {
43
+ __onResize__ = () => initWidth();
44
+ window.addEventListener("resize", __onResize__);
45
+ };
43
46
  const hideElementList = vue.ref([]);
44
47
  const inNode = (el) => {
45
48
  var _a, _b;
@@ -100,6 +103,12 @@ const _sfc_main = vue.defineComponent({
100
103
  refreshPanel();
101
104
  });
102
105
  });
106
+ vue.onUnmounted(() => {
107
+ if (__onResize__) {
108
+ window.removeEventListener("resize", __onResize__);
109
+ __onResize__ = null;
110
+ }
111
+ });
103
112
  __expose({
104
113
  refreshPanel
105
114
  });
@@ -116,7 +125,7 @@ const _sfc_main = vue.defineComponent({
116
125
  }, {
117
126
  default: vue.withCtx(() => [
118
127
  vue.createElementVNode("span", _hoisted_3, [
119
- _cache[1] || (_cache[1] = vue.createTextVNode(" \u66F4\u591A\u7B5B\u9009 ")),
128
+ _cache[1] || (_cache[1] = vue.createTextVNode(" \u66F4\u591A\u7B5B\u9009 ", -1)),
120
129
  vue.createVNode(vue.unref(icon.IconCaretDown))
121
130
  ])
122
131
  ]),
package/lib/config.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  var _a, _b, _c, _d, _e, _f, _g, _h;
3
3
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
4
- const DEFAULT_BASE_API = ((_b = (_a = window.situoyun) == null ? void 0 : _a.env) == null ? void 0 : _b.BASE_HOST) || "https://site.r.cmstop.xyz";
4
+ const DEFAULT_BASE_API = ((_b = (_a = window.situoyun) == null ? void 0 : _a.env) == null ? void 0 : _b.BASE_HOST) || "https://site.cmstop.xyz";
5
5
  const DEFAULT_BASE_ACCOUNT_HOST = ((_d = (_c = window.situoyun) == null ? void 0 : _c.env) == null ? void 0 : _d.BASE_ACCOUNT_HOST) || "https://account.cmstop.xyz";
6
6
  const DEFAULT_UPLOAD_CHUNK_SIZE = ((_f = (_e = window.situoyun) == null ? void 0 : _e.env) == null ? void 0 : _f.UPLOAD_CHUNK_SIZE) || 5242880;
7
7
  const DEFAULT_UPLOAD_URL = ((_h = (_g = window.situoyun) == null ? void 0 : _g.env) == null ? void 0 : _h.BASE_STATIC_FILE_API) || "https://oss.cmstop.xyz/maple/v1";
@@ -24,7 +24,8 @@ const _sfc_main = vue.defineComponent({
24
24
  dragalbe: { type: Boolean },
25
25
  abttrites: {},
26
26
  extraAttrs: {},
27
- BASE_API: {}
27
+ BASE_API: {},
28
+ showDuration: { type: Boolean }
28
29
  },
29
30
  emits: [
30
31
  "sortChange",
@@ -135,6 +136,7 @@ const _sfc_main = vue.defineComponent({
135
136
  abttrites: vue.unref(abttritesProps),
136
137
  extraAttrs: _ctx.extraAttrs,
137
138
  BASE_API: vue.unref(BASE_API_R),
139
+ showDuration: props.showDuration,
138
140
  onClickTitle: clickTitle,
139
141
  onCellMouseEnter: tableCellMouseEnter,
140
142
  onCellMouseLeave: tableCellMouseLeave
@@ -164,7 +166,7 @@ const _sfc_main = vue.defineComponent({
164
166
  })
165
167
  ]),
166
168
  _: 2
167
- }, 1032, ["item", "index", "abttrites", "extraAttrs", "BASE_API"])) : props.type === "record" ? (vue.openBlock(), vue.createBlock(index$2, {
169
+ }, 1032, ["item", "index", "abttrites", "extraAttrs", "BASE_API", "showDuration"])) : props.type === "record" ? (vue.openBlock(), vue.createBlock(index$2, {
168
170
  key: index$4,
169
171
  item: element,
170
172
  index: index$4,
@@ -267,6 +269,7 @@ const _sfc_main = vue.defineComponent({
267
269
  abttrites: vue.unref(abttritesProps),
268
270
  extraAttrs: _ctx.extraAttrs,
269
271
  BASE_API: vue.unref(BASE_API_R),
272
+ showDuration: props.showDuration,
270
273
  onClickTitle: clickTitle,
271
274
  onCellMouseEnter: tableCellMouseEnter,
272
275
  onCellMouseLeave: tableCellMouseLeave
@@ -296,7 +299,7 @@ const _sfc_main = vue.defineComponent({
296
299
  })
297
300
  ]),
298
301
  _: 2
299
- }, 1032, ["item", "index", "abttrites", "extraAttrs", "BASE_API"])) : props.type === "record" ? (vue.openBlock(), vue.createBlock(index$2, {
302
+ }, 1032, ["item", "index", "abttrites", "extraAttrs", "BASE_API", "showDuration"])) : props.type === "record" ? (vue.openBlock(), vue.createBlock(index$2, {
300
303
  key: index$4,
301
304
  item,
302
305
  index: index$4,
@@ -14,27 +14,32 @@ const _hoisted_2 = {
14
14
  class: "no-img"
15
15
  };
16
16
  const _hoisted_3 = { class: "batch-select" };
17
- const _hoisted_4 = { class: "info-view" };
18
- const _hoisted_5 = { class: "title" };
19
- const _hoisted_6 = { class: "abttrite-v" };
20
- const _hoisted_7 = { class: "left" };
21
- const _hoisted_8 = { class: "tags" };
22
- const _hoisted_9 = { key: 0 };
23
- const _hoisted_10 = { key: 1 };
24
- const _hoisted_11 = { class: "abttr" };
25
- const _hoisted_12 = { style: { "font-size": "14px", "margin-bottom": "5px", "font-weight": "bold" } };
26
- const _hoisted_13 = {
17
+ const _hoisted_4 = {
18
+ key: 3,
19
+ class: "duration-overlay"
20
+ };
21
+ const _hoisted_5 = { class: "info-view" };
22
+ const _hoisted_6 = { class: "title" };
23
+ const _hoisted_7 = { class: "abttrite-v" };
24
+ const _hoisted_8 = { class: "left" };
25
+ const _hoisted_9 = { class: "tags" };
26
+ const _hoisted_10 = { key: 0 };
27
+ const _hoisted_11 = { key: 1 };
28
+ const _hoisted_12 = { class: "abttr" };
29
+ const _hoisted_13 = { style: { "font-size": "14px", "margin-bottom": "5px", "font-weight": "bold" } };
30
+ const _hoisted_14 = {
27
31
  key: 1,
28
32
  style: { "font-size": "10px" }
29
33
  };
30
- const _hoisted_14 = { class: "right" };
34
+ const _hoisted_15 = { class: "right" };
31
35
  const _sfc_main = vue.defineComponent({
32
36
  __name: "index",
33
37
  props: {
34
38
  item: {},
35
39
  abttrites: {},
36
40
  BASE_API: {},
37
- extraAttrs: {}
41
+ extraAttrs: {},
42
+ showDuration: { type: Boolean }
38
43
  },
39
44
  emits: ["clickTitle", "cellMouseEnter", "cellMouseLeave"],
40
45
  setup(__props, { emit: __emit }) {
@@ -83,6 +88,21 @@ const _sfc_main = vue.defineComponent({
83
88
  return true;
84
89
  return showDataTags2;
85
90
  });
91
+ const durationText = vue.computed(() => {
92
+ const duration = props.item.video_len || props.item.duration;
93
+ if (!duration || duration <= 0)
94
+ return "";
95
+ const totalSeconds = Number(duration);
96
+ if (Number.isNaN(totalSeconds))
97
+ return "";
98
+ const hours = Math.floor(totalSeconds / 3600);
99
+ const minutes = Math.floor(totalSeconds % 3600 / 60);
100
+ const remainingSeconds = totalSeconds % 60;
101
+ if (hours > 0) {
102
+ return `${hours}:${minutes.toString().padStart(2, "0")}:${remainingSeconds.toString().padStart(2, "0")}`;
103
+ }
104
+ return `${minutes}:${remainingSeconds.toString().padStart(2, "0")}`;
105
+ });
86
106
  const mouseEnterFun = (event, row) => {
87
107
  emit("cellMouseEnter", { row, event });
88
108
  };
@@ -113,10 +133,12 @@ const _sfc_main = vue.defineComponent({
113
133
  key: 2,
114
134
  style: vue.normalizeStyle({ background: localLiveStatus.value.bgColor }),
115
135
  class: "local_live_state"
116
- }, vue.toDisplayString(localLiveStatus.value.label), 5)) : vue.createCommentVNode("v-if", true)
136
+ }, vue.toDisplayString(localLiveStatus.value.label), 5)) : vue.createCommentVNode("v-if", true),
137
+ vue.createCommentVNode(" \u65F6\u957F\u663E\u793A "),
138
+ props.showDuration && durationText.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, vue.toDisplayString(durationText.value), 1)) : vue.createCommentVNode("v-if", true)
117
139
  ]),
118
- vue.createElementVNode("div", _hoisted_4, [
119
- vue.createElementVNode("div", _hoisted_5, [
140
+ vue.createElementVNode("div", _hoisted_5, [
141
+ vue.createElementVNode("div", _hoisted_6, [
120
142
  vue.renderSlot(_ctx.$slots, "index"),
121
143
  vue.createVNode(index$1, {
122
144
  item: _ctx.item,
@@ -127,14 +149,14 @@ const _sfc_main = vue.defineComponent({
127
149
  onClick: clickTitle
128
150
  }, vue.toDisplayString(_ctx.item.alias || _ctx.item.title), 1)
129
151
  ]),
130
- vue.createElementVNode("div", _hoisted_6, [
131
- vue.createElementVNode("div", _hoisted_7, [
152
+ vue.createElementVNode("div", _hoisted_7, [
153
+ vue.createElementVNode("div", _hoisted_8, [
132
154
  vue.createVNode(component, {
133
155
  class: "icon",
134
156
  doc: true,
135
157
  type: _ctx.item.series
136
158
  }, null, 8, ["type"]),
137
- vue.createElementVNode("span", _hoisted_8, [
159
+ vue.createElementVNode("span", _hoisted_9, [
138
160
  showDataTags.value ? (vue.openBlock(), vue.createBlock(component$1, {
139
161
  key: 0,
140
162
  item: _ctx.item
@@ -144,15 +166,15 @@ const _sfc_main = vue.defineComponent({
144
166
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.abttrites, (column, i) => {
145
167
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: i }, [
146
168
  vue.createCommentVNode(" \u5BA1\u6838\u72B6\u6001 "),
147
- column.key === "approval_status" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_9, [
169
+ column.key === "approval_status" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_10, [
148
170
  _cache[2] || (_cache[2] = vue.createElementVNode("span", null, "\u5BA1\u6838\u72B6\u6001: ", -1)),
149
171
  vue.unref(doc.approvalItem)(_ctx.item) ? (vue.openBlock(), vue.createBlock(index$2, {
150
172
  key: 0,
151
173
  item: vue.unref(doc.approvalItem)(_ctx.item)
152
- }, null, 8, ["item"])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_10, "--"))
174
+ }, null, 8, ["item"])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_11, "--"))
153
175
  ])) : column.key === "state" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
154
176
  vue.createCommentVNode(" \u72B6\u6001 "),
155
- vue.createElementVNode("span", _hoisted_11, [
177
+ vue.createElementVNode("span", _hoisted_12, [
156
178
  vue.createVNode(vue.unref(webVue.Tooltip), {
157
179
  content: `\u72B6\u6001: ${vue.unref(doc.docStateMap)[_ctx.item.state]}`,
158
180
  position: "top"
@@ -172,12 +194,12 @@ const _sfc_main = vue.defineComponent({
172
194
  }, {
173
195
  content: vue.withCtx(() => [
174
196
  _ctx.item.other_categories ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
175
- vue.createElementVNode("div", _hoisted_12, "\u680F\u76EE: " + vue.toDisplayString(_ctx.item.primary_category || "--"), 1),
197
+ vue.createElementVNode("div", _hoisted_13, "\u680F\u76EE: " + vue.toDisplayString(_ctx.item.primary_category || "--"), 1),
176
198
  vue.createElementVNode("span", null, [
177
199
  _cache[3] || (_cache[3] = vue.createElementVNode("span", { style: { "font-size": "10px" } }, "\u540C\u65F6\u53D1\u5E03\u5230:", -1)),
178
200
  vue.createTextVNode(" " + vue.toDisplayString(_ctx.item.other_categories.join("\u3001")), 1)
179
201
  ])
180
- ], 64)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_13, "\u680F\u76EE: " + vue.toDisplayString(_ctx.item.primary_category || "--"), 1))
202
+ ], 64)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, "\u680F\u76EE: " + vue.toDisplayString(_ctx.item.primary_category || "--"), 1))
181
203
  ]),
182
204
  default: vue.withCtx(() => [
183
205
  vue.createVNode(vue.unref(webVue.Button), {
@@ -229,7 +251,7 @@ const _sfc_main = vue.defineComponent({
229
251
  ], 64);
230
252
  }), 128))
231
253
  ]),
232
- vue.createElementVNode("div", _hoisted_14, [
254
+ vue.createElementVNode("div", _hoisted_15, [
233
255
  vue.renderSlot(_ctx.$slots, "option", { row: _ctx.item })
234
256
  ])
235
257
  ])
@@ -8,10 +8,12 @@ const _sfc_main = vue.defineComponent({
8
8
  extraAttrs: {},
9
9
  item: {},
10
10
  index: {},
11
- BASE_API: {}
11
+ BASE_API: {},
12
+ showDuration: { type: Boolean }
12
13
  },
13
14
  emits: ["cellMouseEnter", "cellMouseLeave", "clickTitle"],
14
15
  setup(__props, { emit: __emit }) {
16
+ const props = __props;
15
17
  const emit = __emit;
16
18
  const cellMouseEnter = (params) => {
17
19
  emit("cellMouseEnter", params);
@@ -28,6 +30,7 @@ const _sfc_main = vue.defineComponent({
28
30
  abttrites: _ctx.abttrites,
29
31
  extraAttrs: _ctx.extraAttrs,
30
32
  BASE_API: _ctx.BASE_API,
33
+ showDuration: props.showDuration,
31
34
  onClickTitle: clickTitle,
32
35
  onCellMouseEnter: cellMouseEnter,
33
36
  onCellMouseLeave: cellMouseLeave
@@ -57,7 +60,7 @@ const _sfc_main = vue.defineComponent({
57
60
  })
58
61
  ]),
59
62
  _: 3
60
- }, 8, ["item", "abttrites", "extraAttrs", "BASE_API"]);
63
+ }, 8, ["item", "abttrites", "extraAttrs", "BASE_API", "showDuration"]);
61
64
  };
62
65
  }
63
66
  });
@@ -251,7 +251,7 @@ const _sfc_main = vue.defineComponent({
251
251
  onClick: _cache[1] || (_cache[1] = ($event) => genTimeLink(expiration.value))
252
252
  }, {
253
253
  default: vue.withCtx(() => _cache[5] || (_cache[5] = [
254
- vue.createTextVNode(" \u751F\u6210\u9884\u89C8\u94FE\u63A5 ")
254
+ vue.createTextVNode(" \u751F\u6210\u9884\u89C8\u94FE\u63A5 ", -1)
255
255
  ])),
256
256
  _: 1,
257
257
  __: [5]
@@ -262,7 +262,7 @@ const _sfc_main = vue.defineComponent({
262
262
  onClick: _cache[2] || (_cache[2] = ($event) => clipUrl("img"))
263
263
  }, {
264
264
  default: vue.withCtx(() => _cache[6] || (_cache[6] = [
265
- vue.createTextVNode(" \u590D\u5236\u4E8C\u7EF4\u7801 ")
265
+ vue.createTextVNode(" \u590D\u5236\u4E8C\u7EF4\u7801 ", -1)
266
266
  ])),
267
267
  _: 1,
268
268
  __: [6]
@@ -44,6 +44,21 @@
44
44
  border-radius: 4px;
45
45
  }
46
46
 
47
+ .duration-overlay {
48
+ position: absolute;
49
+ right: 5px;
50
+ bottom: 5px;
51
+ padding: 2px 6px;
52
+ color: #fff;
53
+ font-weight: 500;
54
+ font-size: 11px;
55
+ font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code',
56
+ 'Droid Sans Mono', 'Source Code Pro', monospace;
57
+ line-height: 1.2;
58
+ background: rgba(0, 0, 0, 0.7);
59
+ border-radius: 3px;
60
+ }
61
+
47
62
  .no-img {
48
63
  display: flex;
49
64
  align-items: center;
@@ -552,6 +552,19 @@
552
552
  font-size: 500;
553
553
  border-radius: 4px;
554
554
  }
555
+ .medialist-doc-item-view .cover-view .duration-overlay {
556
+ position: absolute;
557
+ right: 5px;
558
+ bottom: 5px;
559
+ padding: 2px 6px;
560
+ color: #fff;
561
+ font-weight: 500;
562
+ font-size: 11px;
563
+ font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Source Code Pro', monospace;
564
+ line-height: 1.2;
565
+ background: rgba(0, 0, 0, 0.7);
566
+ border-radius: 3px;
567
+ }
555
568
  .medialist-doc-item-view .cover-view .no-img {
556
569
  display: flex;
557
570
  align-items: center;