@moment-design/material-library 0.1.22 → 0.1.23
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 +1 -0
- package/dist/css/index.css +12 -12
- package/dist/index.cjs.js +25 -12
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +25 -12
- package/dist/index.min.js +14 -8
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/c-right.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
41
41
|
reset: () => void;
|
|
42
42
|
init: (id?: string | undefined) => Promise<void>;
|
|
43
43
|
downloadTxtFile: (fileUrl: any, fileName: any) => Promise<void>;
|
|
44
|
+
handleGroupChange: (id?: string | undefined) => void;
|
|
44
45
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
46
|
config: {
|
|
46
47
|
type: ObjectConstructor;
|
package/dist/css/index.css
CHANGED
|
@@ -286,43 +286,43 @@
|
|
|
286
286
|
.l-material-library-upload .upload[data-v-6b18ee10] .mo-upload-progress {
|
|
287
287
|
display: none;
|
|
288
288
|
}
|
|
289
|
-
.l-material-library-right-content[data-v-
|
|
289
|
+
.l-material-library-right-content[data-v-7628764c] {
|
|
290
290
|
flex: 1;
|
|
291
291
|
}
|
|
292
|
-
.l-material-library-right-content .header[data-v-
|
|
292
|
+
.l-material-library-right-content .header[data-v-7628764c] {
|
|
293
293
|
display: flex;
|
|
294
294
|
justify-content: space-between;
|
|
295
295
|
}
|
|
296
|
-
.l-material-library-right-content .header .left[data-v-
|
|
296
|
+
.l-material-library-right-content .header .left[data-v-7628764c] {
|
|
297
297
|
display: flex;
|
|
298
298
|
justify-content: space-between;
|
|
299
299
|
}
|
|
300
|
-
.l-material-library-right-content .header .more-icon-down[data-v-
|
|
300
|
+
.l-material-library-right-content .header .more-icon-down[data-v-7628764c] {
|
|
301
301
|
position: relative;
|
|
302
302
|
top: -1px;
|
|
303
303
|
margin-left: 6px;
|
|
304
304
|
font-size: 15px;
|
|
305
305
|
stroke-width: 5;
|
|
306
306
|
}
|
|
307
|
-
.l-material-library-right-content .toolbar[data-v-
|
|
307
|
+
.l-material-library-right-content .toolbar[data-v-7628764c] {
|
|
308
308
|
margin: 16px 0;
|
|
309
309
|
display: flex;
|
|
310
310
|
align-items: center;
|
|
311
311
|
justify-content: space-between;
|
|
312
312
|
}
|
|
313
|
-
.l-material-library-right-content .toolbar .apps[data-v-
|
|
314
|
-
.l-material-library-right-content .toolbar .menu[data-v-
|
|
313
|
+
.l-material-library-right-content .toolbar .apps[data-v-7628764c],
|
|
314
|
+
.l-material-library-right-content .toolbar .menu[data-v-7628764c] {
|
|
315
315
|
margin-left: 8px;
|
|
316
316
|
font-size: 20px;
|
|
317
317
|
stroke-width: 5;
|
|
318
318
|
}
|
|
319
|
-
.l-material-library-right-content .toolbar .apps[data-v-
|
|
320
|
-
.l-material-library-right-content .toolbar .menu[data-v-
|
|
321
|
-
.l-material-library-right-content .toolbar .apps.active[data-v-
|
|
322
|
-
.l-material-library-right-content .toolbar .menu.active[data-v-
|
|
319
|
+
.l-material-library-right-content .toolbar .apps[data-v-7628764c]:hover,
|
|
320
|
+
.l-material-library-right-content .toolbar .menu[data-v-7628764c]:hover,
|
|
321
|
+
.l-material-library-right-content .toolbar .apps.active[data-v-7628764c],
|
|
322
|
+
.l-material-library-right-content .toolbar .menu.active[data-v-7628764c] {
|
|
323
323
|
color: #1966ff;
|
|
324
324
|
cursor: pointer;
|
|
325
325
|
}
|
|
326
|
-
.l-material-library[data-v-
|
|
326
|
+
.l-material-library[data-v-2050e47e] {
|
|
327
327
|
display: flex;
|
|
328
328
|
}
|
package/dist/index.cjs.js
CHANGED
|
@@ -7275,6 +7275,13 @@ const _sfc_main$1 = vue.defineComponent({
|
|
|
7275
7275
|
pageSize.value = v;
|
|
7276
7276
|
init(groupId.value);
|
|
7277
7277
|
};
|
|
7278
|
+
const handleGroupChange = (id) => {
|
|
7279
|
+
var _a2, _b2;
|
|
7280
|
+
pageNum.value = 1;
|
|
7281
|
+
init(id);
|
|
7282
|
+
(_a2 = refCRightMenus.value) == null ? void 0 : _a2.resetCurrent();
|
|
7283
|
+
(_b2 = refCRightApps.value) == null ? void 0 : _b2.resetCurrent();
|
|
7284
|
+
};
|
|
7278
7285
|
const handlePreview = (item) => {
|
|
7279
7286
|
if ((item == null ? void 0 : item.fileType) === 1) {
|
|
7280
7287
|
if (item == null ? void 0 : item.filePath) {
|
|
@@ -7358,21 +7365,21 @@ const _sfc_main$1 = vue.defineComponent({
|
|
|
7358
7365
|
emit("group:init");
|
|
7359
7366
|
};
|
|
7360
7367
|
const init = async (id) => {
|
|
7361
|
-
var _a2, _b2, _c
|
|
7368
|
+
var _a2, _b2, _c;
|
|
7362
7369
|
try {
|
|
7363
7370
|
groupId.value = id;
|
|
7364
7371
|
loading.value = true;
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
const res = await ((
|
|
7372
|
+
if (fileName.value) {
|
|
7373
|
+
pageNum.value = 1;
|
|
7374
|
+
}
|
|
7375
|
+
const res = await ((_b2 = (_a2 = deepConfig.value) == null ? void 0 : _a2.apis) == null ? void 0 : _b2.getFileList({
|
|
7369
7376
|
groupId: groupId.value,
|
|
7370
7377
|
fileName: fileName.value,
|
|
7371
7378
|
fileType: fileType.value,
|
|
7372
7379
|
pageNum: pageNum.value,
|
|
7373
7380
|
pageSize: pageSize.value
|
|
7374
7381
|
}));
|
|
7375
|
-
if (((
|
|
7382
|
+
if (((_c = [0, 200]) == null ? void 0 : _c.includes(+(res == null ? void 0 : res.code))) && (res == null ? void 0 : res.data)) {
|
|
7376
7383
|
datas.value = res == null ? void 0 : res.data;
|
|
7377
7384
|
refCRightApps.value.initCheckbox();
|
|
7378
7385
|
}
|
|
@@ -7424,7 +7431,8 @@ const _sfc_main$1 = vue.defineComponent({
|
|
|
7424
7431
|
handleRemoveOk,
|
|
7425
7432
|
reset,
|
|
7426
7433
|
init,
|
|
7427
|
-
downloadTxtFile
|
|
7434
|
+
downloadTxtFile,
|
|
7435
|
+
handleGroupChange
|
|
7428
7436
|
};
|
|
7429
7437
|
}
|
|
7430
7438
|
});
|
|
@@ -7625,7 +7633,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7625
7633
|
}, null, 8, ["visible", "src"])
|
|
7626
7634
|
], 64);
|
|
7627
7635
|
}
|
|
7628
|
-
var CRight = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
7636
|
+
var CRight = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-7628764c"]]);
|
|
7629
7637
|
var index_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
7630
7638
|
const _sfc_main = vue.defineComponent({
|
|
7631
7639
|
name: "MaterialLibrary",
|
|
@@ -7670,6 +7678,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
7670
7678
|
refCLeft.value.init();
|
|
7671
7679
|
refCRight.value.initCheckbox();
|
|
7672
7680
|
};
|
|
7681
|
+
const handleGroupChange = (id) => {
|
|
7682
|
+
var _a;
|
|
7683
|
+
(_a = refCRight.value) == null ? void 0 : _a.handleGroupChange(id);
|
|
7684
|
+
};
|
|
7673
7685
|
vue.watch(
|
|
7674
7686
|
() => props.config,
|
|
7675
7687
|
(v) => deepConfig.value = v,
|
|
@@ -7692,7 +7704,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
7692
7704
|
visible,
|
|
7693
7705
|
handleOk,
|
|
7694
7706
|
open,
|
|
7695
|
-
getVersion
|
|
7707
|
+
getVersion,
|
|
7708
|
+
handleGroupChange
|
|
7696
7709
|
};
|
|
7697
7710
|
}
|
|
7698
7711
|
});
|
|
@@ -7718,7 +7731,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7718
7731
|
vue.createVNode(_component_CLeft, {
|
|
7719
7732
|
ref: "refCLeft",
|
|
7720
7733
|
config: _ctx.deepConfig,
|
|
7721
|
-
"onGroup:change": _cache[0] || (_cache[0] = (v) => _ctx.
|
|
7734
|
+
"onGroup:change": _cache[0] || (_cache[0] = (v) => _ctx.handleGroupChange(v))
|
|
7722
7735
|
}, null, 8, ["config"]),
|
|
7723
7736
|
vue.createVNode(_component_CRight, {
|
|
7724
7737
|
ref: "refCRight",
|
|
@@ -7734,7 +7747,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7734
7747
|
vue.createVNode(_component_CLeft, {
|
|
7735
7748
|
ref: "refCLeft",
|
|
7736
7749
|
config: _ctx.deepConfig,
|
|
7737
|
-
"onGroup:change": _cache[3] || (_cache[3] = (v) => _ctx.
|
|
7750
|
+
"onGroup:change": _cache[3] || (_cache[3] = (v) => _ctx.handleGroupChange(v))
|
|
7738
7751
|
}, null, 8, ["config"]),
|
|
7739
7752
|
vue.createVNode(_component_CRight, {
|
|
7740
7753
|
ref: "refCRight",
|
|
@@ -7745,5 +7758,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7745
7758
|
], 2112))
|
|
7746
7759
|
], 2112);
|
|
7747
7760
|
}
|
|
7748
|
-
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
7761
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-2050e47e"]]);
|
|
7749
7762
|
module.exports = index;
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
11
11
|
handleOk: () => void;
|
|
12
12
|
open: () => void;
|
|
13
13
|
getVersion: () => string;
|
|
14
|
+
handleGroupChange: (id?: string | undefined) => void;
|
|
14
15
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
16
|
config: {
|
|
16
17
|
type: ObjectConstructor;
|
|
@@ -589,6 +590,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
589
590
|
reset: () => void;
|
|
590
591
|
init: (id?: string | undefined) => Promise<void>;
|
|
591
592
|
downloadTxtFile: (fileUrl: any, fileName: any) => Promise<void>;
|
|
593
|
+
handleGroupChange: (id?: string | undefined) => void;
|
|
592
594
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
593
595
|
config: {
|
|
594
596
|
type: ObjectConstructor;
|
package/dist/index.esm.js
CHANGED
|
@@ -7274,6 +7274,13 @@ const _sfc_main$1 = defineComponent({
|
|
|
7274
7274
|
pageSize.value = v;
|
|
7275
7275
|
init(groupId.value);
|
|
7276
7276
|
};
|
|
7277
|
+
const handleGroupChange = (id) => {
|
|
7278
|
+
var _a2, _b2;
|
|
7279
|
+
pageNum.value = 1;
|
|
7280
|
+
init(id);
|
|
7281
|
+
(_a2 = refCRightMenus.value) == null ? void 0 : _a2.resetCurrent();
|
|
7282
|
+
(_b2 = refCRightApps.value) == null ? void 0 : _b2.resetCurrent();
|
|
7283
|
+
};
|
|
7277
7284
|
const handlePreview = (item) => {
|
|
7278
7285
|
if ((item == null ? void 0 : item.fileType) === 1) {
|
|
7279
7286
|
if (item == null ? void 0 : item.filePath) {
|
|
@@ -7357,21 +7364,21 @@ const _sfc_main$1 = defineComponent({
|
|
|
7357
7364
|
emit("group:init");
|
|
7358
7365
|
};
|
|
7359
7366
|
const init = async (id) => {
|
|
7360
|
-
var _a2, _b2, _c
|
|
7367
|
+
var _a2, _b2, _c;
|
|
7361
7368
|
try {
|
|
7362
7369
|
groupId.value = id;
|
|
7363
7370
|
loading.value = true;
|
|
7364
|
-
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
const res = await ((
|
|
7371
|
+
if (fileName.value) {
|
|
7372
|
+
pageNum.value = 1;
|
|
7373
|
+
}
|
|
7374
|
+
const res = await ((_b2 = (_a2 = deepConfig.value) == null ? void 0 : _a2.apis) == null ? void 0 : _b2.getFileList({
|
|
7368
7375
|
groupId: groupId.value,
|
|
7369
7376
|
fileName: fileName.value,
|
|
7370
7377
|
fileType: fileType.value,
|
|
7371
7378
|
pageNum: pageNum.value,
|
|
7372
7379
|
pageSize: pageSize.value
|
|
7373
7380
|
}));
|
|
7374
|
-
if (((
|
|
7381
|
+
if (((_c = [0, 200]) == null ? void 0 : _c.includes(+(res == null ? void 0 : res.code))) && (res == null ? void 0 : res.data)) {
|
|
7375
7382
|
datas.value = res == null ? void 0 : res.data;
|
|
7376
7383
|
refCRightApps.value.initCheckbox();
|
|
7377
7384
|
}
|
|
@@ -7423,7 +7430,8 @@ const _sfc_main$1 = defineComponent({
|
|
|
7423
7430
|
handleRemoveOk,
|
|
7424
7431
|
reset,
|
|
7425
7432
|
init,
|
|
7426
|
-
downloadTxtFile
|
|
7433
|
+
downloadTxtFile,
|
|
7434
|
+
handleGroupChange
|
|
7427
7435
|
};
|
|
7428
7436
|
}
|
|
7429
7437
|
});
|
|
@@ -7624,7 +7632,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7624
7632
|
}, null, 8, ["visible", "src"])
|
|
7625
7633
|
], 64);
|
|
7626
7634
|
}
|
|
7627
|
-
var CRight = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
7635
|
+
var CRight = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-7628764c"]]);
|
|
7628
7636
|
var index_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
7629
7637
|
const _sfc_main = defineComponent({
|
|
7630
7638
|
name: "MaterialLibrary",
|
|
@@ -7669,6 +7677,10 @@ const _sfc_main = defineComponent({
|
|
|
7669
7677
|
refCLeft.value.init();
|
|
7670
7678
|
refCRight.value.initCheckbox();
|
|
7671
7679
|
};
|
|
7680
|
+
const handleGroupChange = (id) => {
|
|
7681
|
+
var _a;
|
|
7682
|
+
(_a = refCRight.value) == null ? void 0 : _a.handleGroupChange(id);
|
|
7683
|
+
};
|
|
7672
7684
|
watch(
|
|
7673
7685
|
() => props.config,
|
|
7674
7686
|
(v) => deepConfig.value = v,
|
|
@@ -7691,7 +7703,8 @@ const _sfc_main = defineComponent({
|
|
|
7691
7703
|
visible,
|
|
7692
7704
|
handleOk,
|
|
7693
7705
|
open,
|
|
7694
|
-
getVersion
|
|
7706
|
+
getVersion,
|
|
7707
|
+
handleGroupChange
|
|
7695
7708
|
};
|
|
7696
7709
|
}
|
|
7697
7710
|
});
|
|
@@ -7717,7 +7730,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7717
7730
|
createVNode(_component_CLeft, {
|
|
7718
7731
|
ref: "refCLeft",
|
|
7719
7732
|
config: _ctx.deepConfig,
|
|
7720
|
-
"onGroup:change": _cache[0] || (_cache[0] = (v) => _ctx.
|
|
7733
|
+
"onGroup:change": _cache[0] || (_cache[0] = (v) => _ctx.handleGroupChange(v))
|
|
7721
7734
|
}, null, 8, ["config"]),
|
|
7722
7735
|
createVNode(_component_CRight, {
|
|
7723
7736
|
ref: "refCRight",
|
|
@@ -7733,7 +7746,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7733
7746
|
createVNode(_component_CLeft, {
|
|
7734
7747
|
ref: "refCLeft",
|
|
7735
7748
|
config: _ctx.deepConfig,
|
|
7736
|
-
"onGroup:change": _cache[3] || (_cache[3] = (v) => _ctx.
|
|
7749
|
+
"onGroup:change": _cache[3] || (_cache[3] = (v) => _ctx.handleGroupChange(v))
|
|
7737
7750
|
}, null, 8, ["config"]),
|
|
7738
7751
|
createVNode(_component_CRight, {
|
|
7739
7752
|
ref: "refCRight",
|
|
@@ -7744,5 +7757,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7744
7757
|
], 2112))
|
|
7745
7758
|
], 2112);
|
|
7746
7759
|
}
|
|
7747
|
-
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
7760
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-2050e47e"]]);
|
|
7748
7761
|
export { index as default };
|
package/dist/index.min.js
CHANGED
|
@@ -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 });
|
|
@@ -3421,12 +3424,15 @@
|
|
|
3421
3424
|
t.Message.error("\u8BF7\u9009\u62E9\u7D20\u6750");
|
|
3422
3425
|
}, open: () => {
|
|
3423
3426
|
a2.value = true, i2.value.init(), u2.value.initCheckbox();
|
|
3424
|
-
}, getVersion: () => "0.0.23"
|
|
3427
|
+
}, getVersion: () => "0.0.23", handleGroupChange: (e2) => {
|
|
3428
|
+
var _a;
|
|
3429
|
+
(_a = u2.value) == null ? void 0 : _a.handleGroupChange(e2);
|
|
3430
|
+
} };
|
|
3425
3431
|
} }), vt = { class: "l-material-library" }, dt = { class: "l-material-library" };
|
|
3426
3432
|
return r(pt, [["render", function(t2, n2, r2, o2, i2, u2) {
|
|
3427
3433
|
var _a, _b, _c, _d, _e2;
|
|
3428
3434
|
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-
|
|
3435
|
+
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);
|
|
3436
|
+
}], ["__scopeId", "data-v-2050e47e"]]);
|
|
3431
3437
|
});
|
|
3432
3438
|
//# sourceMappingURL=index.min.js.map
|