@moment-design/material-library 0.1.22 → 0.1.24
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/dist/c-right.d.ts +2 -0
- package/dist/c-upload.d.ts +1 -0
- package/dist/css/index.css +19 -19
- package/dist/index.cjs.js +36 -17
- package/dist/index.d.ts +11 -7
- package/dist/index.esm.js +37 -18
- package/dist/index.min.js +23 -15
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.min.js
CHANGED
|
@@ -3264,7 +3264,7 @@
|
|
|
3264
3264
|
var _a;
|
|
3265
3265
|
const o2 = e.ref(n2.config);
|
|
3266
3266
|
console.log(o2, "deepConfig==============09999888");
|
|
3267
|
-
const i2 = e.ref(false), u2 = e.ref(false), a2 = e.ref(false), l2 = e.ref(), c2 = e.ref(1), f2 = e.ref(), s2 = e.ref([]), A2 = e.ref(10), g2 = e.ref((_a = o2.value) == null ? void 0 : _a.accept), p2 = e.ref([]), v2 = async () => {
|
|
3267
|
+
const i2 = e.ref(false), u2 = e.ref(false), a2 = e.ref(false), l2 = e.ref(), c2 = e.ref(1), f2 = e.ref(), s2 = e.ref([]), A2 = e.ref(10), g2 = e.ref((_a = o2.value) == null ? void 0 : _a.accept), p2 = e.ref([]), v2 = e.ref(0), d2 = async () => {
|
|
3268
3268
|
var _a2, _b, _c;
|
|
3269
3269
|
try {
|
|
3270
3270
|
u2.value = true;
|
|
@@ -3293,7 +3293,7 @@
|
|
|
3293
3293
|
case 4:
|
|
3294
3294
|
g2.value = ".mp3";
|
|
3295
3295
|
}
|
|
3296
|
-
}, { immediate: true }), { visible: i2, deepConfig: o2, loading: u2, okLoading: a2, fileName: l2, fileType: c2, fileTypes: Me, groupId: f2, source: "lsb", groups: s2, limit: A2, accept: g2, fileList: p2, exceedLimit: () => {
|
|
3296
|
+
}, { immediate: true }), { visible: i2, deepConfig: o2, loading: u2, okLoading: a2, fileName: l2, fileType: c2, fileTypes: Me, groupId: f2, source: "lsb", groups: s2, limit: A2, accept: g2, fileList: p2, uploadKey: v2, exceedLimit: () => {
|
|
3297
3297
|
t.Message.error(`\u6700\u591A\u9009\u62E9${A2.value}\u4E2A\u6587\u4EF6`);
|
|
3298
3298
|
}, beforeUpload: (e2) => new Promise((n3, r3) => {
|
|
3299
3299
|
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);
|
|
@@ -3319,18 +3319,18 @@
|
|
|
3319
3319
|
t.Message.error("\u8BF7\u9009\u62E9\u7D20\u6750\u5206\u7EC4");
|
|
3320
3320
|
else
|
|
3321
3321
|
t.Message.error("\u8BF7\u8F93\u5165\u7D20\u6750\u540D\u79F0");
|
|
3322
|
-
}, init:
|
|
3322
|
+
}, init: d2, open: (e2) => {
|
|
3323
3323
|
var _a2, _b;
|
|
3324
|
-
i2.value = true, l2.value = "", f2.value = e2, p2.value = [], ((_a2 = o2.value) == null ? void 0 : _a2.fileType) ? c2.value = (_b = o2.value) == null ? void 0 : _b.fileType : c2.value = 1,
|
|
3324
|
+
i2.value = true, l2.value = "", f2.value = e2, p2.value = [], v2.value++, ((_a2 = o2.value) == null ? void 0 : _a2.fileType) ? c2.value = (_b = o2.value) == null ? void 0 : _b.fileType : c2.value = 1, d2();
|
|
3325
3325
|
} };
|
|
3326
3326
|
} }), Ze = { class: "form-item" }, Te = { class: "form-item" }, _e = { class: "form-item" }, $e = { class: "upload" }, et = { class: "tips" }, tt = { key: 0 }, nt = { key: 1 }, rt = { key: 2 }, ot = { key: 3 }, it = { key: 4 };
|
|
3327
3327
|
var ut = r(ze, [["render", function(t2, n2, r2, o2, i2, u2) {
|
|
3328
3328
|
const a2 = e.resolveComponent("m-input"), l2 = e.resolveComponent("m-select"), c2 = e.resolveComponent("m-radio-group"), f2 = e.resolveComponent("m-upload"), s2 = e.resolveComponent("m-scrollbar"), A2 = e.resolveComponent("m-spin"), g2 = e.resolveComponent("l-modal");
|
|
3329
3329
|
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(A2, { loading: t2.loading }, { default: e.withCtx(() => {
|
|
3330
3330
|
var _a, _b;
|
|
3331
|
-
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), disabled: [1, 2, 3, 4].includes((_b = t2.deepConfig) == null ? void 0 : _b.fileType), options: t2.fileTypes }, null, 8, ["modelValue", "disabled", "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), 0 === t2.fileType ? (e.openBlock(), e.createElementBlock("div", it, "\u5176\u4ED6\u7C7B\u578B\u5927\u5C0F\u9650\u5236\u5728400M\u4EE5\u5185")) : e.createCommentVNode("v-if", true)]), e.createVNode(s2, { style: { "max-height": "300px", "overflow-y": "auto", "padding-right": "24px" } }, { default: e.withCtx(() => [e.
|
|
3331
|
+
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), disabled: [1, 2, 3, 4].includes((_b = t2.deepConfig) == null ? void 0 : _b.fileType), options: t2.fileTypes }, null, 8, ["modelValue", "disabled", "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), 0 === t2.fileType ? (e.openBlock(), e.createElementBlock("div", it, "\u5176\u4ED6\u7C7B\u578B\u5927\u5C0F\u9650\u5236\u5728400M\u4EE5\u5185")) : e.createCommentVNode("v-if", true)]), e.createVNode(s2, { style: { "max-height": "300px", "overflow-y": "auto", "padding-right": "24px" } }, { default: e.withCtx(() => [(e.openBlock(), e.createBlock(f2, { key: t2.uploadKey, "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 })])];
|
|
3332
3332
|
}), _: 1 }, 8, ["loading"])]), _: 1 }, 8, ["visible", "others", "onHandle:ok"]);
|
|
3333
|
-
}], ["__scopeId", "data-v-
|
|
3333
|
+
}], ["__scopeId", "data-v-43f71e5d"]]);
|
|
3334
3334
|
const at = e.defineComponent({ name: "", components: { IconDown: n.IconDown, IconApps: n.IconApps, IconMenu: n.IconMenu, LModal: o, CRightApps: H, CRightMenus: Re, CChangeGroup: qe, CUpload: ut }, props: { config: { type: Object, default: () => ({}) } }, setup(n2, { emit: r2 }) {
|
|
3335
3335
|
var _a, _b;
|
|
3336
3336
|
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(), s2 = e.ref(), A2 = 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), L2 = e.ref(false), b2 = e.ref("");
|
|
@@ -3341,11 +3341,11 @@
|
|
|
3341
3341
|
var _a2, _b2, _c, _d;
|
|
3342
3342
|
g2.value = "", p2.value = (_b2 = (_a2 = n2.config) == null ? void 0 : _a2.fileType) != null ? _b2 : "", h2.value = 1, G2(d2.value), (_c = f2.value) == null ? void 0 : _c.resetCurrent(), (_d = c2.value) == null ? void 0 : _d.resetCurrent(), r2("group:init");
|
|
3343
3343
|
}, G2 = async (e2) => {
|
|
3344
|
-
var _a2, _b2, _c
|
|
3344
|
+
var _a2, _b2, _c;
|
|
3345
3345
|
try {
|
|
3346
|
-
d2.value = e2, i2.value = true,
|
|
3347
|
-
const t2 = await ((
|
|
3348
|
-
((
|
|
3346
|
+
d2.value = e2, i2.value = true, g2.value && (h2.value = 1);
|
|
3347
|
+
const t2 = await ((_b2 = (_a2 = o2.value) == null ? void 0 : _a2.apis) == null ? void 0 : _b2.getFileList({ groupId: d2.value, fileName: g2.value, fileType: p2.value, pageNum: h2.value, pageSize: w2.value }));
|
|
3348
|
+
((_c = [0, 200]) == null ? void 0 : _c.includes(+(t2 == null ? void 0 : t2.code))) && (t2 == null ? void 0 : t2.data) && (C2.value = t2 == null ? void 0 : t2.data, c2.value.initCheckbox());
|
|
3349
3349
|
} catch (e3) {
|
|
3350
3350
|
console.log(e3);
|
|
3351
3351
|
} finally {
|
|
@@ -3391,6 +3391,9 @@
|
|
|
3391
3391
|
} catch (e3) {
|
|
3392
3392
|
console.error("\u4E0B\u8F7D\u6587\u4EF6\u65F6\u51FA\u9519:", e3);
|
|
3393
3393
|
}
|
|
3394
|
+
}, handleGroupChange: (e2) => {
|
|
3395
|
+
var _a2, _b2;
|
|
3396
|
+
h2.value = 1, G2(e2), (_a2 = f2.value) == null ? void 0 : _a2.resetCurrent(), (_b2 = c2.value) == null ? void 0 : _b2.resetCurrent();
|
|
3394
3397
|
} };
|
|
3395
3398
|
} }), lt = { class: "l-material-library-right-content" }, ct = { class: "header" }, ft = { class: "left" }, st = { key: 0, class: "right" }, At = { class: "toolbar" };
|
|
3396
3399
|
var gt = r(at, [["render", function(t2, n2, r2, o2, i2, u2) {
|
|
@@ -3399,7 +3402,7 @@
|
|
|
3399
3402
|
var _a;
|
|
3400
3403
|
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[12] || (n2[12] = [e.createTextVNode("\u67E5\u8BE2")])), _: 1 }), e.createVNode(c2, { onClick: t2.reset }, { default: e.withCtx(() => n2[13] || (n2[13] = [e.createTextVNode("\u91CD\u7F6E")])), _: 1 }, 8, ["onClick"])];
|
|
3401
3404
|
}), _: 1 })) : e.createCommentVNode("v-if", true)]), t2.isShowUploadLocalMaterials || t2.isShowRemoveGroup || t2.isShowDeleteMaterials ? (e.openBlock(), e.createElementBlock("div", st, [e.createVNode(g2, { position: "br", trigger: "hover" }, { content: e.withCtx(() => [t2.isShowUploadLocalMaterials ? (e.openBlock(), e.createBlock(A2, { key: 0, onClick: n2[3] || (n2[3] = (e2) => t2.refCUpload.open(t2.groupId)) }, { default: e.withCtx(() => n2[15] || (n2[15] = [e.createTextVNode("\u4E0A\u4F20\u672C\u5730\u7D20\u6750")])), _: 1 })) : e.createCommentVNode("v-if", true), t2.isShowRemoveGroup ? (e.openBlock(), e.createBlock(A2, { key: 1, onClick: n2[4] || (n2[4] = (e2) => t2.getIds("\u79FB\u52A8\u5206\u7EC4")) }, { default: e.withCtx(() => n2[16] || (n2[16] = [e.createTextVNode("\u79FB\u52A8\u5206\u7EC4")])), _: 1 })) : e.createCommentVNode("v-if", true), t2.isShowDeleteMaterials ? (e.openBlock(), e.createBlock(A2, { key: 2, onClick: n2[5] || (n2[5] = (e2) => t2.getIds("\u5220\u9664")) }, { default: e.withCtx(() => n2[17] || (n2[17] = [e.createTextVNode("\u5220\u9664")])), _: 1 })) : e.createCommentVNode("v-if", true)]), default: e.withCtx(() => [e.createVNode(c2, { type: "primary" }, { default: e.withCtx(() => [n2[14] || (n2[14] = e.createTextVNode(" \u66F4\u591A\u64CD\u4F5C ")), e.createVNode(s2, { class: "more-icon-down" })]), _: 1 })]), _: 1 })])) : e.createCommentVNode("v-if", true)]), e.createCommentVNode(" toolbar "), e.createElementVNode("div", At, [n2[18] || (n2[18] = 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[19] || (n2[19] = [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"]), e.createCommentVNode(" \u9884\u89C8 "), e.createVNode(y2, { visible: t2.visiblePreview, "onUpdate:visible": n2[11] || (n2[11] = (e2) => t2.visiblePreview = e2), src: t2.previewUrl }, null, 8, ["visible", "src"])], 64);
|
|
3402
|
-
}], ["__scopeId", "data-v-
|
|
3405
|
+
}], ["__scopeId", "data-v-7628764c"]]);
|
|
3403
3406
|
const pt = e.defineComponent({ name: "MaterialLibrary", components: { CLeft: L, CRight: gt, LModal: o }, props: { config: { type: Object, default: () => ({}) } }, setup(n2, { emit: r2 }) {
|
|
3404
3407
|
const o2 = e.ref(n2.config), i2 = e.ref(), u2 = e.ref(), a2 = e.ref(false);
|
|
3405
3408
|
e.watch(() => n2.config, (e2) => o2.value = e2, { immediate: true, deep: true });
|
|
@@ -3420,13 +3423,18 @@
|
|
|
3420
3423
|
else
|
|
3421
3424
|
t.Message.error("\u8BF7\u9009\u62E9\u7D20\u6750");
|
|
3422
3425
|
}, open: () => {
|
|
3423
|
-
a2.value = true,
|
|
3424
|
-
|
|
3426
|
+
a2.value = true, e.nextTick(() => {
|
|
3427
|
+
i2.value.init(), u2.value.initCheckbox();
|
|
3428
|
+
});
|
|
3429
|
+
}, getVersion: () => "0.0.23", handleGroupChange: (e2) => {
|
|
3430
|
+
var _a;
|
|
3431
|
+
(_a = u2.value) == null ? void 0 : _a.handleGroupChange(e2);
|
|
3432
|
+
} };
|
|
3425
3433
|
} }), vt = { class: "l-material-library" }, dt = { class: "l-material-library" };
|
|
3426
3434
|
return r(pt, [["render", function(t2, n2, r2, o2, i2, u2) {
|
|
3427
3435
|
var _a, _b, _c, _d, _e2;
|
|
3428
3436
|
const a2 = e.resolveComponent("CLeft"), l2 = e.resolveComponent("CRight"), c2 = e.resolveComponent("l-modal");
|
|
3429
|
-
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", vt, [e.createVNode(a2, { ref: "refCLeft", config: t2.deepConfig, "onGroup:change": n2[0] || (n2[0] = (e2) => t2.
|
|
3430
|
-
}], ["__scopeId", "data-v-
|
|
3437
|
+
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", vt, [e.createVNode(a2, { ref: "refCLeft", config: t2.deepConfig, "onGroup:change": n2[0] || (n2[0] = (e2) => t2.handleGroupChange(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", dt, [e.createVNode(a2, { ref: "refCLeft", config: t2.deepConfig, "onGroup:change": n2[3] || (n2[3] = (e2) => t2.handleGroupChange(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);
|
|
3438
|
+
}], ["__scopeId", "data-v-5e0eeb26"]]);
|
|
3431
3439
|
});
|
|
3432
3440
|
//# sourceMappingURL=index.min.js.map
|