@moment-design/material-library 0.0.3 → 0.0.5

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.
package/README.md CHANGED
@@ -11,13 +11,13 @@ npm install @moment-design/material-library --save
11
11
  `使用组件`
12
12
 
13
13
  ```ts
14
- import MMaterialLibrary from "@moment-design/material-library"
14
+ import MaterialLibrary from "@moment-design/material-library"
15
15
 
16
- <MMaterialLibrary
16
+ <MaterialLibrary
17
17
  ref="refLMaterialLibrary"
18
18
  :config="config"
19
19
  @choose="(v) => (chooseDatas = v)"
20
- ></MMaterialLibrary>
20
+ ></MaterialLibrary>
21
21
  ```
22
22
 
23
23
  ## API
@@ -18,75 +18,75 @@
18
18
  color: #55585c;
19
19
  margin-bottom: 24px;
20
20
  }
21
- .l-material-library-content[data-v-5de89d1b] {
21
+ .l-material-library-content[data-v-56794323] {
22
22
  display: flex;
23
23
  align-items: center;
24
24
  justify-content: space-between;
25
25
  }
26
- .l-material-library-content .label span[data-v-5de89d1b] {
26
+ .l-material-library-content .label span[data-v-56794323] {
27
27
  color: red;
28
28
  position: relative;
29
29
  top: 2px;
30
30
  margin-right: 6px;
31
31
  }
32
- .l-material-library-content .input[data-v-5de89d1b] {
32
+ .l-material-library-content .input[data-v-56794323] {
33
33
  width: 390px;
34
34
  }
35
- .l-material-library-group[data-v-072fcc8d] {
35
+ .l-material-library-group[data-v-6b9e9e28] {
36
36
  width: 230px;
37
37
  margin-right: 24px;
38
38
  }
39
- .l-material-library-group .header[data-v-072fcc8d] {
39
+ .l-material-library-group .header[data-v-6b9e9e28] {
40
40
  margin-bottom: 16px;
41
41
  display: flex;
42
42
  align-items: center;
43
43
  justify-content: space-between;
44
44
  }
45
- .l-material-library-group .header .title[data-v-072fcc8d] {
45
+ .l-material-library-group .header .title[data-v-6b9e9e28] {
46
46
  font-size: 16px;
47
47
  font-weight: 600;
48
48
  color: #12141a;
49
49
  }
50
- .l-material-library-group .footer .search[data-v-072fcc8d] {
50
+ .l-material-library-group .footer .search[data-v-6b9e9e28] {
51
51
  margin-bottom: 8px;
52
52
  }
53
- .l-material-library-group .footer .group-items[data-v-072fcc8d] {
53
+ .l-material-library-group .footer .group-items[data-v-6b9e9e28] {
54
54
  margin-top: 16px;
55
55
  }
56
- .l-material-library-group .footer .group-items .group-item[data-v-072fcc8d] {
56
+ .l-material-library-group .footer .group-items .group-item[data-v-6b9e9e28] {
57
57
  height: 46px;
58
58
  display: flex;
59
59
  align-items: center;
60
60
  justify-content: space-between;
61
61
  cursor: pointer;
62
62
  }
63
- .l-material-library-group .footer .group-items .group-item[data-v-072fcc8d]:hover {
63
+ .l-material-library-group .footer .group-items .group-item[data-v-6b9e9e28]:hover {
64
64
  background-color: #f2f3f5;
65
65
  }
66
- .l-material-library-group .footer .group-items .group-item.active[data-v-072fcc8d] {
66
+ .l-material-library-group .footer .group-items .group-item.active[data-v-6b9e9e28] {
67
67
  background-color: #f4f7ff;
68
68
  }
69
- .l-material-library-group .footer .group-items .group-item .left[data-v-072fcc8d] {
69
+ .l-material-library-group .footer .group-items .group-item .left[data-v-6b9e9e28] {
70
70
  display: flex;
71
71
  align-items: center;
72
72
  justify-content: space-between;
73
73
  width: 30px;
74
74
  padding-left: 8px;
75
75
  }
76
- .l-material-library-group .footer .group-items .group-item .left .folder[data-v-072fcc8d] {
76
+ .l-material-library-group .footer .group-items .group-item .left .folder[data-v-6b9e9e28] {
77
77
  margin-right: 6px;
78
78
  width: 15px;
79
79
  height: 15px;
80
80
  position: relative;
81
81
  top: 1px;
82
82
  }
83
- .l-material-library-group .footer .group-items .group-item .center[data-v-072fcc8d] {
83
+ .l-material-library-group .footer .group-items .group-item .center[data-v-6b9e9e28] {
84
84
  flex: 1;
85
85
  white-space: nowrap;
86
86
  overflow: hidden;
87
87
  text-overflow: ellipsis;
88
88
  }
89
- .l-material-library-group .footer .group-items .group-item .right[data-v-072fcc8d] {
89
+ .l-material-library-group .footer .group-items .group-item .right[data-v-6b9e9e28] {
90
90
  width: 30px;
91
91
  padding-right: 16px;
92
92
  }
@@ -195,107 +195,107 @@
195
195
  color: #86909c;
196
196
  line-height: 1.75;
197
197
  }
198
- .change-group-items[data-v-959b383e] {
198
+ .change-group-items[data-v-d3858ece] {
199
199
  min-height: 350px;
200
200
  }
201
- .change-group-items .item[data-v-959b383e] {
201
+ .change-group-items .item[data-v-d3858ece] {
202
202
  height: 46px;
203
203
  display: flex;
204
204
  align-items: center;
205
205
  justify-content: space-between;
206
206
  cursor: pointer;
207
207
  }
208
- .change-group-items .item[data-v-959b383e]:hover {
208
+ .change-group-items .item[data-v-d3858ece]:hover {
209
209
  background-color: #f2f3f5;
210
210
  }
211
- .change-group-items .item.active[data-v-959b383e] {
211
+ .change-group-items .item.active[data-v-d3858ece] {
212
212
  background-color: #f4f7ff;
213
213
  }
214
- .change-group-items .item .img[data-v-959b383e] {
214
+ .change-group-items .item .img[data-v-d3858ece] {
215
215
  display: flex;
216
216
  align-items: center;
217
217
  justify-content: space-between;
218
218
  width: 30px;
219
219
  padding-left: 8px;
220
220
  }
221
- .change-group-items .item .img .folder[data-v-959b383e] {
221
+ .change-group-items .item .img .folder[data-v-d3858ece] {
222
222
  margin-right: 6px;
223
223
  width: 15px;
224
224
  height: 15px;
225
225
  position: relative;
226
226
  top: 1px;
227
227
  }
228
- .change-group-items .item .name[data-v-959b383e] {
228
+ .change-group-items .item .name[data-v-d3858ece] {
229
229
  flex: 1;
230
230
  white-space: nowrap;
231
231
  overflow: hidden;
232
232
  text-overflow: ellipsis;
233
233
  }
234
- .l-material-library-upload .form-item[data-v-642d3522] {
234
+ .l-material-library-upload .form-item[data-v-2b0daf89] {
235
235
  display: flex;
236
236
  align-items: center;
237
237
  margin-bottom: 16px;
238
238
  }
239
- .l-material-library-upload .form-item[data-v-642d3522]:not(:last-child) {
239
+ .l-material-library-upload .form-item[data-v-2b0daf89]:not(:last-child) {
240
240
  margin-bottom: 16px;
241
241
  }
242
- .l-material-library-upload .form-item .label[data-v-642d3522] {
242
+ .l-material-library-upload .form-item .label[data-v-2b0daf89] {
243
243
  width: 70px;
244
244
  margin-right: 16px;
245
245
  }
246
- .l-material-library-upload .form-item .label span[data-v-642d3522] {
246
+ .l-material-library-upload .form-item .label span[data-v-2b0daf89] {
247
247
  color: red;
248
248
  margin-right: 4px;
249
249
  position: relative;
250
250
  top: 2px;
251
251
  }
252
- .l-material-library-upload .upload[data-v-642d3522] {
252
+ .l-material-library-upload .upload[data-v-2b0daf89] {
253
253
  margin-top: 16px;
254
254
  }
255
- .l-material-library-upload .upload .tips[data-v-642d3522] {
255
+ .l-material-library-upload .upload .tips[data-v-2b0daf89] {
256
256
  margin-bottom: 16px;
257
257
  color: #86909c;
258
258
  }
259
- .l-material-library-upload .upload[data-v-642d3522] .mo-upload-progress {
259
+ .l-material-library-upload .upload[data-v-2b0daf89] .mo-upload-progress {
260
260
  display: none;
261
261
  }
262
- .l-material-library-right-content[data-v-5294c04c] {
262
+ .l-material-library-right-content[data-v-7f358bd9] {
263
263
  flex: 1;
264
264
  }
265
- .l-material-library-right-content .header[data-v-5294c04c] {
265
+ .l-material-library-right-content .header[data-v-7f358bd9] {
266
266
  display: flex;
267
267
  justify-content: space-between;
268
268
  }
269
- .l-material-library-right-content .header .left[data-v-5294c04c] {
269
+ .l-material-library-right-content .header .left[data-v-7f358bd9] {
270
270
  display: flex;
271
271
  justify-content: space-between;
272
272
  }
273
- .l-material-library-right-content .header .more-icon-down[data-v-5294c04c] {
273
+ .l-material-library-right-content .header .more-icon-down[data-v-7f358bd9] {
274
274
  position: relative;
275
275
  top: -1px;
276
276
  margin-left: 6px;
277
277
  font-size: 15px;
278
278
  stroke-width: 5;
279
279
  }
280
- .l-material-library-right-content .toolbar[data-v-5294c04c] {
280
+ .l-material-library-right-content .toolbar[data-v-7f358bd9] {
281
281
  margin: 16px 0;
282
282
  display: flex;
283
283
  align-items: center;
284
284
  justify-content: space-between;
285
285
  }
286
- .l-material-library-right-content .toolbar .apps[data-v-5294c04c],
287
- .l-material-library-right-content .toolbar .menu[data-v-5294c04c] {
286
+ .l-material-library-right-content .toolbar .apps[data-v-7f358bd9],
287
+ .l-material-library-right-content .toolbar .menu[data-v-7f358bd9] {
288
288
  margin-left: 8px;
289
289
  font-size: 20px;
290
290
  stroke-width: 5;
291
291
  }
292
- .l-material-library-right-content .toolbar .apps[data-v-5294c04c]:hover,
293
- .l-material-library-right-content .toolbar .menu[data-v-5294c04c]:hover,
294
- .l-material-library-right-content .toolbar .apps.active[data-v-5294c04c],
295
- .l-material-library-right-content .toolbar .menu.active[data-v-5294c04c] {
292
+ .l-material-library-right-content .toolbar .apps[data-v-7f358bd9]:hover,
293
+ .l-material-library-right-content .toolbar .menu[data-v-7f358bd9]:hover,
294
+ .l-material-library-right-content .toolbar .apps.active[data-v-7f358bd9],
295
+ .l-material-library-right-content .toolbar .menu.active[data-v-7f358bd9] {
296
296
  color: #1966ff;
297
297
  cursor: pointer;
298
298
  }
299
- .l-material-library[data-v-38949eae] {
299
+ .l-material-library[data-v-2f139204] {
300
300
  display: flex;
301
301
  }
package/dist/index.cjs.js CHANGED
@@ -5580,7 +5580,7 @@ const _sfc_main$7 = vue.defineComponent({
5580
5580
  const title = vue.ref("\u65B0\u5EFA\u5206\u7EC4");
5581
5581
  const groupName = vue.ref("");
5582
5582
  const handleOk = async () => {
5583
- var _a, _b, _c, _d, _e, _f;
5583
+ var _a, _b, _c, _d;
5584
5584
  if (!groupName.value) {
5585
5585
  webVue.Message.error("\u8BF7\u8F93\u5165\u5206\u7EC4\u540D\u79F0");
5586
5586
  } else {
@@ -5590,12 +5590,10 @@ const _sfc_main$7 = vue.defineComponent({
5590
5590
  groupName: groupName.value,
5591
5591
  id: (_b = current.value) == null ? void 0 : _b.id
5592
5592
  }));
5593
- if (+res.data.code === 200 && ((_d = res == null ? void 0 : res.data) == null ? void 0 : _d.data)) {
5594
- webVue.Message.success(`${((_e = current.value) == null ? void 0 : _e.id) ? "\u7F16\u8F91" : "\u65B0\u5EFA"}\u5206\u7EC4\u6210\u529F`);
5593
+ if (+(res == null ? void 0 : res.code) === 200 && (res == null ? void 0 : res.data)) {
5594
+ webVue.Message.success(`${((_d = current.value) == null ? void 0 : _d.id) ? "\u7F16\u8F91" : "\u65B0\u5EFA"}\u5206\u7EC4\u6210\u529F`);
5595
5595
  visible.value = false;
5596
5596
  emit("group:init");
5597
- } else {
5598
- webVue.Message.error((_f = res.data) == null ? void 0 : _f.msg);
5599
5597
  }
5600
5598
  } catch (error) {
5601
5599
  console.log(error);
@@ -5653,7 +5651,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
5653
5651
  _: 1
5654
5652
  }, 8, ["visible", "title", "others", "onOk"]);
5655
5653
  }
5656
- var CLeftGroup = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7], ["__scopeId", "data-v-5de89d1b"]]);
5654
+ var CLeftGroup = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7], ["__scopeId", "data-v-56794323"]]);
5657
5655
  var _imports_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAapJREFUeF7tm71KxEAUhc9NaS+swX0IewtfQOwWxFINIj6ET2Bjo7IPYKsvYGVjISKuWFvIqp215Ej82XXZJkxmkoE5qXNPMl/m3jsnyRgSPyzx8UMANAMSJzCXAku73IJhA8SiLzY03JQljt6G9upL05fODIC84AGBY1/i/3VI3CPD5vjUHkPou2pOAOQFFwg8Aei7itWIG9EwiAnCFMAeV1jitsYgmp4SFYQJgN4O1yzDVdPR1YyPBkJXACpOUUDoEkAUELoG0DmEGAB8QwDxXrN+ND6Nhocsw/nLiV3HAqDxoFwELMNq0gAIXCYNAMBH6gCm7wNaXgi5pGyQGM2AP6yaAe16gSDT2UVUKaAU+CWgGqAa0OoLEZd6FSRGRVBFUEXwh4C6gLqAukCb3wWCtDQXUbVBtUG1QbVBrQO0ENJKUEtheQGZIZkhmSGZoRb/EnMxbkFi5AblBuUG5QblBisC+T77/MRzkFIbr+hoZr9Ar2D129h6vPfr984IDOZ2jPQKHhqwDWDZ7+WiUrsjcDE+s2qsaR8CkPbzhzZOKgWUAokTSD4FvgC1U75SW2R2+QAAAABJRU5ErkJggg==";
5658
5656
  var cLeft_vue_vue_type_style_index_0_scoped_true_lang = "";
5659
5657
  const _sfc_main$6 = vue.defineComponent({
@@ -5702,39 +5700,33 @@ const _sfc_main$6 = vue.defineComponent({
5702
5700
  visible.value = true;
5703
5701
  };
5704
5702
  const handleRemoveGroupOk = async () => {
5705
- var _a, _b, _c, _d;
5703
+ var _a, _b;
5706
5704
  try {
5707
5705
  const res = await ((_b = (_a = deepConfig.value) == null ? void 0 : _a.apis) == null ? void 0 : _b.deleteGroup(current.value.id));
5708
- if (+res.data.code === 200 && ((_c = res == null ? void 0 : res.data) == null ? void 0 : _c.data)) {
5706
+ if (+(res == null ? void 0 : res.code) === 200 && (res == null ? void 0 : res.data)) {
5709
5707
  webVue.Message.success(`\u5220\u9664\u6210\u529F`);
5710
5708
  active.value = 0;
5711
5709
  visible.value = false;
5712
5710
  init();
5713
- } else {
5714
- webVue.Message.error((_d = res.data) == null ? void 0 : _d.msg);
5715
5711
  }
5716
5712
  } catch (error) {
5717
5713
  console.log(error);
5718
5714
  }
5719
5715
  };
5720
5716
  const init = async (type) => {
5721
- var _a, _b, _c, _d;
5717
+ var _a, _b;
5722
5718
  try {
5723
5719
  loading.value = true;
5724
5720
  const res = await ((_b = (_a = deepConfig.value) == null ? void 0 : _a.apis) == null ? void 0 : _b.getGroupList());
5725
- if (+res.data.code === 200 && ((_c = res == null ? void 0 : res.data) == null ? void 0 : _c.data)) {
5726
- defaults.value = res.data.data;
5727
- groups.value = res.data.data;
5721
+ if (+(res == null ? void 0 : res.code) === 200 && (res == null ? void 0 : res.data)) {
5722
+ defaults.value = res.data;
5723
+ groups.value = res.data;
5728
5724
  total.value = lodash.exports.sum(
5729
- res.data.data.map(
5730
- (item) => (item == null ? void 0 : item.fileCount) ? +item.fileCount : 0
5731
- )
5725
+ res.data.map((item) => (item == null ? void 0 : item.fileCount) ? +item.fileCount : 0)
5732
5726
  );
5733
5727
  if (!type) {
5734
5728
  emitGroupChange(groups.value[active.value].id);
5735
5729
  }
5736
- } else {
5737
- webVue.Message.error((_d = res.data) == null ? void 0 : _d.msg);
5738
5730
  }
5739
5731
  } catch (error) {
5740
5732
  console.log(error);
@@ -5920,7 +5912,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
5920
5912
  }, 8, ["visible", "others", "onHandle:ok"])
5921
5913
  ], 64);
5922
5914
  }
5923
- var CLeft = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-072fcc8d"]]);
5915
+ var CLeft = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-6b9e9e28"]]);
5924
5916
  var cRightApps_vue_vue_type_style_index_0_scoped_true_lang = "";
5925
5917
  const _sfc_main$5 = vue.defineComponent({
5926
5918
  name: "",
@@ -6391,7 +6383,7 @@ const _sfc_main$3 = vue.defineComponent({
6391
6383
  const groups = vue.ref();
6392
6384
  const fileIds = vue.ref();
6393
6385
  const handleOk = async () => {
6394
- var _a, _b, _c, _d;
6386
+ var _a, _b;
6395
6387
  if (active.value === 0 || active.value) {
6396
6388
  try {
6397
6389
  okLoading.value = true;
@@ -6399,12 +6391,10 @@ const _sfc_main$3 = vue.defineComponent({
6399
6391
  groupId: groups.value[active.value].id,
6400
6392
  fileIds: fileIds.value
6401
6393
  }));
6402
- if (+res.data.code === 200 && ((_c = res == null ? void 0 : res.data) == null ? void 0 : _c.data)) {
6394
+ if (+(res == null ? void 0 : res.code) === 200 && (res == null ? void 0 : res.data)) {
6403
6395
  webVue.Message.success("\u5206\u7EC4\u79FB\u52A8\u6210\u529F");
6404
6396
  visible.value = false;
6405
6397
  emit("move:success");
6406
- } else {
6407
- webVue.Message.error((_d = res.data) == null ? void 0 : _d.msg);
6408
6398
  }
6409
6399
  } catch (error) {
6410
6400
  console.log(error);
@@ -6416,14 +6406,12 @@ const _sfc_main$3 = vue.defineComponent({
6416
6406
  }
6417
6407
  };
6418
6408
  const init = async () => {
6419
- var _a, _b, _c, _d;
6409
+ var _a, _b;
6420
6410
  try {
6421
6411
  loading.value = true;
6422
6412
  const res = await ((_b = (_a = deepConfig.value) == null ? void 0 : _a.apis) == null ? void 0 : _b.getGroupList());
6423
- if (+res.data.code === 200 && ((_c = res == null ? void 0 : res.data) == null ? void 0 : _c.data)) {
6424
- groups.value = res.data.data;
6425
- } else {
6426
- webVue.Message.error((_d = res.data) == null ? void 0 : _d.msg);
6413
+ if (+(res == null ? void 0 : res.code) === 200 && (res == null ? void 0 : res.data)) {
6414
+ groups.value = res.data;
6427
6415
  }
6428
6416
  } catch (error) {
6429
6417
  console.log(error);
@@ -6500,7 +6488,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
6500
6488
  _: 1
6501
6489
  }, 8, ["visible", "others", "onHandle:ok"]);
6502
6490
  }
6503
- var CChangeGroup = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-959b383e"]]);
6491
+ var CChangeGroup = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-d3858ece"]]);
6504
6492
  var cUpload_vue_vue_type_style_index_0_scoped_true_lang = "";
6505
6493
  const _sfc_main$2 = vue.defineComponent({
6506
6494
  name: "",
@@ -6541,7 +6529,7 @@ const _sfc_main$2 = vue.defineComponent({
6541
6529
  };
6542
6530
  const fileChange = (vs) => fileList.value = vs;
6543
6531
  const handleOk = async () => {
6544
- var _a, _b, _c;
6532
+ var _a, _b;
6545
6533
  if (!fileName.value) {
6546
6534
  webVue.Message.error("\u8BF7\u8F93\u5165\u7D20\u6750\u540D\u79F0");
6547
6535
  } else if (!groupId.value) {
@@ -6557,12 +6545,10 @@ const _sfc_main$2 = vue.defineComponent({
6557
6545
  try {
6558
6546
  okLoading.value = true;
6559
6547
  const res = await ((_b = (_a = deepConfig.value) == null ? void 0 : _a.apis) == null ? void 0 : _b.uploadFile(data));
6560
- if (+res.data.code === 200) {
6548
+ if (+(res == null ? void 0 : res.code) === 200) {
6561
6549
  webVue.Message.success(`\u7D20\u6750\u4E0A\u4F20\u6210\u529F`);
6562
6550
  visible.value = false;
6563
6551
  emit("upload:success");
6564
- } else {
6565
- webVue.Message.error((_c = res.data) == null ? void 0 : _c.msg);
6566
6552
  }
6567
6553
  } catch (error) {
6568
6554
  console.log(error);
@@ -6573,14 +6559,12 @@ const _sfc_main$2 = vue.defineComponent({
6573
6559
  }
6574
6560
  };
6575
6561
  const init = async () => {
6576
- var _a, _b, _c, _d;
6562
+ var _a, _b;
6577
6563
  try {
6578
6564
  loading.value = true;
6579
6565
  const res = await ((_b = (_a = deepConfig.value) == null ? void 0 : _a.apis) == null ? void 0 : _b.getGroupList());
6580
- if (+res.data.code === 200 && ((_c = res == null ? void 0 : res.data) == null ? void 0 : _c.data)) {
6581
- groups.value = res.data.data;
6582
- } else {
6583
- webVue.Message.error((_d = res.data) == null ? void 0 : _d.msg);
6566
+ if (+(res == null ? void 0 : res.code) === 200 && (res == null ? void 0 : res.data)) {
6567
+ groups.value = res.data;
6584
6568
  }
6585
6569
  } catch (error) {
6586
6570
  console.log(error);
@@ -6744,7 +6728,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
6744
6728
  _: 1
6745
6729
  }, 8, ["visible", "others", "onHandle:ok"]);
6746
6730
  }
6747
- var CUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-642d3522"]]);
6731
+ var CUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-2b0daf89"]]);
6748
6732
  var cRight_vue_vue_type_style_index_0_scoped_true_lang = "";
6749
6733
  const _sfc_main$1 = vue.defineComponent({
6750
6734
  name: "",
@@ -6820,18 +6804,16 @@ const _sfc_main$1 = vue.defineComponent({
6820
6804
  showType.value === 1 ? refCRightApps.value.initCheckbox() : refCRightMenus.value.initCheckbox();
6821
6805
  };
6822
6806
  const handleRemoveOk = async () => {
6823
- var _a2, _b2, _c, _d;
6807
+ var _a2, _b2;
6824
6808
  try {
6825
6809
  removeLoading.value = true;
6826
6810
  const res = await ((_b2 = (_a2 = deepConfig.value) == null ? void 0 : _a2.apis) == null ? void 0 : _b2.deleteFile(
6827
6811
  Array.isArray(current.value.id) ? current.value.id : [current.value.id]
6828
6812
  ));
6829
- if (+res.data.code === 200 && ((_c = res == null ? void 0 : res.data) == null ? void 0 : _c.data)) {
6813
+ if (+(res == null ? void 0 : res.code) === 200 && (res == null ? void 0 : res.data)) {
6830
6814
  webVue.Message.success(`\u5220\u9664\u6210\u529F`);
6831
6815
  visible.value = false;
6832
6816
  reset();
6833
- } else {
6834
- webVue.Message.error((_d = res.data) == null ? void 0 : _d.msg);
6835
6817
  }
6836
6818
  } catch (error) {
6837
6819
  console.log(error);
@@ -6849,7 +6831,7 @@ const _sfc_main$1 = vue.defineComponent({
6849
6831
  emit("group:init");
6850
6832
  };
6851
6833
  const init = async (id) => {
6852
- var _a2, _b2, _c, _d, _e;
6834
+ var _a2, _b2;
6853
6835
  try {
6854
6836
  groupId.value = id;
6855
6837
  loading.value = true;
@@ -6860,11 +6842,9 @@ const _sfc_main$1 = vue.defineComponent({
6860
6842
  pageNum: pageNum.value,
6861
6843
  pageSize: pageSize.value
6862
6844
  }));
6863
- if (+res.data.code === 200 && ((_c = res == null ? void 0 : res.data) == null ? void 0 : _c.data)) {
6864
- datas.value = (_d = res == null ? void 0 : res.data) == null ? void 0 : _d.data;
6845
+ if (+(res == null ? void 0 : res.code) === 200 && (res == null ? void 0 : res.data)) {
6846
+ datas.value = res == null ? void 0 : res.data;
6865
6847
  refCRightApps.value.initCheckbox();
6866
- } else {
6867
- webVue.Message.error((_e = res.data) == null ? void 0 : _e.msg);
6868
6848
  }
6869
6849
  } catch (error) {
6870
6850
  console.log(error);
@@ -7093,10 +7073,10 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
7093
7073
  }, null, 8, ["config", "onUpload:success"])
7094
7074
  ], 64);
7095
7075
  }
7096
- var CRight = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-5294c04c"]]);
7076
+ var CRight = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-7f358bd9"]]);
7097
7077
  var index_vue_vue_type_style_index_0_scoped_true_lang = "";
7098
7078
  const _sfc_main = vue.defineComponent({
7099
- name: "MMaterialLibrary",
7079
+ name: "MaterialLibrary",
7100
7080
  components: {
7101
7081
  CLeft,
7102
7082
  CRight,
@@ -7190,5 +7170,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
7190
7170
  ], 2112))
7191
7171
  ], 2112);
7192
7172
  }
7193
- var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-38949eae"]]);
7173
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-2f139204"]]);
7194
7174
  module.exports = index;