@cmstops/pro-compo 3.9.1-rc.13 → 3.9.1-rc.15

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 (28) hide show
  1. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +6 -177
  2. package/es/contentModal/components/ViewAllColumn/index.js +0 -1
  3. package/es/contentModal/script/api.js +1 -7
  4. package/es/selectAddTo/component.js +23 -103
  5. package/es/selectAddTo/components/SelectAddToView.js +91 -0
  6. package/es/selectAddTo/components/SelectAddToView.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  7. package/es/selectAddTo/components/ViewAllColumn/MediaFilter/index.js +0 -3
  8. package/es/selectAddTo/components/ViewAllColumn/index.js +17 -16
  9. package/es/selectAddTo/components/ViewAllColumn/script/useTableColumns.js +1 -1
  10. package/es/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +0 -13
  11. package/es/selectAddTo/script/api.js +1 -8
  12. package/es/selectAddTo/script/useSelectAddToState.js +16 -67
  13. package/es/style.css +18 -12
  14. package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +5 -176
  15. package/lib/contentModal/components/ViewAllColumn/index.js +0 -1
  16. package/lib/contentModal/script/api.js +0 -7
  17. package/lib/selectAddTo/component.js +22 -102
  18. package/lib/selectAddTo/components/SelectAddToView.js +92 -0
  19. package/lib/selectAddTo/components/SelectAddToView.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
  20. package/lib/selectAddTo/components/ViewAllColumn/MediaFilter/index.js +0 -3
  21. package/lib/selectAddTo/components/ViewAllColumn/index.js +16 -15
  22. package/lib/selectAddTo/components/ViewAllColumn/script/useTableColumns.js +1 -1
  23. package/lib/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +0 -13
  24. package/lib/selectAddTo/script/api.js +0 -8
  25. package/lib/selectAddTo/script/useSelectAddToState.js +16 -67
  26. package/package.json +1 -1
  27. package/es/contentModal/components/ViewAllColumn/columnTree/index.js +0 -151
  28. package/lib/contentModal/components/ViewAllColumn/columnTree/index.js +0 -152
@@ -1,20 +1,16 @@
1
1
  import { computed, ref } from "vue";
2
- import { getConfigurationNew } from "./api.js";
3
2
  import { DEFAULT_BASE_API } from "../../config.js";
