@web-utils/component 3.2.1 → 3.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chunks/{FormTemp.0eqGAu6W.mjs → FormTemp.0ezzipG4.mjs} +5 -6
- package/chunks/FyUEditor.c06LkvIy.mjs +224 -0
- package/chunks/FyUEditor.vue_vue_type_style_index_0_lang.0-PDx197.mjs +167 -0
- package/chunks/IconTemp.tzsg5qth.mjs +29 -0
- package/chunks/ResizeObserver.sOHk2Cm-.mjs +51 -0
- package/chunks/{form-input-mixin.IKogWBfn.mjs → form-input-mixin.DLHG0EnH.mjs} +2 -2
- package/chunks/{form-item-mixin.BilKDUlK.mjs → form-item-mixin.gd9p9Rrj.mjs} +1 -1
- package/chunks/{index.LGsb2aDq.mjs → index.Uf8ONhVI.mjs} +3 -3
- package/data-display/index.mjs +129 -15
- package/data-table-picker/index.mjs +1 -1
- package/easy-popup/index.mjs +8 -7
- package/editable-tree/index.mjs +1 -1
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flow-designer/index.mjs +218 -164
- package/flow-viewer/index.mjs +161 -73
- package/form-button/index.mjs +25 -11
- package/form-cascader/index.mjs +2 -2
- package/form-checkbox-group/index.mjs +2 -2
- package/form-date-picker/index.mjs +2 -2
- package/form-holder/index.mjs +1 -1
- package/form-input/index.mjs +2 -2
- package/form-input-email/index.mjs +2 -2
- package/form-input-id-card/index.mjs +2 -2
- package/form-input-number/index.mjs +2 -2
- package/form-input-phone-number/index.mjs +2 -2
- package/form-input-tag/index.mjs +155 -31
- package/form-input-time/index.mjs +2 -2
- package/form-item/index.mjs +1 -1
- package/form-radio-group/index.mjs +2 -2
- package/form-select/index.mjs +2 -2
- package/form-switch/index.mjs +2 -2
- package/form-textarea/index.mjs +2 -2
- package/form-view/index.mjs +12 -13
- package/fy-curd/index.mjs +4 -5
- package/fy-form/index.mjs +1 -1
- package/fy-form-design/index.mjs +498 -329
- package/fy-input-icon/index.mjs +20 -21
- package/fy-u-editor/index.mjs +75 -237
- package/highlight-j-s/index.mjs +4 -3
- package/icon-temp/index.mjs +7 -6
- package/index.mjs +446 -446
- package/nav-bar/index.mjs +7 -6
- package/package.json +1 -1
- package/page/index.mjs +1 -0
- package/page-header/index.mjs +3 -2
- package/page-skeleton/index.mjs +95 -17
- package/pageable-table/index.mjs +1 -1
- package/pageable-view/index.mjs +8 -8
- package/present-view/index.mjs +3 -4
- package/resize-observer/index.mjs +4 -3
- package/split-pane/index.mjs +3 -4
- package/swiper/index.mjs +3 -4
- package/table-view/index.mjs +1 -1
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +10 -9
package/fy-input-icon/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { p as a, e as s } from "../chunks/event.lbJYeMJp.mjs";
|
|
2
|
-
import o from "
|
|
3
|
-
import "@web-utils/component/icon-temp/style.css";
|
|
2
|
+
import { I as o } from "../chunks/IconTemp.tzsg5qth.mjs";
|
|
4
3
|
import { n as r } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
|
|
5
4
|
const c = {
|
|
6
5
|
name: "FyInputIcon",
|
|
@@ -25,10 +24,10 @@ const c = {
|
|
|
25
24
|
},
|
|
26
25
|
computed: {
|
|
27
26
|
list() {
|
|
28
|
-
let
|
|
27
|
+
let i = (this.tabs.list || []).map((t) => !t.value && !t.label ? {
|
|
29
28
|
value: t
|
|
30
29
|
} : t);
|
|
31
|
-
return this.filterText && (
|
|
30
|
+
return this.filterText && (i = i.filter((t) => t.label.indexOf(this.filterText) !== -1)), i;
|
|
32
31
|
},
|
|
33
32
|
option() {
|
|
34
33
|
return {
|
|
@@ -40,11 +39,11 @@ const c = {
|
|
|
40
39
|
this.tabs = this.iconList[0] || {};
|
|
41
40
|
},
|
|
42
41
|
methods: {
|
|
43
|
-
handleTabs(
|
|
44
|
-
this.tabs =
|
|
42
|
+
handleTabs(i) {
|
|
43
|
+
this.tabs = i;
|
|
45
44
|
},
|
|
46
|
-
handleSubmit(
|
|
47
|
-
this.box = !1, this.text =
|
|
45
|
+
handleSubmit(i) {
|
|
46
|
+
this.box = !1, this.text = i, this.handleChange(i);
|
|
48
47
|
},
|
|
49
48
|
handleShow() {
|
|
50
49
|
this.$refs.main.blur(), !(this.disabled || this.readonly) && (this.box = !0);
|
|
@@ -53,20 +52,20 @@ const c = {
|
|
|
53
52
|
};
|
|
54
53
|
var u = function() {
|
|
55
54
|
var t = this, e = t._self._c;
|
|
56
|
-
return e("div", { staticClass: "avue-input-icon" }, [e("ElInput", { ref: "main", attrs: { placeholder: t.placeholder, size: t.size, clearable: t.clearableVal, disabled: t.disabled }, on: { focus: t.handleShow }, nativeOn: { click: function(
|
|
55
|
+
return e("div", { staticClass: "avue-input-icon" }, [e("ElInput", { ref: "main", attrs: { placeholder: t.placeholder, size: t.size, clearable: t.clearableVal, disabled: t.disabled }, on: { focus: t.handleShow }, nativeOn: { click: function(n) {
|
|
57
56
|
return t.handleClick.apply(null, arguments);
|
|
58
57
|
} }, scopedSlots: t._u([{ key: "append", fn: function() {
|
|
59
58
|
return [e("IconTemp", { attrs: { text: t.text, size: 28, small: t.size === "mini" }, on: { click: t.handleShow } })];
|
|
60
|
-
}, proxy: !0 }]), model: { value: t.text, callback: function(
|
|
61
|
-
t.text =
|
|
62
|
-
}, expression: "text" } }), t.box ? e("div", [e("ElementDialog", { attrs: { title: t.placeholder, visible: t.box, width: t.dialogWidth }, on: { "update:visible": function(
|
|
63
|
-
t.box =
|
|
64
|
-
} } }, [e("div", { staticClass: "avue-input-icon__filter" }, [e("ElInput", { attrs: { placeholder: "请输入", size: t.size }, model: { value: t.filterText, callback: function(
|
|
65
|
-
t.filterText =
|
|
66
|
-
}, expression: "filterText" } })], 1), e("FyTabs", { attrs: { option: t.option }, on: { change: t.handleTabs } }), e("div", { staticClass: "avue-input-icon__list" }, t._l(t.list, function(
|
|
67
|
-
return e("div", { key: l, class: ["avue-input-icon__item", { active: t.text ===
|
|
68
|
-
return t.handleSubmit(
|
|
69
|
-
} } }, [e("IconTemp", { attrs: { text:
|
|
59
|
+
}, proxy: !0 }]), model: { value: t.text, callback: function(n) {
|
|
60
|
+
t.text = n;
|
|
61
|
+
}, expression: "text" } }), t.box ? e("div", [e("ElementDialog", { attrs: { title: t.placeholder, visible: t.box, width: t.dialogWidth }, on: { "update:visible": function(n) {
|
|
62
|
+
t.box = n;
|
|
63
|
+
} } }, [e("div", { staticClass: "avue-input-icon__filter" }, [e("ElInput", { attrs: { placeholder: "请输入", size: t.size }, model: { value: t.filterText, callback: function(n) {
|
|
64
|
+
t.filterText = n;
|
|
65
|
+
}, expression: "filterText" } })], 1), e("FyTabs", { attrs: { option: t.option }, on: { change: t.handleTabs } }), e("div", { staticClass: "avue-input-icon__list" }, t._l(t.list, function(n, l) {
|
|
66
|
+
return e("div", { key: l, class: ["avue-input-icon__item", { active: t.text === n }], on: { click: function(f) {
|
|
67
|
+
return t.handleSubmit(n.value);
|
|
68
|
+
} } }, [e("IconTemp", { attrs: { text: n.value, small: t.size === "mini" } }), e("p", [t._v(t._s(n.label || n.value))])], 1);
|
|
70
69
|
}), 0)], 1)], 1) : t._e()], 1);
|
|
71
70
|
}, d = [], p = /* @__PURE__ */ r(
|
|
72
71
|
c,
|
|
@@ -78,7 +77,7 @@ var u = function() {
|
|
|
78
77
|
null,
|
|
79
78
|
null
|
|
80
79
|
);
|
|
81
|
-
const
|
|
80
|
+
const b = p.exports;
|
|
82
81
|
export {
|
|
83
|
-
|
|
82
|
+
b as default
|
|
84
83
|
};
|
package/fy-u-editor/index.mjs
CHANGED
|
@@ -1,199 +1,37 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var p = (
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
1
|
+
var y = Object.defineProperty, g = Object.defineProperties;
|
|
2
|
+
var b = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var h = Object.getOwnPropertySymbols;
|
|
4
|
+
var S = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var p = (t, s, e) => s in t ? y(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e, u = (t, s) => {
|
|
6
|
+
for (var e in s || (s = {}))
|
|
7
|
+
S.call(s, e) && p(t, e, s[e]);
|
|
8
|
+
if (h)
|
|
9
|
+
for (var e of h(s))
|
|
10
|
+
O.call(s, e) && p(t, e, s[e]);
|
|
11
|
+
return t;
|
|
12
|
+
}, f = (t, s) => g(t, b(s));
|
|
13
|
+
var c = (t, s, e) => new Promise((a, i) => {
|
|
14
|
+
var d = (r) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
i(
|
|
16
|
+
l(e.next(r));
|
|
17
|
+
} catch (o) {
|
|
18
|
+
i(o);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, n = (r) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
i(
|
|
22
|
+
l(e.throw(r));
|
|
23
|
+
} catch (o) {
|
|
24
|
+
i(o);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, l = (r) => r.done ? a(r.value) : Promise.resolve(r.value).then(d, n);
|
|
27
|
+
l((e = e.apply(t, s)).next());
|
|
28
28
|
});
|
|
29
29
|
import "@wangeditor/editor/dist/css/style.css";
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
return new window.OSS({ region: t, endpoint: r, accessKeyId: o, accessKeySecret: i, bucket: n });
|
|
36
|
-
}, K = (e, t, r) => {
|
|
37
|
-
let { scope: o, deadline: i } = r;
|
|
38
|
-
var n = JSON.stringify({ scope: o, deadline: i }), l = k(H(n)), d = window.CryptoJS.HmacSHA1(l, t), s = d.toString(window.CryptoJS.enc.Base64), a = e + ":" + j(s) + ":" + l;
|
|
39
|
-
return a;
|
|
40
|
-
};
|
|
41
|
-
function H(e) {
|
|
42
|
-
var t, r, o, i;
|
|
43
|
-
for (t = "", o = e.length, r = 0; r < o; r++)
|
|
44
|
-
i = e.charCodeAt(r), i >= 1 && i <= 127 ? t += e.charAt(r) : i > 2047 ? (t += String.fromCharCode(224 | i >> 12 & 15), t += String.fromCharCode(128 | i >> 6 & 63), t += String.fromCharCode(128 | i >> 0 & 63)) : (t += String.fromCharCode(192 | i >> 6 & 31), t += String.fromCharCode(128 | i >> 0 & 63));
|
|
45
|
-
return t;
|
|
46
|
-
}
|
|
47
|
-
var c = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
|
|
48
|
-
new Array(
|
|
49
|
-
-1,
|
|
50
|
-
-1,
|
|
51
|
-
-1,
|
|
52
|
-
-1,
|
|
53
|
-
-1,
|
|
54
|
-
-1,
|
|
55
|
-
-1,
|
|
56
|
-
-1,
|
|
57
|
-
-1,
|
|
58
|
-
-1,
|
|
59
|
-
-1,
|
|
60
|
-
-1,
|
|
61
|
-
-1,
|
|
62
|
-
-1,
|
|
63
|
-
-1,
|
|
64
|
-
-1,
|
|
65
|
-
-1,
|
|
66
|
-
-1,
|
|
67
|
-
-1,
|
|
68
|
-
-1,
|
|
69
|
-
-1,
|
|
70
|
-
-1,
|
|
71
|
-
-1,
|
|
72
|
-
-1,
|
|
73
|
-
-1,
|
|
74
|
-
-1,
|
|
75
|
-
-1,
|
|
76
|
-
-1,
|
|
77
|
-
-1,
|
|
78
|
-
-1,
|
|
79
|
-
-1,
|
|
80
|
-
-1,
|
|
81
|
-
-1,
|
|
82
|
-
-1,
|
|
83
|
-
-1,
|
|
84
|
-
-1,
|
|
85
|
-
-1,
|
|
86
|
-
-1,
|
|
87
|
-
-1,
|
|
88
|
-
-1,
|
|
89
|
-
-1,
|
|
90
|
-
-1,
|
|
91
|
-
-1,
|
|
92
|
-
62,
|
|
93
|
-
-1,
|
|
94
|
-
-1,
|
|
95
|
-
-1,
|
|
96
|
-
63,
|
|
97
|
-
52,
|
|
98
|
-
53,
|
|
99
|
-
54,
|
|
100
|
-
55,
|
|
101
|
-
56,
|
|
102
|
-
57,
|
|
103
|
-
58,
|
|
104
|
-
59,
|
|
105
|
-
60,
|
|
106
|
-
61,
|
|
107
|
-
-1,
|
|
108
|
-
-1,
|
|
109
|
-
-1,
|
|
110
|
-
-1,
|
|
111
|
-
-1,
|
|
112
|
-
-1,
|
|
113
|
-
-1,
|
|
114
|
-
0,
|
|
115
|
-
1,
|
|
116
|
-
2,
|
|
117
|
-
3,
|
|
118
|
-
4,
|
|
119
|
-
5,
|
|
120
|
-
6,
|
|
121
|
-
7,
|
|
122
|
-
8,
|
|
123
|
-
9,
|
|
124
|
-
10,
|
|
125
|
-
11,
|
|
126
|
-
12,
|
|
127
|
-
13,
|
|
128
|
-
14,
|
|
129
|
-
15,
|
|
130
|
-
16,
|
|
131
|
-
17,
|
|
132
|
-
18,
|
|
133
|
-
19,
|
|
134
|
-
20,
|
|
135
|
-
21,
|
|
136
|
-
22,
|
|
137
|
-
23,
|
|
138
|
-
24,
|
|
139
|
-
25,
|
|
140
|
-
-1,
|
|
141
|
-
-1,
|
|
142
|
-
-1,
|
|
143
|
-
-1,
|
|
144
|
-
-1,
|
|
145
|
-
-1,
|
|
146
|
-
26,
|
|
147
|
-
27,
|
|
148
|
-
28,
|
|
149
|
-
29,
|
|
150
|
-
30,
|
|
151
|
-
31,
|
|
152
|
-
32,
|
|
153
|
-
33,
|
|
154
|
-
34,
|
|
155
|
-
35,
|
|
156
|
-
36,
|
|
157
|
-
37,
|
|
158
|
-
38,
|
|
159
|
-
39,
|
|
160
|
-
40,
|
|
161
|
-
41,
|
|
162
|
-
42,
|
|
163
|
-
43,
|
|
164
|
-
44,
|
|
165
|
-
45,
|
|
166
|
-
46,
|
|
167
|
-
47,
|
|
168
|
-
48,
|
|
169
|
-
49,
|
|
170
|
-
50,
|
|
171
|
-
51,
|
|
172
|
-
-1,
|
|
173
|
-
-1,
|
|
174
|
-
-1,
|
|
175
|
-
-1,
|
|
176
|
-
-1
|
|
177
|
-
);
|
|
178
|
-
function k(e) {
|
|
179
|
-
var t, r, o, i, n, l;
|
|
180
|
-
for (o = e.length, r = 0, t = ""; r < o; ) {
|
|
181
|
-
if (i = e.charCodeAt(r++) & 255, r == o) {
|
|
182
|
-
t += c.charAt(i >> 2), t += c.charAt((i & 3) << 4), t += "==";
|
|
183
|
-
break;
|
|
184
|
-
}
|
|
185
|
-
if (n = e.charCodeAt(r++), r == o) {
|
|
186
|
-
t += c.charAt(i >> 2), t += c.charAt((i & 3) << 4 | (n & 240) >> 4), t += c.charAt((n & 15) << 2), t += "=";
|
|
187
|
-
break;
|
|
188
|
-
}
|
|
189
|
-
l = e.charCodeAt(r++), t += c.charAt(i >> 2), t += c.charAt((i & 3) << 4 | (n & 240) >> 4), t += c.charAt((n & 15) << 2 | (l & 192) >> 6), t += c.charAt(l & 63);
|
|
190
|
-
}
|
|
191
|
-
return t;
|
|
192
|
-
}
|
|
193
|
-
var j = function(e) {
|
|
194
|
-
return e = e.replace(/\+/g, "-"), e = e.replace(/\//g, "_"), e;
|
|
195
|
-
};
|
|
196
|
-
const E = {
|
|
30
|
+
import { g as C, a as _ } from "../chunks/FyUEditor.vue_vue_type_style_index_0_lang.0-PDx197.mjs";
|
|
31
|
+
import { createEditor as v, createToolbar as K } from "@wangeditor/editor";
|
|
32
|
+
import { p as H } from "../chunks/util.y1gUGRqi.mjs";
|
|
33
|
+
import { n as j } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
|
|
34
|
+
const F = {
|
|
197
35
|
name: "FyUEditor",
|
|
198
36
|
props: {
|
|
199
37
|
data: {
|
|
@@ -265,35 +103,35 @@ const E = {
|
|
|
265
103
|
}
|
|
266
104
|
},
|
|
267
105
|
watch: {
|
|
268
|
-
disabled(
|
|
269
|
-
|
|
106
|
+
disabled(t) {
|
|
107
|
+
t ? this.editor.disable() : this.editor.enable();
|
|
270
108
|
},
|
|
271
|
-
value(
|
|
272
|
-
|
|
109
|
+
value(t) {
|
|
110
|
+
t ? this.editor.setHtml(t) : this.editor.clear();
|
|
273
111
|
}
|
|
274
112
|
},
|
|
275
113
|
mounted() {
|
|
276
114
|
this.initEdit();
|
|
277
115
|
},
|
|
278
116
|
beforeDestroy() {
|
|
279
|
-
var
|
|
280
|
-
(
|
|
117
|
+
var t;
|
|
118
|
+
(t = this.editor) == null || t.destroy();
|
|
281
119
|
},
|
|
282
120
|
methods: {
|
|
283
121
|
initEdit() {
|
|
284
|
-
const
|
|
122
|
+
const t = "default", s = f(u({
|
|
285
123
|
placeholder: this.placeholder,
|
|
286
124
|
readOnly: this.disabled,
|
|
287
125
|
MENU_CONF: {
|
|
288
126
|
uploadImage: {
|
|
289
|
-
customUpload: (
|
|
290
|
-
const i = yield this.uploadFile(
|
|
127
|
+
customUpload: (a) => c(this, null, function* () {
|
|
128
|
+
const i = yield this.uploadFile(a);
|
|
291
129
|
this.editor.dangerouslyInsertHtml(i);
|
|
292
130
|
})
|
|
293
131
|
},
|
|
294
132
|
uploadVideo: {
|
|
295
|
-
customUpload: (
|
|
296
|
-
const i = yield this.uploadFile(
|
|
133
|
+
customUpload: (a) => c(this, null, function* () {
|
|
134
|
+
const i = yield this.uploadFile(a);
|
|
297
135
|
this.editor.dangerouslyInsertHtml(i);
|
|
298
136
|
})
|
|
299
137
|
}
|
|
@@ -302,63 +140,63 @@ const E = {
|
|
|
302
140
|
onFocus: () => {
|
|
303
141
|
this.$emit("focus", this.value);
|
|
304
142
|
},
|
|
305
|
-
onBlur: (
|
|
306
|
-
const i =
|
|
143
|
+
onBlur: (a) => {
|
|
144
|
+
const i = a.getHtml();
|
|
307
145
|
this.$emit("blur", i);
|
|
308
146
|
},
|
|
309
|
-
onChange: (
|
|
310
|
-
const i =
|
|
147
|
+
onChange: (a) => {
|
|
148
|
+
const i = a.getHtml();
|
|
311
149
|
this.$emit("input", i);
|
|
312
150
|
}
|
|
313
151
|
});
|
|
314
152
|
this.editor = Object.seal(
|
|
315
153
|
v({
|
|
316
154
|
selector: this.$refs.editor,
|
|
317
|
-
config:
|
|
155
|
+
config: s,
|
|
318
156
|
html: this.value,
|
|
319
|
-
mode:
|
|
157
|
+
mode: t
|
|
320
158
|
})
|
|
321
159
|
);
|
|
322
|
-
const
|
|
323
|
-
this.toolbar =
|
|
160
|
+
const e = u({}, this.toolbarConfig);
|
|
161
|
+
this.toolbar = K({
|
|
324
162
|
editor: this.editor,
|
|
325
163
|
selector: this.$refs.toolbar,
|
|
326
|
-
config:
|
|
327
|
-
mode:
|
|
164
|
+
config: e,
|
|
165
|
+
mode: t
|
|
328
166
|
});
|
|
329
167
|
},
|
|
330
|
-
uploadFile(
|
|
331
|
-
return new Promise((
|
|
332
|
-
const
|
|
168
|
+
uploadFile(t) {
|
|
169
|
+
return new Promise((s, e) => {
|
|
170
|
+
const a = Object.assign(this.headers, {
|
|
333
171
|
"Content-Type": "multipart/form-data"
|
|
334
172
|
});
|
|
335
|
-
let i = {},
|
|
336
|
-
const
|
|
337
|
-
let
|
|
338
|
-
if (
|
|
339
|
-
|
|
173
|
+
let i = {}, d;
|
|
174
|
+
const n = new FormData();
|
|
175
|
+
let l = this.action;
|
|
176
|
+
if (n.append(this.fileName, t), Object.keys(this.data).forEach((r) => {
|
|
177
|
+
n.append(r, this.data[r]);
|
|
340
178
|
}), this.isQiniuOSS) {
|
|
341
179
|
i = this.qiniu;
|
|
342
|
-
const
|
|
180
|
+
const r = C(i.AK, i.SK, {
|
|
343
181
|
scope: i.scope,
|
|
344
182
|
deadline: (/* @__PURE__ */ new Date()).getTime() + i.deadline * 3600
|
|
345
183
|
});
|
|
346
|
-
|
|
184
|
+
n.append("token", r), l = "http://up.qiniu.com/";
|
|
347
185
|
} else
|
|
348
|
-
this.isAliOSS && (i = this.ali,
|
|
186
|
+
this.isAliOSS && (i = this.ali, d = _({
|
|
349
187
|
region: i.region,
|
|
350
188
|
endpoint: i.endpoint,
|
|
351
189
|
accessKeyId: i.accessKeyId,
|
|
352
190
|
accessKeySecret: i.accessKeySecret,
|
|
353
191
|
bucket: i.bucket
|
|
354
192
|
}));
|
|
355
|
-
(() => this.isAliOSS ?
|
|
356
|
-
let
|
|
357
|
-
this.isAliOSS ?
|
|
358
|
-
const
|
|
359
|
-
|
|
360
|
-
}).catch((
|
|
361
|
-
r
|
|
193
|
+
(() => this.isAliOSS ? d.put(t.name, t) : this.$axios.post(l, n, { headers: a }))().then((r) => {
|
|
194
|
+
let o;
|
|
195
|
+
this.isAliOSS ? o = r : this.isQiniuOSS ? (o = r.data, o.key = i.url + o.key) : typeof this.resKey == "function" ? o = this.resKey(r.data) : (o = H(r.data, this.resKey), o = o[this.urlKey]);
|
|
196
|
+
const m = this.homeUrl + o;
|
|
197
|
+
s(m);
|
|
198
|
+
}).catch((r) => {
|
|
199
|
+
e(r);
|
|
362
200
|
});
|
|
363
201
|
});
|
|
364
202
|
},
|
|
@@ -367,20 +205,20 @@ const E = {
|
|
|
367
205
|
}
|
|
368
206
|
}
|
|
369
207
|
};
|
|
370
|
-
var
|
|
371
|
-
var
|
|
372
|
-
return
|
|
373
|
-
},
|
|
374
|
-
E,
|
|
208
|
+
var k = function() {
|
|
209
|
+
var s = this, e = s._self._c;
|
|
210
|
+
return e("div", { staticClass: "avue-ueditor" }, [e("div", { ref: "toolbar", staticClass: "fy-editor-toolbar" }), e("div", { ref: "editor", staticClass: "fy-editor" })]);
|
|
211
|
+
}, E = [], U = /* @__PURE__ */ j(
|
|
375
212
|
F,
|
|
376
|
-
|
|
213
|
+
k,
|
|
214
|
+
E,
|
|
377
215
|
!1,
|
|
378
216
|
null,
|
|
379
217
|
null,
|
|
380
218
|
null,
|
|
381
219
|
null
|
|
382
220
|
);
|
|
383
|
-
const
|
|
221
|
+
const T = U.exports;
|
|
384
222
|
export {
|
|
385
|
-
|
|
223
|
+
T as default
|
|
386
224
|
};
|
package/highlight-j-s/index.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import a from "highlight.js/lib/core";
|
|
2
2
|
import "highlight.js/styles/atom-one-dark-reasonable.css";
|
|
3
3
|
import { escapeHtml as g } from "@web-utils/core";
|
|
4
|
+
/* empty css */
|
|
4
5
|
import { n as l } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
|
|
5
6
|
const i = {
|
|
6
7
|
name: "HighlightJS",
|
|
@@ -46,7 +47,7 @@ const i = {
|
|
|
46
47
|
var s = function() {
|
|
47
48
|
var t = this, n = t._self._c;
|
|
48
49
|
return n("pre", { staticClass: "highlight-js" }, [n("code", { class: t.className, domProps: { innerHTML: t._s(t.highlighted.value) } })]);
|
|
49
|
-
}, r = [],
|
|
50
|
+
}, r = [], o = /* @__PURE__ */ l(
|
|
50
51
|
i,
|
|
51
52
|
s,
|
|
52
53
|
r,
|
|
@@ -56,7 +57,7 @@ var s = function() {
|
|
|
56
57
|
null,
|
|
57
58
|
null
|
|
58
59
|
);
|
|
59
|
-
const
|
|
60
|
+
const p = o.exports;
|
|
60
61
|
export {
|
|
61
|
-
|
|
62
|
+
p as default
|
|
62
63
|
};
|
package/icon-temp/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { n } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
|
|
2
3
|
const s = {
|
|
3
4
|
name: "IconTemp",
|
|
4
5
|
props: {
|
|
@@ -10,9 +11,9 @@ const s = {
|
|
|
10
11
|
}
|
|
11
12
|
};
|
|
12
13
|
var a = function() {
|
|
13
|
-
var e = this,
|
|
14
|
-
return
|
|
15
|
-
}, l = [], r = /* @__PURE__ */
|
|
14
|
+
var e = this, t = e._self._c;
|
|
15
|
+
return t("span", { staticClass: "avue-icon", class: { "avue-icon--small": e.small } }, [e.text.includes("#") ? t("svg", { attrs: { "aria-hidden": "true" } }, [t("use", { attrs: { "xlink:href": e.text } })]) : t("i", { class: e.text })]);
|
|
16
|
+
}, l = [], r = /* @__PURE__ */ n(
|
|
16
17
|
s,
|
|
17
18
|
a,
|
|
18
19
|
l,
|
|
@@ -22,7 +23,7 @@ var a = function() {
|
|
|
22
23
|
null,
|
|
23
24
|
null
|
|
24
25
|
);
|
|
25
|
-
const
|
|
26
|
+
const m = r.exports;
|
|
26
27
|
export {
|
|
27
|
-
|
|
28
|
+
m as default
|
|
28
29
|
};
|