@moment-design/material-library 0.0.21 → 0.0.22

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
@@ -24,15 +24,14 @@ import MaterialLibrary from "@moment-design/material-library"
24
24
 
25
25
  Props
26
26
 
27
- | 参数名 | 描述 | 类型 | 默认值 |
28
- | -------- | ---------------------------- | ------------ | ------------------------------- |
29
- | fileType | 素材类型限制 | number | 1[图片],2[文档],3[视频],4[音乐] |
30
- | accept | 文件类型限制 | string | - |
31
- | size | 文件大小限制(M) | number | - |
32
- | max | 素材最大数量 | number | 10 |
33
- | dialog | 列表、弹窗样式 | DialogConfig | {} |
34
- | scroll | 左侧分组、右侧内容滚动条高度 | ScrollConfig | {} |
35
- | apis | 素材库相关接口 | ApisConfig | {} |
27
+ | 参数名 | 描述 | 类型 | 默认值 |
28
+ | -------------- | ---------------------------- | ----------------------------------- | ------------------------------- |
29
+ | fileType | 素材类型限制 | number | 1[图片],2[文档],3[视频],4[音乐] |
30
+ | max | 素材最大数量 | number | 10 |
31
+ | dialog | 列表、弹窗样式 | DialogConfig | {} |
32
+ | scroll | 左侧分组、右侧内容滚动条高度 | ScrollConfig | {} |
33
+ | apis | 素材库相关接口 | ApisConfig | {} |
34
+ | customValidate | 自定义校验函数 | Function (返回值:true 或 报错信息) | - |
36
35
 
37
36
  DialogConfig
38
37
 
@@ -258,32 +258,32 @@
258
258
  overflow: hidden;
259
259
  text-overflow: ellipsis;
260
260
  }
