@web-utils/component 2.7.13 → 2.7.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/dist/chunks/{ConfigSelect.vue_vue_type_template_lang.e7a9d5b7.js → ConfigSelect.vue_vue_type_template_lang.dfc91f07.js} +20 -15
- package/dist/chunks/{ConfigTable.vue_vue_type_template_lang.e9060616.js → ConfigTable.vue_vue_type_template_lang.b27540fd.js} +1 -1
- package/dist/chunks/{ConfigUpload.vue_vue_type_template_lang.48dd814b.js → ConfigUpload.vue_vue_type_template_lang.129c0ced.js} +18 -13
- package/dist/chunks/{WidgetConfig.vue_vue_type_template_lang.7928c468.js → WidgetConfig.vue_vue_type_template_lang.3cc74fe8.js} +16 -16
- package/dist/chunks/{WidgetForm.vue_vue_type_template_lang.e3e800a6.js → WidgetForm.vue_vue_type_template_lang.d4b05679.js} +10 -10
- package/dist/chunks/{WidgetFormGroup.vue_vue_type_template_lang.6a693e5e.js → WidgetFormGroup.vue_vue_type_template_lang.bdcb6d37.js} +13 -13
- package/dist/chunks/{WidgetFormTable.vue_vue_type_template_lang.291bf39a.js → WidgetFormTable.vue_vue_type_template_lang.e2b788ba.js} +3 -2
- package/dist/chunks/{dataformat.d3fd2d1b.js → dataformat.65b92bfe.js} +36 -35
- package/dist/chunks/detail.d67573b1.js +28 -0
- package/dist/chunks/dic.70feb9b4.js +135 -0
- package/dist/chunks/{event.43b42228.js → event.dd6f522d.js} +3 -3
- package/dist/chunks/{init.3b47bb80.js → init.7c58eb34.js} +10 -10
- package/dist/chunks/{monaco.1dbdc960.js → monaco.cefcb9f5.js} +92 -85
- package/dist/chunks/{packages.6f252850.js → packages.1fc9ccba.js} +1 -1
- package/dist/chunks/slot.4b391395.js +27 -0
- package/dist/chunks/util.23fe58fb.js +261 -0
- package/dist/components/afd-column/index.js +1 -1
- package/dist/components/affix/index.js +2 -2
- package/dist/components/base.css +1 -1
- package/dist/components/carousel/index.js +2 -2
- package/dist/components/chat/index.js +9 -9
- package/dist/components/column/index.js +25 -25
- package/dist/components/column-default/index.js +3 -2
- package/dist/components/column-dynamic/index.js +1 -1
- package/dist/components/column-menu/index.js +11 -11
- package/dist/components/column-slot/index.js +54 -53
- package/dist/components/config-custom/index.js +3 -3
- package/dist/components/config-event/index.js +5 -5
- package/dist/components/config-rate/index.js +1 -1
- package/dist/components/config-rate/style.css +1 -1
- package/dist/components/config-select/index.js +3 -3
- package/dist/components/config-switch/index.js +5 -5
- package/dist/components/config-switch/style.css +1 -1
- package/dist/components/config-table/index.js +3 -3
- package/dist/components/config-tree/index.js +3 -3
- package/dist/components/config-tree/style.css +1 -1
- package/dist/components/config-upload/index.js +1 -1
- package/dist/components/dialog-excel/index.js +37 -40
- package/dist/components/dialog-filter/index.js +19 -19
- package/dist/components/dialog-form/index.js +1 -1
- package/dist/components/element-dialog/index.js +2 -2
- package/dist/components/element-dialog/style.css +1 -1
- package/dist/components/flow/index.js +17 -18
- package/dist/components/flow-node/index.js +1 -1
- package/dist/components/form-temp/index.js +3 -3
- package/dist/components/fy-array/index.js +2 -2
- package/dist/components/fy-cascader/index.js +13 -13
- package/dist/components/fy-checkbox/index.js +4 -4
- package/dist/components/fy-code/index.js +1 -1
- package/dist/components/fy-curd/index.js +68 -69
- package/dist/components/fy-date/index.js +1 -1
- package/dist/components/fy-dialog-form/index.js +11 -11
- package/dist/components/fy-draggable/index.js +5 -7
- package/dist/components/fy-dynamic/index.js +32 -28
- package/dist/components/fy-empty/index.js +1 -1
- package/dist/components/fy-form/index.js +153 -141
- package/dist/components/fy-form-design/index.js +31 -31
- package/dist/components/fy-input/index.js +60 -46
- package/dist/components/fy-input-color/index.js +34 -29
- package/dist/components/fy-input-icon/index.js +1 -1
- package/dist/components/fy-input-map/index.js +14 -14
- package/dist/components/fy-input-number/index.js +1 -1
- package/dist/components/fy-input-table/index.js +2 -2
- package/dist/components/fy-input-tree/index.js +12 -12
- package/dist/components/fy-radio/index.js +1 -1
- package/dist/components/fy-rate/index.js +1 -1
- package/dist/components/fy-select/index.js +3 -3
- package/dist/components/fy-slider/index.js +2 -2
- package/dist/components/fy-switch/index.js +1 -1
- package/dist/components/fy-tabs/index.js +2 -2
- package/dist/components/fy-time/index.js +2 -2
- package/dist/components/fy-title/index.js +1 -1
- package/dist/components/fy-tree/index.js +3 -3
- package/dist/components/fy-u-editor/index.js +26 -24
- package/dist/components/fy-upload/index.js +146 -282
- package/dist/components/header-menu/index.js +2 -2
- package/dist/components/header-search/index.js +16 -15
- package/dist/components/image-cropper/index.js +299 -0
- package/dist/components/image-cropper/style.css +1 -0
- package/dist/components/image-preview/index.js +346 -0
- package/dist/components/image-preview/style.css +1 -0
- package/dist/components/keyboard/index.js +58 -63
- package/dist/components/license/index.js +7 -7
- package/dist/components/login/index.js +37 -32
- package/dist/components/name-avatar/index.js +1 -1
- package/dist/components/pageable-table/index.js +1 -1
- package/dist/components/pageable-view/index.js +26 -26
- package/dist/components/photo-swipe/index.js +72 -165
- package/dist/components/queue/index.js +6 -6
- package/dist/components/record-video/index.js +18 -18
- package/dist/components/search/index.js +3 -3
- package/dist/components/sign/index.js +64 -59
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/table-page/index.js +5 -5
- package/dist/components/text-ellipsis/index.js +11 -10
- package/dist/components/verify/index.js +25 -25
- package/dist/components/widget-config/index.js +8 -8
- package/dist/components/widget-form/index.js +7 -7
- package/dist/components/widget-form-group/index.js +8 -8
- package/dist/components/widget-form-item/index.js +14 -13
- package/dist/components/widget-form-table/index.js +14 -14
- package/dist/index.css +109 -40
- package/dist/index.es.js +4049 -3731
- package/package.json +5 -56
- package/web-types.json +33 -10
- package/dist/chunks/detail.ac4d421a.js +0 -28
- package/dist/chunks/dic.79d9f595.js +0 -133
- package/dist/chunks/slot.1b8d2b1b.js +0 -27
- package/dist/chunks/util.80e28481.js +0 -250
- package/dist/components/photo-swipe/style.css +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as r, e as l } from "../../chunks/event.
|
|
2
|
-
import { s as i } from "../../chunks/util.
|
|
1
|
+
import { p as r, e as l } from "../../chunks/event.dd6f522d.js";
|
|
2
|
+
import { s as i } from "../../chunks/util.23fe58fb.js";
|
|
3
3
|
import { n as a } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
var p = function() {
|
|
5
5
|
var t = this, o = t.$createElement, s = t._self._c || o;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as c, e as l } from "../../chunks/event.
|
|
1
|
+
import { p as c, e as l } from "../../chunks/event.dd6f522d.js";
|
|
2
2
|
import { n as r } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var o = function() {
|
|
4
4
|
var e = this, t = e.$createElement, a = e._self._c || t;
|
|
@@ -19,7 +19,7 @@ var r = function() {
|
|
|
19
19
|
return e("ElTabPane", {
|
|
20
20
|
key: s,
|
|
21
21
|
attrs: {
|
|
22
|
-
name: s
|
|
22
|
+
name: `${s}`,
|
|
23
23
|
disabled: n.disabled
|
|
24
24
|
}
|
|
25
25
|
}, [e("span", {
|
|
@@ -64,7 +64,7 @@ const c = {
|
|
|
64
64
|
},
|
|
65
65
|
methods: {
|
|
66
66
|
changeTabs(t) {
|
|
67
|
-
this.active = t
|
|
67
|
+
this.active = `${t}`;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
}, i = {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as o, e as l } from "../../chunks/event.
|
|
1
|
+
import { p as o, e as l } from "../../chunks/event.dd6f522d.js";
|
|
2
2
|
import { isBlank as i } from "@web-utils/core";
|
|
3
3
|
import { n as s } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
var c = function() {
|
|
@@ -59,7 +59,7 @@ const d = {
|
|
|
59
59
|
},
|
|
60
60
|
computed: {
|
|
61
61
|
componentName() {
|
|
62
|
-
|
|
62
|
+
const e = this.pickerOptions || {};
|
|
63
63
|
return e.start || e.end || e.step ? "elTimeSelect" : "elTimePicker";
|
|
64
64
|
},
|
|
65
65
|
isRange() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as r, e as _ } from "../../chunks/event.
|
|
1
|
+
import { p as r, e as _ } from "../../chunks/event.dd6f522d.js";
|
|
2
2
|
import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var o = function() {
|
|
4
4
|
var e = this, t = e.$createElement, n = e._self._c || t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as d, o as l, k as r } from "../../chunks/util.
|
|
1
|
+
import { s as d, o as l, k as r } from "../../chunks/util.23fe58fb.js";
|
|
2
2
|
import { p as u } from "../../chunks/permission.ce5d2121.js";
|
|
3
3
|
import { isBlank as p } from "@web-utils/core";
|
|
4
4
|
import { n as f } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
@@ -298,7 +298,7 @@ const v = {
|
|
|
298
298
|
methods: {
|
|
299
299
|
optVal: l,
|
|
300
300
|
menuIcon(e) {
|
|
301
|
-
return l(this.option[e
|
|
301
|
+
return l(this.option[`${e}Text`], e);
|
|
302
302
|
},
|
|
303
303
|
getPermission(e) {
|
|
304
304
|
return typeof this.permission == "function" ? this.permission(e, this.node.data || {}) : p(this.permission[e]) ? !0 : this.permission[e];
|
|
@@ -359,7 +359,7 @@ const v = {
|
|
|
359
359
|
n = n || this.form;
|
|
360
360
|
const o = n[this.valueKey];
|
|
361
361
|
this.node.data = this.form;
|
|
362
|
-
|
|
362
|
+
const { parentList: s, index: a } = this.findData(o);
|
|
363
363
|
if (s) {
|
|
364
364
|
const h = s.splice(a, 1)[0];
|
|
365
365
|
n[this.childrenKey] = h[this.childrenKey], s.splice(a, 0, n);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "@wangeditor/editor/dist/css/style.css";
|
|
2
2
|
import { createEditor as p, createToolbar as f } from "@wangeditor/editor";
|
|
3
|
-
import { i as m } from "../../chunks/util.
|
|
3
|
+
import { i as m } from "../../chunks/util.23fe58fb.js";
|
|
4
4
|
import { n as y } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
5
5
|
const g = (t) => {
|
|
6
|
-
|
|
6
|
+
const { region: r, endpoint: i, accessKeyId: s, accessKeySecret: e, bucket: n } = t;
|
|
7
7
|
return new window.OSS({ region: r, endpoint: i, accessKeyId: s, accessKeySecret: e, bucket: n });
|
|
8
8
|
}, C = (t, r, i) => {
|
|
9
9
|
let { scope: s, deadline: e } = i;
|
|
10
|
-
var n = JSON.stringify({ scope: s, deadline: e }), a =
|
|
11
|
-
return
|
|
10
|
+
var n = JSON.stringify({ scope: s, deadline: e }), a = b(S(n)), l = window.CryptoJS.HmacSHA1(a, r), o = l.toString(window.CryptoJS.enc.Base64), c = t + ":" + v(o) + ":" + a;
|
|
11
|
+
return c;
|
|
12
12
|
};
|
|
13
13
|
function S(t) {
|
|
14
14
|
var r, i, s, e;
|
|
@@ -147,7 +147,7 @@ new Array(
|
|
|
147
147
|
-1,
|
|
148
148
|
-1
|
|
149
149
|
);
|
|
150
|
-
function
|
|
150
|
+
function b(t) {
|
|
151
151
|
var r, i, s, e, n, a;
|
|
152
152
|
for (s = t.length, i = 0, r = ""; i < s; ) {
|
|
153
153
|
if (e = t.charCodeAt(i++) & 255, i == s) {
|
|
@@ -162,9 +162,9 @@ function v(t) {
|
|
|
162
162
|
}
|
|
163
163
|
return r;
|
|
164
164
|
}
|
|
165
|
-
var
|
|
165
|
+
var v = function(t) {
|
|
166
166
|
return t = t.replace(/\+/g, "-"), t = t.replace(/\//g, "_"), t;
|
|
167
|
-
},
|
|
167
|
+
}, _ = function() {
|
|
168
168
|
var t = this, r = t.$createElement, i = t._self._c || r;
|
|
169
169
|
return i("div", {
|
|
170
170
|
staticClass: "avue-ueditor"
|
|
@@ -273,14 +273,14 @@ const F = {
|
|
|
273
273
|
readOnly: this.disabled,
|
|
274
274
|
MENU_CONF: {
|
|
275
275
|
uploadImage: {
|
|
276
|
-
customUpload: async (
|
|
277
|
-
const o = await this.uploadFile(
|
|
276
|
+
customUpload: async (l) => {
|
|
277
|
+
const o = await this.uploadFile(l);
|
|
278
278
|
this.editor.dangerouslyInsertHtml(o);
|
|
279
279
|
}
|
|
280
280
|
},
|
|
281
281
|
uploadVideo: {
|
|
282
|
-
customUpload: async (
|
|
283
|
-
const o = await this.uploadFile(
|
|
282
|
+
customUpload: async (l) => {
|
|
283
|
+
const o = await this.uploadFile(l);
|
|
284
284
|
this.editor.dangerouslyInsertHtml(o);
|
|
285
285
|
}
|
|
286
286
|
}
|
|
@@ -288,12 +288,12 @@ const F = {
|
|
|
288
288
|
onFocus: () => {
|
|
289
289
|
this.$emit("focus", this.value);
|
|
290
290
|
},
|
|
291
|
-
onBlur: (
|
|
292
|
-
const o =
|
|
291
|
+
onBlur: (l) => {
|
|
292
|
+
const o = l.getHtml();
|
|
293
293
|
this.$emit("blur", o);
|
|
294
294
|
},
|
|
295
|
-
onChange: (
|
|
296
|
-
const o =
|
|
295
|
+
onChange: (l) => {
|
|
296
|
+
const o = l.getHtml();
|
|
297
297
|
this.$emit("input", o);
|
|
298
298
|
},
|
|
299
299
|
...e
|
|
@@ -319,7 +319,9 @@ const F = {
|
|
|
319
319
|
const s = Object.assign(this.headers, {
|
|
320
320
|
"Content-Type": "multipart/form-data"
|
|
321
321
|
});
|
|
322
|
-
let e = {}, n
|
|
322
|
+
let e = {}, n;
|
|
323
|
+
const a = new FormData();
|
|
324
|
+
let l = this.action;
|
|
323
325
|
if (a.append(this.fileName, t), Object.keys(this.data).forEach((o) => {
|
|
324
326
|
a.append(o, this.data[o]);
|
|
325
327
|
}), this.isQiniuOSS) {
|
|
@@ -328,7 +330,7 @@ const F = {
|
|
|
328
330
|
scope: e.scope,
|
|
329
331
|
deadline: new Date().getTime() + e.deadline * 3600
|
|
330
332
|
});
|
|
331
|
-
a.append("token", o),
|
|
333
|
+
a.append("token", o), l = "http://up.qiniu.com/";
|
|
332
334
|
} else
|
|
333
335
|
this.isAliOSS && (e = this.ali, n = g({
|
|
334
336
|
region: e.region,
|
|
@@ -337,10 +339,10 @@ const F = {
|
|
|
337
339
|
accessKeySecret: e.accessKeySecret,
|
|
338
340
|
bucket: e.bucket
|
|
339
341
|
}));
|
|
340
|
-
(() => this.isAliOSS ? n.put(t.name, t) : this.$axios.post(
|
|
341
|
-
let
|
|
342
|
-
this.isAliOSS ?
|
|
343
|
-
|
|
342
|
+
(() => this.isAliOSS ? n.put(t.name, t) : this.$axios.post(l, a, { headers: s }))().then((o) => {
|
|
343
|
+
let c;
|
|
344
|
+
this.isAliOSS ? c = o : this.isQiniuOSS ? (c = o.data, c.key = e.url + c.key) : typeof this.resKey == "function" ? c = this.resKey(o.data) : (c = m(o.data, this.resKey), c = c[this.urlKey]);
|
|
345
|
+
const h = this.homeUrl + c;
|
|
344
346
|
r(h);
|
|
345
347
|
}).catch((o) => {
|
|
346
348
|
i(o);
|
|
@@ -354,7 +356,7 @@ const F = {
|
|
|
354
356
|
}, u = {};
|
|
355
357
|
var A = /* @__PURE__ */ y(
|
|
356
358
|
F,
|
|
357
|
-
|
|
359
|
+
_,
|
|
358
360
|
x,
|
|
359
361
|
!1,
|
|
360
362
|
O,
|
|
@@ -366,9 +368,9 @@ function O(t) {
|
|
|
366
368
|
for (let r in u)
|
|
367
369
|
this[r] = u[r];
|
|
368
370
|
}
|
|
369
|
-
const
|
|
371
|
+
const k = /* @__PURE__ */ function() {
|
|
370
372
|
return A.exports;
|
|
371
373
|
}();
|
|
372
374
|
export {
|
|
373
|
-
|
|
375
|
+
k as default
|
|
374
376
|
};
|