@moment-design/material-library 0.1.0 → 0.1.1

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.
@@ -257,68 +257,68 @@
257
257
  overflow: hidden;
258
258
  text-overflow: ellipsis;
259
259
  }
260
- .l-material-library-upload .form-item[data-v-46181845] {
260
+ .l-material-library-upload .form-item[data-v-4839e6a6] {
261
261
  display: flex;
262
262
  align-items: center;
263
263
  margin-bottom: 16px;
264
264
  }
265
- .l-material-library-upload .form-item[data-v-46181845]:not(:last-child) {
265
+ .l-material-library-upload .form-item[data-v-4839e6a6]:not(:last-child) {
266
266
  margin-bottom: 16px;
267
267
  }
268
- .l-material-library-upload .form-item .label[data-v-46181845] {
268
+ .l-material-library-upload .form-item .label[data-v-4839e6a6] {
269
269
  width: 70px;
270
270
  margin-right: 16px;
271
271
  }
272
- .l-material-library-upload .form-item .label span[data-v-46181845] {
272
+ .l-material-library-upload .form-item .label span[data-v-4839e6a6] {
273
273
  color: red;
274
274
  margin-right: 4px;
275
275
  position: relative;
276
276
  top: 2px;
277
277
  }
278
- .l-material-library-upload .upload[data-v-46181845] {
278
+ .l-material-library-upload .upload[data-v-4839e6a6] {
279
279
  margin-top: 16px;
280
280
  }
281
- .l-material-library-upload .upload .tips[data-v-46181845] {
281
+ .l-material-library-upload .upload .tips[data-v-4839e6a6] {
282
282
  margin-bottom: 16px;
283
283
  color: #86909c;
284
284
  }
285
- .l-material-library-upload .upload[data-v-46181845] .mo-upload-progress {
285
+ .l-material-library-upload .upload[data-v-4839e6a6] .mo-upload-progress {
286
286
  display: none;
287
287
  }
288
- .l-material-library-right-content[data-v-1b7acef9] {
288
+ .l-material-library-right-content[data-v-2b660b3b] {
289
289
  flex: 1;
290
290
  }
291
- .l-material-library-right-content .header[data-v-1b7acef9] {
291
+ .l-material-library-right-content .header[data-v-2b660b3b] {
292
292
  display: flex;
293
293
  justify-content: space-between;
294
294
  }
295
- .l-material-library-right-content .header .left[data-v-1b7acef9] {
295
+ .l-material-library-right-content .header .left[data-v-2b660b3b] {
296
296
  display: flex;
297
297
  justify-content: space-between;
298
298
  }
299
- .l-material-library-right-content .header .more-icon-down[data-v-1b7acef9] {
299
+ .l-material-library-right-content .header .more-icon-down[data-v-2b660b3b] {
300
300
  position: relative;
301
301
  top: -1px;
302
302
  margin-left: 6px;
303
303
  font-size: 15px;
304
304
  stroke-width: 5;
305
305
  }
306
- .l-material-library-right-content .toolbar[data-v-1b7acef9] {
306
+ .l-material-library-right-content .toolbar[data-v-2b660b3b] {
307
307
  margin: 16px 0;
308
308
  display: flex;
309
309
  align-items: center;
310
310
  justify-content: space-between;
311
311
  }
312
- .l-material-library-right-content .toolbar .apps[data-v-1b7acef9],
313
- .l-material-library-right-content .toolbar .menu[data-v-1b7acef9] {
312
+ .l-material-library-right-content .toolbar .apps[data-v-2b660b3b],
313
+ .l-material-library-right-content .toolbar .menu[data-v-2b660b3b] {
314
314
  margin-left: 8px;
315
315
  font-size: 20px;
316
316
  stroke-width: 5;
317
317
  }
318
- .l-material-library-right-content .toolbar .apps[data-v-1b7acef9]:hover,
319
- .l-material-library-right-content .toolbar .menu[data-v-1b7acef9]:hover,
320
- .l-material-library-right-content .toolbar .apps.active[data-v-1b7acef9],
321
- .l-material-library-right-content .toolbar .menu.active[data-v-1b7acef9] {
318
+ .l-material-library-right-content .toolbar .apps[data-v-2b660b3b]:hover,
319
+ .l-material-library-right-content .toolbar .menu[data-v-2b660b3b]:hover,
320
+ .l-material-library-right-content .toolbar .apps.active[data-v-2b660b3b],
321
+ .l-material-library-right-content .toolbar .menu.active[data-v-2b660b3b] {
322
322
  color: #1966ff;
323
323
  cursor: pointer;
324
324
  }
package/dist/index.cjs.js CHANGED
@@ -7041,6 +7041,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
7041
7041
  class: "select",
7042
7042
  style: { "width": "386px" },
7043
7043
  placeholder: "\u8BF7\u9009\u62E9\u5206\u7EC4",
7044
+ "allow-clear": "",
7044
7045
  options: (_a = _ctx.groups) == null ? void 0 : _a.map((item) => ({ label: item.groupName, value: item.id }))
7045
7046
  }, null, 8, ["modelValue", "options"])
7046
7047
  ]),
@@ -7087,7 +7088,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
7087
7088
  _: 1
7088
7089
  }, 8, ["visible", "others", "onHandle:ok"]);
7089
7090
  }
7090
- var CUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-46181845"]]);
7091
+ var CUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-4839e6a6"]]);
7091
7092
  var cRight_vue_vue_type_style_index_0_scoped_true_lang = "";
7092
7093
  const _sfc_main$1 = vue.defineComponent({
7093
7094
  name: "",
@@ -7283,6 +7284,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
7283
7284
  modelValue: _ctx.fileName,
7284
7285
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.fileName = $event),
7285
7286
  class: "input",
7287
+ "allow-clear": "",
7286
7288
  placeholder: "\u8BF7\u8F93\u5165\u7D20\u6750\u540D\u79F0",
7287
7289
  style: { "width": "160px" }
7288
7290
  }, null, 8, ["modelValue"]),
@@ -7292,6 +7294,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
7292
7294
  class: "select",
7293
7295
  options: _ctx.fileTypes,
7294
7296
  disabled: [1, 2, 3, 4].includes((_a = _ctx.config) == null ? void 0 : _a.fileType),
7297
+ "allow-clear": "",
7295
7298
  placeholder: "\u8BF7\u9009\u62E9\u7D20\u6750\u7C7B\u578B",
7296
7299
  style: { "width": "160px" }
7297
7300
  }, null, 8, ["modelValue", "options", "disabled"]),
@@ -7431,7 +7434,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
7431
7434
  }, null, 8, ["config", "onUpload:success"])
7432
7435
  ], 64);
