@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
@@ -1,167 +1,203 @@
1
- // 基础列表 layout 样式
2
- .resource-list {
3
- display: flex;
4
- flex: 1;
5
- flex-direction: column;
6
- gap: 10px;
7
- overflow: hidden;
8
-
9
- // 整体布局结构
10
- &-content {
11
- flex: 1;
12
- overflow: hidden;
13
- }
14
-
15
- &-footer,
16
- &-header,
17
- &-content .arco-scrollbar-container {
18
- padding: 0 40px;
19
- }
20
-
21
- &-footer {
22
- display: flex;
23
- justify-content: space-between;
24
- padding-bottom: 20px;
25
-
26
- .footer-right {
27
- display: flex;
28
- flex: 1;
29
- gap: 10px;
30
- align-items: center;
31
- justify-content: flex-end;
32
- }
33
- }
34
-
35
- // 处理空数据 & 加载中样式
36
- &-content {
37
- &-loading {
38
- display: flex;
39
- align-items: center;
40
- justify-content: center;
41
- width: 100%;
42
- height: 100%;
43
- }
44
- }
45
-
46
- // 所有的卡片 grid 布局
47
- .list-item-grid {
48
- display: grid;
49
- grid-gap: 20px;
50
- grid-template-columns: repeat(5, 1fr);
51
- }
52
- }
53
-
54
- // 衍生列表一:本地上传页面样式
55
- .resource-list {
56
- .list-content {
57
- margin-top: 30px;
58
-
59
- .list-tips {
60
- margin-bottom: 16px;
61
- color: #3d3d3d;
62
- }
63
- }
64
-
65
- .upload-wrapper {
66
- display: flex;
67
- flex-direction: column;
68
-
69
- .upload-buttons {
70
- display: flex;
71
- gap: 20px;
72
- justify-content: center;
73
- margin: 20px 0;
74
- }
75
-
76
- .upload-dragger {
77
- width: calc(100% - 2px);
78
- }
79
- }
80
- }
81
-
82
- // 衍生列表二:内置素材
83
- .resource-list {
84
- .scen-module {
85
- margin-bottom: 20px;
86
- }
87
-
88
- .item-load-more {
89
- display: flex;
90
- flex-direction: column;
91
- gap: 10px;
92
- align-items: center;
93
- justify-content: center;
94
- width: 100%;
95
- overflow: hidden;
96
- color: #9a9a9a;
97
- font-size: 12px;
98
- cursor: pointer;
99
- aspect-ratio: 4 / 3;
100
-
101
- img {
102
- height: calc(100% - 40px);
103
- }
104
- }
105
- }
106
-
107
- // 列表筛选样式
108
- .resource-list .list-filter-wrapper {
109
- .list-filter-tags {
110
- display: flex;
111
- justify-content: space-between;
112
- margin-top: 10px;
113
-
114
- .list-filter-tag {
115
- padding: 5px 16px;
116
- border-radius: 15px;
117
- cursor: pointer;
118
-
119
- &:hover {
120
- background-color: var(--color-fill-3);
121
- }
122
-
123
- &.active {
124
- color: rgb(var(--primary-6));
125
- font-weight: bold;
126
- background: var(--color-fill-2);
127
- }
128
- }
129
- }
130
-
131
- .list-filter {
132
- display: flex;
133
- justify-content: space-between;
134
-
135
- .filter-list {
136
- display: flex;
137
- flex-wrap: wrap;
138
- gap: 10px;
139
-
140
- .filter-item {
141
- width: 100px;
142
- }
143
- }
144
-
145
- .arco-input-prepend {
146
- padding: 0;
147
- }
148
- }
149
- }
150
-
151
- // 二级列表的标题样式
152
- .resource-list {
153
- .title {
154
- display: flex;
155
- gap: 8px;
156
- align-items: center;
157
- margin-bottom: 20px;
158
- font-weight: bold;
159
- font-size: 16px;
160
-
161
- .line {
162
- width: 3px;
163
- height: 16px;
164
- background-color: #4886ff;
165
- }
166
- }
167
- }
1
+ // 基础列表 layout 样式
2
+ .resource-list {
3
+ display: flex;
4
+ flex: 1;
5
+ flex-direction: column;
6
+ gap: 10px;
7
+ overflow: hidden;
8
+
9
+ // 整体布局结构
10
+ &-content {
11
+ flex: 1;
12
+ overflow: hidden;
13
+ }
14
+
15
+ &-footer,
16
+ &-header,
17
+ &-content .resource-list-content-empty,
18
+ &-content .arco-scrollbar-container {
19
+ padding: 0 40px;
20
+ }
21
+
22
+ &-footer {
23
+ display: flex;
24
+ flex-wrap: wrap;
25
+ justify-content: space-between;
26
+ padding-bottom: 20px;
27
+
28
+ .footer-right {
29
+ display: flex;
30
+ flex: 1;
31
+ gap: 10px;
32
+ align-items: center;
33
+ justify-content: flex-end;
34
+ margin-top: 10px;
35
+
36
+ .list-selected-wrapper {
37
+ font-size: 12px;
38
+ }
39
+ }
40
+ }
41
+
42
+ // 处理空数据 & 加载中样式
43
+ &-content {
44
+ &-loading {
45
+ display: flex;
46
+ align-items: center;
47
+ justify-content: center;
48
+ width: 100%;
49
+ height: 100%;
50
+ }
51
+ }
52
+
53
+ // 所有的卡片 grid 布局
54
+ .list-item-grid {
55
+ display: grid;
56
+ grid-gap: 20px;
57
+ grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
58
+ }
59
+ }
60
+
61
+ // 衍生列表一:本地上传页面样式
62
+ .resource-list {
63
+ .list-content {
64
+ margin-top: 30px;
65
+
66
+ .list-tips {
67
+ margin-bottom: 16px;
68
+ color: #3d3d3d;
69
+ }
70
+ }
71
+
72
+ .upload-wrapper {
73
+ display: flex;
74
+ flex-direction: column;
75
+
76
+ .upload-buttons {
77
+ display: flex;
78
+ gap: 20px;
79
+ justify-content: center;
80
+ margin: 20px 0;
81
+ }
82
+
83
+ .upload-dragger {
84
+ width: calc(100% - 2px);
85
+ }
86
+ }
87
+ }
88
+
89
+ // 衍生列表二:内置素材
90
+ .resource-list {
91
+ .scen-module {
92
+ margin-bottom: 20px;
93
+ }
94
+
95
+ .item-load-more {
96
+ display: flex;
97
+ flex-direction: column;
98
+ gap: 10px;
99
+ align-items: center;
100
+ justify-content: center;
101
+ width: 100%;
102
+ overflow: hidden;
103
+ color: #9a9a9a;
104
+ font-size: 12px;
105
+ cursor: pointer;
106
+ aspect-ratio: 4 / 3;
107
+
108
+ img {
109
+ height: calc(100% - 40px);
110
+ }
111
+ }
112
+ }
113
+
114
+ // 列表筛选样式
115
+ .resource-list .list-filter-wrapper {
116
+ .list-filter-tags {
117
+ display: flex;
118
+ flex-wrap: wrap;
119
+ gap: 10px;
120
+ margin-top: 10px;
121
+
122
+ .list-filter-tag {
123
+ padding: 5px 16px;
124
+ border-radius: 15px;
125
+ cursor: pointer;
126
+
127
+ &:hover {
128
+ background-color: var(--color-fill-3);
129
+ }
130
+
131
+ &.active {
132
+ color: rgb(var(--primary-6));
133
+ font-weight: bold;
134
+ background: var(--color-fill-2);
135
+ }
136
+ }
137
+ }
138
+
139
+ .list-filter {
140
+ display: flex;
141
+ justify-content: space-between;
142
+
143
+ .filter-list {
144
+ position: relative; /** 给 popup 一个参考 */
145
+ display: flex;
146
+
147
+ .filter-item {
148
+ width: 100px;
149
+ margin-right: 10px;
150
+ }
151
+
152
+ .arco-trigger-popup {
153
+ z-index: 100000 !important;
154
+ }
155
+ }
156
+
157
+ .arco-input-prepend {
158
+ padding: 0;
159
+ }
160
+
161
+ .more-btn {
162
+ position: relative; /** 给 poperjs 一个参考 */
163
+
164
+ .filter-pannel {
165
+ inset: 40px auto auto auto !important;
166
+ }
167
+ }
168
+ }
169
+
170
+ .filter-extra {
171
+ display: flex;
172
+ gap: 10px;
173
+ }
174
+
175
+ .filter-pannel {
176
+ z-index: 100000;
177
+ display: flex;
178
+ flex-direction: column;
179
+ gap: 10px;
180
+ padding: 10px;
181
+ background-color: #fff;
182
+ border-radius: 4px;
183
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
184
+ }
185
+ }
186
+
187
+ // 二级列表的标题样式
188
+ .resource-list {
189
+ .title {
190
+ display: flex;
191
+ gap: 8px;
192
+ align-items: center;
193
+ margin-bottom: 20px;
194
+ font-weight: bold;
195
+ font-size: 16px;
196
+
197
+ .line {
198
+ width: 3px;
199
+ height: 16px;
200
+ background-color: #4886ff;
201
+ }
202
+ }
203
+ }
@@ -351,9 +351,11 @@ const _sfc_main = defineComponent({
351
351
  if (!props.dataValue)
352
352
  return;
353
353
  if (styleData.value.model === oldData.value.model) {
354
- styleData.value.data = oldData.value.data;
355
- styleData.value.cover_theme_color = oldData.value.cover_theme_color;
356
- styleData.value.cover_colorList = oldData.value.cover_colorList;
354
+ nextTick(() => {
355
+ styleData.value.data = oldData.value.data;
356
+ styleData.value.cover_theme_color = oldData.value.cover_theme_color;
357
+ styleData.value.cover_colorList = oldData.value.cover_colorList;
358
+ });
357
359
  } else {
358
360
  styleData.value.data = [];
359
361
  }
@@ -409,21 +411,8 @@ const _sfc_main = defineComponent({
409
411
  callback(styleData2);
410
412
  };
411
413
  onMounted(() => {
412
- if (!styleData.value.cover_url) {
413
- setTimeout(() => {
414
- styleData.value.cover_url = styleData.value.data[0].url;
415
- const getColors = getThemeColor(BASE_API, styleData.value.data[0].url);
416
- getColors.then((themes) => {
417
- styleData.value.cover_colorList = JSON.parse(JSON.stringify(themes));
418
- styleData.value.cover_theme_color = `rgb(${themes[1]})`;
419
- oldData.value = JSON.parse(JSON.stringify(styleData.value));
420
- callback(styleData.value);
421
- }).catch((e) => {
422
- styleData.value.banner_theme_color = `rgb(255, 255, 255)`;
423
- callback(styleData.value);
424
- });
425
- }, 700);
426
- }
414
+ if (!styleData.value.cover_url)
415
+ ;
427
416
  });
428
417
  return (_ctx, _cache) => {
429
418
  var _a, _b, _c, _d, _e, _f;
@@ -516,15 +505,15 @@ const _sfc_main = defineComponent({
516
505
  }), 128))
517
506
  ]),
