@moment-design/material-library 0.0.19 → 0.0.20

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.
@@ -258,32 +258,32 @@
258
258
  overflow: hidden;
259
259
  text-overflow: ellipsis;
260
260
  }
261
- .l-material-library-upload .form-item[data-v-69d5a27e] {
261
+ .l-material-library-upload .form-item[data-v-5184484c] {
262
262
  display: flex;
263
263
  align-items: center;
264
264
  margin-bottom: 16px;
265
265
  }
266
- .l-material-library-upload .form-item[data-v-69d5a27e]:not(:last-child) {
266
+ .l-material-library-upload .form-item[data-v-5184484c]:not(:last-child) {
267
267
  margin-bottom: 16px;
268
268
  }
269
- .l-material-library-upload .form-item .label[data-v-69d5a27e] {
269
+ .l-material-library-upload .form-item .label[data-v-5184484c] {
270
270
  width: 70px;
271
271
  margin-right: 16px;
272
272
  }
273
- .l-material-library-upload .form-item .label span[data-v-69d5a27e] {
273
+ .l-material-library-upload .form-item .label span[data-v-5184484c] {
274
274
  color: red;
275
275
  margin-right: 4px;
276
276
  position: relative;
277
277
  top: 2px;
278
278
  }
279
- .l-material-library-upload .upload[data-v-69d5a27e] {
279
+ .l-material-library-upload .upload[data-v-5184484c] {
280
280
  margin-top: 16px;
281
281
  }
282
- .l-material-library-upload .upload .tips[data-v-69d5a27e] {
282
+ .l-material-library-upload .upload .tips[data-v-5184484c] {
283
283
  margin-bottom: 16px;
284
284
  color: #86909c;
285
285
  }
286
- .l-material-library-upload .upload[data-v-69d5a27e] .mo-upload-progress {
286
+ .l-material-library-upload .upload[data-v-5184484c] .mo-upload-progress {
287
287
  display: none;
288
288
  }
289
289
  .l-material-library-right-content[data-v-000552f9] {
package/dist/index.cjs.js CHANGED
@@ -6882,7 +6882,7 @@ const _sfc_main$2 = vue.defineComponent({
6882
6882
  };
6883
6883
  const fileChange = (vs) => fileList.value = vs;
6884
6884
  const handleOk = async () => {
6885
- var _a2, _b, _c;
6885
+ var _a2, _b, _c, _d, _e;
6886
6886
  if (!fileName.value) {
6887
6887
  webVue.Message.error("\u8BF7\u8F93\u5165\u7D20\u6750\u540D\u79F0");
6888
6888
  } else if (!groupId.value) {
@@ -6898,7 +6898,7 @@ const _sfc_main$2 = vue.defineComponent({
6898
6898
  try {
6899
6899
  okLoading.value = true;
6900
6900
  const res = await ((_b = (_a2 = deepConfig.value) == null ? void 0 : _a2.apis) == null ? void 0 : _b.uploadFile(data));
6901
- if (((_c = [0, 200]) == null ? void 0 : _c.includes(+(res == null ? void 0 : res.code))) && (res == null ? void 0 : res.data)) {
6901
+ if (((_c = [0, 200]) == null ? void 0 : _c.includes(+(res == null ? void 0 : res.code))) || ((_e = [0, 200]) == null ? void 0 : _e.includes(+((_d = res == null ? void 0 : res.data) == null ? void 0 : _d.code)))) {
6902
6902
  webVue.Message.success(`\u7D20\u6750\u4E0A\u4F20\u6210\u529F`);
6903
6903
  visible.value = false;
6904
6904
  emit("upload:success");
@@ -7086,7 +7086,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
7086
7086
  _: 1
7087
7087
  }, 8, ["visible", "others", "onHandle:ok"]);
7088
7088
  }
7089
- var CUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-69d5a27e"]]);
7089
+ var CUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-5184484c"]]);
7090
7090
  var cRight_vue_vue_type_style_index_0_scoped_true_lang = "";
7091
7091
  const _sfc_main$1 = vue.defineComponent({
7092
7092
  name: "",
package/dist/index.esm.js CHANGED
@@ -6881,7 +6881,7 @@ const _sfc_main$2 = defineComponent({
6881
6881
  };
6882
6882
  const fileChange = (vs) => fileList.value = vs;
6883
6883
  const handleOk = async () => {
6884
- var _a2, _b, _c;
6884
+ var _a2, _b, _c, _d, _e;
6885
6885
  if (!fileName.value) {
6886
6886
  Message.error("\u8BF7\u8F93\u5165\u7D20\u6750\u540D\u79F0");
6887
6887
  } else if (!groupId.value) {
@@ -6897,7 +6897,7 @@ const _sfc_main$2 = defineComponent({
6897
6897
  try {
6898
6898
  okLoading.value = true;
6899
6899
  const res = await ((_b = (_a2 = deepConfig.value) == null ? void 0 : _a2.apis) == null ? void 0 : _b.uploadFile(data));
6900
- if (((_c = [0, 200]) == null ? void 0 : _c.includes(+(res == null ? void 0 : res.code))) && (res == null ? void 0 : res.data)) {
6900
+ if (((_c = [0, 200]) == null ? void 0 : _c.includes(+(res == null ? void 0 : res.code))) || ((_e = [0, 200]) == null ? void 0 : _e.includes(+((_d = res == null ? void 0 : res.data) == null ? void 0 : _d.code)))) {
6901
6901
  Message.success(`\u7D20\u6750\u4E0A\u4F20\u6210\u529F`);
6902
6902
  visible.value = false;
6903
6903
  emit("upload:success");
@@ -7085,7 +7085,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
7085
7085
  _: 1
7086
7086
  }, 8, ["visible", "others", "onHandle:ok"]);
7087
7087
  }
7088
- var CUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-69d5a27e"]]);
7088
+ var CUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-5184484c"]]);
7089
7089
  var cRight_vue_vue_type_style_index_0_scoped_true_lang = "";
7090
7090
  const _sfc_main$1 = defineComponent({
7091
7091
  name: "",
package/dist/index.min.js CHANGED
@@ -3275,7 +3275,7 @@
3275
3275
  var _a2;
3276
3276
  ((_a2 = o2.value) == null ? void 0 : _a2.size) > e2.size / 1024 / 1024 || 1 === c2.value && e2.size / 1024 / 1024 > 10 || 2 === c2.value && e2.size / 1024 / 1024 > 20 || 3 === c2.value && e2.size / 1024 / 1024 > 300 || 4 === c2.value && e2.size / 1024 / 1024 > 5 ? (t.Message.error("\u60A8\u5F53\u524D\u9009\u62E9\u7684\u7D20\u6750\u5927\u5C0F\u8D85\u51FA\u9650\u5236\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9"), r3()) : n3(true);
3277
3277
  }), fileChange: (e2) => p2.value = e2, handleOk: async () => {
3278
- var _a2, _b, _c;
3278
+ var _a2, _b, _c, _d, _e2;
3279
3279
  if (l2.value)
3280
3280
  if (f2.value)
3281
3281
  if (p2.value.length) {
@@ -3284,7 +3284,7 @@
3284
3284
  try {
3285
3285
  a2.value = true;
3286
3286
  const n3 = await ((_b = (_a2 = o2.value) == null ? void 0 : _a2.apis) == null ? void 0 : _b.uploadFile(e2));
3287
- ((_c = [0, 200]) == null ? void 0 : _c.includes(+(n3 == null ? void 0 : n3.code))) && (n3 == null ? void 0 : n3.data) && (t.Message.success("\u7D20\u6750\u4E0A\u4F20\u6210\u529F"), i2.value = false, r2("upload:success"));
3287
+ (((_c = [0, 200]) == null ? void 0 : _c.includes(+(n3 == null ? void 0 : n3.code))) || ((_e2 = [0, 200]) == null ? void 0 : _e2.includes(+((_d = n3 == null ? void 0 : n3.data) == null ? void 0 : _d.code)))) && (t.Message.success("\u7D20\u6750\u4E0A\u4F20\u6210\u529F"), i2.value = false, r2("upload:success"));
3288
3288
  } catch (e3) {
3289
3289
  console.log(e3);
3290
3290
  } finally {
@@ -3306,7 +3306,7 @@
3306
3306
  var _a;
3307
3307
  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", Ze, [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", Te, [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", $e, [1 === t2.fileType ? (e.openBlock(), e.createElementBlock("div", et, "\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", tt, " \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", nt, "\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", rt, "\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 })])];
3308
3308
  }), _: 1 }, 8, ["loading"])]), _: 1 }, 8, ["visible", "others", "onHandle:ok"]);
3309
- }], ["__scopeId", "data-v-69d5a27e"]]);
3309
+ }], ["__scopeId", "data-v-5184484c"]]);
3310
3310
  const it = e.defineComponent({ name: "", components: { IconDown: n.IconDown, IconApps: n.IconApps, IconMenu: n.IconMenu, LModal: o, CRightApps: P, CRightMenus: Je, CChangeGroup: He, CUpload: ot }, props: { config: { type: Object, default: () => ({}) } }, setup(n2, { emit: r2 }) {
3311
3311
  var _a, _b;
3312
3312
  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) => {