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