@web-utils/component 3.0.3 → 3.0.5
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 +22 -24
- package/awesome-button/index.mjs +29 -30
- package/card/index.mjs +40 -42
- package/carousel/index.mjs +25 -27
- package/chat/index.mjs +57 -67
- package/chunks/FormTemp.7f91629d.mjs +165 -0
- package/chunks/confirmable-mixin.817b542f.mjs +116 -0
- package/chunks/{dataformat.e655611c.mjs → dataformat.f995e2f9.mjs} +3 -3
- package/chunks/{event.10295951.mjs → event.b5d855dd.mjs} +1 -1
- package/chunks/{form-input-mixin.78a567bc.mjs → form-input-mixin.4632ad36.mjs} +1 -1
- package/chunks/{form-item-mixin.57cb2019.mjs → form-item-mixin.ad148e7b.mjs} +13 -13
- package/color-picker/index.mjs +128 -0
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/data-box/index.mjs +32 -34
- package/data-card/index.mjs +33 -35
- package/data-cardtext/index.mjs +27 -29
- package/data-display/index.mjs +33 -35
- package/data-icons/index.mjs +28 -30
- package/data-imgtext/index.mjs +27 -30
- package/data-operatext/index.mjs +39 -41
- package/data-panel/index.mjs +36 -38
- package/data-pay/index.mjs +20 -23
- package/data-price/index.mjs +32 -34
- package/data-progress/index.mjs +27 -30
- package/data-rotate/index.mjs +17 -19
- package/data-table-picker/index.mjs +22 -23
- package/data-tabs/index.mjs +31 -33
- package/dialog-form/index.mjs +31 -39
- package/dynamic-table/index.mjs +36 -40
- package/editable-progress/index.mjs +14 -16
- package/editable-tree/index.mjs +139 -143
- package/egd-collapse-item/index.mjs +2 -1
- package/element-dialog/index.mjs +24 -25
- package/flow-designer/index.mjs +1095 -1111
- package/form-block/index.mjs +22 -24
- package/form-cascader/index.mjs +20 -20
- package/form-checkbox-group/index.mjs +24 -25
- package/form-date-picker/index.mjs +18 -19
- package/form-holder/index.mjs +14 -15
- package/form-input/index.mjs +23 -23
- package/form-input-email/index.mjs +17 -17
- package/form-input-id-card/index.mjs +24 -24
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.mjs +26 -26
- package/form-input-tag/index.mjs +1 -1
- package/form-input-time/index.mjs +17 -17
- package/form-item/index.mjs +54 -56
- package/form-item-group/index.mjs +31 -33
- package/form-radio-group/index.mjs +51 -52
- package/form-select/index.mjs +31 -32
- package/form-switch/index.mjs +22 -22
- package/form-textarea/index.mjs +20 -20
- package/fy-array/index.mjs +61 -65
- package/fy-cascader/index.mjs +19 -20
- package/fy-checkbox/index.mjs +32 -37
- package/fy-code/index.mjs +13 -10
- package/fy-curd/index.mjs +638 -663
- package/fy-date/index.mjs +20 -21
- package/fy-draggable/index.mjs +19 -20
- package/fy-dynamic/index.mjs +26 -27
- package/fy-form/index.mjs +111 -122
- package/fy-form-design/index.mjs +1238 -1270
- package/fy-input/index.mjs +15 -17
- package/fy-input-color/index.mjs +25 -27
- package/fy-input-icon/index.mjs +20 -21
- package/fy-input-map/index.mjs +22 -24
- package/fy-input-number/index.mjs +22 -23
- package/fy-input-table/index.mjs +15 -17
- package/fy-input-tree/index.mjs +28 -32
- package/fy-progress/index.mjs +23 -24
- package/fy-radio/index.mjs +18 -23
- package/fy-rate/index.mjs +12 -13
- package/fy-select/index.mjs +40 -44
- package/fy-slider/index.mjs +17 -18
- package/fy-switch/index.mjs +20 -21
- package/fy-tabs/index.mjs +19 -21
- package/fy-time/index.mjs +14 -20
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +17 -21
- package/fy-upload/index.mjs +74 -76
- package/guide-steps/index.mjs +22 -24
- package/image-cropper/index.mjs +50 -51
- package/image-preview/index.mjs +24 -26
- package/index.mjs +480 -477
- package/input-number/index.mjs +13 -14
- package/input-number-range/index.mjs +23 -24
- package/login/index.mjs +35 -40
- package/nav-bar/index.mjs +13 -14
- package/notice/index.mjs +18 -19
- package/package.json +3 -3
- package/page-index/index.mjs +33 -34
- package/page-index-top/index.mjs +22 -24
- package/pageable-table/index.mjs +92 -96
- package/pageable-view/index.mjs +33 -34
- package/search/index.mjs +21 -23
- package/static-pageable-table/index.mjs +18 -20
- package/swiper/index.mjs +22 -23
- package/table-view/index.mjs +49 -53
- package/tag-render/index.mjs +19 -21
- package/text-ellipsis/index.mjs +11 -12
- package/tinymce-editor/index.mjs +50 -51
- package/toolbar-button/index.mjs +18 -19
- package/vue-cron/index.mjs +104 -112
- package/web-types.json +85 -1
- package/x-input-tag/index.mjs +47 -50
- package/chunks/FormTemp.d079292b.mjs +0 -139
- package/chunks/confirmable-mixin.26e1d0e0.mjs +0 -197
- package/chunks/detail.d6f8e347.mjs +0 -29
package/fy-tree/index.mjs
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import { s as d, o as l, a as r } from "../chunks/util.ae730cde.mjs";
|
|
2
2
|
import { p as u } from "../chunks/permission.ce5d2121.mjs";
|
|
3
3
|
import { isBlank as p } from "@web-utils/core";
|
|
4
|
-
import f from "
|
|
5
|
-
|
|
6
|
-
import y from "element-ui/lib/button";
|
|
7
|
-
import _ from "element-ui/lib/input";
|
|
8
|
-
import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
9
|
-
var k = function() {
|
|
4
|
+
import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
5
|
+
var m = function() {
|
|
10
6
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
11
7
|
return t("div", {
|
|
12
8
|
staticClass: "avue-tree"
|
|
13
9
|
}, [e.optVal(e.option.filter, !0) ? t("div", {
|
|
14
10
|
staticClass: "avue-tree__filter"
|
|
15
|
-
}, [t(
|
|
11
|
+
}, [t("ElInput", {
|
|
16
12
|
attrs: {
|
|
17
13
|
placeholder: e.optVal(e.option.filterText, "输入关键字进行过滤"),
|
|
18
14
|
size: e.size
|
|
@@ -24,7 +20,7 @@ var k = function() {
|
|
|
24
20
|
},
|
|
25
21
|
expression: "filterValue"
|
|
26
22
|
}
|
|
27
|
-
}), e.optVal(e.option.addBtn, !0) ? t(
|
|
23
|
+
}), e.optVal(e.option.addBtn, !0) ? t("ElButton", {
|
|
28
24
|
directives: [{
|
|
29
25
|
name: "permission",
|
|
30
26
|
rawName: "v-permission",
|
|
@@ -38,9 +34,9 @@ var k = function() {
|
|
|
38
34
|
on: {
|
|
39
35
|
click: e.parentAdd
|
|
40
36
|
}
|
|
41
|
-
}) : e._t("addBtn")], 2) : e._e(), t(
|
|
37
|
+
}) : e._t("addBtn")], 2) : e._e(), t("ElScrollbar", {
|
|
42
38
|
staticClass: "avue-tree__content"
|
|
43
|
-
}, [t(
|
|
39
|
+
}, [t("ElTree", {
|
|
44
40
|
directives: [{
|
|
45
41
|
name: "loading",
|
|
46
42
|
rawName: "v-loading",
|
|
@@ -156,8 +152,8 @@ var k = function() {
|
|
|
156
152
|
expression: "form"
|
|
157
153
|
}
|
|
158
154
|
})], 1)], 1) : e._e()], 1);
|
|
159
|
-
},
|
|
160
|
-
const
|
|
155
|
+
}, y = [];
|
|
156
|
+
const v = {
|
|
161
157
|
name: "FyTree",
|
|
162
158
|
directives: {
|
|
163
159
|
permission: u
|
|
@@ -412,23 +408,23 @@ const x = {
|
|
|
412
408
|
}
|
|
413
409
|
}
|
|
414
410
|
}, c = {};
|
|
415
|
-
var
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
411
|
+
var _ = /* @__PURE__ */ f(
|
|
412
|
+
v,
|
|
413
|
+
m,
|
|
414
|
+
y,
|
|
419
415
|
!1,
|
|
420
|
-
|
|
416
|
+
k,
|
|
421
417
|
null,
|
|
422
418
|
null,
|
|
423
419
|
null
|
|
424
420
|
);
|
|
425
|
-
function
|
|
421
|
+
function k(e) {
|
|
426
422
|
for (let i in c)
|
|
427
423
|
this[i] = c[i];
|
|
428
424
|
}
|
|
429
|
-
const
|
|
430
|
-
return
|
|
425
|
+
const K = /* @__PURE__ */ function() {
|
|
426
|
+
return _.exports;
|
|
431
427
|
}();
|
|
432
428
|
export {
|
|
433
|
-
|
|
429
|
+
K as default
|
|
434
430
|
};
|
package/fy-upload/index.mjs
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { p as I, e as
|
|
2
|
-
import { B, i as F, p as K } from "../chunks/util.ae730cde.mjs";
|
|
1
|
+
import { p as I, e as B } from "../chunks/event.b5d855dd.mjs";
|
|
2
|
+
import { B as N, i as F, p as K } from "../chunks/util.ae730cde.mjs";
|
|
3
3
|
import { p as A } from "../chunks/packages.1fc9ccba.mjs";
|
|
4
4
|
import { isBlank as b } from "@web-utils/core";
|
|
5
|
-
import L from "
|
|
6
|
-
import D from "element-ui/lib/upload";
|
|
7
|
-
import { n as M } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
5
|
+
import { n as L } from "../chunks/vueComponentNormalizer.446f5dc4.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 P(t, e) {
|
|
|
33
31
|
e(o.target.result);
|
|
34
32
|
};
|
|
35
33
|
}
|
|
36
|
-
function
|
|
37
|
-
const { text: o, fontFamily:
|
|
34
|
+
function D(t, e = {}, i) {
|
|
35
|
+
const { text: o, fontFamily: s, color: a, fontSize: r, opacity: p, bottom: S, right: f, ratio: x } = e;
|
|
38
36
|
v(), P(t, C);
|
|
39
37
|
function v() {
|
|
40
|
-
|
|
38
|
+
n.text = o || n.text, n.fontFamily = s || n.fontFamily, n.color = a || n.color, n.fontSize = r || 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 u = new Image();
|
|
44
42
|
u.src = y, u.onload = function() {
|
|
45
43
|
const m = u.width, l = u.height;
|
|
46
44
|
c(m, l), g.drawImage(u, 0, 0, m, l), E(m, l);
|
|
47
|
-
const _ = document.getElementById("canvas").toDataURL(t.type,
|
|
45
|
+
const _ = document.getElementById("canvas").toDataURL(t.type, n.ratio), k = N(_, t.name);
|
|
48
46
|
i && i(k);
|
|
49
47
|
};
|
|
50
48
|
}
|
|
@@ -52,13 +50,13 @@ function q(t, e = {}, i) {
|
|
|
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 = u;
|
|
53
51
|
}
|
|
54
52
|
function E(y, u) {
|
|
55
|
-
const m =
|
|
56
|
-
g.font = `${l.fontSize}px ${
|
|
53
|
+
const m = n.text, l = U(m, y, u);
|
|
54
|
+
g.font = `${l.fontSize}px ${n.fontFamily}`, g.fillStyle = n.color, g.globalAlpha = n.opacity / 100, g.fillText(m, l.x, l.y);
|
|
57
55
|
}
|
|
58
56
|
function U(y, u, m) {
|
|
59
57
|
let l, _;
|
|
60
|
-
const $ =
|
|
61
|
-
|
|
58
|
+
const $ = n.fontSize / w.width * u;
|
|
59
|
+
n.bottom ? _ = w.height - n.bottom : _ = n.top, n.right ? l = w.width - n.right : l = n.left, g.font = `${n.fontSize}px ${n.fontFamily}`;
|
|
62
60
|
const j = Number(g.measureText(y).width);
|
|
63
61
|
l = l - j;
|
|
64
62
|
const z = l / w.width, R = _ / w.height;
|
|
@@ -69,45 +67,45 @@ function q(t, e = {}, i) {
|
|
|
69
67
|
};
|
|
70
68
|
}
|
|
71
69
|
}
|
|
72
|
-
const
|
|
70
|
+
const M = (t, e, i) => {
|
|
73
71
|
const o = JSON.stringify(i);
|
|
74
72
|
window.__ENV__ === "development" && console && console.log("put_policy = ", o);
|
|
75
|
-
const
|
|
76
|
-
window.__ENV__ === "development" && console && console.log("encoded = ",
|
|
77
|
-
const r = window.CryptoJS.HmacSHA1(
|
|
73
|
+
const s = V(q(o));
|
|
74
|
+
window.__ENV__ === "development" && console && console.log("encoded = ", s);
|
|
75
|
+
const r = window.CryptoJS.HmacSHA1(s, e).toString(window.CryptoJS.enc.Base64);
|
|
78
76
|
window.__ENV__ === "development" && console && console.log("encoded_signed=", r);
|
|
79
|
-
const
|
|
80
|
-
return window.__ENV__ === "development" && console && console.log("upload_token=",
|
|
77
|
+
const p = `${t}:${J(r)}:${s}`;
|
|
78
|
+
return window.__ENV__ === "development" && console && console.log("upload_token=", p), p;
|
|
81
79
|
};
|
|
82
|
-
function
|
|
80
|
+
function q(t) {
|
|
83
81
|
let e, i, o;
|
|
84
82
|
e = "";
|
|
85
|
-
const
|
|
86
|
-
for (i = 0; i <
|
|
83
|
+
const s = t.length;
|
|
84
|
+
for (i = 0; i < s; i++)
|
|
87
85
|
o = t.charCodeAt(i), o >= 1 && o <= 127 ? e += t.charAt(i) : o > 2047 ? (e += String.fromCharCode(224 | o >> 12 & 15), e += String.fromCharCode(128 | o >> 6 & 63), e += String.fromCharCode(128 | o >> 0 & 63)) : (e += String.fromCharCode(192 | o >> 6 & 31), e += String.fromCharCode(128 | o >> 0 & 63));
|
|
88
86
|
return e;
|
|
89
87
|
}
|
|
90
|
-
const
|
|
91
|
-
function
|
|
92
|
-
let e, i, o,
|
|
88
|
+
const h = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
|
|
89
|
+
function V(t) {
|
|
90
|
+
let e, i, o, s, a;
|
|
93
91
|
const r = t.length;
|
|
94
92
|
for (i = 0, e = ""; i < r; ) {
|
|
95
93
|
if (o = t.charCodeAt(i++) & 255, i === r) {
|
|
96
|
-
e +=
|
|
94
|
+
e += h.charAt(o >> 2), e += h.charAt((o & 3) << 4), e += "==";
|
|
97
95
|
break;
|
|
98
96
|
}
|
|
99
|
-
if (
|
|
100
|
-
e +=
|
|
97
|
+
if (s = t.charCodeAt(i++), i === r) {
|
|
98
|
+
e += h.charAt(o >> 2), e += h.charAt((o & 3) << 4 | (s & 240) >> 4), e += h.charAt((s & 15) << 2), e += "=";
|
|
101
99
|
break;
|
|
102
100
|
}
|
|
103
|
-
a = t.charCodeAt(i++), e +=
|
|
101
|
+
a = t.charCodeAt(i++), e += h.charAt(o >> 2), e += h.charAt((o & 3) << 4 | (s & 240) >> 4), e += h.charAt((s & 15) << 2 | (a & 192) >> 6), e += h.charAt(a & 63);
|
|
104
102
|
}
|
|
105
103
|
return e;
|
|
106
104
|
}
|
|
107
|
-
const
|
|
105
|
+
const J = function(t) {
|
|
108
106
|
return t = t.replace(/\+/g, "-"), t = t.replace(/\//g, "_"), t;
|
|
109
|
-
},
|
|
110
|
-
var
|
|
107
|
+
}, H = (t) => new window.OSS(t);
|
|
108
|
+
var Q = function() {
|
|
111
109
|
var t = this, e = t.$createElement, i = t._self._c || e;
|
|
112
110
|
return i("div", {
|
|
113
111
|
directives: [{
|
|
@@ -123,7 +121,7 @@ var X = function() {
|
|
|
123
121
|
attrs: {
|
|
124
122
|
"element-loading-text": t.loadText
|
|
125
123
|
}
|
|
126
|
-
}, [i(
|
|
124
|
+
}, [i("ElUpload", {
|
|
127
125
|
key: t.reload,
|
|
128
126
|
class: {
|
|
129
127
|
"avue-upload--list": t.listType === "picture-img",
|
|
@@ -166,14 +164,14 @@ var X = function() {
|
|
|
166
164
|
}, {
|
|
167
165
|
key: "file",
|
|
168
166
|
fn: function(o) {
|
|
169
|
-
var
|
|
167
|
+
var s = o.file;
|
|
170
168
|
return [t.$scopedSlots.default ? t._t("default", null, {
|
|
171
|
-
file:
|
|
172
|
-
}) : t.listType === "picture-card" ? i("span", [t.isMediaType(
|
|
169
|
+
file: s
|
|
170
|
+
}) : t.listType === "picture-card" ? i("span", [t.isMediaType(s.url) ? i(s.type, {
|
|
173
171
|
tag: "Component",
|
|
174
172
|
staticClass: "el-upload-list__item-thumbnail",
|
|
175
173
|
attrs: {
|
|
176
|
-
src:
|
|
174
|
+
src: s.url
|
|
177
175
|
}
|
|
178
176
|
}) : i("i", {
|
|
179
177
|
staticClass: "avue-upload__avatar el-icon-document"
|
|
@@ -185,7 +183,7 @@ var X = function() {
|
|
|
185
183
|
staticClass: "el-icon-zoom-in",
|
|
186
184
|
on: {
|
|
187
185
|
click: function(a) {
|
|
188
|
-
return a.stopPropagation(), t.handlePreview(
|
|
186
|
+
return a.stopPropagation(), t.handlePreview(s);
|
|
189
187
|
}
|
|
190
188
|
}
|
|
191
189
|
})]), i("span", {
|
|
@@ -194,47 +192,47 @@ var X = function() {
|
|
|
194
192
|
staticClass: "el-icon-delete",
|
|
195
193
|
on: {
|
|
196
194
|
click: function(a) {
|
|
197
|
-
return a.stopPropagation(), t.handleRemove(
|
|
195
|
+
return a.stopPropagation(), t.handleRemove(s);
|
|
198
196
|
}
|
|
199
197
|
}
|
|
200
198
|
})])])], 1) : t.listType === "picture" ? i("span", {
|
|
201
199
|
on: {
|
|
202
200
|
click: function(a) {
|
|
203
|
-
return a.stopPropagation(), t.handlePreview(
|
|
201
|
+
return a.stopPropagation(), t.handlePreview(s);
|
|
204
202
|
}
|
|
205
203
|
}
|
|
206
|
-
}, [i(
|
|
204
|
+
}, [i(s.type, {
|
|
207
205
|
tag: "Component",
|
|
208
206
|
staticClass: "el-upload-list__item-thumbnail",
|
|
209
207
|
attrs: {
|
|
210
|
-
src:
|
|
208
|
+
src: s.url
|
|
211
209
|
}
|
|
212
210
|
}), i("a", {
|
|
213
211
|
staticClass: "el-upload-list__item-name"
|
|
214
212
|
}, [i("i", {
|
|
215
213
|
staticClass: "el-icon-document"
|
|
216
|
-
}), t._v(" " + t._s(
|
|
214
|
+
}), t._v(" " + t._s(s.name) + " ")]), i("i", {
|
|
217
215
|
staticClass: "el-icon-close",
|
|
218
216
|
on: {
|
|
219
217
|
click: function(a) {
|
|
220
|
-
return a.stopPropagation(), t.handleRemove(
|
|
218
|
+
return a.stopPropagation(), t.handleRemove(s);
|
|
221
219
|
}
|
|
222
220
|
}
|
|
223
221
|
})], 1) : i("span", {
|
|
224
222
|
on: {
|
|
225
223
|
click: function(a) {
|
|
226
|
-
return a.stopPropagation(), t.handlePreview(
|
|
224
|
+
return a.stopPropagation(), t.handlePreview(s);
|
|
227
225
|
}
|
|
228
226
|
}
|
|
229
227
|
}, [i("a", {
|
|
230
228
|
staticClass: "el-upload-list__item-name"
|
|
231
229
|
}, [i("i", {
|
|
232
230
|
staticClass: "el-icon-document"
|
|
233
|
-
}), t._v(" " + t._s(
|
|
231
|
+
}), t._v(" " + t._s(s.name) + " ")]), t.disabled ? t._e() : i("i", {
|
|
234
232
|
staticClass: "el-icon-close",
|
|
235
233
|
on: {
|
|
236
234
|
click: function(a) {
|
|
237
|
-
return a.stopPropagation(), t.handleRemove(
|
|
235
|
+
return a.stopPropagation(), t.handleRemove(s);
|
|
238
236
|
}
|
|
239
237
|
}
|
|
240
238
|
})])];
|
|
@@ -299,20 +297,20 @@ var X = function() {
|
|
|
299
297
|
staticClass: "el-icon-upload"
|
|
300
298
|
}), i("div", {
|
|
301
299
|
staticClass: "el-upload__text"
|
|
302
|
-
}, [i("em", [t._v(t._s(t.fileText || "上传"))])])] : [i(
|
|
300
|
+
}, [i("em", [t._v(t._s(t.fileText || "上传"))])])] : [i("ElButton", {
|
|
303
301
|
attrs: {
|
|
304
302
|
icon: "el-icon-upload",
|
|
305
303
|
size: t.size,
|
|
306
304
|
type: "primary"
|
|
307
305
|
}
|
|
308
306
|
}, [t._v(" " + t._s(t.fileText || "上传") + " ")])]], 2)], 1);
|
|
309
|
-
},
|
|
307
|
+
}, W = [];
|
|
310
308
|
function O(t, e = "") {
|
|
311
309
|
return e.match(/(^http:\/\/|^https:\/\/|^\/\/|data:image\/)/) ? e : t + e;
|
|
312
310
|
}
|
|
313
|
-
const
|
|
311
|
+
const X = {
|
|
314
312
|
name: "FyUpload",
|
|
315
|
-
mixins: [I,
|
|
313
|
+
mixins: [I, B],
|
|
316
314
|
props: {
|
|
317
315
|
qiniu: Object,
|
|
318
316
|
ali: Object,
|
|
@@ -416,13 +414,13 @@ const G = {
|
|
|
416
414
|
return (this.text || []).forEach((e, i) => {
|
|
417
415
|
if (e) {
|
|
418
416
|
const o = this.isObject ? e[this.labelKey] : e.substring(e.lastIndexOf("/") + 1);
|
|
419
|
-
let
|
|
420
|
-
|
|
417
|
+
let s = this.isObject ? e[this.valueKey] : e;
|
|
418
|
+
s = O(this.homeUrl, s), t.push({
|
|
421
419
|
uid: `${i}`,
|
|
422
420
|
status: "done",
|
|
423
|
-
type: this.isMediaType(
|
|
421
|
+
type: this.isMediaType(s),
|
|
424
422
|
name: o,
|
|
425
|
-
url:
|
|
423
|
+
url: s
|
|
426
424
|
});
|
|
427
425
|
}
|
|
428
426
|
}), t;
|
|
@@ -494,8 +492,8 @@ const G = {
|
|
|
494
492
|
return;
|
|
495
493
|
}
|
|
496
494
|
const o = Object.assign(this.headers, { "Content-Type": "multipart/form-data" });
|
|
497
|
-
let
|
|
498
|
-
const r = new FormData(),
|
|
495
|
+
let s = {}, a = {};
|
|
496
|
+
const r = new FormData(), p = () => {
|
|
499
497
|
const f = (x) => {
|
|
500
498
|
let v = this.action;
|
|
501
499
|
for (const c in this.data)
|
|
@@ -506,23 +504,23 @@ const G = {
|
|
|
506
504
|
A.logs("CryptoJS"), this.hide();
|
|
507
505
|
return;
|
|
508
506
|
}
|
|
509
|
-
|
|
510
|
-
const c =
|
|
511
|
-
scope:
|
|
512
|
-
deadline: (/* @__PURE__ */ new Date()).getTime() +
|
|
507
|
+
s = this.qiniu || this.$AVUE.qiniu;
|
|
508
|
+
const c = M(s.AK, s.SK, {
|
|
509
|
+
scope: s.scope,
|
|
510
|
+
deadline: (/* @__PURE__ */ new Date()).getTime() + s.deadline * 3600
|
|
513
511
|
});
|
|
514
|
-
r.append("token", c), v =
|
|
512
|
+
r.append("token", c), v = s.bucket;
|
|
515
513
|
} else if (this.isAliOss) {
|
|
516
514
|
if (!window.OSS) {
|
|
517
515
|
A.logs("AliOSS"), this.hide();
|
|
518
516
|
return;
|
|
519
517
|
}
|
|
520
|
-
|
|
518
|
+
s = this.ali || this.$AVUE.ali, a = H(s);
|
|
521
519
|
}
|
|
522
520
|
(() => this.isAliOss ? a.put(C.name, C, {
|
|
523
521
|
headers: this.headers
|
|
524
522
|
}) : this.$axios.post(v, r, { headers: o }))().then((c) => {
|
|
525
|
-
this.res = {}, this.isQiniuOss && (c.data.key =
|
|
523
|
+
this.res = {}, this.isQiniuOss && (c.data.key = s.url + c.data.key), this.res = K(this.isAliOss ? c : c.data, this.resKey), typeof this.uploadAfter == "function" ? this.uploadAfter(this.res, this.show, this.hide, this.column) : this.show();
|
|
526
524
|
}).catch((c) => {
|
|
527
525
|
this.hide(c);
|
|
528
526
|
});
|
|
@@ -530,12 +528,12 @@ const G = {
|
|
|
530
528
|
typeof this.uploadBefore == "function" ? this.uploadBefore(e, f, this.hide, this.column) : f();
|
|
531
529
|
};
|
|
532
530
|
if (F(e.name) !== "img") {
|
|
533
|
-
|
|
531
|
+
p();
|
|
534
532
|
return;
|
|
535
533
|
}
|
|
536
534
|
const S = () => {
|
|
537
|
-
b(this.canvasOption) ?
|
|
538
|
-
e = f,
|
|
535
|
+
b(this.canvasOption) ? p() : D(e, this.canvasOption, (f) => {
|
|
536
|
+
e = f, p();
|
|
539
537
|
});
|
|
540
538
|
};
|
|
541
539
|
b(this.cropperOption) ? S() : P(e, (f) => {
|
|
@@ -572,23 +570,23 @@ const G = {
|
|
|
572
570
|
}
|
|
573
571
|
}
|
|
574
572
|
}, T = {};
|
|
575
|
-
var
|
|
576
|
-
G,
|
|
573
|
+
var Y = /* @__PURE__ */ L(
|
|
577
574
|
X,
|
|
578
|
-
|
|
575
|
+
Q,
|
|
576
|
+
W,
|
|
579
577
|
!1,
|
|
580
|
-
|
|
578
|
+
G,
|
|
581
579
|
null,
|
|
582
580
|
null,
|
|
583
581
|
null
|
|
584
582
|
);
|
|
585
|
-
function
|
|
583
|
+
function G(t) {
|
|
586
584
|
for (let e in T)
|
|
587
585
|
this[e] = T[e];
|
|
588
586
|
}
|
|
589
|
-
const
|
|
590
|
-
return
|
|
587
|
+
const st = /* @__PURE__ */ function() {
|
|
588
|
+
return Y.exports;
|
|
591
589
|
}();
|
|
592
590
|
export {
|
|
593
|
-
|
|
591
|
+
st as default
|
|
594
592
|
};
|
package/guide-steps/index.mjs
CHANGED
|
@@ -1,33 +1,31 @@
|
|
|
1
|
-
import n from "
|
|
2
|
-
|
|
3
|
-
import { n as u } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
4
|
-
var o = function() {
|
|
1
|
+
import { n as i } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
2
|
+
var n = function() {
|
|
5
3
|
var t = this, e = t.$createElement, a = t._self._c || e;
|
|
6
|
-
return a(
|
|
4
|
+
return a("ElSteps", {
|
|
7
5
|
staticClass: "guide-steps",
|
|
8
6
|
attrs: {
|
|
9
7
|
"align-center": ""
|
|
10
8
|
}
|
|
11
|
-
}, t._l(t.steps, function(
|
|
12
|
-
return a(
|
|
13
|
-
key:
|
|
9
|
+
}, t._l(t.steps, function(r, s) {
|
|
10
|
+
return a("ElStep", {
|
|
11
|
+
key: r.label,
|
|
14
12
|
class: [{
|
|
15
|
-
"current important": t.value ===
|
|
16
|
-
disabled: !t.available(
|
|
17
|
-
available: !t.ready[
|
|
13
|
+
"current important": t.value === s,
|
|
14
|
+
disabled: !t.available(s),
|
|
15
|
+
available: !t.ready[s] && t.available(s)
|
|
18
16
|
}],
|
|
19
17
|
attrs: {
|
|
20
|
-
status: t.ready[
|
|
21
|
-
title:
|
|
18
|
+
status: t.ready[s] ? "success" : "",
|
|
19
|
+
title: r.label
|
|
22
20
|
},
|
|
23
21
|
nativeOn: {
|
|
24
|
-
click: function(
|
|
25
|
-
return t.activeStep(
|
|
22
|
+
click: function(_) {
|
|
23
|
+
return t.activeStep(s);
|
|
26
24
|
}
|
|
27
25
|
}
|
|
28
26
|
});
|
|
29
27
|
}), 1);
|
|
30
|
-
},
|
|
28
|
+
}, u = [];
|
|
31
29
|
const c = {
|
|
32
30
|
name: "GuideSteps",
|
|
33
31
|
props: {
|
|
@@ -74,23 +72,23 @@ const c = {
|
|
|
74
72
|
}
|
|
75
73
|
}
|
|
76
74
|
}, l = {};
|
|
77
|
-
var
|
|
75
|
+
var o = /* @__PURE__ */ i(
|
|
78
76
|
c,
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
n,
|
|
78
|
+
u,
|
|
81
79
|
!1,
|
|
82
|
-
|
|
80
|
+
p,
|
|
83
81
|
null,
|
|
84
82
|
null,
|
|
85
83
|
null
|
|
86
84
|
);
|
|
87
|
-
function
|
|
85
|
+
function p(t) {
|
|
88
86
|
for (let e in l)
|
|
89
87
|
this[e] = l[e];
|
|
90
88
|
}
|
|
91
|
-
const
|
|
92
|
-
return
|
|
89
|
+
const f = /* @__PURE__ */ function() {
|
|
90
|
+
return o.exports;
|
|
93
91
|
}();
|
|
94
92
|
export {
|
|
95
|
-
|
|
93
|
+
f as default
|
|
96
94
|
};
|