@moment-design/material-library 0.1.20 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/index.css +11 -11
- package/dist/index.cjs.js +20 -11
- package/dist/index.esm.js +20 -11
- package/dist/index.min.js +210 -205
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/css/index.css
CHANGED
|
@@ -286,40 +286,40 @@
|
|
|
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-6d3cc084] {
|
|
290
290
|
flex: 1;
|
|
291
291
|
}
|
|
292
|
-
.l-material-library-right-content .header[data-v-
|
|
292
|
+
.l-material-library-right-content .header[data-v-6d3cc084] {
|
|
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-6d3cc084] {
|
|
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-6d3cc084] {
|
|
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-6d3cc084] {
|
|
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-6d3cc084],
|
|
314
|
+
.l-material-library-right-content .toolbar .menu[data-v-6d3cc084] {
|
|
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-6d3cc084]:hover,
|
|
320
|
+
.l-material-library-right-content .toolbar .menu[data-v-6d3cc084]:hover,
|
|
321
|
+
.l-material-library-right-content .toolbar .apps.active[data-v-6d3cc084],
|
|
322
|
+
.l-material-library-right-content .toolbar .menu.active[data-v-6d3cc084] {
|
|
323
323
|
color: #1966ff;
|
|
324
324
|
cursor: pointer;
|
|
325
325
|
}
|
package/dist/index.cjs.js
CHANGED
|
@@ -7276,11 +7276,20 @@ const _sfc_main$1 = vue.defineComponent({
|
|
|
7276
7276
|
init(groupId.value);
|
|
7277
7277
|
};
|
|
7278
7278
|
const handlePreview = (item) => {
|
|
7279
|
-
if (item == null ? void 0 : item.
|
|
7280
|
-
|
|
7281
|
-
|
|
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
|
+
}
|
|
7282
7286
|
} else {
|
|
7283
|
-
|
|
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);
|
|
7284
7293
|
}
|
|
7285
7294
|
};
|
|
7286
7295
|
const downloadTxtFile = async (fileUrl, fileName2) => {
|
|
@@ -7349,21 +7358,21 @@ const _sfc_main$1 = vue.defineComponent({
|
|
|
7349
7358
|
emit("group:init");
|
|
7350
7359
|
};
|
|
7351
7360
|
const init = async (id) => {
|
|
7352
|
-
var _a2, _b2, _c;
|
|
7361
|
+
var _a2, _b2, _c, _d, _e;
|
|
7353
7362
|
try {
|
|
7354
7363
|
groupId.value = id;
|
|
7355
7364
|
loading.value = true;
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
const res = await ((
|
|
7365
|
+
pageNum.value = 1;
|
|
7366
|
+
(_a2 = refCRightMenus.value) == null ? void 0 : _a2.resetCurrent();
|
|
7367
|
+
(_b2 = refCRightApps.value) == null ? void 0 : _b2.resetCurrent();
|
|
7368
|
+
const res = await ((_d = (_c = deepConfig.value) == null ? void 0 : _c.apis) == null ? void 0 : _d.getFileList({
|
|
7360
7369
|
groupId: groupId.value,
|
|
7361
7370
|
fileName: fileName.value,
|
|
7362
7371
|
fileType: fileType.value,
|
|
7363
7372
|
pageNum: pageNum.value,
|
|
7364
7373
|
pageSize: pageSize.value
|
|
7365
7374
|
}));
|
|
7366
|
-
if (((
|
|
7375
|
+
if (((_e = [0, 200]) == null ? void 0 : _e.includes(+(res == null ? void 0 : res.code))) && (res == null ? void 0 : res.data)) {
|
|
7367
7376
|
datas.value = res == null ? void 0 : res.data;
|
|
7368
7377
|
refCRightApps.value.initCheckbox();
|
|
7369
7378
|
}
|
|
@@ -7616,7 +7625,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7616
7625
|
}, null, 8, ["visible", "src"])
|
|
7617
7626
|
], 64);
|
|
7618
7627
|
}
|
|
7619
|
-
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-6d3cc084"]]);
|
|
7620
7629
|
var index_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
7621
7630
|
const _sfc_main = vue.defineComponent({
|
|
7622
7631
|
name: "MaterialLibrary",
|
package/dist/index.esm.js
CHANGED
|
@@ -7275,11 +7275,20 @@ const _sfc_main$1 = defineComponent({
|
|
|
7275
7275
|
init(groupId.value);
|
|
7276
7276
|
};
|
|
7277
7277
|
const handlePreview = (item) => {
|
|
7278
|
-
if (item == null ? void 0 : item.
|
|
7279
|
-
|
|
7280
|
-
|
|
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
|
+
}
|
|
7281
7285
|
} else {
|
|
7282
|
-
|
|
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);
|
|
7283
7292
|
}
|
|
7284
7293
|
};
|
|
7285
7294
|
const downloadTxtFile = async (fileUrl, fileName2) => {
|
|
@@ -7348,21 +7357,21 @@ const _sfc_main$1 = defineComponent({
|
|
|
7348
7357
|
emit("group:init");
|
|
7349
7358
|
};
|
|
7350
7359
|
const init = async (id) => {
|
|
7351
|
-
var _a2, _b2, _c;
|
|
7360
|
+
var _a2, _b2, _c, _d, _e;
|
|
7352
7361
|
try {
|
|
7353
7362
|
groupId.value = id;
|
|
7354
7363
|
loading.value = true;
|
|
7355
|
-
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
const res = await ((
|
|
7364
|
+
pageNum.value = 1;
|
|
7365
|
+
(_a2 = refCRightMenus.value) == null ? void 0 : _a2.resetCurrent();
|
|
7366
|
+
(_b2 = refCRightApps.value) == null ? void 0 : _b2.resetCurrent();
|
|
7367
|
+
const res = await ((_d = (_c = deepConfig.value) == null ? void 0 : _c.apis) == null ? void 0 : _d.getFileList({
|
|
7359
7368
|
groupId: groupId.value,
|
|
7360
7369
|
fileName: fileName.value,
|
|
7361
7370
|
fileType: fileType.value,
|
|
7362
7371
|
pageNum: pageNum.value,
|
|
7363
7372
|
pageSize: pageSize.value
|
|
7364
7373
|
}));
|
|
7365
|
-
if (((
|
|
7374
|
+
if (((_e = [0, 200]) == null ? void 0 : _e.includes(+(res == null ? void 0 : res.code))) && (res == null ? void 0 : res.data)) {
|
|
7366
7375
|
datas.value = res == null ? void 0 : res.data;
|
|
7367
7376
|
refCRightApps.value.initCheckbox();
|
|
7368
7377
|
}
|
|
@@ -7615,7 +7624,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7615
7624
|
}, null, 8, ["visible", "src"])
|
|
7616
7625
|
], 64);
|
|
7617
7626
|
}
|
|
7618
|
-
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-6d3cc084"]]);
|
|
7619
7628
|
var index_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
7620
7629
|
const _sfc_main = defineComponent({
|
|
7621
7630
|
name: "MaterialLibrary",
|