@moment-design/material-library 0.1.19 → 0.1.21
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-apps.d.ts +1 -1
- package/dist/c-right-menu.d.ts +1 -1
- package/dist/c-right.d.ts +4 -2
- package/dist/css/index.css +18 -18
- package/dist/index.cjs.js +45 -24
- package/dist/index.d.ts +4 -2
- package/dist/index.esm.js +45 -24
- package/dist/index.min.js +328 -326
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/c-right-apps.d.ts
CHANGED
|
@@ -37,8 +37,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
37
37
|
default: () => {};
|
|
38
38
|
};
|
|
39
39
|
}>> & Readonly<{}>, {
|
|
40
|
-
config: Record<string, any>;
|
|
41
40
|
datas: unknown[];
|
|
41
|
+
config: Record<string, any>;
|
|
42
42
|
}, {}, {
|
|
43
43
|
IconMore: {
|
|
44
44
|
new (...args: any[]): {
|
package/dist/c-right-menu.d.ts
CHANGED
|
@@ -36,8 +36,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
36
36
|
default: () => {};
|
|
37
37
|
};
|
|
38
38
|
}>> & Readonly<{}>, {
|
|
39
|
-
config: Record<string, any>;
|
|
40
39
|
datas: unknown[];
|
|
40
|
+
config: Record<string, any>;
|
|
41
41
|
}, {}, {
|
|
42
42
|
LTableOperate: any;
|
|
43
43
|
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
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;
|
|
@@ -552,8 +554,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
552
554
|
default: () => {};
|
|
553
555
|
};
|
|
554
556
|
}>> & Readonly<{}>, {
|
|
555
|
-
config: Record<string, any>;
|
|
556
557
|
datas: unknown[];
|
|
558
|
+
config: Record<string, any>;
|
|
557
559
|
}, {}, {
|
|
558
560
|
IconMore: {
|
|
559
561
|
new (...args: any[]): {
|
|
@@ -750,8 +752,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
750
752
|
default: () => {};
|
|
751
753
|
};
|
|
752
754
|
}>> & Readonly<{}>, {
|
|
753
|
-
config: Record<string, any>;
|
|
754
755
|
datas: unknown[];
|
|
756
|
+
config: Record<string, any>;
|
|
755
757
|
}, {}, {
|
|
756
758
|
LTableOperate: any;
|
|
757
759
|
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
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-2b9787ae] {
|
|
290
290
|
flex: 1;
|
|
291
291
|
}
|
|
292
|
-
.l-material-library-right-content .header[data-v-
|
|
292
|
+
.l-material-library-right-content .header[data-v-2b9787ae] {
|
|
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-2b9787ae] {
|
|
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-2b9787ae] {
|
|
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-2b9787ae] {
|
|
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-2b9787ae],
|
|
314
|
+
.l-material-library-right-content .toolbar .menu[data-v-2b9787ae] {
|
|
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-2b9787ae]:hover,
|
|
320
|
+
.l-material-library-right-content .toolbar .menu[data-v-2b9787ae]:hover,
|
|
321
|
+
.l-material-library-right-content .toolbar .apps.active[data-v-2b9787ae],
|
|
322
|
+
.l-material-library-right-content .toolbar .menu.active[data-v-2b9787ae] {
|
|
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,21 @@ 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
|
-
|
|
7282
|
-
|
|
7283
|
-
|
|
7284
|
-
|
|
7279
|
+
if ((item == null ? void 0 : item.fileType) === 1) {
|
|
7280
|
+
if (item == null ? void 0 : item.filePath) {
|
|
7281
|
+
previewUrl.value = item.filePath;
|
|
7282
|
+
visiblePreview.value = true;
|
|
7283
|
+
} else {
|
|
7284
|
+
visiblePreview.value = false;
|
|
7285
|
+
}
|
|
7286
|
+
} else {
|
|
7287
|
+
const a = document.createElement("a");
|
|
7288
|
+
a.setAttribute("href", item.filePath);
|
|
7289
|
+
a.setAttribute("target", "_blank");
|
|
7290
|
+
document.body.appendChild(a);
|
|
7291
|
+
a.click();
|
|
7292
|
+
setTimeout(() => document.body.removeChild(a), 500);
|
|
7293
|
+
}
|
|
7285
7294
|
};
|
|
7286
7295
|
const downloadTxtFile = async (fileUrl, fileName2) => {
|
|
7287
7296
|
try {
|
|
@@ -7353,6 +7362,9 @@ const _sfc_main$1 = vue.defineComponent({
|
|
|
7353
7362
|
try {
|
|
7354
7363
|
groupId.value = id;
|
|
7355
7364
|
loading.value = true;
|
|
7365
|
+
if (fileName.value) {
|
|
7366
|
+
pageNum.value = 1;
|
|
7367
|
+
}
|
|
7356
7368
|
const res = await ((_b2 = (_a2 = deepConfig.value) == null ? void 0 : _a2.apis) == null ? void 0 : _b2.getFileList({
|
|
7357
7369
|
groupId: groupId.value,
|
|
7358
7370
|
fileName: fileName.value,
|
|
@@ -7400,6 +7412,8 @@ const _sfc_main$1 = vue.defineComponent({
|
|
|
7400
7412
|
isShowRemoveGroup,
|
|
7401
7413
|
isShowDeleteMaterials,
|
|
7402
7414
|
isShowSearchMaterials,
|
|
7415
|
+
previewUrl,
|
|
7416
|
+
visiblePreview,
|
|
7403
7417
|
handlePage,
|
|
7404
7418
|
handlePageSizes,
|
|
7405
7419
|
handlePreview,
|
|
@@ -7438,6 +7452,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7438
7452
|
const _component_l_modal = vue.resolveComponent("l-modal");
|
|
7439
7453
|
const _component_CChangeGroup = vue.resolveComponent("CChangeGroup");
|
|
7440
7454
|
const _component_CUpload = vue.resolveComponent("CUpload");
|
|
7455
|
+
const _component_m_image_preview = vue.resolveComponent("m-image-preview");
|
|
7441
7456
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
7442
7457
|
vue.createElementVNode("div", _hoisted_1$1, [
|
|
7443
7458
|
vue.createCommentVNode(" header "),
|
|
@@ -7469,13 +7484,13 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7469
7484
|
type: "primary",
|
|
7470
7485
|
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.init(_ctx.groupId))
|
|
7471
7486
|
}, {
|
|
7472
|
-
default: vue.withCtx(() => _cache[
|
|
7487
|
+
default: vue.withCtx(() => _cache[12] || (_cache[12] = [
|
|
7473
7488
|
vue.createTextVNode("\u67E5\u8BE2")
|
|
7474
7489
|
])),
|
|
7475
7490
|
_: 1
|
|
7476
7491
|
}),
|
|
7477
7492
|
vue.createVNode(_component_m_button, { onClick: _ctx.reset }, {
|
|
7478
|
-
default: vue.withCtx(() => _cache[
|
|
7493
|
+
default: vue.withCtx(() => _cache[13] || (_cache[13] = [
|
|
7479
7494
|
vue.createTextVNode("\u91CD\u7F6E")
|
|
7480
7495
|
])),
|
|
7481
7496
|
_: 1
|
|
@@ -7495,7 +7510,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7495
7510
|
key: 0,
|
|
7496
7511
|
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.refCUpload.open(_ctx.groupId))
|
|
7497
7512
|
}, {
|
|
7498
|
-
default: vue.withCtx(() => _cache[
|
|
7513
|
+
default: vue.withCtx(() => _cache[15] || (_cache[15] = [
|
|
7499
7514
|
vue.createTextVNode("\u4E0A\u4F20\u672C\u5730\u7D20\u6750")
|
|
7500
7515
|
])),
|
|
7501
7516
|
_: 1
|
|
@@ -7504,7 +7519,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7504
7519
|
key: 1,
|
|
7505
7520
|
onClick: _cache[4] || (_cache[4] = ($event) => _ctx.getIds("\u79FB\u52A8\u5206\u7EC4"))
|
|
7506
7521
|
}, {
|
|
7507
|
-
default: vue.withCtx(() => _cache[
|
|
7522
|
+
default: vue.withCtx(() => _cache[16] || (_cache[16] = [
|
|
7508
7523
|
vue.createTextVNode("\u79FB\u52A8\u5206\u7EC4")
|
|
7509
7524
|
])),
|
|
7510
7525
|
_: 1
|
|
@@ -7513,7 +7528,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7513
7528
|
key: 2,
|
|
7514
7529
|
onClick: _cache[5] || (_cache[5] = ($event) => _ctx.getIds("\u5220\u9664"))
|
|
7515
7530
|
}, {
|
|
7516
|
-
default: vue.withCtx(() => _cache[
|
|
7531
|
+
default: vue.withCtx(() => _cache[17] || (_cache[17] = [
|
|
7517
7532
|
vue.createTextVNode("\u5220\u9664")
|
|
7518
7533
|
])),
|
|
7519
7534
|
_: 1
|
|
@@ -7522,7 +7537,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7522
7537
|
default: vue.withCtx(() => [
|
|
7523
7538
|
vue.createVNode(_component_m_button, { type: "primary" }, {
|
|
7524
7539
|
default: vue.withCtx(() => [
|
|
7525
|
-
_cache[
|
|
7540
|
+
_cache[14] || (_cache[14] = vue.createTextVNode(" \u66F4\u591A\u64CD\u4F5C ")),
|
|
7526
7541
|
vue.createVNode(_component_icon_down, { class: "more-icon-down" })
|
|
7527
7542
|
]),
|
|
7528
7543
|
_: 1
|
|
@@ -7534,7 +7549,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7534
7549
|
]),
|
|
7535
7550
|
vue.createCommentVNode(" toolbar "),
|
|
7536
7551
|
vue.createElementVNode("div", _hoisted_5, [
|
|
7537
|
-
_cache[
|
|
7552
|
+
_cache[18] || (_cache[18] = vue.createElementVNode("div", null, null, -1)),
|
|
7538
7553
|
vue.createElementVNode("div", null, [
|
|
7539
7554
|
vue.createVNode(_component_icon_apps, {
|
|
7540
7555
|
class: vue.normalizeClass(["apps", _ctx.showType === 1 ? "active" : ""]),
|
|
@@ -7585,7 +7600,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7585
7600
|
"onHandle:cancel": _cache[10] || (_cache[10] = ($event) => _ctx.visible = false),
|
|
7586
7601
|
"onHandle:ok": _ctx.handleRemoveOk
|
|
7587
7602
|
}, {
|
|
7588
|
-
default: vue.withCtx(() => _cache[
|
|
7603
|
+
default: vue.withCtx(() => _cache[19] || (_cache[19] = [
|
|
7589
7604
|
vue.createTextVNode(" \u5220\u9664\u7D20\u6750\u540E\uFF0C\u5C06\u65E0\u6CD5\u88AB\u6062\u590D\u3002 ")
|
|
7590
7605
|
])),
|
|
7591
7606
|
_: 1
|
|
@@ -7601,10 +7616,16 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7601
7616
|
ref: "refCUpload",
|
|
7602
7617
|
config: _ctx.deepConfig,
|
|
7603
7618
|
"onUpload:success": _ctx.reset
|
|
7604
|
-
}, null, 8, ["config", "onUpload:success"])
|
|
7619
|
+
}, null, 8, ["config", "onUpload:success"]),
|
|
7620
|
+
vue.createCommentVNode(" \u9884\u89C8 "),
|
|
7621
|
+
vue.createVNode(_component_m_image_preview, {
|
|
7622
|
+
visible: _ctx.visiblePreview,
|
|
7623
|
+
"onUpdate:visible": _cache[11] || (_cache[11] = ($event) => _ctx.visiblePreview = $event),
|
|
7624
|
+
src: _ctx.previewUrl
|
|
7625
|
+
}, null, 8, ["visible", "src"])
|
|
7605
7626
|
], 64);
|
|
7606
7627
|
}
|
|
7607
|
-
var CRight = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
7628
|
+
var CRight = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-2b9787ae"]]);
|
|
7608
7629
|
var index_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
7609
7630
|
const _sfc_main = vue.defineComponent({
|
|
7610
7631
|
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;
|
|
@@ -1100,8 +1102,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1100
1102
|
default: () => {};
|
|
1101
1103
|
};
|
|
1102
1104
|
}>> & Readonly<{}>, {
|
|
1103
|
-
config: Record<string, any>;
|
|
1104
1105
|
datas: unknown[];
|
|
1106
|
+
config: Record<string, any>;
|
|
1105
1107
|
}, {}, {
|
|
1106
1108
|
IconMore: {
|
|
1107
1109
|
new (...args: any[]): {
|
|
@@ -1298,8 +1300,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1298
1300
|
default: () => {};
|
|
1299
1301
|
};
|
|
1300
1302
|
}>> & Readonly<{}>, {
|
|
1301
|
-
config: Record<string, any>;
|
|
1302
1303
|
datas: unknown[];
|
|
1304
|
+
config: Record<string, any>;
|
|
1303
1305
|
}, {}, {
|
|
1304
1306
|
LTableOperate: any;
|
|
1305
1307
|
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
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,21 @@ 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
|
-
|
|
7281
|
-
|
|
7282
|
-
|
|
7283
|
-
|
|
7278
|
+
if ((item == null ? void 0 : item.fileType) === 1) {
|
|
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
|
+
} else {
|
|
7286
|
+
const a = document.createElement("a");
|
|
7287
|
+
a.setAttribute("href", item.filePath);
|
|
7288
|
+
a.setAttribute("target", "_blank");
|
|
7289
|
+
document.body.appendChild(a);
|
|
7290
|
+
a.click();
|
|
7291
|
+
setTimeout(() => document.body.removeChild(a), 500);
|
|
7292
|
+
}
|
|
7284
7293
|
};
|
|
7285
7294
|
const downloadTxtFile = async (fileUrl, fileName2) => {
|
|
7286
7295
|
try {
|
|
@@ -7352,6 +7361,9 @@ const _sfc_main$1 = defineComponent({
|
|
|
7352
7361
|
try {
|
|
7353
7362
|
groupId.value = id;
|
|
7354
7363
|
loading.value = true;
|
|
7364
|
+
if (fileName.value) {
|
|
7365
|
+
pageNum.value = 1;
|
|
7366
|
+
}
|
|
7355
7367
|
const res = await ((_b2 = (_a2 = deepConfig.value) == null ? void 0 : _a2.apis) == null ? void 0 : _b2.getFileList({
|
|
7356
7368
|
groupId: groupId.value,
|
|
7357
7369
|
fileName: fileName.value,
|
|
@@ -7399,6 +7411,8 @@ const _sfc_main$1 = defineComponent({
|
|
|
7399
7411
|
isShowRemoveGroup,
|
|
7400
7412
|
isShowDeleteMaterials,
|
|
7401
7413
|
isShowSearchMaterials,
|
|
7414
|
+
previewUrl,
|
|
7415
|
+
visiblePreview,
|
|
7402
7416
|
handlePage,
|
|
7403
7417
|
handlePageSizes,
|
|
7404
7418
|
handlePreview,
|
|
@@ -7437,6 +7451,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7437
7451
|
const _component_l_modal = resolveComponent("l-modal");
|
|
7438
7452
|
const _component_CChangeGroup = resolveComponent("CChangeGroup");
|
|
7439
7453
|
const _component_CUpload = resolveComponent("CUpload");
|
|
7454
|
+
const _component_m_image_preview = resolveComponent("m-image-preview");
|
|
7440
7455
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
7441
7456
|
createElementVNode("div", _hoisted_1$1, [
|
|
7442
7457
|
createCommentVNode(" header "),
|
|
@@ -7468,13 +7483,13 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7468
7483
|
type: "primary",
|
|
7469
7484
|
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.init(_ctx.groupId))
|
|
7470
7485
|
}, {
|
|
7471
|
-
default: withCtx(() => _cache[
|
|
7486
|
+
default: withCtx(() => _cache[12] || (_cache[12] = [
|
|
7472
7487
|
createTextVNode("\u67E5\u8BE2")
|
|
7473
7488
|
])),
|
|
7474
7489
|
_: 1
|
|
7475
7490
|
}),
|
|
7476
7491
|
createVNode(_component_m_button, { onClick: _ctx.reset }, {
|
|
7477
|
-
default: withCtx(() => _cache[
|
|
7492
|
+
default: withCtx(() => _cache[13] || (_cache[13] = [
|
|
7478
7493
|
createTextVNode("\u91CD\u7F6E")
|
|
7479
7494
|
])),
|
|
7480
7495
|
_: 1
|
|
@@ -7494,7 +7509,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7494
7509
|
key: 0,
|
|
7495
7510
|
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.refCUpload.open(_ctx.groupId))
|
|
7496
7511
|
}, {
|
|
7497
|
-
default: withCtx(() => _cache[
|
|
7512
|
+
default: withCtx(() => _cache[15] || (_cache[15] = [
|
|
7498
7513
|
createTextVNode("\u4E0A\u4F20\u672C\u5730\u7D20\u6750")
|
|
7499
7514
|
])),
|
|
7500
7515
|
_: 1
|
|
@@ -7503,7 +7518,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7503
7518
|
key: 1,
|
|
7504
7519
|
onClick: _cache[4] || (_cache[4] = ($event) => _ctx.getIds("\u79FB\u52A8\u5206\u7EC4"))
|
|
7505
7520
|
}, {
|
|
7506
|
-
default: withCtx(() => _cache[
|
|
7521
|
+
default: withCtx(() => _cache[16] || (_cache[16] = [
|
|
7507
7522
|
createTextVNode("\u79FB\u52A8\u5206\u7EC4")
|
|
7508
7523
|
])),
|
|
7509
7524
|
_: 1
|
|
@@ -7512,7 +7527,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7512
7527
|
key: 2,
|
|
7513
7528
|
onClick: _cache[5] || (_cache[5] = ($event) => _ctx.getIds("\u5220\u9664"))
|
|
7514
7529
|
}, {
|
|
7515
|
-
default: withCtx(() => _cache[
|
|
7530
|
+
default: withCtx(() => _cache[17] || (_cache[17] = [
|
|
7516
7531
|
createTextVNode("\u5220\u9664")
|
|
7517
7532
|
])),
|
|
7518
7533
|
_: 1
|
|
@@ -7521,7 +7536,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7521
7536
|
default: withCtx(() => [
|
|
7522
7537
|
createVNode(_component_m_button, { type: "primary" }, {
|
|
7523
7538
|
default: withCtx(() => [
|
|
7524
|
-
_cache[
|
|
7539
|
+
_cache[14] || (_cache[14] = createTextVNode(" \u66F4\u591A\u64CD\u4F5C ")),
|
|
7525
7540
|
createVNode(_component_icon_down, { class: "more-icon-down" })
|
|
7526
7541
|
]),
|
|
7527
7542
|
_: 1
|
|
@@ -7533,7 +7548,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7533
7548
|
]),
|
|
7534
7549
|
createCommentVNode(" toolbar "),
|
|
7535
7550
|
createElementVNode("div", _hoisted_5, [
|
|
7536
|
-
_cache[
|
|
7551
|
+
_cache[18] || (_cache[18] = createElementVNode("div", null, null, -1)),
|
|
7537
7552
|
createElementVNode("div", null, [
|
|
7538
7553
|
createVNode(_component_icon_apps, {
|
|
7539
7554
|
class: normalizeClass(["apps", _ctx.showType === 1 ? "active" : ""]),
|
|
@@ -7584,7 +7599,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7584
7599
|
"onHandle:cancel": _cache[10] || (_cache[10] = ($event) => _ctx.visible = false),
|
|
7585
7600
|
"onHandle:ok": _ctx.handleRemoveOk
|
|
7586
7601
|
}, {
|
|
7587
|
-
default: withCtx(() => _cache[
|
|
7602
|
+
default: withCtx(() => _cache[19] || (_cache[19] = [
|
|
7588
7603
|
createTextVNode(" \u5220\u9664\u7D20\u6750\u540E\uFF0C\u5C06\u65E0\u6CD5\u88AB\u6062\u590D\u3002 ")
|
|
7589
7604
|
])),
|
|
7590
7605
|
_: 1
|
|
@@ -7600,10 +7615,16 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7600
7615
|
ref: "refCUpload",
|
|
7601
7616
|
config: _ctx.deepConfig,
|
|
7602
7617
|
"onUpload:success": _ctx.reset
|
|
7603
|
-
}, null, 8, ["config", "onUpload:success"])
|
|
7618
|
+
}, null, 8, ["config", "onUpload:success"]),
|
|
7619
|
+
createCommentVNode(" \u9884\u89C8 "),
|
|
7620
|
+
createVNode(_component_m_image_preview, {
|
|
7621
|
+
visible: _ctx.visiblePreview,
|
|
7622
|
+
"onUpdate:visible": _cache[11] || (_cache[11] = ($event) => _ctx.visiblePreview = $event),
|
|
7623
|
+
src: _ctx.previewUrl
|
|
7624
|
+
}, null, 8, ["visible", "src"])
|
|
7604
7625
|
], 64);
|
|
7605
7626
|
}
|
|
7606
|
-
var CRight = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
7627
|
+
var CRight = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-2b9787ae"]]);
|
|
7607
7628
|
var index_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
7608
7629
|
const _sfc_main = defineComponent({
|
|
7609
7630
|
name: "MaterialLibrary",
|