@web-utils/component 2.7.12 → 2.7.14
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.d3cd0479.js → WidgetConfig.vue_vue_type_template_lang.3cc74fe8.js} +16 -16
- package/dist/chunks/{WidgetForm.vue_vue_type_template_lang.fbb7d6b7.js → WidgetForm.vue_vue_type_template_lang.d4b05679.js} +10 -10
- package/dist/chunks/{WidgetFormGroup.vue_vue_type_template_lang.47789aae.js → WidgetFormGroup.vue_vue_type_template_lang.bdcb6d37.js} +13 -13
- package/dist/chunks/{WidgetFormTable.vue_vue_type_template_lang.30625146.js → WidgetFormTable.vue_vue_type_template_lang.e2b788ba.js} +4 -3
- 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 +198 -312
- 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 +71 -166
- 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 +4069 -3731
- package/package.json +6 -56
- package/web-types.json +28 -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,4 +1,4 @@
|
|
|
1
|
-
import { s } from "../../chunks/util.
|
|
1
|
+
import { s as r } from "../../chunks/util.23fe58fb.js";
|
|
2
2
|
import { n as o } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
let n = class {
|
|
4
4
|
/**
|
|
@@ -23,14 +23,14 @@ let n = class {
|
|
|
23
23
|
// width: this.videoWidth,
|
|
24
24
|
// height: this.videoHeight
|
|
25
25
|
// }
|
|
26
|
-
}).then((
|
|
27
|
-
"srcObject" in this.video ? this.video.srcObject =
|
|
26
|
+
}).then((s) => {
|
|
27
|
+
"srcObject" in this.video ? this.video.srcObject = s : this.video.src = window.URL.createObjectURL(s), this.video.addEventListener("loadmetadata", () => {
|
|
28
28
|
this.video.play();
|
|
29
|
-
}), this.mediaRecorder = new MediaRecorder(
|
|
29
|
+
}), this.mediaRecorder = new MediaRecorder(s), this.mediaRecorder.addEventListener("dataavailable", (d) => {
|
|
30
30
|
this.chunks.push(d.data);
|
|
31
31
|
}), t();
|
|
32
|
-
}).catch((
|
|
33
|
-
i(
|
|
32
|
+
}).catch((s) => {
|
|
33
|
+
i(s);
|
|
34
34
|
});
|
|
35
35
|
});
|
|
36
36
|
}
|
|
@@ -90,7 +90,7 @@ var c = function() {
|
|
|
90
90
|
}
|
|
91
91
|
})]);
|
|
92
92
|
}, l = [];
|
|
93
|
-
const
|
|
93
|
+
const h = {
|
|
94
94
|
name: "RecordVideo",
|
|
95
95
|
props: {
|
|
96
96
|
background: {
|
|
@@ -109,19 +109,19 @@ const v = {
|
|
|
109
109
|
computed: {
|
|
110
110
|
styleName() {
|
|
111
111
|
return {
|
|
112
|
-
width:
|
|
112
|
+
width: r(this.width)
|
|
113
113
|
};
|
|
114
114
|
},
|
|
115
115
|
imgStyleName() {
|
|
116
116
|
return {
|
|
117
|
-
width:
|
|
117
|
+
width: r(this.width / 2)
|
|
118
118
|
};
|
|
119
119
|
},
|
|
120
120
|
borderStyleName() {
|
|
121
121
|
return {
|
|
122
|
-
width:
|
|
123
|
-
height:
|
|
124
|
-
borderWidth:
|
|
122
|
+
width: r(this.width / 15),
|
|
123
|
+
height: r(this.width / 15),
|
|
124
|
+
borderWidth: r(5)
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
127
|
},
|
|
@@ -145,14 +145,14 @@ const v = {
|
|
|
145
145
|
type: "video/mp4"
|
|
146
146
|
}), t = new FileReader();
|
|
147
147
|
t.readAsDataURL(e), t.addEventListener("loadend", () => {
|
|
148
|
-
|
|
148
|
+
const i = t.result;
|
|
149
149
|
this.$emit("data-change", i);
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
}, a = {};
|
|
154
|
-
var
|
|
155
|
-
|
|
154
|
+
var v = /* @__PURE__ */ o(
|
|
155
|
+
h,
|
|
156
156
|
c,
|
|
157
157
|
l,
|
|
158
158
|
!1,
|
|
@@ -165,9 +165,9 @@ function m(e) {
|
|
|
165
165
|
for (let t in a)
|
|
166
166
|
this[t] = a[t];
|
|
167
167
|
}
|
|
168
|
-
const
|
|
169
|
-
return
|
|
168
|
+
const R = /* @__PURE__ */ function() {
|
|
169
|
+
return v.exports;
|
|
170
170
|
}();
|
|
171
171
|
export {
|
|
172
|
-
|
|
172
|
+
R as default
|
|
173
173
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as i } from "../../chunks/util.
|
|
2
|
-
import { i as n } from "../../chunks/init.
|
|
1
|
+
import { k as i } from "../../chunks/util.23fe58fb.js";
|
|
2
|
+
import { i as n } from "../../chunks/init.7c58eb34.js";
|
|
3
3
|
import { isBlank as o } from "@web-utils/core";
|
|
4
4
|
import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
5
5
|
var h = function() {
|
|
@@ -64,7 +64,7 @@ const c = {
|
|
|
64
64
|
return i.value;
|
|
65
65
|
},
|
|
66
66
|
mainSlot() {
|
|
67
|
-
|
|
67
|
+
const t = [];
|
|
68
68
|
return this.propOption.forEach((e) => {
|
|
69
69
|
this.$scopedSlots[e.prop] && t.push(e.prop);
|
|
70
70
|
}), t;
|
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
import { s as g } from "../../chunks/util.
|
|
2
|
-
import { n as
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
return
|
|
1
|
+
import { s as g } from "../../chunks/util.23fe58fb.js";
|
|
2
|
+
import { n as m } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
|
+
var x = function() {
|
|
4
|
+
var t = this, n = t.$createElement, s = t._self._c || n;
|
|
5
|
+
return s("div", {
|
|
6
6
|
staticClass: "avue-sige"
|
|
7
|
-
}, [
|
|
7
|
+
}, [s("canvas", {
|
|
8
8
|
ref: "canvas",
|
|
9
9
|
staticClass: "avue-sige__canvas",
|
|
10
10
|
attrs: {
|
|
11
|
-
width:
|
|
12
|
-
height:
|
|
11
|
+
width: t.width,
|
|
12
|
+
height: t.height
|
|
13
13
|
}
|
|
14
14
|
})]);
|
|
15
|
-
},
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
}, _ = [];
|
|
16
|
+
function y(t, n, s, h, e, o) {
|
|
17
|
+
t.save(), t.fillStyle = e, t.translate(n, s), t.rotate(Math.PI + o), t.beginPath();
|
|
18
|
+
var a = Math.sin(0), d = Math.cos(0);
|
|
19
|
+
const f = Math.PI / 5 * 4;
|
|
20
|
+
for (let r = 0; r < 5; r++) {
|
|
21
|
+
var a = Math.sin(r * f), d = Math.cos(r * f);
|
|
22
|
+
t.lineTo(a * h, d * h);
|
|
21
23
|
}
|
|
22
|
-
|
|
24
|
+
t.closePath(), t.stroke(), t.fill(), t.restore();
|
|
23
25
|
}
|
|
24
|
-
const
|
|
26
|
+
const M = {
|
|
25
27
|
name: "Sign",
|
|
26
28
|
props: {
|
|
27
29
|
width: {
|
|
@@ -55,73 +57,76 @@ const w = {
|
|
|
55
57
|
this.init();
|
|
56
58
|
},
|
|
57
59
|
methods: {
|
|
58
|
-
getStar(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
getStar(t, n, s) {
|
|
61
|
+
const h = this.canvas, e = this.context, o = h.width / 2, a = h.height / 2;
|
|
62
|
+
e.lineWidth = 7, e.strokeStyle = "#f00", e.beginPath(), e.arc(o, a, 110, 0, Math.PI * 2), e.stroke(), y(e, o, a, 20, "#f00", 0), e.font = "18px 黑体", e.textBaseline = "middle", e.textAlign = "center", e.lineWidth = 1, e.strokeStyle = "#f00", e.strokeText(t, o, a + 50), e.font = "14px 黑体", e.textBaseline = "middle", e.textAlign = "center", e.lineWidth = 1, e.strokeStyle = "#f00", e.strokeText(s, o, a + 80), e.translate(o, a), e.font = "22px 黑体";
|
|
63
|
+
const d = n.length, f = 4 * Math.PI / (3 * (d - 1)), r = n.split("");
|
|
64
|
+
let l;
|
|
65
|
+
for (let i = 0; i < d; i++)
|
|
66
|
+
l = r[i], i == 0 ? e.rotate(5 * Math.PI / 6) : e.rotate(f), e.save(), e.translate(90, 0), e.rotate(Math.PI / 2), e.strokeText(l, 0, 0), e.restore(), e.save();
|
|
63
67
|
this.disabled = !0;
|
|
64
68
|
},
|
|
65
|
-
submit(
|
|
66
|
-
return
|
|
69
|
+
submit(t, n) {
|
|
70
|
+
return t || (t = this.width), n || (n = this.height), this.canvas.toDataURL("i/png");
|
|
67
71
|
},
|
|
68
72
|
clear() {
|
|
69
|
-
this.linex =
|
|
73
|
+
this.linex = [], this.liney = [], this.linen = [], this.disabled = !1;
|
|
70
74
|
},
|
|
71
75
|
init() {
|
|
72
76
|
this.canvas = this.$refs.canvas;
|
|
73
|
-
|
|
74
|
-
typeof document.ontouchstart < "u" ? (
|
|
75
|
-
|
|
76
|
-
this.linex =
|
|
77
|
-
|
|
78
|
-
function
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
77
|
+
const t = this.canvas, n = this;
|
|
78
|
+
typeof document.ontouchstart < "u" ? (t.addEventListener("touchmove", d, !1), t.addEventListener("touchstart", f, !1), t.addEventListener("touchend", r, !1)) : (t.addEventListener("mousemove", d, !1), t.addEventListener("mousedown", f, !1), t.addEventListener("mouseup", r, !1), t.addEventListener("mouseleave", r, !1)), this.context = t.getContext("2d");
|
|
79
|
+
const s = this.context;
|
|
80
|
+
this.linex = [], this.liney = [], this.linen = [];
|
|
81
|
+
let h = 1, e = 30, o = 0;
|
|
82
|
+
function a(l, i) {
|
|
83
|
+
const u = l.getBoundingClientRect();
|
|
84
|
+
let c, v;
|
|
85
|
+
return i.targetTouches ? (c = i.targetTouches[0].clientX, v = i.targetTouches[0].clientY) : (c = i.clientX, v = i.clientY), {
|
|
86
|
+
x: (c - u.left) * (l.width / u.width),
|
|
87
|
+
y: (v - u.top) * (l.height / u.height)
|
|
83
88
|
};
|
|
84
89
|
}
|
|
85
|
-
function
|
|
86
|
-
if (
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
n.
|
|
93
|
-
|
|
94
|
-
r.preventDefault();
|
|
90
|
+
function d(l) {
|
|
91
|
+
if (n.disabled)
|
|
92
|
+
return;
|
|
93
|
+
const i = a(t, l).x, u = a(t, l).y;
|
|
94
|
+
if (o === 1) {
|
|
95
|
+
n.linex.push(i), n.liney.push(u), n.linen.push(1), s.save(), s.translate(s.canvas.width / 2, s.canvas.height / 2), s.translate(-s.canvas.width / 2, -s.canvas.height / 2), s.beginPath(), s.lineWidth = 2;
|
|
96
|
+
for (let c = 1; c < n.linex.length; c++)
|
|
97
|
+
h = n.linex[c], e = n.liney[c], n.linen[c] === 0 ? s.moveTo(h, e) : s.lineTo(h, e);
|
|
98
|
+
s.shadowBlur = 10, s.stroke(), s.restore();
|
|
95
99
|
}
|
|
100
|
+
l.preventDefault();
|
|
96
101
|
}
|
|
97
|
-
function
|
|
98
|
-
if (
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
+
function f(l) {
|
|
103
|
+
if (n.disabled)
|
|
104
|
+
return;
|
|
105
|
+
const i = a(t, l).x, u = a(t, l).y;
|
|
106
|
+
o = 1, n.linex.push(i), n.liney.push(u), n.linen.push(0);
|
|
102
107
|
}
|
|
103
|
-
function
|
|
104
|
-
|
|
108
|
+
function r() {
|
|
109
|
+
n.disabled || (o = 0);
|
|
105
110
|
}
|
|
106
111
|
}
|
|
107
112
|
}
|
|
108
|
-
},
|
|
109
|
-
var
|
|
110
|
-
|
|
111
|
-
m,
|
|
113
|
+
}, p = {};
|
|
114
|
+
var w = /* @__PURE__ */ m(
|
|
115
|
+
M,
|
|
112
116
|
x,
|
|
117
|
+
_,
|
|
113
118
|
!1,
|
|
114
119
|
b,
|
|
115
120
|
null,
|
|
116
121
|
null,
|
|
117
122
|
null
|
|
118
123
|
);
|
|
119
|
-
function b(
|
|
120
|
-
for (let
|
|
121
|
-
this[
|
|
124
|
+
function b(t) {
|
|
125
|
+
for (let n in p)
|
|
126
|
+
this[n] = p[n];
|
|
122
127
|
}
|
|
123
128
|
const S = /* @__PURE__ */ function() {
|
|
124
|
-
return
|
|
129
|
+
return w.exports;
|
|
125
130
|
}();
|
|
126
131
|
export {
|
|
127
132
|
S as default
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as u } from "../../chunks/config.46422d7f.js";
|
|
2
|
-
import { o as n } from "../../chunks/util.
|
|
2
|
+
import { o as n } from "../../chunks/util.23fe58fb.js";
|
|
3
3
|
import { n as g } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
var l = function() {
|
|
5
5
|
var e = this, t = e.$createElement, i = e._self._c || t;
|
|
@@ -49,7 +49,7 @@ const c = {
|
|
|
49
49
|
total: 0,
|
|
50
50
|
// 总页数
|
|
51
51
|
pagerCount: 7,
|
|
52
|
-
|
|
52
|
+
// 超过多少条隐藏
|
|
53
53
|
currentPage: 1,
|
|
54
54
|
// 当前页数
|
|
55
55
|
pageSize: 10,
|
|
@@ -76,7 +76,7 @@ const c = {
|
|
|
76
76
|
pageFlag() {
|
|
77
77
|
this.crud.getTableHeight();
|
|
78
78
|
},
|
|
79
|
-
|
|
79
|
+
// 如果当前页面删除没数据了调用第一页
|
|
80
80
|
"defaultPage.total"() {
|
|
81
81
|
this.defaultPage.total === (this.defaultPage.currentPage - 1) * this.defaultPage.pageSize && this.defaultPage.total != 0 && (this.defaultPage.currentPage = this.defaultPage.currentPage - 1, this.currentChange(this.defaultPage.currentPage));
|
|
82
82
|
}
|
|
@@ -92,11 +92,11 @@ const c = {
|
|
|
92
92
|
updateValue() {
|
|
93
93
|
this.crud.$emit("update:page", this.defaultPage);
|
|
94
94
|
},
|
|
95
|
-
|
|
95
|
+
// 下一页事件
|
|
96
96
|
nextClick(e) {
|
|
97
97
|
this.crud.$emit("next-click", e);
|
|
98
98
|
},
|
|
99
|
-
|
|
99
|
+
// 上一页事件
|
|
100
100
|
prevClick(e) {
|
|
101
101
|
this.crud.$emit("prev-click", e);
|
|
102
102
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as o } from "../../chunks/util.
|
|
1
|
+
import { s as o } from "../../chunks/util.23fe58fb.js";
|
|
2
2
|
import { n as r } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var h = function() {
|
|
4
4
|
var t = this, e = t.$createElement, i = t._self._c || e;
|
|
@@ -63,28 +63,29 @@ const f = {
|
|
|
63
63
|
setPx: o,
|
|
64
64
|
init() {
|
|
65
65
|
this.oversize = !1, this.keyIndex += 1;
|
|
66
|
-
|
|
66
|
+
const t = this.$refs.more;
|
|
67
67
|
t.style.display = "none", this.isLimitHeight && this.limitShow();
|
|
68
68
|
},
|
|
69
69
|
limitShow() {
|
|
70
70
|
this.$nextTick(() => {
|
|
71
|
-
|
|
71
|
+
const t = this.$refs.text, e = this.$el, i = this.$refs.more;
|
|
72
|
+
let n = 1e3;
|
|
72
73
|
if (t)
|
|
73
74
|
if (e.offsetHeight > this.height) {
|
|
74
75
|
i.style.display = "inline-block";
|
|
75
76
|
let s = this.text;
|
|
76
|
-
for (; e.offsetHeight > this.height &&
|
|
77
|
+
for (; e.offsetHeight > this.height && n > 0; )
|
|
77
78
|
e.offsetHeight > this.height * 3 ? t.innerText = s = s.substring(
|
|
78
79
|
0,
|
|
79
80
|
Math.floor(s.length / 2)
|
|
80
|
-
) : t.innerText = s = s.substring(0, s.length - 1),
|
|
81
|
+
) : t.innerText = s = s.substring(0, s.length - 1), n--;
|
|
81
82
|
this.$emit("hide"), this.isHide = !0;
|
|
82
83
|
} else
|
|
83
84
|
this.$emit("show"), this.isHide = !1;
|
|
84
85
|
});
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
|
-
},
|
|
88
|
+
}, l = {};
|
|
88
89
|
var _ = /* @__PURE__ */ r(
|
|
89
90
|
f,
|
|
90
91
|
h,
|
|
@@ -96,12 +97,12 @@ var _ = /* @__PURE__ */ r(
|
|
|
96
97
|
null
|
|
97
98
|
);
|
|
98
99
|
function m(t) {
|
|
99
|
-
for (let e in
|
|
100
|
-
this[e] =
|
|
100
|
+
for (let e in l)
|
|
101
|
+
this[e] = l[e];
|
|
101
102
|
}
|
|
102
|
-
const
|
|
103
|
+
const u = /* @__PURE__ */ function() {
|
|
103
104
|
return _.exports;
|
|
104
105
|
}();
|
|
105
106
|
export {
|
|
106
|
-
|
|
107
|
+
u as default
|
|
107
108
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { s as n } from "../../chunks/util.
|
|
2
|
-
import { n as
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
return
|
|
1
|
+
import { s as n } from "../../chunks/util.23fe58fb.js";
|
|
2
|
+
import { n as o } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
|
+
var l = function() {
|
|
4
|
+
var t = this, e = t.$createElement, s = t._self._c || e;
|
|
5
|
+
return s("div", {
|
|
6
6
|
staticClass: "avue-verify"
|
|
7
|
-
},
|
|
8
|
-
return
|
|
7
|
+
}, t._l(t.list, function(i, a) {
|
|
8
|
+
return s("span", {
|
|
9
9
|
key: a,
|
|
10
10
|
staticClass: "avue-verify__item",
|
|
11
|
-
style:
|
|
12
|
-
}, [
|
|
11
|
+
style: t.styleName
|
|
12
|
+
}, [t._v(" " + t._s(i) + " ")]);
|
|
13
13
|
}), 0);
|
|
14
|
-
},
|
|
14
|
+
}, u = [];
|
|
15
15
|
const _ = {
|
|
16
16
|
name: "Verify",
|
|
17
17
|
props: {
|
|
@@ -30,9 +30,9 @@ const _ = {
|
|
|
30
30
|
get() {
|
|
31
31
|
return this.value || "";
|
|
32
32
|
},
|
|
33
|
-
set(
|
|
34
|
-
|
|
35
|
-
this.$emit("input",
|
|
33
|
+
set(t) {
|
|
34
|
+
const e = `${t}`;
|
|
35
|
+
this.$emit("input", e), this.$emit("change", e);
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
styleName() {
|
|
@@ -50,30 +50,30 @@ const _ = {
|
|
|
50
50
|
},
|
|
51
51
|
methods: {
|
|
52
52
|
random() {
|
|
53
|
-
|
|
54
|
-
if (
|
|
53
|
+
const t = this.len;
|
|
54
|
+
if (t > 21)
|
|
55
55
|
return null;
|
|
56
|
-
|
|
57
|
-
this.data = (Array(
|
|
56
|
+
const e = new RegExp(`(\\d{${t}})(\\.|$)`);
|
|
57
|
+
this.data = (Array(t - 1).join(0) + Math.pow(10, t) * Math.random()).match(e)[1];
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
},
|
|
61
|
-
var
|
|
60
|
+
}, r = {};
|
|
61
|
+
var c = /* @__PURE__ */ o(
|
|
62
62
|
_,
|
|
63
|
+
l,
|
|
63
64
|
u,
|
|
64
|
-
o,
|
|
65
65
|
!1,
|
|
66
|
-
|
|
66
|
+
m,
|
|
67
67
|
null,
|
|
68
68
|
null,
|
|
69
69
|
null
|
|
70
70
|
);
|
|
71
|
-
function
|
|
72
|
-
for (let
|
|
73
|
-
this[
|
|
71
|
+
function m(t) {
|
|
72
|
+
for (let e in r)
|
|
73
|
+
this[e] = r[e];
|
|
74
74
|
}
|
|
75
75
|
const f = /* @__PURE__ */ function() {
|
|
76
|
-
return
|
|
76
|
+
return c.exports;
|
|
77
77
|
}();
|
|
78
78
|
export {
|
|
79
79
|
f as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s, r, C as o, a as l, b as d, c as f, d as u, e as c, f as g, g as p, h, i as C, j as m, k as b, l as v, m as y, n as _, o as x, p as j, q, t as w, u as R, v as k } from "../../chunks/WidgetConfig.vue_vue_type_template_lang.
|
|
1
|
+
import { s, r, C as o, a as l, b as d, c as f, d as u, e as c, f as g, g as p, h, i as C, j as m, k as b, l as v, m as y, n as _, o as x, p as j, q, t as w, u as R, v as k } from "../../chunks/WidgetConfig.vue_vue_type_template_lang.3cc74fe8.js";
|
|
2
2
|
import { n as O } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
const T = [
|
|
4
4
|
"year",
|
|
@@ -55,7 +55,7 @@ const T = [
|
|
|
55
55
|
getComponent() {
|
|
56
56
|
const t = "config-", { type: e, component: i } = this.data;
|
|
57
57
|
if ((!e || i) && e !== "u-editor")
|
|
58
|
-
return t
|
|
58
|
+
return `${t}custom`;
|
|
59
59
|
let a = "input";
|
|
60
60
|
return [void 0, "input", "password", "url"].includes(e) ? a = "input" : T.includes(e) ? a = "date" : ["array", "img"].includes(e) ? a = "array" : ["tree", "cascader"].includes(e) ? a = "tree" : ["radio", "checkbox", "select"].includes(e) ? a = "select" : a = e, t + a;
|
|
61
61
|
}
|
|
@@ -73,11 +73,11 @@ const T = [
|
|
|
73
73
|
if (!t)
|
|
74
74
|
return;
|
|
75
75
|
let e;
|
|
76
|
-
for (
|
|
76
|
+
for (const i of this.fields)
|
|
77
77
|
if (e = i.list.find((a) => a.type === t), e)
|
|
78
78
|
break;
|
|
79
79
|
if (e)
|
|
80
|
-
for (
|
|
80
|
+
for (const i in e)
|
|
81
81
|
e && Object.prototype.hasOwnProperty.call(e, i) && !["icon", "label", "span"].includes(i) && (this.data[i] = e[i]);
|
|
82
82
|
},
|
|
83
83
|
generateRule() {
|
|
@@ -93,18 +93,18 @@ var S = /* @__PURE__ */ O(
|
|
|
93
93
|
r,
|
|
94
94
|
s,
|
|
95
95
|
!1,
|
|
96
|
-
|
|
96
|
+
$,
|
|
97
97
|
null,
|
|
98
98
|
null,
|
|
99
99
|
null
|
|
100
100
|
);
|
|
101
|
-
function
|
|
101
|
+
function $(t) {
|
|
102
102
|
for (let e in n)
|
|
103
103
|
this[e] = n[e];
|
|
104
104
|
}
|
|
105
|
-
const
|
|
105
|
+
const M = /* @__PURE__ */ function() {
|
|
106
106
|
return S.exports;
|
|
107
107
|
}();
|
|
108
108
|
export {
|
|
109
|
-
|
|
109
|
+
M as default
|
|
110
110
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { W as l } from "../../chunks/WidgetFormTable.vue_vue_type_template_lang.
|
|
2
|
-
import { W as o } from "../../chunks/WidgetFormGroup.vue_vue_type_template_lang.
|
|
3
|
-
import { s as n, r as d, W as c } from "../../chunks/WidgetForm.vue_vue_type_template_lang.
|
|
1
|
+
import { W as l } from "../../chunks/WidgetFormTable.vue_vue_type_template_lang.e2b788ba.js";
|
|
2
|
+
import { W as o } from "../../chunks/WidgetFormGroup.vue_vue_type_template_lang.bdcb6d37.js";
|
|
3
|
+
import { s as n, r as d, W as c } from "../../chunks/WidgetForm.vue_vue_type_template_lang.d4b05679.js";
|
|
4
4
|
import h from "vuedraggable";
|
|
5
|
-
import { d as a } from "../../chunks/util.
|
|
5
|
+
import { d as a } from "../../chunks/util.23fe58fb.js";
|
|
6
6
|
import { n as r } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
7
7
|
const m = {
|
|
8
8
|
name: "WidgetForm",
|
|
@@ -34,7 +34,7 @@ const m = {
|
|
|
34
34
|
},
|
|
35
35
|
handleWidgetAdd(e) {
|
|
36
36
|
const t = e.newIndex, i = a(this.data.column[t]);
|
|
37
|
-
i.prop || (i.prop =
|
|
37
|
+
i.prop || (i.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`), delete i.icon, delete i.subfield, i.type === "title" && (delete i.label, this.form[i.prop] = i.value), this.$set(this.data.column, t, i), this.handleSelectWidget(t), this.$emit("change");
|
|
38
38
|
},
|
|
39
39
|
handleWidgetDelete(e) {
|
|
40
40
|
this.data.column.length - 1 === e ? e === 0 ? this.selectWidget = {} : this.handleSelectWidget(e - 1) : this.handleSelectWidget(e + 1), this.$nextTick(() => {
|
|
@@ -42,8 +42,8 @@ const m = {
|
|
|
42
42
|
});
|
|
43
43
|
},
|
|
44
44
|
handleWidgetClone(e) {
|
|
45
|
-
|
|
46
|
-
t.prop =
|
|
45
|
+
const t = a(this.data.column[e]);
|
|
46
|
+
t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, this.data.column.push(t), this.$nextTick(() => {
|
|
47
47
|
this.handleSelectWidget(this.data.column.length - 1), this.$emit("change");
|
|
48
48
|
});
|
|
49
49
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { W as a } from "../../chunks/WidgetFormTable.vue_vue_type_template_lang.
|
|
2
|
-
import { s as h, r as d, W as o } from "../../chunks/WidgetFormGroup.vue_vue_type_template_lang.
|
|
1
|
+
import { W as a } from "../../chunks/WidgetFormTable.vue_vue_type_template_lang.e2b788ba.js";
|
|
2
|
+
import { s as h, r as d, W as o } from "../../chunks/WidgetFormGroup.vue_vue_type_template_lang.bdcb6d37.js";
|
|
3
3
|
import r from "vuedraggable";
|
|
4
|
-
import { d as n } from "../../chunks/util.
|
|
4
|
+
import { d as n } from "../../chunks/util.23fe58fb.js";
|
|
5
5
|
import { n as m } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
6
6
|
const g = {
|
|
7
7
|
name: "WidgetFormGroup",
|
|
@@ -41,9 +41,9 @@ const g = {
|
|
|
41
41
|
});
|
|
42
42
|
},
|
|
43
43
|
handleWidgetCloneTable(e) {
|
|
44
|
-
|
|
45
|
-
t.prop =
|
|
46
|
-
i.prop =
|
|
44
|
+
const t = n(this.data.column[e]);
|
|
45
|
+
t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, t.children.column.forEach((i) => {
|
|
46
|
+
i.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`;
|
|
47
47
|
}), this.data.column.splice(e, 0, t), this.$nextTick(() => {
|
|
48
48
|
this.handleSelectWidget(e + 1), this.$emit("change");
|
|
49
49
|
});
|
|
@@ -53,7 +53,7 @@ const g = {
|
|
|
53
53
|
},
|
|
54
54
|
handleWidgetTableClone(e, t) {
|
|
55
55
|
const i = n(t);
|
|
56
|
-
i.prop =
|
|
56
|
+
i.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, this.$set(e.children.column, e.children.column.length, { ...i }), this.$nextTick(() => {
|
|
57
57
|
this.selectWidget = e.children.column[e.children.column.length - 1], this.$emit("change");
|
|
58
58
|
});
|
|
59
59
|
},
|
|
@@ -70,7 +70,7 @@ const g = {
|
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
72
72
|
const l = n(t.children.column[i]);
|
|
73
|
-
l.prop || (l.prop =
|
|
73
|
+
l.prop || (l.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`), delete l.icon, l.type === "dynamic" ? l.span = 24 : l.span = 12, this.$set(t.children.column, i, { ...l }), this.selectWidget = t.children.column[i], this.$emit("change");
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
}, s = {};
|