518
507
  _: 1
519
- }, 8, ["modelValue"])
520
- ], 64)) : createCommentVNode("v-if", true),
521
- hasCover.value ? (openBlock(), createBlock(_sfc_main$2, {
522
- key: 3,
523
- "style-data": styleData.value,
524
- model: "cover",
525
- style: { "margin-top": "10px" },
526
- onChange: colorChange
527
- }, null, 8, ["style-data"])) : createCommentVNode("v-if", true)
508
+ }, 8, ["modelValue"]),
509
+ hasCover.value ? (openBlock(), createBlock(_sfc_main$2, {
510
+ key: 0,
511
+ "style-data": styleData.value,
512
+ model: "cover",
513
+ style: { "margin-top": "10px" },
514
+ onChange: colorChange
515
+ }, null, 8, ["style-data"])) : createCommentVNode("v-if", true)
516
+ ], 64)) : createCommentVNode("v-if", true)
528
517
  ])
529
518
  ], 2),
530
519
  _ctx.mode === "doc" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
@@ -140,7 +140,8 @@ const _sfc_main = defineComponent({
140
140
  default: withCtx(() => _cache[2] || (_cache[2] = [
141
141
  createTextVNode("\u9000\u51FA")
142
142
  ])),
143
- _: 1
143
+ _: 1,
144
+ __: [2]
144
145
  })
