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

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 (101) hide show
  1. package/README.md +103 -76
  2. package/dist/index.css +49 -4
  3. package/dist/index.min.css +1 -1
  4. package/es/baseFilter/component.js +71 -14
  5. package/es/config.js +1 -1
  6. package/es/contentDetailList/component.js +24 -0
  7. package/es/contentDetailList/components/Content/index.js +2 -1
  8. package/es/contentDetailList/components/Doc/index.js +6 -0
  9. package/es/docHistory/component.js +41 -12
  10. package/es/docHistory/scripts/diff.js +4 -3
  11. package/es/docHistory/style/index.css +4 -0
  12. package/es/docHistory/style/index.less +5 -0
  13. package/es/hooks/useAttachement.js +2 -9
  14. package/es/hooks/usePopper.d.ts +1 -1
  15. package/es/hooks/usePopper.js +3 -3
  16. package/es/hooks/useUpload.d.ts +50 -2
  17. package/es/hooks/useUpload.js +43 -4
  18. package/es/index.css +49 -4
  19. package/es/index.d.ts +1 -0
  20. package/es/index.js +1 -0
  21. package/es/selectAddTo/component.d.ts +0 -0
  22. package/es/selectAddTo/component.js +125 -0
  23. package/es/selectAddTo/component.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  24. package/es/selectAddTo/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
  25. package/es/selectAddTo/components/ViewAllColumn/MediaFilter/index.js +169 -0
  26. package/es/selectAddTo/components/ViewAllColumn/columnTree/index.d.ts +0 -0
  27. package/es/selectAddTo/components/ViewAllColumn/index.d.ts +0 -0
  28. package/es/selectAddTo/components/ViewAllColumn/index.js +209 -0
  29. package/es/selectAddTo/components/ViewAllColumn/index.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  30. package/es/selectAddTo/components/ViewAllColumn/script/useTableColumns.js +78 -0
  31. package/es/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.d.ts +144 -0
  32. package/es/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +193 -0
  33. package/es/selectAddTo/components/ViewAllColumn/types/index.d.ts +59 -0
  34. package/es/selectAddTo/index.d.ts +2 -0
  35. package/es/selectAddTo/index.js +7 -0
  36. package/es/selectAddTo/script/api.d.ts +18 -0
  37. package/es/selectAddTo/script/api.js +30 -0
  38. package/es/selectAddTo/script/index.d.ts +2 -0
  39. package/es/selectAddTo/script/useSelectAddToState.d.ts +21 -0
  40. package/es/selectAddTo/script/useSelectAddToState.js +106 -0
  41. package/es/selectAddTo/style/css.js +1 -0
  42. package/es/selectAddTo/style/index.css +3 -0
  43. package/es/selectAddTo/style/index.d.ts +1 -0
  44. package/es/selectAddTo/style/index.js +1 -0
  45. package/es/selectAddTo/style/index.less +3 -0
  46. package/es/selectAddTo/types/index.d.ts +42 -0
  47. package/es/selectResourceModal/__demo__/module/DivWrapper.d.ts +268 -0
  48. package/es/selectResourceModal/__demo__/module/basic.d.ts +299 -0
  49. package/es/selectResourceModal/components/List/ListLocal/index.js +8 -3
  50. package/es/selectResourceModal/components/List/ListNormal/Filter.js +201 -89
  51. package/es/selectResourceModal/components/List/ListNormal/index.js +23 -7
  52. package/es/selectResourceModal/hooks/useResponsiveFilter.d.ts +21 -0
  53. package/es/selectResourceModal/hooks/useResponsiveFilter.js +142 -0
  54. package/es/selectResourceModal/scripts/useCompoLf.js +1 -1
  55. package/es/selectResourceModal/style/index.css +45 -4
  56. package/es/selectResourceModal/style/index.less +14 -0
  57. package/es/selectResourceModal/style/list.less +40 -4
  58. package/es/selectThumb/component.js +16 -27
  59. package/es/style.css +57 -0
  60. package/es/typeIcons/component.js +1 -1
  61. package/es/utils/index.js +6 -6
  62. package/lib/baseFilter/component.js +69 -12
  63. package/lib/config.js +1 -1
  64. package/lib/contentDetailList/component.js +24 -0
  65. package/lib/contentDetailList/components/Content/index.js +2 -1
  66. package/lib/contentDetailList/components/Doc/index.js +6 -0
  67. package/lib/docHistory/component.js +39 -10
  68. package/lib/docHistory/scripts/diff.js +4 -3
  69. package/lib/docHistory/style/index.css +4 -0
  70. package/lib/docHistory/style/index.less +5 -0
  71. package/lib/hooks/useAttachement.js +2 -9
  72. package/lib/hooks/usePopper.js +3 -3
  73. package/lib/hooks/useUpload.js +43 -3
  74. package/lib/index.css +49 -4
  75. package/lib/index.js +2 -0
  76. package/lib/selectAddTo/component.js +126 -0
  77. package/lib/selectAddTo/component.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
  78. package/lib/selectAddTo/components/ViewAllColumn/MediaFilter/index.js +170 -0
  79. package/lib/selectAddTo/components/ViewAllColumn/index.js +210 -0
  80. package/lib/selectAddTo/components/ViewAllColumn/index.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
  81. package/lib/selectAddTo/components/ViewAllColumn/script/useTableColumns.js +80 -0
  82. package/lib/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +195 -0
  83. package/lib/selectAddTo/index.js +8 -0
  84. package/lib/selectAddTo/script/api.js +35 -0
  85. package/lib/selectAddTo/script/useSelectAddToState.js +108 -0
  86. package/lib/selectAddTo/style/css.js +2 -0
  87. package/lib/selectAddTo/style/index.css +3 -0
  88. package/lib/selectAddTo/style/index.js +2 -0
  89. package/lib/selectAddTo/style/index.less +3 -0
  90. package/lib/selectResourceModal/components/List/ListLocal/index.js +6 -1
  91. package/lib/selectResourceModal/components/List/ListNormal/Filter.js +198 -86
  92. package/lib/selectResourceModal/components/List/ListNormal/index.js +22 -6
  93. package/lib/selectResourceModal/hooks/useResponsiveFilter.js +144 -0
  94. package/lib/selectResourceModal/scripts/useCompoLf.js +1 -1
  95. package/lib/selectResourceModal/style/index.css +45 -4
  96. package/lib/selectResourceModal/style/index.less +14 -0
  97. package/lib/selectResourceModal/style/list.less +40 -4
  98. package/lib/selectThumb/component.js +16 -27
  99. package/lib/typeIcons/component.js +1 -1
  100. package/lib/utils/index.js +6 -6
  101. package/package.json +1 -1
