@moment-design/material-library 0.1.19 → 0.1.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.
- package/dist/c-right.d.ts +2 -0
- package/dist/css/index.css +18 -18
- package/dist/index.cjs.js +36 -24
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +36 -24
- package/dist/index.min.js +141 -144
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/c-right.d.ts
CHANGED
|
@@ -28,6 +28,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
28
28
|
isShowRemoveGroup: import("vue").Ref<boolean, boolean>;
|
|
29
29
|
isShowDeleteMaterials: import("vue").Ref<boolean, boolean>;
|
|
30
30
|
isShowSearchMaterials: import("vue").Ref<boolean, boolean>;
|
|
31
|
+
previewUrl: import("vue").Ref<string, string>;
|
|
32
|
+
visiblePreview: import("vue").Ref<boolean, boolean>;
|
|
31
33
|
handlePage: (v: number) => void;
|
|
32
34
|
handlePageSizes: (v: number) => void;
|
|
33
35
|
handlePreview: (item: any) => void;
|
package/dist/css/index.css
CHANGED
|
@@ -258,68 +258,68 @@
|
|
|
258
258
|
overflow: hidden;
|
|
259
259
|
text-overflow: ellipsis;
|
|
260
260
|
}
|
|
261
|
-
.l-material-library-upload .form-item[data-v-
|
|
261
|
+
.l-material-library-upload .form-item[data-v-6b18ee10] {
|
|
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-
|
|
266
|
+
.l-material-library-upload .form-item[data-v-6b18ee10]:not(:last-child) {
|
|
267
267
|
margin-bottom: 16px;
|
|
268
268
|
}
|
|
269
|
-
.l-material-library-upload .form-item .label[data-v-
|
|
269
|
+
.l-material-library-upload .form-item .label[data-v-6b18ee10] {
|
|
270
270
|
width: 70px;
|
|
271
271
|
margin-right: 16px;
|
|
272
272
|
}
|
|
273
|
-
.l-material-library-upload .form-item .label span[data-v-
|
|
273
|
+
.l-material-library-upload .form-item .label span[data-v-6b18ee10] {
|
|
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-
|
|
279
|
+
.l-material-library-upload .upload[data-v-6b18ee10] {
|
|
280
280
|
margin-top: 16px;
|
|
281
281
|
}
|
|
282
|
-
.l-material-library-upload .upload .tips[data-v-
|
|
282
|
+
.l-material-library-upload .upload .tips[data-v-6b18ee10] {
|
|
283
283
|
margin-bottom: 16px;
|
|
284
284
|
color: #86909c;
|
|
285
285
|
}
|
|
286
|
-
.l-material-library-upload .upload[data-v-
|
|
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-58d380a5] {
|
|
290
290
|
flex: 1;
|
|
291
291
|
}
|
|
292
|
-
.l-material-library-right-content .header[data-v-
|
|
292
|
+
.l-material-library-right-content .header[data-v-58d380a5] {
|
|
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-58d380a5] {
|
|
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-58d380a5] {
|
|
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-58d380a5] {
|
|
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-58d380a5],
|
|
314
|
+
.l-material-library-right-content .toolbar .menu[data-v-58d380a5] {
|
|
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-58d380a5]:hover,
|
|
320
|
+
.l-material-library-right-content .toolbar .menu[data-v-58d380a5]:hover,
|
|
321
|
+
.l-material-library-right-content .toolbar .apps.active[data-v-58d380a5],
|
|
322
|
+
.l-material-library-right-content .toolbar .menu.active[data-v-58d380a5] {
|
|
323
323
|
color: #1966ff;
|
|
324
324
|
cursor: pointer;
|
|
325
325
|
}
|
package/dist/index.cjs.js
CHANGED
|
@@ -6141,7 +6141,7 @@ const _hoisted_6$2 = ["onClick"];
|
|
|
6141
6141
|
const _hoisted_7$1 = { class: "footer" };
|
|
6142
6142
|
const _hoisted_8$1 = { class: "checkbox" };
|
|
6143
6143
|
const _hoisted_9$1 = ["title"];
|
|
6144
|
-
const _hoisted_10 = { class: "title" };
|
|
6144
|
+
const _hoisted_10$1 = { class: "title" };
|
|
6145
6145
|
const _hoisted_11 = { class: "l-material-library-infos" };
|
|
6146
6146
|
const _hoisted_12 = { class: "icon" };
|
|
6147
6147
|
const _hoisted_13 = {
|
|
@@ -6251,7 +6251,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6251
6251
|
])
|
|
6252
6252
|
]),
|
|
6253
6253
|
default: vue.withCtx(() => [
|
|
6254
|
-
vue.createElementVNode("div", _hoisted_10, vue.toDisplayString(item == null ? void 0 : item.fileName), 1)
|
|
6254
|
+
vue.createElementVNode("div", _hoisted_10$1, vue.toDisplayString(item == null ? void 0 : item.fileName), 1)
|
|
6255
6255
|
]),
|
|
6256
6256
|
_: 2
|
|
6257
6257
|
}, 1024)
|
|
@@ -7112,6 +7112,7 @@ const _hoisted_6 = { key: 0 };
|
|
|
7112
7112
|
const _hoisted_7 = { key: 1 };
|
|
7113
7113
|
const _hoisted_8 = { key: 2 };
|
|
7114
7114
|
const _hoisted_9 = { key: 3 };
|
|
7115
|
+
const _hoisted_10 = { key: 4 };
|
|
7115
7116
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7116
7117
|
const _component_m_input = vue.resolveComponent("m-input");
|
|
7117
7118
|
const _component_m_select = vue.resolveComponent("m-select");
|
|
@@ -7181,7 +7182,8 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7181
7182
|
_ctx.fileType === 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, "\u56FE\u7247\u4E0A\u4F20\u683C\u5F0F\u4E3Ajpg\u3001jpeg\u3001png\u3001bmp\u3001webp\u3001GIF, \u5927\u5C0F\u9650\u5236\u572810M\u4EE5\u5185")) : vue.createCommentVNode("v-if", true),
|
|
7182
7183
|
_ctx.fileType === 2 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, " \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 ")) : vue.createCommentVNode("v-if", true),
|
|
7183
7184
|
_ctx.fileType === 3 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8, "\u89C6\u9891\u4E0A\u4F20\u683C\u5F0F\u4E3ASWF\u3001MP4, \u5927\u5C0F\u9650\u5236\u5728300M\u4EE5\u5185")) : vue.createCommentVNode("v-if", true),
|
|
7184
|
-
_ctx.fileType === 4 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9, "\u97F3\u4E50\u4E0A\u4F20\u683C\u5F0F\u4E3AMP3, \u5927\u5C0F\u9650\u5236\u57285M\u4EE5\u5185")) : vue.createCommentVNode("v-if", true)
|
|
7185
|
+
_ctx.fileType === 4 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9, "\u97F3\u4E50\u4E0A\u4F20\u683C\u5F0F\u4E3AMP3, \u5927\u5C0F\u9650\u5236\u57285M\u4EE5\u5185")) : vue.createCommentVNode("v-if", true),
|
|
7186
|
+
_ctx.fileType === 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10, "\u5176\u4ED6\u7C7B\u578B\u5927\u5C0F\u9650\u5236\u5728400M\u4EE5\u5185")) : vue.createCommentVNode("v-if", true)
|
|
7185
7187
|
]),
|
|
7186
7188
|
vue.createVNode(_component_m_scrollbar, { style: { "max-height": "300px", "overflow-y": "auto", "padding-right": "24px" } }, {
|
|
7187
7189
|
default: vue.withCtx(() => [
|
|
@@ -7208,7 +7210,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7208
7210
|
_: 1
|
|
7209
7211
|
}, 8, ["visible", "others", "onHandle:ok"]);
|
|
7210
7212
|
}
|
|
7211
|
-
var CUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-
|
|
7213
|
+
var CUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-6b18ee10"]]);
|
|
7212
7214
|
var cRight_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
7213
7215
|
const _sfc_main$1 = vue.defineComponent({
|
|
7214
7216
|
name: "",
|
|
@@ -7250,6 +7252,8 @@ const _sfc_main$1 = vue.defineComponent({
|
|
|
7250
7252
|
const isShowRemoveGroup = vue.ref(true);
|
|
7251
7253
|
const isShowDeleteMaterials = vue.ref(true);
|
|
7252
7254
|
const isShowSearchMaterials = vue.ref(true);
|
|
7255
|
+
const visiblePreview = vue.ref(false);
|
|
7256
|
+
const previewUrl = vue.ref("");
|
|
7253
7257
|
if (props.config.isShowUploadLocalMaterials === "undefined" || props.config.isShowUploadLocalMaterials === false || props.config.isShowUploadLocalMaterials === null) {
|
|
7254
7258
|
isShowUploadLocalMaterials.value = deepConfig.value.isShowUploadLocalMaterials;
|
|
7255
7259
|
}
|
|
@@ -7272,16 +7276,12 @@ const _sfc_main$1 = vue.defineComponent({
|
|
|
7272
7276
|
init(groupId.value);
|
|
7273
7277
|
};
|
|
7274
7278
|
const handlePreview = (item) => {
|
|
7275
|
-
if (item
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
}
|
|
7279
|
-
|
|
7280
|
-
|
|
7281
|
-
a.setAttribute("target", "_blank");
|
|
7282
|
-
document.body.appendChild(a);
|
|
7283
|
-
a.click();
|
|
7284
|
-
setTimeout(() => document.body.removeChild(a), 500);
|
|
7279
|
+
if (item == null ? void 0 : item.filePath) {
|
|
7280
|
+
previewUrl.value = item.filePath;
|
|
7281
|
+
visiblePreview.value = true;
|
|
7282
|
+
} else {
|
|
7283
|
+
visiblePreview.value = false;
|
|
7284
|
+
}
|
|
7285
7285
|
};
|
|
7286
7286
|
const downloadTxtFile = async (fileUrl, fileName2) => {
|
|
7287
7287
|
try {
|
|
@@ -7353,6 +7353,9 @@ const _sfc_main$1 = vue.defineComponent({
|
|
|
7353
7353
|
try {
|
|
7354
7354
|
groupId.value = id;
|
|
7355
7355
|
loading.value = true;
|
|
7356
|
+
if (fileName.value) {
|
|
7357
|
+
pageNum.value = 1;
|
|
7358
|
+
}
|
|
7356
7359
|
const res = await ((_b2 = (_a2 = deepConfig.value) == null ? void 0 : _a2.apis) == null ? void 0 : _b2.getFileList({
|
|
7357
7360
|
groupId: groupId.value,
|
|
7358
7361
|
fileName: fileName.value,
|
|
@@ -7400,6 +7403,8 @@ const _sfc_main$1 = vue.defineComponent({
|
|
|
7400
7403
|
isShowRemoveGroup,
|
|
7401
7404
|
isShowDeleteMaterials,
|
|
7402
7405
|
isShowSearchMaterials,
|
|
7406
|
+
previewUrl,
|
|
7407
|
+
visiblePreview,
|
|
7403
7408
|
handlePage,
|
|
7404
7409
|
handlePageSizes,
|
|
7405
7410
|
handlePreview,
|
|
@@ -7438,6 +7443,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7438
7443
|
const _component_l_modal = vue.resolveComponent("l-modal");
|
|
7439
7444
|
const _component_CChangeGroup = vue.resolveComponent("CChangeGroup");
|
|
7440
7445
|
const _component_CUpload = vue.resolveComponent("CUpload");
|
|
7446
|
+
const _component_m_image_preview = vue.resolveComponent("m-image-preview");
|
|
7441
7447
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
7442
7448
|
vue.createElementVNode("div", _hoisted_1$1, [
|
|
7443
7449
|
vue.createCommentVNode(" header "),
|
|
@@ -7469,13 +7475,13 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7469
7475
|
type: "primary",
|
|
7470
7476
|
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.init(_ctx.groupId))
|
|
7471
7477
|
}, {
|
|
7472
|
-
default: vue.withCtx(() => _cache[
|
|
7478
|
+
default: vue.withCtx(() => _cache[12] || (_cache[12] = [
|
|
7473
7479
|
vue.createTextVNode("\u67E5\u8BE2")
|
|
7474
7480
|
])),
|
|
7475
7481
|
_: 1
|
|
7476
7482
|
}),
|
|
7477
7483
|
vue.createVNode(_component_m_button, { onClick: _ctx.reset }, {
|
|
7478
|
-
default: vue.withCtx(() => _cache[
|
|
7484
|
+
default: vue.withCtx(() => _cache[13] || (_cache[13] = [
|
|
7479
7485
|
vue.createTextVNode("\u91CD\u7F6E")
|
|
7480
7486
|
])),
|
|
7481
7487
|
_: 1
|
|
@@ -7495,7 +7501,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7495
7501
|
key: 0,
|
|
7496
7502
|
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.refCUpload.open(_ctx.groupId))
|
|
7497
7503
|
}, {
|
|
7498
|
-
default: vue.withCtx(() => _cache[
|
|
7504
|
+
default: vue.withCtx(() => _cache[15] || (_cache[15] = [
|
|
7499
7505
|
vue.createTextVNode("\u4E0A\u4F20\u672C\u5730\u7D20\u6750")
|
|
7500
7506
|
])),
|
|
7501
7507
|
_: 1
|
|
@@ -7504,7 +7510,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7504
7510
|
key: 1,
|
|
7505
7511
|
onClick: _cache[4] || (_cache[4] = ($event) => _ctx.getIds("\u79FB\u52A8\u5206\u7EC4"))
|
|
7506
7512
|
}, {
|
|
7507
|
-
default: vue.withCtx(() => _cache[
|
|
7513
|
+
default: vue.withCtx(() => _cache[16] || (_cache[16] = [
|
|
7508
7514
|
vue.createTextVNode("\u79FB\u52A8\u5206\u7EC4")
|
|
7509
7515
|
])),
|
|
7510
7516
|
_: 1
|
|
@@ -7513,7 +7519,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7513
7519
|
key: 2,
|
|
7514
7520
|
onClick: _cache[5] || (_cache[5] = ($event) => _ctx.getIds("\u5220\u9664"))
|
|
7515
7521
|
}, {
|
|
7516
|
-
default: vue.withCtx(() => _cache[
|
|
7522
|
+
default: vue.withCtx(() => _cache[17] || (_cache[17] = [
|
|
7517
7523
|
vue.createTextVNode("\u5220\u9664")
|
|
7518
7524
|
])),
|
|
7519
7525
|
_: 1
|
|
@@ -7522,7 +7528,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7522
7528
|
default: vue.withCtx(() => [
|
|
7523
7529
|
vue.createVNode(_component_m_button, { type: "primary" }, {
|
|
7524
7530
|
default: vue.withCtx(() => [
|
|
7525
|
-
_cache[
|
|
7531
|
+
_cache[14] || (_cache[14] = vue.createTextVNode(" \u66F4\u591A\u64CD\u4F5C ")),
|
|
7526
7532
|
vue.createVNode(_component_icon_down, { class: "more-icon-down" })
|
|
7527
7533
|
]),
|
|
7528
7534
|
_: 1
|
|
@@ -7534,7 +7540,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7534
7540
|
]),
|
|
7535
7541
|
vue.createCommentVNode(" toolbar "),
|
|
7536
7542
|
vue.createElementVNode("div", _hoisted_5, [
|
|
7537
|
-
_cache[
|
|
7543
|
+
_cache[18] || (_cache[18] = vue.createElementVNode("div", null, null, -1)),
|
|
7538
7544
|
vue.createElementVNode("div", null, [
|
|
7539
7545
|
vue.createVNode(_component_icon_apps, {
|
|
7540
7546
|
class: vue.normalizeClass(["apps", _ctx.showType === 1 ? "active" : ""]),
|
|
@@ -7585,7 +7591,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7585
7591
|
"onHandle:cancel": _cache[10] || (_cache[10] = ($event) => _ctx.visible = false),
|
|
7586
7592
|
"onHandle:ok": _ctx.handleRemoveOk
|
|
7587
7593
|
}, {
|
|
7588
|
-
default: vue.withCtx(() => _cache[
|
|
7594
|
+
default: vue.withCtx(() => _cache[19] || (_cache[19] = [
|
|
7589
7595
|
vue.createTextVNode(" \u5220\u9664\u7D20\u6750\u540E\uFF0C\u5C06\u65E0\u6CD5\u88AB\u6062\u590D\u3002 ")
|
|
7590
7596
|
])),
|
|
7591
7597
|
_: 1
|
|
@@ -7601,10 +7607,16 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7601
7607
|
ref: "refCUpload",
|
|
7602
7608
|
config: _ctx.deepConfig,
|
|
7603
7609
|
"onUpload:success": _ctx.reset
|
|
7604
|
-
}, null, 8, ["config", "onUpload:success"])
|
|
7610
|
+
}, null, 8, ["config", "onUpload:success"]),
|
|
7611
|
+
vue.createCommentVNode(" \u9884\u89C8 "),
|
|
7612
|
+
vue.createVNode(_component_m_image_preview, {
|
|
7613
|
+
visible: _ctx.visiblePreview,
|
|
7614
|
+
"onUpdate:visible": _cache[11] || (_cache[11] = ($event) => _ctx.visiblePreview = $event),
|
|
7615
|
+
src: _ctx.previewUrl
|
|
7616
|
+
}, null, 8, ["visible", "src"])
|
|
7605
7617
|
], 64);
|
|
7606
7618
|
}
|
|
7607
|
-
var CRight = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
7619
|
+
var CRight = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-58d380a5"]]);
|
|
7608
7620
|
var index_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
7609
7621
|
const _sfc_main = vue.defineComponent({
|
|
7610
7622
|
name: "MaterialLibrary",
|
package/dist/index.d.ts
CHANGED
|
@@ -576,6 +576,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
576
576
|
isShowRemoveGroup: import("vue").Ref<boolean, boolean>;
|
|
577
577
|
isShowDeleteMaterials: import("vue").Ref<boolean, boolean>;
|
|
578
578
|
isShowSearchMaterials: import("vue").Ref<boolean, boolean>;
|
|
579
|
+
previewUrl: import("vue").Ref<string, string>;
|
|
580
|
+
visiblePreview: import("vue").Ref<boolean, boolean>;
|
|
579
581
|
handlePage: (v: number) => void;
|
|
580
582
|
handlePageSizes: (v: number) => void;
|
|
581
583
|
handlePreview: (item: any) => void;
|
package/dist/index.esm.js
CHANGED
|
@@ -6140,7 +6140,7 @@ const _hoisted_6$2 = ["onClick"];
|
|
|
6140
6140
|
const _hoisted_7$1 = { class: "footer" };
|
|
6141
6141
|
const _hoisted_8$1 = { class: "checkbox" };
|
|
6142
6142
|
const _hoisted_9$1 = ["title"];
|
|
6143
|
-
const _hoisted_10 = { class: "title" };
|
|
6143
|
+
const _hoisted_10$1 = { class: "title" };
|
|
6144
6144
|
const _hoisted_11 = { class: "l-material-library-infos" };
|
|
6145
6145
|
const _hoisted_12 = { class: "icon" };
|
|
6146
6146
|
const _hoisted_13 = {
|
|
@@ -6250,7 +6250,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6250
6250
|
])
|
|
6251
6251
|
]),
|
|
6252
6252
|
default: withCtx(() => [
|
|
6253
|
-
createElementVNode("div", _hoisted_10, toDisplayString(item == null ? void 0 : item.fileName), 1)
|
|
6253
|
+
createElementVNode("div", _hoisted_10$1, toDisplayString(item == null ? void 0 : item.fileName), 1)
|
|
6254
6254
|
]),
|
|
6255
6255
|
_: 2
|
|
6256
6256
|
}, 1024)
|
|
@@ -7111,6 +7111,7 @@ const _hoisted_6 = { key: 0 };
|
|
|
7111
7111
|
const _hoisted_7 = { key: 1 };
|
|
7112
7112
|
const _hoisted_8 = { key: 2 };
|
|
7113
7113
|
const _hoisted_9 = { key: 3 };
|
|
7114
|
+
const _hoisted_10 = { key: 4 };
|
|
7114
7115
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7115
7116
|
const _component_m_input = resolveComponent("m-input");
|
|
7116
7117
|
const _component_m_select = resolveComponent("m-select");
|
|
@@ -7180,7 +7181,8 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7180
7181
|
_ctx.fileType === 1 ? (openBlock(), createElementBlock("div", _hoisted_6, "\u56FE\u7247\u4E0A\u4F20\u683C\u5F0F\u4E3Ajpg\u3001jpeg\u3001png\u3001bmp\u3001webp\u3001GIF, \u5927\u5C0F\u9650\u5236\u572810M\u4EE5\u5185")) : createCommentVNode("v-if", true),
|
|
7181
7182
|
_ctx.fileType === 2 ? (openBlock(), createElementBlock("div", _hoisted_7, " \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 ")) : createCommentVNode("v-if", true),
|
|
7182
7183
|
_ctx.fileType === 3 ? (openBlock(), createElementBlock("div", _hoisted_8, "\u89C6\u9891\u4E0A\u4F20\u683C\u5F0F\u4E3ASWF\u3001MP4, \u5927\u5C0F\u9650\u5236\u5728300M\u4EE5\u5185")) : createCommentVNode("v-if", true),
|
|
7183
|
-
_ctx.fileType === 4 ? (openBlock(), createElementBlock("div", _hoisted_9, "\u97F3\u4E50\u4E0A\u4F20\u683C\u5F0F\u4E3AMP3, \u5927\u5C0F\u9650\u5236\u57285M\u4EE5\u5185")) : createCommentVNode("v-if", true)
|
|
7184
|
+
_ctx.fileType === 4 ? (openBlock(), createElementBlock("div", _hoisted_9, "\u97F3\u4E50\u4E0A\u4F20\u683C\u5F0F\u4E3AMP3, \u5927\u5C0F\u9650\u5236\u57285M\u4EE5\u5185")) : createCommentVNode("v-if", true),
|
|
7185
|
+
_ctx.fileType === 0 ? (openBlock(), createElementBlock("div", _hoisted_10, "\u5176\u4ED6\u7C7B\u578B\u5927\u5C0F\u9650\u5236\u5728400M\u4EE5\u5185")) : createCommentVNode("v-if", true)
|
|
7184
7186
|
]),
|
|
7185
7187
|
createVNode(_component_m_scrollbar, { style: { "max-height": "300px", "overflow-y": "auto", "padding-right": "24px" } }, {
|
|
7186
7188
|
default: withCtx(() => [
|
|
@@ -7207,7 +7209,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7207
7209
|
_: 1
|
|
7208
7210
|
}, 8, ["visible", "others", "onHandle:ok"]);
|
|
7209
7211
|
}
|
|
7210
|
-
var CUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-
|
|
7212
|
+
var CUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-6b18ee10"]]);
|
|
7211
7213
|
var cRight_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
7212
7214
|
const _sfc_main$1 = defineComponent({
|
|
7213
7215
|
name: "",
|
|
@@ -7249,6 +7251,8 @@ const _sfc_main$1 = defineComponent({
|
|
|
7249
7251
|
const isShowRemoveGroup = ref(true);
|
|
7250
7252
|
const isShowDeleteMaterials = ref(true);
|
|
7251
7253
|
const isShowSearchMaterials = ref(true);
|
|
7254
|
+
const visiblePreview = ref(false);
|
|
7255
|
+
const previewUrl = ref("");
|
|
7252
7256
|
if (props.config.isShowUploadLocalMaterials === "undefined" || props.config.isShowUploadLocalMaterials === false || props.config.isShowUploadLocalMaterials === null) {
|
|
7253
7257
|
isShowUploadLocalMaterials.value = deepConfig.value.isShowUploadLocalMaterials;
|
|
7254
7258
|
}
|
|
@@ -7271,16 +7275,12 @@ const _sfc_main$1 = defineComponent({
|
|
|
7271
7275
|
init(groupId.value);
|
|
7272
7276
|
};
|
|
7273
7277
|
const handlePreview = (item) => {
|
|
7274
|
-
if (item
|
|
7275
|
-
|
|
7276
|
-
|
|
7277
|
-
}
|
|
7278
|
-
|
|
7279
|
-
|
|
7280
|
-
a.setAttribute("target", "_blank");
|
|
7281
|
-
document.body.appendChild(a);
|
|
7282
|
-
a.click();
|
|
7283
|
-
setTimeout(() => document.body.removeChild(a), 500);
|
|
7278
|
+
if (item == null ? void 0 : item.filePath) {
|
|
7279
|
+
previewUrl.value = item.filePath;
|
|
7280
|
+
visiblePreview.value = true;
|
|
7281
|
+
} else {
|
|
7282
|
+
visiblePreview.value = false;
|
|
7283
|
+
}
|
|
7284
7284
|
};
|
|
7285
7285
|
const downloadTxtFile = async (fileUrl, fileName2) => {
|
|
7286
7286
|
try {
|
|
@@ -7352,6 +7352,9 @@ const _sfc_main$1 = defineComponent({
|
|
|
7352
7352
|
try {
|
|
7353
7353
|
groupId.value = id;
|
|
7354
7354
|
loading.value = true;
|
|
7355
|
+
if (fileName.value) {
|
|
7356
|
+
pageNum.value = 1;
|
|
7357
|
+
}
|
|
7355
7358
|
const res = await ((_b2 = (_a2 = deepConfig.value) == null ? void 0 : _a2.apis) == null ? void 0 : _b2.getFileList({
|
|
7356
7359
|
groupId: groupId.value,
|
|
7357
7360
|
fileName: fileName.value,
|
|
@@ -7399,6 +7402,8 @@ const _sfc_main$1 = defineComponent({
|
|
|
7399
7402
|
isShowRemoveGroup,
|
|
7400
7403
|
isShowDeleteMaterials,
|
|
7401
7404
|
isShowSearchMaterials,
|
|
7405
|
+
previewUrl,
|
|
7406
|
+
visiblePreview,
|
|
7402
7407
|
handlePage,
|
|
7403
7408
|
handlePageSizes,
|
|
7404
7409
|
handlePreview,
|
|
@@ -7437,6 +7442,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7437
7442
|
const _component_l_modal = resolveComponent("l-modal");
|
|
7438
7443
|
const _component_CChangeGroup = resolveComponent("CChangeGroup");
|
|
7439
7444
|
const _component_CUpload = resolveComponent("CUpload");
|
|
7445
|
+
const _component_m_image_preview = resolveComponent("m-image-preview");
|
|
7440
7446
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
7441
7447
|
createElementVNode("div", _hoisted_1$1, [
|
|
7442
7448
|
createCommentVNode(" header "),
|
|
@@ -7468,13 +7474,13 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7468
7474
|
type: "primary",
|
|
7469
7475
|
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.init(_ctx.groupId))
|
|
7470
7476
|
}, {
|
|
7471
|
-
default: withCtx(() => _cache[
|
|
7477
|
+
default: withCtx(() => _cache[12] || (_cache[12] = [
|
|
7472
7478
|
createTextVNode("\u67E5\u8BE2")
|
|
7473
7479
|
])),
|
|
7474
7480
|
_: 1
|
|
7475
7481
|
}),
|
|
7476
7482
|
createVNode(_component_m_button, { onClick: _ctx.reset }, {
|
|
7477
|
-
default: withCtx(() => _cache[
|
|
7483
|
+
default: withCtx(() => _cache[13] || (_cache[13] = [
|
|
7478
7484
|
createTextVNode("\u91CD\u7F6E")
|
|
7479
7485
|
])),
|
|
7480
7486
|
_: 1
|
|
@@ -7494,7 +7500,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7494
7500
|
key: 0,
|
|
7495
7501
|
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.refCUpload.open(_ctx.groupId))
|
|
7496
7502
|
}, {
|
|
7497
|
-
default: withCtx(() => _cache[
|
|
7503
|
+
default: withCtx(() => _cache[15] || (_cache[15] = [
|
|
7498
7504
|
createTextVNode("\u4E0A\u4F20\u672C\u5730\u7D20\u6750")
|
|
7499
7505
|
])),
|
|
7500
7506
|
_: 1
|
|
@@ -7503,7 +7509,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7503
7509
|
key: 1,
|
|
7504
7510
|
onClick: _cache[4] || (_cache[4] = ($event) => _ctx.getIds("\u79FB\u52A8\u5206\u7EC4"))
|
|
7505
7511
|
}, {
|
|
7506
|
-
default: withCtx(() => _cache[
|
|
7512
|
+
default: withCtx(() => _cache[16] || (_cache[16] = [
|
|
7507
7513
|
createTextVNode("\u79FB\u52A8\u5206\u7EC4")
|
|
7508
7514
|
])),
|
|
7509
7515
|
_: 1
|
|
@@ -7512,7 +7518,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7512
7518
|
key: 2,
|
|
7513
7519
|
onClick: _cache[5] || (_cache[5] = ($event) => _ctx.getIds("\u5220\u9664"))
|
|
7514
7520
|
}, {
|
|
7515
|
-
default: withCtx(() => _cache[
|
|
7521
|
+
default: withCtx(() => _cache[17] || (_cache[17] = [
|
|
7516
7522
|
createTextVNode("\u5220\u9664")
|
|
7517
7523
|
])),
|
|
7518
7524
|
_: 1
|
|
@@ -7521,7 +7527,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7521
7527
|
default: withCtx(() => [
|
|
7522
7528
|
createVNode(_component_m_button, { type: "primary" }, {
|
|
7523
7529
|
default: withCtx(() => [
|
|
7524
|
-
_cache[
|
|
7530
|
+
_cache[14] || (_cache[14] = createTextVNode(" \u66F4\u591A\u64CD\u4F5C ")),
|
|
7525
7531
|
createVNode(_component_icon_down, { class: "more-icon-down" })
|
|
7526
7532
|
]),
|
|
7527
7533
|
_: 1
|
|
@@ -7533,7 +7539,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7533
7539
|
]),
|
|
7534
7540
|
createCommentVNode(" toolbar "),
|
|
7535
7541
|
createElementVNode("div", _hoisted_5, [
|
|
7536
|
-
_cache[
|
|
7542
|
+
_cache[18] || (_cache[18] = createElementVNode("div", null, null, -1)),
|
|
7537
7543
|
createElementVNode("div", null, [
|
|
7538
7544
|
createVNode(_component_icon_apps, {
|
|
7539
7545
|
class: normalizeClass(["apps", _ctx.showType === 1 ? "active" : ""]),
|
|
@@ -7584,7 +7590,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7584
7590
|
"onHandle:cancel": _cache[10] || (_cache[10] = ($event) => _ctx.visible = false),
|
|
7585
7591
|
"onHandle:ok": _ctx.handleRemoveOk
|
|
7586
7592
|
}, {
|
|
7587
|
-
default: withCtx(() => _cache[
|
|
7593
|
+
default: withCtx(() => _cache[19] || (_cache[19] = [
|
|
7588
7594
|
createTextVNode(" \u5220\u9664\u7D20\u6750\u540E\uFF0C\u5C06\u65E0\u6CD5\u88AB\u6062\u590D\u3002 ")
|
|
7589
7595
|
])),
|
|
7590
7596
|
_: 1
|
|
@@ -7600,10 +7606,16 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7600
7606
|
ref: "refCUpload",
|
|
7601
7607
|
config: _ctx.deepConfig,
|
|
7602
7608
|
"onUpload:success": _ctx.reset
|
|
7603
|
-
}, null, 8, ["config", "onUpload:success"])
|
|
7609
|
+
}, null, 8, ["config", "onUpload:success"]),
|
|
7610
|
+
createCommentVNode(" \u9884\u89C8 "),
|
|
7611
|
+
createVNode(_component_m_image_preview, {
|
|
7612
|
+
visible: _ctx.visiblePreview,
|
|
7613
|
+
"onUpdate:visible": _cache[11] || (_cache[11] = ($event) => _ctx.visiblePreview = $event),
|
|
7614
|
+
src: _ctx.previewUrl
|
|
7615
|
+
}, null, 8, ["visible", "src"])
|
|
7604
7616
|
], 64);
|
|
7605
7617
|
}
|
|
7606
|
-
var CRight = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
7618
|
+
var CRight = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-58d380a5"]]);
|
|
7607
7619
|
var index_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
7608
7620
|
const _sfc_main = defineComponent({
|
|
7609
7621
|
name: "MaterialLibrary",
|