@web-utils/component 4.0.15 → 4.0.16
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/address-input/index.mjs +13 -15
- package/card/index.mjs +18 -20
- package/carousel/index.mjs +10 -12
- package/chat/index.mjs +45 -56
- package/chunk-file-uploader/index.mjs +36 -378
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/ElementBaseInfo.ZADwixb5.mjs +125 -0
- package/chunks/ElementForm.CQ3PN5qj.mjs +223 -0
- package/chunks/ElementListeners.De_PRuIm.mjs +215 -0
- package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +181 -0
- package/chunks/ElementOtherConfig.B1NfMTYh.mjs +60 -0
- package/chunks/ElementProperties.CosfDrlW.mjs +112 -0
- package/chunks/{ElementTaskConfig.AvBOzAni.mjs → ElementTaskConfig.Bko0kgTp.mjs} +55 -63
- package/chunks/FlowCondition.Y6qEYi1T.mjs +102 -0
- package/chunks/FormTemp.BQxO5IQq.mjs +123 -0
- package/chunks/SignalAndMessage.Bb5PFX0N.mjs +85 -0
- package/chunks/UserTaskListeners.Bv3BDfEI.mjs +169 -0
- package/chunks/{confirmable-mixin.BFZb6pcK.mjs → confirmable-mixin.B2TtLAdk.mjs} +1 -1
- package/chunks/core.0Exl13Mz.mjs +54 -0
- package/chunks/{dataformat.DJoNBlmI.mjs → dataformat.CpqOeGBl.mjs} +6 -6
- package/chunks/{dic.BinnDitI.mjs → dic.Dkl-leRW.mjs} +9 -9
- package/chunks/dictionary.DGt59Ir7.mjs +68 -0
- package/chunks/{event.DSlcqYHL.mjs → event.9aDS6jcw.mjs} +2 -2
- package/chunks/{form-input.BtS_J5a2.mjs → form-input.CvFdwlEV.mjs} +2 -2
- package/chunks/form-item.LWjePsPa.mjs +233 -0
- package/chunks/{index.CIfe3UB3.mjs → index.9OxHjTIE.mjs} +2 -2
- package/chunks/{index.Cn7aq-Et.mjs → index.B2TRddqf.mjs} +8 -8
- package/chunks/{init.xOlFpTyZ.mjs → init.DAsXSoLW.mjs} +2 -2
- package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
- package/chunks/{util.DI42t5GU.mjs → util.DqFv_pWg.mjs} +22 -22
- package/chunks/utilSelf.Csq1766E.mjs +48 -0
- package/chunks/utils.DRcxC1Fb.mjs +60 -0
- package/color-picker/index.mjs +22 -101
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/data-box/index.mjs +12 -15
- package/data-card/index.mjs +10 -12
- package/data-card-text/index.mjs +10 -12
- package/data-display/index.mjs +15 -17
- package/data-icons/index.mjs +13 -16
- package/data-imgtext/index.mjs +15 -18
- package/data-operatext/index.mjs +14 -16
- package/data-panel/index.mjs +13 -16
- package/data-pay/index.mjs +16 -20
- package/data-price/index.mjs +14 -16
- package/data-progress/index.mjs +13 -17
- package/data-rotate/index.mjs +12 -15
- package/data-table-picker/index.mjs +15 -18
- package/data-tabs/index.mjs +12 -15
- package/dialog-form/index.mjs +16 -18
- package/dynamic-table/index.mjs +25 -30
- package/editable-progress/index.mjs +9 -11
- package/editable-tree/index.mjs +52 -56
- package/egd-collapse-item/index.mjs +9 -9
- package/element-dialog/index.mjs +22 -23
- package/element-listeners/style.css +1 -0
- package/element-multi-instance/style.css +1 -0
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flow/index.mjs +10 -11
- package/flow-designer/index.mjs +699 -1973
- package/flow-designer/style.css +1 -1
- package/flow-node/index.mjs +1 -1
- package/flow-viewer/index.mjs +9 -9
- package/form-block/index.mjs +32 -34
- package/form-cascader/index.mjs +23 -24
- package/form-checkbox/index.mjs +16 -17
- package/form-checkbox-group/index.mjs +20 -23
- package/form-date-picker/index.mjs +18 -20
- package/form-holder/index.mjs +13 -14
- package/form-input/index.mjs +14 -15
- package/form-input-cron-expression/index.mjs +19 -22
- package/form-input-email/index.mjs +15 -16
- package/form-input-id-card/index.mjs +12 -13
- package/form-input-number/index.mjs +16 -17
- package/form-input-phone-number/index.mjs +21 -22
- package/form-input-tag/index.mjs +14 -15
- package/form-input-time/index.mjs +14 -15
- package/form-item/index.mjs +140 -3
- package/form-item-group/index.mjs +28 -31
- package/form-radio-group/index.mjs +27 -28
- package/form-select/index.mjs +21 -23
- package/form-switch/index.mjs +16 -17
- package/form-table/index.mjs +16 -17
- package/form-table-plus/index.mjs +21 -22
- package/form-textarea/index.mjs +15 -16
- package/form-tree-select/index.mjs +14 -15
- package/form-tree-select-multiple/index.mjs +14 -15
- package/form-view/index.mjs +35 -39
- package/fy-array/index.mjs +33 -37
- package/fy-cascader/index.mjs +16 -17
- package/fy-checkbox/index.mjs +11 -13
- package/fy-code/index.mjs +10 -10
- package/fy-curd/index.mjs +1128 -1152
- package/fy-date/index.mjs +10 -11
- package/fy-draggable/index.mjs +9 -10
- package/fy-dynamic/index.mjs +22 -25
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +638 -15
- package/fy-form-design/index.mjs +1307 -1345
- package/fy-from/crud/zh.d.ts +6 -6
- package/fy-input/index.mjs +12 -14
- package/fy-input-color/index.mjs +13 -15
- package/fy-input-icon/index.mjs +20 -23
- package/fy-input-map/index.mjs +28 -31
- package/fy-input-number/index.mjs +9 -10
- package/fy-input-table/index.mjs +18 -22
- package/fy-input-tree/index.mjs +33 -37
- package/fy-progress/index.mjs +9 -10
- package/fy-radio/index.mjs +15 -16
- package/fy-rate/index.mjs +10 -11
- package/fy-select/index.mjs +25 -29
- package/fy-slider/index.mjs +11 -12
- package/fy-switch/index.mjs +9 -10
- package/fy-tabs/index.mjs +15 -17
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +18 -24
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +74 -76
- package/guide-steps/index.mjs +11 -13
- package/iframe-window/index.mjs +9 -10
- package/image-cropper/index.mjs +28 -30
- package/image-preview/index.mjs +12 -14
- package/index.mjs +72 -72
- package/input-number/index.mjs +13 -14
- package/input-number-range/index.mjs +11 -12
- package/license/index.mjs +1 -1
- package/login/index.mjs +21 -26
- package/nav-bar/index.mjs +9 -10
- package/notice/index.mjs +9 -10
- package/package.json +1 -1
- package/page-index/index.mjs +12 -13
- package/page-index-top/index.mjs +23 -28
- package/page-skeleton/index.mjs +14 -14
- package/page-skeleton-new/index.mjs +8 -9
- package/pageable-table/index.mjs +172 -182
- package/pageable-view/index.mjs +15 -16
- package/picker-table-view/index.mjs +49 -58
- package/present-view/index.mjs +35 -39
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/search/index.mjs +20 -22
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/skeleton-panel/index.mjs +9 -10
- package/split-pane/index.mjs +36 -37
- package/static-pageable-table/index.mjs +11 -13
- package/sub-table/index.mjs +36 -49
- package/sub-table-plus/index.mjs +229 -18
- package/swiper/index.mjs +11 -12
- package/table-column/index.mjs +223 -3
- package/table-view/index.mjs +52 -60
- package/tabs-view/index.mjs +17 -19
- package/tag-render/index.mjs +16 -18
- package/text-ellipsis/index.mjs +9 -10
- package/toolbar/index.mjs +13 -14
- package/toolbar-button/index.mjs +13 -14
- package/verify/index.mjs +1 -1
- package/vue-cron/index.mjs +259 -267
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +21 -24
- package/chunks/FormItem.Bhsy_O2B.mjs +0 -372
- package/chunks/FyForm.DriwCJ7b.mjs +0 -765
- package/chunks/SignalAndMessage.BpjOoKhK.mjs +0 -92
- package/chunks/SubTablePlus.BH0IIv3X.mjs +0 -270
- package/chunks/TableColumn.BzivvXMF.mjs +0 -337
package/fy-upload/index.mjs
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import R from "
|
|
2
|
-
import
|
|
3
|
-
import { p as N, e as B } from "../chunks/event.DSlcqYHL.mjs";
|
|
4
|
-
import { B as K, v as T, g as L } from "../chunks/util.DI42t5GU.mjs";
|
|
1
|
+
import { p as R, e as I } from "../chunks/event.9aDS6jcw.mjs";
|
|
2
|
+
import { B, i as T, p as N } from "../chunks/util.DqFv_pWg.mjs";
|
|
5
3
|
import { p as A } from "../chunks/packages.ByyangTp.mjs";
|
|
6
4
|
import { isBlank as b } from "@web-utils/core";
|
|
7
|
-
import { n as
|
|
5
|
+
import { n as K } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
8
6
|
let d, g;
|
|
9
7
|
const w = {
|
|
10
8
|
width: 200,
|
|
11
9
|
height: 200
|
|
12
|
-
},
|
|
10
|
+
}, n = {
|
|
13
11
|
text: "avueJS",
|
|
14
12
|
// 文字
|
|
15
13
|
fontFamily: "microsoft yahei",
|
|
@@ -33,18 +31,18 @@ function k(i, t) {
|
|
|
33
31
|
t(o.target.result);
|
|
34
32
|
};
|
|
35
33
|
}
|
|
36
|
-
function
|
|
37
|
-
const { text: o, fontFamily:
|
|
38
|
-
|
|
39
|
-
function
|
|
40
|
-
|
|
34
|
+
function L(i, t = {}, e) {
|
|
35
|
+
const { text: o, fontFamily: s, color: u, fontSize: l, opacity: p, bottom: S, right: f, ratio: x } = t;
|
|
36
|
+
_(), k(i, C);
|
|
37
|
+
function _() {
|
|
38
|
+
n.text = o || n.text, n.fontFamily = s || n.fontFamily, n.color = u || n.color, n.fontSize = l || n.fontSize, n.opacity = p || n.opacity, n.bottom = S || n.bottom, n.right = f || n.right, n.ratio = x || n.ratio;
|
|
41
39
|
}
|
|
42
40
|
function C(y) {
|
|
43
41
|
const c = new Image();
|
|
44
42
|
c.src = y, c.onload = function() {
|
|
45
43
|
const m = c.width, a = c.height;
|
|
46
44
|
r(m, a), g.drawImage(c, 0, 0, m, a), P(m, a);
|
|
47
|
-
const
|
|
45
|
+
const v = document.getElementById("canvas").toDataURL(i.type, n.ratio), F = B(v, i.name);
|
|
48
46
|
e == null || e(F);
|
|
49
47
|
};
|
|
50
48
|
}
|
|
@@ -52,67 +50,67 @@ function q(i, t = {}, e) {
|
|
|
52
50
|
d = document.getElementById("canvas"), d === null && (d = document.createElement("canvas"), d.id = "canvas", d.className = "avue-canvas", document.body.appendChild(d)), g = d.getContext("2d"), d.width = y, d.height = c;
|
|
53
51
|
}
|
|
54
52
|
function P(y, c) {
|
|
55
|
-
const m =
|
|
56
|
-
g.font = `${a.fontSize}px ${
|
|
53
|
+
const m = n.text, a = E(m, y, c);
|
|
54
|
+
g.font = `${a.fontSize}px ${n.fontFamily}`, g.fillStyle = n.color, g.globalAlpha = n.opacity / 100, g.fillText(m, a.x, a.y);
|
|
57
55
|
}
|
|
58
|
-
function
|
|
59
|
-
let a,
|
|
60
|
-
const
|
|
61
|
-
|
|
56
|
+
function E(y, c, m) {
|
|
57
|
+
let a, v;
|
|
58
|
+
const U = n.fontSize / w.width * c;
|
|
59
|
+
n.bottom ? v = w.height - n.bottom : v = n.top, n.right ? a = w.width - n.right : a = n.left, g.font = `${n.fontSize}px ${n.fontFamily}`;
|
|
62
60
|
const $ = Number(g.measureText(y).width);
|
|
63
61
|
a = a - $;
|
|
64
|
-
const z = a / w.width, j =
|
|
65
|
-
return a = z * c,
|
|
62
|
+
const z = a / w.width, j = v / w.height;
|
|
63
|
+
return a = z * c, v = j * m, {
|
|
66
64
|
x: a,
|
|
67
|
-
y:
|
|
68
|
-
fontSize:
|
|
65
|
+
y: v,
|
|
66
|
+
fontSize: U
|
|
69
67
|
};
|
|
70
68
|
}
|
|
71
69
|
}
|
|
72
|
-
const
|
|
70
|
+
const D = (i, t, e) => {
|
|
73
71
|
const o = JSON.stringify(e);
|
|
74
72
|
window.__ENV__ === "development" && (console == null || console.log("put_policy = ", o));
|
|
75
|
-
const
|
|
76
|
-
window.__ENV__ === "development" && (console == null || console.log("encoded = ",
|
|
77
|
-
const l = window.CryptoJS.HmacSHA1(
|
|
73
|
+
const s = M(q(o));
|
|
74
|
+
window.__ENV__ === "development" && (console == null || console.log("encoded = ", s));
|
|
75
|
+
const l = window.CryptoJS.HmacSHA1(s, t).toString(window.CryptoJS.enc.Base64);
|
|
78
76
|
window.__ENV__ === "development" && (console == null || console.log("encoded_signed=", l));
|
|
79
|
-
const p = `${i}:${
|
|
77
|
+
const p = `${i}:${V(l)}:${s}`;
|
|
80
78
|
return window.__ENV__ === "development" && (console == null || console.log("upload_token=", p)), p;
|
|
81
79
|
};
|
|
82
|
-
function
|
|
80
|
+
function q(i) {
|
|
83
81
|
let t, e, o;
|
|
84
82
|
t = "";
|
|
85
|
-
const
|
|
86
|
-
for (e = 0; e <
|
|
83
|
+
const s = i.length;
|
|
84
|
+
for (e = 0; e < s; e++)
|
|
87
85
|
o = i.charCodeAt(e), o >= 1 && o <= 127 ? t += i.charAt(e) : o > 2047 ? (t += String.fromCharCode(224 | o >> 12 & 15), t += String.fromCharCode(128 | o >> 6 & 63), t += String.fromCharCode(128 | o >> 0 & 63)) : (t += String.fromCharCode(192 | o >> 6 & 31), t += String.fromCharCode(128 | o >> 0 & 63));
|
|
88
86
|
return t;
|
|
89
87
|
}
|
|
90
88
|
const h = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
|
|
91
|
-
function
|
|
92
|
-
let t, e, o,
|
|
89
|
+
function M(i) {
|
|
90
|
+
let t, e, o, s, u;
|
|
93
91
|
const l = i.length;
|
|
94
92
|
for (e = 0, t = ""; e < l; ) {
|
|
95
93
|
if (o = i.charCodeAt(e++) & 255, e === l) {
|
|
96
94
|
t += h.charAt(o >> 2), t += h.charAt((o & 3) << 4), t += "==";
|
|
97
95
|
break;
|
|
98
96
|
}
|
|
99
|
-
if (
|
|
100
|
-
t += h.charAt(o >> 2), t += h.charAt((o & 3) << 4 | (
|
|
97
|
+
if (s = i.charCodeAt(e++), e === l) {
|
|
98
|
+
t += h.charAt(o >> 2), t += h.charAt((o & 3) << 4 | (s & 240) >> 4), t += h.charAt((s & 15) << 2), t += "=";
|
|
101
99
|
break;
|
|
102
100
|
}
|
|
103
|
-
u = i.charCodeAt(e++), t += h.charAt(o >> 2), t += h.charAt((o & 3) << 4 | (
|
|
101
|
+
u = i.charCodeAt(e++), t += h.charAt(o >> 2), t += h.charAt((o & 3) << 4 | (s & 240) >> 4), t += h.charAt((s & 15) << 2 | (u & 192) >> 6), t += h.charAt(u & 63);
|
|
104
102
|
}
|
|
105
103
|
return t;
|
|
106
104
|
}
|
|
107
|
-
const
|
|
105
|
+
const V = function(i) {
|
|
108
106
|
return i = i.replace(/\+/g, "-"), i = i.replace(/\//g, "_"), i;
|
|
109
|
-
},
|
|
107
|
+
}, J = (i) => new window.OSS(i);
|
|
110
108
|
function O(i, t = "") {
|
|
111
109
|
return t.match(/(^http:\/\/|^https:\/\/|^\/\/|data:image\/)/) ? t : i + t;
|
|
112
110
|
}
|
|
113
|
-
const
|
|
111
|
+
const H = {
|
|
114
112
|
name: "FyUpload",
|
|
115
|
-
mixins: [
|
|
113
|
+
mixins: [R, I],
|
|
116
114
|
props: {
|
|
117
115
|
qiniu: Object,
|
|
118
116
|
ali: Object,
|
|
@@ -216,13 +214,13 @@ const W = {
|
|
|
216
214
|
return (this.text || []).forEach((t, e) => {
|
|
217
215
|
if (t) {
|
|
218
216
|
const o = this.isObject ? t[this.labelKey] : t.substring(t.lastIndexOf("/") + 1);
|
|
219
|
-
let
|
|
220
|
-
|
|
217
|
+
let s = this.isObject ? t[this.valueKey] : t;
|
|
218
|
+
s = O(this.homeUrl, s), i.push({
|
|
221
219
|
uid: `${e}`,
|
|
222
220
|
status: "done",
|
|
223
|
-
type: this.isMediaType(
|
|
221
|
+
type: this.isMediaType(s),
|
|
224
222
|
name: o,
|
|
225
|
-
url:
|
|
223
|
+
url: s
|
|
226
224
|
});
|
|
227
225
|
}
|
|
228
226
|
}), i;
|
|
@@ -295,10 +293,10 @@ const W = {
|
|
|
295
293
|
return;
|
|
296
294
|
}
|
|
297
295
|
const o = Object.assign(this.headers, { "Content-Type": "multipart/form-data" });
|
|
298
|
-
let
|
|
296
|
+
let s = {}, u = {};
|
|
299
297
|
const l = new FormData(), p = () => {
|
|
300
298
|
const f = (x) => {
|
|
301
|
-
let
|
|
299
|
+
let _ = this.action;
|
|
302
300
|
for (const r in this.data)
|
|
303
301
|
l.append(r, this.data[r]);
|
|
304
302
|
const C = x || t;
|
|
@@ -307,23 +305,23 @@ const W = {
|
|
|
307
305
|
A.logs("CryptoJS"), this.hide();
|
|
308
306
|
return;
|
|
309
307
|
}
|
|
310
|
-
|
|
311
|
-
const r =
|
|
312
|
-
scope:
|
|
313
|
-
deadline: (/* @__PURE__ */ new Date()).getTime() +
|
|
308
|
+
s = this.qiniu || this.$AVUE.qiniu;
|
|
309
|
+
const r = D(s.AK, s.SK, {
|
|
310
|
+
scope: s.scope,
|
|
311
|
+
deadline: (/* @__PURE__ */ new Date()).getTime() + s.deadline * 3600
|
|
314
312
|
});
|
|
315
|
-
l.append("token", r),
|
|
313
|
+
l.append("token", r), _ = s.bucket;
|
|
316
314
|
} else if (this.isAliOss) {
|
|
317
315
|
if (!window.OSS) {
|
|
318
316
|
A.logs("AliOSS"), this.hide();
|
|
319
317
|
return;
|
|
320
318
|
}
|
|
321
|
-
|
|
319
|
+
s = this.ali || this.$AVUE.ali, u = J(s);
|
|
322
320
|
}
|
|
323
321
|
(this.isAliOss ? u.put(C.name, C, {
|
|
324
322
|
headers: this.headers
|
|
325
|
-
}) : this.$axios.post(
|
|
326
|
-
this.res = {}, this.isQiniuOss && (r.data.key =
|
|
323
|
+
}) : this.$axios.post(_, l, { headers: o })).then((r) => {
|
|
324
|
+
this.res = {}, this.isQiniuOss && (r.data.key = s.url + r.data.key), this.res = N(this.isAliOss ? r : r.data, this.resKey), typeof this.uploadAfter == "function" ? this.uploadAfter(this.res, this.show, this.hide, this.column) : this.show();
|
|
327
325
|
}).catch((r) => {
|
|
328
326
|
this.hide(r);
|
|
329
327
|
});
|
|
@@ -335,7 +333,7 @@ const W = {
|
|
|
335
333
|
return;
|
|
336
334
|
}
|
|
337
335
|
const S = () => {
|
|
338
|
-
b(this.canvasOption) ? p() :
|
|
336
|
+
b(this.canvasOption) ? p() : L(t, this.canvasOption, (f) => {
|
|
339
337
|
t = f, p();
|
|
340
338
|
});
|
|
341
339
|
};
|
|
@@ -343,8 +341,8 @@ const W = {
|
|
|
343
341
|
const x = Object.assign(this.cropperOption, {
|
|
344
342
|
img: f,
|
|
345
343
|
type: "file",
|
|
346
|
-
callback: (
|
|
347
|
-
t =
|
|
344
|
+
callback: (_) => {
|
|
345
|
+
t = _, S();
|
|
348
346
|
},
|
|
349
347
|
cancel: () => {
|
|
350
348
|
this.loading = !1;
|
|
@@ -374,25 +372,25 @@ const W = {
|
|
|
374
372
|
}
|
|
375
373
|
}
|
|
376
374
|
};
|
|
377
|
-
var
|
|
375
|
+
var Q = function() {
|
|
378
376
|
var t = this, e = t._self._c;
|
|
379
|
-
return e("div", { directives: [{ name: "loading", rawName: "v-loading.lock", value: t.loading, expression: "loading", modifiers: { lock: !0 } }], staticClass: "avue-upload", attrs: { "element-loading-text": t.loadText } }, [e(
|
|
377
|
+
return e("div", { directives: [{ name: "loading", rawName: "v-loading.lock", value: t.loading, expression: "loading", modifiers: { lock: !0 } }], staticClass: "avue-upload", attrs: { "element-loading-text": t.loadText } }, [e("ElUpload", { key: t.reload, class: { "avue-upload--list": t.listType === "picture-img", "avue-upload--upload": t.disabled }, attrs: { action: t.action, "on-remove": t.handleRemove, accept: t.acceptList, "before-remove": t.beforeRemove, multiple: t.multiple, "on-preview": t.handlePreview, limit: t.limit, "http-request": t.httpUpload, readonly: t.readonly, drag: t.dragFile, "show-file-list": t.isPictureImg ? !1 : t.showFileList, "list-type": t.listType, "on-change": t.handleFileChange, "on-exceed": t.handleExceed, disabled: t.disabled, "file-list": t.fileList }, nativeOn: { click: function(o) {
|
|
380
378
|
return t.handleClick.apply(null, arguments);
|
|
381
379
|
} }, scopedSlots: t._u([{ key: "tip", fn: function() {
|
|
382
380
|
return [e("div", { staticClass: "el-upload__tip", domProps: { innerHTML: t._s(t.tip) } })];
|
|
383
381
|
}, proxy: !0 }, { key: "file", fn: function({ file: o }) {
|
|
384
|
-
return [t.$scopedSlots.default ? t._t("default", null, { file: o }) : t.listType === "picture-card" ? e("span", [t.isMediaType(o.url) ? e(o.type, { tag: "Component", staticClass: "el-upload-list__item-thumbnail", attrs: { src: o.url } }) : e("i", { staticClass: "avue-upload__avatar el-icon-document" }), e("span", { staticClass: "el-upload-list__item-actions" }, [e("span", { staticClass: "el-upload-list__item-preview" }, [e("i", { staticClass: "el-icon-zoom-in", on: { click: function(
|
|
385
|
-
return
|
|
386
|
-
} } })]), e("span", { staticClass: "el-upload-list__item-delete" }, [t.disabled ? t._e() : e("i", { staticClass: "el-icon-delete", on: { click: function(
|
|
387
|
-
return
|
|
388
|
-
} } })])])], 1) : t.listType === "picture" ? e("span", { on: { click: function(
|
|
389
|
-
return
|
|
390
|
-
} } }, [e(o.type, { tag: "Component", staticClass: "el-upload-list__item-thumbnail", attrs: { src: o.url } }), e("a", { staticClass: "el-upload-list__item-name" }, [e("i", { staticClass: "el-icon-document" }), t._v(" " + t._s(o.name) + " ")]), e("i", { staticClass: "el-icon-close", on: { click: function(
|
|
391
|
-
return
|
|
392
|
-
} } })], 1) : e("span", { on: { click: function(
|
|
393
|
-
return
|
|
394
|
-
} } }, [e("a", { staticClass: "el-upload-list__item-name" }, [e("i", { staticClass: "el-icon-document" }), t._v(" " + t._s(o.name) + " ")]), t.disabled ? t._e() : e("i", { staticClass: "el-icon-close", on: { click: function(
|
|
395
|
-
return
|
|
382
|
+
return [t.$scopedSlots.default ? t._t("default", null, { file: o }) : t.listType === "picture-card" ? e("span", [t.isMediaType(o.url) ? e(o.type, { tag: "Component", staticClass: "el-upload-list__item-thumbnail", attrs: { src: o.url } }) : e("i", { staticClass: "avue-upload__avatar el-icon-document" }), e("span", { staticClass: "el-upload-list__item-actions" }, [e("span", { staticClass: "el-upload-list__item-preview" }, [e("i", { staticClass: "el-icon-zoom-in", on: { click: function(s) {
|
|
383
|
+
return s.stopPropagation(), t.handlePreview(o);
|
|
384
|
+
} } })]), e("span", { staticClass: "el-upload-list__item-delete" }, [t.disabled ? t._e() : e("i", { staticClass: "el-icon-delete", on: { click: function(s) {
|
|
385
|
+
return s.stopPropagation(), t.handleRemove(o);
|
|
386
|
+
} } })])])], 1) : t.listType === "picture" ? e("span", { on: { click: function(s) {
|
|
387
|
+
return s.stopPropagation(), t.handlePreview(o);
|
|
388
|
+
} } }, [e(o.type, { tag: "Component", staticClass: "el-upload-list__item-thumbnail", attrs: { src: o.url } }), e("a", { staticClass: "el-upload-list__item-name" }, [e("i", { staticClass: "el-icon-document" }), t._v(" " + t._s(o.name) + " ")]), e("i", { staticClass: "el-icon-close", on: { click: function(s) {
|
|
389
|
+
return s.stopPropagation(), t.handleRemove(o);
|
|
390
|
+
} } })], 1) : e("span", { on: { click: function(s) {
|
|
391
|
+
return s.stopPropagation(), t.handlePreview(o);
|
|
392
|
+
} } }, [e("a", { staticClass: "el-upload-list__item-name" }, [e("i", { staticClass: "el-icon-document" }), t._v(" " + t._s(o.name) + " ")]), t.disabled ? t._e() : e("i", { staticClass: "el-icon-close", on: { click: function(s) {
|
|
393
|
+
return s.stopPropagation(), t.handleRemove(o);
|
|
396
394
|
} } })])];
|
|
397
395
|
} }], null, !0) }, [t.listType === "picture-card" ? [e("i", { staticClass: "el-icon-plus" })] : t.listType === "picture-img" ? [t.$scopedSlots.default ? t._t("default", null, { file: { url: t.imgUrl } }) : [t.isMediaType(t.imgUrl) ? e(t.isMediaType(t.imgUrl), { tag: "Component", staticClass: "avue-upload__avatar", attrs: { src: t.imgUrl }, on: { mouseover: function(o) {
|
|
398
396
|
t.menu = !0;
|
|
@@ -408,16 +406,16 @@ var X = function() {
|
|
|
408
406
|
return o.stopPropagation(), t.handlePreview({ url: t.imgUrl });
|
|
409
407
|
} } }), t.disabled ? t._e() : e("i", { staticClass: "el-icon-delete", on: { click: function(o) {
|
|
410
408
|
return o.stopPropagation(), t.handleDelete(t.imgUrl);
|
|
411
|
-
} } })]) : t._e()]] : t.dragFile ? [e("i", { staticClass: "el-icon-upload" }), e("div", { staticClass: "el-upload__text" }, [e("em", [t._v(t._s(t.fileText || "上传"))])])] : [e(
|
|
412
|
-
},
|
|
409
|
+
} } })]) : t._e()]] : t.dragFile ? [e("i", { staticClass: "el-icon-upload" }), e("div", { staticClass: "el-upload__text" }, [e("em", [t._v(t._s(t.fileText || "上传"))])])] : [e("ElButton", { attrs: { icon: "el-icon-upload", size: t.size, type: "primary" } }, [t._v(" " + t._s(t.fileText || "上传") + " ")])]], 2)], 1);
|
|
410
|
+
}, W = [], X = /* @__PURE__ */ K(
|
|
411
|
+
H,
|
|
412
|
+
Q,
|
|
413
413
|
W,
|
|
414
|
-
X,
|
|
415
|
-
Y,
|
|
416
414
|
!1,
|
|
417
415
|
null,
|
|
418
416
|
null
|
|
419
417
|
);
|
|
420
|
-
const
|
|
418
|
+
const it = X.exports;
|
|
421
419
|
export {
|
|
422
|
-
|
|
420
|
+
it as default
|
|
423
421
|
};
|
package/guide-steps/index.mjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import l from "
|
|
2
|
-
|
|
3
|
-
import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
|
-
const u = {
|
|
1
|
+
import { n as l } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
2
|
+
const i = {
|
|
5
3
|
name: "GuideSteps",
|
|
6
4
|
props: {
|
|
7
5
|
value: {
|
|
@@ -47,28 +45,28 @@ const u = {
|
|
|
47
45
|
}
|
|
48
46
|
}
|
|
49
47
|
};
|
|
50
|
-
var
|
|
48
|
+
var u = function() {
|
|
51
49
|
var e = this, a = e._self._c;
|
|
52
|
-
return a(
|
|
53
|
-
return a(
|
|
50
|
+
return a("ElSteps", { staticClass: "guide-steps", attrs: { "align-center": "" } }, e._l(e.steps, function(s, r) {
|
|
51
|
+
return a("ElStep", { key: s.label, class: [
|
|
54
52
|
{
|
|
55
53
|
"current important": e.value === r,
|
|
56
54
|
disabled: !e.available(r),
|
|
57
55
|
available: !e.ready[r] && e.available(r)
|
|
58
56
|
}
|
|
59
|
-
], attrs: { status: e.ready[r] ? "success" : "", title: s.label }, nativeOn: { click: function(
|
|
57
|
+
], attrs: { status: e.ready[r] ? "success" : "", title: s.label }, nativeOn: { click: function(p) {
|
|
60
58
|
return e.activeStep(r);
|
|
61
59
|
} } });
|
|
62
60
|
}), 1);
|
|
63
|
-
},
|
|
61
|
+
}, n = [], c = /* @__PURE__ */ l(
|
|
62
|
+
i,
|
|
64
63
|
u,
|
|
65
|
-
|
|
66
|
-
o,
|
|
64
|
+
n,
|
|
67
65
|
!1,
|
|
68
66
|
null,
|
|
69
67
|
null
|
|
70
68
|
);
|
|
71
|
-
const
|
|
69
|
+
const o = c.exports;
|
|
72
70
|
export {
|
|
73
|
-
|
|
71
|
+
o as default
|
|
74
72
|
};
|
package/iframe-window/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import r from "../
|
|
2
|
-
|
|
3
|
-
const s = {
|
|
1
|
+
import { n as r } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
2
|
+
const a = {
|
|
4
3
|
name: "IframeWindow",
|
|
5
4
|
props: {
|
|
6
5
|
title: {
|
|
@@ -14,20 +13,20 @@ const s = {
|
|
|
14
13
|
visible: Boolean
|
|
15
14
|
}
|
|
16
15
|
};
|
|
17
|
-
var
|
|
16
|
+
var n = function() {
|
|
18
17
|
var e = this, t = e._self._c;
|
|
19
|
-
return t(
|
|
18
|
+
return t("ElementDialog", e._g(e._b({ attrs: { "custom-class": "iframe-window", embed: "", height: "60vh", title: e.title, "show-full-screen": "", visible: e.visible }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
20
19
|
return [t("iframe", { staticClass: "iframe-window-iframe", attrs: { src: e.url, frameborder: "0" } })];
|
|
21
20
|
}, proxy: !0 }]) }, "ElementDialog", e.$attrs, !1), e.$listeners));
|
|
22
|
-
},
|
|
23
|
-
s,
|
|
21
|
+
}, s = [], l = /* @__PURE__ */ r(
|
|
24
22
|
a,
|
|
25
|
-
|
|
23
|
+
n,
|
|
24
|
+
s,
|
|
26
25
|
!1,
|
|
27
26
|
null,
|
|
28
27
|
null
|
|
29
28
|
);
|
|
30
|
-
const
|
|
29
|
+
const f = l.exports;
|
|
31
30
|
export {
|
|
32
|
-
|
|
31
|
+
f as default
|
|
33
32
|
};
|
package/image-cropper/index.mjs
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import r from "
|
|
2
|
-
import n from "
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
-
const c = {
|
|
1
|
+
import { B as r } from "../chunks/util.DqFv_pWg.mjs";
|
|
2
|
+
import { VueCropper as n } from "vue-cropper";
|
|
3
|
+
import { n as s } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
|
+
const p = {
|
|
7
5
|
name: "ImageCropper",
|
|
8
6
|
components: {
|
|
9
|
-
VueCropper:
|
|
7
|
+
VueCropper: n
|
|
10
8
|
},
|
|
11
9
|
data() {
|
|
12
10
|
return {
|
|
@@ -20,8 +18,8 @@ const c = {
|
|
|
20
18
|
this.visible = !0;
|
|
21
19
|
},
|
|
22
20
|
// 图片缩放
|
|
23
|
-
changeScale(
|
|
24
|
-
|
|
21
|
+
changeScale(o) {
|
|
22
|
+
o = o || 1, this.$refs.cropper.changeScale(o);
|
|
25
23
|
},
|
|
26
24
|
// 向左旋转
|
|
27
25
|
rotateLeft() {
|
|
@@ -32,44 +30,44 @@ const c = {
|
|
|
32
30
|
this.$refs.cropper.rotateRight();
|
|
33
31
|
},
|
|
34
32
|
// 实时预览函数
|
|
35
|
-
realTime(
|
|
36
|
-
this.previews =
|
|
33
|
+
realTime(o) {
|
|
34
|
+
this.previews = o;
|
|
37
35
|
},
|
|
38
36
|
submit() {
|
|
39
|
-
this.visible = !1, this.$refs.cropper.getCropData((
|
|
40
|
-
var
|
|
41
|
-
let e =
|
|
42
|
-
this.option.type === "file" && (e =
|
|
37
|
+
this.visible = !1, this.$refs.cropper.getCropData((o) => {
|
|
38
|
+
var t, i;
|
|
39
|
+
let e = o;
|
|
40
|
+
this.option.type === "file" && (e = r(o, `${(/* @__PURE__ */ new Date()).getTime()}.${this.option.outputType}`)), (i = (t = this.option).callback) == null || i.call(t, e);
|
|
43
41
|
});
|
|
44
42
|
},
|
|
45
|
-
cancel(
|
|
46
|
-
var e,
|
|
47
|
-
|
|
43
|
+
cancel(o) {
|
|
44
|
+
var e, t;
|
|
45
|
+
o == null || o(), this.visible = !1, (t = (e = this.option).cancel) == null || t.call(e), typeof this.option.beforeClose == "function" && this.option.beforeClose(), this.$destroy(), this.$el.remove();
|
|
48
46
|
}
|
|
49
47
|
}
|
|
50
48
|
};
|
|
51
|
-
var
|
|
52
|
-
var e = this,
|
|
53
|
-
return
|
|
49
|
+
var a = function() {
|
|
50
|
+
var e = this, t = e._self._c;
|
|
51
|
+
return t("ElementDialog", { staticClass: "avue-cropper", attrs: { visible: e.visible, "before-close": e.cancel, title: "图片剪裁", "close-on-press-escape": !1, "close-on-click-modal": !1, "modal-append-to-body": e.$AVUE.modalAppendToBody, "append-to-body": e.$AVUE.appendToBody, width: "1000px" }, on: { "update:visible": function(i) {
|
|
54
52
|
e.visible = i;
|
|
55
53
|
} }, scopedSlots: e._u([{ key: "footer", fn: function() {
|
|
56
|
-
return [
|
|
54
|
+
return [t("ElButton", { attrs: { size: "small", type: "primary" }, on: { click: e.submit } }, [e._v(" 确 定 ")]), t("ElButton", { attrs: { size: "small" }, on: { click: function(i) {
|
|
57
55
|
return e.cancel();
|
|
58
56
|
} } }, [e._v(" 取 消 ")])];
|
|
59
|
-
}, proxy: !0 }]) }, [
|
|
57
|
+
}, proxy: !0 }]) }, [t("div", { staticClass: "cropper-content" }, [t("div", { staticClass: "cropper-box" }, [t("div", { staticClass: "cropper" }, [t("VueCropper", { ref: "cropper", attrs: { img: e.option.img, "output-size": e.option.outputSize, "output-type": e.option.outputType, info: e.option.info, "can-scale": e.option.canScale, "auto-crop": e.option.autoCrop, "auto-crop-width": e.option.autoCropWidth, "auto-crop-height": e.option.autoCropHeight, fixed: e.option.fixed, "fixed-number": e.option.fixedNumber, full: e.option.full, "fixed-box": e.option.fixedBox, "can-move": e.option.canMove, "can-move-box": e.option.canMoveBox, original: e.option.original, "center-box": e.option.centerBox, height: e.option.height, "info-true": e.option.infoTrue, "max-img-size": e.option.maxImgSize, enlarge: e.option.enlarge, mode: e.option.mode }, on: { realTime: e.realTime } })], 1), t("div", { staticClass: "footer-btn" }, [t("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-zoom-in" }, on: { click: function(i) {
|
|
60
58
|
return e.changeScale(1);
|
|
61
|
-
} } }),
|
|
59
|
+
} } }), t("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-zoom-out" }, on: { click: function(i) {
|
|
62
60
|
return e.changeScale(-1);
|
|
63
|
-
} } }),
|
|
64
|
-
},
|
|
65
|
-
|
|
61
|
+
} } }), t("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-refresh-left" }, on: { click: e.rotateLeft } }), t("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-refresh-right" }, on: { click: e.rotateRight } })], 1)]), t("div", { staticClass: "show-preview" }, [t("div", { staticClass: "preview", style: e.previews.div }, [t("img", { style: e.previews.img, attrs: { src: e.previews.url, alt: "" } })])])])]);
|
|
62
|
+
}, l = [], c = /* @__PURE__ */ s(
|
|
63
|
+
p,
|
|
64
|
+
a,
|
|
66
65
|
l,
|
|
67
|
-
m,
|
|
68
66
|
!1,
|
|
69
67
|
null,
|
|
70
68
|
null
|
|
71
69
|
);
|
|
72
|
-
const
|
|
70
|
+
const h = c.exports;
|
|
73
71
|
export {
|
|
74
|
-
|
|
72
|
+
h as default
|
|
75
73
|
};
|
package/image-preview/index.mjs
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import c from "element-ui/lib/carousel";
|
|
3
|
-
import { v as u } from "../chunks/util.DI42t5GU.mjs";
|
|
1
|
+
import { i as r } from "../chunks/util.DqFv_pWg.mjs";
|
|
4
2
|
import { setPx as o } from "@web-utils/core";
|
|
5
|
-
import { n as
|
|
6
|
-
const
|
|
3
|
+
import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
|
+
const u = {
|
|
7
5
|
name: "ImagePreview",
|
|
8
6
|
data() {
|
|
9
7
|
return {
|
|
@@ -55,7 +53,7 @@ const _ = {
|
|
|
55
53
|
});
|
|
56
54
|
},
|
|
57
55
|
isMediaType(i) {
|
|
58
|
-
return
|
|
56
|
+
return r(i.url, i.type);
|
|
59
57
|
},
|
|
60
58
|
subScale() {
|
|
61
59
|
this.scale !== 0.2 && (this.scale = parseFloat((this.scale - 0.2).toFixed(2)));
|
|
@@ -70,8 +68,8 @@ const _ = {
|
|
|
70
68
|
let e = i.clientX, t = i.clientY;
|
|
71
69
|
const s = 2;
|
|
72
70
|
document.onmousemove = (a) => {
|
|
73
|
-
const n = a.clientX - e,
|
|
74
|
-
e = a.clientX, t = a.clientY, this.left = this.left + n * s, this.top = this.top +
|
|
71
|
+
const n = a.clientX - e, l = a.clientY - t;
|
|
72
|
+
e = a.clientX, t = a.clientY, this.left = this.left + n * s, this.top = this.top + l * s;
|
|
75
73
|
}, document.onmouseup = () => {
|
|
76
74
|
document.onmousemove = null, document.onmouseup = null;
|
|
77
75
|
};
|
|
@@ -90,8 +88,8 @@ var d = function() {
|
|
|
90
88
|
return e.handlePrev();
|
|
91
89
|
} } }, [t("i", { staticClass: "el-icon-arrow-left" })]) : e._e(), e.isRrrow ? t("span", { staticClass: "el-image-viewer__btn el-image-viewer__next", on: { click: function(s) {
|
|
92
90
|
return e.handleNext();
|
|
93
|
-
} } }, [t("i", { staticClass: "el-icon-arrow-right" })]) : e._e(), t("div", { ref: "box", staticClass: "avue-image-preview__box" }, [t(
|
|
94
|
-
return t(
|
|
91
|
+
} } }, [t("i", { staticClass: "el-icon-arrow-right" })]) : e._e(), t("div", { ref: "box", staticClass: "avue-image-preview__box" }, [t("ElCarousel", { ref: "carousel", attrs: { "show-indicators": !1, "initial-index": e.index, "initial-swipe": e.index, interval: 0, arrow: "never", "indicator-position": "none" }, on: { change: e.handleChange } }, e._l(e.datas, function(s, a) {
|
|
92
|
+
return t("ElCarouselItem", { key: a, nativeOn: { click: function(n) {
|
|
95
93
|
if (n.target !== n.currentTarget) return null;
|
|
96
94
|
e.ops.closeOnClickModal && e.close();
|
|
97
95
|
} } }, [e.isMediaType(s) ? t(e.isMediaType(s), { ref: "item", refInFor: !0, tag: "Component", style: [e.styleName, e.styleBoxName], attrs: { id: `avue-image-preview__${a}`, src: s.url, controls: "controls", ondragstart: "return false" }, on: { click: function(n) {
|
|
@@ -104,15 +102,15 @@ var d = function() {
|
|
|
104
102
|
} } }), t("i", { staticClass: "el-icon-refresh-right", on: { click: function(s) {
|
|
105
103
|
e.rotate = e.rotate + 90;
|
|
106
104
|
} } })])])]) : e._e();
|
|
107
|
-
}, h = [],
|
|
108
|
-
|
|
105
|
+
}, h = [], m = /* @__PURE__ */ c(
|
|
106
|
+
u,
|
|
109
107
|
d,
|
|
110
108
|
h,
|
|
111
109
|
!1,
|
|
112
110
|
null,
|
|
113
111
|
null
|
|
114
112
|
);
|
|
115
|
-
const
|
|
113
|
+
const p = m.exports;
|
|
116
114
|
export {
|
|
117
|
-
|
|
115
|
+
p as default
|
|
118
116
|
};
|