@web-utils/component 2.8.1 → 2.8.2
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/base.css +1 -1
- package/card/index.mjs +33 -37
- package/chat/index.mjs +132 -123
- package/chunks/{dataformat.25e22176.mjs → dataformat.ab62230f.mjs} +1 -1
- package/chunks/{detail.6e53ede8.mjs → detail.6e46de33.mjs} +1 -1
- package/chunks/dic.7f13b573.mjs +130 -0
- package/chunks/{event.a018cb06.mjs → event.1ac32f1d.mjs} +2 -2
- package/chunks/{init.f04c7036.mjs → init.47ce5ed9.mjs} +2 -2
- package/chunks/util.505913d9.mjs +266 -0
- package/column/index.mjs +2 -2
- package/column-default/index.mjs +1 -1
- package/column-dynamic/index.mjs +1 -1
- package/column-menu/index.mjs +81 -79
- package/column-slot/index.mjs +8 -7
- package/comment/index.mjs +6 -10
- package/data-pay/index.mjs +16 -13
- package/data-table-picker/index.mjs +22 -22
- package/dialog-excel/index.mjs +8 -8
- package/dialog-filter/index.mjs +4 -2
- package/dialog-form/index.mjs +6 -6
- package/editable-tree/index.mjs +5 -5
- package/flow/index.mjs +11 -11
- package/flow/style.css +1 -1
- package/flow-node/index.mjs +2 -2
- package/form-button/index.mjs +16 -38
- package/form-group/index.mjs +28 -33
- package/form-temp/index.mjs +15 -27
- package/fy-array/index.mjs +44 -42
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +2 -1
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +29 -31
- package/fy-date/index.mjs +1 -1
- package/fy-dialog-form/index.mjs +5 -11
- package/fy-draggable/index.mjs +3 -3
- package/fy-dynamic/index.mjs +3 -3
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +133 -122
- package/fy-form-design/index.mjs +2595 -2610
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +10 -15
- package/fy-input-color/index.mjs +1 -1
- package/fy-input-icon/index.mjs +21 -16
- package/fy-input-map/index.mjs +22 -19
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +1 -1
- package/fy-input-tree/index.mjs +5 -6
- package/fy-radio/index.mjs +3 -1
- package/fy-rate/index.mjs +2 -1
- package/fy-select/index.mjs +29 -28
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +2 -1
- package/fy-tabs/index.mjs +19 -17
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +8 -6
- package/fy-u-editor/index.mjs +10 -14
- package/fy-upload/index.mjs +85 -84
- package/header-menu/index.mjs +1 -1
- package/header-search/index.mjs +7 -5
- package/image-cropper/index.mjs +1 -1
- package/image-preview/index.mjs +1 -1
- package/index.cjs +39 -39
- package/index.css +1 -1
- package/index.mjs +16577 -16591
- package/license/index.mjs +1 -1
- package/login/index.mjs +1 -1
- package/monaco-editor/index.mjs +3 -3
- package/package.json +1 -1
- package/process-designer/index.mjs +10 -2
- package/queue/index.mjs +3 -8
- package/queue/style.css +1 -0
- package/record-video/index.mjs +1 -1
- package/search/index.mjs +2 -2
- package/search-popover/index.mjs +25 -24
- package/sign/index.mjs +17 -18
- package/sign/style.css +1 -1
- package/table-page/index.mjs +21 -23
- package/text-ellipsis/index.mjs +1 -1
- package/verify/index.mjs +1 -1
- package/web-types.json +52 -166
- package/chunks/dic.e8280157.mjs +0 -130
- package/chunks/util.17330567.mjs +0 -266
package/fy-u-editor/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
1
|
+
var v = Object.defineProperty;
|
|
2
2
|
var u = Object.getOwnPropertySymbols;
|
|
3
3
|
var m = Object.prototype.hasOwnProperty, y = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var f = (t, e, r) => e in t ?
|
|
4
|
+
var f = (t, e, r) => e in t ? v(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, h = (t, e) => {
|
|
5
5
|
for (var r in e || (e = {}))
|
|
6
6
|
m.call(e, r) && f(t, r, e[r]);
|
|
7
7
|
if (u)
|
|
@@ -35,8 +35,8 @@ var p = (t, e, r) => new Promise((s, i) => {
|
|
|
35
35
|
c((r = r.apply(t, e)).next());
|
|
36
36
|
});
|
|
37
37
|
import "@wangeditor/editor/dist/css/style.css";
|
|
38
|
-
import { createEditor as
|
|
39
|
-
import { g as x } from "../chunks/util.
|
|
38
|
+
import { createEditor as _, createToolbar as b } from "@wangeditor/editor";
|
|
39
|
+
import { g as x } from "../chunks/util.505913d9.mjs";
|
|
40
40
|
import { n as F } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
41
41
|
const A = (t) => {
|
|
42
42
|
const { region: e, endpoint: r, accessKeyId: s, accessKeySecret: i, bucket: a } = t;
|
|
@@ -200,7 +200,7 @@ function K(t) {
|
|
|
200
200
|
}
|
|
201
201
|
var H = function(t) {
|
|
202
202
|
return t = t.replace(/\+/g, "-"), t = t.replace(/\//g, "_"), t;
|
|
203
|
-
},
|
|
203
|
+
}, k = function() {
|
|
204
204
|
var t = this, e = t.$createElement, r = t._self._c || e;
|
|
205
205
|
return r("div", {
|
|
206
206
|
staticClass: "avue-ueditor"
|
|
@@ -211,8 +211,8 @@ var H = function(t) {
|
|
|
211
211
|
ref: "editor",
|
|
212
212
|
staticClass: "fy-editor"
|
|
213
213
|
})]);
|
|
214
|
-
},
|
|
215
|
-
const
|
|
214
|
+
}, E = [];
|
|
215
|
+
const j = {
|
|
216
216
|
name: "FyUEditor",
|
|
217
217
|
props: {
|
|
218
218
|
data: {
|
|
@@ -235,10 +235,6 @@ const E = {
|
|
|
235
235
|
type: Object,
|
|
236
236
|
default: () => ({})
|
|
237
237
|
},
|
|
238
|
-
options: {
|
|
239
|
-
type: Object,
|
|
240
|
-
default: () => ({})
|
|
241
|
-
},
|
|
242
238
|
ali: {
|
|
243
239
|
type: Object,
|
|
244
240
|
default: () => ({})
|
|
@@ -333,14 +329,14 @@ const E = {
|
|
|
333
329
|
this.$emit("input", n);
|
|
334
330
|
}
|
|
335
331
|
}, i);
|
|
336
|
-
this.editor = Object.seal(
|
|
332
|
+
this.editor = Object.seal(_({
|
|
337
333
|
selector: this.$refs.editor,
|
|
338
334
|
config: a,
|
|
339
335
|
html: this.value,
|
|
340
336
|
mode: t
|
|
341
337
|
}));
|
|
342
338
|
const l = h({}, this.toolbarConfig);
|
|
343
|
-
this.toolbar =
|
|
339
|
+
this.toolbar = b({
|
|
344
340
|
editor: this.editor,
|
|
345
341
|
selector: this.$refs.toolbar,
|
|
346
342
|
config: l,
|
|
@@ -388,9 +384,9 @@ const E = {
|
|
|
388
384
|
}
|
|
389
385
|
}, C = {};
|
|
390
386
|
var U = /* @__PURE__ */ F(
|
|
391
|
-
E,
|
|
392
387
|
j,
|
|
393
388
|
k,
|
|
389
|
+
E,
|
|
394
390
|
!1,
|
|
395
391
|
I,
|
|
396
392
|
null,
|
package/fy-upload/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { p as I, e as
|
|
2
|
-
import {
|
|
1
|
+
import { p as I, e as B } from "../chunks/event.1ac32f1d.mjs";
|
|
2
|
+
import { B as N, i as k, g as K } from "../chunks/util.505913d9.mjs";
|
|
3
3
|
import { p as F } from "../chunks/packages.1fc9ccba.mjs";
|
|
4
|
-
import { isBlank as
|
|
4
|
+
import { isBlank as b } from "@web-utils/core";
|
|
5
5
|
import { n as L } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
6
6
|
let d, g;
|
|
7
|
-
const
|
|
7
|
+
const w = {
|
|
8
8
|
width: 200,
|
|
9
9
|
height: 200
|
|
10
10
|
}, n = {
|
|
@@ -27,22 +27,22 @@ const S = {
|
|
|
27
27
|
};
|
|
28
28
|
function P(t, e) {
|
|
29
29
|
const i = new FileReader();
|
|
30
|
-
i.readAsDataURL(t), i.onload = function(
|
|
31
|
-
e(
|
|
30
|
+
i.readAsDataURL(t), i.onload = function(o) {
|
|
31
|
+
e(o.target.result);
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
function D(t, e = {}, i) {
|
|
35
|
-
const { text:
|
|
35
|
+
const { text: o, fontFamily: s, color: a, fontSize: r, opacity: p, bottom: S, right: f, ratio: x } = e;
|
|
36
36
|
v(), P(t, C);
|
|
37
37
|
function v() {
|
|
38
|
-
n.text =
|
|
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;
|
|
39
39
|
}
|
|
40
40
|
function C(y) {
|
|
41
41
|
const u = new Image();
|
|
42
42
|
u.src = y, u.onload = function() {
|
|
43
43
|
const m = u.width, l = u.height;
|
|
44
44
|
c(m, l), g.drawImage(u, 0, 0, m, l), E(m, l);
|
|
45
|
-
const _ = document.getElementById("canvas").toDataURL(t.type, n.ratio), O =
|
|
45
|
+
const _ = document.getElementById("canvas").toDataURL(t.type, n.ratio), O = N(_, t.name);
|
|
46
46
|
i && i(O);
|
|
47
47
|
};
|
|
48
48
|
}
|
|
@@ -55,12 +55,12 @@ function D(t, e = {}, i) {
|
|
|
55
55
|
}
|
|
56
56
|
function U(y, u, m) {
|
|
57
57
|
let l, _;
|
|
58
|
-
const $ = n.fontSize /
|
|
59
|
-
n.bottom ? _ =
|
|
60
|
-
const
|
|
61
|
-
l = l -
|
|
62
|
-
const
|
|
63
|
-
return l =
|
|
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}`;
|
|
60
|
+
const j = Number(g.measureText(y).width);
|
|
61
|
+
l = l - j;
|
|
62
|
+
const z = l / w.width, R = _ / w.height;
|
|
63
|
+
return l = z * u, _ = R * m, {
|
|
64
64
|
x: l,
|
|
65
65
|
y: _,
|
|
66
66
|
fontSize: $
|
|
@@ -68,42 +68,43 @@ function D(t, e = {}, i) {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
const M = (t, e, i) => {
|
|
71
|
-
const
|
|
72
|
-
window.__ENV__ === "development" && console && console.log("put_policy = ",
|
|
73
|
-
const
|
|
74
|
-
window.__ENV__ === "development" && console && console.log("encoded = ",
|
|
75
|
-
const r = CryptoJS.HmacSHA1(
|
|
71
|
+
const o = JSON.stringify(i);
|
|
72
|
+
window.__ENV__ === "development" && console && console.log("put_policy = ", o);
|
|
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);
|
|
76
76
|
window.__ENV__ === "development" && console && console.log("encoded_signed=", r);
|
|
77
|
-
const p = `${t}:${J(r)}:${
|
|
77
|
+
const p = `${t}:${J(r)}:${s}`;
|
|
78
78
|
return window.__ENV__ === "development" && console && console.log("upload_token=", p), p;
|
|
79
79
|
};
|
|
80
80
|
function q(t) {
|
|
81
|
-
let e, i,
|
|
81
|
+
let e, i, o;
|
|
82
82
|
e = "";
|
|
83
|
-
const
|
|
84
|
-
for (i = 0; i <
|
|
85
|
-
|
|
83
|
+
const s = t.length;
|
|
84
|
+
for (i = 0; i < s; i++)
|
|
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));
|
|
86
86
|
return e;
|
|
87
87
|
}
|
|
88
88
|
const h = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
|
|
89
89
|
function V(t) {
|
|
90
|
-
let e, i,
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
let e, i, o, s, a;
|
|
91
|
+
const r = t.length;
|
|
92
|
+
for (i = 0, e = ""; i < r; ) {
|
|
93
|
+
if (o = t.charCodeAt(i++) & 255, i === r) {
|
|
93
94
|
e += h.charAt(o >> 2), e += h.charAt((o & 3) << 4), e += "==";
|
|
94
95
|
break;
|
|
95
96
|
}
|
|
96
|
-
if (
|
|
97
|
-
e += h.charAt(o >> 2), e += h.charAt((o & 3) << 4 | (
|
|
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 += "=";
|
|
98
99
|
break;
|
|
99
100
|
}
|
|
100
|
-
|
|
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);
|
|
101
102
|
}
|
|
102
103
|
return e;
|
|
103
104
|
}
|
|
104
105
|
const J = function(t) {
|
|
105
106
|
return t = t.replace(/\+/g, "-"), t = t.replace(/\//g, "_"), t;
|
|
106
|
-
}, H = (t) => new OSS(t);
|
|
107
|
+
}, H = (t) => new window.OSS(t);
|
|
107
108
|
var Q = function() {
|
|
108
109
|
var t = this, e = t.$createElement, i = t._self._c || e;
|
|
109
110
|
return i("div", {
|
|
@@ -145,7 +146,7 @@ var Q = function() {
|
|
|
145
146
|
"file-list": t.fileList
|
|
146
147
|
},
|
|
147
148
|
nativeOn: {
|
|
148
|
-
click: function(
|
|
149
|
+
click: function(o) {
|
|
149
150
|
return t.handleClick.apply(null, arguments);
|
|
150
151
|
}
|
|
151
152
|
},
|
|
@@ -162,15 +163,15 @@ var Q = function() {
|
|
|
162
163
|
proxy: !0
|
|
163
164
|
}, {
|
|
164
165
|
key: "file",
|
|
165
|
-
fn: function(
|
|
166
|
-
var
|
|
166
|
+
fn: function(o) {
|
|
167
|
+
var s = o.file;
|
|
167
168
|
return [t.$scopedSlots.default ? t._t("default", null, {
|
|
168
|
-
file:
|
|
169
|
-
}) : 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, {
|
|
170
171
|
tag: "Component",
|
|
171
172
|
staticClass: "el-upload-list__item-thumbnail",
|
|
172
173
|
attrs: {
|
|
173
|
-
src:
|
|
174
|
+
src: s.url
|
|
174
175
|
}
|
|
175
176
|
}) : i("i", {
|
|
176
177
|
staticClass: "avue-upload__avatar el-icon-document"
|
|
@@ -182,7 +183,7 @@ var Q = function() {
|
|
|
182
183
|
staticClass: "el-icon-zoom-in",
|
|
183
184
|
on: {
|
|
184
185
|
click: function(a) {
|
|
185
|
-
return a.stopPropagation(), t.handlePreview(
|
|
186
|
+
return a.stopPropagation(), t.handlePreview(s);
|
|
186
187
|
}
|
|
187
188
|
}
|
|
188
189
|
})]), i("span", {
|
|
@@ -191,47 +192,47 @@ var Q = function() {
|
|
|
191
192
|
staticClass: "el-icon-delete",
|
|
192
193
|
on: {
|
|
193
194
|
click: function(a) {
|
|
194
|
-
return a.stopPropagation(), t.handleRemove(
|
|
195
|
+
return a.stopPropagation(), t.handleRemove(s);
|
|
195
196
|
}
|
|
196
197
|
}
|
|
197
198
|
})])])], 1) : t.listType === "picture" ? i("span", {
|
|
198
199
|
on: {
|
|
199
200
|
click: function(a) {
|
|
200
|
-
return a.stopPropagation(), t.handlePreview(
|
|
201
|
+
return a.stopPropagation(), t.handlePreview(s);
|
|
201
202
|
}
|
|
202
203
|
}
|
|
203
|
-
}, [i(
|
|
204
|
+
}, [i(s.type, {
|
|
204
205
|
tag: "Component",
|
|
205
206
|
staticClass: "el-upload-list__item-thumbnail",
|
|
206
207
|
attrs: {
|
|
207
|
-
src:
|
|
208
|
+
src: s.url
|
|
208
209
|
}
|
|
209
210
|
}), i("a", {
|
|
210
211
|
staticClass: "el-upload-list__item-name"
|
|
211
212
|
}, [i("i", {
|
|
212
213
|
staticClass: "el-icon-document"
|
|
213
|
-
}), t._v(" " + t._s(
|
|
214
|
+
}), t._v(" " + t._s(s.name) + " ")]), i("i", {
|
|
214
215
|
staticClass: "el-icon-close",
|
|
215
216
|
on: {
|
|
216
217
|
click: function(a) {
|
|
217
|
-
return a.stopPropagation(), t.handleRemove(
|
|
218
|
+
return a.stopPropagation(), t.handleRemove(s);
|
|
218
219
|
}
|
|
219
220
|
}
|
|
220
221
|
})], 1) : i("span", {
|
|
221
222
|
on: {
|
|
222
223
|
click: function(a) {
|
|
223
|
-
return a.stopPropagation(), t.handlePreview(
|
|
224
|
+
return a.stopPropagation(), t.handlePreview(s);
|
|
224
225
|
}
|
|
225
226
|
}
|
|
226
227
|
}, [i("a", {
|
|
227
228
|
staticClass: "el-upload-list__item-name"
|
|
228
229
|
}, [i("i", {
|
|
229
230
|
staticClass: "el-icon-document"
|
|
230
|
-
}), t._v(" " + t._s(
|
|
231
|
+
}), t._v(" " + t._s(s.name) + " ")]), t.disabled ? t._e() : i("i", {
|
|
231
232
|
staticClass: "el-icon-close",
|
|
232
233
|
on: {
|
|
233
234
|
click: function(a) {
|
|
234
|
-
return a.stopPropagation(), t.handleRemove(
|
|
235
|
+
return a.stopPropagation(), t.handleRemove(s);
|
|
235
236
|
}
|
|
236
237
|
}
|
|
237
238
|
})])];
|
|
@@ -250,14 +251,14 @@ var Q = function() {
|
|
|
250
251
|
src: t.imgUrl
|
|
251
252
|
},
|
|
252
253
|
on: {
|
|
253
|
-
mouseover: function(
|
|
254
|
+
mouseover: function(o) {
|
|
254
255
|
t.menu = !0;
|
|
255
256
|
}
|
|
256
257
|
}
|
|
257
258
|
}) : t.imgUrl ? i("i", {
|
|
258
259
|
staticClass: "avue-upload__avatar el-icon-document",
|
|
259
260
|
on: {
|
|
260
|
-
mouseover: function(
|
|
261
|
+
mouseover: function(o) {
|
|
261
262
|
t.menu = !0;
|
|
262
263
|
}
|
|
263
264
|
}
|
|
@@ -266,21 +267,21 @@ var Q = function() {
|
|
|
266
267
|
}), t.menu ? i("div", {
|
|
267
268
|
staticClass: "el-upload-list__item-actions avue-upload__menu",
|
|
268
269
|
on: {
|
|
269
|
-
mouseover: function(
|
|
270
|
+
mouseover: function(o) {
|
|
270
271
|
t.menu = !0;
|
|
271
272
|
},
|
|
272
|
-
mouseout: function(
|
|
273
|
+
mouseout: function(o) {
|
|
273
274
|
t.menu = !1;
|
|
274
275
|
},
|
|
275
|
-
click: function(
|
|
276
|
-
|
|
276
|
+
click: function(o) {
|
|
277
|
+
o.stopPropagation();
|
|
277
278
|
}
|
|
278
279
|
}
|
|
279
280
|
}, [i("i", {
|
|
280
281
|
staticClass: "el-icon-zoom-in",
|
|
281
282
|
on: {
|
|
282
|
-
click: function(
|
|
283
|
-
return
|
|
283
|
+
click: function(o) {
|
|
284
|
+
return o.stopPropagation(), t.handlePreview({
|
|
284
285
|
url: t.imgUrl
|
|
285
286
|
});
|
|
286
287
|
}
|
|
@@ -288,8 +289,8 @@ var Q = function() {
|
|
|
288
289
|
}), t.disabled ? t._e() : i("i", {
|
|
289
290
|
staticClass: "el-icon-delete",
|
|
290
291
|
on: {
|
|
291
|
-
click: function(
|
|
292
|
-
return
|
|
292
|
+
click: function(o) {
|
|
293
|
+
return o.stopPropagation(), t.handleDelete(t.imgUrl);
|
|
293
294
|
}
|
|
294
295
|
}
|
|
295
296
|
})]) : t._e()]] : t.dragFile ? [i("i", {
|
|
@@ -309,7 +310,7 @@ function A(t, e = "") {
|
|
|
309
310
|
}
|
|
310
311
|
const X = {
|
|
311
312
|
name: "FyUpload",
|
|
312
|
-
mixins: [I,
|
|
313
|
+
mixins: [I, B],
|
|
313
314
|
props: {
|
|
314
315
|
qiniu: Object,
|
|
315
316
|
ali: Object,
|
|
@@ -406,20 +407,20 @@ const X = {
|
|
|
406
407
|
},
|
|
407
408
|
// 单个头像图片
|
|
408
409
|
imgUrl() {
|
|
409
|
-
return
|
|
410
|
+
return b(this.text) ? null : A(this.homeUrl, this.text[0]);
|
|
410
411
|
},
|
|
411
412
|
fileList() {
|
|
412
413
|
const t = [];
|
|
413
414
|
return (this.text || []).forEach((e, i) => {
|
|
414
415
|
if (e) {
|
|
415
|
-
const
|
|
416
|
-
let
|
|
417
|
-
|
|
416
|
+
const o = this.isObject ? e[this.labelKey] : e.substring(e.lastIndexOf("/") + 1);
|
|
417
|
+
let s = this.isObject ? e[this.valueKey] : e;
|
|
418
|
+
s = A(this.homeUrl, s), t.push({
|
|
418
419
|
uid: `${i}`,
|
|
419
420
|
status: "done",
|
|
420
|
-
type: this.isMediaType(
|
|
421
|
-
name:
|
|
422
|
-
url:
|
|
421
|
+
type: this.isMediaType(s),
|
|
422
|
+
name: o,
|
|
423
|
+
url: s
|
|
423
424
|
});
|
|
424
425
|
}
|
|
425
426
|
}), t;
|
|
@@ -465,8 +466,8 @@ const X = {
|
|
|
465
466
|
},
|
|
466
467
|
delete(t) {
|
|
467
468
|
(this.text || []).forEach((e, i) => {
|
|
468
|
-
const
|
|
469
|
-
A(this.homeUrl,
|
|
469
|
+
const o = this.isObject ? e[this.valueKey] : e;
|
|
470
|
+
A(this.homeUrl, o) === t.url && this.text.splice(i, 1);
|
|
470
471
|
});
|
|
471
472
|
},
|
|
472
473
|
show(t) {
|
|
@@ -486,12 +487,12 @@ const X = {
|
|
|
486
487
|
this.loading = !0;
|
|
487
488
|
let e = t.file;
|
|
488
489
|
const i = e.size / 1024;
|
|
489
|
-
if (!
|
|
490
|
+
if (!b(i) && i > this.fileSize) {
|
|
490
491
|
this.hide("文件太大不符合");
|
|
491
492
|
return;
|
|
492
493
|
}
|
|
493
|
-
const
|
|
494
|
-
let
|
|
494
|
+
const o = Object.assign(this.headers, { "Content-Type": "multipart/form-data" });
|
|
495
|
+
let s = {}, a = {};
|
|
495
496
|
const r = new FormData(), p = () => {
|
|
496
497
|
const f = (x) => {
|
|
497
498
|
let v = this.action;
|
|
@@ -503,23 +504,23 @@ const X = {
|
|
|
503
504
|
F.logs("CryptoJS"), this.hide();
|
|
504
505
|
return;
|
|
505
506
|
}
|
|
506
|
-
|
|
507
|
-
const c = M(
|
|
508
|
-
scope:
|
|
509
|
-
deadline: new Date().getTime() +
|
|
507
|
+
s = this.qiniu || this.$AVUE.qiniu;
|
|
508
|
+
const c = M(s.AK, s.SK, {
|
|
509
|
+
scope: s.scope,
|
|
510
|
+
deadline: new Date().getTime() + s.deadline * 3600
|
|
510
511
|
});
|
|
511
|
-
r.append("token", c), v =
|
|
512
|
+
r.append("token", c), v = s.bucket;
|
|
512
513
|
} else if (this.isAliOss) {
|
|
513
514
|
if (!window.OSS) {
|
|
514
515
|
F.logs("AliOSS"), this.hide();
|
|
515
516
|
return;
|
|
516
517
|
}
|
|
517
|
-
|
|
518
|
+
s = this.ali || this.$AVUE.ali, a = H(s);
|
|
518
519
|
}
|
|
519
520
|
(() => this.isAliOss ? a.put(C.name, C, {
|
|
520
521
|
headers: this.headers
|
|
521
|
-
}) : this.$axios.post(v, r, { headers:
|
|
522
|
-
this.res = {}, this.isQiniuOss && (c.data.key =
|
|
522
|
+
}) : this.$axios.post(v, r, { headers: o }))().then((c) => {
|
|
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();
|
|
523
524
|
}).catch((c) => {
|
|
524
525
|
this.hide(c);
|
|
525
526
|
});
|
|
@@ -530,17 +531,17 @@ const X = {
|
|
|
530
531
|
p();
|
|
531
532
|
return;
|
|
532
533
|
}
|
|
533
|
-
const
|
|
534
|
-
|
|
534
|
+
const S = () => {
|
|
535
|
+
b(this.canvasOption) ? p() : D(e, this.canvasOption, (f) => {
|
|
535
536
|
e = f, p();
|
|
536
537
|
});
|
|
537
538
|
};
|
|
538
|
-
|
|
539
|
+
b(this.cropperOption) ? S() : P(e, (f) => {
|
|
539
540
|
const x = Object.assign(this.cropperOption, {
|
|
540
541
|
img: f,
|
|
541
542
|
type: "file",
|
|
542
543
|
callback: (v) => {
|
|
543
|
-
e = v,
|
|
544
|
+
e = v, S();
|
|
544
545
|
},
|
|
545
546
|
cancel: () => {
|
|
546
547
|
this.loading = !1;
|
|
@@ -554,7 +555,7 @@ const X = {
|
|
|
554
555
|
},
|
|
555
556
|
handlePreview(t) {
|
|
556
557
|
const e = () => {
|
|
557
|
-
const i = this.fileList.findIndex((
|
|
558
|
+
const i = this.fileList.findIndex((o) => o.url === t.url);
|
|
558
559
|
this.$ImagePreview(this.fileList, i);
|
|
559
560
|
};
|
|
560
561
|
typeof this.uploadPreview == "function" ? this.uploadPreview(t, this.column, e) : e();
|
package/header-menu/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as s } from "../chunks/permission.ce5d2121.mjs";
|
|
2
2
|
import { c } from "../chunks/config.46422d7f.mjs";
|
|
3
|
-
import { o } from "../chunks/util.
|
|
3
|
+
import { o } from "../chunks/util.505913d9.mjs";
|
|
4
4
|
import { n as a } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
5
5
|
var d = function() {
|
|
6
6
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
package/header-search/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as S } from "../chunks/slot.4b391395.mjs";
|
|
2
2
|
import { c as o } from "../chunks/config.46422d7f.mjs";
|
|
3
|
-
import { d as w } from "../chunks/dataformat.
|
|
4
|
-
import { o as h, v as g, d as m } from "../chunks/util.
|
|
3
|
+
import { d as w } from "../chunks/dataformat.ab62230f.mjs";
|
|
4
|
+
import { o as h, v as g, d as m } from "../chunks/util.505913d9.mjs";
|
|
5
5
|
import { n as F } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
6
6
|
var _ = function() {
|
|
7
7
|
var e = this, a = e.$createElement, c = e._self._c || a;
|
|
@@ -110,9 +110,9 @@ const y = {
|
|
|
110
110
|
const l = u < this.searchIndex, d = {};
|
|
111
111
|
Object.keys(r).forEach((i) => {
|
|
112
112
|
const p = "search";
|
|
113
|
-
if (i
|
|
113
|
+
if (i !== "searchProp" && i.includes(p)) {
|
|
114
114
|
let n = i.replace(p, "");
|
|
115
|
-
if (n.length
|
|
115
|
+
if (n.length === 0)
|
|
116
116
|
return;
|
|
117
117
|
n = n.replace(n[0], n[0].toLowerCase()), d[n] = r[i];
|
|
118
118
|
}
|
|
@@ -203,7 +203,9 @@ const y = {
|
|
|
203
203
|
},
|
|
204
204
|
methods: {
|
|
205
205
|
initFun() {
|
|
206
|
-
["searchReset", "searchChange"].forEach((e) =>
|
|
206
|
+
["searchReset", "searchChange"].forEach((e) => {
|
|
207
|
+
this.crud[e] = this[e];
|
|
208
|
+
});
|
|
207
209
|
},
|
|
208
210
|
getSlotName(e) {
|
|
209
211
|
return e.replace("Search", "");
|
package/image-cropper/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ var a = (e, o, t) => o in e ? c(e, o, { enumerable: !0, configurable: !0, writab
|
|
|
9
9
|
u.call(o, t) && a(e, t, o[t]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import {
|
|
12
|
+
import { B as f } from "../chunks/util.505913d9.mjs";
|
|
13
13
|
import { VueCropper as m } from "vue-cropper";
|
|
14
14
|
import d from "vue";
|
|
15
15
|
import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
package/image-preview/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ var r = (e, i, t) => i in e ? v(e, i, { enumerable: !0, configurable: !0, writab
|
|
|
9
9
|
h.call(i, t) && r(e, t, i[t]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { i as p } from "../chunks/util.
|
|
12
|
+
import { i as p } from "../chunks/util.505913d9.mjs";
|
|
13
13
|
import { setPx as u } from "@web-utils/core";
|
|
14
14
|
import f from "vue";
|
|
15
15
|
import { n as g } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|