145
146
  ])
146
147
  ])
@@ -228,7 +228,8 @@ const _sfc_main = defineComponent({
228
228
  default: withCtx(() => _cache[0] || (_cache[0] = [
229
229
  createTextVNode("\u5168\u90E8\u6E05\u9664")
230
230
  ])),
231
- _: 1
231
+ _: 1,
232
+ __: [0]
232
233
  })
233
234
  ]),
234
235
  createVNode(unref(Scrollbar), {
package/es/utils/index.js CHANGED
@@ -137,13 +137,13 @@ async function copyContent(content) {
137
137
  }
138
138
  }
139
139
  function mediaTime(v) {
140
- const h = Math.floor(v / (60 * 60));
141
- const m = Math.floor((v - h) / 60);
142
- const s = Math.floor(v - h * 360 - m * 60);
140
+ const h = Math.floor(v / 3600);
141
+ const m = Math.floor(v % 3600 / 60);
142
+ const s = Math.floor(v % 60);
143
143
  let ret = "";
144
- ret += `${h < 10 ? `0${h}` : h || "--"}:`;
145
- ret += `${m < 10 ? `0${m}` : m || "--"}:`;
146
- ret += s < 10 ? `0${s}` : s || "--";
144
+ ret += `${h < 10 ? `0${h}` : h}:`;
145
+ ret += `${m < 10 ? `0${m}` : m}:`;
146
+ ret += s < 10 ? `0${s}` : s;
147
147
  return ret;
148
148
  }
149
149
  export { copyContent, dateYYYYDDMMHHmm, generateUUID, getRealUrl, getThemeColor, mediaTime, noCoverText, replaceSuffix, timeFormat, to, validateForm };
@@ -38,9 +38,11 @@ const _sfc_main = vue.defineComponent({
38
38
  });
39
39
  return _columns;
40
40
  });
