@cmstops/pro-compo 3.9.1-rc.1 → 3.9.1-rc.3

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 (243) hide show
  1. package/es/config.js +1 -1
  2. package/es/hooks/useAttachement.js +2 -9
  3. package/es/selectResourceModal/components/List/ListNormal/Filter.js +19 -15
  4. package/es/selectResourceModal/scripts/useCompoLf.js +1 -1
  5. package/es/selectThumb/component.js +7 -18
  6. package/lib/config.js +1 -1
  7. package/lib/hooks/useAttachement.js +2 -9
  8. package/lib/selectResourceModal/components/List/ListNormal/Filter.js +18 -14
  9. package/lib/selectResourceModal/scripts/useCompoLf.js +1 -1
  10. package/lib/selectThumb/component.js +7 -18
  11. package/package.json +1 -1
  12. package/es/appCenter/component.d.ts +0 -0
  13. package/es/appCenter/index.d.ts +0 -2
  14. package/es/appCenter/script/api.d.ts +0 -11
  15. package/es/appCenter/script/apps.d.ts +0 -14
  16. package/es/appCenter/script/permissionMap.d.ts +0 -6
  17. package/es/appCenter/script/routeMap.d.ts +0 -4
  18. package/es/appCenter/style/index.d.ts +0 -1
  19. package/es/baseFilter/component.d.ts +0 -0
  20. package/es/baseFilter/components/FilterGroup.d.ts +0 -0
  21. package/es/baseFilter/components/filterItem.d.ts +0 -0
  22. package/es/baseFilter/index.d.ts +0 -2
  23. package/es/baseFilter/style/index.d.ts +0 -1
  24. package/es/baseFilter/useCalcWidth.d.ts +0 -16
  25. package/es/colorPalette/component.d.ts +0 -0
  26. package/es/colorPalette/components/colorPicker.d.ts +0 -0
  27. package/es/colorPalette/index.d.ts +0 -2
  28. package/es/colorPalette/style/index.d.ts +0 -1
  29. package/es/components.d.ts +0 -5
  30. package/es/config.d.ts +0 -4
  31. package/es/contentDetailList/__demo__/matrix/platform.d.ts +0 -36
  32. package/es/contentDetailList/component.d.ts +0 -0
  33. package/es/contentDetailList/components/Content/CompoItem/index.d.ts +0 -0
  34. package/es/contentDetailList/components/Content/ContentListItem/index.d.ts +0 -0
  35. package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.d.ts +0 -0
  36. package/es/contentDetailList/components/Content/DocItem/index.d.ts +0 -0
  37. package/es/contentDetailList/components/Content/DocMpItem/index.d.ts +0 -0
  38. package/es/contentDetailList/components/Content/GroupPieceItem/index.d.ts +0 -0
  39. package/es/contentDetailList/components/Content/KongoNavItem/index.d.ts +0 -0
  40. package/es/contentDetailList/components/Content/LiveItem/index.d.ts +0 -0
  41. package/es/contentDetailList/components/Content/MaccountItem/index.d.ts +0 -0
  42. package/es/contentDetailList/components/Content/courseItem/index.d.ts +0 -0
  43. package/es/contentDetailList/components/Content/funhdItem/index.d.ts +0 -0
  44. package/es/contentDetailList/components/Content/index.d.ts +0 -0
  45. package/es/contentDetailList/components/CustomWrp/CustomItem.d.ts +0 -0
  46. package/es/contentDetailList/components/CustomWrp/index.d.ts +0 -0
  47. package/es/contentDetailList/components/Doc/index.d.ts +0 -0
  48. package/es/contentDetailList/components/Records/MatrixItem/index.d.ts +0 -0
  49. package/es/contentDetailList/components/Records/index.d.ts +0 -0
  50. package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.d.ts +0 -0
  51. package/es/contentDetailList/components/ShowQRCode/index.d.ts +0 -0
  52. package/es/contentDetailList/index.d.ts +0 -2
  53. package/es/contentDetailList/script/api.d.ts +0 -6
  54. package/es/contentDetailList/style/index.d.ts +0 -1
  55. package/es/contentModal/component.d.ts +0 -0
  56. package/es/contentModal/components/CompoList/CompoFilter/index.d.ts +0 -0
  57. package/es/contentModal/components/CompoList/index.d.ts +0 -0
  58. package/es/contentModal/components/ContentList/MediaFilter/index.d.ts +0 -0
  59. package/es/contentModal/components/ContentList/index.d.ts +0 -0
  60. package/es/contentModal/components/Dejin/MediaFilter/index.d.ts +0 -0
  61. package/es/contentModal/components/Dejin/index.d.ts +0 -0
  62. package/es/contentModal/components/EqxiuList/MediaFilter/index.d.ts +0 -0
  63. package/es/contentModal/components/EqxiuList/index.d.ts +0 -0
  64. package/es/contentModal/components/LiveList/MediaFilter/index.d.ts +0 -0
  65. package/es/contentModal/components/LiveList/index.d.ts +0 -0
  66. package/es/contentModal/components/MpAccountList/MpAccountFilter/index.d.ts +0 -0
  67. package/es/contentModal/components/MpAccountList/index.d.ts +0 -0
  68. package/es/contentModal/components/MpContentList/MediaFilter/index.d.ts +0 -0
  69. package/es/contentModal/components/MpContentList/index.d.ts +0 -0
  70. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
  71. package/es/contentModal/components/ViewAllColumn/columnTree/index.d.ts +0 -0
  72. package/es/contentModal/components/ViewAllColumn/index.d.ts +0 -0
  73. package/es/contentModal/components/storeBox/index.d.ts +0 -0
  74. package/es/contentModal/index.d.ts +0 -2
  75. package/es/contentModal/script/api.d.ts +0 -18
  76. package/es/contentModal/style/index.d.ts +0 -1
  77. package/es/dataTags/component.d.ts +0 -0
  78. package/es/dataTags/index.d.ts +0 -2
  79. package/es/dataTags/style/index.d.ts +0 -1
  80. package/es/docHistory/component.d.ts +0 -0
  81. package/es/docHistory/components/DocDiffPanel/index.d.ts +0 -0
  82. package/es/docHistory/components/DocHistoryList/index.d.ts +0 -0
  83. package/es/docHistory/index.d.ts +0 -2
  84. package/es/docHistory/scripts/diff.d.ts +0 -1
  85. package/es/docHistory/scripts/useDocHistory.d.ts +0 -10
  86. package/es/docHistory/style/index.d.ts +0 -1
  87. package/es/docPreview/component.d.ts +0 -0
  88. package/es/docPreview/components/PreviewIframe.d.ts +0 -0
  89. package/es/docPreview/index.d.ts +0 -2
  90. package/es/docPreview/scripts/api.d.ts +0 -1
  91. package/es/docPreview/scripts/hook.d.ts +0 -33
  92. package/es/docPreview/style/index.d.ts +0 -1
  93. package/es/editMetaInfo/component.d.ts +0 -0
  94. package/es/editMetaInfo/components/metaInfoForm.d.ts +0 -0
  95. package/es/editMetaInfo/index.d.ts +0 -2
  96. package/es/editMetaInfo/script/api.d.ts +0 -6
  97. package/es/editMetaInfo/script/restaurants.d.ts +0 -4
  98. package/es/editMetaInfo/style/index.d.ts +0 -1
  99. package/es/emptyData/component.d.ts +0 -0
  100. package/es/emptyData/index.d.ts +0 -2
  101. package/es/emptyData/style/index.d.ts +0 -1
  102. package/es/emptyData/svg/add.d.ts +0 -0
  103. package/es/hooks/assets.d.ts +0 -1
  104. package/es/hooks/batch.d.ts +0 -8
  105. package/es/hooks/dialogVisible.d.ts +0 -8
  106. package/es/hooks/source.d.ts +0 -9
  107. package/es/hooks/toggle.d.ts +0 -6
  108. package/es/hooks/useAttachement.d.ts +0 -53
  109. package/es/hooks/useLocalStorage.d.ts +0 -10
  110. package/es/hooks/useMediaContext.d.ts +0 -12
  111. package/es/hooks/usePopper.d.ts +0 -8
  112. package/es/hooks/useSelection.d.ts +0 -30
  113. package/es/hooks/useUpload.d.ts +0 -30
  114. package/es/hooks/user.d.ts +0 -9
  115. package/es/imageCrop/component.d.ts +0 -0
  116. package/es/imageCrop/index.d.ts +0 -2
  117. package/es/imageCrop/script/api.d.ts +0 -1
  118. package/es/imageCrop/style/index.d.ts +0 -1
  119. package/es/importData/component.d.ts +0 -0
  120. package/es/importData/index.d.ts +0 -2
  121. package/es/importData/style/index.d.ts +0 -1
  122. package/es/index.d.ts +0 -30
  123. package/es/mediaFilter/component.d.ts +0 -0
  124. package/es/mediaFilter/components/DocFilter.d.ts +0 -0
  125. package/es/mediaFilter/components/FilterGroup.d.ts +0 -0
  126. package/es/mediaFilter/components/FilterItem.d.ts +0 -0
  127. package/es/mediaFilter/components/MpAccountFilter.d.ts +0 -0
  128. package/es/mediaFilter/components/MpContentFilter.d.ts +0 -0
  129. package/es/mediaFilter/index.d.ts +0 -3
  130. package/es/mediaFilter/script/optionsGetter.d.ts +0 -26
  131. package/es/mediaFilter/script/types.d.ts +0 -16
  132. package/es/mediaFilter/style/index.d.ts +0 -1
  133. package/es/mediaView/component.d.ts +0 -0
  134. package/es/mediaView/index.d.ts +0 -2
  135. package/es/mediaView/style/index.d.ts +0 -1
  136. package/es/messageBox/component.d.ts +0 -0
  137. package/es/messageBox/index.d.ts +0 -2
  138. package/es/messageBox/list.d.ts +0 -0
  139. package/es/messageBox/script/api.d.ts +0 -6
  140. package/es/messageBox/style/index.d.ts +0 -1
  141. package/es/previousVersion/component.d.ts +0 -0
  142. package/es/previousVersion/index.d.ts +0 -2
  143. package/es/previousVersion/script/api.d.ts +0 -15
  144. package/es/previousVersion/script/tool.d.ts +0 -6
  145. package/es/previousVersion/style/index.d.ts +0 -1
  146. package/es/resourceGridList/component.d.ts +0 -0
  147. package/es/resourceGridList/components/FileTypeThumb/index.d.ts +0 -0
  148. package/es/resourceGridList/index.d.ts +0 -2
  149. package/es/resourceGridList/style/index.d.ts +0 -1
  150. package/es/resourceModal/component.d.ts +0 -0
  151. package/es/resourceModal/components/MediaPreviewer/index.d.ts +0 -0
  152. package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.d.ts +0 -0
  153. package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.d.ts +0 -0
  154. package/es/resourceModal/components/MediaSelection/MainContent/index.d.ts +0 -0
  155. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.d.ts +0 -0
  156. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.d.ts +0 -0
  157. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.d.ts +0 -0
  158. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.d.ts +0 -0
  159. package/es/resourceModal/components/MediaSelection/index.d.ts +0 -0
  160. package/es/resourceModal/index.d.ts +0 -2
  161. package/es/resourceModal/script/api.d.ts +0 -25
  162. package/es/resourceModal/script/mediaSelection.d.ts +0 -14
  163. package/es/resourceModal/style/index.d.ts +0 -1
  164. package/es/selectAvatarList/component.d.ts +0 -0
  165. package/es/selectAvatarList/index.d.ts +0 -2
  166. package/es/selectAvatarList/style/index.d.ts +0 -1
  167. package/es/selectGategory/component.d.ts +0 -0
  168. package/es/selectGategory/components/ColumnSelection/index.d.ts +0 -0
  169. package/es/selectGategory/index.d.ts +0 -2
  170. package/es/selectGategory/script/api.d.ts +0 -6
  171. package/es/selectGategory/style/index.d.ts +0 -1
  172. package/es/selectResourceModal/component.d.ts +0 -0
  173. package/es/selectResourceModal/components/List/ListAi/index.d.ts +0 -0
  174. package/es/selectResourceModal/components/List/ListCardWrapper.d.ts +0 -0
  175. package/es/selectResourceModal/components/List/ListLocal/Upload.d.ts +0 -0
  176. package/es/selectResourceModal/components/List/ListLocal/index.d.ts +0 -0
  177. package/es/selectResourceModal/components/List/ListNormal/Filter.d.ts +0 -0
  178. package/es/selectResourceModal/components/List/ListNormal/index.d.ts +0 -0
  179. package/es/selectResourceModal/components/List/ListSystem/Filter.d.ts +0 -0
  180. package/es/selectResourceModal/components/List/ListSystem/SubList.d.ts +0 -0
  181. package/es/selectResourceModal/components/List/ListSystem/index.d.ts +0 -0
  182. package/es/selectResourceModal/components/List/ListVideo/index.d.ts +0 -0
  183. package/es/selectResourceModal/components/List/ListWraper.d.ts +0 -0
  184. package/es/selectResourceModal/components/ListSelected/index.d.ts +0 -0
  185. package/es/selectResourceModal/components/ListTabs/index.d.ts +0 -0
  186. package/es/selectResourceModal/index.d.ts +0 -2
  187. package/es/selectResourceModal/scripts/selectionApis.d.ts +0 -2
  188. package/es/selectResourceModal/scripts/useCompoLf.d.ts +0 -27
  189. package/es/selectResourceModal/scripts/useResourceSelect.d.ts +0 -7
  190. package/es/selectResourceModal/scripts/useTabFilter.d.ts +0 -22
  191. package/es/selectResourceModal/style/index.d.ts +0 -1
  192. package/es/selectThumb/component.d.ts +0 -0
  193. package/es/selectThumb/components/card.d.ts +0 -0
  194. package/es/selectThumb/components/colorPalette.d.ts +0 -0
  195. package/es/selectThumb/components/colorPicker.d.ts +0 -0
  196. package/es/selectThumb/index.d.ts +0 -2
  197. package/es/selectThumb/style/index.d.ts +0 -1
  198. package/es/thumbCard/component.d.ts +0 -0
  199. package/es/thumbCard/components/ThumbUploading/index.d.ts +0 -0
  200. package/es/thumbCard/index.d.ts +0 -2
  201. package/es/thumbCard/style/index.d.ts +0 -1
  202. package/es/typeIcons/component.d.ts +0 -0
  203. package/es/typeIcons/index.d.ts +0 -2
  204. package/es/typeIcons/style/index.d.ts +0 -1
  205. package/es/uploadBefore/component.d.ts +0 -0
  206. package/es/uploadBefore/components/UploadBefore.d.ts +0 -0
  207. package/es/uploadBefore/components/UploadForClick.d.ts +0 -0
  208. package/es/uploadBefore/index.d.ts +0 -2
  209. package/es/uploadBefore/script/api.d.ts +0 -16
  210. package/es/uploadBefore/script/fileTypeAdapter.d.ts +0 -39
  211. package/es/uploadBefore/script/fileUpload.d.ts +0 -7
  212. package/es/uploadBefore/script/uploadHooks.d.ts +0 -96
  213. package/es/uploadBefore/style/index.d.ts +0 -1
  214. package/es/uploadBefore/utils/dragUploadEvent.d.ts +0 -0
  215. package/es/uploadStep/component.d.ts +0 -0
  216. package/es/uploadStep/index.d.ts +0 -2
  217. package/es/uploadStep/script/fileTypeAdapter.d.ts +0 -20
  218. package/es/uploadStep/style/index.d.ts +0 -1
  219. package/es/userAvater/component.d.ts +0 -0
  220. package/es/userAvater/index.d.ts +0 -2
  221. package/es/userAvater/script/api.d.ts +0 -8
  222. package/es/userAvater/style/index.d.ts +0 -1
  223. package/es/userDirector/component.d.ts +0 -0
  224. package/es/userDirector/components/userTree.d.ts +0 -0
  225. package/es/userDirector/index.d.ts +0 -2
  226. package/es/userDirector/script/api.d.ts +0 -10
  227. package/es/userDirector/style/index.d.ts +0 -1
  228. package/es/utils/auth.d.ts +0 -5
  229. package/es/utils/date.d.ts +0 -3
  230. package/es/utils/doc.d.ts +0 -76
  231. package/es/utils/filter.d.ts +0 -21
  232. package/es/utils/index.d.ts +0 -17
  233. package/es/utils/request.d.ts +0 -9
  234. package/es/utils/resource.d.ts +0 -4
  235. package/es/utils/transcodeMedia.d.ts +0 -13
  236. package/es/utils/tusUpload.d.ts +0 -16
  237. package/es/utils/typeMap.d.ts +0 -185
  238. package/es/utils/uploadCatalog.d.ts +0 -1
  239. package/es/videoThumb/component.d.ts +0 -0
  240. package/es/videoThumb/index.d.ts +0 -2
  241. package/es/videoThumb/scripts/api.d.ts +0 -9
  242. package/es/videoThumb/scripts/useVideoThumbs.d.ts +0 -12
  243. package/es/videoThumb/style/index.d.ts +0 -1
