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

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 (239) hide show
  1. package/es/hooks/useAttachement.js +2 -9
  2. package/es/selectResourceModal/components/List/ListNormal/Filter.js +19 -15
  3. package/es/selectResourceModal/scripts/useCompoLf.js +1 -1
  4. package/lib/hooks/useAttachement.js +2 -9
  5. package/lib/selectResourceModal/components/List/ListNormal/Filter.js +18 -14
  6. package/lib/selectResourceModal/scripts/useCompoLf.js +1 -1
  7. package/package.json +1 -1
  8. package/es/appCenter/component.d.ts +0 -0
  9. package/es/appCenter/index.d.ts +0 -2
  10. package/es/appCenter/script/api.d.ts +0 -11
  11. package/es/appCenter/script/apps.d.ts +0 -14
  12. package/es/appCenter/script/permissionMap.d.ts +0 -6
  13. package/es/appCenter/script/routeMap.d.ts +0 -4
  14. package/es/appCenter/style/index.d.ts +0 -1
  15. package/es/baseFilter/component.d.ts +0 -0
  16. package/es/baseFilter/components/FilterGroup.d.ts +0 -0
  17. package/es/baseFilter/components/filterItem.d.ts +0 -0
  18. package/es/baseFilter/index.d.ts +0 -2
  19. package/es/baseFilter/style/index.d.ts +0 -1
  20. package/es/baseFilter/useCalcWidth.d.ts +0 -16
  21. package/es/colorPalette/component.d.ts +0 -0
  22. package/es/colorPalette/components/colorPicker.d.ts +0 -0
  23. package/es/colorPalette/index.d.ts +0 -2
  24. package/es/colorPalette/style/index.d.ts +0 -1
  25. package/es/components.d.ts +0 -5
  26. package/es/config.d.ts +0 -4
  27. package/es/contentDetailList/__demo__/matrix/platform.d.ts +0 -36
  28. package/es/contentDetailList/component.d.ts +0 -0
  29. package/es/contentDetailList/components/Content/CompoItem/index.d.ts +0 -0
  30. package/es/contentDetailList/components/Content/ContentListItem/index.d.ts +0 -0
  31. package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.d.ts +0 -0
  32. package/es/contentDetailList/components/Content/DocItem/index.d.ts +0 -0
  33. package/es/contentDetailList/components/Content/DocMpItem/index.d.ts +0 -0
  34. package/es/contentDetailList/components/Content/GroupPieceItem/index.d.ts +0 -0
  35. package/es/contentDetailList/components/Content/KongoNavItem/index.d.ts +0 -0
  36. package/es/contentDetailList/components/Content/LiveItem/index.d.ts +0 -0
  37. package/es/contentDetailList/components/Content/MaccountItem/index.d.ts +0 -0
  38. package/es/contentDetailList/components/Content/courseItem/index.d.ts +0 -0
  39. package/es/contentDetailList/components/Content/funhdItem/index.d.ts +0 -0
  40. package/es/contentDetailList/components/Content/index.d.ts +0 -0
  41. package/es/contentDetailList/components/CustomWrp/CustomItem.d.ts +0 -0
  42. package/es/contentDetailList/components/CustomWrp/index.d.ts +0 -0
  43. package/es/contentDetailList/components/Doc/index.d.ts +0 -0
  44. package/es/contentDetailList/components/Records/MatrixItem/index.d.ts +0 -0
  45. package/es/contentDetailList/components/Records/index.d.ts +0 -0
  46. package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.d.ts +0 -0
  47. package/es/contentDetailList/components/ShowQRCode/index.d.ts +0 -0
  48. package/es/contentDetailList/index.d.ts +0 -2
  49. package/es/contentDetailList/script/api.d.ts +0 -6
  50. package/es/contentDetailList/style/index.d.ts +0 -1
  51. package/es/contentModal/component.d.ts +0 -0
  52. package/es/contentModal/components/CompoList/CompoFilter/index.d.ts +0 -0
  53. package/es/contentModal/components/CompoList/index.d.ts +0 -0
  54. package/es/contentModal/components/ContentList/MediaFilter/index.d.ts +0 -0
  55. package/es/contentModal/components/ContentList/index.d.ts +0 -0
  56. package/es/contentModal/components/Dejin/MediaFilter/index.d.ts +0 -0
  57. package/es/contentModal/components/Dejin/index.d.ts +0 -0
  58. package/es/contentModal/components/EqxiuList/MediaFilter/index.d.ts +0 -0
  59. package/es/contentModal/components/EqxiuList/index.d.ts +0 -0
  60. package/es/contentModal/components/LiveList/MediaFilter/index.d.ts +0 -0
  61. package/es/contentModal/components/LiveList/index.d.ts +0 -0
  62. package/es/contentModal/components/MpAccountList/MpAccountFilter/index.d.ts +0 -0
  63. package/es/contentModal/components/MpAccountList/index.d.ts +0 -0
  64. package/es/contentModal/components/MpContentList/MediaFilter/index.d.ts +0 -0
  65. package/es/contentModal/components/MpContentList/index.d.ts +0 -0
  66. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
  67. package/es/contentModal/components/ViewAllColumn/columnTree/index.d.ts +0 -0
  68. package/es/contentModal/components/ViewAllColumn/index.d.ts +0 -0
  69. package/es/contentModal/components/storeBox/index.d.ts +0 -0
  70. package/es/contentModal/index.d.ts +0 -2
  71. package/es/contentModal/script/api.d.ts +0 -18
  72. package/es/contentModal/style/index.d.ts +0 -1
  73. package/es/dataTags/component.d.ts +0 -0
  74. package/es/dataTags/index.d.ts +0 -2
  75. package/es/dataTags/style/index.d.ts +0 -1
  76. package/es/docHistory/component.d.ts +0 -0
  77. package/es/docHistory/components/DocDiffPanel/index.d.ts +0 -0
  78. package/es/docHistory/components/DocHistoryList/index.d.ts +0 -0
  79. package/es/docHistory/index.d.ts +0 -2
  80. package/es/docHistory/scripts/diff.d.ts +0 -1
  81. package/es/docHistory/scripts/useDocHistory.d.ts +0 -10
  82. package/es/docHistory/style/index.d.ts +0 -1
  83. package/es/docPreview/component.d.ts +0 -0
  84. package/es/docPreview/components/PreviewIframe.d.ts +0 -0
  85. package/es/docPreview/index.d.ts +0 -2
  86. package/es/docPreview/scripts/api.d.ts +0 -1
  87. package/es/docPreview/scripts/hook.d.ts +0 -33
  88. package/es/docPreview/style/index.d.ts +0 -1
  89. package/es/editMetaInfo/component.d.ts +0 -0
  90. package/es/editMetaInfo/components/metaInfoForm.d.ts +0 -0
  91. package/es/editMetaInfo/index.d.ts +0 -2
  92. package/es/editMetaInfo/script/api.d.ts +0 -6
  93. package/es/editMetaInfo/script/restaurants.d.ts +0 -4
  94. package/es/editMetaInfo/style/index.d.ts +0 -1
  95. package/es/emptyData/component.d.ts +0 -0
  96. package/es/emptyData/index.d.ts +0 -2
  97. package/es/emptyData/style/index.d.ts +0 -1
  98. package/es/emptyData/svg/add.d.ts +0 -0
  99. package/es/hooks/assets.d.ts +0 -1
  100. package/es/hooks/batch.d.ts +0 -8
  101. package/es/hooks/dialogVisible.d.ts +0 -8
  102. package/es/hooks/source.d.ts +0 -9
  103. package/es/hooks/toggle.d.ts +0 -6
  104. package/es/hooks/useAttachement.d.ts +0 -53
  105. package/es/hooks/useLocalStorage.d.ts +0 -10
  106. package/es/hooks/useMediaContext.d.ts +0 -12
  107. package/es/hooks/usePopper.d.ts +0 -8
  108. package/es/hooks/useSelection.d.ts +0 -30
  109. package/es/hooks/useUpload.d.ts +0 -30
  110. package/es/hooks/user.d.ts +0 -9
  111. package/es/imageCrop/component.d.ts +0 -0
  112. package/es/imageCrop/index.d.ts +0 -2
  113. package/es/imageCrop/script/api.d.ts +0 -1
  114. package/es/imageCrop/style/index.d.ts +0 -1
  115. package/es/importData/component.d.ts +0 -0
  116. package/es/importData/index.d.ts +0 -2
  117. package/es/importData/style/index.d.ts +0 -1
  118. package/es/index.d.ts +0 -30
  119. package/es/mediaFilter/component.d.ts +0 -0
  120. package/es/mediaFilter/components/DocFilter.d.ts +0 -0
  121. package/es/mediaFilter/components/FilterGroup.d.ts +0 -0
  122. package/es/mediaFilter/components/FilterItem.d.ts +0 -0
  123. package/es/mediaFilter/components/MpAccountFilter.d.ts +0 -0
  124. package/es/mediaFilter/components/MpContentFilter.d.ts +0 -0
  125. package/es/mediaFilter/index.d.ts +0 -3
  126. package/es/mediaFilter/script/optionsGetter.d.ts +0 -26
  127. package/es/mediaFilter/script/types.d.ts +0 -16
  128. package/es/mediaFilter/style/index.d.ts +0 -1
  129. package/es/mediaView/component.d.ts +0 -0
  130. package/es/mediaView/index.d.ts +0 -2
  131. package/es/mediaView/style/index.d.ts +0 -1
  132. package/es/messageBox/component.d.ts +0 -0
  133. package/es/messageBox/index.d.ts +0 -2
  134. package/es/messageBox/list.d.ts +0 -0
  135. package/es/messageBox/script/api.d.ts +0 -6
  136. package/es/messageBox/style/index.d.ts +0 -1
  137. package/es/previousVersion/component.d.ts +0 -0
  138. package/es/previousVersion/index.d.ts +0 -2
  139. package/es/previousVersion/script/api.d.ts +0 -15
  140. package/es/previousVersion/script/tool.d.ts +0 -6
  141. package/es/previousVersion/style/index.d.ts +0 -1
  142. package/es/resourceGridList/component.d.ts +0 -0
  143. package/es/resourceGridList/components/FileTypeThumb/index.d.ts +0 -0
  144. package/es/resourceGridList/index.d.ts +0 -2
  145. package/es/resourceGridList/style/index.d.ts +0 -1
  146. package/es/resourceModal/component.d.ts +0 -0
  147. package/es/resourceModal/components/MediaPreviewer/index.d.ts +0 -0
  148. package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.d.ts +0 -0
  149. package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.d.ts +0 -0
  150. package/es/resourceModal/components/MediaSelection/MainContent/index.d.ts +0 -0
  151. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.d.ts +0 -0
  152. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.d.ts +0 -0
  153. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.d.ts +0 -0
  154. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.d.ts +0 -0
  155. package/es/resourceModal/components/MediaSelection/index.d.ts +0 -0
  156. package/es/resourceModal/index.d.ts +0 -2
  157. package/es/resourceModal/script/api.d.ts +0 -25
  158. package/es/resourceModal/script/mediaSelection.d.ts +0 -14
  159. package/es/resourceModal/style/index.d.ts +0 -1
  160. package/es/selectAvatarList/component.d.ts +0 -0
  161. package/es/selectAvatarList/index.d.ts +0 -2
  162. package/es/selectAvatarList/style/index.d.ts +0 -1
  163. package/es/selectGategory/component.d.ts +0 -0
  164. package/es/selectGategory/components/ColumnSelection/index.d.ts +0 -0
  165. package/es/selectGategory/index.d.ts +0 -2
  166. package/es/selectGategory/script/api.d.ts +0 -6
  167. package/es/selectGategory/style/index.d.ts +0 -1
  168. package/es/selectResourceModal/component.d.ts +0 -0
  169. package/es/selectResourceModal/components/List/ListAi/index.d.ts +0 -0
  170. package/es/selectResourceModal/components/List/ListCardWrapper.d.ts +0 -0
  171. package/es/selectResourceModal/components/List/ListLocal/Upload.d.ts +0 -0
  172. package/es/selectResourceModal/components/List/ListLocal/index.d.ts +0 -0
  173. package/es/selectResourceModal/components/List/ListNormal/Filter.d.ts +0 -0
  174. package/es/selectResourceModal/components/List/ListNormal/index.d.ts +0 -0
  175. package/es/selectResourceModal/components/List/ListSystem/Filter.d.ts +0 -0
  176. package/es/selectResourceModal/components/List/ListSystem/SubList.d.ts +0 -0
  177. package/es/selectResourceModal/components/List/ListSystem/index.d.ts +0 -0
  178. package/es/selectResourceModal/components/List/ListVideo/index.d.ts +0 -0
  179. package/es/selectResourceModal/components/List/ListWraper.d.ts +0 -0
  180. package/es/selectResourceModal/components/ListSelected/index.d.ts +0 -0
  181. package/es/selectResourceModal/components/ListTabs/index.d.ts +0 -0
  182. package/es/selectResourceModal/index.d.ts +0 -2
  183. package/es/selectResourceModal/scripts/selectionApis.d.ts +0 -2
  184. package/es/selectResourceModal/scripts/useCompoLf.d.ts +0 -27
  185. package/es/selectResourceModal/scripts/useResourceSelect.d.ts +0 -7
  186. package/es/selectResourceModal/scripts/useTabFilter.d.ts +0 -22
  187. package/es/selectResourceModal/style/index.d.ts +0 -1
  188. package/es/selectThumb/component.d.ts +0 -0
  189. package/es/selectThumb/components/card.d.ts +0 -0
  190. package/es/selectThumb/components/colorPalette.d.ts +0 -0
  191. package/es/selectThumb/components/colorPicker.d.ts +0 -0
  192. package/es/selectThumb/index.d.ts +0 -2
  193. package/es/selectThumb/style/index.d.ts +0 -1
  194. package/es/thumbCard/component.d.ts +0 -0
  195. package/es/thumbCard/components/ThumbUploading/index.d.ts +0 -0
  196. package/es/thumbCard/index.d.ts +0 -2
  197. package/es/thumbCard/style/index.d.ts +0 -1
  198. package/es/typeIcons/component.d.ts +0 -0
  199. package/es/typeIcons/index.d.ts +0 -2
  200. package/es/typeIcons/style/index.d.ts +0 -1
  201. package/es/uploadBefore/component.d.ts +0 -0
  202. package/es/uploadBefore/components/UploadBefore.d.ts +0 -0
  203. package/es/uploadBefore/components/UploadForClick.d.ts +0 -0
  204. package/es/uploadBefore/index.d.ts +0 -2
  205. package/es/uploadBefore/script/api.d.ts +0 -16
  206. package/es/uploadBefore/script/fileTypeAdapter.d.ts +0 -39
  207. package/es/uploadBefore/script/fileUpload.d.ts +0 -7
  208. package/es/uploadBefore/script/uploadHooks.d.ts +0 -96
  209. package/es/uploadBefore/style/index.d.ts +0 -1
  210. package/es/uploadBefore/utils/dragUploadEvent.d.ts +0 -0
  211. package/es/uploadStep/component.d.ts +0 -0
  212. package/es/uploadStep/index.d.ts +0 -2
  213. package/es/uploadStep/script/fileTypeAdapter.d.ts +0 -20
  214. package/es/uploadStep/style/index.d.ts +0 -1
  215. package/es/userAvater/component.d.ts +0 -0
  216. package/es/userAvater/index.d.ts +0 -2
  217. package/es/userAvater/script/api.d.ts +0 -8
  218. package/es/userAvater/style/index.d.ts +0 -1
  219. package/es/userDirector/component.d.ts +0 -0
  220. package/es/userDirector/components/userTree.d.ts +0 -0
  221. package/es/userDirector/index.d.ts +0 -2
  222. package/es/userDirector/script/api.d.ts +0 -10
  223. package/es/userDirector/style/index.d.ts +0 -1
  224. package/es/utils/auth.d.ts +0 -5
  225. package/es/utils/date.d.ts +0 -3
  226. package/es/utils/doc.d.ts +0 -76
  227. package/es/utils/filter.d.ts +0 -21
  228. package/es/utils/index.d.ts +0 -17
  229. package/es/utils/request.d.ts +0 -9
  230. package/es/utils/resource.d.ts +0 -4
  231. package/es/utils/transcodeMedia.d.ts +0 -13
  232. package/es/utils/tusUpload.d.ts +0 -16
  233. package/es/utils/typeMap.d.ts +0 -185
  234. package/es/utils/uploadCatalog.d.ts +0 -1
  235. package/es/videoThumb/component.d.ts +0 -0
  236. package/es/videoThumb/index.d.ts +0 -2
  237. package/es/videoThumb/scripts/api.d.ts +0 -9
  238. package/es/videoThumb/scripts/useVideoThumbs.d.ts +0 -12
  239. package/es/videoThumb/style/index.d.ts +0 -1