4
- import useLoadUserInfo from "../../hooks/user.js";
5
3
  const useSelectAddToState = (props, emit) => {
6
- const BASE_API = props.BASE_API || DEFAULT_BASE_API;
4
+ props.BASE_API || DEFAULT_BASE_API;
7
5
  const visible = computed({
8
6
  get() {
9
7
  return props.visible;
10
8
  },
11
9
  set(value) {
12
- setVisible(value);
10
+ emit("update:visible", value);
13
11
  }
14
12
  });
15
13
  const selectedData = ref([]);
16
- const configData = ref({});
17
- const { userInfo, getUserInfoHandle } = useLoadUserInfo(BASE_API);
18
14
  const title = computed(() => {
19
15
  const titleMap = {
20
16
  "series:video_album": "\u6DFB\u52A0\u81F3\u89C6\u9891\u5408\u96C6",
@@ -25,82 +21,35 @@ const useSelectAddToState = (props, emit) => {
25
21
  return titleMap[props.typeKey || ""] || "";
26
22
  });
27
23
  const hasSelected = computed(() => selectedData.value.length > 0);
28
- const typeDataController = computed(() => {
29
- if (!props.typeData)
30
- return {};
31
- try {
32
- return JSON.parse(JSON.stringify(props.typeData));
33
- } catch (e) {
34
- console.warn("Failed to parse typeData:", e);
35
- return {};
36
- }
37
- });
38
- const setVisible = (bool) => {
39
- emit("update:visible", bool);
40
- };
41
- const selectedDataChangeHandle = (data) => {
24
+ const onSelectedDataChange = (data) => {
42
25
  selectedData.value = data;
43
26
  };
44
- const handleOk = () => {
45
- setVisible(false);
27
+ const onOk = () => {
28
+ visible.value = false;
46
29
  };
47
- const handleCancel = () => {
48
- setVisible(false);
30
+ const onCancel = () => {
31
+ visible.value = false;
49
32
  };
50
- const comfirm = () => {
33
+ const onComfirm = () => {
51
34
  emit("comfirm", JSON.parse(JSON.stringify(selectedData.value)));
52
35
  };
53
- const HandleOpen = () => {
54
- selectedData.value = props.defaultSelectedData || [];
55
- };
56
- const HandleClose = () => {
36
+ const onClose = () => {
57
37
  selectedData.value = [];
58
38
  };
59
- const tabsChange = () => {
39
+ const onTabChange = () => {
60
40
  selectedData.value = [];
61
41
  };
62
- const loadConfig = async () => {
63
- var _a;
64
- try {
65
- const res = await getConfigurationNew(BASE_API, {
66
- module: "third_party_services"
67
- });
68
- if (res.code === 0 && ((_a = res.message) == null ? void 0 : _a.length)) {
69
- res.message.forEach((item) => {
70
- configData.value[item.key] = JSON.parse(item.value);
71
- });
72
- }
73
- } catch (error) {
74
- console.error("Failed to load configuration:", error);
75
- }
76
- };
77
- const checkServiceEnable = (key) => {
78
- const data = configData.value[key];
79
- if (!data)
80
- return false;
81
- if (!data.enable && typeof data.enable !== "undefined")
82
- return false;
83
- return true;
84
- };
85
42
  return {
86
43
  visible,
87
44
  title,
88
45
  selectedData,
89
46
  hasSelected,
90
- typeDataController,
91
- userInfo,
92
- configData,
93
- setVisible,
94
- selectedDataChangeHandle,
95
- handleOk,
96
- handleCancel,
97
- comfirm,
98
- HandleOpen,
99
- HandleClose,
100
- tabsChange,
101
- loadConfig,
102
- checkServiceEnable,
103
- getUserInfoHandle
47
+ onSelectedDataChange,
48
+ onOk,
49
+ onCancel,
50
+ onComfirm,
51
+ onClose,
52
+ onTabChange
104
53
  };
105
54
  };
106
55
  export { useSelectAddToState };
package/es/style.css CHANGED
@@ -1,7 +1,7 @@
1
- .content-tabs[data-v-191c2141] .arco-tabs-content {
1
+ .content-tabs[data-v-7f81762c] .arco-tabs-content {
2
2
  padding: 0;
3
3
  }
4
- .add-content-modal-body[data-v-191c2141] {
4
+ .add-content-modal-body[data-v-7f81762c] {
5
5
  padding: 0;
6
6
  }
7
7
  .type-icons-container {
@@ -10,54 +10,60 @@
10
10
  line-height: 12px;
11
11
  font-size: 18px;
12
12
  }
13
- .view-all-column-container[data-v-510948a5] {
13
+ .content-tabs[data-v-00adfb7c] .arco-tabs-content {
14
+ padding: 0;
15
+ }
16
+ .add-content-modal-body[data-v-00adfb7c] {
17
+ padding: 0;
18
+ }
19
+ .view-all-column-container[data-v-01c2d0b8] {
14
20
  display: flex;
15
21
  flex-direction: column;
16
22
  height: 100%;
17
23
  }
18
- .content-table-view[data-v-510948a5] {
24
+ .content-table-view[data-v-01c2d0b8] {
19
25
  flex: 1;
20
26
  overflow: auto;
21
27
  margin: 16px 0;
22
28
  }
23
- .bottom-view[data-v-510948a5] {
29
+ .bottom-view[data-v-01c2d0b8] {
24
30
  display: flex;
25
31
  justify-content: space-between;
26
32
  align-items: center;
27
33
  padding: 16px 0;
28
34
  }
29
- .bottom-view .left[data-v-510948a5] {
35
+ .bottom-view .left[data-v-01c2d0b8] {
30
36
  display: flex;
31
37
  align-items: center;
32
38
  gap: 16px;
33
39
  }
34
- .title-span[data-v-510948a5] {
40
+ .title-span[data-v-01c2d0b8] {
35
41
  display: flex;
36
42
  align-items: center;
37
43
  gap: 8px;
38
44
  }
39
- .title-span .icon[data-v-510948a5] {
45
+ .title-span .icon[data-v-01c2d0b8] {
40
46
  font-size: 16px;
41
47
  }
42
- .title-span .title[data-v-510948a5] {
48
+ .title-span .title[data-v-01c2d0b8] {
43
49
  flex: 1;
44
50
  overflow: hidden;
45
51
  text-overflow: ellipsis;
46
52
  white-space: nowrap;
47
53
  }
48
- .pic-thumb-img[data-v-510948a5] {
54
+ .pic-thumb-img[data-v-01c2d0b8] {
49
55
  width: 80px;
50
56
  height: 80px;
51
57
  object-fit: cover;
52
58
  border-radius: 4px;
53
59
  }
54
- .pic-thumb-img.placeholder[data-v-510948a5] {
60
+ .pic-thumb-img.placeholder[data-v-01c2d0b8] {
55
61
  background-color: #f5f5f5;
56
62
  display: flex;
57
63
  align-items: center;
58
64
  justify-content: center;
59
65
  }
60
- .pic-thumb-img.placeholder .placeholder-text[data-v-510948a5] {
66
+ .pic-thumb-img.placeholder .placeholder-text[data-v-01c2d0b8] {
61
67
  color: #999;
62
68
  font-size: 12px;
63
69
  }
@@ -2,8 +2,6 @@
2
2
  var vue = require("vue");
3
3
  var webVue = require("@arco-design/web-vue");
4
4
  var icon = require("@arco-design/web-vue/es/icon");
5
- var doc = require("../../../../utils/doc.js");
6
- var index = require("../columnTree/index.js");
7
5
  const _hoisted_1 = { class: "media-filter-container" };
8
6
  const _hoisted_2 = { style: { "display": "flex", "align-items": "center", "gap": "5px" } };
9
7
  const _hoisted_3 = { class: "sort-button" };
@@ -13,10 +11,7 @@ const _sfc_main = vue.defineComponent({
13
11
  props: {
14
12
  groupId: {},
15
13
  tree: { default: () => [] },
16
- series: { default: "all" },
17
- banner: { default: "all" },
18
- height: {},
19
- userInfo: {}
14
+ height: {}
20
15
  },
21
16
  emits: ["update:group_id", "search"],
22
17
  setup(__props, { emit: __emit }) {
@@ -44,82 +39,12 @@ const _sfc_main = vue.defineComponent({
44
39
  desc: "\u4F1A\u5C06\u8F93\u5165\u5185\u5BB9\u5206\u8BCD\uFF0C\u4F8B\u5982\u201C\u6210\u957F\u201D\u4F1A\u5206\u4E3A\u201C\u6210\u201D\u3001\u201C\u957F\u201D\u3001\u201C\u6210\u957F\u201D\uFF0C\u5185\u5BB9\u5305\u542B\u4E09\u4E2A\u8BCD\u4E2D\u4EFB\u610F\u4E00\u4E2A\u5747\u4F1A\u663E\u793A\u51FA\u6765\uFF0C\u641C\u7D22\u5185\u5BB9\u66F4\u52A0\u4E30\u5BCC"
45
40
  }
46
41
  ];
47
- const bannerOptions = vue.computed(() => {
48
- const options = [
49
- {
50
- value: "0",
51
- key: "0",
52
- label: "\u65E0\u72EC\u7ACB\u8F6E\u64AD"
53
- },
54
- {
55
- value: "1",
56
- key: "1",
57
- label: "\u6709\u72EC\u7ACB\u8F6E\u64AD"
58
- }
59
- ];
60
- return options.filter(
61
- (item) => props.banner === "all" || props.banner === item.key
62
- );
63
- });
64
- const typeOptions = vue.computed(() => {
65
- const arr = Object.keys(doc.docSeries).map((key) => {
66
- return {
67
- value: key,
68
- label: doc.docSeries[key].replace("\u7A3F\u4EF6", "")
69
- };
70
- });
71
- return arr.filter((item) => {
72
- if (props.series === "all") {
73
- return true;
74
- }
75
- return props.series.split(",").includes(item.value);
76
- });
77
- });
78
- const thumbOptions = vue.computed(() => {
79
- return Object.keys(doc.docThumbMap()).map((key) => {
80
- return {
81
- value: key,
82
- label: doc.docThumbMap()[key]
83
- };
84
- });
85
- });
86
42
  const sortMethodOptions = vue.computed(() => {
87
43
  return [
88
44
  { value: "pub_time", label: "\u53D1\u5E03\u65F6\u95F4" },
89
45
  { value: "create_time", label: "\u521B\u5EFA\u65F6\u95F4" }
90
46
  ];
91
47
  });
92
- const showReset = vue.computed(() => {
93
- let { banner } = filter.value;
94
- if (props.banner !== "all") {
95
- banner = "";
96
- }
97
- let series = filter.value.type;
98
- if (props.series !== "all") {
99
- series = "";
100
- }
101
- return filter.value.keywords || series || filter.value.cover_type || banner || filter.value.sort !== -1;
102
- });
103
- const reset = () => {
104
- const _set = {
105
- keywords: "",
106
- cover_type: "",
107
- sort: -1,
108
- order: "create_time"
109
- };
110
- Object.assign(filter.value, _set);
111
- if (props.banner !== "all") {
112
- filter.value.banner = props.banner;
113
- } else {
114
- filter.value.banner = "";
115
- }
116
- if (props.series !== "all" && props.series.split(",").length === 1) {
117
- filter.value.type = props.series;
118
- } else {
119
- filter.value.type = "";
120
- }
121
- column_id.value = "all";
122
- };
123
48
  const checkout = (type) => {
124
49
  filter.value.wordState = type;
125
50
  };
@@ -145,19 +70,6 @@ const _sfc_main = vue.defineComponent({
145
70
  column_id.value = val;
146
71
  }
147
72
  );
148
- vue.watch(
149
- () => props.banner,
150
- (val) => {
151
- filter.value.banner = val === "all" ? "" : val;
152
- },
153
- { immediate: true }
154
- );
155
- vue.watch(
156
- () => column_id.value,
157
- (val) => {
158
- emit("update:group_id", val);
159
- }
160
- );
161
73
  return (_ctx, _cache) => {
162
74
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
163
75
  vue.createVNode(vue.unref(webVue.Space), { size: "small" }, {
@@ -179,9 +91,9 @@ const _sfc_main = vue.defineComponent({
179
91
  onSelect: checkout
180
92
  }, {
181
93
  default: vue.withCtx(() => [
182
- (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(wordStateOptions, (item, index2) => {
94
+ (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(wordStateOptions, (item, index) => {
183
95
  return vue.createVNode(vue.unref(webVue.Option), {
184
- key: index2,
96
+ key: index,
185
97
  value: item.value,
186
98
  label: item.label
187
99
  }, {
@@ -208,97 +120,14 @@ const _sfc_main = vue.defineComponent({
208
120
  }, 8, ["modelValue"])
209
121
  ]),
210
122
  _: 1
211
- }, 8, ["modelValue"]),
212
- vue.createVNode(index, {
213
- column_id: column_id.value,
214
- "onUpdate:column_id": _cache[2] || (_cache[2] = ($event) => column_id.value = $event),
215
- height: props.height,
216
- tree: props.tree,
217
- "user-info": props.userInfo
218
- }, null, 8, ["column_id", "height", "tree", "user-info"]),
219
- vue.createVNode(vue.unref(webVue.Select), {
220
- modelValue: filter.value.type,
221
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => filter.value.type = $event),
222
- style: { width: "96px" },
223
- "trigger-props": { autoFitPopupMinWidth: true },
224
- "allow-clear": "",
225
- class: "filter-item",
226
- placeholder: "\u7C7B\u578B"
227
- }, {
228
- default: vue.withCtx(() => [
229
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(typeOptions.value, (item) => {
230
- return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
231
- key: item.value,
232
- label: item.label,
233
- value: item.value
234
- }, null, 8, ["label", "value"]);
235
- }), 128))
236
- ]),
237
- _: 1
238
- }, 8, ["modelValue"]),
239
- vue.createVNode(vue.unref(webVue.Select), {
240
- modelValue: filter.value.cover_type,
241
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => filter.value.cover_type = $event),
242
- style: { width: "96px" },
243
- "trigger-props": { autoFitPopupMinWidth: true },
244
- "allow-clear": "",
245
- class: "filter-item",
246
- placeholder: "\u5C01\u9762"
247
- }, {
248
- default: vue.withCtx(() => [
249
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(thumbOptions.value, (item) => {
250
- return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
251
- key: item.value,
252
- label: item.label,
253
- value: item.value
254
- }, null, 8, ["label", "value"]);
255
- }), 128))
256
- ]),
257
- _: 1
258
- }, 8, ["modelValue"]),
259
- vue.createVNode(vue.unref(webVue.Select), {
260
- modelValue: filter.value.banner,
261
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => filter.value.banner = $event),
262
- style: { width: "124px" },
263
- "trigger-props": { autoFitPopupMinWidth: true },
264
- "allow-clear": "",
265
- class: "filter-item",
266
- disabled: props.banner !== "all",
267
- placeholder: "\u72EC\u7ACB\u8F6E\u64AD"
268
- }, {
269
- default: vue.withCtx(() => [
270
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(bannerOptions.value, (item) => {
271
- return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
272
- key: item.value,
273
- label: item.label,
274
- value: item.value
275
- }, null, 8, ["label", "value"]);
276
- }), 128))
277
- ]),
278
- _: 1
279
- }, 8, ["modelValue", "disabled"]),
280
- vue.withDirectives(vue.createVNode(vue.unref(webVue.Button), {
281
- class: "reset-button",
282
- size: "small",
283
- type: "text",
284
- onClick: reset
285
- }, {
286
- default: vue.withCtx(() => [
287
- vue.createVNode(vue.unref(icon.IconRefresh), { class: "reset-icon" }),
288
- _cache[7] || (_cache[7] = vue.createTextVNode(" \u91CD\u7F6E "))
289
- ]),
290
- _: 1,
291
- __: [7]
292
- }, 512), [
293
- [vue.vShow, showReset.value]
294
- ])
123
+ }, 8, ["modelValue"])
295
124
  ]),
296
125
  _: 1
297
126
  }),
298
127
  vue.createElementVNode("div", _hoisted_3, [
299
128
  vue.createVNode(vue.unref(webVue.Select), {
300
129
  modelValue: filter.value.order,
301
- "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => filter.value.order = $event),
130
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.order = $event),
302
131
  class: "filter-item",
303
132
  placeholder: "\u53D1\u5E03\u65F6\u95F4"
304
133
  }, {
@@ -29,7 +29,6 @@ const _sfc_main = vue.defineComponent({
29
29
  props: {
30
30
  maxSelect: {},
31
31
  defaultSelectedData: {},
32
- typeData: {},
33
32
  series: {},
34
33
  banner: {},
35
34
  userInfo: {}
@@ -8,12 +8,6 @@ function getCategoryCategoriesTree(BASE_API, params) {
8
8
  params
9
9
  });
10
10
  }
11
- function getCategoryPath(BASE_API, params) {
12
- return request(BASE_API, {
13
- url: `/poplar/v2/repo/${params == null ? void 0 : params.repo}/category/${params == null ? void 0 : params.category}/path`,
14
- method: "get"
15
- });
16
- }
17
11
  function getCategoryMediaNew(BASE_API, params) {
18
12
  return request(BASE_API, {
19
13
  url: `/poplar/v3/s/documents`,
@@ -104,7 +98,6 @@ exports.checkCommitFulfillment = checkCommitFulfillment;
104
98
  exports.getBroadcastList = getBroadcastList;
105
99
  exports.getCategoryCategoriesTree = getCategoryCategoriesTree;
106
100
  exports.getCategoryMediaNew = getCategoryMediaNew;
107
- exports.getCategoryPath = getCategoryPath;
108
101
  exports.getCategorylistsGroups = getCategorylistsGroups;
109
102
  exports.getConfigurationNew = getConfigurationNew;
110
103
  exports.getEqxiuList = getEqxiuList;
@@ -1,26 +1,19 @@
1
1
  "use strict";
2
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");
3
+ var SelectAddToView = require("./components/SelectAddToView.js");
6
4
  var useSelectAddToState = require("./script/useSelectAddToState.js");
7
5
  require("./component.vue_vue_type_style_index_0_scoped_true_lang.js");
8
6
  var pluginVue_exportHelper = require("../_virtual/plugin-vue_export-helper.js");
9
7
  const _sfc_main = vue.defineComponent({
10
- ...{ name: "selectAddTo" },
8
+ ...{ name: "SelectAddTo" },
11
9
  __name: "component",
12
10
  props: {
13
- BASE_API: {},
14
11
  visible: { type: Boolean },
15
- title: {},
16
- outsideSelectData: {},
17
- defaultSelectedData: {},
12
+ rid: {},
18
13
  maxSelect: {},
19
- typeData: {},
20
14
  userStore: {},
21
- compoFilter: { type: Boolean, default: false },
22
- typeKey: {},
23
- rid: {}
15
+ BASE_API: {},
16
+ typeKey: {}
24
17
  },
25
18
  emits: ["update:visible", "comfirm"],
26
19
  setup(__props, { emit: __emit }) {
@@ -28,101 +21,28 @@ const _sfc_main = vue.defineComponent({
28
21
  const props = __props;
29
22
  const {
30
23
  visible,
31
- title,
32
24
  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
25
+ onOk,
26
+ onCancel,
27
+ onComfirm,
28
+ onClose,
29
+ onSelectedDataChange
45
30
  } = 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
31
  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,
32
+ return vue.openBlock(), vue.createBlock(SelectAddToView, {
59
33
  visible: vue.unref(visible),
60
- "body-style": { maxHeight: "700px" },
61
- "body-class": "add-content-modal-body",
62
- "modal-class": "add-content-modal-wrapper",
63
- "title-align": "start",
64
- "unmount-on-close": "",
65
- width: "1020px",
66
- onCancel: vue.unref(handleCancel),
67
- onClose: vue.unref(HandleClose),
68
- onOk: vue.unref(handleOk),
69
- onOpen: vue.unref(HandleOpen)
70
- }, {
71
- title: vue.withCtx(() => [
72
- vue.createTextVNode(vue.toDisplayString(vue.unref(title)), 1)
73
- ]),
74
- default: vue.withCtx(() => [
75
- vue.createVNode(vue.unref(webVue.Tabs), {
76
- class: "content-tabs",
77
- justify: "",
78
- "lazy-load": "",
79
- onTabClick: vue.unref(tabsChange)
80
- }, {
81
- default: vue.withCtx(() => {
82
- var _a, _b;
83
- return [
84
- _ctx.rid ? (vue.openBlock(), vue.createBlock(index, {
85
- key: 0,
86
- rid: _ctx.rid,
87
- "default-selected-data": vue.unref(selectedData),
88
- "max-select": _ctx.maxSelect,
89
- "user-info": vue.unref(userInfo),
90
- "type-key": _ctx.typeKey || "",
91
- "type-data": vue.unref(typeDataController),
92
- series: ((_a = vue.unref(typeDataController)) == null ? void 0 : _a.docSeries) || "all",
93
- banner: ((_b = vue.unref(typeDataController)) == null ? void 0 : _b.docBanner) || "all",
94
- onChange: vue.unref(selectedDataChangeHandle)
95
- }, {
96
- store: vue.withCtx(() => [
97
- vue.createVNode(_component_storeBox, {
98
- selectData: vue.unref(selectedData),
99
- "onUpdate:selectData": _cache[0] || (_cache[0] = ($event) => vue.isRef(selectedData) ? selectedData.value = $event : null)
100
- }, null, 8, ["selectData"])
101
- ]),
102
- options: vue.withCtx(() => [
103
- vue.createVNode(vue.unref(webVue.Button), {
104
- disabled: !vue.unref(hasSelected),
105
- type: "primary",
106
- onClick: vue.unref(comfirm)
107
- }, {
108
- default: vue.withCtx(() => _cache[1] || (_cache[1] = [
109
- vue.createTextVNode(" \u6DFB\u52A0 ")
110
- ])),
111
- _: 1,
112
- __: [1]
113
- }, 8, ["disabled", "onClick"])
114
- ]),
115
- _: 1
116
- }, 8, ["rid", "default-selected-data", "max-select", "user-info", "type-key", "type-data", "series", "banner", "onChange"])) : vue.createCommentVNode("v-if", true)
117
- ];
118
- }),
119
- _: 1
120
- }, 8, ["onTabClick"])
121
- ]),
122
- _: 1
123
- }, 8, ["visible", "onCancel", "onClose", "onOk", "onOpen"]);
34
+ rid: props.rid,
35
+ "selected-data": vue.unref(selectedData),
36
+ "max-select": props.maxSelect,
37
+ "type-key": props.typeKey,
38
+ onCancel: vue.unref(onCancel),
39
+ onClose: vue.unref(onClose),
40
+ onOk: vue.unref(onOk),
41
+ onSelectedChange: vue.unref(onSelectedDataChange),
42
+ onComfirm: vue.unref(onComfirm)
43
+ }, null, 8, ["visible", "rid", "selected-data", "max-select", "type-key", "onCancel", "onClose", "onOk", "onSelectedChange", "onComfirm"]);
124
44
  };
125
45
  }
126
46
  });
127
- var _selectAddTo = /* @__PURE__ */ pluginVue_exportHelper(_sfc_main, [["__scopeId", "data-v-191c2141"]]);
47
+ var _selectAddTo = /* @__PURE__ */ pluginVue_exportHelper(_sfc_main, [["__scopeId", "data-v-7f81762c"]]);
128
48
  module.exports = _selectAddTo;