package/es/config.js CHANGED
@@ -1,5 +1,5 @@
1
1
  var _a, _b, _c, _d, _e, _f, _g, _h;
2
- const DEFAULT_BASE_API = ((_b = (_a = window.situoyun) == null ? void 0 : _a.env) == null ? void 0 : _b.BASE_HOST) || "https://site.cmstop.xyz";
2
+ const DEFAULT_BASE_API = ((_b = (_a = window.situoyun) == null ? void 0 : _a.env) == null ? void 0 : _b.BASE_HOST) || "https://site.r.cmstop.xyz";
3
3
  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";
4
4
  const DEFAULT_UPLOAD_CHUNK_SIZE = ((_f = (_e = window.situoyun) == null ? void 0 : _e.env) == null ? void 0 : _f.UPLOAD_CHUNK_SIZE) || 5242880;
5
5
  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";
@@ -110,7 +110,7 @@ function getSysRsPage(BASE_API, params) {
110
110
  }
111
111
  function getDirectory(BASE_API, params) {
112
112
  return request(BASE_API, {
113
- url: "/poplar/v3/directories",
113
+ url: "/poplar/v3/directory/tree",
114
114
  method: "get",
115
115
  params
116
116
  });
@@ -123,14 +123,7 @@ function useDirectory(options) {
123
123
  if (code === 0) {
124
124
  if (!Array.isArray(message.data))
125
125
  return [];
126
- return message.data.map(({ alias, id }) => {
127
- return {
128
- title: alias,
129
- key: id,
130
- isLeaf: false,
131
- children: []
132
- };
133
- });
126
+ return message.data;
134
127
  }
135
128
  return [];
136
129
  }
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, inject, computed, ref, watch, onMounted, openBlock, createElementBlock, createElementVNode, createCommentVNode, createVNode, unref, withCtx, createTextVNode, toDisplayString, Fragment, renderList, createBlock, normalizeClass } from "vue";
2
- import { Input, Dropdown, Doption, Button, Select, Option, TreeSelect, RangePicker } from "@arco-design/web-vue";
2
+ import { Input, Dropdown, Doption, Button, TreeSelect, Select, Option, RangePicker } from "@arco-design/web-vue";
3
3
  import { IconUpload } from "@arco-design/web-vue/es/icon";