7433
7436
  }
7434
- var CRight = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-1b7acef9"]]);
7437
+ var CRight = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-2b660b3b"]]);
7435
7438
  var index_vue_vue_type_style_index_0_scoped_true_lang = "";
7436
7439
  const _sfc_main = vue.defineComponent({
7437
7440
  name: "MaterialLibrary",
package/dist/index.esm.js CHANGED
@@ -7040,6 +7040,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
7040
7040
  class: "select",
7041
7041
  style: { "width": "386px" },
7042
7042
  placeholder: "\u8BF7\u9009\u62E9\u5206\u7EC4",
7043
+ "allow-clear": "",
7043
7044
  options: (_a = _ctx.groups) == null ? void 0 : _a.map((item) => ({ label: item.groupName, value: item.id }))
7044
7045
  }, null, 8, ["modelValue", "options"])
7045
7046
  ]),
@@ -7086,7 +7087,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
7086
7087
  _: 1
7087
7088
  }, 8, ["visible", "others", "onHandle:ok"]);
7088
7089
  }
7089
- var CUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-46181845"]]);
7090
+ var CUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-4839e6a6"]]);
7090
7091
  var cRight_vue_vue_type_style_index_0_scoped_true_lang = "";
7091
7092
  const _sfc_main$1 = defineComponent({
7092
7093
  name: "",
@@ -7282,6 +7283,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
7282
7283
  modelValue: _ctx.fileName,
7283
7284
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.fileName = $event),
7284
7285
  class: "input",
7286
+ "allow-clear": "",
7285
7287
  placeholder: "\u8BF7\u8F93\u5165\u7D20\u6750\u540D\u79F0",
7286
7288
  style: { "width": "160px" }
7287
7289
  }, null, 8, ["modelValue"]),