261
- .l-material-library-upload .form-item[data-v-2141df9a] {
261
+ .l-material-library-upload .form-item[data-v-46181845] {
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-2141df9a]:not(:last-child) {
266
+ .l-material-library-upload .form-item[data-v-46181845]:not(:last-child) {
267
267
  margin-bottom: 16px;
268
268
  }
269
- .l-material-library-upload .form-item .label[data-v-2141df9a] {
269
+ .l-material-library-upload .form-item .label[data-v-46181845] {
270
270
  width: 70px;
271
271
  margin-right: 16px;
272
272
  }
273
- .l-material-library-upload .form-item .label span[data-v-2141df9a] {
273
+ .l-material-library-upload .form-item .label span[data-v-46181845] {
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-2141df9a] {
279
+ .l-material-library-upload .upload[data-v-46181845] {
280
280
  margin-top: 16px;
281
281
  }
282
- .l-material-library-upload .upload .tips[data-v-2141df9a] {
282
+ .l-material-library-upload .upload .tips[data-v-46181845] {
283
283
  margin-bottom: 16px;
284
284
  color: #86909c;
285
285
  }
286
- .l-material-library-upload .upload[data-v-2141df9a] .mo-upload-progress {
286
+ .l-material-library-upload .upload[data-v-46181845] .mo-upload-progress {
287
287
  display: none;
288
288
  }
289
289
  .l-material-library-right-content[data-v-1b7acef9] {
@@ -323,6 +323,6 @@
323
323
  color: #1966ff;
324
324
  cursor: pointer;
325
325
  }
326
- .l-material-library[data-v-5b6e4cf9] {
326
+ .l-material-library[data-v-7853c7cd] {
327
327
  display: flex;
328
328
  }
package/dist/index.cjs.js CHANGED
@@ -6868,11 +6868,7 @@ const _sfc_main$2 = vue.defineComponent({
6868
6868
  };
6869
6869
  const beforeUpload = (file) => {
6870
6870
  return new Promise((resolve, reject) => {
6871
- var _a2;
6872
- if (file.size / 1024 / 1024 > ((_a2 = deepConfig.value) == null ? void 0 : _a2.size)) {
6873
- webVue.Message.error(`\u60A8\u5F53\u524D\u9009\u62E9\u7684\u7D20\u6750\u5927\u5C0F\u8D85\u51FA\u9650\u5236\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);
6874
- reject();
6875
- } else if (fileType.value === 1 && file.size / 1024 / 1024 > 10 || fileType.value === 2 && file.size / 1024 / 1024 > 20 || fileType.value === 3 && file.size / 1024 / 1024 > 300 || fileType.value === 4 && file.size / 1024 / 1024 > 5) {
6871
+ if (fileType.value === 1 && file.size / 1024 / 1024 > 10 || fileType.value === 2 && file.size / 1024 / 1024 > 20 || fileType.value === 3 && file.size / 1024 / 1024 > 300 || fileType.value === 4 && file.size / 1024 / 1024 > 5) {
6876
6872
  webVue.Message.error(`\u60A8\u5F53\u524D\u9009\u62E9\u7684\u7D20\u6750\u5927\u5C0F\u8D85\u51FA\u9650\u5236\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);
6877
6873
  reject();
6878
6874
  } else {
@@ -6935,28 +6931,23 @@ const _sfc_main$2 = vue.defineComponent({
6935
6931
  vue.watch(
6936
6932
  () => fileType.value,
6937
6933
  (v) => {
6938
- var _a2, _b;
6939
6934
  fileList.value = [];
6940
- if ((_a2 = deepConfig.value) == null ? void 0 : _a2.accept) {
6941
- accept.value = (_b = deepConfig.value.accept) == null ? void 0 : _b.toLowerCase();
6942
- } else {
6943
- switch (v) {
6944
- case 0:
6945
- accept.value = "";
6946
- break;
6947
- case 1:
6948
- accept.value = ".jpg,.jpeg,.png,.bmp,.webp,.gif";
6949
- break;
6950
- case 2:
6951
- accept.value = ".rar,.zip,.ttf,.doc,.docx,.xls,.xlsx,.xlsm,.pdf,.ppt,.pptx,.txt'";
6952
- break;
6953
- case 3:
6954
- accept.value = ".swf,.mp4";
6955
- break;
6956
- case 4:
6957
- accept.value = ".mp3";
6958
- break;
6959
- }
6935
+ switch (v) {
6936
+ case 0:
6937
+ accept.value = "";
6938
+ break;
6939
+ case 1:
6940
+ accept.value = ".jpg,.jpeg,.png,.bmp,.webp,.gif";
6941
+ break;
6942
+ case 2:
6943
+ accept.value = ".rar,.zip,.ttf,.doc,.docx,.xls,.xlsx,.xlsm,.pdf,.ppt,.pptx,.txt'";
6944
+ break;
6945
+ case 3:
6946
+ accept.value = ".swf,.mp4";
6947
+ break;
6948
+ case 4:
6949
+ accept.value = ".mp3";
6950
+ break;
6960
6951
  }
6961
6952
  },
6962
6953
  { immediate: true }
@@ -7087,7 +7078,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
7087
7078
  _: 1
7088
7079
  }, 8, ["visible", "others", "onHandle:ok"]);
7089
7080
  }
7090
- var CUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-2141df9a"]]);
7081
+ var CUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-46181845"]]);
7091
7082
  var cRight_vue_vue_type_style_index_0_scoped_true_lang = "";
7092
7083
  const _sfc_main$1 = vue.defineComponent({
7093
7084
  name: "",
@@ -7452,12 +7443,20 @@ const _sfc_main = vue.defineComponent({
7452
7443
  const refCRight = vue.ref();
7453
7444
  const visible = vue.ref(false);
7454
7445
  const handleOk = () => {
7455
- var _a, _b, _c, _d;
7446
+ var _a, _b, _c, _d, _e, _f;
7456
7447
  const result = refCRight.value.getItems();
7457
7448
  if (!(result == null ? void 0 : result.length)) {
7458
7449
  webVue.Message.error("\u8BF7\u9009\u62E9\u7D20\u6750");
7459
7450
  } else if (result.length > ((_b = (_a = deepConfig.value) == null ? void 0 : _a.max) != null ? _b : 10)) {
7460
7451
  webVue.Message.error(`\u6700\u591A\u9009\u62E9${(_d = (_c = deepConfig.value) == null ? void 0 : _c.max) != null ? _d : 10}\u4E2A\u7D20\u6750`);
7452
+ } else if ((_e = deepConfig.value) == null ? void 0 : _e.customValidate) {
7453
+ const res = (_f = deepConfig.value) == null ? void 0 : _f.customValidate(result);
7454
+ if (res === true) {
7455
+ visible.value = false;
7456
+ emit("choose", result);
7457
+ } else {
7458
+ webVue.Message.error(res);
7459
+ }
7461
7460
  } else {
7462
7461
  visible.value = false;
7463
7462
  emit("choose", result);
@@ -7539,5 +7538,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
7539
7538
  ], 2112))
7540
7539
  ], 2112);
7541
7540
  }
7542
- var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5b6e4cf9"]]);
7541
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-7853c7cd"]]);
7543
7542
  module.exports = index;
package/dist/index.esm.js CHANGED
@@ -6867,11 +6867,7 @@ const _sfc_main$2 = defineComponent({
6867
6867
  };
6868
6868
  const beforeUpload = (file) => {
6869
6869
  return new Promise((resolve, reject) => {
6870
- var _a2;
6871
- if (file.size / 1024 / 1024 > ((_a2 = deepConfig.value) == null ? void 0 : _a2.size)) {
6872
- Message.error(`\u60A8\u5F53\u524D\u9009\u62E9\u7684\u7D20\u6750\u5927\u5C0F\u8D85\u51FA\u9650\u5236\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);
6873
- reject();
6874
- } else if (fileType.value === 1 && file.size / 1024 / 1024 > 10 || fileType.value === 2 && file.size / 1024 / 1024 > 20 || fileType.value === 3 && file.size / 1024 / 1024 > 300 || fileType.value === 4 && file.size / 1024 / 1024 > 5) {
6870
+ if (fileType.value === 1 && file.size / 1024 / 1024 > 10 || fileType.value === 2 && file.size / 1024 / 1024 > 20 || fileType.value === 3 && file.size / 1024 / 1024 > 300 || fileType.value === 4 && file.size / 1024 / 1024 > 5) {
6875
6871
  Message.error(`\u60A8\u5F53\u524D\u9009\u62E9\u7684\u7D20\u6750\u5927\u5C0F\u8D85\u51FA\u9650\u5236\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);
6876
6872
  reject();
6877
6873
  } else {
@@ -6934,28 +6930,23 @@ const _sfc_main$2 = defineComponent({
6934
6930
  watch(
6935
6931
  () => fileType.value,
6936
6932
  (v) => {
6937
- var _a2, _b;
6938
6933
  fileList.value = [];
6939
- if ((_a2 = deepConfig.value) == null ? void 0 : _a2.accept) {
6940
- accept.value = (_b = deepConfig.value.accept) == null ? void 0 : _b.toLowerCase();
6941
- } else {
6942
- switch (v) {
6943
- case 0:
6944
- accept.value = "";
6945
- break;
6946
- case 1:
6947
- accept.value = ".jpg,.jpeg,.png,.bmp,.webp,.gif";
6948
- break;
6949
- case 2:
6950
- accept.value = ".rar,.zip,.ttf,.doc,.docx,.xls,.xlsx,.xlsm,.pdf,.ppt,.pptx,.txt'";
6951
- break;
6952
- case 3:
6953
- accept.value = ".swf,.mp4";
6954
- break;
6955
- case 4:
6956
- accept.value = ".mp3";
6957
- break;
6958
- }
6934
+ switch (v) {
6935
+ case 0:
6936
+ accept.value = "";
6937
+ break;
6938
+ case 1:
6939
+ accept.value = ".jpg,.jpeg,.png,.bmp,.webp,.gif";
6940
+ break;
6941
+ case 2:
6942
+ accept.value = ".rar,.zip,.ttf,.doc,.docx,.xls,.xlsx,.xlsm,.pdf,.ppt,.pptx,.txt'";
6943
+ break;
6944
+ case 3:
6945
+ accept.value = ".swf,.mp4";
6946
+ break;
6947
+ case 4:
6948
+ accept.value = ".mp3";
6949
+ break;
6959
6950
  }
6960
6951
  },
6961
6952
  { immediate: true }
@@ -7086,7 +7077,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
7086
7077
  _: 1
7087
7078
  }, 8, ["visible", "others", "onHandle:ok"]);
7088
7079
  }
7089
- var CUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-2141df9a"]]);
7080
+ var CUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-46181845"]]);
7090
7081
  var cRight_vue_vue_type_style_index_0_scoped_true_lang = "";
7091
7082
  const _sfc_main$1 = defineComponent({
7092
7083
  name: "",
@@ -7451,12 +7442,20 @@ const _sfc_main = defineComponent({
7451
7442
  const refCRight = ref();
7452
7443
  const visible = ref(false);
7453
7444
  const handleOk = () => {
7454
- var _a, _b, _c, _d;
7445
+ var _a, _b, _c, _d, _e, _f;
7455
7446
  const result = refCRight.value.getItems();
7456
7447
  if (!(result == null ? void 0 : result.length)) {
7457
7448
  Message.error("\u8BF7\u9009\u62E9\u7D20\u6750");
7458
7449
  } else if (result.length > ((_b = (_a = deepConfig.value) == null ? void 0 : _a.max) != null ? _b : 10)) {
7459
7450
  Message.error(`\u6700\u591A\u9009\u62E9${(_d = (_c = deepConfig.value) == null ? void 0 : _c.max) != null ? _d : 10}\u4E2A\u7D20\u6750`);
7451
+ } else if ((_e = deepConfig.value) == null ? void 0 : _e.customValidate) {
7452
+ const res = (_f = deepConfig.value) == null ? void 0 : _f.customValidate(result);
7453
+ if (res === true) {
7454
+ visible.value = false;
7455
+ emit("choose", result);
7456
+ } else {
7457
+ Message.error(res);
7458
+ }
7460
7459
  } else {
7461
7460
  visible.value = false;
7462
7461
  emit("choose", result);
@@ -7538,5 +7537,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
7538
7537
  ], 2112))
7539
7538
  ], 2112);
7540
7539
  }
7541
- var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5b6e4cf9"]]);
7540
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-7853c7cd"]]);
7542
7541
  export { index as default };
package/dist/index.min.js CHANGED
@@ -3249,31 +3249,26 @@
3249
3249
  }
3250
3250
  };
3251
3251
  return e.watch(() => c2.value, (e2) => {
3252
- var _a2, _b;
3253
- if (p2.value = [], (_a2 = o2.value) == null ? void 0 : _a2.accept)
3254
- g2.value = (_b = o2.value.accept) == null ? void 0 : _b.toLowerCase();
3255
- else
3256
- switch (e2) {
3257
- case 0:
3258
- g2.value = "";
3259
- break;
3260
- case 1:
3261
- g2.value = ".jpg,.jpeg,.png,.bmp,.webp,.gif";
3262
- break;
3263
- case 2:
3264
- g2.value = ".rar,.zip,.ttf,.doc,.docx,.xls,.xlsx,.xlsm,.pdf,.ppt,.pptx,.txt'";
3265
- break;
3266
- case 3:
3267
- g2.value = ".swf,.mp4";
3268
- break;
3269
- case 4:
3270
- g2.value = ".mp3";
3271
- }
3252
+ switch (p2.value = [], e2) {
3253
+ case 0:
3254
+ g2.value = "";
3255
+ break;
3256
+ case 1:
3257
+ g2.value = ".jpg,.jpeg,.png,.bmp,.webp,.gif";
3258
+ break;
3259
+ case 2:
3260
+ g2.value = ".rar,.zip,.ttf,.doc,.docx,.xls,.xlsx,.xlsm,.pdf,.ppt,.pptx,.txt'";
3261
+ break;
3262
+ case 3:
3263
+ g2.value = ".swf,.mp4";
3264
+ break;
3265
+ case 4:
3266
+ g2.value = ".mp3";
3267
+ }
3272
3268
  }, { immediate: true }), { visible: i2, deepConfig: o2, loading: u2, okLoading: a2, fileName: l2, fileType: c2, fileTypes: Qe, groupId: f2, source: "lsb", groups: A2, limit: s2, accept: g2, fileList: p2, exceedLimit: () => {
3273
3269
  t.Message.error(`\u6700\u591A\u9009\u62E9${s2.value}\u4E2A\u6587\u4EF6`);
3274
3270
  }, beforeUpload: (e2) => new Promise((n3, r3) => {
3275
- var _a2;
3276
- e2.size / 1024 / 1024 > ((_a2 = o2.value) == null ? void 0 : _a2.size) || 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);
3271
+ 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
3272
  }), fileChange: (e2) => p2.value = e2, handleOk: async () => {
3278
3273
  var _a2, _b, _c, _d, _e2;
3279
3274
  if (l2.value)
@@ -3306,7 +3301,7 @@
3306
3301
  var _a;
3307
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", 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
3303
  }), _: 1 }, 8, ["loading"])]), _: 1 }, 8, ["visible", "others", "onHandle:ok"]);
3309
- }], ["__scopeId", "data-v-2141df9a"]]);
3304
+ }], ["__scopeId", "data-v-46181845"]]);
3310
3305
  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
3306
  var _a, _b;
3312
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) => {
@@ -3366,9 +3361,18 @@
3366
3361
  var _a, _b;
3367
3362
  ((_b = (_a = o2.value) == null ? void 0 : _a.dialog) == null ? void 0 : _b.visible) || (i2.value.init(), u2.value.initCheckbox());
3368
3363
  }), { deepConfig: o2, refCLeft: i2, refCRight: u2, visible: a2, handleOk: () => {
3369
- var _a, _b, _c, _d;
3364
+ var _a, _b, _c, _d, _e2, _f;
3370
3365
  const e2 = u2.value.getItems();
3371
- (e2 == null ? void 0 : e2.length) ? e2.length > ((_b = (_a = o2.value) == null ? void 0 : _a.max) != null ? _b : 10) ? t.Message.error(`\u6700\u591A\u9009\u62E9${(_d = (_c = o2.value) == null ? void 0 : _c.max) != null ? _d : 10}\u4E2A\u7D20\u6750`) : (a2.value = false, r2("choose", e2)) : t.Message.error("\u8BF7\u9009\u62E9\u7D20\u6750");
3366
+ if (e2 == null ? void 0 : e2.length)
3367
+ if (e2.length > ((_b = (_a = o2.value) == null ? void 0 : _a.max) != null ? _b : 10))
3368
+ t.Message.error(`\u6700\u591A\u9009\u62E9${(_d = (_c = o2.value) == null ? void 0 : _c.max) != null ? _d : 10}\u4E2A\u7D20\u6750`);
3369
+ else if ((_e2 = o2.value) == null ? void 0 : _e2.customValidate) {
3370
+ const n3 = (_f = o2.value) == null ? void 0 : _f.customValidate(e2);
3371
+ true === n3 ? (a2.value = false, r2("choose", e2)) : t.Message.error(n3);
3372
+ } else
3373
+ a2.value = false, r2("choose", e2);
3374
+ else
3375
+ t.Message.error("\u8BF7\u9009\u62E9\u7D20\u6750");
3372
3376
  }, open: () => {
3373
3377
  a2.value = true, i2.value.init(), u2.value.initCheckbox();
3374
3378
  } };
@@ -3377,6 +3381,6 @@
3377
3381
  var _a, _b, _c, _d, _e2;
3378
3382
  const a2 = e.resolveComponent("CLeft"), l2 = e.resolveComponent("CRight"), c2 = e.resolveComponent("l-modal");
3379
3383
  return e.openBlock(), e.createElementBlock(e.Fragment, null, [e.createCommentVNode(" dialog "), ((_a = t2.deepConfig.dialog) == null ? void 0 : _a.visible) ? (e.openBlock(), e.createBlock(c2, { key: 0, visible: t2.visible, title: (_c = (_b = t2.deepConfig.dialog) == null ? void 0 : _b.title) != null ? _c : "\u9009\u62E9\u7D20\u6750", others: { width: (_e2 = (_d = t2.deepConfig.dialog) == null ? void 0 : _d.width) != null ? _e2 : 1160 }, "onHandle:cancel": n2[2] || (n2[2] = (e2) => t2.visible = false), "onHandle:ok": t2.handleOk }, { default: e.withCtx(() => [e.createElementVNode("div", gt, [e.createVNode(a2, { ref: "refCLeft", config: t2.deepConfig, "onGroup:change": n2[0] || (n2[0] = (e2) => t2.refCRight.init(e2)) }, null, 8, ["config"]), e.createVNode(l2, { ref: "refCRight", config: t2.deepConfig, "onGroup:init": n2[1] || (n2[1] = (e2) => t2.refCLeft.init()) }, null, 8, ["config"])])]), _: 1 }, 8, ["visible", "title", "others", "onHandle:ok"])) : (e.openBlock(), e.createElementBlock(e.Fragment, { key: 1 }, [e.createCommentVNode(" list "), e.createElementVNode("div", pt, [e.createVNode(a2, { ref: "refCLeft", config: t2.deepConfig, "onGroup:change": n2[3] || (n2[3] = (e2) => t2.refCRight.init(e2)) }, null, 8, ["config"]), e.createVNode(l2, { ref: "refCRight", config: t2.deepConfig, "onGroup:init": n2[4] || (n2[4] = (e2) => t2.refCLeft.init()) }, null, 8, ["config"])])], 2112))], 2112);
3380
- }], ["__scopeId", "data-v-5b6e4cf9"]]);
3384
+ }], ["__scopeId", "data-v-7853c7cd"]]);
3381
3385
  });
3382
3386
  //# sourceMappingURL=index.min.js.map