41
- const getOptions = (item) => {
42
- return item.options ? item.options : [];
43
- };
41
+ const getOptions = vue.computed(() => {
42
+ return (item) => {
43
+ return item.options ? item.options : [];
44
+ };
45
+ });
44
46
  const hasValue = vue.computed(() => {
45
47
  return (key) => {
46
48
  var _a, _b;
@@ -77,7 +79,10 @@ const _sfc_main = vue.defineComponent({
77
79
  _form[column.range] = rangeTemp[column.range];
78
80
  } else if (column.component === "select") {
79
81
  _form[column.key] = column.defaultValue || null;
80
- } else {
82
+ } else if (column.component === "input-group") {
83
+ _form[column.selectKey] = column.selectDefaultValue || "";
84
+ _form[column.inputKey] = column.inputDefaultValue || "";
85
+ } else if (column.component) {
81
86
  _form[column.key] = column.defaultValue || "";
82
87
  }
83
88
  });
@@ -179,17 +184,48 @@ const _sfc_main = vue.defineComponent({
179
184
  active: hasValue.value(item.key)
180
185
  }, {
181
186
  default: vue.withCtx(() => [
182
- item.component === "input" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.InputSearch), {
183
- key: 0,
187
+ item.slot ? vue.renderSlot(_ctx.$slots, item.slot, { key: 0 }) : item.component === "input-group" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.InputGroup), { key: 1 }, {
188
+ default: vue.withCtx(() => [
189
+ vue.createVNode(vue.unref(webVue.Select), {
190
+ modelValue: form.value[item.selectKey],
191
+ "onUpdate:modelValue": ($event) => form.value[item.selectKey] = $event,
192
+ "default-active-first-option": "",
193
+ style: { "width": "100px" }
194
+ }, {
195
+ default: vue.withCtx(() => [
196
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.selectOptions, (option, idx) => {
197
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
198
+ key: idx,
199
+ value: option.value
200
+ }, {
201
+ default: vue.withCtx(() => [
202
+ vue.createTextVNode(vue.toDisplayString(option.label), 1)
203
+ ]),
204
+ _: 2
205
+ }, 1032, ["value"]);
206
+ }), 128))
207
+ ]),
208
+ _: 2
209
+ }, 1032, ["modelValue", "onUpdate:modelValue"]),
210
+ vue.createVNode(vue.unref(webVue.Input), {
211
+ modelValue: form.value[item.inputKey],
212
+ "onUpdate:modelValue": ($event) => form.value[item.inputKey] = $event,
213
+ placeholder: item.placeholder ? item.placeholder : `\u8BF7\u8F93\u5165${item.inputLabel}`,
214
+ style: { "width": "180px" }
215
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
216
+ ]),
217
+ _: 2
218
+ }, 1024)) : item.component === "input" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.InputSearch), {
219
+ key: 2,
184
220
  modelValue: form.value[item.key],
185
221
  "onUpdate:modelValue": ($event) => form.value[item.key] = $event,
186
222
  style: vue.normalizeStyle({ width: styleWidth(columnsMap.value[item.key]) }),
187
223
  "allow-clear": "",
188
224
  size: "medium",
189
- placeholder: `\u8BF7\u8F93\u5165${item.label}`
225
+ placeholder: item.placeholder ? item.placeholder : `\u8BF7\u8F93\u5165${item.label}`
190
226
  }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder"])) : vue.createCommentVNode("v-if", true),
