@cmstops/pro-compo 3.9.2-alpha.9 → 3.10.5-nanning.1

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 (301) hide show
  1. package/README.md +103 -76
  2. package/dist/index.css +52 -0
  3. package/dist/index.min.css +1 -1
  4. package/dist/index.min.js.map +1 -1
  5. package/es/appCenter/script/api.d.ts +5 -5
  6. package/es/baseFilter/components/FilterGroup.js +1 -1
  7. package/es/baseFilter/components/filterItem.js +1 -1
  8. package/es/colorPalette/component.js +1 -1
  9. package/es/config.js +1 -1
  10. package/es/contentDetailList/component.js +9 -9
  11. package/es/contentDetailList/components/Content/CircleItem/index.d.ts +0 -0
  12. package/es/contentDetailList/components/Content/CircleItem/index.js +92 -0
  13. package/es/contentDetailList/components/Content/CompoItem/index.js +12 -12
  14. package/es/contentDetailList/components/Content/ContentListItem/index.js +15 -15
  15. package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +18 -18
  16. package/es/contentDetailList/components/Content/DocItem/index.js +27 -27
  17. package/es/contentDetailList/components/Content/DocMpItem/index.js +13 -13
  18. package/es/contentDetailList/components/Content/GroupPieceItem/index.js +11 -11
  19. package/es/contentDetailList/components/Content/KongoNavItem/index.js +14 -14
  20. package/es/contentDetailList/components/Content/LiveItem/index.js +9 -9
  21. package/es/contentDetailList/components/Content/MaccountItem/index.js +12 -12
  22. package/es/contentDetailList/components/Content/courseItem/index.js +10 -10
  23. package/es/contentDetailList/components/Content/funhdItem/index.js +10 -10
  24. package/es/contentDetailList/components/Content/index.js +169 -117
  25. package/es/contentDetailList/components/CustomWrp/CustomItem.js +5 -5
  26. package/es/contentDetailList/components/CustomWrp/index.js +10 -10
  27. package/es/contentDetailList/components/Doc/index.js +11 -11
  28. package/es/contentDetailList/components/Records/MatrixItem/index.js +22 -22
  29. package/es/contentDetailList/components/Records/index.js +8 -8
  30. package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.js +6 -6
  31. package/es/contentDetailList/components/ShowQRCode/index.js +1 -1
  32. package/es/contentDetailList/script/api.d.ts +2 -2
  33. package/es/contentModal/component.js +40 -40
  34. package/es/contentModal/components/CompoList/index.js +1 -1
  35. package/es/contentModal/components/Dejin/index.js +1 -1
  36. package/es/contentModal/components/MpContentList/MediaFilter/index.js +2 -2
  37. package/es/contentModal/components/MpContentList/index.js +1 -1
  38. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +3 -3
  39. package/es/contentModal/components/ViewAllColumn/index.js +7 -3
  40. package/es/contentModal/components/storeBox/index.js +8 -8
  41. package/es/contentModal/script/api.d.ts +13 -13
  42. package/es/dataTags/component.js +38 -38
  43. package/es/docHistory/component.js +44 -15
  44. package/es/docHistory/components/DocDiffPanel/index.js +2 -2
  45. package/es/docHistory/components/DocHistoryList/index.js +2 -2
  46. package/es/docHistory/scripts/diff.js +4 -3
  47. package/es/docHistory/scripts/useDocHistory.d.ts +1 -1
  48. package/es/docHistory/style/index.css +4 -0
  49. package/es/docHistory/style/index.less +5 -0
  50. package/es/docPreview/component.js +228 -60
  51. package/es/docPreview/components/PreviewIframe.js +37 -6
  52. package/es/docPreview/images/pc.js +2 -0
  53. package/es/docPreview/scripts/api.d.ts +2 -1
  54. package/es/docPreview/scripts/hook.d.ts +11 -1
  55. package/es/docPreview/scripts/hook.js +115 -4
  56. package/es/docPreview/style/index.css +48 -0
  57. package/es/docPreview/style/index.less +23 -0
  58. package/es/docPreview/style/previewIframe.less +31 -0
  59. package/es/editMetaInfo/component.js +24 -4
  60. package/es/editMetaInfo/components/metaInfoForm.js +358 -17
  61. package/es/editMetaInfo/script/api.d.ts +9 -2
  62. package/es/editMetaInfo/script/api.js +20 -1
  63. package/es/emptyData/component.js +4 -4
  64. package/es/emptyData/svg/acount.js +2 -2
  65. package/es/emptyData/svg/add.js +2 -2
  66. package/es/emptyData/svg/analize.js +2 -2
  67. package/es/emptyData/svg/analize_fail.js +2 -2
  68. package/es/emptyData/svg/empty.js +2 -2
  69. package/es/emptyData/svg/file.js +2 -2
  70. package/es/emptyData/svg/manager.js +2 -2
  71. package/es/emptyData/svg/message.js +2 -2
  72. package/es/emptyData/svg/noanalize.js +2 -2
  73. package/es/emptyData/svg/null.js +2 -2
  74. package/es/emptyData/svg/search.js +2 -2
  75. package/es/emptyData/svg/star.js +2 -2
  76. package/es/emptyData/svg/trash.js +2 -2
  77. package/es/emptyData/svg/user.js +2 -2
  78. package/es/hooks/assets.d.ts +1 -1
  79. package/es/hooks/source.d.ts +1 -1
  80. package/es/hooks/useAttachement.d.ts +7 -7
  81. package/es/hooks/useUpload.d.ts +4 -4
  82. package/es/hooks/user.d.ts +1 -1
  83. package/es/imageCrop/component.js +11 -11
  84. package/es/imageCrop/script/api.d.ts +1 -1
  85. package/es/importData/component.js +13 -13
  86. package/es/index.css +52 -0
  87. package/es/index.d.ts +1 -0
  88. package/es/index.js +1 -0
  89. package/es/mediaFilter/component.js +4 -4
  90. package/es/mediaFilter/components/DocFilter.js +1 -1
  91. package/es/mediaFilter/components/FilterGroup.js +1 -1
  92. package/es/mediaFilter/components/FilterItem.js +1 -1
  93. package/es/mediaView/component.js +8 -8
  94. package/es/messageBox/component.js +3 -3
  95. package/es/messageBox/script/api.d.ts +2 -2
  96. package/es/previousVersion/script/api.d.ts +4 -4
  97. package/es/resourceGridList/component.js +16 -16
  98. package/es/resourceGridList/components/FileTypeThumb/index.js +6 -6
  99. package/es/resourceModal/component.js +7 -7
  100. package/es/resourceModal/components/MediaPreviewer/index.js +8 -8
  101. package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +5 -5
  102. package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +6 -6
  103. package/es/resourceModal/components/MediaSelection/MainContent/index.js +18 -18
  104. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +3 -3
  105. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +3 -3
  106. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.js +2 -2
  107. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +4 -4
  108. package/es/resourceModal/components/MediaSelection/index.js +6 -6
  109. package/es/resourceModal/script/api.d.ts +11 -11
  110. package/es/selectAddTo/component.d.ts +0 -0
  111. package/es/selectAddTo/component.js +47 -0
  112. package/es/selectAddTo/component.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  113. package/es/selectAddTo/components/SelectAddToView.d.ts +0 -0
  114. package/es/selectAddTo/components/SelectAddToView.js +90 -0
  115. package/es/selectAddTo/components/SelectAddToView.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  116. package/es/selectAddTo/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
  117. package/es/selectAddTo/components/ViewAllColumn/MediaFilter/index.js +166 -0
  118. package/es/selectAddTo/components/ViewAllColumn/index.d.ts +0 -0
  119. package/es/selectAddTo/components/ViewAllColumn/index.js +212 -0
  120. package/es/selectAddTo/components/ViewAllColumn/index.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  121. package/es/selectAddTo/components/ViewAllColumn/script/useTableColumns.d.ts +6 -0
  122. package/es/selectAddTo/components/ViewAllColumn/script/useTableColumns.js +102 -0
  123. package/es/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.d.ts +144 -0
  124. package/es/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +182 -0
  125. package/es/selectAddTo/components/ViewAllColumn/types/index.d.ts +55 -0
  126. package/es/selectAddTo/index.d.ts +2 -0
  127. package/es/selectAddTo/index.js +7 -0
  128. package/es/selectAddTo/script/api.d.ts +18 -0
  129. package/es/selectAddTo/script/api.js +23 -0
  130. package/es/selectAddTo/script/index.d.ts +2 -0
  131. package/es/selectAddTo/script/useSelectAddToState.d.ts +13 -0
  132. package/es/selectAddTo/script/useSelectAddToState.js +55 -0
  133. package/es/selectAddTo/style/css.js +1 -0
  134. package/es/selectAddTo/style/index.css +3 -0
  135. package/es/selectAddTo/style/index.d.ts +1 -0
  136. package/es/selectAddTo/style/index.js +1 -0
  137. package/es/selectAddTo/style/index.less +3 -0
  138. package/es/selectAddTo/types/index.d.ts +37 -0
  139. package/es/selectGategory/component.js +5 -5
  140. package/es/selectGategory/components/ColumnSelection/index.js +6 -6
  141. package/es/selectGategory/script/api.d.ts +2 -2
  142. package/es/selectResourceModal/__demo__/module/DivWrapper.d.ts +153 -160
  143. package/es/selectResourceModal/__demo__/module/basic.d.ts +153 -160
  144. package/es/selectResourceModal/component.js +26 -34
  145. package/es/selectResourceModal/components/List/ListCardWrapper.js +6 -6
  146. package/es/selectResourceModal/components/List/ListLocal/Upload.js +1 -1
  147. package/es/selectResourceModal/components/List/ListNormal/Filter.js +22 -16
  148. package/es/selectResourceModal/components/List/ListSystem/Filter.js +3 -3
  149. package/es/selectResourceModal/components/List/ListSystem/SubList.js +3 -3
  150. package/es/selectResourceModal/components/List/ListSystem/index.js +2 -2
  151. package/es/selectResourceModal/components/List/ListWraper.js +2 -2
  152. package/es/selectResourceModal/components/ListSelected/index.js +6 -6
  153. package/es/selectResourceModal/components/ListTabs/index.js +1 -1
  154. package/es/selectResourceModal/scripts/selectionApis.d.ts +2 -2
  155. package/es/selectResourceModal/scripts/useTabFilter.js +1 -11
  156. package/es/selectThumb/component.js +45 -56
  157. package/es/selectThumb/components/card.js +3 -3
  158. package/es/style.css +63 -0
  159. package/es/thumbCard/component.js +7 -7
  160. package/es/thumbCard/components/ThumbUploading/index.js +3 -3
  161. package/es/typeIcons/component.js +1 -1
  162. package/es/uploadBefore/component.js +1 -1
  163. package/es/uploadBefore/components/UploadBefore.js +9 -9
  164. package/es/uploadBefore/script/api.d.ts +4 -4
  165. package/es/uploadStep/component.js +3 -3
  166. package/es/userAvater/component.js +3 -3
  167. package/es/userAvater/script/api.d.ts +4 -4
  168. package/es/userDirector/component.js +5 -5
  169. package/es/userDirector/components/userTree.js +2 -2
  170. package/es/userDirector/script/api.d.ts +6 -6
  171. package/es/utils/request.d.ts +1 -1
  172. package/es/utils/transcodeMedia.d.ts +1 -1
  173. package/es/videoThumb/scripts/api.d.ts +1 -1
  174. package/lib/baseFilter/components/FilterGroup.js +1 -1
  175. package/lib/baseFilter/components/filterItem.js +1 -1
  176. package/lib/colorPalette/component.js +1 -1
  177. package/lib/config.js +1 -1
  178. package/lib/contentDetailList/component.js +9 -9
  179. package/lib/contentDetailList/components/Content/CircleItem/index.js +93 -0
  180. package/lib/contentDetailList/components/Content/CompoItem/index.js +12 -12
  181. package/lib/contentDetailList/components/Content/ContentListItem/index.js +15 -15
  182. package/lib/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +18 -18
  183. package/lib/contentDetailList/components/Content/DocItem/index.js +27 -27
  184. package/lib/contentDetailList/components/Content/DocMpItem/index.js +13 -13
  185. package/lib/contentDetailList/components/Content/GroupPieceItem/index.js +11 -11
  186. package/lib/contentDetailList/components/Content/KongoNavItem/index.js +14 -14
  187. package/lib/contentDetailList/components/Content/LiveItem/index.js +9 -9
  188. package/lib/contentDetailList/components/Content/MaccountItem/index.js +12 -12
  189. package/lib/contentDetailList/components/Content/courseItem/index.js +10 -10
  190. package/lib/contentDetailList/components/Content/funhdItem/index.js +10 -10
  191. package/lib/contentDetailList/components/Content/index.js +169 -117
  192. package/lib/contentDetailList/components/CustomWrp/CustomItem.js +5 -5
  193. package/lib/contentDetailList/components/CustomWrp/index.js +10 -10
  194. package/lib/contentDetailList/components/Doc/index.js +11 -11
  195. package/lib/contentDetailList/components/Records/MatrixItem/index.js +22 -22
  196. package/lib/contentDetailList/components/Records/index.js +8 -8
  197. package/lib/contentDetailList/components/ShowQRCode/QrcodeView/index.js +6 -6
  198. package/lib/contentDetailList/components/ShowQRCode/index.js +1 -1
  199. package/lib/contentModal/component.js +40 -40
  200. package/lib/contentModal/components/CompoList/index.js +1 -1
  201. package/lib/contentModal/components/Dejin/index.js +1 -1
  202. package/lib/contentModal/components/MpContentList/MediaFilter/index.js +2 -2
  203. package/lib/contentModal/components/MpContentList/index.js +1 -1
  204. package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +3 -3
  205. package/lib/contentModal/components/ViewAllColumn/index.js +7 -3
  206. package/lib/contentModal/components/storeBox/index.js +8 -8
  207. package/lib/dataTags/component.js +38 -38
  208. package/lib/docHistory/component.js +42 -13
  209. package/lib/docHistory/components/DocDiffPanel/index.js +2 -2
  210. package/lib/docHistory/components/DocHistoryList/index.js +2 -2
  211. package/lib/docHistory/scripts/diff.js +4 -3
  212. package/lib/docHistory/style/index.css +4 -0
  213. package/lib/docHistory/style/index.less +5 -0
  214. package/lib/docPreview/component.js +227 -59
  215. package/lib/docPreview/components/PreviewIframe.js +37 -6
  216. package/lib/docPreview/images/pc.js +3 -0
  217. package/lib/docPreview/scripts/hook.js +115 -3
  218. package/lib/docPreview/style/index.css +48 -0
  219. package/lib/docPreview/style/index.less +23 -0
  220. package/lib/docPreview/style/previewIframe.less +31 -0
  221. package/lib/editMetaInfo/component.js +23 -3
  222. package/lib/editMetaInfo/components/metaInfoForm.js +356 -15
  223. package/lib/editMetaInfo/script/api.js +21 -0
  224. package/lib/emptyData/component.js +4 -4
  225. package/lib/emptyData/svg/acount.js +2 -2
  226. package/lib/emptyData/svg/add.js +2 -2
  227. package/lib/emptyData/svg/analize.js +2 -2
  228. package/lib/emptyData/svg/analize_fail.js +2 -2
  229. package/lib/emptyData/svg/empty.js +2 -2
  230. package/lib/emptyData/svg/file.js +2 -2
  231. package/lib/emptyData/svg/manager.js +2 -2
  232. package/lib/emptyData/svg/message.js +2 -2
  233. package/lib/emptyData/svg/noanalize.js +2 -2
  234. package/lib/emptyData/svg/null.js +2 -2
  235. package/lib/emptyData/svg/search.js +2 -2
  236. package/lib/emptyData/svg/star.js +2 -2
  237. package/lib/emptyData/svg/trash.js +2 -2
  238. package/lib/emptyData/svg/user.js +2 -2
  239. package/lib/imageCrop/component.js +11 -11
  240. package/lib/importData/component.js +13 -13
  241. package/lib/index.css +52 -0
  242. package/lib/index.js +2 -0
  243. package/lib/mediaFilter/component.js +4 -4
  244. package/lib/mediaFilter/components/DocFilter.js +1 -1
  245. package/lib/mediaFilter/components/FilterGroup.js +1 -1
  246. package/lib/mediaFilter/components/FilterItem.js +1 -1
  247. package/lib/mediaView/component.js +8 -8
  248. package/lib/messageBox/component.js +3 -3
  249. package/lib/resourceGridList/component.js +16 -16
  250. package/lib/resourceGridList/components/FileTypeThumb/index.js +6 -6
  251. package/lib/resourceModal/component.js +7 -7
  252. package/lib/resourceModal/components/MediaPreviewer/index.js +8 -8
  253. package/lib/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +5 -5
  254. package/lib/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +6 -6
  255. package/lib/resourceModal/components/MediaSelection/MainContent/index.js +18 -18
  256. package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +3 -3
  257. package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +3 -3
  258. package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/index.js +2 -2
  259. package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +4 -4
  260. package/lib/resourceModal/components/MediaSelection/index.js +6 -6
  261. package/lib/selectAddTo/component.js +48 -0
  262. package/lib/selectAddTo/component.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
  263. package/lib/selectAddTo/components/SelectAddToView.js +91 -0
  264. package/lib/selectAddTo/components/SelectAddToView.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
  265. package/lib/selectAddTo/components/ViewAllColumn/MediaFilter/index.js +167 -0
  266. package/lib/selectAddTo/components/ViewAllColumn/index.js +213 -0
  267. package/lib/selectAddTo/components/ViewAllColumn/index.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
  268. package/lib/selectAddTo/components/ViewAllColumn/script/useTableColumns.js +108 -0
  269. package/lib/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +184 -0
  270. package/lib/selectAddTo/index.js +8 -0
  271. package/lib/selectAddTo/script/api.js +27 -0
  272. package/lib/selectAddTo/script/useSelectAddToState.js +57 -0
  273. package/lib/selectAddTo/style/css.js +2 -0
  274. package/lib/selectAddTo/style/index.css +3 -0
  275. package/lib/selectAddTo/style/index.js +2 -0
  276. package/lib/selectAddTo/style/index.less +3 -0
  277. package/lib/selectGategory/component.js +5 -5
  278. package/lib/selectGategory/components/ColumnSelection/index.js +6 -6
  279. package/lib/selectResourceModal/component.js +25 -33
  280. package/lib/selectResourceModal/components/List/ListCardWrapper.js +6 -6
  281. package/lib/selectResourceModal/components/List/ListLocal/Upload.js +1 -1
  282. package/lib/selectResourceModal/components/List/ListNormal/Filter.js +22 -16
  283. package/lib/selectResourceModal/components/List/ListSystem/Filter.js +3 -3
  284. package/lib/selectResourceModal/components/List/ListSystem/SubList.js +3 -3
  285. package/lib/selectResourceModal/components/List/ListSystem/index.js +2 -2
  286. package/lib/selectResourceModal/components/List/ListWraper.js +2 -2
  287. package/lib/selectResourceModal/components/ListSelected/index.js +6 -6
  288. package/lib/selectResourceModal/components/ListTabs/index.js +1 -1
  289. package/lib/selectResourceModal/scripts/useTabFilter.js +1 -13
  290. package/lib/selectThumb/component.js +45 -56
  291. package/lib/selectThumb/components/card.js +3 -3
  292. package/lib/thumbCard/component.js +7 -7
  293. package/lib/thumbCard/components/ThumbUploading/index.js +3 -3
  294. package/lib/typeIcons/component.js +1 -1
  295. package/lib/uploadBefore/component.js +1 -1
  296. package/lib/uploadBefore/components/UploadBefore.js +9 -9
  297. package/lib/uploadStep/component.js +3 -3
  298. package/lib/userAvater/component.js +3 -3
  299. package/lib/userDirector/component.js +5 -5
  300. package/lib/userDirector/components/userTree.js +2 -2
  301. package/package.json +1 -1
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ var vue = require("vue");
3
+ var webVue = require("@arco-design/web-vue");
4
+ var index = require("./ViewAllColumn/index.js");
5
+ var index$1 = require("../../contentModal/components/storeBox/index.js");
6
+ require("./SelectAddToView.vue_vue_type_style_index_0_scoped_true_lang.js");
7
+ var pluginVue_exportHelper = require("../../_virtual/plugin-vue_export-helper.js");
8
+ const _sfc_main = vue.defineComponent({
9
+ __name: "SelectAddToView",
10
+ props: {
11
+ visible: { type: Boolean },
12
+ rid: {},
13
+ selectedData: {},
14
+ maxSelect: {},
15
+ typeKey: {}
16
+ },
17
+ emits: [
18
+ "cancel",
19
+ "close",
20
+ "ok",
21
+ "open",
22
+ "selected-change",
23
+ "comfirm"
24
+ ],
25
+ setup(__props, { emit: __emit }) {
26
+ const props = __props;
27
+ const emit = __emit;
28
+ const hasSelected = vue.computed(
29
+ () => props.selectedData && props.selectedData.length > 0
30
+ );
31
+ function handleComfirm() {
32
+ emit("comfirm");
33
+ }
34
+ function handleSelectedDataChange(val) {
35
+ emit("selected-change", val);
36
+ }
37
+ return (_ctx, _cache) => {
38
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.Modal), {
39
+ footer: false,
40
+ "mask-closable": false,
41
+ visible: __props.visible,
42
+ "body-style": { maxHeight: "700px" },
43
+ "body-class": "add-content-modal-body",
44
+ "modal-class": "add-content-modal-wrapper",
45
+ "title-align": "start",
46
+ "unmount-on-close": "",
47
+ width: "1020px",
48
+ onCancel: _cache[1] || (_cache[1] = () => emit("cancel")),
49
+ onClose: _cache[2] || (_cache[2] = () => emit("close")),
50
+ onOk: _cache[3] || (_cache[3] = () => emit("ok"))
51
+ }, {
52
+ title: vue.withCtx(() => [..._cache[4] || (_cache[4] = [
53
+ vue.createTextVNode("\u9009\u62E9\u6DFB\u52A0", -1)
54
+ ])]),
55
+ default: vue.withCtx(() => [
56
+ __props.rid ? (vue.openBlock(), vue.createBlock(index, {
57
+ key: 0,
58
+ rid: __props.rid,
59
+ "default-selected-data": __props.selectedData,
60
+ "max-select": __props.maxSelect,
61
+ "type-key": __props.typeKey || "",
62
+ onChange: handleSelectedDataChange
63
+ }, {
64
+ store: vue.withCtx(() => [
65
+ vue.createVNode(index$1, {
66
+ selectData: __props.selectedData,
67
+ "onUpdate:selectData": _cache[0] || (_cache[0] = (val) => emit("selected-change", val))
68
+ }, null, 8, ["selectData"])
69
+ ]),
70
+ options: vue.withCtx(() => [
71
+ vue.createVNode(vue.unref(webVue.Button), {
72
+ disabled: !hasSelected.value,
73
+ type: "primary",
74
+ onClick: handleComfirm
75
+ }, {
76
+ default: vue.withCtx(() => [..._cache[5] || (_cache[5] = [
77
+ vue.createTextVNode(" \u6DFB\u52A0 ", -1)
78
+ ])]),
79
+ _: 1
80
+ }, 8, ["disabled"])
81
+ ]),
82
+ _: 1
83
+ }, 8, ["rid", "default-selected-data", "max-select", "type-key"])) : vue.createCommentVNode("v-if", true)
84
+ ]),
85
+ _: 1
86
+ }, 8, ["visible"]);
87
+ };
88
+ }
89
+ });
90
+ var SelectAddToView = /* @__PURE__ */ pluginVue_exportHelper(_sfc_main, [["__scopeId", "data-v-00adfb7c"]]);
91
+ module.exports = SelectAddToView;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ var SelectAddToView_vue_vue_type_style_index_0_scoped_true_lang = "";
3
+ module.exports = SelectAddToView_vue_vue_type_style_index_0_scoped_true_lang;
@@ -0,0 +1,167 @@
1
+ "use strict";
2
+ var vue = require("vue");
3
+ var webVue = require("@arco-design/web-vue");
4
+ var icon = require("@arco-design/web-vue/es/icon");
5
+ const _hoisted_1 = { class: "media-filter-container" };
6
+ const _hoisted_2 = { style: { "display": "flex", "align-items": "center", "gap": "5px" } };
7
+ const _hoisted_3 = {
8
+ key: 0,
9
+ class: "sort-button"
10
+ };
11
+ const _sfc_main = vue.defineComponent({
12
+ ...{ name: "MediaFilter" },
13
+ __name: "index",
14
+ props: {
15
+ groupId: {},
16
+ tree: { default: () => [] },
17
+ height: {},
18
+ typeKey: {}
19
+ },
20
+ emits: ["update:group_id", "search"],
21
+ setup(__props, { emit: __emit }) {
22
+ const props = __props;
23
+ const column_id = vue.ref("all");
24
+ const emit = __emit;
25
+ const filter = vue.ref({
26
+ keywords: "",
27
+ type: "",
28
+ cover_type: "",
29
+ banner: "",
30
+ sort: -1,
31
+ order: "create_time",
32
+ wordState: "precision"
33
+ });
34
+ const wordStateOptions = [
35
+ {
36
+ value: "precision",
37
+ label: "\u7CBE\u51C6\u641C",
38
+ desc: "\u4F1A\u4EE5\u8F93\u5165\u7684\u5B8C\u6574\u5173\u952E\u8BCD\u201C\u6210\u957F\u201D\u8FDB\u884C\u641C\u7D22\uFF0C\u641C\u7D22\u7ED3\u679C\u5173\u8054\u6027\u66F4\u9AD8\uFF0C\u4F46\u641C\u7D22\u7ED3\u679C\u66F4\u5C11"
39
+ },
40
+ {
41
+ value: "blur",
42
+ label: "\u6A21\u7CCA\u641C",
43
+ desc: "\u4F1A\u5C06\u8F93\u5165\u5185\u5BB9\u5206\u8BCD\uFF0C\u4F8B\u5982\u201C\u6210\u957F\u201D\u4F1A\u5206\u4E3A\u201C\u6210\u201D\u3001\u201C\u957F\u201D\u3001\u201C\u6210\u957F\u201D\uFF0C\u5185\u5BB9\u5305\u542B\u4E09\u4E2A\u8BCD\u4E2D\u4EFB\u610F\u4E00\u4E2A\u5747\u4F1A\u663E\u793A\u51FA\u6765\uFF0C\u641C\u7D22\u5185\u5BB9\u66F4\u52A0\u4E30\u5BCC"
44
+ }
45
+ ];
46
+ const sortMethodOptions = vue.computed(() => {
47
+ return [
48
+ { value: "pub_time", label: "\u53D1\u5E03\u65F6\u95F4" },
49
+ { value: "create_time", label: "\u521B\u5EFA\u65F6\u95F4" }
50
+ ];
51
+ });
52
+ const checkout = (type) => {
53
+ filter.value.wordState = type;
54
+ };
55
+ const handleSearch = () => {
56
+ const params = JSON.parse(JSON.stringify(filter.value));
57
+ if (filter.value.wordState === "precision") {
58
+ params.precise_kw = params.keywords;
59
+ delete params.keywords;
60
+ }
61
+ delete params.wordState;
62
+ emit("search", params);
63
+ };
64
+ vue.watch(
65
+ () => filter.value,
66
+ () => {
67
+ handleSearch();
68
+ },
69
+ { deep: true }
70
+ );
71
+ vue.watch(
72
+ () => props.groupId,
73
+ (val) => {
74
+ column_id.value = val;
75
+ }
76
+ );
77
+ vue.watch(
78
+ () => props.banner,
79
+ (val) => {
80
+ filter.value.banner = val === "all" ? "" : val;
81
+ },
82
+ { immediate: true }
83
+ );
84
+ vue.watch(
85
+ () => column_id.value,
86
+ (val) => {
87
+ emit("update:group_id", val);
88
+ }
89
+ );
90
+ return (_ctx, _cache) => {
91
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
92
+ vue.createVNode(vue.unref(webVue.Space), { size: "small" }, {
93
+ default: vue.withCtx(() => [
94
+ vue.createVNode(vue.unref(webVue.Input), {
95
+ modelValue: filter.value.keywords,
96
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => filter.value.keywords = $event),
97
+ "allow-clear": "",
98
+ class: "filter-item keyword",
99
+ placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9\u6807\u9898",
100
+ style: { width: "240px" },
101
+ onPressEnter: handleSearch
102
+ }, {
103
+ prepend: vue.withCtx(() => [
104
+ vue.createVNode(vue.unref(webVue.Select), {
105
+ modelValue: filter.value.wordState,
106
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filter.value.wordState = $event),
107
+ placeholder: "\u8BF7\u9009\u62E9",
108
+ onSelect: checkout
109
+ }, {
110
+ default: vue.withCtx(() => [
111
+ (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(wordStateOptions, (item, index) => {
112
+ return vue.createVNode(vue.unref(webVue.Option), {
113
+ key: index,
114
+ value: item.value,
115
+ label: item.label
116
+ }, {
117
+ default: vue.withCtx(() => [
118
+ vue.createElementVNode("div", _hoisted_2, [
119
+ vue.createElementVNode("span", null, vue.toDisplayString(item.label), 1),
120
+ vue.createVNode(vue.unref(webVue.Tooltip), {
121
+ effect: "dark",
122
+ content: item.desc,
123
+ position: "right"
124
+ }, {
125
+ default: vue.withCtx(() => [
126
+ vue.createVNode(vue.unref(icon.IconInfoCircle))
127
+ ]),
128
+ _: 1
129
+ }, 8, ["content"])
130
+ ])
131
+ ]),
132
+ _: 2
133
+ }, 1032, ["value", "label"]);
134
+ }), 64))
135
+ ]),
136
+ _: 1
137
+ }, 8, ["modelValue"])
138
+ ]),
139
+ _: 1
140
+ }, 8, ["modelValue"])
141
+ ]),
142
+ _: 1
143
+ }),
144
+ __props.typeKey && __props.typeKey !== "ZQ" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
145
+ vue.createVNode(vue.unref(webVue.Select), {
146
+ modelValue: filter.value.order,
147
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.order = $event),
148
+ class: "filter-item",
149
+ placeholder: "\u521B\u5EFA\u65F6\u95F4"
150
+ }, {
151
+ default: vue.withCtx(() => [
152
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(sortMethodOptions.value, (item) => {
153
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
154
+ key: item.value,
155
+ label: item.label,
156
+ value: item.value
157
+ }, null, 8, ["label", "value"]);
158
+ }), 128))
159
+ ]),
160
+ _: 1
161
+ }, 8, ["modelValue"])
162
+ ])) : vue.createCommentVNode("v-if", true)
163
+ ]);
164
+ };
165
+ }
166
+ });
167
+ module.exports = _sfc_main;
@@ -0,0 +1,213 @@
1
+ "use strict";
2
+ var vue = require("vue");
3
+ var icon = require("@arco-design/web-vue/es/icon");
4
+ var webVue = require("@arco-design/web-vue");
5
+ var component = require("../../../typeIcons/component.js");
6
+ var index = require("./MediaFilter/index.js");
7
+ var component$1 = require("../../../dataTags/component.js");
8
+ var index$1 = require("../../../utils/index.js");
9
+ var useViewAllColumnState = require("./script/useViewAllColumnState.js");
10
+ var useTableColumns = require("./script/useTableColumns.js");
11
+ require("./index.vue_vue_type_style_index_0_scoped_true_lang.js");
12
+ var pluginVue_exportHelper = require("../../../_virtual/plugin-vue_export-helper.js");
13
+ const _hoisted_1 = { class: "view-all-column-container" };
14
+ const _hoisted_2 = {
15
+ key: 0,
16
+ class: "content-table-view"
17
+ };
18
+ const _hoisted_3 = { class: "title-span" };
19
+ const _hoisted_4 = { class: "title" };
20
+ const _hoisted_5 = { class: "title-span" };
21
+ const _hoisted_6 = { class: "title-span" };
22
+ const _hoisted_7 = {
23
+ key: 1,
24
+ class: "content-table-view"
25
+ };
26
+ const _hoisted_8 = { class: "title-span" };
27
+ const _hoisted_9 = { class: "title" };
28
+ const _hoisted_10 = { class: "title-span" };
29
+ const _hoisted_11 = { class: "title-span" };
30
+ const _hoisted_12 = { class: "bottom-view" };
31
+ const _hoisted_13 = { class: "left" };
32
+ const _sfc_main = vue.defineComponent({
33
+ ...{ name: "ViewAllColumn" },
34
+ __name: "index",
35
+ props: {
36
+ defaultSelectedData: {},
37
+ userInfo: {},
38
+ typeKey: {},
39
+ rid: {}
40
+ },
41
+ emits: ["change"],
42
+ setup(__props, { emit: __emit }) {
43
+ const emit = __emit;
44
+ const props = __props;
45
+ const listMinHeight = vue.ref(0);
46
+ const categoryCascaderData = vue.ref([]);
47
+ const scrollPercent = { y: "100%" };
48
+ const {
49
+ selectedData,
50
+ mediaFileData,
51
+ dataLoading,
52
+ group_id,
53
+ page,
54
+ isItemChecked,
55
+ tableCellMouseEnter,
56
+ tableCellMouseLeave,
57
+ selectTableCell,
58
+ selectTableAll,
59
+ search,
60
+ pageChangeHandle,
61
+ loadData,
62
+ loadMore,
63
+ filter
64
+ } = useViewAllColumnState.useViewAllColumnState(props, emit);
65
+ const { columns, politicalColumns } = useTableColumns.useTableColumns(
66
+ props,
67
+ selectedData,
68
+ isItemChecked,
69
+ filter
70
+ );
71
+ vue.onMounted(() => {
72
+ loadData();
73
+ });
74
+ return (_ctx, _cache) => {
75
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
76
+ vue.createVNode(index, {
77
+ group_id: vue.unref(group_id),
78
+ "onUpdate:group_id": _cache[0] || (_cache[0] = ($event) => vue.isRef(group_id) ? group_id.value = $event : null),
79
+ height: listMinHeight.value,
80
+ tree: categoryCascaderData.value,
81
+ "type-key": __props.typeKey,
82
+ onSearch: vue.unref(search)
83
+ }, null, 8, ["group_id", "height", "tree", "type-key", "onSearch"]),
84
+ __props.typeKey && __props.typeKey !== "ZQ" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
85
+ vue.createVNode(vue.unref(webVue.Table), {
86
+ bordered: false,
87
+ columns: vue.unref(columns),
88
+ data: vue.unref(mediaFileData),
89
+ pagination: false,
90
+ loading: vue.unref(dataLoading),
91
+ scroll: scrollPercent,
92
+ "load-more": vue.unref(loadMore),
93
+ onCellMouseEnter: vue.unref(tableCellMouseEnter),
94
+ onCellMouseLeave: vue.unref(tableCellMouseLeave),
95
+ onRowClick: vue.unref(selectTableCell)
96
+ }, vue.createSlots({
97
+ "expand-icon": vue.withCtx(({ expanded }) => [
98
+ !expanded ? (vue.openBlock(), vue.createBlock(vue.unref(icon.IconRight), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(icon.IconDown), { key: 1 }))
99
+ ]),
100
+ select: vue.withCtx(({ record }) => [
101
+ vue.createVNode(vue.unref(webVue.Checkbox), {
102
+ "model-value": vue.unref(isItemChecked)(vue.unref(selectedData), record),
103
+ class: "icon"
104
+ }, null, 8, ["model-value"])
105
+ ]),
106
+ title: vue.withCtx(({ record }) => [
107
+ vue.createElementVNode("span", _hoisted_3, [
108
+ vue.createVNode(component, {
109
+ type: record.series,
110
+ class: "icon",
111
+ doc: true
112
+ }, null, 8, ["type"]),
113
+ vue.createElementVNode("span", _hoisted_4, vue.toDisplayString(record.title || record.alias || "--"), 1)
114
+ ])
115
+ ]),
116
+ series: vue.withCtx(({ record }) => [
117
+ vue.createVNode(component$1, { item: record }, null, 8, ["item"])
118
+ ]),
119
+ duty_editor: vue.withCtx(({ record }) => [
120
+ vue.createElementVNode("span", _hoisted_5, [
121
+ vue.createElementVNode("span", null, vue.toDisplayString(record.duty_editor || "--"), 1)
122
+ ])
123
+ ]),
124
+ pub_time: vue.withCtx(({ record }) => [
125
+ vue.createElementVNode("span", _hoisted_6, [
126
+ vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(index$1.timeFormat)(record.pub_time)), 1)
127
+ ])
128
+ ]),
129
+ _: 2
130
+ }, [
131
+ __props.typeKey !== "series:special_v3" ? {
132
+ name: "selectTitle",
133
+ fn: vue.withCtx(() => [
134
+ vue.createVNode(vue.unref(webVue.Checkbox), {
135
+ "model-value": vue.unref(selectedData).length === vue.unref(mediaFileData).length,
136
+ class: "icon",
137
+ onChange: vue.unref(selectTableAll)
138
+ }, null, 8, ["model-value", "onChange"])
139
+ ]),
140
+ key: "0"
141
+ } : void 0
142
+ ]), 1032, ["columns", "data", "loading", "load-more", "onCellMouseEnter", "onCellMouseLeave", "onRowClick"])
143
+ ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
144
+ vue.createVNode(vue.unref(webVue.Table), {
145
+ bordered: false,
146
+ columns: vue.unref(politicalColumns),
147
+ data: vue.unref(mediaFileData),
148
+ pagination: false,
149
+ loading: vue.unref(dataLoading),
150
+ scroll: scrollPercent,
151
+ onCellMouseEnter: vue.unref(tableCellMouseEnter),
152
+ onCellMouseLeave: vue.unref(tableCellMouseLeave),
153
+ onRowClick: vue.unref(selectTableCell)
154
+ }, {
155
+ selectTitle: vue.withCtx(() => [
156
+ vue.createVNode(vue.unref(webVue.Checkbox), {
157
+ "model-value": vue.unref(selectedData).length === vue.unref(mediaFileData).length,
158
+ class: "icon",
159
+ onChange: vue.unref(selectTableAll)
160
+ }, null, 8, ["model-value", "onChange"])
161
+ ]),
162
+ select: vue.withCtx(({ record }) => [
163
+ vue.createVNode(vue.unref(webVue.Checkbox), {
164
+ "model-value": vue.unref(isItemChecked)(vue.unref(selectedData), record),
165
+ class: "icon"
166
+ }, null, 8, ["model-value"])
167
+ ]),
168
+ name: vue.withCtx(({ record }) => [
169
+ vue.createElementVNode("span", _hoisted_8, [
170
+ vue.createVNode(component, {
171
+ type: record.series,
172
+ class: "icon",
173
+ doc: ""
174
+ }, null, 8, ["type"]),
175
+ vue.createElementVNode("span", _hoisted_9, vue.toDisplayString(record.name || record.alias || "--"), 1)
176
+ ])
177
+ ]),
178
+ series: vue.withCtx(({ record }) => [
179
+ vue.createVNode(component$1, { item: record }, null, 8, ["item"])
180
+ ]),
181
+ position: vue.withCtx(({ record }) => [
182
+ vue.createElementVNode("span", _hoisted_10, [
183
+ vue.createElementVNode("span", null, vue.toDisplayString(record.position || "--"), 1)
184
+ ])
185
+ ]),
186
+ city_alias: vue.withCtx(({ record }) => [
187
+ vue.createElementVNode("span", _hoisted_11, [
188
+ vue.createElementVNode("span", null, vue.toDisplayString(record.city_alias || "--"), 1)
189
+ ])
190
+ ]),
191
+ _: 1
192
+ }, 8, ["columns", "data", "loading", "onCellMouseEnter", "onCellMouseLeave", "onRowClick"])
193
+ ])),
194
+ vue.createElementVNode("div", _hoisted_12, [
195
+ vue.createElementVNode("div", _hoisted_13, [
196
+ vue.renderSlot(_ctx.$slots, "store", {}, void 0, true),
197
+ vue.withDirectives(vue.createVNode(vue.unref(webVue.Pagination), {
198
+ current: vue.unref(page).index,
199
+ "page-size": vue.unref(page).size,
200
+ total: vue.unref(page).total,
201
+ onChange: vue.unref(pageChangeHandle)
202
+ }, null, 8, ["current", "page-size", "total", "onChange"]), [
203
+ [vue.vShow, vue.unref(mediaFileData).length > 0]
204
+ ])
205
+ ]),
206
+ vue.renderSlot(_ctx.$slots, "options", {}, void 0, true)
207
+ ])
208
+ ]);
209
+ };
210
+ }
211
+ });
212
+ var ViewAllColumn = /* @__PURE__ */ pluginVue_exportHelper(_sfc_main, [["__scopeId", "data-v-01c2d0b8"]]);
213
+ module.exports = ViewAllColumn;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ var index_vue_vue_type_style_index_0_scoped_true_lang = "";
3
+ module.exports = index_vue_vue_type_style_index_0_scoped_true_lang;
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ var vue = require("vue");
4
+ var webVue = require("@arco-design/web-vue");
5
+ var dayjs = require("dayjs");
6
+ function _interopDefaultLegacy(e) {
7
+ return e && typeof e === "object" && "default" in e ? e : { "default": e };
8
+ }
9
+ var dayjs__default = /* @__PURE__ */ _interopDefaultLegacy(dayjs);
10
+ const useTableColumns = (props, selectedData, isItemChecked, filter) => {
11
+ const columns = vue.ref([
12
+ {
13
+ title: "",
14
+ dataIndex: "select",
15
+ slotName: "select",
16
+ width: 40,
17
+ titleSlotName: "selectTitle",
18
+ render: ({ record }) => {
19
+ if (props.typeKey === "series:special_v3") {
20
+ if (record.isLeaf && record.parentId) {
21
+ return vue.h(webVue.Checkbox, {
22
+ modelValue: isItemChecked.value(selectedData.value, record),
23
+ class: "icon"
24
+ });
25
+ }
26
+ return null;
27
+ }
28
+ return vue.h(webVue.Checkbox, {
29
+ modelValue: isItemChecked.value(selectedData.value, record),
30
+ class: "icon"
31
+ });
32
+ }
33
+ },
34
+ {
35
+ title: "\u4E13\u9898/\u680F\u76EE\u540D\u79F0",
36
+ dataIndex: "title",
37
+ slotName: "title",
38
+ width: 428
39
+ },
40
+ {
41
+ title: "\u7F16\u8F91",
42
+ dataIndex: "duty_editor",
43
+ slotName: "duty_editor",
44
+ width: 100
45
+ },
46
+ {
47
+ title: vue.computed(() => {
48
+ var _a;
49
+ return ((_a = filter.value) == null ? void 0 : _a.order) === "pub_time" ? "\u53D1\u5E03\u65F6\u95F4" : "\u521B\u5EFA\u65F6\u95F4";
50
+ }),
51
+ dataIndex: vue.computed(
52
+ () => {
53
+ var _a;
54
+ return ((_a = filter.value) == null ? void 0 : _a.order) === "pub_time" ? "pub_time" : "created_at";
55
+ }
56
+ ),
57
+ slotName: "pub_time",
58
+ width: 150,
59
+ render: ({ record }) => {
60
+ var _a;
61
+ if (((_a = filter.value) == null ? void 0 : _a.order) === "pub_time") {
62
+ const raw2 = record.pub_time;
63
+ if (!raw2)
64
+ return "--";
65
+ const d2 = typeof raw2 === "number" || /^\d+$/.test(raw2) ? dayjs__default["default"].unix(Number(raw2)) : dayjs__default["default"](raw2);
66
+ return d2.isValid() ? d2.format("YYYY-M-D HH:mm") : raw2;
67
+ }
68
+ const raw = record.created_at;
69
+ if (!raw)
70
+ return "--";
71
+ const d = dayjs__default["default"](raw);
72
+ return d.isValid() ? d.format("YYYY-M-D HH:mm") : raw;
73
+ }
74
+ }
75
+ ]);
76
+ const politicalColumns = vue.ref([
77
+ {
78
+ title: "\u52FE",
79
+ dataIndex: "select",
80
+ slotName: "select",
81
+ width: 40,
82
+ titleSlotName: "selectTitle"
83
+ },
84
+ {
85
+ title: "\u653F\u60C5\u4EBA\u7269\u59D3\u540D",
86
+ dataIndex: "name",
87
+ slotName: "name",
88
+ width: 428
89
+ },
90
+ {
91
+ title: "\u804C\u4F4D",
92
+ dataIndex: "position",
93
+ slotName: "position",
94
+ width: 100
95
+ },
96
+ {
97
+ title: "\u5730\u533A",
98
+ dataIndex: "city_alias",
99
+ slotName: "city_alias",
100
+ width: 150
101
+ }
102
+ ]);
103
+ return {
104
+ columns,
105
+ politicalColumns
106
+ };
107
+ };
108
+ exports.useTableColumns = useTableColumns;