mgacn-commonsdk 1.3.2 → 1.3.3
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/mgacn-commonsdk.js +358 -346
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/mgacn-commonsdk.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Plus as
|
|
1
|
+
import { Plus as it, Delete as ot, CircleCloseFilled as ut, Document as ct, Close as dt, CircleClose as ze, CircleCheck as pt, ArrowUp as ft, ArrowDown as ht } from "@element-plus/icons-vue";
|
|
2
2
|
import { ElMessage as G, ElMessageBox as Ee } from "element-plus";
|
|
3
3
|
import mt from "cropperjs";
|
|
4
4
|
import * as Pe from "ali-oss";
|
|
5
|
-
import { g as gt, _ as
|
|
5
|
+
import { g as gt, _ as ae, o as yt, k as je, t as vt, l as bt, m as Ke, F as _t, n as wt, p as Ct, q as kt, r as Ut, u as St } from "./FilePreview-BfYgqJbP.js";
|
|
6
6
|
import { i as cl, j as dl, c as pl, v as fl, w as hl, b as ml, x as gl, y as yl, a as vl, s as bl, z as _l } from "./FilePreview-BfYgqJbP.js";
|
|
7
|
-
import { resolveComponent as
|
|
7
|
+
import { resolveComponent as $, openBlock as d, createElementBlock as y, createElementVNode as C, toDisplayString as B, createCommentVNode as V, createTextVNode as q, Fragment as ee, renderList as ne, normalizeStyle as fe, normalizeClass as W, createVNode as S, withCtx as N, withModifiers as ye, withDirectives as ue, vShow as ce, createBlock as D, computed as ve, ref as A, watch as le, onMounted as be, reactive as Te, nextTick as X, onBeforeUnmount as Se, withKeys as Be, unref as de, renderSlot as oe, mergeProps as De, createSlots as xt } from "vue";
|
|
8
8
|
const Ft = Pe.default ?? Pe, We = "__MGACN_COMMONSDK_OSS_URL__";
|
|
9
|
-
function
|
|
9
|
+
function Lt(e = "") {
|
|
10
10
|
globalThis[We] = String(e || "").replace(/\/$/, "");
|
|
11
11
|
}
|
|
12
12
|
function Ye() {
|
|
@@ -15,7 +15,7 @@ function Ye() {
|
|
|
15
15
|
function Oe(e) {
|
|
16
16
|
return String(e).padStart(2, "0");
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Nt() {
|
|
19
19
|
const e = /* @__PURE__ */ new Date();
|
|
20
20
|
return `${e.getFullYear()}${Oe(e.getMonth() + 1)}${Oe(e.getDate())}`;
|
|
21
21
|
}
|
|
@@ -27,28 +27,28 @@ function qe(e = 10) {
|
|
|
27
27
|
return n;
|
|
28
28
|
}
|
|
29
29
|
function xe(e = "portal_cms") {
|
|
30
|
-
return `${e}/${
|
|
30
|
+
return `${e}/${Nt()}/`;
|
|
31
31
|
}
|
|
32
32
|
function Ge(e) {
|
|
33
33
|
return gt().getOssSts(e);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
const t = e.accessKeyId || e.AccessKeyId || e.accessKeyID || "", n = e.accessKeySecret || e.AccessKeySecret || "", a = e.securityToken || e.SecurityToken || e.stsToken || e.token || "",
|
|
37
|
-
let
|
|
38
|
-
|
|
39
|
-
const p = e.region || (
|
|
35
|
+
function $t(e = {}) {
|
|
36
|
+
const t = e.accessKeyId || e.AccessKeyId || e.accessKeyID || "", n = e.accessKeySecret || e.AccessKeySecret || "", a = e.securityToken || e.SecurityToken || e.stsToken || e.token || "", l = e.bucketName || e.bucket || e.BucketName || "";
|
|
37
|
+
let i = String(e.endPoint || e.endpoint || e.EndPoint || "").replace(/^https?:\/\//i, "").replace(/\/$/, "");
|
|
38
|
+
l && i.startsWith(`${l}.`) && (i = i.slice(l.length + 1));
|
|
39
|
+
const p = e.region || (i.startsWith("oss-") ? i.replace(/\.aliyuncs\.com.*$/i, "") : ""), m = String(e.ossUrl || e.domain || e.cdnDomain || "").replace(/\/$/, ""), _ = l && i ? `https://${l}.${i}` : Ye();
|
|
40
40
|
return {
|
|
41
41
|
accessKeyId: t,
|
|
42
42
|
accessKeySecret: n,
|
|
43
43
|
securityToken: a,
|
|
44
|
-
bucketName:
|
|
45
|
-
endPoint:
|
|
44
|
+
bucketName: l,
|
|
45
|
+
endPoint: i,
|
|
46
46
|
region: p,
|
|
47
47
|
ossUrl: m || _
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
async function Fe(e = {}) {
|
|
51
|
-
const { dir: t, foldName: n, getOss: a, ossinfo:
|
|
51
|
+
const { dir: t, foldName: n, getOss: a, ossinfo: l } = e, i = t || xe(n || "portal_cms"), p = l || (typeof a == "function" ? await a(i) : await Ge(i)), m = $t(p || {});
|
|
52
52
|
if (!m.accessKeyId || !m.accessKeySecret || !m.bucketName)
|
|
53
53
|
throw new Error("[mgacn-commonsdk] 获取 OSS STS 失败:凭证字段不完整");
|
|
54
54
|
if (!m.securityToken)
|
|
@@ -63,15 +63,15 @@ async function Fe(e = {}) {
|
|
|
63
63
|
};
|
|
64
64
|
m.region && (_.region = m.region), m.endPoint && (_.endpoint = m.endPoint);
|
|
65
65
|
const w = new Ft(_);
|
|
66
|
-
return w.options.ossUrl = m.ossUrl || Ye(), w.options.uploadDir =
|
|
66
|
+
return w.options.ossUrl = m.ossUrl || Ye(), w.options.uploadDir = i, w;
|
|
67
67
|
}
|
|
68
68
|
async function Xe(e = {}) {
|
|
69
69
|
var J, Q;
|
|
70
|
-
const { client: t, file: n, dir: a, foldName:
|
|
70
|
+
const { client: t, file: n, dir: a, foldName: l, fileName: i, onProgress: p } = e;
|
|
71
71
|
if (!n)
|
|
72
72
|
throw new Error("[mgacn-commonsdk] uploadToOss 缺少 file");
|
|
73
|
-
const m = t || await Fe({ dir: a, foldName:
|
|
74
|
-
let w =
|
|
73
|
+
const m = t || await Fe({ dir: a, foldName: l }), _ = a || m.options.uploadDir || xe(l);
|
|
74
|
+
let w = i;
|
|
75
75
|
if (!w) {
|
|
76
76
|
const z = n.name || "file", g = z.lastIndexOf("."), b = g > -1 ? z.slice(g) : "";
|
|
77
77
|
w = `${_}${qe(10)}${b}`;
|
|
@@ -99,8 +99,8 @@ async function Xe(e = {}) {
|
|
|
99
99
|
} catch {
|
|
100
100
|
F(0.01), c = await u(!1);
|
|
101
101
|
}
|
|
102
|
-
const
|
|
103
|
-
if (
|
|
102
|
+
const L = ((J = c == null ? void 0 : c.res) == null ? void 0 : J.statusCode) ?? ((Q = c == null ? void 0 : c.res) == null ? void 0 : Q.status);
|
|
103
|
+
if (L && L !== 200)
|
|
104
104
|
throw new Error("[mgacn-commonsdk] 上传失败");
|
|
105
105
|
F(1);
|
|
106
106
|
const M = (m.options.ossUrl || "").replace(/\/$/, ""), H = M ? `${M}/${w}` : w;
|
|
@@ -123,12 +123,12 @@ function Mt(e = "", t = "") {
|
|
|
123
123
|
if (!/^https?:\/\//i.test(n)) return n.replace(/^\//, "");
|
|
124
124
|
try {
|
|
125
125
|
const a = new URL(n);
|
|
126
|
-
let
|
|
126
|
+
let l = decodeURIComponent(a.pathname.replace(/^\//, ""));
|
|
127
127
|
if (t) {
|
|
128
|
-
const
|
|
129
|
-
n.startsWith(`${
|
|
128
|
+
const i = String(t).replace(/\/$/, "");
|
|
129
|
+
n.startsWith(`${i}/`) && (l = decodeURIComponent(n.slice(i.length + 1).split("?")[0]));
|
|
130
130
|
}
|
|
131
|
-
return
|
|
131
|
+
return l.split("?")[0];
|
|
132
132
|
} catch {
|
|
133
133
|
return "";
|
|
134
134
|
}
|
|
@@ -188,7 +188,7 @@ function Bt(e = "") {
|
|
|
188
188
|
const Dt = {
|
|
189
189
|
name: "MgImageUpload",
|
|
190
190
|
mixins: [Je],
|
|
191
|
-
components: { CircleCloseFilled: ut, Delete:
|
|
191
|
+
components: { CircleCloseFilled: ut, Delete: ot, Plus: it },
|
|
192
192
|
props: {
|
|
193
193
|
/** v-model 统一为 string[];入参兼容 string / string[] */
|
|
194
194
|
modelValue: { type: [Array, String], default: () => [] },
|
|
@@ -259,18 +259,18 @@ const Dt = {
|
|
|
259
259
|
modelValue: {
|
|
260
260
|
immediate: !0,
|
|
261
261
|
handler(e) {
|
|
262
|
-
var
|
|
263
|
-
if ((
|
|
262
|
+
var i;
|
|
263
|
+
if ((i = this.initFileList) != null && i.length) return;
|
|
264
264
|
const t = Pt(e), n = this.successUrls;
|
|
265
265
|
if (t.length === n.length && t.every((p, m) => p === n[m]))
|
|
266
266
|
return;
|
|
267
267
|
const a = new Map(
|
|
268
268
|
this.fileList.map((p) => [p.url, p.previewUrl]).filter(([p]) => p)
|
|
269
|
-
),
|
|
269
|
+
), l = Ie(t).map((p) => ({
|
|
270
270
|
...p,
|
|
271
271
|
previewUrl: a.get(p.url) || ""
|
|
272
272
|
}));
|
|
273
|
-
this.replaceList(
|
|
273
|
+
this.replaceList(l), this.ensureSignedPreviews();
|
|
274
274
|
}
|
|
275
275
|
},
|
|
276
276
|
cropImageUrl(e) {
|
|
@@ -360,13 +360,13 @@ const Dt = {
|
|
|
360
360
|
G.error(`文件数量不超过${this.fileNum}个`);
|
|
361
361
|
return;
|
|
362
362
|
}
|
|
363
|
-
const
|
|
363
|
+
const l = [], i = [];
|
|
364
364
|
if (t.forEach((p) => {
|
|
365
|
-
this.acceptList.includes(Bt(p.name)) ?
|
|
366
|
-
}),
|
|
367
|
-
const p =
|
|
365
|
+
this.acceptList.includes(Bt(p.name)) ? l.push(p) : i.push(p);
|
|
366
|
+
}), i.length) {
|
|
367
|
+
const p = i.map((m) => m.name).join(",");
|
|
368
368
|
Ee.confirm(
|
|
369
|
-
`已过滤以下 ${
|
|
369
|
+
`已过滤以下 ${i.length} 个不符合要求的文件:<br/><p style="color:#f56c6c;font-size:12px;">${p}</p><br/>只接受:${this.acceptList.join("/")}`,
|
|
370
370
|
"提示",
|
|
371
371
|
{
|
|
372
372
|
confirmButtonText: "确认",
|
|
@@ -377,12 +377,12 @@ const Dt = {
|
|
|
377
377
|
).catch(() => {
|
|
378
378
|
});
|
|
379
379
|
}
|
|
380
|
-
if (
|
|
380
|
+
if (l.length) {
|
|
381
381
|
if (this.isCropper) {
|
|
382
|
-
this.openCropper(
|
|
382
|
+
this.openCropper(l[0]);
|
|
383
383
|
return;
|
|
384
384
|
}
|
|
385
|
-
this.startUpload(
|
|
385
|
+
this.startUpload(l);
|
|
386
386
|
}
|
|
387
387
|
},
|
|
388
388
|
openCropper(e) {
|
|
@@ -409,21 +409,21 @@ const Dt = {
|
|
|
409
409
|
G.error(`「${a.name}」超出 ${this.maxFileSize}MB 限制`);
|
|
410
410
|
return;
|
|
411
411
|
}
|
|
412
|
-
const
|
|
412
|
+
const l = URL.createObjectURL(a), i = {
|
|
413
413
|
uid: Qe(),
|
|
414
|
-
url:
|
|
415
|
-
previewUrl:
|
|
414
|
+
url: l,
|
|
415
|
+
previewUrl: l,
|
|
416
416
|
status: "uploading",
|
|
417
417
|
percent: 0,
|
|
418
418
|
raw: a
|
|
419
419
|
};
|
|
420
|
-
this.fileList.push(
|
|
420
|
+
this.fileList.push(i), n.push(this.uploadOne(i));
|
|
421
421
|
}), Promise.all(n);
|
|
422
422
|
},
|
|
423
423
|
async uploadOne(e) {
|
|
424
424
|
const t = e.previewUrl, n = (a) => {
|
|
425
|
-
const
|
|
426
|
-
e.percent =
|
|
425
|
+
const l = Math.min(100, Math.max(0, Number(a) || 0));
|
|
426
|
+
e.percent = l, this.$emit("progress", l, e.raw);
|
|
427
427
|
};
|
|
428
428
|
this.activeUploadCount += 1, this.$emit("update:uploading", !0);
|
|
429
429
|
try {
|
|
@@ -472,9 +472,9 @@ const Dt = {
|
|
|
472
472
|
this.handleBack(), this.$nextTick(() => this.startUpload([t]));
|
|
473
473
|
},
|
|
474
474
|
base64ToFile(e) {
|
|
475
|
-
const [t, n] = e.split(","), a = t.match(/:(.*?);/)[1],
|
|
476
|
-
for (let m = 0; m <
|
|
477
|
-
return new File([p], `${Date.now()}.${
|
|
475
|
+
const [t, n] = e.split(","), a = t.match(/:(.*?);/)[1], l = a.split("/")[1], i = atob(n), p = new Uint8Array(i.length);
|
|
476
|
+
for (let m = 0; m < i.length; m++) p[m] = i.charCodeAt(m);
|
|
477
|
+
return new File([p], `${Date.now()}.${l}`, { type: a });
|
|
478
478
|
},
|
|
479
479
|
handleBack() {
|
|
480
480
|
this.cropImageUrl = "", this.dialogVisible = !1;
|
|
@@ -500,26 +500,26 @@ const Dt = {
|
|
|
500
500
|
key: 0,
|
|
501
501
|
class: "btn-box btn-box--rotate"
|
|
502
502
|
}, Jt = { class: "btn-box" };
|
|
503
|
-
function Qt(e, t, n, a,
|
|
504
|
-
const p =
|
|
503
|
+
function Qt(e, t, n, a, l, i) {
|
|
504
|
+
const p = $("el-image"), m = $("el-progress"), _ = $("CircleCloseFilled"), w = $("el-icon"), F = $("Delete"), P = $("Plus"), f = $("el-button"), c = $("el-dialog");
|
|
505
505
|
return d(), y("div", Ot, [
|
|
506
506
|
C("input", {
|
|
507
507
|
ref: "fileInput",
|
|
508
508
|
type: "file",
|
|
509
509
|
class: "file-input",
|
|
510
|
-
multiple:
|
|
510
|
+
multiple: i.multiple,
|
|
511
511
|
accept: n.accept,
|
|
512
|
-
onChange: t[0] || (t[0] = (...u) =>
|
|
512
|
+
onChange: t[0] || (t[0] = (...u) => i.onFileChange && i.onFileChange(...u))
|
|
513
513
|
}, null, 40, Vt),
|
|
514
514
|
n.greyTips ? (d(), y("div", It, [
|
|
515
515
|
n.otherTips ? (d(), y("div", At, B(n.otherTips), 1)) : V("", !0),
|
|
516
516
|
q(" " + B(n.greyTips), 1)
|
|
517
517
|
])) : V("", !0),
|
|
518
518
|
C("div", Ht, [
|
|
519
|
-
(d(!0), y(ee, null, ne(
|
|
519
|
+
(d(!0), y(ee, null, ne(l.fileList, (u, L) => (d(), y("div", {
|
|
520
520
|
key: u.uid,
|
|
521
521
|
class: W(["image-box", [`is-${u.status}`]]),
|
|
522
|
-
style:
|
|
522
|
+
style: fe(n.imageStyle)
|
|
523
523
|
}, [
|
|
524
524
|
S(p, {
|
|
525
525
|
src: u.previewUrl || u.url,
|
|
@@ -543,7 +543,7 @@ function Qt(e, t, n, a, s, o) {
|
|
|
543
543
|
class: "fail-icon",
|
|
544
544
|
size: 16
|
|
545
545
|
}, {
|
|
546
|
-
default:
|
|
546
|
+
default: N(() => [
|
|
547
547
|
S(_)
|
|
548
548
|
]),
|
|
549
549
|
_: 1
|
|
@@ -553,9 +553,9 @@ function Qt(e, t, n, a, s, o) {
|
|
|
553
553
|
class: "remove-icon",
|
|
554
554
|
size: 14,
|
|
555
555
|
title: "删除",
|
|
556
|
-
onClick: ye((M) =>
|
|
556
|
+
onClick: ye((M) => i.removeImg(L), ["stop"])
|
|
557
557
|
}, {
|
|
558
|
-
default:
|
|
558
|
+
default: N(() => [
|
|
559
559
|
S(F)
|
|
560
560
|
]),
|
|
561
561
|
_: 1
|
|
@@ -563,63 +563,63 @@ function Qt(e, t, n, a, s, o) {
|
|
|
563
563
|
])) : (d(), y("div", {
|
|
564
564
|
key: 2,
|
|
565
565
|
class: "status-mask is-success",
|
|
566
|
-
onClick: (M) =>
|
|
566
|
+
onClick: (M) => i.removeImg(L)
|
|
567
567
|
}, [
|
|
568
568
|
S(w, {
|
|
569
569
|
class: "remove-icon",
|
|
570
570
|
size: 16
|
|
571
571
|
}, {
|
|
572
|
-
default:
|
|
572
|
+
default: N(() => [
|
|
573
573
|
S(F)
|
|
574
574
|
]),
|
|
575
575
|
_: 1
|
|
576
576
|
})
|
|
577
577
|
], 8, Wt))
|
|
578
578
|
], 6))), 128)),
|
|
579
|
-
|
|
579
|
+
ue(C("div", {
|
|
580
580
|
class: "image-box upload-btn",
|
|
581
|
-
style:
|
|
582
|
-
onClick: t[1] || (t[1] = (...u) =>
|
|
581
|
+
style: fe(n.imageStyle),
|
|
582
|
+
onClick: t[1] || (t[1] = (...u) => i.handleUpload && i.handleUpload(...u))
|
|
583
583
|
}, [
|
|
584
584
|
S(w, {
|
|
585
585
|
class: "icon",
|
|
586
586
|
size: 14
|
|
587
587
|
}, {
|
|
588
|
-
default:
|
|
588
|
+
default: N(() => [
|
|
589
589
|
S(P)
|
|
590
590
|
]),
|
|
591
591
|
_: 1
|
|
592
592
|
}),
|
|
593
593
|
t[6] || (t[6] = C("div", null, "上传图片", -1))
|
|
594
594
|
], 4), [
|
|
595
|
-
[
|
|
595
|
+
[ce, i.showUploadBtn]
|
|
596
596
|
])
|
|
597
597
|
]),
|
|
598
598
|
S(c, {
|
|
599
|
-
modelValue:
|
|
600
|
-
"onUpdate:modelValue": t[4] || (t[4] = (u) =>
|
|
599
|
+
modelValue: l.dialogVisible,
|
|
600
|
+
"onUpdate:modelValue": t[4] || (t[4] = (u) => l.dialogVisible = u),
|
|
601
601
|
title: "裁剪图片",
|
|
602
602
|
width: "650px",
|
|
603
603
|
top: "5vh",
|
|
604
604
|
"append-to-body": "",
|
|
605
605
|
class: "mg-image-upload-dialog",
|
|
606
606
|
"close-on-click-modal": !1,
|
|
607
|
-
onClose:
|
|
607
|
+
onClose: i.handleBack
|
|
608
608
|
}, {
|
|
609
|
-
footer:
|
|
609
|
+
footer: N(() => [
|
|
610
610
|
n.isDegree ? (d(), y("div", Xt, [
|
|
611
611
|
S(f, {
|
|
612
|
-
onClick: t[2] || (t[2] = (u) =>
|
|
612
|
+
onClick: t[2] || (t[2] = (u) => i.rotate(-n.degree))
|
|
613
613
|
}, {
|
|
614
|
-
default:
|
|
614
|
+
default: N(() => [...t[7] || (t[7] = [
|
|
615
615
|
q("向左旋转", -1)
|
|
616
616
|
])]),
|
|
617
617
|
_: 1
|
|
618
618
|
}),
|
|
619
619
|
S(f, {
|
|
620
|
-
onClick: t[3] || (t[3] = (u) =>
|
|
620
|
+
onClick: t[3] || (t[3] = (u) => i.rotate(n.degree))
|
|
621
621
|
}, {
|
|
622
|
-
default:
|
|
622
|
+
default: N(() => [...t[8] || (t[8] = [
|
|
623
623
|
q("向右旋转", -1)
|
|
624
624
|
])]),
|
|
625
625
|
_: 1
|
|
@@ -628,43 +628,43 @@ function Qt(e, t, n, a, s, o) {
|
|
|
628
628
|
C("div", Jt, [
|
|
629
629
|
S(f, {
|
|
630
630
|
type: "primary",
|
|
631
|
-
onClick:
|
|
631
|
+
onClick: i.openFilePicker
|
|
632
632
|
}, {
|
|
633
|
-
default:
|
|
634
|
-
q(B(
|
|
633
|
+
default: N(() => [
|
|
634
|
+
q(B(l.cropImageUrl ? "重新上传" : "点击上传"), 1)
|
|
635
635
|
]),
|
|
636
636
|
_: 1
|
|
637
637
|
}, 8, ["onClick"]),
|
|
638
638
|
S(f, {
|
|
639
639
|
type: "primary",
|
|
640
|
-
onClick:
|
|
640
|
+
onClick: i.confirmCrop
|
|
641
641
|
}, {
|
|
642
|
-
default:
|
|
642
|
+
default: N(() => [...t[9] || (t[9] = [
|
|
643
643
|
q("确定", -1)
|
|
644
644
|
])]),
|
|
645
645
|
_: 1
|
|
646
646
|
}, 8, ["onClick"])
|
|
647
647
|
])
|
|
648
648
|
]),
|
|
649
|
-
default:
|
|
649
|
+
default: N(() => [
|
|
650
650
|
C("div", Yt, [
|
|
651
|
-
|
|
651
|
+
ue(C("img", {
|
|
652
652
|
ref: "cropImage",
|
|
653
|
-
src:
|
|
653
|
+
src: l.cropImageUrl,
|
|
654
654
|
class: "cropper-img"
|
|
655
655
|
}, null, 8, qt), [
|
|
656
|
-
[
|
|
656
|
+
[ce, l.cropImageUrl]
|
|
657
657
|
]),
|
|
658
|
-
|
|
658
|
+
l.cropImageUrl ? V("", !0) : (d(), y("div", Gt, "请选择图片后进行裁剪"))
|
|
659
659
|
])
|
|
660
660
|
]),
|
|
661
661
|
_: 1
|
|
662
662
|
}, 8, ["modelValue", "onClose"])
|
|
663
663
|
]);
|
|
664
664
|
}
|
|
665
|
-
const Zt = /* @__PURE__ */
|
|
665
|
+
const Zt = /* @__PURE__ */ ae(Dt, [["render", Qt], ["__scopeId", "data-v-68531340"]]), en = ".mp4,.mov,.jpg,.jpeg,.m3u8,.png,.m4v,.doc,.docx,.xls,.xlsx,.pdf";
|
|
666
666
|
let Ae = 0;
|
|
667
|
-
function
|
|
667
|
+
function Le() {
|
|
668
668
|
return Ae += 1, `mg-file-${Date.now()}-${Ae}`;
|
|
669
669
|
}
|
|
670
670
|
function tn(e) {
|
|
@@ -674,21 +674,21 @@ function nn(e) {
|
|
|
674
674
|
return Array.isArray(e) ? e.map((t) => {
|
|
675
675
|
if (!t) return null;
|
|
676
676
|
if (typeof t == "string")
|
|
677
|
-
return { fileName:
|
|
677
|
+
return { fileName: se(t), fileUrl: t };
|
|
678
678
|
const n = t.fileUrl || t.url || "";
|
|
679
679
|
return n ? {
|
|
680
|
-
fileName: t.fileName || t.name ||
|
|
680
|
+
fileName: t.fileName || t.name || se(n),
|
|
681
681
|
fileUrl: n
|
|
682
682
|
} : null;
|
|
683
683
|
}).filter(Boolean) : [];
|
|
684
684
|
}
|
|
685
685
|
function ln(e = [], t = []) {
|
|
686
686
|
return e.length !== t.length ? !1 : e.every((n, a) => {
|
|
687
|
-
const
|
|
688
|
-
return n.fileUrl ===
|
|
687
|
+
const l = t[a];
|
|
688
|
+
return n.fileUrl === l.fileUrl && n.fileName === l.fileName;
|
|
689
689
|
});
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function se(e = "") {
|
|
692
692
|
try {
|
|
693
693
|
return decodeURIComponent(String(e).split("?")[0]).split("/").filter(Boolean).pop() || "file";
|
|
694
694
|
} catch {
|
|
@@ -697,8 +697,8 @@ function fe(e = "") {
|
|
|
697
697
|
}
|
|
698
698
|
function He(e) {
|
|
699
699
|
return e.map((t) => ({
|
|
700
|
-
uid:
|
|
701
|
-
name:
|
|
700
|
+
uid: Le(),
|
|
701
|
+
name: se(t),
|
|
702
702
|
url: t,
|
|
703
703
|
status: "success",
|
|
704
704
|
percent: 100,
|
|
@@ -707,8 +707,8 @@ function He(e) {
|
|
|
707
707
|
}
|
|
708
708
|
function sn(e = []) {
|
|
709
709
|
return e.map((t) => ({
|
|
710
|
-
uid:
|
|
711
|
-
name: t.fileName ||
|
|
710
|
+
uid: Le(),
|
|
711
|
+
name: t.fileName || se(t.fileUrl),
|
|
712
712
|
url: t.fileUrl,
|
|
713
713
|
status: "success",
|
|
714
714
|
percent: 100,
|
|
@@ -757,7 +757,9 @@ const rn = {
|
|
|
757
757
|
data() {
|
|
758
758
|
return {
|
|
759
759
|
fileList: [],
|
|
760
|
-
activeUploadCount: 0
|
|
760
|
+
activeUploadCount: 0,
|
|
761
|
+
/** 已成功文件。批量上传时父组件会先回写较短列表,不能用它覆盖这份记录 */
|
|
762
|
+
settledFiles: []
|
|
761
763
|
};
|
|
762
764
|
},
|
|
763
765
|
computed: {
|
|
@@ -805,15 +807,19 @@ const rn = {
|
|
|
805
807
|
immediate: !0,
|
|
806
808
|
handler(e) {
|
|
807
809
|
var a;
|
|
808
|
-
if ((a = this.initFileList) != null && a.length)
|
|
810
|
+
if ((a = this.initFileList) != null && a.length || this.activeUploadCount > 0 || this.fileList.some((l) => l.status === "uploading"))
|
|
811
|
+
return;
|
|
809
812
|
if (this.valueFormat === "file") {
|
|
810
|
-
const
|
|
811
|
-
if (ln(
|
|
812
|
-
this.fileList = sn(
|
|
813
|
+
const l = nn(e);
|
|
814
|
+
if (ln(l, this.settledFiles)) return;
|
|
815
|
+
this.settledFiles = l.map((i) => ({ ...i })), this.fileList = sn(this.settledFiles);
|
|
813
816
|
return;
|
|
814
817
|
}
|
|
815
818
|
const t = tn(e), n = this.successUrls;
|
|
816
|
-
t.length === n.length && t.every((
|
|
819
|
+
t.length === n.length && t.every((l, i) => l === n[i]) || (this.settledFiles = t.map((l) => ({
|
|
820
|
+
fileName: se(l),
|
|
821
|
+
fileUrl: l
|
|
822
|
+
})), this.fileList = He(t));
|
|
817
823
|
}
|
|
818
824
|
}
|
|
819
825
|
},
|
|
@@ -822,9 +828,15 @@ const rn = {
|
|
|
822
828
|
return this.hasPendingUpload;
|
|
823
829
|
},
|
|
824
830
|
emitFile() {
|
|
825
|
-
const e = this.valueFormat === "file" ? this.
|
|
831
|
+
const e = this.valueFormat === "file" ? this.settledFiles.map((t) => ({ ...t })) : this.settledFiles.map((t) => t.fileUrl);
|
|
826
832
|
this.$emit("update:modelValue", e), this.$emit("sendFile", e);
|
|
827
833
|
},
|
|
834
|
+
rememberSettled(e, t) {
|
|
835
|
+
t && (this.settledFiles.some((n) => n.fileUrl === t) || this.settledFiles.length >= this.fileNum || this.settledFiles.push({
|
|
836
|
+
fileName: e || se(t),
|
|
837
|
+
fileUrl: t
|
|
838
|
+
}));
|
|
839
|
+
},
|
|
828
840
|
openFilePicker() {
|
|
829
841
|
const e = this.$refs.fileInput;
|
|
830
842
|
!e || this.disabled || (e.value = "", e.click());
|
|
@@ -850,13 +862,13 @@ const rn = {
|
|
|
850
862
|
G.error(`文件数量不超过${this.fileNum}个`);
|
|
851
863
|
return;
|
|
852
864
|
}
|
|
853
|
-
const a = [],
|
|
854
|
-
if (t.forEach((
|
|
855
|
-
this.acceptList.includes(an(
|
|
856
|
-
}),
|
|
857
|
-
const
|
|
865
|
+
const a = [], l = [];
|
|
866
|
+
if (t.forEach((i) => {
|
|
867
|
+
this.acceptList.includes(an(i.name)) ? a.push(i) : l.push(i);
|
|
868
|
+
}), l.length) {
|
|
869
|
+
const i = l.map((p) => p.name).join(",");
|
|
858
870
|
Ee.confirm(
|
|
859
|
-
`已过滤以下 ${
|
|
871
|
+
`已过滤以下 ${l.length} 个不符合要求的文件:<br/><p style="color:#f56c6c;font-size:12px;">${i}</p><br/>只接受:${this.acceptList.join("/")}`,
|
|
860
872
|
"提示",
|
|
861
873
|
{
|
|
862
874
|
confirmButtonText: "确认",
|
|
@@ -870,22 +882,22 @@ const rn = {
|
|
|
870
882
|
a.length && this.startUpload(a);
|
|
871
883
|
},
|
|
872
884
|
startUpload(e) {
|
|
873
|
-
(this.resetFilelist || this.fileNum === 1) && (this.fileList = []);
|
|
885
|
+
(this.resetFilelist || this.fileNum === 1) && (this.fileList = [], this.settledFiles = []);
|
|
874
886
|
const t = this.maxFileSize * 1024 * 1024, n = [];
|
|
875
887
|
return e.forEach((a) => {
|
|
876
888
|
if (a.size > t) {
|
|
877
889
|
G.error(`「${a.name}」超出 ${this.maxFileSize}MB 限制`);
|
|
878
890
|
return;
|
|
879
891
|
}
|
|
880
|
-
const
|
|
881
|
-
uid:
|
|
892
|
+
const l = {
|
|
893
|
+
uid: Le(),
|
|
882
894
|
name: a.name,
|
|
883
895
|
url: "",
|
|
884
896
|
status: "uploading",
|
|
885
897
|
percent: 0,
|
|
886
898
|
raw: a
|
|
887
899
|
};
|
|
888
|
-
this.fileList.push(
|
|
900
|
+
this.fileList.push(l), n.push(this.uploadOne(l));
|
|
889
901
|
}), Promise.all(n);
|
|
890
902
|
},
|
|
891
903
|
async uploadOne(e) {
|
|
@@ -901,9 +913,9 @@ const rn = {
|
|
|
901
913
|
dir: this.getDir(),
|
|
902
914
|
onProgress: t
|
|
903
915
|
});
|
|
904
|
-
e.url = n.url, e.name = e.name ||
|
|
916
|
+
e.url = n.url, e.name = e.name || se(n.url), e.status = "success", t(100);
|
|
905
917
|
const a = e.raw;
|
|
906
|
-
e.raw = null, this.activeUploadCount = Math.max(0, this.activeUploadCount - 1), this.$emit("update:uploading", this.activeUploadCount > 0), this
|
|
918
|
+
e.raw = null, this.fileList.some((l) => l === e || l.uid === e.uid) || this.fileList.push(e), this.rememberSettled(e.name, e.url), this.emitFile(), this.activeUploadCount = Math.max(0, this.activeUploadCount - 1), this.$emit("update:uploading", this.activeUploadCount > 0), this.$emit("success", n, { ...e, raw: a });
|
|
907
919
|
} catch (n) {
|
|
908
920
|
e.status = "fail", t(0), this.activeUploadCount = Math.max(0, this.activeUploadCount - 1), this.$emit("update:uploading", this.activeUploadCount > 0), G.error((n == null ? void 0 : n.message) || "上传失败"), this.$emit("error", n, e);
|
|
909
921
|
}
|
|
@@ -916,7 +928,7 @@ const rn = {
|
|
|
916
928
|
},
|
|
917
929
|
removeFile(e) {
|
|
918
930
|
const t = this.fileList[e];
|
|
919
|
-
!t || t.status === "uploading" || (this.fileList.splice(e, 1), this.emitFile());
|
|
931
|
+
!t || t.status === "uploading" || (this.fileList.splice(e, 1), t.url && (this.settledFiles = this.settledFiles.filter((n) => n.fileUrl !== t.url)), this.emitFile());
|
|
920
932
|
}
|
|
921
933
|
}
|
|
922
934
|
}, on = { class: "mg-file-upload" }, un = ["multiple", "accept", "disabled"], cn = {
|
|
@@ -929,32 +941,32 @@ const rn = {
|
|
|
929
941
|
key: 0,
|
|
930
942
|
class: "mg-file-item__percent"
|
|
931
943
|
}, gn = ["onClick"];
|
|
932
|
-
function yn(e, t, n, a,
|
|
933
|
-
const p =
|
|
944
|
+
function yn(e, t, n, a, l, i) {
|
|
945
|
+
const p = $("el-button"), m = $("Document"), _ = $("el-icon"), w = $("CircleCheck"), F = $("CircleClose"), P = $("Close"), f = $("el-progress");
|
|
934
946
|
return d(), y("div", on, [
|
|
935
947
|
C("input", {
|
|
936
948
|
ref: "fileInput",
|
|
937
949
|
type: "file",
|
|
938
950
|
class: "file-input",
|
|
939
|
-
multiple:
|
|
951
|
+
multiple: i.multiple,
|
|
940
952
|
accept: n.accept,
|
|
941
953
|
disabled: n.disabled,
|
|
942
|
-
onChange: t[0] || (t[0] = (...c) =>
|
|
954
|
+
onChange: t[0] || (t[0] = (...c) => i.onFileChange && i.onFileChange(...c))
|
|
943
955
|
}, null, 40, un),
|
|
944
956
|
n.showButton ? (d(), D(p, {
|
|
945
957
|
key: 0,
|
|
946
958
|
type: "primary",
|
|
947
|
-
disabled: n.disabled || !
|
|
948
|
-
onClick:
|
|
959
|
+
disabled: n.disabled || !i.showUploadBtn,
|
|
960
|
+
onClick: i.handleUpload
|
|
949
961
|
}, {
|
|
950
|
-
default:
|
|
962
|
+
default: N(() => [
|
|
951
963
|
q(B(n.buttonText), 1)
|
|
952
964
|
]),
|
|
953
965
|
_: 1
|
|
954
966
|
}, 8, ["disabled", "onClick"])) : V("", !0),
|
|
955
|
-
|
|
967
|
+
i.tipText ? (d(), y("div", cn, B(i.tipText), 1)) : V("", !0),
|
|
956
968
|
n.showFileList ? (d(), y("ul", dn, [
|
|
957
|
-
(d(!0), y(ee, null, ne(
|
|
969
|
+
(d(!0), y(ee, null, ne(l.fileList, (c, u) => (d(), y("li", {
|
|
958
970
|
key: c.uid,
|
|
959
971
|
class: W(["mg-file-item", [`is-${c.status}`]])
|
|
960
972
|
}, [
|
|
@@ -964,10 +976,10 @@ function yn(e, t, n, a, s, o) {
|
|
|
964
976
|
href: c.url || void 0,
|
|
965
977
|
target: c.url ? "_blank" : void 0,
|
|
966
978
|
rel: "noopener noreferrer",
|
|
967
|
-
onClick: ye((
|
|
979
|
+
onClick: ye((L) => i.onFileClick(c), ["prevent"])
|
|
968
980
|
}, [
|
|
969
981
|
S(_, { class: "mg-file-item__doc" }, {
|
|
970
|
-
default:
|
|
982
|
+
default: N(() => [
|
|
971
983
|
S(m)
|
|
972
984
|
]),
|
|
973
985
|
_: 1
|
|
@@ -981,7 +993,7 @@ function yn(e, t, n, a, s, o) {
|
|
|
981
993
|
key: 1,
|
|
982
994
|
class: "mg-file-item__status is-success"
|
|
983
995
|
}, {
|
|
984
|
-
default:
|
|
996
|
+
default: N(() => [
|
|
985
997
|
S(w)
|
|
986
998
|
]),
|
|
987
999
|
_: 1
|
|
@@ -989,7 +1001,7 @@ function yn(e, t, n, a, s, o) {
|
|
|
989
1001
|
key: 2,
|
|
990
1002
|
class: "mg-file-item__status is-fail"
|
|
991
1003
|
}, {
|
|
992
|
-
default:
|
|
1004
|
+
default: N(() => [
|
|
993
1005
|
S(F)
|
|
994
1006
|
]),
|
|
995
1007
|
_: 1
|
|
@@ -999,10 +1011,10 @@ function yn(e, t, n, a, s, o) {
|
|
|
999
1011
|
type: "button",
|
|
1000
1012
|
class: "mg-file-item__remove",
|
|
1001
1013
|
title: "删除",
|
|
1002
|
-
onClick: ye((
|
|
1014
|
+
onClick: ye((L) => i.removeFile(u), ["stop"])
|
|
1003
1015
|
}, [
|
|
1004
1016
|
S(_, { size: 14 }, {
|
|
1005
|
-
default:
|
|
1017
|
+
default: N(() => [
|
|
1006
1018
|
S(P)
|
|
1007
1019
|
]),
|
|
1008
1020
|
_: 1
|
|
@@ -1021,7 +1033,7 @@ function yn(e, t, n, a, s, o) {
|
|
|
1021
1033
|
])) : V("", !0)
|
|
1022
1034
|
]);
|
|
1023
1035
|
}
|
|
1024
|
-
const vn = /* @__PURE__ */
|
|
1036
|
+
const vn = /* @__PURE__ */ ae(rn, [["render", yn], ["__scopeId", "data-v-226ee184"]]), bn = {
|
|
1025
1037
|
__name: "DateRangePicker",
|
|
1026
1038
|
props: {
|
|
1027
1039
|
start: {
|
|
@@ -1053,16 +1065,16 @@ const vn = /* @__PURE__ */ se(rn, [["render", yn], ["__scopeId", "data-v-732652b
|
|
|
1053
1065
|
emits: ["update:start", "update:end", "change"],
|
|
1054
1066
|
setup(e, { emit: t }) {
|
|
1055
1067
|
const n = t, a = e;
|
|
1056
|
-
function
|
|
1068
|
+
function l(f) {
|
|
1057
1069
|
const c = new Date(f);
|
|
1058
1070
|
return c.setHours(0, 0, 0, 0), c;
|
|
1059
1071
|
}
|
|
1060
|
-
function
|
|
1072
|
+
function i(f) {
|
|
1061
1073
|
const c = new Date(f);
|
|
1062
1074
|
return c.setHours(23, 59, 59, 0), c;
|
|
1063
1075
|
}
|
|
1064
1076
|
function p(f) {
|
|
1065
|
-
const c =
|
|
1077
|
+
const c = i(/* @__PURE__ */ new Date()), u = l(/* @__PURE__ */ new Date());
|
|
1066
1078
|
return f(u), [u, c];
|
|
1067
1079
|
}
|
|
1068
1080
|
const m = [
|
|
@@ -1109,10 +1121,10 @@ const vn = /* @__PURE__ */ se(rn, [["render", yn], ["__scopeId", "data-v-732652b
|
|
|
1109
1121
|
c && u ? (n("update:start", c), n("update:end", u)) : (n("update:start", ""), n("update:end", "")), n("change");
|
|
1110
1122
|
}
|
|
1111
1123
|
return (f, c) => {
|
|
1112
|
-
const u =
|
|
1124
|
+
const u = $("el-date-picker");
|
|
1113
1125
|
return d(), D(u, {
|
|
1114
1126
|
modelValue: w.value,
|
|
1115
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
1127
|
+
"onUpdate:modelValue": c[0] || (c[0] = (L) => w.value = L),
|
|
1116
1128
|
type: e.type,
|
|
1117
1129
|
"range-separator": "至",
|
|
1118
1130
|
"start-placeholder": e.title ? `${e.title} 开始` : "开始",
|
|
@@ -1126,7 +1138,7 @@ const vn = /* @__PURE__ */ se(rn, [["render", yn], ["__scopeId", "data-v-732652b
|
|
|
1126
1138
|
}, null, 8, ["modelValue", "type", "start-placeholder", "value-format", "default-time", "shortcuts", "clearable"]);
|
|
1127
1139
|
};
|
|
1128
1140
|
}
|
|
1129
|
-
}, Ze = /* @__PURE__ */
|
|
1141
|
+
}, Ze = /* @__PURE__ */ ae(bn, [["__scopeId", "data-v-0dfa12ab"]]), _n = { class: "common-search__body" }, wn = { class: "common-search__control-wrap" }, Cn = ["onKeyup"], kn = { class: "common-search__range-sep" }, Un = {
|
|
1130
1142
|
key: 5,
|
|
1131
1143
|
class: "common-search__range"
|
|
1132
1144
|
}, Sn = {
|
|
@@ -1140,226 +1152,226 @@ const vn = /* @__PURE__ */ se(rn, [["render", yn], ["__scopeId", "data-v-732652b
|
|
|
1140
1152
|
},
|
|
1141
1153
|
emits: ["change", "search", "reset", "update:modelValue"],
|
|
1142
1154
|
setup(e, { emit: t }) {
|
|
1143
|
-
const n = e, a = t,
|
|
1155
|
+
const n = e, a = t, l = A({}), i = Te({}), p = Te({});
|
|
1144
1156
|
let m = !1;
|
|
1145
|
-
function _(
|
|
1146
|
-
return JSON.stringify(
|
|
1157
|
+
function _(s, o) {
|
|
1158
|
+
return JSON.stringify(s ?? {}) === JSON.stringify(o ?? {});
|
|
1147
1159
|
}
|
|
1148
|
-
const w = A(null), F = A(!1), P = A(!1), f = A(0), c = A(0), u = A(0),
|
|
1160
|
+
const w = A(null), F = A(!1), P = A(!1), f = A(0), c = A(0), u = A(0), L = A(null);
|
|
1149
1161
|
let M = null, H = !1, O = !1;
|
|
1150
1162
|
const J = ve(() => {
|
|
1151
|
-
if (!(!P.value ||
|
|
1163
|
+
if (!(!P.value || L.value == null))
|
|
1152
1164
|
return {
|
|
1153
|
-
maxHeight: `${
|
|
1165
|
+
maxHeight: `${L.value}px`,
|
|
1154
1166
|
overflow: "hidden"
|
|
1155
1167
|
};
|
|
1156
1168
|
});
|
|
1157
|
-
function Q(
|
|
1158
|
-
return String(
|
|
1169
|
+
function Q(s = {}) {
|
|
1170
|
+
return String(s.label || s.title || "").trim();
|
|
1159
1171
|
}
|
|
1160
|
-
function z(
|
|
1161
|
-
return String(
|
|
1172
|
+
function z(s = {}) {
|
|
1173
|
+
return String(s.tip || Q(s) || "").trim();
|
|
1162
1174
|
}
|
|
1163
|
-
function g(
|
|
1164
|
-
const
|
|
1165
|
-
return !
|
|
1175
|
+
function g(s = "") {
|
|
1176
|
+
const o = String(s).trim();
|
|
1177
|
+
return !o || (/* @__PURE__ */ new Set(["全部", "或选择", "请输入或选择"])).has(o) ? "" : o.replace(/^请(输入|选择)/, "").trim() || o;
|
|
1166
1178
|
}
|
|
1167
|
-
function b(
|
|
1168
|
-
if (
|
|
1169
|
-
const U = g(
|
|
1179
|
+
function b(s = {}, o = "") {
|
|
1180
|
+
if (s.placeholder != null && s.placeholder !== "") {
|
|
1181
|
+
const U = g(s.placeholder);
|
|
1170
1182
|
if (U) return U;
|
|
1171
1183
|
}
|
|
1172
|
-
const h = Q(
|
|
1173
|
-
return h || g(
|
|
1184
|
+
const h = Q(s);
|
|
1185
|
+
return h || g(o) || o;
|
|
1174
1186
|
}
|
|
1175
|
-
function T(
|
|
1176
|
-
const h =
|
|
1187
|
+
function T(s = {}, o = "min") {
|
|
1188
|
+
const h = o === "min" ? s.minPlaceholder : s.maxPlaceholder, k = Q(s), U = o === "min" ? "最小值" : "最大值", R = /* @__PURE__ */ new Set(["最小", "最大", "最小值", "最大值"]);
|
|
1177
1189
|
return h != null && h !== "" ? k && R.has(String(h).trim()) ? `${k}${h}` : h : k ? `${k}${U}` : U;
|
|
1178
1190
|
}
|
|
1179
1191
|
le(
|
|
1180
1192
|
() => n.modelValue,
|
|
1181
|
-
(
|
|
1182
|
-
_(
|
|
1193
|
+
(s) => {
|
|
1194
|
+
_(s, l.value) || (m = !0, l.value = { ...s || {} }, X(() => {
|
|
1183
1195
|
m = !1;
|
|
1184
1196
|
}));
|
|
1185
1197
|
},
|
|
1186
1198
|
{ deep: !0, immediate: !0 }
|
|
1187
1199
|
), le(
|
|
1188
|
-
|
|
1200
|
+
l,
|
|
1189
1201
|
() => {
|
|
1190
|
-
m || a("update:modelValue", { ...
|
|
1202
|
+
m || a("update:modelValue", { ...l.value });
|
|
1191
1203
|
},
|
|
1192
1204
|
{ deep: !0 }
|
|
1193
1205
|
), le(
|
|
1194
1206
|
() => n.itemList,
|
|
1195
1207
|
() => {
|
|
1196
|
-
F.value = !1, f.value = 0, X(() =>
|
|
1208
|
+
F.value = !1, f.value = 0, X(() => ie());
|
|
1197
1209
|
},
|
|
1198
1210
|
{ deep: !0 }
|
|
1199
1211
|
), be(() => {
|
|
1200
|
-
X(() =>
|
|
1201
|
-
!H && !O &&
|
|
1212
|
+
X(() => ie()), typeof ResizeObserver < "u" && (M = new ResizeObserver(() => {
|
|
1213
|
+
!H && !O && ie();
|
|
1202
1214
|
}), w.value && M.observe(w.value)), window.addEventListener("resize", I);
|
|
1203
1215
|
}), Se(() => {
|
|
1204
1216
|
M == null || M.disconnect(), window.removeEventListener("resize", I);
|
|
1205
1217
|
});
|
|
1206
1218
|
function I() {
|
|
1207
|
-
!H && !O &&
|
|
1219
|
+
!H && !O && ie();
|
|
1208
1220
|
}
|
|
1209
|
-
function Z(
|
|
1210
|
-
const
|
|
1211
|
-
if (!
|
|
1212
|
-
const h = f.value > 0 ? f.value :
|
|
1213
|
-
return
|
|
1221
|
+
function Z(s) {
|
|
1222
|
+
const o = n.itemList.length;
|
|
1223
|
+
if (!o) return !1;
|
|
1224
|
+
const h = f.value > 0 ? f.value : o;
|
|
1225
|
+
return s === Math.min(h, o) - 1;
|
|
1214
1226
|
}
|
|
1215
|
-
function x(
|
|
1216
|
-
let U = 1, R =
|
|
1217
|
-
for (let j =
|
|
1218
|
-
const K =
|
|
1227
|
+
function x(s, o, h, k) {
|
|
1228
|
+
let U = 1, R = s[o].offsetWidth;
|
|
1229
|
+
for (let j = o + 1; j < s.length; j += 1) {
|
|
1230
|
+
const K = s[j].offsetWidth;
|
|
1219
1231
|
R + k + K > h ? (U += 1, R = K) : R += k + K;
|
|
1220
1232
|
}
|
|
1221
1233
|
return U;
|
|
1222
1234
|
}
|
|
1223
|
-
function
|
|
1235
|
+
function re(s, o, h, k) {
|
|
1224
1236
|
let U = 0, R = 0;
|
|
1225
|
-
for (let j = 0; j <
|
|
1226
|
-
const K =
|
|
1227
|
-
if (te + k + h <=
|
|
1237
|
+
for (let j = 0; j < s.length; j += 1) {
|
|
1238
|
+
const K = s[j].offsetWidth, te = U === 0 ? K : U + k + K;
|
|
1239
|
+
if (te + k + h <= o)
|
|
1228
1240
|
U = te, R = j + 1;
|
|
1229
1241
|
else
|
|
1230
1242
|
break;
|
|
1231
1243
|
}
|
|
1232
1244
|
return R || 1;
|
|
1233
1245
|
}
|
|
1234
|
-
function E(
|
|
1235
|
-
const
|
|
1236
|
-
if (!
|
|
1237
|
-
if (
|
|
1246
|
+
function E(s) {
|
|
1247
|
+
const o = s.type === "number-range" || s.type === "numberRange", h = 360;
|
|
1248
|
+
if (!s.width) {
|
|
1249
|
+
if (o) {
|
|
1238
1250
|
const R = `${h}px`;
|
|
1239
1251
|
return { width: R, minWidth: R };
|
|
1240
1252
|
}
|
|
1241
1253
|
return;
|
|
1242
1254
|
}
|
|
1243
|
-
let k = typeof
|
|
1244
|
-
const U = typeof
|
|
1255
|
+
let k = typeof s.width == "number" ? s.width : parseInt(String(s.width), 10);
|
|
1256
|
+
const U = typeof s.width == "number" || Number.isFinite(k) ? `${k}px` : s.width;
|
|
1245
1257
|
return { width: U, minWidth: U };
|
|
1246
1258
|
}
|
|
1247
|
-
function
|
|
1248
|
-
if (
|
|
1249
|
-
if (typeof
|
|
1250
|
-
const h =
|
|
1251
|
-
return typeof h == "string" ?
|
|
1259
|
+
function Ne(s, o) {
|
|
1260
|
+
if (s == null) return "";
|
|
1261
|
+
if (typeof s != "object") return String(s);
|
|
1262
|
+
const h = o.optionsLabel || "label";
|
|
1263
|
+
return typeof h == "string" ? s[h] : Array.isArray(h) ? `${s[h[0]]}(${s[h[1]]})` : s.label;
|
|
1252
1264
|
}
|
|
1253
|
-
function he(
|
|
1254
|
-
return
|
|
1265
|
+
function he(s, o) {
|
|
1266
|
+
return s == null || typeof s != "object" ? s : s[o.optionsValue || "value"];
|
|
1255
1267
|
}
|
|
1256
|
-
function _e(
|
|
1268
|
+
function _e(s) {
|
|
1257
1269
|
return {
|
|
1258
|
-
startKey:
|
|
1259
|
-
endKey:
|
|
1270
|
+
startKey: s.start || `${s.prop}Min`,
|
|
1271
|
+
endKey: s.end || `${s.prop}Max`
|
|
1260
1272
|
};
|
|
1261
1273
|
}
|
|
1262
|
-
function
|
|
1263
|
-
if (
|
|
1264
|
-
const h = je(
|
|
1274
|
+
function $e(s, o = 2) {
|
|
1275
|
+
if (s == null || s === "") return;
|
|
1276
|
+
const h = je(s, o);
|
|
1265
1277
|
if (h == null || h === "") return;
|
|
1266
1278
|
const k = Number(String(h).replace(/,/g, ""));
|
|
1267
1279
|
return Number.isFinite(k) ? k : void 0;
|
|
1268
1280
|
}
|
|
1269
|
-
function we(
|
|
1270
|
-
const { startKey:
|
|
1271
|
-
let U =
|
|
1272
|
-
U != null && R != null && U > R && ([U, R] = [R, U]),
|
|
1281
|
+
function we(s) {
|
|
1282
|
+
const { startKey: o, endKey: h } = _e(s), k = s.precision ?? 2;
|
|
1283
|
+
let U = $e(l.value[o], k), R = $e(l.value[h], k);
|
|
1284
|
+
U != null && R != null && U > R && ([U, R] = [R, U]), l.value[o] = U, l.value[h] = R;
|
|
1273
1285
|
}
|
|
1274
|
-
function tt(
|
|
1275
|
-
we(
|
|
1286
|
+
function tt(s) {
|
|
1287
|
+
we(s), Y();
|
|
1276
1288
|
}
|
|
1277
|
-
function nt(
|
|
1278
|
-
const { startKey:
|
|
1289
|
+
function nt(s) {
|
|
1290
|
+
const { startKey: o, endKey: h } = _e(s), k = l.value[o], U = l.value[h];
|
|
1279
1291
|
return k != null && k !== "" || U != null && U !== "";
|
|
1280
1292
|
}
|
|
1281
|
-
function lt(
|
|
1282
|
-
if (
|
|
1283
|
-
const { startKey:
|
|
1284
|
-
|
|
1293
|
+
function lt(s) {
|
|
1294
|
+
if (s.disabled) return;
|
|
1295
|
+
const { startKey: o, endKey: h } = _e(s);
|
|
1296
|
+
l.value[o] = void 0, l.value[h] = void 0, Y();
|
|
1285
1297
|
}
|
|
1286
|
-
async function st(
|
|
1287
|
-
if (typeof
|
|
1288
|
-
p[
|
|
1298
|
+
async function st(s, o) {
|
|
1299
|
+
if (typeof s.remoteMethod == "function") {
|
|
1300
|
+
p[s.prop] = !0;
|
|
1289
1301
|
try {
|
|
1290
|
-
const h = await
|
|
1291
|
-
|
|
1302
|
+
const h = await s.remoteMethod(o);
|
|
1303
|
+
i[s.prop] = Array.isArray(h) ? h : [];
|
|
1292
1304
|
} finally {
|
|
1293
|
-
p[
|
|
1305
|
+
p[s.prop] = !1;
|
|
1294
1306
|
}
|
|
1295
1307
|
}
|
|
1296
1308
|
}
|
|
1297
|
-
function Ce(
|
|
1298
|
-
const
|
|
1299
|
-
|
|
1300
|
-
const U =
|
|
1301
|
-
return
|
|
1309
|
+
function Ce(s) {
|
|
1310
|
+
const o = s.style.maxHeight, h = s.style.overflow, k = s.style.transition;
|
|
1311
|
+
s.style.transition = "none", s.style.maxHeight = "none", s.style.overflow = "visible";
|
|
1312
|
+
const U = s.scrollHeight;
|
|
1313
|
+
return s.style.maxHeight = o, s.style.overflow = h, s.offsetHeight, s.style.transition = k, U;
|
|
1302
1314
|
}
|
|
1303
|
-
function
|
|
1304
|
-
const
|
|
1305
|
-
if (!
|
|
1315
|
+
function ie() {
|
|
1316
|
+
const s = w.value;
|
|
1317
|
+
if (!s || H || O) return;
|
|
1306
1318
|
H = !0;
|
|
1307
|
-
const
|
|
1308
|
-
if (!h.length || !
|
|
1309
|
-
P.value = !1, c.value = 0, u.value = 0,
|
|
1319
|
+
const o = s.closest(".common-search"), h = Array.from(s.querySelectorAll(".common-search__field")), k = s.querySelector(".common-search__actions");
|
|
1320
|
+
if (!h.length || !o) {
|
|
1321
|
+
P.value = !1, c.value = 0, u.value = 0, L.value = null, f.value = 0, H = !1;
|
|
1310
1322
|
return;
|
|
1311
1323
|
}
|
|
1312
|
-
c.value = h[0].offsetHeight, u.value = Ce(
|
|
1313
|
-
const U = 16, R =
|
|
1324
|
+
c.value = h[0].offsetHeight, u.value = Ce(s);
|
|
1325
|
+
const U = 16, R = o.clientWidth, j = (k == null ? void 0 : k.offsetWidth) || 220, K = re(h, R, j, U);
|
|
1314
1326
|
let te = 1;
|
|
1315
1327
|
h.length > K && (te += x(h, K, R, U));
|
|
1316
|
-
const
|
|
1328
|
+
const pe = f.value;
|
|
1317
1329
|
f.value = K;
|
|
1318
1330
|
const r = te > 1, me = P.value;
|
|
1319
|
-
P.value = r, r ? F.value ?
|
|
1331
|
+
P.value = r, r ? F.value ? L.value = null : L.value = c.value : (F.value = !1, L.value = null), H = !1, (me !== r || pe !== K) && X(() => ie());
|
|
1320
1332
|
}
|
|
1321
1333
|
function at() {
|
|
1322
|
-
const
|
|
1323
|
-
if (!
|
|
1334
|
+
const s = w.value;
|
|
1335
|
+
if (!s || O) return;
|
|
1324
1336
|
O = !0;
|
|
1325
|
-
const
|
|
1337
|
+
const o = s.getBoundingClientRect().height || c.value;
|
|
1326
1338
|
if (F.value)
|
|
1327
|
-
|
|
1339
|
+
L.value = o || Ce(s), F.value = !1, requestAnimationFrame(() => {
|
|
1328
1340
|
requestAnimationFrame(() => {
|
|
1329
|
-
|
|
1341
|
+
L.value = c.value;
|
|
1330
1342
|
});
|
|
1331
1343
|
});
|
|
1332
1344
|
else {
|
|
1333
|
-
|
|
1334
|
-
const h = Ce(
|
|
1345
|
+
L.value = o;
|
|
1346
|
+
const h = Ce(s);
|
|
1335
1347
|
u.value = h, F.value = !0, requestAnimationFrame(() => {
|
|
1336
1348
|
requestAnimationFrame(() => {
|
|
1337
|
-
|
|
1349
|
+
L.value = Math.max(h, c.value || 0);
|
|
1338
1350
|
});
|
|
1339
1351
|
});
|
|
1340
1352
|
}
|
|
1341
1353
|
window.setTimeout(() => {
|
|
1342
|
-
O = !1, F.value && (
|
|
1354
|
+
O = !1, F.value && (L.value = null), ie();
|
|
1343
1355
|
}, 380);
|
|
1344
1356
|
}
|
|
1345
1357
|
function rt() {
|
|
1346
|
-
const
|
|
1347
|
-
return n.itemList.forEach((
|
|
1348
|
-
|
|
1349
|
-
}),
|
|
1358
|
+
const s = {};
|
|
1359
|
+
return n.itemList.forEach((o) => {
|
|
1360
|
+
o.type === "daterange" || o.type === "dateRange" ? (s[o.start || o.startProp] = void 0, s[o.end || o.endProp] = void 0) : o.type === "number-range" || o.type === "numberRange" ? (s[o.start || `${o.prop}Min`] = void 0, s[o.end || `${o.prop}Max`] = void 0) : o.multiple ? s[o.prop] = [] : o.prop && (s[o.prop] = void 0);
|
|
1361
|
+
}), s;
|
|
1350
1362
|
}
|
|
1351
1363
|
function Me() {
|
|
1352
|
-
a("update:modelValue", { ...
|
|
1364
|
+
a("update:modelValue", { ...l.value });
|
|
1353
1365
|
}
|
|
1354
1366
|
function Y() {
|
|
1355
|
-
Me(), a("change", { ...
|
|
1367
|
+
Me(), a("change", { ...l.value }), a("search", { ...l.value });
|
|
1356
1368
|
}
|
|
1357
1369
|
function Re() {
|
|
1358
|
-
|
|
1370
|
+
l.value = rt(), Me(), a("reset", { ...l.value }), a("change", { ...l.value });
|
|
1359
1371
|
}
|
|
1360
|
-
return (
|
|
1361
|
-
const h =
|
|
1362
|
-
return
|
|
1372
|
+
return (s, o) => {
|
|
1373
|
+
const h = $("el-input"), k = $("el-option"), U = $("el-select"), R = $("el-input-number"), j = $("el-icon"), K = $("el-date-picker"), te = $("el-tooltip"), pe = $("el-button");
|
|
1374
|
+
return ue((d(), y("div", {
|
|
1363
1375
|
class: W(["common-search", {
|
|
1364
1376
|
"is-single-row": !P.value,
|
|
1365
1377
|
"is-multi-row": P.value,
|
|
@@ -1372,14 +1384,14 @@ const vn = /* @__PURE__ */ se(rn, [["render", yn], ["__scopeId", "data-v-732652b
|
|
|
1372
1384
|
ref_key: "fieldsRef",
|
|
1373
1385
|
ref: w,
|
|
1374
1386
|
class: "common-search__fields",
|
|
1375
|
-
style:
|
|
1387
|
+
style: fe(J.value)
|
|
1376
1388
|
}, [
|
|
1377
1389
|
(d(!0), y(ee, null, ne(e.itemList, (r, me) => (d(), y(ee, {
|
|
1378
1390
|
key: r.prop || r.start || me
|
|
1379
1391
|
}, [
|
|
1380
1392
|
C("div", {
|
|
1381
1393
|
class: W(["common-search__field", [`is-${r.type}`, r.className]]),
|
|
1382
|
-
style:
|
|
1394
|
+
style: fe(E(r))
|
|
1383
1395
|
}, [
|
|
1384
1396
|
S(te, {
|
|
1385
1397
|
content: z(r),
|
|
@@ -1387,12 +1399,12 @@ const vn = /* @__PURE__ */ se(rn, [["render", yn], ["__scopeId", "data-v-732652b
|
|
|
1387
1399
|
placement: "top",
|
|
1388
1400
|
"show-after": 280
|
|
1389
1401
|
}, {
|
|
1390
|
-
default:
|
|
1402
|
+
default: N(() => [
|
|
1391
1403
|
C("div", wn, [
|
|
1392
1404
|
r.type === "input" || r.type === "text" ? (d(), D(h, {
|
|
1393
1405
|
key: 0,
|
|
1394
|
-
modelValue:
|
|
1395
|
-
"onUpdate:modelValue": (v) =>
|
|
1406
|
+
modelValue: l.value[r.prop],
|
|
1407
|
+
"onUpdate:modelValue": (v) => l.value[r.prop] = v,
|
|
1396
1408
|
modelModifiers: { trim: !0 },
|
|
1397
1409
|
clearable: "",
|
|
1398
1410
|
placeholder: b(r, "请输入"),
|
|
@@ -1403,8 +1415,8 @@ const vn = /* @__PURE__ */ se(rn, [["render", yn], ["__scopeId", "data-v-732652b
|
|
|
1403
1415
|
onClear: Y
|
|
1404
1416
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "maxlength", "disabled"])) : r.type === "select" ? (d(), D(U, {
|
|
1405
1417
|
key: 1,
|
|
1406
|
-
modelValue:
|
|
1407
|
-
"onUpdate:modelValue": (v) =>
|
|
1418
|
+
modelValue: l.value[r.prop],
|
|
1419
|
+
"onUpdate:modelValue": (v) => l.value[r.prop] = v,
|
|
1408
1420
|
placeholder: b(r, "请选择"),
|
|
1409
1421
|
clearable: "",
|
|
1410
1422
|
filterable: r.filterable !== !1,
|
|
@@ -1415,10 +1427,10 @@ const vn = /* @__PURE__ */ se(rn, [["render", yn], ["__scopeId", "data-v-732652b
|
|
|
1415
1427
|
class: "common-search__control",
|
|
1416
1428
|
onChange: Y
|
|
1417
1429
|
}, {
|
|
1418
|
-
default:
|
|
1430
|
+
default: N(() => [
|
|
1419
1431
|
(d(!0), y(ee, null, ne(r.options || [], (v, ke) => (d(), D(k, {
|
|
1420
1432
|
key: `${he(v, r)}-${ke}`,
|
|
1421
|
-
label:
|
|
1433
|
+
label: Ne(v, r),
|
|
1422
1434
|
value: he(v, r),
|
|
1423
1435
|
disabled: typeof v == "object" && (v == null ? void 0 : v.disabled)
|
|
1424
1436
|
}, null, 8, ["label", "value", "disabled"]))), 128))
|
|
@@ -1426,8 +1438,8 @@ const vn = /* @__PURE__ */ se(rn, [["render", yn], ["__scopeId", "data-v-732652b
|
|
|
1426
1438
|
_: 2
|
|
1427
1439
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "filterable", "multiple", "collapse-tags", "collapse-tags-tooltip", "disabled"])) : r.type === "remote-select" || r.type === "remoteSelect" ? (d(), D(U, {
|
|
1428
1440
|
key: 2,
|
|
1429
|
-
modelValue:
|
|
1430
|
-
"onUpdate:modelValue": (v) =>
|
|
1441
|
+
modelValue: l.value[r.prop],
|
|
1442
|
+
"onUpdate:modelValue": (v) => l.value[r.prop] = v,
|
|
1431
1443
|
placeholder: b(r, "请输入关键词搜索"),
|
|
1432
1444
|
clearable: "",
|
|
1433
1445
|
filterable: "",
|
|
@@ -1440,13 +1452,13 @@ const vn = /* @__PURE__ */ se(rn, [["render", yn], ["__scopeId", "data-v-732652b
|
|
|
1440
1452
|
loading: !!p[r.prop],
|
|
1441
1453
|
disabled: r.disabled,
|
|
1442
1454
|
class: "common-search__control",
|
|
1443
|
-
onClear: (v) =>
|
|
1455
|
+
onClear: (v) => i[r.prop] = [],
|
|
1444
1456
|
onChange: Y
|
|
1445
1457
|
}, {
|
|
1446
|
-
default:
|
|
1447
|
-
(d(!0), y(ee, null, ne(
|
|
1458
|
+
default: N(() => [
|
|
1459
|
+
(d(!0), y(ee, null, ne(i[r.prop] || r.options || [], (v, ke) => (d(), D(k, {
|
|
1448
1460
|
key: `${he(v, r)}-${ke}`,
|
|
1449
|
-
label:
|
|
1461
|
+
label: Ne(v, r),
|
|
1450
1462
|
value: he(v, r),
|
|
1451
1463
|
disabled: typeof v == "object" && (v == null ? void 0 : v.disabled)
|
|
1452
1464
|
}, null, 8, ["label", "value", "disabled"]))), 128))
|
|
@@ -1458,8 +1470,8 @@ const vn = /* @__PURE__ */ se(rn, [["render", yn], ["__scopeId", "data-v-732652b
|
|
|
1458
1470
|
onKeyup: Be((v) => tt(r), ["enter"])
|
|
1459
1471
|
}, [
|
|
1460
1472
|
S(R, {
|
|
1461
|
-
modelValue:
|
|
1462
|
-
"onUpdate:modelValue": (v) =>
|
|
1473
|
+
modelValue: l.value[r.start || `${r.prop}Min`],
|
|
1474
|
+
"onUpdate:modelValue": (v) => l.value[r.start || `${r.prop}Min`] = v,
|
|
1463
1475
|
controls: !1,
|
|
1464
1476
|
min: r.min,
|
|
1465
1477
|
max: r.max,
|
|
@@ -1470,8 +1482,8 @@ const vn = /* @__PURE__ */ se(rn, [["render", yn], ["__scopeId", "data-v-732652b
|
|
|
1470
1482
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "placeholder", "disabled", "onBlur"]),
|
|
1471
1483
|
C("span", kn, B(r.separator || "至"), 1),
|
|
1472
1484
|
S(R, {
|
|
1473
|
-
modelValue:
|
|
1474
|
-
"onUpdate:modelValue": (v) =>
|
|
1485
|
+
modelValue: l.value[r.end || `${r.prop}Max`],
|
|
1486
|
+
"onUpdate:modelValue": (v) => l.value[r.end || `${r.prop}Max`] = v,
|
|
1475
1487
|
controls: !1,
|
|
1476
1488
|
min: r.min,
|
|
1477
1489
|
max: r.max,
|
|
@@ -1483,19 +1495,19 @@ const vn = /* @__PURE__ */ se(rn, [["render", yn], ["__scopeId", "data-v-732652b
|
|
|
1483
1495
|
r.clearable !== !1 && nt(r) ? (d(), D(j, {
|
|
1484
1496
|
key: 0,
|
|
1485
1497
|
class: "common-search__range-clear",
|
|
1486
|
-
onMousedown:
|
|
1498
|
+
onMousedown: o[0] || (o[0] = ye(() => {
|
|
1487
1499
|
}, ["prevent"])),
|
|
1488
1500
|
onClick: (v) => lt(r)
|
|
1489
1501
|
}, {
|
|
1490
|
-
default:
|
|
1491
|
-
S(
|
|
1502
|
+
default: N(() => [
|
|
1503
|
+
S(de(ze))
|
|
1492
1504
|
]),
|
|
1493
1505
|
_: 1
|
|
1494
1506
|
}, 8, ["onClick"])) : V("", !0)
|
|
1495
1507
|
], 40, Cn)) : r.type === "date" ? (d(), D(K, {
|
|
1496
1508
|
key: 4,
|
|
1497
|
-
modelValue:
|
|
1498
|
-
"onUpdate:modelValue": (v) =>
|
|
1509
|
+
modelValue: l.value[r.prop],
|
|
1510
|
+
"onUpdate:modelValue": (v) => l.value[r.prop] = v,
|
|
1499
1511
|
type: r.dateType || "date",
|
|
1500
1512
|
placeholder: b(r, "年/月/日"),
|
|
1501
1513
|
"value-format": r.valueFormat || "YYYY-MM-DD",
|
|
@@ -1506,10 +1518,10 @@ const vn = /* @__PURE__ */ se(rn, [["render", yn], ["__scopeId", "data-v-732652b
|
|
|
1506
1518
|
onChange: Y
|
|
1507
1519
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "placeholder", "value-format", "format", "clearable", "disabled"])) : r.type === "daterange" || r.type === "dateRange" ? (d(), y("div", Un, [
|
|
1508
1520
|
S(Ze, {
|
|
1509
|
-
start:
|
|
1510
|
-
"onUpdate:start": (v) =>
|
|
1511
|
-
end:
|
|
1512
|
-
"onUpdate:end": (v) =>
|
|
1521
|
+
start: l.value[r.start || r.startProp],
|
|
1522
|
+
"onUpdate:start": (v) => l.value[r.start || r.startProp] = v,
|
|
1523
|
+
end: l.value[r.end || r.endProp],
|
|
1524
|
+
"onUpdate:end": (v) => l.value[r.end || r.endProp] = v,
|
|
1513
1525
|
title: r.label || r.title || "",
|
|
1514
1526
|
type: r.dateType || r.pickerType || "daterange",
|
|
1515
1527
|
"value-format": r.valueFormat || "YYYY-MM-DD HH:mm:ss",
|
|
@@ -1519,9 +1531,9 @@ const vn = /* @__PURE__ */ se(rn, [["render", yn], ["__scopeId", "data-v-732652b
|
|
|
1519
1531
|
"can-clearable": r.clearable !== !1,
|
|
1520
1532
|
onChange: Y
|
|
1521
1533
|
}, null, 8, ["start", "onUpdate:start", "end", "onUpdate:end", "title", "type", "value-format", "format", "show-shortcuts", "shortcuts", "can-clearable"])
|
|
1522
|
-
])) : oe(
|
|
1534
|
+
])) : oe(s.$slots, r.slotName || r.prop, {
|
|
1523
1535
|
item: r,
|
|
1524
|
-
form:
|
|
1536
|
+
form: l.value
|
|
1525
1537
|
}, void 0, !0, 6)
|
|
1526
1538
|
])
|
|
1527
1539
|
]),
|
|
@@ -1530,42 +1542,42 @@ const vn = /* @__PURE__ */ se(rn, [["render", yn], ["__scopeId", "data-v-732652b
|
|
|
1530
1542
|
], 6),
|
|
1531
1543
|
Z(me) ? (d(), y("div", Sn, [
|
|
1532
1544
|
C("div", xn, [
|
|
1533
|
-
oe(
|
|
1545
|
+
oe(s.$slots, "actions", {
|
|
1534
1546
|
search: Y,
|
|
1535
1547
|
reset: Re,
|
|
1536
|
-
form:
|
|
1548
|
+
form: l.value
|
|
1537
1549
|
}, () => [
|
|
1538
|
-
S(
|
|
1550
|
+
S(pe, {
|
|
1539
1551
|
class: "common-search__reset",
|
|
1540
1552
|
onClick: Re
|
|
1541
1553
|
}, {
|
|
1542
|
-
default:
|
|
1554
|
+
default: N(() => [...o[1] || (o[1] = [
|
|
1543
1555
|
q("重置", -1)
|
|
1544
1556
|
])]),
|
|
1545
1557
|
_: 1
|
|
1546
1558
|
}),
|
|
1547
|
-
S(
|
|
1559
|
+
S(pe, {
|
|
1548
1560
|
type: "primary",
|
|
1549
1561
|
class: "common-search__submit",
|
|
1550
1562
|
onClick: Y
|
|
1551
1563
|
}, {
|
|
1552
|
-
default:
|
|
1564
|
+
default: N(() => [...o[2] || (o[2] = [
|
|
1553
1565
|
q(" 搜索 ", -1)
|
|
1554
1566
|
])]),
|
|
1555
1567
|
_: 1
|
|
1556
1568
|
})
|
|
1557
1569
|
], !0),
|
|
1558
|
-
P.value ? (d(), D(
|
|
1570
|
+
P.value ? (d(), D(pe, {
|
|
1559
1571
|
key: 0,
|
|
1560
1572
|
link: "",
|
|
1561
1573
|
type: "primary",
|
|
1562
1574
|
onClick: at
|
|
1563
1575
|
}, {
|
|
1564
|
-
default:
|
|
1576
|
+
default: N(() => [
|
|
1565
1577
|
q(B(F.value ? "收起" : "展开") + " ", 1),
|
|
1566
1578
|
S(j, { class: "el-icon--right" }, {
|
|
1567
|
-
default:
|
|
1568
|
-
F.value ? (d(), D(
|
|
1579
|
+
default: N(() => [
|
|
1580
|
+
F.value ? (d(), D(de(ft), { key: 0 })) : (d(), D(de(ht), { key: 1 }))
|
|
1569
1581
|
]),
|
|
1570
1582
|
_: 1
|
|
1571
1583
|
})
|
|
@@ -1578,11 +1590,11 @@ const vn = /* @__PURE__ */ se(rn, [["render", yn], ["__scopeId", "data-v-732652b
|
|
|
1578
1590
|
], 4)
|
|
1579
1591
|
])
|
|
1580
1592
|
], 2)), [
|
|
1581
|
-
[
|
|
1593
|
+
[ce, e.itemList.length]
|
|
1582
1594
|
]);
|
|
1583
1595
|
};
|
|
1584
1596
|
}
|
|
1585
|
-
}),
|
|
1597
|
+
}), Ln = /* @__PURE__ */ ae(Fn, [["__scopeId", "data-v-006c1ace"]]), Nn = {
|
|
1586
1598
|
name: "MgOverflowHid",
|
|
1587
1599
|
props: {
|
|
1588
1600
|
label: String,
|
|
@@ -1605,43 +1617,43 @@ const vn = /* @__PURE__ */ se(rn, [["render", yn], ["__scopeId", "data-v-732652b
|
|
|
1605
1617
|
return n && n.length > t && (n = n.slice(0, t) + "..."), n;
|
|
1606
1618
|
}
|
|
1607
1619
|
}
|
|
1608
|
-
},
|
|
1609
|
-
function Dn(e, t, n, a,
|
|
1610
|
-
const p =
|
|
1611
|
-
return d(), y("div",
|
|
1620
|
+
}, $n = { class: "tableOverflowHid" }, Mn = ["innerHTML"], Rn = { class: "name-wrapper" }, Pn = ["innerHTML"], Tn = { key: 1 }, Bn = ["innerHTML"];
|
|
1621
|
+
function Dn(e, t, n, a, l, i) {
|
|
1622
|
+
const p = $("el-popover");
|
|
1623
|
+
return d(), y("div", $n, [
|
|
1612
1624
|
n.value && n.value.length > n.maxLength ? (d(), D(p, {
|
|
1613
1625
|
key: 0,
|
|
1614
1626
|
trigger: "hover",
|
|
1615
1627
|
placement: "bottom",
|
|
1616
1628
|
width: "400"
|
|
1617
1629
|
}, {
|
|
1618
|
-
reference:
|
|
1630
|
+
reference: N(() => [
|
|
1619
1631
|
C("div", Rn, [
|
|
1620
|
-
|
|
1632
|
+
ue(C("span", {
|
|
1621
1633
|
class: W(n.labelClassName)
|
|
1622
1634
|
}, B(n.label) + ":", 3), [
|
|
1623
|
-
[
|
|
1635
|
+
[ce, n.label]
|
|
1624
1636
|
]),
|
|
1625
1637
|
C("span", {
|
|
1626
1638
|
class: W(n.valueClassName),
|
|
1627
|
-
innerHTML:
|
|
1639
|
+
innerHTML: i.cutString(n.value, n.maxLength)
|
|
1628
1640
|
}, null, 10, Pn)
|
|
1629
1641
|
])
|
|
1630
1642
|
]),
|
|
1631
|
-
default:
|
|
1632
|
-
|
|
1643
|
+
default: N(() => [
|
|
1644
|
+
ue(C("span", {
|
|
1633
1645
|
class: W(n.labelClassName)
|
|
1634
1646
|
}, B(n.label) + ":", 3), [
|
|
1635
|
-
[
|
|
1647
|
+
[ce, n.label]
|
|
1636
1648
|
]),
|
|
1637
1649
|
C("span", { innerHTML: n.value }, null, 8, Mn)
|
|
1638
1650
|
]),
|
|
1639
1651
|
_: 1
|
|
1640
1652
|
})) : (d(), y("div", Tn, [
|
|
1641
|
-
|
|
1653
|
+
ue(C("span", {
|
|
1642
1654
|
class: W(n.labelClassName)
|
|
1643
1655
|
}, B(n.label) + ":", 3), [
|
|
1644
|
-
[
|
|
1656
|
+
[ce, n.label]
|
|
1645
1657
|
]),
|
|
1646
1658
|
C("span", {
|
|
1647
1659
|
class: W([n.valueClassName, "value"])
|
|
@@ -1651,7 +1663,7 @@ function Dn(e, t, n, a, s, o) {
|
|
|
1651
1663
|
]))
|
|
1652
1664
|
]);
|
|
1653
1665
|
}
|
|
1654
|
-
const et = /* @__PURE__ */
|
|
1666
|
+
const et = /* @__PURE__ */ ae(Nn, [["render", Dn], ["__scopeId", "data-v-ef86ea54"]]), On = { key: 0 }, Vn = { key: 1 }, In = {
|
|
1655
1667
|
key: 2,
|
|
1656
1668
|
class: "price-text"
|
|
1657
1669
|
}, An = {
|
|
@@ -1736,7 +1748,7 @@ const et = /* @__PURE__ */ se(Ln, [["render", Dn], ["__scopeId", "data-v-ef86ea5
|
|
|
1736
1748
|
},
|
|
1737
1749
|
emits: ["pageChange", "cellClick", "edit", "delete", "selectionChange"],
|
|
1738
1750
|
setup(e, { expose: t, emit: n }) {
|
|
1739
|
-
const a = e,
|
|
1751
|
+
const a = e, l = n, i = A(null), p = A(null), m = A(360);
|
|
1740
1752
|
let _ = null;
|
|
1741
1753
|
const w = ve(() => {
|
|
1742
1754
|
if (a.fillHeight)
|
|
@@ -1764,36 +1776,36 @@ const et = /* @__PURE__ */ se(Ln, [["render", Dn], ["__scopeId", "data-v-ef86ea5
|
|
|
1764
1776
|
const g = Math.max(120, Math.floor(p.value.clientHeight) - 2);
|
|
1765
1777
|
g > 0 && g !== m.value && (m.value = g, X(() => {
|
|
1766
1778
|
var b, T;
|
|
1767
|
-
return (T = (b =
|
|
1779
|
+
return (T = (b = i.value) == null ? void 0 : b.doLayout) == null ? void 0 : T.call(b);
|
|
1768
1780
|
}));
|
|
1769
1781
|
}
|
|
1770
|
-
function
|
|
1782
|
+
function L(g) {
|
|
1771
1783
|
var b;
|
|
1772
|
-
|
|
1784
|
+
l("pageChange", { page: (b = a.pagination) == null ? void 0 : b.page, limit: g });
|
|
1773
1785
|
}
|
|
1774
1786
|
function M(g) {
|
|
1775
1787
|
var b;
|
|
1776
|
-
|
|
1788
|
+
l("pageChange", { page: g, limit: (b = a.pagination) == null ? void 0 : b.limit });
|
|
1777
1789
|
}
|
|
1778
1790
|
function H(g, b, T, I) {
|
|
1779
|
-
|
|
1791
|
+
l("cellClick", g, b, T, I), a.canCellClick && (b == null ? void 0 : b.label) !== "操作" && window.getSelection().toString();
|
|
1780
1792
|
}
|
|
1781
1793
|
function O(g, b, T) {
|
|
1782
|
-
var Z, x,
|
|
1794
|
+
var Z, x, re;
|
|
1783
1795
|
if (!a.showSelection || (b == null ? void 0 : b.type) === "selection") return;
|
|
1784
1796
|
const I = T == null ? void 0 : T.target;
|
|
1785
|
-
(Z = I == null ? void 0 : I.closest) != null && Z.call(I, "a, button, .el-button, .el-checkbox, .link-btn, input, textarea") || typeof a.selectable == "function" && !a.selectable(g, 0) || (
|
|
1797
|
+
(Z = I == null ? void 0 : I.closest) != null && Z.call(I, "a, button, .el-button, .el-checkbox, .link-btn, input, textarea") || typeof a.selectable == "function" && !a.selectable(g, 0) || (re = (x = i.value) == null ? void 0 : x.toggleRowSelection) == null || re.call(x, g);
|
|
1786
1798
|
}
|
|
1787
1799
|
function J(g) {
|
|
1788
|
-
|
|
1800
|
+
l("selectionChange", g);
|
|
1789
1801
|
}
|
|
1790
1802
|
function Q() {
|
|
1791
1803
|
var g, b;
|
|
1792
|
-
(b = (g =
|
|
1804
|
+
(b = (g = i.value) == null ? void 0 : g.clearSelection) == null || b.call(g);
|
|
1793
1805
|
}
|
|
1794
1806
|
function z(g, b) {
|
|
1795
1807
|
var T, I;
|
|
1796
|
-
(I = (T =
|
|
1808
|
+
(I = (T = i.value) == null ? void 0 : T.toggleRowSelection) == null || I.call(T, g, b);
|
|
1797
1809
|
}
|
|
1798
1810
|
return t({ clearSelection: Q, toggleRowSelection: z }), be(() => {
|
|
1799
1811
|
!a.fillHeight || !p.value || (u(), _ = new ResizeObserver(() => {
|
|
@@ -1806,7 +1818,7 @@ const et = /* @__PURE__ */ se(Ln, [["render", Dn], ["__scopeId", "data-v-ef86ea5
|
|
|
1806
1818
|
() => {
|
|
1807
1819
|
X(() => {
|
|
1808
1820
|
var g, b;
|
|
1809
|
-
u(), (b = (g =
|
|
1821
|
+
u(), (b = (g = i.value) == null ? void 0 : g.doLayout) == null || b.call(g);
|
|
1810
1822
|
});
|
|
1811
1823
|
}
|
|
1812
1824
|
), le(
|
|
@@ -1819,7 +1831,7 @@ const et = /* @__PURE__ */ se(Ln, [["render", Dn], ["__scopeId", "data-v-ef86ea5
|
|
|
1819
1831
|
});
|
|
1820
1832
|
}
|
|
1821
1833
|
), (g, b) => {
|
|
1822
|
-
const T =
|
|
1834
|
+
const T = $("el-table-column"), I = $("el-table"), Z = $("el-pagination");
|
|
1823
1835
|
return d(), y("div", {
|
|
1824
1836
|
class: W(["common-table", { "is-fill-height": e.fillHeight }])
|
|
1825
1837
|
}, [
|
|
@@ -1830,7 +1842,7 @@ const et = /* @__PURE__ */ se(Ln, [["render", Dn], ["__scopeId", "data-v-ef86ea5
|
|
|
1830
1842
|
}, [
|
|
1831
1843
|
S(I, De({
|
|
1832
1844
|
ref_key: "tableRef",
|
|
1833
|
-
ref:
|
|
1845
|
+
ref: i,
|
|
1834
1846
|
data: e.dataList,
|
|
1835
1847
|
height: w.value,
|
|
1836
1848
|
class: { "common-pointer-table": e.canCellClick || e.showSelection }
|
|
@@ -1839,7 +1851,7 @@ const et = /* @__PURE__ */ se(Ln, [["render", Dn], ["__scopeId", "data-v-ef86ea5
|
|
|
1839
1851
|
onRowClick: O,
|
|
1840
1852
|
onSelectionChange: J
|
|
1841
1853
|
}), {
|
|
1842
|
-
default:
|
|
1854
|
+
default: N(() => [
|
|
1843
1855
|
e.showSelection ? (d(), D(T, {
|
|
1844
1856
|
key: 0,
|
|
1845
1857
|
type: "selection",
|
|
@@ -1856,19 +1868,19 @@ const et = /* @__PURE__ */ se(Ln, [["render", Dn], ["__scopeId", "data-v-ef86ea5
|
|
|
1856
1868
|
index: c,
|
|
1857
1869
|
align: "center"
|
|
1858
1870
|
}, null, 8, ["label", "width"])) : V("", !0),
|
|
1859
|
-
(d(!0), y(ee, null, ne(e.propList, (x,
|
|
1860
|
-
key: x.prop || x.slotName ||
|
|
1871
|
+
(d(!0), y(ee, null, ne(e.propList, (x, re) => (d(), D(T, De({
|
|
1872
|
+
key: x.prop || x.slotName || re
|
|
1861
1873
|
}, { ref_for: !0 }, f(x)), xt({ _: 2 }, [
|
|
1862
1874
|
x.headerSlotName ? {
|
|
1863
1875
|
name: "header",
|
|
1864
|
-
fn:
|
|
1876
|
+
fn: N(() => [
|
|
1865
1877
|
oe(g.$slots, x.headerSlotName, { column: x }, void 0, !0)
|
|
1866
1878
|
]),
|
|
1867
1879
|
key: "0"
|
|
1868
1880
|
} : void 0,
|
|
1869
1881
|
x.slotName ? {
|
|
1870
1882
|
name: "default",
|
|
1871
|
-
fn:
|
|
1883
|
+
fn: N((E) => [
|
|
1872
1884
|
x.slotName === "overtext" ? (d(), y("div", On, [
|
|
1873
1885
|
S(et, {
|
|
1874
1886
|
value: String(E.row[x.prop] ?? ""),
|
|
@@ -1881,12 +1893,12 @@ const et = /* @__PURE__ */ se(Ln, [["render", Dn], ["__scopeId", "data-v-ef86ea5
|
|
|
1881
1893
|
"whether-no": E.row[x.prop] == 0
|
|
1882
1894
|
})
|
|
1883
1895
|
}, B(E.row[x.prop] == 0 ? "否" : E.row[x.prop] == 1 ? "是" : ""), 3)
|
|
1884
|
-
])) : x.slotName === "price" ? (d(), y("div", In, B(
|
|
1896
|
+
])) : x.slotName === "price" ? (d(), y("div", In, B(de(je)(E.row[x.prop], 2)), 1)) : x.slotName === "rate" ? (d(), y("div", An, B(de(vt)(E.row[x.prop], 2, "toPercentText")), 1)) : x.slotName === "boldtext" ? (d(), y("div", Hn, B(E.row[x.prop]), 1)) : oe(g.$slots, x.slotName, {
|
|
1885
1897
|
row: E.row,
|
|
1886
1898
|
index: E.$index,
|
|
1887
1899
|
column: x
|
|
1888
1900
|
}, () => [
|
|
1889
|
-
q(B(
|
|
1901
|
+
q(B(de(bt)(E.row[x.prop])), 1)
|
|
1890
1902
|
], !0, 5)
|
|
1891
1903
|
]),
|
|
1892
1904
|
key: "1"
|
|
@@ -1909,14 +1921,14 @@ const et = /* @__PURE__ */ se(Ln, [["render", Dn], ["__scopeId", "data-v-ef86ea5
|
|
|
1909
1921
|
"page-sizes": e.pageSizes,
|
|
1910
1922
|
total: Number(e.pagination.total) || 0,
|
|
1911
1923
|
layout: e.paginationLayout,
|
|
1912
|
-
onSizeChange:
|
|
1924
|
+
onSizeChange: L,
|
|
1913
1925
|
onCurrentChange: M
|
|
1914
1926
|
}, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout"])
|
|
1915
1927
|
])) : V("", !0)
|
|
1916
1928
|
], 2);
|
|
1917
1929
|
};
|
|
1918
1930
|
}
|
|
1919
|
-
}), Kn = /* @__PURE__ */
|
|
1931
|
+
}), Kn = /* @__PURE__ */ ae(jn, [["__scopeId", "data-v-dd7169fd"]]), Wn = ["aria-checked", "disabled", "onClick"], Yn = { class: "segmented__label" }, qn = {
|
|
1920
1932
|
key: 0,
|
|
1921
1933
|
class: "segmented__badge"
|
|
1922
1934
|
}, Gn = {
|
|
@@ -1928,7 +1940,7 @@ const et = /* @__PURE__ */ se(Ln, [["render", Dn], ["__scopeId", "data-v-ef86ea5
|
|
|
1928
1940
|
},
|
|
1929
1941
|
emits: ["update:modelValue", "change"],
|
|
1930
1942
|
setup(e, { emit: t }) {
|
|
1931
|
-
const n = e, a = t,
|
|
1943
|
+
const n = e, a = t, l = A(null), i = A([]), p = A(!1), m = A({
|
|
1932
1944
|
width: "0px",
|
|
1933
1945
|
transform: "translateX(0px)"
|
|
1934
1946
|
});
|
|
@@ -1939,13 +1951,13 @@ const et = /* @__PURE__ */ se(Ln, [["render", Dn], ["__scopeId", "data-v-ef86ea5
|
|
|
1939
1951
|
function F(u) {
|
|
1940
1952
|
return u.count != null ? u.count : u.badge;
|
|
1941
1953
|
}
|
|
1942
|
-
function P(u,
|
|
1943
|
-
u && (
|
|
1954
|
+
function P(u, L) {
|
|
1955
|
+
u && (i.value[L] = u);
|
|
1944
1956
|
}
|
|
1945
1957
|
function f() {
|
|
1946
|
-
const u =
|
|
1958
|
+
const u = l.value;
|
|
1947
1959
|
if (!u) return;
|
|
1948
|
-
const
|
|
1960
|
+
const L = n.options.findIndex((J) => J.value === n.modelValue), M = i.value[L];
|
|
1949
1961
|
if (!M) {
|
|
1950
1962
|
m.value = { width: "0px", transform: "translateX(0px)" };
|
|
1951
1963
|
return;
|
|
@@ -1966,18 +1978,18 @@ const et = /* @__PURE__ */ se(Ln, [["render", Dn], ["__scopeId", "data-v-ef86ea5
|
|
|
1966
1978
|
},
|
|
1967
1979
|
{ deep: !0 }
|
|
1968
1980
|
), be(async () => {
|
|
1969
|
-
await X(), f(), typeof ResizeObserver < "u" &&
|
|
1981
|
+
await X(), f(), typeof ResizeObserver < "u" && l.value && (_ = new ResizeObserver(() => f()), _.observe(l.value));
|
|
1970
1982
|
}), Se(() => {
|
|
1971
1983
|
_ == null || _.disconnect(), _ = null;
|
|
1972
|
-
}), (u,
|
|
1984
|
+
}), (u, L) => (d(), y("div", {
|
|
1973
1985
|
ref_key: "rootRef",
|
|
1974
|
-
ref:
|
|
1986
|
+
ref: l,
|
|
1975
1987
|
class: "segmented",
|
|
1976
1988
|
role: "radiogroup"
|
|
1977
1989
|
}, [
|
|
1978
1990
|
C("div", {
|
|
1979
1991
|
class: W(["segmented__thumb", { "is-ready": p.value }]),
|
|
1980
|
-
style:
|
|
1992
|
+
style: fe(m.value)
|
|
1981
1993
|
}, null, 6),
|
|
1982
1994
|
(d(!0), y(ee, null, ne(e.options, (M, H) => (d(), y("button", {
|
|
1983
1995
|
key: String(M.value),
|
|
@@ -1995,7 +2007,7 @@ const et = /* @__PURE__ */ se(Ln, [["render", Dn], ["__scopeId", "data-v-ef86ea5
|
|
|
1995
2007
|
], 10, Wn))), 128))
|
|
1996
2008
|
], 512));
|
|
1997
2009
|
}
|
|
1998
|
-
}, Xn = /* @__PURE__ */
|
|
2010
|
+
}, Xn = /* @__PURE__ */ ae(Gn, [["__scopeId", "data-v-b7b0abe9"]]);
|
|
1999
2011
|
function Jn(e) {
|
|
2000
2012
|
return e == null || e === "" ? [] : Array.isArray(e) ? e.map((t) => String(t).trim()).filter(Boolean) : String(e).split(",").map((t) => t.trim()).filter(Boolean);
|
|
2001
2013
|
}
|
|
@@ -2011,10 +2023,10 @@ function Qn(e) {
|
|
|
2011
2023
|
e.parentNode.removeChild(e);
|
|
2012
2024
|
}
|
|
2013
2025
|
function Ue(e, t, n, a = !1) {
|
|
2014
|
-
const
|
|
2015
|
-
if (!
|
|
2016
|
-
let
|
|
2017
|
-
a && (
|
|
2026
|
+
const l = Jn(t.value);
|
|
2027
|
+
if (!l.length) return;
|
|
2028
|
+
let i = Ke(l, n);
|
|
2029
|
+
a && (i = !i), i || Qn(e);
|
|
2018
2030
|
}
|
|
2019
2031
|
function Zn(e) {
|
|
2020
2032
|
e.directive("hasPermission", {
|
|
@@ -2035,18 +2047,18 @@ const el = {
|
|
|
2035
2047
|
MgImageUpload: Zt,
|
|
2036
2048
|
MgFileUpload: vn,
|
|
2037
2049
|
MgFilePreview: _t,
|
|
2038
|
-
MgSearchForm:
|
|
2050
|
+
MgSearchForm: Ln,
|
|
2039
2051
|
MgDataTable: Kn,
|
|
2040
2052
|
MgDateRangePicker: Ze,
|
|
2041
2053
|
MgSegmentedControl: Xn,
|
|
2042
2054
|
MgOverflowHid: et
|
|
2043
2055
|
}, tl = (e, t = {}) => {
|
|
2044
|
-
Object.entries(el).forEach(([
|
|
2045
|
-
e.component(
|
|
2046
|
-
}), t.ossUrl &&
|
|
2056
|
+
Object.entries(el).forEach(([l, i]) => {
|
|
2057
|
+
e.component(i.name || l, i);
|
|
2058
|
+
}), t.ossUrl && Lt(t.ossUrl), typeof t.getPermissions == "function" && wt(t.getPermissions), Zn(e);
|
|
2047
2059
|
const n = Ct(t), a = kt(n);
|
|
2048
2060
|
Ut(n), St(a), e.config.globalProperties.$request = n, e.config.globalProperties.$api = a, e.config.globalProperties.$hasPermission = Ke;
|
|
2049
|
-
},
|
|
2061
|
+
}, il = {
|
|
2050
2062
|
install: tl,
|
|
2051
2063
|
version: "1.2.2"
|
|
2052
2064
|
};
|
|
@@ -2057,7 +2069,7 @@ export {
|
|
|
2057
2069
|
_t as FilePreview,
|
|
2058
2070
|
vn as FileUpload,
|
|
2059
2071
|
Zt as ImageUpload,
|
|
2060
|
-
|
|
2072
|
+
Ln as SearchForm,
|
|
2061
2073
|
Xn as SegmentedControl,
|
|
2062
2074
|
et as TableOverflowHid,
|
|
2063
2075
|
Je as aliOssMixin,
|
|
@@ -2067,7 +2079,7 @@ export {
|
|
|
2067
2079
|
Fe as createOssClient,
|
|
2068
2080
|
Ct as createRequest,
|
|
2069
2081
|
fl as createService,
|
|
2070
|
-
|
|
2082
|
+
il as default,
|
|
2071
2083
|
gt as getApi,
|
|
2072
2084
|
Ge as getOssSts,
|
|
2073
2085
|
hl as getPermissionGetter,
|
|
@@ -2079,7 +2091,7 @@ export {
|
|
|
2079
2091
|
Zn as installPermissionDirectives,
|
|
2080
2092
|
yt as openFilePreview,
|
|
2081
2093
|
St as setApi,
|
|
2082
|
-
|
|
2094
|
+
Lt as setDefaultOssUrl,
|
|
2083
2095
|
wt as setPermissionGetter,
|
|
2084
2096
|
Ut as setRequest,
|
|
2085
2097
|
vl as setSystemId,
|