@@ -7291,6 +7293,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
7291
7293
  class: "select",
7292
7294
  options: _ctx.fileTypes,
7293
7295
  disabled: [1, 2, 3, 4].includes((_a = _ctx.config) == null ? void 0 : _a.fileType),
7296
+ "allow-clear": "",
7294
7297
  placeholder: "\u8BF7\u9009\u62E9\u7D20\u6750\u7C7B\u578B",
7295
7298
  style: { "width": "160px" }
7296
7299
  }, null, 8, ["modelValue", "options", "disabled"]),
@@ -7430,7 +7433,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
7430
7433
  }, null, 8, ["config", "onUpload:success"])
7431
7434
  ], 64);
7432
7435
  }
7433
- var CRight = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-1b7acef9"]]);
7436
+ var CRight = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-2b660b3b"]]);
7434
7437
  var index_vue_vue_type_style_index_0_scoped_true_lang = "";
7435
7438
  const _sfc_main = defineComponent({
7436
7439
  name: "MaterialLibrary",
package/dist/index.min.js CHANGED
@@ -3299,9 +3299,9 @@
3299
3299
  const a2 = e.resolveComponent("m-input"), l2 = e.resolveComponent("m-select"), c2 = e.resolveComponent("m-radio-group"), f2 = e.resolveComponent("m-upload"), A2 = e.resolveComponent("m-scrollbar"), s2 = e.resolveComponent("m-spin"), g2 = e.resolveComponent("l-modal");
3300
3300
  return e.openBlock(), e.createBlock(g2, { title: "\u4E0A\u4F20\u7D20\u6750", visible: t2.visible, others: { width: 520, okLoading: t2.okLoading }, class: "l-material-library-upload", "onHandle:cancel": n2[3] || (n2[3] = (e2) => t2.visible = false), "onHandle:ok": t2.handleOk }, { default: e.withCtx(() => [e.createVNode(s2, { loading: t2.loading }, { default: e.withCtx(() => {
3301
3301
  var _a;
3302
- return [e.createElementVNode("div", Ze, [n2[4] || (n2[4] = e.createElementVNode("div", { class: "label" }, [e.createElementVNode("span", null, "*"), e.createTextVNode("\u7D20\u6750\u540D\u79F0")], -1)), e.createVNode(a2, { modelValue: t2.fileName, "onUpdate:modelValue": n2[0] || (n2[0] = (e2) => t2.fileName = e2), class: "input", style: { width: "386px" }, placeholder: "\u8BF7\u8F93\u5165", "allow-clear": "", "max-length": 20, "show-word-limit": "" }, null, 8, ["modelValue"])]), e.createElementVNode("div", Te, [n2[5] || (n2[5] = e.createElementVNode("div", { class: "label" }, [e.createElementVNode("span", null, "*"), e.createTextVNode("\u9009\u62E9\u5206\u7EC4")], -1)), e.createVNode(l2, { modelValue: t2.groupId, "onUpdate:modelValue": n2[1] || (n2[1] = (e2) => t2.groupId = e2), class: "select", style: { width: "386px" }, placeholder: "\u8BF7\u9009\u62E9\u5206\u7EC4", options: (_a = t2.groups) == null ? void 0 : _a.map((e2) => ({ label: e2.groupName, value: e2.id })) }, null, 8, ["modelValue", "options"])]), e.createElementVNode("div", _e, [n2[6] || (n2[6] = e.createElementVNode("div", { class: "label" }, [e.createElementVNode("span", null, "*"), e.createTextVNode("\u7D20\u6750\u7C7B\u578B")], -1)), e.createVNode(c2, { modelValue: t2.fileType, "onUpdate:modelValue": n2[2] || (n2[2] = (e2) => t2.fileType = e2), options: t2.fileTypes }, null, 8, ["modelValue", "options"])]), e.createElementVNode("div", $e, [e.createElementVNode("div", et, [1 === t2.fileType ? (e.openBlock(), e.createElementBlock("div", tt, "\u56FE\u7247\u4E0A\u4F20\u683C\u5F0F\u4E3Ajpg\u3001jpeg\u3001png\u3001bmp\u3001webp\u3001GIF, \u5927\u5C0F\u9650\u5236\u572810M\u4EE5\u5185")) : e.createCommentVNode("v-if", true), 2 === t2.fileType ? (e.openBlock(), e.createElementBlock("div", nt, " \u6587\u6863\u4E0A\u4F20\u683C\u5F0F\u4E3Arar\u3001zip\u3001ttf\u3001doc\u3001docx\u3001xls\u3001xlsx\u3001xlsm\u3001pdf\u3001ppt\u3001pptx\u3001txt, \u5927\u5C0F\u9650\u5236\u572820M\u4EE5\u5185 ")) : e.createCommentVNode("v-if", true), 3 === t2.fileType ? (e.openBlock(), e.createElementBlock("div", rt, "\u89C6\u9891\u4E0A\u4F20\u683C\u5F0F\u4E3ASWF\u3001MP4, \u5927\u5C0F\u9650\u5236\u5728300M\u4EE5\u5185")) : e.createCommentVNode("v-if", true), 4 === t2.fileType ? (e.openBlock(), e.createElementBlock("div", ot, "\u97F3\u4E50\u4E0A\u4F20\u683C\u5F0F\u4E3AMP3, \u5927\u5C0F\u9650\u5236\u57285M\u4EE5\u5185")) : e.createCommentVNode("v-if", true)]), e.createVNode(A2, { style: { "max-height": "300px", "overflow-y": "auto", "padding-right": "24px" } }, { default: e.withCtx(() => [e.createVNode(f2, { "file-list": t2.fileList, "auto-upload": false, accept: t2.accept, limit: t2.limit, "show-retry-button": false, "show-cancel-button": false, onExceedLimit: t2.exceedLimit, onBeforeUpload: t2.beforeUpload, onChange: t2.fileChange }, null, 8, ["file-list", "accept", "limit", "onExceedLimit", "onBeforeUpload", "onChange"])]), _: 1 })])];
3302
+ return [e.createElementVNode("div", Ze, [n2[4] || (n2[4] = e.createElementVNode("div", { class: "label" }, [e.createElementVNode("span", null, "*"), e.createTextVNode("\u7D20\u6750\u540D\u79F0")], -1)), e.createVNode(a2, { modelValue: t2.fileName, "onUpdate:modelValue": n2[0] || (n2[0] = (e2) => t2.fileName = e2), class: "input", style: { width: "386px" }, placeholder: "\u8BF7\u8F93\u5165", "allow-clear": "", "max-length": 20, "show-word-limit": "" }, null, 8, ["modelValue"])]), e.createElementVNode("div", Te, [n2[5] || (n2[5] = e.createElementVNode("div", { class: "label" }, [e.createElementVNode("span", null, "*"), e.createTextVNode("\u9009\u62E9\u5206\u7EC4")], -1)), e.createVNode(l2, { modelValue: t2.groupId, "onUpdate:modelValue": n2[1] || (n2[1] = (e2) => t2.groupId = e2), class: "select", style: { width: "386px" }, placeholder: "\u8BF7\u9009\u62E9\u5206\u7EC4", "allow-clear": "", options: (_a = t2.groups) == null ? void 0 : _a.map((e2) => ({ label: e2.groupName, value: e2.id })) }, null, 8, ["modelValue", "options"])]), e.createElementVNode("div", _e, [n2[6] || (n2[6] = e.createElementVNode("div", { class: "label" }, [e.createElementVNode("span", null, "*"), e.createTextVNode("\u7D20\u6750\u7C7B\u578B")], -1)), e.createVNode(c2, { modelValue: t2.fileType, "onUpdate:modelValue": n2[2] || (n2[2] = (e2) => t2.fileType = e2), options: t2.fileTypes }, null, 8, ["modelValue", "options"])]), e.createElementVNode("div", $e, [e.createElementVNode("div", et, [1 === t2.fileType ? (e.openBlock(), e.createElementBlock("div", tt, "\u56FE\u7247\u4E0A\u4F20\u683C\u5F0F\u4E3Ajpg\u3001jpeg\u3001png\u3001bmp\u3001webp\u3001GIF, \u5927\u5C0F\u9650\u5236\u572810M\u4EE5\u5185")) : e.createCommentVNode("v-if", true), 2 === t2.fileType ? (e.openBlock(), e.createElementBlock("div", nt, " \u6587\u6863\u4E0A\u4F20\u683C\u5F0F\u4E3Arar\u3001zip\u3001ttf\u3001doc\u3001docx\u3001xls\u3001xlsx\u3001xlsm\u3001pdf\u3001ppt\u3001pptx\u3001txt, \u5927\u5C0F\u9650\u5236\u572820M\u4EE5\u5185 ")) : e.createCommentVNode("v-if", true), 3 === t2.fileType ? (e.openBlock(), e.createElementBlock("div", rt, "\u89C6\u9891\u4E0A\u4F20\u683C\u5F0F\u4E3ASWF\u3001MP4, \u5927\u5C0F\u9650\u5236\u5728300M\u4EE5\u5185")) : e.createCommentVNode("v-if", true), 4 === t2.fileType ? (e.openBlock(), e.createElementBlock("div", ot, "\u97F3\u4E50\u4E0A\u4F20\u683C\u5F0F\u4E3AMP3, \u5927\u5C0F\u9650\u5236\u57285M\u4EE5\u5185")) : e.createCommentVNode("v-if", true)]), e.createVNode(A2, { style: { "max-height": "300px", "overflow-y": "auto", "padding-right": "24px" } }, { default: e.withCtx(() => [e.createVNode(f2, { "file-list": t2.fileList, "auto-upload": false, accept: t2.accept, limit: t2.limit, "show-retry-button": false, "show-cancel-button": false, onExceedLimit: t2.exceedLimit, onBeforeUpload: t2.beforeUpload, onChange: t2.fileChange }, null, 8, ["file-list", "accept", "limit", "onExceedLimit", "onBeforeUpload", "onChange"])]), _: 1 })])];
3303
3303
  }), _: 1 }, 8, ["loading"])]), _: 1 }, 8, ["visible", "others", "onHandle:ok"]);
3304
- }], ["__scopeId", "data-v-46181845"]]);
3304
+ }], ["__scopeId", "data-v-4839e6a6"]]);
3305
3305
  const ut = e.defineComponent({ name: "", components: { IconDown: n.IconDown, IconApps: n.IconApps, IconMenu: n.IconMenu, LModal: o, CRightApps: H, CRightMenus: je, CChangeGroup: qe, CUpload: it }, props: { config: { type: Object, default: () => ({}) } }, setup(n2, { emit: r2 }) {
3306
3306
  var _a, _b;
3307
3307
  const o2 = e.ref(n2.config), i2 = e.ref(false), u2 = e.ref(false), a2 = e.ref(false), l2 = e.ref(), c2 = e.ref(), f2 = e.ref(), A2 = e.ref(), s2 = e.ref(), g2 = e.ref(), p2 = e.ref((_b = (_a = n2.config) == null ? void 0 : _a.fileType) != null ? _b : ""), v2 = e.ref(1), d2 = e.ref(), h2 = e.ref(1), w2 = e.ref(15), C2 = e.ref({ list: [], total: 0 }), B2 = (e2) => {
@@ -3352,9 +3352,9 @@
3352
3352
  const a2 = e.resolveComponent("m-input"), l2 = e.resolveComponent("m-select"), c2 = e.resolveComponent("m-button"), f2 = e.resolveComponent("m-space"), A2 = e.resolveComponent("icon-down"), s2 = e.resolveComponent("m-doption"), g2 = e.resolveComponent("m-dropdown"), p2 = e.resolveComponent("icon-apps"), v2 = e.resolveComponent("icon-menu"), d2 = e.resolveComponent("CRightApps"), h2 = e.resolveComponent("CRightMenus"), w2 = e.resolveComponent("m-spin"), C2 = e.resolveComponent("l-modal"), B2 = e.resolveComponent("CChangeGroup"), m2 = e.resolveComponent("CUpload");
3353
3353
  return e.openBlock(), e.createElementBlock(e.Fragment, null, [e.createElementVNode("div", at, [e.createCommentVNode(" header "), e.createElementVNode("div", lt, [e.createElementVNode("div", ct, [e.createVNode(f2, null, { default: e.withCtx(() => {
3354
3354
  var _a;
3355
- return [e.createVNode(a2, { modelValue: t2.fileName, "onUpdate:modelValue": n2[0] || (n2[0] = (e2) => t2.fileName = e2), class: "input", placeholder: "\u8BF7\u8F93\u5165\u7D20\u6750\u540D\u79F0", style: { width: "160px" } }, null, 8, ["modelValue"]), e.createVNode(l2, { modelValue: t2.fileType, "onUpdate:modelValue": n2[1] || (n2[1] = (e2) => t2.fileType = e2), class: "select", options: t2.fileTypes, disabled: [1, 2, 3, 4].includes((_a = t2.config) == null ? void 0 : _a.fileType), placeholder: "\u8BF7\u9009\u62E9\u7D20\u6750\u7C7B\u578B", style: { width: "160px" } }, null, 8, ["modelValue", "options", "disabled"]), e.createVNode(c2, { type: "primary", onClick: n2[2] || (n2[2] = (e2) => t2.init(t2.groupId)) }, { default: e.withCtx(() => n2[11] || (n2[11] = [e.createTextVNode("\u67E5\u8BE2")])), _: 1 }), e.createVNode(c2, { onClick: t2.reset }, { default: e.withCtx(() => n2[12] || (n2[12] = [e.createTextVNode("\u91CD\u7F6E")])), _: 1 }, 8, ["onClick"])];
3355
+ return [e.createVNode(a2, { modelValue: t2.fileName, "onUpdate:modelValue": n2[0] || (n2[0] = (e2) => t2.fileName = e2), class: "input", "allow-clear": "", placeholder: "\u8BF7\u8F93\u5165\u7D20\u6750\u540D\u79F0", style: { width: "160px" } }, null, 8, ["modelValue"]), e.createVNode(l2, { modelValue: t2.fileType, "onUpdate:modelValue": n2[1] || (n2[1] = (e2) => t2.fileType = e2), class: "select", options: t2.fileTypes, disabled: [1, 2, 3, 4].includes((_a = t2.config) == null ? void 0 : _a.fileType), "allow-clear": "", placeholder: "\u8BF7\u9009\u62E9\u7D20\u6750\u7C7B\u578B", style: { width: "160px" } }, null, 8, ["modelValue", "options", "disabled"]), e.createVNode(c2, { type: "primary", onClick: n2[2] || (n2[2] = (e2) => t2.init(t2.groupId)) }, { default: e.withCtx(() => n2[11] || (n2[11] = [e.createTextVNode("\u67E5\u8BE2")])), _: 1 }), e.createVNode(c2, { onClick: t2.reset }, { default: e.withCtx(() => n2[12] || (n2[12] = [e.createTextVNode("\u91CD\u7F6E")])), _: 1 }, 8, ["onClick"])];
3356
3356
  }), _: 1 })]), e.createElementVNode("div", ft, [e.createVNode(g2, { position: "br", trigger: "hover" }, { content: e.withCtx(() => [e.createVNode(s2, { onClick: n2[3] || (n2[3] = (e2) => t2.refCUpload.open(t2.groupId)) }, { default: e.withCtx(() => n2[14] || (n2[14] = [e.createTextVNode("\u4E0A\u4F20\u672C\u5730\u7D20\u6750")])), _: 1 }), e.createVNode(s2, { onClick: n2[4] || (n2[4] = (e2) => t2.getIds("\u79FB\u52A8\u5206\u7EC4")) }, { default: e.withCtx(() => n2[15] || (n2[15] = [e.createTextVNode("\u79FB\u52A8\u5206\u7EC4")])), _: 1 }), e.createVNode(s2, { onClick: n2[5] || (n2[5] = (e2) => t2.getIds("\u5220\u9664")) }, { default: e.withCtx(() => n2[16] || (n2[16] = [e.createTextVNode("\u5220\u9664")])), _: 1 })]), default: e.withCtx(() => [e.createVNode(c2, { type: "primary" }, { default: e.withCtx(() => [n2[13] || (n2[13] = e.createTextVNode(" \u66F4\u591A\u64CD\u4F5C ")), e.createVNode(A2, { class: "more-icon-down" })]), _: 1 })]), _: 1 })])]), e.createCommentVNode(" toolbar "), e.createElementVNode("div", At, [n2[17] || (n2[17] = e.createElementVNode("div", null, null, -1)), e.createElementVNode("div", null, [e.createVNode(p2, { class: e.normalizeClass(["apps", 1 === t2.showType ? "active" : ""]), onClick: n2[6] || (n2[6] = (e2) => t2.showType = 1) }, null, 8, ["class"]), e.createVNode(v2, { class: e.normalizeClass(["menu", 2 === t2.showType ? "active" : ""]), onClick: n2[7] || (n2[7] = (e2) => t2.showType = 2) }, null, 8, ["class"])])]), e.createCommentVNode(" content "), e.createVNode(w2, { loading: t2.loading, style: { width: "100%" } }, { default: e.withCtx(() => [1 === t2.showType ? (e.openBlock(), e.createBlock(d2, { key: 0, ref: "refCRightApps", config: t2.config, datas: t2.datas, "onHandle:page": t2.handlePage, "onHandle:page:sizes": t2.handlePageSizes, "onHandle:preview": t2.handlePreview, "onHandle:remove": t2.handleRemove, "onHandle:move": n2[8] || (n2[8] = (e2) => t2.refCChangeGroup.open([e2.id])) }, null, 8, ["config", "datas", "onHandle:page", "onHandle:page:sizes", "onHandle:preview", "onHandle:remove"])) : e.createCommentVNode("v-if", true), 2 === t2.showType ? (e.openBlock(), e.createBlock(h2, { key: 1, ref: "refCRightMenus", config: t2.config, datas: t2.datas, "onHandle:page": t2.handlePage, "onHandle:page:sizes": t2.handlePageSizes, "onHandle:preview": t2.handlePreview, "onHandle:remove": t2.handleRemove, "onHandle:move": n2[9] || (n2[9] = (e2) => t2.refCChangeGroup.open([e2.id])) }, null, 8, ["config", "datas", "onHandle:page", "onHandle:page:sizes", "onHandle:preview", "onHandle:remove"])) : e.createCommentVNode("v-if", true)]), _: 1 }, 8, ["loading"])]), e.createVNode(C2, { title: "\u5220\u9664\u63D0\u793A", visible: t2.visible, others: { width: 390, okLoading: t2.removeLoading }, "onHandle:cancel": n2[10] || (n2[10] = (e2) => t2.visible = false), "onHandle:ok": t2.handleRemoveOk }, { default: e.withCtx(() => n2[18] || (n2[18] = [e.createTextVNode(" \u5220\u9664\u7D20\u6750\u540E\uFF0C\u5C06\u65E0\u6CD5\u88AB\u6062\u590D\u3002 ")])), _: 1 }, 8, ["visible", "others", "onHandle:ok"]), e.createCommentVNode(" \u4FEE\u6539\u5206\u7EC4 "), e.createVNode(B2, { ref: "refCChangeGroup", config: t2.deepConfig, "onMove:success": t2.reset }, null, 8, ["config", "onMove:success"]), e.createCommentVNode(" \u4E0A\u4F20\u7D20\u6750 "), e.createVNode(m2, { ref: "refCUpload", config: t2.deepConfig, "onUpload:success": t2.reset }, null, 8, ["config", "onUpload:success"])], 64);
3357
- }], ["__scopeId", "data-v-1b7acef9"]]);
3357
+ }], ["__scopeId", "data-v-2b660b3b"]]);
3358
3358
  const gt = e.defineComponent({ name: "MaterialLibrary", components: { CLeft: L, CRight: st, LModal: o }, props: { config: { type: Object, default: () => ({}) } }, setup(n2, { emit: r2 }) {
3359
3359
  const o2 = e.ref(n2.config), i2 = e.ref(), u2 = e.ref(), a2 = e.ref(false);
3360
3360
  e.watch(() => n2.config, (e2) => o2.value = e2, { immediate: true, deep: true });