@@ -109,6 +109,12 @@ const _sfc_main = vue.defineComponent({
109
109
  onCellMouseEnter: tableCellMouseEnter,
110
110
  onCellMouseLeave: tableCellMouseLeave
111
111
  }, {
112
+ "after-index": vue.withCtx(() => [
113
+ vue.renderSlot(_ctx.$slots, "after-index", {
114
+ row: element,
115
+ index: index$4
116
+ })
117
+ ]),
112
118
  batch: vue.withCtx(() => [
113
119
  vue.renderSlot(_ctx.$slots, "batch", {
114
120
  row: element,
@@ -133,6 +139,12 @@ const _sfc_main = vue.defineComponent({
133
139
  onCellMouseEnter: tableCellMouseEnter,
134
140
  onCellMouseLeave: tableCellMouseLeave
135
141
  }, {
142
+ "after-index": vue.withCtx(() => [
143
+ vue.renderSlot(_ctx.$slots, "after-index", {
144
+ row: element,
145
+ index: index$4
146
+ })
147
+ ]),
136
148
  tip: vue.withCtx(() => [
137
149
  vue.renderSlot(_ctx.$slots, "tip", {
138
150
  row: element,
@@ -229,6 +241,12 @@ const _sfc_main = vue.defineComponent({
229
241
  onCellMouseEnter: tableCellMouseEnter,
230
242
  onCellMouseLeave: tableCellMouseLeave
231
243
  }, {
244
+ "after-index": vue.withCtx(() => [
245
+ vue.renderSlot(_ctx.$slots, "after-index", {
246
+ row: item,
247
+ index: index$4
248
+ })
249
+ ]),
232
250
  batch: vue.withCtx(() => [
233
251
  vue.renderSlot(_ctx.$slots, "batch", {
234
252
  row: item,
@@ -253,6 +271,12 @@ const _sfc_main = vue.defineComponent({
253
271
  onCellMouseEnter: tableCellMouseEnter,
254
272
  onCellMouseLeave: tableCellMouseLeave
255
273
  }, {
274
+ "after-index": vue.withCtx(() => [
275
+ vue.renderSlot(_ctx.$slots, "after-index", {
276
+ row: item,
277
+ index: index$4
278
+ })
279
+ ]),
256
280
  tip: vue.withCtx(() => [
257
281
  vue.renderSlot(_ctx.$slots, "tip", {
258
282
  row: item,
@@ -143,7 +143,8 @@ const _sfc_main = vue.defineComponent({
143
143
  })
144
144
  ]),
145
145
  index: vue.withCtx(() => [
146
- vue.createElementVNode("span", _hoisted_1, vue.toDisplayString(_ctx.index + 1), 1)
146
+ vue.createElementVNode("span", _hoisted_1, vue.toDisplayString(_ctx.index + 1), 1),
147
+ vue.renderSlot(_ctx.$slots, "after-index")
147
148
  ]),
148
149
  tip: vue.withCtx(() => [
149
150
  vue.createCommentVNode(" \u5148\u6DFB\u52A0\u6587\u4EF6\u8D44\u6E90\uFF0C\u672A\u53D1\u5E03 "),
@@ -38,6 +38,12 @@ const _sfc_main = vue.defineComponent({
38
38
  index: _ctx.index
39
39
  })
40
40
  ]),
41
+ "after-index": vue.withCtx(() => [
42
+ vue.renderSlot(_ctx.$slots, "after-index", {
43
+ row: _ctx.element,
44
+ index: _ctx.index
45
+ })
46
+ ]),
41
47
  batch: vue.withCtx(() => [
42
48
  vue.renderSlot(_ctx.$slots, "batch", {
43
49
  row: _ctx.item,
@@ -14,9 +14,11 @@ const _sfc_main = vue.defineComponent({
14
14
  __name: "component",
15
15
  props: {
16
16
  BASE_API: {},
17
+ wrap: { default: "drawer" },
17
18
  visible: { type: Boolean },
18
19
  docInfo: {},
19
- pub: { type: Boolean }
20
+ pub: { type: Boolean },
21
+ currentIdx: {}
20
22
  },
21
23
  emits: ["update:visible", "select"],
22
24
  setup(__props, { emit: __emit }) {
@@ -28,6 +30,20 @@ const _sfc_main = vue.defineComponent({
28
30
  emits("update:visible", val);
29
31
  }
30
32
  });
33
+ const wrapProps = vue.computed(() => {
34
+ if (props.wrap === "drawer") {
35
+ return {
36
+ class: "doc-history-drawer-wrap",
37
+ title: "\u7248\u672C\u8BB0\u5F55",
38
+ width: 1e3
39
+ };
40
+ }
41
+ return {
42
+ bodyClass: "doc-history-modal-wrap",
43
+ title: "\u7248\u672C\u8BB0\u5F55",
44
+ width: 1e3
45
+ };
46
+ });
31
47
  const BASE_API = props.BASE_API || config.DEFAULT_BASE_API;
32
48
  const {
33
49
  initParams,
@@ -38,6 +54,10 @@ const _sfc_main = vue.defineComponent({
38
54
  list,
39
55
  current
40
56
  } = useDocHistory.useDocHistory(BASE_API);
57
+ const wrapComponent = {
58
+ drawer: webVue.Drawer,
59
+ modal: webVue.Modal
60
+ };
41
61
  function handeRevert() {
42
62
  emits("select", list.value[current.value]);
43
63
  }
@@ -50,20 +70,29 @@ const _sfc_main = vue.defineComponent({
50
70
  },
51
71
  { immediate: true }
52
72
  );
53
- vue.onMounted(() => {
73
+ vue.watch(
74
+ () => props.currentIdx,
75
+ (val) => {
76
+ if (val) {
77
+ handleSelect(val);
78
+ }
79
+ },
80
+ { immediate: true }
81
+ );
82
+ vue.onMounted(async () => {
54
83
  if (!props.docInfo)
55
84
  return;
56
85
  initParams(props.docInfo.id, props.pub);
57
- loadData();
86
+ await loadData();
87
+ if (props.currentIdx) {
88
+ handleSelect(props.currentIdx);
89
+ }
58
90
  });
59
91
  return (_ctx, _cache) => {
60
- return vue.openBlock(), vue.createBlock(vue.unref(webVue.Drawer), {
92
+ return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(wrapComponent[_ctx.wrap]), vue.mergeProps({
61
93
  visible: vis.value,
62
- "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => vis.value = $event),
63
- class: "doc-history-drawer",
64
- title: "\u7248\u672C\u8BB0\u5F55",
65
- width: 1e3
66
- }, {
94
+ "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => vis.value = $event)
95
+ }, wrapProps.value), {
67
96
  footer: vue.withCtx(() => [
68
97
  vue.createVNode(vue.unref(webVue.Button), {
69
98
  type: "primary",
@@ -124,7 +153,7 @@ const _sfc_main = vue.defineComponent({
124
153
  ])
125
154
  ]),
126
155
  _: 1
127
- }, 8, ["visible"]);
156
+ }, 16, ["visible"]);
128
157
  };
129
158
  }
130
159
  });
@@ -40,15 +40,16 @@ function CompareText(v_LeftList, v_RightList, lftPNode = null) {
40
40
  for (let i = 0; i < rightLen; i++) {
41
41
  if (!rightFather)
42
42
  rightFather = v_RightList[i].parentNode;
43
- const node = v_RightList[i].clone(true);
43
+ const node = v_RightList[i].cloneNode(true);
44
44
  try {
45
45
  rightFather.removeChild(v_RightList[i]);
46
46
  } catch (e) {
47
47
  console.log(e);
48
48
  }
49
- if (lftPNode)
49
+ if (lftPNode && lftPNode.nodeType !== 3) {
50
50
  lftPNode.appendChild(node);
51
- PaintRemove(node);
51
+ PaintRemove(node);
52
+ }
52
53
  }
53
54
  } else if (rightLen === 0) {
54
55
  for (let i = 0; i < leftLen; i++)
@@ -105,3 +105,7 @@
105
105
  .doc-history-drawer .arco-drawer-footer {
106
106
  text-align: left;
107
107
  }
108
+ .doc-history-modal-wrap {
109
+ height: 70vh;
110
+ padding: 0;
111
+ }
@@ -30,3 +30,8 @@
30
30
  text-align: left;
31
31
  }
32
32
  }
33
+
34
+ .doc-history-modal-wrap {
35
+ height: 70vh;
36
+ padding: 0;
37
+ }
@@ -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
  }
@@ -9,16 +9,16 @@ function usePopper(pannel, triggerEl) {
9
9
  };
10
10
  const show = () => {
11
11
  visible.value = true;
12
- window.onclick = (e) => {
12
+ window.onclick = () => {
13
13
  hide();
14
14
  visible.value = false;
15
15
  window.onclick = null;
16
16
  };
17
17
  };
18
- const initPopper = (placement = "bottom-start") => {
18
+ const initPopper = (placement = "bottom-start", of) => {
19
19
  if (!pannel.value || !triggerEl.value)
20
20
  return;
21
- const offset = [0, 10];
21
+ const offset = of != null ? of : [0, 10];
22
22
  if (window.__POWERED_BY_WUJIE__) {
23
23
  offset[1] = -54;
24
24
  }
@@ -75,7 +75,7 @@ function useUpload(options) {
75
75
  list.value = originList;
76
76
  }
77
77
  };
78
- const uploadFile = (BASE_API, file, dir = 0, repoId, callback) => {
78
+ const uploadFile = (BASE_API, file, dir = 0, repoId, callback, upOptions) => {
79
79
  const newFile = {
80
80
  id: file.id || index.generateUUID(),
81
81
  sig_id: file.sig_id || index.generateUUID(),
@@ -95,18 +95,24 @@ function useUpload(options) {
95
95
  };
96
96
  const uploading = upload.start(progress);
97
97
  uploading.then(async (url) => {
98
+ var _a;
98
99
  if (options == null ? void 0 : options.noAddMedia) {
99
100
  recordTaskStatusChange({ ...newFile, status: 0, url }, 1);
100
101
  callback && callback({ ...newFile, url }, "success");
101
102
  return;
102
103
  }
104
+ const params = {};
105
+ if ((_a = upOptions == null ? void 0 : upOptions.template) == null ? void 0 : _a.watermark) {
106
+ params.watermark = upOptions.template.watermark.default;
107
+ }
103
108
  const { code, message } = await addMedia(BASE_API, {
104
109
  url,
105
110
  size: newFile.size,
106
111
  directory_id: dir,
107
112
  repository_id: repoId,
108
113
  catalog: newFile.type,
109
- alias: newFile.name
114
+ alias: newFile.name,
115
+ ...params
110
116
  });
111
117
  if (code !== 0) {
112
118
  console.log("\u{1F525}\u{1F525}\u{1F525}\u{1F525}\u{1F525} \u4E0A\u4F20\u5931\u8D25\uFF1A", newFile.name, code, message);
@@ -196,9 +202,16 @@ function getConfiguration(BASE_API, params) {
196
202
  params
197
203
  });
198
204
  }
205
+ function getWatermarkTemplate(BASE_API) {
206
+ return request(BASE_API, {
207
+ url: `/poplar/v2/material/image/watermark`,
208
+ method: "get"
209
+ });
210
+ }
199
211
  function useUploadConfig() {
200
212
  const { get, set, remove } = useLocalStorage["default"]("LOCAL_UPLOAD_CONFIG");
201
213
  const config = vue.ref(get() || {});
214
+ const template = vue.ref({});
202
215
  async function initUploadConfig(BASE_API, domainId) {
203
216
  if (config.value.size_config_enabled != null)
204
217
  return;
@@ -247,16 +260,43 @@ function useUploadConfig() {
247
260
  );
248
261
  return false;
249
262
  }
263
+ async function initTemplate(BASE_API) {
264
+ try {
265
+ const { code, message } = await getWatermarkTemplate(BASE_API);
266
+ if (code !== 0)
267
+ return;
268
+ if (message) {
269
+ let defaultWaterMark;
270
+ if (Array.isArray(message.images)) {
271
+ message.images.forEach((item) => {
272
+ if (message.default === item.id)
273
+ defaultWaterMark = item;
274
+ });
275
+ }
276
+ template.value = {
277
+ watermark: {
278
+ default: defaultWaterMark,
279
+ images: message.images
280
+ }
281
+ };
282
+ }
283
+ } catch (e) {
284
+ console.error(e);
285
+ }
286
+ }
250
287
  window.addEventListener("beforeunload", remove, false);
251
288
  return {
252
289
  config,
290
+ template,
253
291
  checkFileSizeOutLimit,
254
- initUploadConfig
292
+ initUploadConfig,
293
+ initTemplate
255
294
  };
256
295
  }
257
296
  exports.addMedia = addMedia;
258
297
  exports["default"] = useUpload;
259
298
  exports.getMediaDetails = getMediaDetails;
260
299
  exports.getSize = getSize;
300
+ exports.getWatermarkTemplate = getWatermarkTemplate;
261
301
  exports.reTranscodeMedia = reTranscodeMedia;
262
302
  exports.useUploadConfig = useUploadConfig;
package/lib/index.css CHANGED
@@ -4529,11 +4529,13 @@
4529
4529
  }
4530
4530
  .resource-list-footer,
4531
4531
  .resource-list-header,
4532
+ .resource-list-content .resource-list-content-empty,
4532
4533
  .resource-list-content .arco-scrollbar-container {
4533
4534
  padding: 0 40px;
4534
4535
  }
4535
4536
  .resource-list-footer {
4536
4537
  display: flex;
4538
+ flex-wrap: wrap;
4537
4539
  justify-content: space-between;
4538
4540
  padding-bottom: 20px;
4539
4541
  }
@@ -4543,6 +4545,10 @@
4543
4545
  gap: 10px;
4544
4546
  align-items: center;
4545
4547
  justify-content: flex-end;
4548
+ margin-top: 10px;
4549
+ }
4550
+ .resource-list-footer .footer-right .list-selected-wrapper {
4551
+ font-size: 12px;
4546
4552
  }
4547
4553
  .resource-list-content-loading {
4548
4554
  display: flex;
@@ -4554,7 +4560,7 @@
4554
4560
  .resource-list .list-item-grid {
4555
4561
  display: grid;
4556
4562
  grid-gap: 20px;
4557
- grid-template-columns: repeat(5, 1fr);
4563
+ grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
4558
4564
  }
4559
4565
  .resource-list .list-content {
4560
4566
  margin-top: 30px;
@@ -4597,7 +4603,8 @@
4597
4603
  }
4598
4604
  .resource-list .list-filter-wrapper .list-filter-tags {
4599
4605
  display: flex;
4600
- justify-content: space-between;
4606
+ flex-wrap: wrap;
4607
+ gap: 10px;
4601
4608
  margin-top: 10px;
4602
4609
  }
4603
4610
  .resource-list .list-filter-wrapper .list-filter-tags .list-filter-tag {
@@ -4618,16 +4625,41 @@
4618
4625
  justify-content: space-between;
4619
4626
  }
4620
4627
  .resource-list .list-filter-wrapper .list-filter .filter-list {
4628
+ position: relative;
4629
+ /** 给 popup 一个参考 */
4621
4630
  display: flex;
4622
- flex-wrap: wrap;
4623
- gap: 10px;
4624
4631
  }
4625
4632
  .resource-list .list-filter-wrapper .list-filter .filter-list .filter-item {
4626
4633
  width: 100px;
4634
+ margin-right: 10px;
4635
+ }
4636
+ .resource-list .list-filter-wrapper .list-filter .filter-list .arco-trigger-popup {
4637
+ z-index: 100000 !important;
4627
4638
  }
4628
4639
  .resource-list .list-filter-wrapper .list-filter .arco-input-prepend {
4629
4640
  padding: 0;
4630
4641
  }
4642
+ .resource-list .list-filter-wrapper .list-filter .more-btn {
4643
+ position: relative;
4644
+ /** 给 poperjs 一个参考 */
4645
+ }
4646
+ .resource-list .list-filter-wrapper .list-filter .more-btn .filter-pannel {
4647
+ inset: 40px auto auto auto !important;
4648
+ }
4649
+ .resource-list .list-filter-wrapper .filter-extra {
4650
+ display: flex;
4651
+ gap: 10px;
4652
+ }
4653
+ .resource-list .list-filter-wrapper .filter-pannel {
4654
+ z-index: 100000;
4655
+ display: flex;
4656
+ flex-direction: column;
4657
+ gap: 10px;
4658
+ padding: 10px;
4659
+ background-color: #fff;
4660
+ border-radius: 4px;
4661
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
4662
+ }
4631
4663
  .resource-list .title {
4632
4664
  display: flex;
4633
4665
  gap: 8px;
@@ -4641,6 +4673,10 @@
4641
4673
  height: 16px;
4642
4674
  background-color: #4886ff;
4643
4675
  }
4676
+ .resource-select-wrap {
4677
+ width: 100%;
4678
+ height: 100%;
4679
+ }
4644
4680
  .resource-select-modal-body {
4645
4681
  height: 80vh;
4646
4682
  padding: 0;
@@ -4669,6 +4705,11 @@
4669
4705
  .resource-select-container .resource-select-header .arco-tabs-content {
4670
4706
  display: none !important;
4671
4707
  }
4708
+ .resource-select-container .resource-list-content .resource-list-content-empty {
4709
+ box-sizing: border-box;
4710
+ width: 100%;
4711
+ height: 100%;
4712
+ }
4672
4713
  .iframe-container {
4673
4714
  position: relative;
4674
4715
  height: 95vh;
@@ -4925,6 +4966,10 @@
4925
4966
  .doc-history-drawer .arco-drawer-footer {
4926
4967
  text-align: left;
4927
4968
  }
4969
+ .doc-history-modal-wrap {
4970
+ height: 70vh;
4971
+ padding: 0;
4972
+ }
4928
4973
  .video-thumb {
4929
4974
  display: flex;
4930
4975
  flex-direction: column;
package/lib/index.js CHANGED
@@ -30,6 +30,7 @@ var index$p = require("./docPreview/index.js");
30
30
  var index$q = require("./docHistory/index.js");
31
31
  var index$r = require("./videoThumb/index.js");
32
32
  var index$s = require("./importData/index.js");
33
+ var index$t = require("./selectAddTo/index.js");
33
34
  exports["default"] = components;
34
35
  exports.appCenter = index;
35
36
  exports.messageBox = index$1;
@@ -60,3 +61,4 @@ exports.docPreview = index$p;
60
61
  exports.docHistory = index$q;
61
62
  exports.videoThumb = index$r;
62
63
  exports.importData = index$s;
64
+ exports.selectAddTo = index$t;
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+ var vue = require("vue");
3
+ var webVue = require("@arco-design/web-vue");
4
+ var index = require("./components/ViewAllColumn/index.js");
5
+ require("../typeIcons/style/index.js");
6
+ var useSelectAddToState = require("./script/useSelectAddToState.js");
7
+ require("./component.vue_vue_type_style_index_0_scoped_true_lang.js");
8
+ var pluginVue_exportHelper = require("../_virtual/plugin-vue_export-helper.js");
9
+ const _sfc_main = vue.defineComponent({
10
+ ...{ name: "selectAddTo" },
11
+ __name: "component",
12
+ props: {
13
+ BASE_API: {},
14
+ visible: { type: Boolean },
15
+ title: {},
16
+ outsideSelectData: {},
17
+ defaultSelectedData: {},
18
+ maxSelect: {},
19
+ typeData: {},
20
+ userStore: {},
21
+ compoFilter: { type: Boolean, default: false },
22
+ typeKey: {},
23
+ rid: {}
24
+ },
25
+ emits: ["update:visible", "comfirm"],
26
+ setup(__props, { emit: __emit }) {
27
+ const emit = __emit;
28
+ const props = __props;
29
+ const {
30
+ visible,
31
+ title,
32
+ selectedData,
33
+ hasSelected,
34
+ typeDataController,
35
+ userInfo,
36
+ handleOk,
37
+ handleCancel,
38
+ comfirm,
39
+ HandleOpen,
40
+ HandleClose,
41
+ tabsChange,
42
+ selectedDataChangeHandle,
43
+ loadConfig,
44
+ getUserInfoHandle
45
+ } = useSelectAddToState.useSelectAddToState(props, emit);
46
+ vue.onMounted(() => {
47
+ if (props.userStore) {
48
+ userInfo.value = { BASE_API: props.BASE_API, ...props.userStore };
49
+ } else {
50
+ getUserInfoHandle();
51
+ }
52
+ loadConfig();
53
+ });
54
+ return (_ctx, _cache) => {
55
+ const _component_storeBox = vue.resolveComponent("storeBox");
56
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.Modal), {
57
+ footer: false,
58
+ "mask-closable": false,
59
+ visible: vue.unref(visible),
60
+ "body-class": "add-content-modal-body",
61
+ "modal-class": "add-content-modal-wrapper",
62
+ "title-align": "start",
63
+ "unmount-on-close": "",
64
+ width: "1020px",
65
+ onCancel: vue.unref(handleCancel),
66
+ onClose: vue.unref(HandleClose),
67
+ onOk: vue.unref(handleOk),
68
+ onOpen: vue.unref(HandleOpen)
69
+ }, {
70
+ title: vue.withCtx(() => [
71
+ vue.createTextVNode(vue.toDisplayString(vue.unref(title)), 1)
72
+ ]),
73
+ default: vue.withCtx(() => [
74
+ vue.createVNode(vue.unref(webVue.Tabs), {
75
+ class: "content-tabs",
76
+ justify: "",
77
+ "lazy-load": "",
78
+ onTabClick: vue.unref(tabsChange)
79
+ }, {
80
+ default: vue.withCtx(() => {
81
+ var _a, _b;
82
+ return [
83
+ _ctx.rid ? (vue.openBlock(), vue.createBlock(index, {
84
+ key: 0,
85
+ rid: _ctx.rid,
86
+ "default-selected-data": vue.unref(selectedData),
87
+ "max-select": _ctx.maxSelect,
88
+ "user-info": vue.unref(userInfo),
89
+ "type-key": _ctx.typeKey || "",
90
+ "type-data": vue.unref(typeDataController),
91
+ series: ((_a = vue.unref(typeDataController)) == null ? void 0 : _a.docSeries) || "all",
92
+ banner: ((_b = vue.unref(typeDataController)) == null ? void 0 : _b.docBanner) || "all",
93
+ onChange: vue.unref(selectedDataChangeHandle)
94
+ }, {
95
+ store: vue.withCtx(() => [
96
+ vue.createVNode(_component_storeBox, {
97
+ selectData: vue.unref(selectedData),
98
+ "onUpdate:selectData": _cache[0] || (_cache[0] = ($event) => vue.isRef(selectedData) ? selectedData.value = $event : null)
99
+ }, null, 8, ["selectData"])
100
+ ]),
101
+ options: vue.withCtx(() => [
102
+ vue.createVNode(vue.unref(webVue.Button), {
103
+ disabled: !vue.unref(hasSelected),
104
+ type: "primary",
105
+ onClick: vue.unref(comfirm)
106
+ }, {
107
+ default: vue.withCtx(() => _cache[1] || (_cache[1] = [
108
+ vue.createTextVNode(" \u6DFB\u52A0 ")
109
+ ])),
110
+ _: 1
111
+ }, 8, ["disabled", "onClick"])
112
+ ]),
113
+ _: 1
114
+ }, 8, ["rid", "default-selected-data", "max-select", "user-info", "type-key", "type-data", "series", "banner", "onChange"])) : vue.createCommentVNode("v-if", true)
115
+ ];
116
+ }),
117
+ _: 1
118
+ }, 8, ["onTabClick"])
119
+ ]),
120
+ _: 1
121
+ }, 8, ["visible", "onCancel", "onClose", "onOk", "onOpen"]);
122
+ };
123
+ }
124
+ });
125
+ var _selectAddTo = /* @__PURE__ */ pluginVue_exportHelper(_sfc_main, [["__scopeId", "data-v-4e1a01f6"]]);
126
+ module.exports = _selectAddTo;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ var component_vue_vue_type_style_index_0_scoped_true_lang = "";
3
+ module.exports = component_vue_vue_type_style_index_0_scoped_true_lang;