@moment-design/material-library 0.1.10 → 0.1.12

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.
@@ -193,11 +193,11 @@
193
193
  .operate-omit-list[data-v-0b1d01dd] {
194
194
  color: #1966ff;
195
195
  }
196
- .right-menu .l-material-library-infos[data-v-2498dcdb] {
196
+ .right-menu .l-material-library-infos[data-v-5a79d54b] {
197
197
  display: flex;
198
198
  align-items: center;
199
199
  }
200
- .right-menu .l-material-library-infos .name[data-v-2498dcdb] {
200
+ .right-menu .l-material-library-infos .name[data-v-5a79d54b] {
201
201
  margin-left: 6px;
202
202
  font-size: 14px;
203
203
  flex: 1;
@@ -206,13 +206,13 @@
206
206
  overflow: hidden;
207
207
  text-overflow: ellipsis;
208
208
  }
209
- .pagination[data-v-2498dcdb] {
209
+ .pagination[data-v-5a79d54b] {
210
210
  display: flex;
211
211
  justify-content: flex-end;
212
212
  width: 100%;
213
213
  margin-top: 16px;
214
214
  }
215
- .l-material-library-info[data-v-2498dcdb] {
215
+ .l-material-library-info[data-v-5a79d54b] {
216
216
  background-color: #ffffff;
217
217
  border-radius: 2px;
218
218
  padding: 16px;
@@ -257,32 +257,32 @@
257
257
  overflow: hidden;
258
258
  text-overflow: ellipsis;
259
259
  }
260
- .l-material-library-upload .form-item[data-v-4839e6a6] {
260
+ .l-material-library-upload .form-item[data-v-3fcdc336] {
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-4839e6a6]:not(:last-child) {
265
+ .l-material-library-upload .form-item[data-v-3fcdc336]:not(:last-child) {
266
266
  margin-bottom: 16px;
267
267
  }
268
- .l-material-library-upload .form-item .label[data-v-4839e6a6] {
268
+ .l-material-library-upload .form-item .label[data-v-3fcdc336] {
269
269
  width: 70px;
270
270
  margin-right: 16px;
271
271
  }
272
- .l-material-library-upload .form-item .label span[data-v-4839e6a6] {
272
+ .l-material-library-upload .form-item .label span[data-v-3fcdc336] {
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-4839e6a6] {
278
+ .l-material-library-upload .upload[data-v-3fcdc336] {
279
279
  margin-top: 16px;
280
280
  }
281
- .l-material-library-upload .upload .tips[data-v-4839e6a6] {
281
+ .l-material-library-upload .upload .tips[data-v-3fcdc336] {
282
282
  margin-bottom: 16px;
283
283
  color: #86909c;
284
284
  }
285
- .l-material-library-upload .upload[data-v-4839e6a6] .mo-upload-progress {
285
+ .l-material-library-upload .upload[data-v-3fcdc336] .mo-upload-progress {
286
286
  display: none;
287
287
  }
288
288
  .l-material-library-right-content[data-v-4085b1b9] {
package/dist/index.cjs.js CHANGED
@@ -6683,6 +6683,7 @@ const _sfc_main$4 = vue.defineComponent({
6683
6683
  () => props.datas,
6684
6684
  (v) => {
6685
6685
  deepTableConfig.table.data = v.list;
6686
+ deepDatas.value = v;
6686
6687
  deepTableConfig.table.selectedRows = [];
6687
6688
  },
6688
6689
  { immediate: true, deep: true }
@@ -6789,7 +6790,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
6789
6790
  ])
6790
6791
  ], 64);
6791
6792
  }
6792
- var CRightMenus = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-2498dcdb"]]);
6793
+ var CRightMenus = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-5a79d54b"]]);
6793
6794
  var cChangeGroup_vue_vue_type_style_index_0_scoped_true_lang = "";
6794
6795
  const _sfc_main$3 = vue.defineComponent({
6795
6796
  name: "",
@@ -7020,7 +7021,7 @@ const _sfc_main$2 = vue.defineComponent({
7020
7021
  accept.value = ".jpg,.jpeg,.png,.bmp,.webp,.gif";
7021
7022
  break;
7022
7023
  case 2:
7023
- accept.value = ".rar,.zip,.ttf,.doc,.docx,.xls,.xlsx,.xlsm,.pdf,.ppt,.pptx,.txt'";
7024
+ accept.value = ".rar,.zip,.ttf,.doc,.docx,.xls,.xlsx,.xlsm,.pdf,.ppt,.pptx,.txt";
7024
7025
  break;
7025
7026
  case 3:
7026
7027
  accept.value = ".swf,.mp4";
@@ -7159,7 +7160,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
7159
7160
  _: 1
7160
7161
  }, 8, ["visible", "others", "onHandle:ok"]);
7161
7162
  }
7162
- var CUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-4839e6a6"]]);
7163
+ var CUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-3fcdc336"]]);
7163
7164
  var cRight_vue_vue_type_style_index_0_scoped_true_lang = "";
7164
7165
  const _sfc_main$1 = vue.defineComponent({
7165
7166
  name: "",
package/dist/index.esm.js CHANGED
@@ -6682,6 +6682,7 @@ const _sfc_main$4 = defineComponent({
6682
6682
  () => props.datas,
6683
6683
  (v) => {
6684
6684
  deepTableConfig.table.data = v.list;
6685
+ deepDatas.value = v;
6685
6686
  deepTableConfig.table.selectedRows = [];
6686
6687
  },
6687
6688
  { immediate: true, deep: true }
@@ -6788,7 +6789,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
6788
6789
  ])
6789
6790
  ], 64);
6790
6791
  }
6791
- var CRightMenus = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-2498dcdb"]]);
6792
+ var CRightMenus = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-5a79d54b"]]);
6792
6793
  var cChangeGroup_vue_vue_type_style_index_0_scoped_true_lang = "";
6793
6794
  const _sfc_main$3 = defineComponent({
6794
6795
  name: "",
@@ -7019,7 +7020,7 @@ const _sfc_main$2 = defineComponent({
7019
7020
  accept.value = ".jpg,.jpeg,.png,.bmp,.webp,.gif";
7020
7021
  break;
7021
7022
  case 2:
7022
- accept.value = ".rar,.zip,.ttf,.doc,.docx,.xls,.xlsx,.xlsm,.pdf,.ppt,.pptx,.txt'";
7023
+ accept.value = ".rar,.zip,.ttf,.doc,.docx,.xls,.xlsx,.xlsm,.pdf,.ppt,.pptx,.txt";
7023
7024
  break;
7024
7025
  case 3:
7025
7026
  accept.value = ".swf,.mp4";
@@ -7158,7 +7159,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
7158
7159
  _: 1
7159
7160
  }, 8, ["visible", "others", "onHandle:ok"]);
7160
7161
  }
7161
- var CUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-4839e6a6"]]);
7162
+ var CUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-3fcdc336"]]);
7162
7163
  var cRight_vue_vue_type_style_index_0_scoped_true_lang = "";
7163
7164
  const _sfc_main$1 = defineComponent({
7164
7165
  name: "",
package/dist/index.min.js CHANGED
@@ -3174,7 +3174,7 @@
3174
3174
  const Se = e.defineComponent({ name: "", components: { LTableOperate: Qe }, props: { datas: { type: Array, default: () => [] }, config: { type: Object, default: () => ({}) } }, setup(t2, { emit: n2 }) {
3175
3175
  const r2 = e.ref(t2.config), o2 = e.ref(t2.datas), i2 = e.ref(15), u2 = e.reactive({ table: { selectedType: "checkbox", selectedRows: [], data: [], columns: [{ type: "slot", title: "\u7D20\u6750\u540D\u79F0", dataIndex: "info" }, { type: "dict", title: "\u7D20\u6750\u7C7B\u578B", dataIndex: "fileType", dicts: Me, width: 160 }, { title: "\u66F4\u65B0\u65F6\u95F4", dataIndex: "updateAt" }, { type: "slot", title: "\u64CD\u4F5C", dataIndex: "operate", width: 220, align: "center" }] } });
3176
3176
  return e.watch(() => t2.datas, (e2) => {
3177
- u2.table.data = e2.list, u2.table.selectedRows = [];
3177
+ u2.table.data = e2.list, o2.value = e2, u2.table.selectedRows = [];
3178
3178
  }, { immediate: true, deep: true }), { deepDatas: o2, deepConfig: r2, pageSize: i2, changePage: (e2) => {
3179
3179
  n2("handle:page", e2);
3180
3180
  }, changePageSizes: (e2) => {
@@ -3211,7 +3211,7 @@
3211
3211
  var _a, _b;
3212
3212
  const a2 = e.resolveComponent("m-image"), l2 = e.resolveComponent("m-trigger"), c2 = e.resolveComponent("LTableOperate"), f2 = e.resolveComponent("m-query-table"), A2 = e.resolveComponent("m-scrollbar"), s2 = e.resolveComponent("m-pagination");
3213
3213
  return e.openBlock(), e.createElementBlock(e.Fragment, null, [e.createVNode(A2, { style: e.normalizeStyle([{ overflow: "auto" }, { height: ((_b = (_a = t2.deepConfig) == null ? void 0 : _a.scroll) == null ? void 0 : _b.right) ? t2.deepConfig.scroll.right : "430px" }]) }, { default: e.withCtx(() => [e.createVNode(f2, { config: t2.deepTableConfig, class: "right-menu" }, { info: e.withCtx(({ rows: r3 }) => [e.createElementVNode("div", We, [e.createVNode(a2, { src: t2.getMaterialIcon(r3), preview: false, width: "40", height: "40", fit: "contain" }, null, 8, ["src"]), e.createVNode(l2, { position: "top", "auto-fit-position": "", "unmount-on-close": false }, { content: e.withCtx(() => [e.createElementVNode("div", Ke, [e.createElementVNode("div", null, [n2[0] || (n2[0] = e.createElementVNode("span", null, "\u540D\u79F0\uFF1A", -1)), e.createElementVNode("span", null, e.toDisplayString(r3.fileName), 1)]), e.createElementVNode("div", null, [n2[1] || (n2[1] = e.createElementVNode("span", null, "\u7C7B\u578B\uFF1A", -1)), e.createElementVNode("span", null, e.toDisplayString(r3.fileFormat), 1)]), e.createElementVNode("div", null, [n2[2] || (n2[2] = e.createElementVNode("span", null, "\u4FEE\u6539\u65F6\u95F4\uFF1A", -1)), e.createElementVNode("span", null, e.toDisplayString(r3.updateAt), 1)])])]), default: e.withCtx(() => [e.createElementVNode("div", Ie, e.toDisplayString(r3.fileName), 1)]), _: 2 }, 1024)])]), operate: e.withCtx(({ rows: n3 }) => [e.createVNode(c2, { list: t2.operateList(), "onHandle:click": (e2) => t2.handleOperate(e2, n3) }, null, 8, ["list", "onHandle:click"])]), _: 1 }, 8, ["config"])]), _: 1 }, 8, ["style"]), e.createCommentVNode(" pagination "), e.createElementVNode("div", Je, [e.createVNode(s2, { total: +t2.deepDatas.total, "show-total": "", "show-jumper": "", "show-page-size": "", "page-size": t2.pageSize, "page-size-options": [15, 30, 45, 90], onChange: t2.changePage, onPageSizeChange: t2.changePageSizes }, null, 8, ["total", "page-size", "onChange", "onPageSizeChange"])])], 64);
3214
- }], ["__scopeId", "data-v-2498dcdb"]]);
3214
+ }], ["__scopeId", "data-v-5a79d54b"]]);
3215
3215
  const je = e.defineComponent({ name: "", components: { LModal: o }, props: { config: { type: Object, default: () => ({}) } }, setup(n2, { emit: r2 }) {
3216
3216
  const o2 = e.ref(n2.config), i2 = e.ref(), u2 = e.ref(false), a2 = e.ref(false), l2 = e.ref(), c2 = e.ref(), f2 = e.ref(), A2 = async () => {
3217
3217
  var _a, _b, _c;
@@ -3273,7 +3273,7 @@
3273
3273
  g2.value = ".jpg,.jpeg,.png,.bmp,.webp,.gif";
3274
3274
  break;
3275
3275
  case 2:
3276
- g2.value = ".rar,.zip,.ttf,.doc,.docx,.xls,.xlsx,.xlsm,.pdf,.ppt,.pptx,.txt'";
3276
+ g2.value = ".rar,.zip,.ttf,.doc,.docx,.xls,.xlsx,.xlsm,.pdf,.ppt,.pptx,.txt";
3277
3277
  break;
3278
3278
  case 3:
3279
3279
  g2.value = ".swf,.mp4";
@@ -3317,7 +3317,7 @@
3317
3317
  var _a;
3318
3318
  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 })])];
3319
3319
  }), _: 1 }, 8, ["loading"])]), _: 1 }, 8, ["visible", "others", "onHandle:ok"]);
3320
- }], ["__scopeId", "data-v-4839e6a6"]]);
3320
+ }], ["__scopeId", "data-v-3fcdc336"]]);
3321
3321
  const ut = e.defineComponent({ name: "", components: { IconDown: n.IconDown, IconApps: n.IconApps, IconMenu: n.IconMenu, LModal: o, CRightApps: H, CRightMenus: Re, CChangeGroup: qe, CUpload: it }, props: { config: { type: Object, default: () => ({}) } }, setup(n2, { emit: r2 }) {
3322
3322
  var _a, _b;
3323
3323
  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 = e.ref(true), m2 = e.ref(true), y2 = e.ref(true), F2 = e.ref(true);