@@ -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
  };
@@ -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
  };
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.2",
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
@@ -1,2 +0,0 @@
1
- declare const docHistory: any;
2
- export default docHistory;
@@ -1 +0,0 @@
1
- export declare function CompareById2(leftNode: HTMLElement, rightNode: HTMLElement): string;
@@ -1,10 +0,0 @@
1
- export declare function getDocHistory(BASE_API: string, id: number, pub: boolean): Promise<import("axios").AxiosResponse<any, any>>;
2
- export declare function useDocHistory(BASE_API: string): {
3
- diffContent: import("vue").Ref<any, any>;
4
- current: import("vue").Ref<number, number>;
5
- loading: import("vue").Ref<boolean, boolean>;
6
- list: import("vue").Ref<any[], any[]>;
7
- loadData: () => Promise<void>;
8
- initParams: (mediaId: number, docPub: boolean) => void;
9
- handleSelect: (idx: number) => Promise<void>;
10
- };
@@ -1 +0,0 @@
1
- import './index.less';
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- declare const docPreview: any;
2
- export default docPreview;
@@ -1 +0,0 @@
1
- export declare function generateDocPreviewLink(BASE_API: string, params: any): Promise<import("axios").AxiosResponse<any, any>>;
@@ -1,33 +0,0 @@
1
- import { Ref } from 'vue';
2
- export declare function generateDocPreviewLink(BASE_API: string, params: any): Promise<import("axios").AxiosResponse<any, any>>;
3
- export declare const EXPIRE_TIME_OPTIONS: {
4
- label: string;
5
- value: number;
6
- }[];
7
- declare type ShareDataType = {
8
- qrCode: string;
9
- shareUrl: string;
10
- expiredAt: number;
11
- };
12
- export declare function useDocPreview(BASE_API: string, hashid: Ref<string>): {
13
- genQrCode: (shareUrl: string, selector: string) => void;
14
- generate: (cancel?: boolean | undefined) => Promise<boolean>;
15
- cancel: (update?: boolean | undefined) => Promise<void>;
16
- copy: () => Promise<void>;
17
- qrCode: Ref<string, string>;
18
- isPublish: Ref<boolean, boolean>;
19
- loading: Ref<boolean, boolean>;
20
- expireTime: Ref<number, number>;
21
- innerUrl: Ref<string, string>;
22
- shareData: Ref<{
23
- qrCode: string;
24
- shareUrl: string;
25
- expiredAt: number;
26
- } | null, ShareDataType | {
27
- qrCode: string;
28
- shareUrl: string;
29
- expiredAt: number;
30
- } | null>;
31
- intervalTime: Ref<string, string>;
32
- };
33
- export {};
@@ -1 +0,0 @@
1
- import './index.less';
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- declare const editMetaInfo: any;
2
- export default editMetaInfo;
@@ -1,6 +0,0 @@
1
- interface Params {
2
- [key: string]: any;
3
- }
4
- export declare function getDocDetailsNew(BASE_API: string, query: Params): Promise<import("axios").AxiosResponse<any, any>>;
5
- export declare function getAllDutyEditor(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any>>;
6
- export {};
@@ -1,4 +0,0 @@
1
- declare const _default: {
2
- value: string;
3
- }[];
4
- export default _default;