191
227
  item.component === "select" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Select), {
192
- key: 1,
228
+ key: 3,
193
229
  modelValue: form.value[item.key],
194
230
  "onUpdate:modelValue": ($event) => form.value[item.key] = $event,
195
231
  "popup-container": "#base-filter-popup-container",
@@ -197,13 +233,13 @@ const _sfc_main = vue.defineComponent({
197
233
  "allow-search": item.allowSearch,
198
234
  "default-active-first-option": false,
199
235
  style: vue.normalizeStyle({ width: styleWidth(columnsMap.value[item.key]) }),
200
- placeholder: `\u8BF7\u9009\u62E9${item.label}`,
236
+ placeholder: item.placeholder ? item.placeholder : `\u8BF7\u9009\u62E9${item.label}`,
201
237
  onSearch: ($event) => handleSelectSearch($event, item),
202
238
  onPopupVisibleChange: ($event) => handleSelectPopupChange($event, item),
203
239
  onChange: ($event) => handleSelectChange($event, item)
204
240
  }, {
205
241
  default: vue.withCtx(() => [
206
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(getOptions(item), (opt) => {
242
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(getOptions.value(item), (opt) => {
207
243
  return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
208
244
  key: opt.value,
209
245
  label: opt.label,
@@ -214,7 +250,7 @@ const _sfc_main = vue.defineComponent({
214
250
  _: 2
215
251
  }, 1032, ["modelValue", "onUpdate:modelValue", "allow-search", "style", "placeholder", "onSearch", "onPopupVisibleChange", "onChange"])) : vue.createCommentVNode("v-if", true),
216
252
  item.component === "range-picker" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.RangePicker), {
217
- key: 2,
253
+ key: 4,
218
254
  modelValue: form.value[item.key].range,
219
255
  "onUpdate:modelValue": ($event) => form.value[item.key].range = $event,
220
256
  style: vue.normalizeStyle({ width: styleWidth(form.value[item.key]) }),
@@ -225,7 +261,28 @@ const _sfc_main = vue.defineComponent({
225
261
  "popup-container": "#base-filter-popup-container",
226
262
  onClick: _cache[1] || (_cache[1] = vue.withModifiers(() => {
227
263
  }, ["stop"]))
228
- }, null, 8, ["modelValue", "onUpdate:modelValue", "style"])) : vue.createCommentVNode("v-if", true)
264
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "style"])) : vue.createCommentVNode("v-if", true),
265
+ item.component === "radio" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.RadioGroup), {
266
+ key: 5,
267
+ modelValue: form.value[item.key],
268
+ "onUpdate:modelValue": ($event) => form.value[item.key] = $event,
269
+ type: "button"
270
+ }, {
271
+ default: vue.withCtx(() => [
272
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.options || [], (option, idx) => {
273
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.Radio), {
274
+ key: idx,
275
+ value: option.value
276
+ }, {
277
+ default: vue.withCtx(() => [
278
+ vue.createTextVNode(vue.toDisplayString(option.label), 1)
279
+ ]),
280
+ _: 2
281
+ }, 1032, ["value"]);
282
+ }), 128))
283
+ ]),
284
+ _: 2
285
+ }, 1032, ["modelValue", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
229
286
  ]),
230
287
  _: 2
231
288
  }, 1032, ["active"]);
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.cmstop.xyz";
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";
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";