@cmstops/pro-compo 3.9.2-alpha.13 → 3.9.2-alpha.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.
@@ -18,7 +18,8 @@ const _sfc_main = defineComponent({
18
18
  typeData: {},
19
19
  userStore: {},
20
20
  compoFilter: { type: Boolean, default: false },
21
- typeKey: {}
21
+ typeKey: {},
22
+ rid: {}
22
23
  },
23
24
  emits: ["update:visible", "comfirm"],
24
25
  setup(__props, { emit: __emit }) {
@@ -57,7 +58,7 @@ const _sfc_main = defineComponent({
57
58
  const hasSelected = computed(() => {
58
59
  return selectedData.value.length > 0;
59
60
  });
60
- const typeDataController = computed(() => {
61
+ computed(() => {
61
62
  const ret = JSON.parse(JSON.stringify(props.typeData));
62
63
  return ret;
63
64
  });
@@ -134,13 +135,11 @@ const _sfc_main = defineComponent({
134
135
  }, {
135
136
  default: withCtx(() => [
136
137
  createCommentVNode(" \u680F\u76EE\u7A3F\u4EF6 "),
137
- unref(userInfo) && unref(userInfo).repository_id ? (openBlock(), createBlock(ViewAllColumn, {
138
+ _ctx.rid ? (openBlock(), createBlock(ViewAllColumn, {
138
139
  key: 0,
139
- banner: typeDataController.value.docBanner,
140
+ rid: _ctx.rid,
140
141
  "default-selected-data": selectedData.value,
141
142
  "max-select": _ctx.maxSelect,
142
- series: typeDataController.value.docSeries,
143
- "type-data": typeDataController.value,
144
143
  "user-info": unref(userInfo),
145
144
  typeKey: _ctx.typeKey,
146
145
  onChange: selectedDataChangeHandle
@@ -165,7 +164,7 @@ const _sfc_main = defineComponent({
165
164
  }, 8, ["disabled"])
166
165
  ]),
167
166
  _: 1
168
- }, 8, ["banner", "default-selected-data", "max-select", "series", "type-data", "user-info", "typeKey"])) : createCommentVNode("v-if", true)
167
+ }, 8, ["rid", "default-selected-data", "max-select", "user-info", "typeKey"])) : createCommentVNode("v-if", true)
169
168
  ]),
170
169
  _: 1
171
170
  })
@@ -38,7 +38,8 @@ const _sfc_main = defineComponent({
38
38
  series: {},
39
39
  banner: {},
40
40
  userInfo: {},
41
- typeKey: {}
41
+ typeKey: {},
42
+ rid: {}
42
43
  },
43
44
  emits: ["change"],
44
45
  setup(__props, { emit: __emit }) {
@@ -281,7 +282,7 @@ const _sfc_main = defineComponent({
281
282
  };
282
283
  const loadMore = async (record, done) => {
283
284
  const res = await getMlists(props.userInfo.BASE_API, {
284
- rid: 4,
285
+ rid: props.rid,
285
286
  gid: record.special_id
286
287
  });
287
288
  window.setTimeout(() => {
@@ -289,7 +290,9 @@ const _sfc_main = defineComponent({
289
290
  res.message.map((item) => ({
290
291
  ...item,
291
292
  isLeaf: true,
292
- key: item.id
293
+ key: item.id,
294
+ parentName: record.title,
295
+ parentId: record.id
293
296
  }))
294
297
  );
295
298
  }, 2e3);
@@ -432,5 +435,5 @@ const _sfc_main = defineComponent({
432
435
  };
433
436
  }
434
437
  });
435
- var ViewAllColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-124914fc"]]);
438
+ var ViewAllColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9b59a360"]]);
436
439
  export { ViewAllColumn as default };
package/es/style.css CHANGED
@@ -1,16 +1,16 @@
1
- .pic-thumb-img[data-v-124914fc] {
1
+ .pic-thumb-img[data-v-9b59a360] {
2
2
  width: 80px;
3
3
  height: 80px;
4
4
  object-fit: cover;
5
5
  border-radius: 4px;
6
6
  }
7
- .pic-thumb-img.placeholder[data-v-124914fc] {
7
+ .pic-thumb-img.placeholder[data-v-9b59a360] {
8
8
  background-color: #f5f5f5;
9
9
  display: flex;
10
10
  align-items: center;
11
11
  justify-content: center;
12
12
  }
13
- .pic-thumb-img.placeholder .placeholder-text[data-v-124914fc] {
13
+ .pic-thumb-img.placeholder .placeholder-text[data-v-9b59a360] {
14
14
  color: #999;
15
15
  font-size: 12px;
16
16
  }
@@ -19,7 +19,8 @@ const _sfc_main = vue.defineComponent({
19
19
  typeData: {},
20
20
  userStore: {},
21
21
  compoFilter: { type: Boolean, default: false },
22
- typeKey: {}
22
+ typeKey: {},
23
+ rid: {}
23
24
  },
24
25
  emits: ["update:visible", "comfirm"],
25
26
  setup(__props, { emit: __emit }) {
@@ -58,7 +59,7 @@ const _sfc_main = vue.defineComponent({
58
59
  const hasSelected = vue.computed(() => {
59
60
  return selectedData.value.length > 0;
60
61
  });
61
- const typeDataController = vue.computed(() => {
62
+ vue.computed(() => {
62
63
  const ret = JSON.parse(JSON.stringify(props.typeData));
63
64
  return ret;
64
65
  });
@@ -135,13 +136,11 @@ const _sfc_main = vue.defineComponent({
135
136
  }, {
136
137
  default: vue.withCtx(() => [
137
138
  vue.createCommentVNode(" \u680F\u76EE\u7A3F\u4EF6 "),
138
- vue.unref(userInfo) && vue.unref(userInfo).repository_id ? (vue.openBlock(), vue.createBlock(index, {
139
+ _ctx.rid ? (vue.openBlock(), vue.createBlock(index, {
139
140
  key: 0,
140
- banner: typeDataController.value.docBanner,
141
+ rid: _ctx.rid,
141
142
  "default-selected-data": selectedData.value,
142
143
  "max-select": _ctx.maxSelect,
143
- series: typeDataController.value.docSeries,
144
- "type-data": typeDataController.value,
145
144
  "user-info": vue.unref(userInfo),
146
145
  typeKey: _ctx.typeKey,
147
146
  onChange: selectedDataChangeHandle
@@ -166,7 +165,7 @@ const _sfc_main = vue.defineComponent({
166
165
  }, 8, ["disabled"])
167
166
  ]),
168
167
  _: 1
169
- }, 8, ["banner", "default-selected-data", "max-select", "series", "type-data", "user-info", "typeKey"])) : vue.createCommentVNode("v-if", true)
168
+ }, 8, ["rid", "default-selected-data", "max-select", "user-info", "typeKey"])) : vue.createCommentVNode("v-if", true)
170
169
  ]),
171
170
  _: 1
172
171
  })
@@ -39,7 +39,8 @@ const _sfc_main = vue.defineComponent({
39
39
  series: {},
40
40
  banner: {},
41
41
  userInfo: {},
42
- typeKey: {}
42
+ typeKey: {},
43
+ rid: {}
43
44
  },
44
45
  emits: ["change"],
45
46
  setup(__props, { emit: __emit }) {
@@ -282,7 +283,7 @@ const _sfc_main = vue.defineComponent({
282
283
  };
283
284
  const loadMore = async (record, done) => {
284
285
  const res = await api.getMlists(props.userInfo.BASE_API, {
285
- rid: 4,
286
+ rid: props.rid,
286
287
  gid: record.special_id
287
288
  });
288
289
  window.setTimeout(() => {
@@ -290,7 +291,9 @@ const _sfc_main = vue.defineComponent({
290
291
  res.message.map((item) => ({
291
292
  ...item,
292
293
  isLeaf: true,
293
- key: item.id
294
+ key: item.id,
295
+ parentName: record.title,
296
+ parentId: record.id
294
297
  }))
295
298
  );
296
299
  }, 2e3);
@@ -433,5 +436,5 @@ const _sfc_main = vue.defineComponent({
433
436
  };
434
437
  }
435
438
  });
436
- var ViewAllColumn = /* @__PURE__ */ pluginVue_exportHelper(_sfc_main, [["__scopeId", "data-v-124914fc"]]);
439
+ var ViewAllColumn = /* @__PURE__ */ pluginVue_exportHelper(_sfc_main, [["__scopeId", "data-v-9b59a360"]]);
437
440
  module.exports = ViewAllColumn;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmstops/pro-compo",
3
- "version": "3.9.2-alpha.13",
3
+ "version": "3.9.2-alpha.15",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vue",