4
4
  import useSelection from "../../../../hooks/useSelection.js";
5
5
  import { useDirectory } from "../../../../hooks/useAttachement.js";
@@ -12,7 +12,7 @@ const _hoisted_3 = { class: "filter-list" };
12
12
  const _hoisted_4 = { style: { "width": "200px" } };
13
13
  const _hoisted_5 = {
14
14
  class: "filter-item",
15
- style: { "width": "200px" }
15
+ style: { "width": "170px" }
16
16
  };
17
17
  const _hoisted_6 = { class: "filter-item" };
18
18
  const _hoisted_7 = {
@@ -57,7 +57,7 @@ const _sfc_main = defineComponent({
57
57
  });
58
58
  const resourceSource = RESOURCE_SOURCE_OPTIONS;
59
59
  const resourceCatalog = RESOURCE_CATALOG_OPTIONS;
60
- const { tree, loadMore: loadDirMore } = useDirectory({
60
+ const { tree } = useDirectory({
61
61
  BASE_API: baseAPI
62
62
  });
63
63
  const originFilter = {
@@ -211,15 +211,29 @@ const _sfc_main = defineComponent({
211
211
  _: 1
212
212
  }, 8, ["modelValue"])
213
213
  ]),
214
+ createCommentVNode(" \u76EE\u5F55 "),
215
+ createVNode(unref(TreeSelect), {
216
+ modelValue: filter.value.directory_id,
217
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.directory_id = $event),
218
+ data: unref(tree),
219
+ placeholder: "\u8BF7\u9009\u62E9\u76EE\u5F55",
220
+ style: { "width": "120px" },
221
+ "field-names": {
222
+ title: "alias",
223
+ key: "id"
224
+ },
225
+ "allow-clear": ""
226
+ }, null, 8, ["modelValue", "data"]),
214
227
  createCommentVNode(" \u7D20\u6750\u7C7B\u578B "),
215
228
  createElementVNode("div", _hoisted_5, [
216
229
  createVNode(unref(Select), {
217
230
  modelValue: filter.value.catalog,
218
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.catalog = $event),
231
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => filter.value.catalog = $event),
219
232
  disabled: (_a = unref(filterOptions)) == null ? void 0 : _a.mediaTypeStrict,
220
233
  "allow-clear": "",
221
234
  placeholder: "\u7C7B\u578B",
222
- multiple: ""
235
+ multiple: "",
236
+ "max-tag-count": 1
223
237
  }, {
224
238
  default: withCtx(() => [
225
239
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(resourceCatalog), (item) => {
@@ -233,16 +247,6 @@ const _sfc_main = defineComponent({
233
247
  _: 1
234
248
  }, 8, ["modelValue", "disabled"])
235
249
  ]),
236
- createCommentVNode(" \u76EE\u5F55 "),
237
- createVNode(unref(TreeSelect), {
238
- modelValue: filter.value.directory_id,
239
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => filter.value.directory_id = $event),
240
- data: unref(tree),
241
- "load-more": unref(loadDirMore),
242
- placeholder: "\u8BF7\u9009\u62E9\u76EE\u5F55",
243
- style: { "width": "180px" },
244
- "allow-clear": ""
245
- }, null, 8, ["modelValue", "data", "load-more"]),
246
250
  createCommentVNode(" \u65F6\u95F4\u8303\u56F4 "),
247
251
  createVNode(unref(RangePicker), {
248
252
  modelValue: rangeTime.value,
@@ -7,7 +7,7 @@ function useCompoentLifycycle(props, emits, handler) {
7
7
  return {
8
8
  class: "resource-select-drawer",
9
9
  header: false,
10
- width: "1024px",
10
+ width: "85vw",
11
11
  footer: false,
12
12
  unmountOnClose: true
13
13
  };
@@ -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;
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";
@@ -112,7 +112,7 @@ function getSysRsPage(BASE_API, params) {
112
112
  }
113
113
  function getDirectory(BASE_API, params) {
114
114
  return request(BASE_API, {
115
- url: "/poplar/v3/directories",
115
+ url: "/poplar/v3/directory/tree",
116
116
  method: "get",
117
117
  params
118
118
  });
@@ -125,14 +125,7 @@ function useDirectory(options) {
125
125
  if (code === 0) {
126
126
  if (!Array.isArray(message.data))
127
127
  return [];
128
- return message.data.map(({ alias, id }) => {
129
- return {
130
- title: alias,
131
- key: id,
132
- isLeaf: false,
133
- children: []
134
- };
135
- });
128
+ return message.data;
136
129
  }
137
130
  return [];
138
131
  }
@@ -13,7 +13,7 @@ const _hoisted_3 = { class: "filter-list" };
13
13
  const _hoisted_4 = { style: { "width": "200px" } };
14
14
  const _hoisted_5 = {
15
15
  class: "filter-item",
16
- style: { "width": "200px" }
16
+ style: { "width": "170px" }
17
17
  };
18
18
  const _hoisted_6 = { class: "filter-item" };
19
19
  const _hoisted_7 = {
@@ -58,7 +58,7 @@ const _sfc_main = vue.defineComponent({
58
58
  });
59
59
  const resourceSource = typeMap.RESOURCE_SOURCE_OPTIONS;
60
60
  const resourceCatalog = typeMap.RESOURCE_CATALOG_OPTIONS;
61
- const { tree, loadMore: loadDirMore } = useAttachement.useDirectory({
61
+ const { tree } = useAttachement.useDirectory({
62
62
  BASE_API: baseAPI
63
63
  });
64
64
  const originFilter = {
@@ -212,15 +212,29 @@ const _sfc_main = vue.defineComponent({
212
212
  _: 1
213
213
  }, 8, ["modelValue"])
214
214
  ]),
215
+ vue.createCommentVNode(" \u76EE\u5F55 "),
216
+ vue.createVNode(vue.unref(webVue.TreeSelect), {
217
+ modelValue: filter.value.directory_id,
218
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.directory_id = $event),
219
+ data: vue.unref(tree),
220
+ placeholder: "\u8BF7\u9009\u62E9\u76EE\u5F55",
221
+ style: { "width": "120px" },
222
+ "field-names": {
223
+ title: "alias",
224
+ key: "id"
225
+ },
226
+ "allow-clear": ""
227
+ }, null, 8, ["modelValue", "data"]),
215
228
  vue.createCommentVNode(" \u7D20\u6750\u7C7B\u578B "),
216
229
  vue.createElementVNode("div", _hoisted_5, [
217
230
  vue.createVNode(vue.unref(webVue.Select), {
218
231
  modelValue: filter.value.catalog,
219
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.catalog = $event),
232
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => filter.value.catalog = $event),
220
233
  disabled: (_a = vue.unref(filterOptions)) == null ? void 0 : _a.mediaTypeStrict,
221
234
  "allow-clear": "",
222
235
  placeholder: "\u7C7B\u578B",
223
- multiple: ""
236
+ multiple: "",
237
+ "max-tag-count": 1
224
238
  }, {
225
239
  default: vue.withCtx(() => [
226
240
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(resourceCatalog), (item) => {
@@ -234,16 +248,6 @@ const _sfc_main = vue.defineComponent({
234
248
  _: 1
235
249
  }, 8, ["modelValue", "disabled"])
236
250
  ]),
237
- vue.createCommentVNode(" \u76EE\u5F55 "),
238
- vue.createVNode(vue.unref(webVue.TreeSelect), {
239
- modelValue: filter.value.directory_id,
240
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => filter.value.directory_id = $event),
241
- data: vue.unref(tree),
242
- "load-more": vue.unref(loadDirMore),
243
- placeholder: "\u8BF7\u9009\u62E9\u76EE\u5F55",
244
- style: { "width": "180px" },
245
- "allow-clear": ""
246
- }, null, 8, ["modelValue", "data", "load-more"]),
247
251
  vue.createCommentVNode(" \u65F6\u95F4\u8303\u56F4 "),
248
252
  vue.createVNode(vue.unref(webVue.RangePicker), {
249
253
  modelValue: rangeTime.value,
@@ -8,7 +8,7 @@ function useCompoentLifycycle(props, emits, handler) {
8
8
  return {
9
9
  class: "resource-select-drawer",
10
10
  header: false,
11
- width: "1024px",
11
+ width: "85vw",
12
12
  footer: false,
13
13
  unmountOnClose: true
14
14
  };
@@ -352,9 +352,11 @@ const _sfc_main = vue.defineComponent({
352
352
  if (!props.dataValue)
353
353
  return;
354
354
  if (styleData.value.model === oldData.value.model) {
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;
355
+ vue.nextTick(() => {
356
+ styleData.value.data = oldData.value.data;
357
+ styleData.value.cover_theme_color = oldData.value.cover_theme_color;
358
+ styleData.value.cover_colorList = oldData.value.cover_colorList;
359
+ });
358
360
  } else {
359
361
  styleData.value.data = [];
360
362
  }
@@ -410,21 +412,8 @@ const _sfc_main = vue.defineComponent({
410
412
  callback(styleData2);
411
413
  };
412
414
  vue.onMounted(() => {
413
- if (!styleData.value.cover_url) {
414
- setTimeout(() => {
415
- styleData.value.cover_url = styleData.value.data[0].url;
416
- const getColors = index.getThemeColor(BASE_API, styleData.value.data[0].url);
417
- getColors.then((themes) => {
418
- styleData.value.cover_colorList = JSON.parse(JSON.stringify(themes));
419
- styleData.value.cover_theme_color = `rgb(${themes[1]})`;
420
- oldData.value = JSON.parse(JSON.stringify(styleData.value));
421
- callback(styleData.value);
422
- }).catch((e) => {
423
- styleData.value.banner_theme_color = `rgb(255, 255, 255)`;
424
- callback(styleData.value);
425
- });
426
- }, 700);
427
- }
415
+ if (!styleData.value.cover_url)
416
+ ;
428
417
  });
429
418
  return (_ctx, _cache) => {
430
419
  var _a, _b, _c, _d, _e, _f;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmstops/pro-compo",
3
- "version": "3.9.1-rc.1",
3
+ "version": "3.9.1-rc.3",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vue",
File without changes
@@ -1,2 +0,0 @@
1
- declare const appCenter: any;
2
- export default appCenter;
@@ -1,11 +0,0 @@
1
- interface Params {
2
- repo_id?: string;
3
- app_id?: number;
4
- [key: string]: any;
5
- }
6
- export declare function getUserRepoActs(BASE_API: string): Promise<import("axios").AxiosResponse<any, any>>;
7
- export declare function getPubApps(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any>>;
8
- export declare function getResentApp(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any>>;
9
- export declare function setResentApp(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any>>;
10
- export declare function getBtnSlot(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any>>;
11
- export {};
@@ -1,14 +0,0 @@
1
- declare const _default: {
2
- alias: string;
3
- actions: {
4
- id: number;
5
- key: string;
6
- alias: string;
7
- brief: string;
8
- real: string;
9
- type: number;
10
- icon: string;
11
- target_url: string;
12
- }[];
13
- }[];
14
- export default _default;
@@ -1,6 +0,0 @@
1
- declare type PermissionItem = {
2
- key: string;
3
- real: string | string[];
4
- };
5
- export default function permissionMap(permissions: string[], item: PermissionItem, hideList?: string[]): boolean;
6
- export {};
@@ -1,4 +0,0 @@
1
- export default function routeMap(BASE_API: string, rid: string | null | undefined, listType: string, app?: {
2
- type: number;
3
- setting?: any;
4
- } | null): Promise<void>;
@@ -1 +0,0 @@
1
- import './index.less';
File without changes
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- declare const baseFilter: any;
2
- export default baseFilter;
@@ -1 +0,0 @@
1
- import './index.less';
@@ -1,16 +0,0 @@
1
- import { Ref } from 'vue';
2
- /**
3
- * @deprecated 改为其他方式实现
4
- * @param filterItemsRef
5
- * @param dpPannelRef
6
- * @param moreBtnRef
7
- * @returns
8
- */
9
- export default function useCalcWidth(filterItemsRef: Ref<HTMLElement | undefined>, dpPannelRef: Ref<HTMLElement | undefined>, moreBtnRef: Ref<HTMLElement | undefined>): {
10
- pannelArray: Ref<string, string>;
11
- popperShowFlag: Ref<boolean, boolean>;
12
- showPopper: () => void;
13
- initDocWidthListener: () => void;
14
- initPopper: () => void;
15
- checkOverflow: () => void;
16
- };
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- declare const colorPalette: any;
2
- export default colorPalette;
@@ -1 +0,0 @@
1
- import './index.less';
@@ -1,5 +0,0 @@
1
- import type { App } from 'vue';
2
- declare const Components: {
3
- install: (app: App) => void;
4
- };
5
- export default Components;
package/es/config.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export declare const DEFAULT_BASE_API: any;
2
- export declare const DEFAULT_BASE_ACCOUNT_HOST: any;
3
- export declare const DEFAULT_UPLOAD_CHUNK_SIZE: number;
4
- export declare const DEFAULT_UPLOAD_URL: string;
@@ -1,36 +0,0 @@
1
- declare const platform: ({
2
- id: number;
3
- key: string;
4
- name: string;
5
- indexUrl: string;
6
- isDataAsync: boolean;
7
- type: string[];
8
- pfIcon?: undefined;
9
- } | {
10
- id: number;
11
- key: string;
12
- name: string;
13
- indexUrl: string;
14
- pfIcon: string;
15
- isDataAsync: boolean;
16
- type: string[];
17
- })[];
18
- export declare function getPlatformInfoById(id: number): any;
19
- export declare const accounts: {
20
- id: number;
21
- createdAt: string;
22
- updatedAt: string;
23
- deletedAt: null;
24
- thirdId: string;
25
- authorId: string;
26
- platformAccountId: string;
27
- avatar: string;
28
- name: string;
29
- platformId: number;
30
- cookie: string;
31
- token: string;
32
- lastRequestAt: number;
33
- lastSyncAt: number;
34
- state: number;
35
- }[];
36
- export default platform;
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- declare const contentDetailList: any;
2
- export default contentDetailList;
@@ -1,6 +0,0 @@
1
- interface Params {
2
- [key: string]: any;
3
- }
4
- export declare function generateDocPreviewLink(BASE_API: string, query?: Params): Promise<import("axios").AxiosResponse<any, any>>;
5
- export declare function getDocDetailsNew(BASE_API: string, query?: Params): Promise<import("axios").AxiosResponse<any, any>>;
6
- export {};
@@ -1 +0,0 @@
1
- import './index.less';
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- declare const contentModal: any;
2
- export default contentModal;
@@ -1,18 +0,0 @@
1
- interface Params {
2
- [key: string]: any;
3
- }
4
- export declare function getCategoryCategoriesTree(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
5
- export declare function getCategoryPath(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
6
- export declare function getCategoryMediaNew(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
7
- export declare function checkCommitFulfillment(BASE_API: string, params?: Params): Promise<boolean>;
8
- export declare function searchMlists(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
9
- export declare function getCategorylistsGroups(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
10
- export declare function searchMpaccount(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
11
- export declare function getBroadcastList(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
12
- export declare function getEqxiuList(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
13
- export declare function getMpContentList(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
14
- export declare function getRevealContent(BASE_API: string, params: any): Promise<import("axios").AxiosResponse<any, any>>;
15
- export declare function getConfigurationNew(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
16
- export declare function getReporterContent(BASE_API: string, params: any): Promise<import("axios").AxiosResponse<any, any>>;
17
- export declare function getTypeConfig(BASE_API: string, params: any): Promise<import("axios").AxiosResponse<any, any>>;
18
- export {};
@@ -1 +0,0 @@
1
- import './index.less';
File without changes
@@ -1,2 +0,0 @@
1
- declare const dataTags: any;
2
- export default dataTags;
@@ -1 +0,0 @@
1
- import './index.less';
File without changes
File without changes