asiaint-lowcode 3.1.175 → 3.1.177
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/asiaint-lowcode.d.ts +42 -0
- package/dist/asiaint-lowcode.js +8 -8
- package/dist/asiaint-lowcode.umd.cjs +227 -227
- package/dist/lazy/{Card-CuIuPVfa.js → Card-Df5HQuSA.js} +1 -1
- package/dist/lazy/{Cascader-DG9-lQL_.js → Cascader-CUdBOQMT.js} +1 -1
- package/dist/lazy/{Checkbox-DkokY_T5.js → Checkbox-D4TGj4Gh.js} +2 -2
- package/dist/lazy/{Collapse-CfN04wPP.js → Collapse-CSrmJEuG.js} +2 -2
- package/dist/lazy/{Component-BmIr-TEc.js → Component-B56uYxqH.js} +1 -1
- package/dist/lazy/{Component-bJujdUFt.js → Component-BcUrdJw4.js} +1 -1
- package/dist/lazy/{Component-DDr0mt26.js → Component-DeUgzpTE.js} +1 -1
- package/dist/lazy/Component-Dta0_WNK.js +198 -0
- package/dist/lazy/{CurdCard-fARDual0.js → CurdCard-Dj49hcK7.js} +1 -1
- package/dist/lazy/{Custom-DLf2H4j-.js → Custom-z5a0wXtx.js} +1 -1
- package/dist/lazy/{DatePicker-DwGL3Rfo.js → DatePicker-BLsJth9f.js} +1 -1
- package/dist/lazy/{DragList-CkJN4M1_.js → DragList-A0LrUXJx.js} +13 -13
- package/dist/lazy/FilterSearch-BAcjot1g.js +149 -0
- package/dist/lazy/FloatCurd-CAZ0HYfs.js +268 -0
- package/dist/lazy/FloatSearchCurd-D4Fc77Tz.js +447 -0
- package/dist/lazy/{FormList-BisnYpYy.js → FormList-DelEccht.js} +1 -1
- package/dist/lazy/{Grid-DU0cGkx3.js → Grid-DO8MvqEC.js} +1 -1
- package/dist/lazy/{InfiniteScroll-DIBaRISh.js → InfiniteScroll-5mQ3PaQw.js} +1 -1
- package/dist/lazy/{Inline-Dz8K0mcs.js → Inline-DhabZQqd.js} +1 -1
- package/dist/lazy/{JsonEdit-CcHoX1MX.js → JsonEdit-pB6kDOam.js} +1 -1
- package/dist/lazy/{LogList-CCqb9sMw.js → LogList-Ctrc5xGf.js} +1 -1
- package/dist/lazy/{ObjGroup-9CuErhWA.js → ObjGroup-DWelUzsz.js} +5 -5
- package/dist/lazy/{OfferDetails-BizT7B7e.js → OfferDetails-jcHDEWrY.js} +68 -67
- package/dist/lazy/Pagination-BubA_Mbd.js +121 -0
- package/dist/lazy/{Progress-BEuL9CsA.js → Progress-BDneCzag.js} +1 -1
- package/dist/lazy/{Radio-CbcqDR_c.js → Radio-D6kPoXfF.js} +2 -2
- package/dist/lazy/{SearchSelect-PZJ79a84.js → SearchSelect-BYkzwccw.js} +2 -2
- package/dist/lazy/{Select-CTGej9Jt.js → Select-D8HxwiAJ.js} +2 -2
- package/dist/lazy/Table-D0xGXiGP.js +608 -0
- package/dist/lazy/{Tabs-Kra7RQza.js → Tabs-CRCUr0rv.js} +5 -5
- package/dist/lazy/Tag-PhRxl7DO.js +25 -0
- package/dist/lazy/{TextArea-D-md2_JP.js → TextArea-C4U0r9UA.js} +1 -1
- package/dist/lazy/{Title-32bZDihB.js → Title-BPzw8Jtw.js} +1 -1
- package/dist/lazy/Title.vue_vue_type_script_setup_true_lang-qszdWraA.js +26 -0
- package/dist/lazy/{Wrapper-Djhw4u_A.js → Wrapper-Cz2gE1Lc.js} +3 -3
- package/dist/lazy/{index-if5yiaE6.js → index-BXjM-V09.js} +6088 -6141
- package/dist/lazy/{useSelect-Cx92c9xA.js → useSelect-BsWjgQi9.js} +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/lazy/Component-DPKOSkbS.js +0 -192
- package/dist/lazy/Component-DVnr7_Wq.js +0 -321
- package/dist/lazy/FilterSearch-DWIoFEYA.js +0 -149
- package/dist/lazy/FloatCurd-BIIOwN6L.js +0 -268
- package/dist/lazy/FloatSearchCurd-B5mTYPo4.js +0 -447
- package/dist/lazy/Pagination-BcwTZvOy.js +0 -121
- package/dist/lazy/Table-CTLmaWUi.js +0 -667
- package/dist/lazy/Tag-IQ_W6v0E.js +0 -22
- package/dist/lazy/Title.vue_vue_type_script_setup_true_lang-Ceco_9-w.js +0 -23
package/package.json
CHANGED
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
import { defineComponent as $, mergeModels as z, useModel as E, ref as I, resolveComponent as B, openBlock as t, createElementBlock as o, Fragment as d, createVNode as p, normalizeClass as L, createSlots as N, withCtx as g, createTextVNode as h, createElementVNode as s, createBlock as f, toDisplayString as u, createCommentVNode as m, unref as O, renderList as T } from "vue";
|
|
2
|
-
import { genFileId as R, ElMessage as j, ElMessageBox as P } from "element-plus";
|
|
3
|
-
import { c as q, I as c, a as A, _ as G } from "./index-if5yiaE6.js";
|
|
4
|
-
const H = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "smallDragStyle-text"
|
|
7
|
-
}, J = { class: "el-upload__tip" }, K = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "upload-bottom-part"
|
|
10
|
-
}, Q = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "small-file-list-wrapper"
|
|
13
|
-
}, W = { class: "file-item-name" }, X = { class: "file-list-wrapper" }, Y = ["title"], Z = /* @__PURE__ */ $({
|
|
14
|
-
__name: "Component",
|
|
15
|
-
props: /* @__PURE__ */ z({
|
|
16
|
-
action: {},
|
|
17
|
-
multiple: { type: Boolean },
|
|
18
|
-
accept: {},
|
|
19
|
-
btnText: { default: "点击上传" },
|
|
20
|
-
tip: {},
|
|
21
|
-
limit: {},
|
|
22
|
-
drag: { type: Boolean },
|
|
23
|
-
name: { default: "file" },
|
|
24
|
-
listType: { default: "text" },
|
|
25
|
-
attachmentTitle: {},
|
|
26
|
-
showFileList: { type: Boolean, default: !0 },
|
|
27
|
-
autoUpload: { type: Boolean },
|
|
28
|
-
beforeUpload: {},
|
|
29
|
-
isOnlyOne: { type: Boolean, default: !1 },
|
|
30
|
-
onChange: {},
|
|
31
|
-
smallDragStyle: { type: Boolean },
|
|
32
|
-
clearable: { type: Boolean, default: !0 }
|
|
33
|
-
}, {
|
|
34
|
-
modelValue: {
|
|
35
|
-
default: () => []
|
|
36
|
-
},
|
|
37
|
-
modelModifiers: {}
|
|
38
|
-
}),
|
|
39
|
-
emits: ["update:modelValue"],
|
|
40
|
-
setup(v) {
|
|
41
|
-
const n = v, r = E(v, "modelValue"), { ruleModule: k, pageMethodMap: b } = q(), w = (e) => {
|
|
42
|
-
if (n.beforeUpload)
|
|
43
|
-
try {
|
|
44
|
-
return k[n.beforeUpload](b, e);
|
|
45
|
-
} catch (l) {
|
|
46
|
-
console.error(l);
|
|
47
|
-
}
|
|
48
|
-
return !0;
|
|
49
|
-
}, D = (e, l) => {
|
|
50
|
-
if (n.onChange)
|
|
51
|
-
try {
|
|
52
|
-
k[n.onChange](b, e, l);
|
|
53
|
-
} catch (i) {
|
|
54
|
-
console.error(i);
|
|
55
|
-
}
|
|
56
|
-
}, C = (e) => {
|
|
57
|
-
const l = r.value.findIndex((i) => i.uid === e.uid);
|
|
58
|
-
l !== -1 && r.value.splice(l, 1);
|
|
59
|
-
}, S = (e, l) => {
|
|
60
|
-
console.log(e, l);
|
|
61
|
-
}, M = (e) => {
|
|
62
|
-
console.log(e);
|
|
63
|
-
}, y = I(), U = (e, l) => {
|
|
64
|
-
if (n.isOnlyOne && n.limit === 1) {
|
|
65
|
-
y.value.clearFiles();
|
|
66
|
-
const i = e[0];
|
|
67
|
-
i.uid = R(), y.value.handleStart(i);
|
|
68
|
-
} else
|
|
69
|
-
j.warning(
|
|
70
|
-
`The limit is ${n.limit}, you selected ${e.length} files this time, add up to ${e.length + l.length} totally`
|
|
71
|
-
);
|
|
72
|
-
}, _ = (e, l) => n.beforeUpload ? !1 : P.confirm(`Cancel the transfer of ${e.name} ?`).then(
|
|
73
|
-
() => !0,
|
|
74
|
-
() => !1
|
|
75
|
-
);
|
|
76
|
-
return (e, l) => {
|
|
77
|
-
const i = B("el-button"), F = B("el-upload");
|
|
78
|
-
return t(), o(d, null, [
|
|
79
|
-
p(F, {
|
|
80
|
-
"file-list": r.value,
|
|
81
|
-
"onUpdate:fileList": l[0] || (l[0] = (a) => r.value = a),
|
|
82
|
-
action: e.action,
|
|
83
|
-
multiple: e.multiple,
|
|
84
|
-
limit: e.limit,
|
|
85
|
-
drag: e.drag,
|
|
86
|
-
name: e.name,
|
|
87
|
-
listType: e.listType,
|
|
88
|
-
accept: e.accept,
|
|
89
|
-
"show-file-list": e.showFileList,
|
|
90
|
-
"on-preview": M,
|
|
91
|
-
"on-remove": S,
|
|
92
|
-
"before-remove": _,
|
|
93
|
-
"before-upload": w,
|
|
94
|
-
"on-change": D,
|
|
95
|
-
"on-exceed": U,
|
|
96
|
-
class: L({ dragUpload: e.drag, smallDragStyle: e.smallDragStyle }),
|
|
97
|
-
ref_key: "upload",
|
|
98
|
-
ref: y
|
|
99
|
-
}, N({
|
|
100
|
-
default: g(() => [
|
|
101
|
-
e.listType === "text" ? (t(), o(d, { key: 0 }, [
|
|
102
|
-
e.drag ? (t(), o(d, { key: 0 }, [
|
|
103
|
-
e.smallDragStyle ? (t(), o("div", H, l[1] || (l[1] = [
|
|
104
|
-
h("Drop file here or "),
|
|
105
|
-
s("span", null, "click to upload", -1)
|
|
106
|
-
]))) : (t(), o(d, { key: 1 }, [
|
|
107
|
-
p(c, {
|
|
108
|
-
name: "icon-shangchuan",
|
|
109
|
-
color: "var(--el-color-primary)"
|
|
110
|
-
}),
|
|
111
|
-
l[2] || (l[2] = s("div", null, [
|
|
112
|
-
h("Drop file here or "),
|
|
113
|
-
s("em", null, "click to upload")
|
|
114
|
-
], -1))
|
|
115
|
-
], 64))
|
|
116
|
-
], 64)) : (t(), f(i, {
|
|
117
|
-
key: 1,
|
|
118
|
-
type: "primary"
|
|
119
|
-
}, {
|
|
120
|
-
default: g(() => [
|
|
121
|
-
h(u(e.btnText), 1)
|
|
122
|
-
]),
|
|
123
|
-
_: 1
|
|
124
|
-
}))
|
|
125
|
-
], 64)) : m("", !0),
|
|
126
|
-
e.listType === "picture-card" ? (t(), f(O(A), {
|
|
127
|
-
key: 1,
|
|
128
|
-
name: "add"
|
|
129
|
-
})) : m("", !0)
|
|
130
|
-
]),
|
|
131
|
-
_: 2
|
|
132
|
-
}, [
|
|
133
|
-
e.tip ? {
|
|
134
|
-
name: "tip",
|
|
135
|
-
fn: g(() => [
|
|
136
|
-
s("div", J, u(e.tip), 1)
|
|
137
|
-
]),
|
|
138
|
-
key: "0"
|
|
139
|
-
} : void 0
|
|
140
|
-
]), 1032, ["file-list", "action", "multiple", "limit", "drag", "name", "listType", "accept", "show-file-list", "class"]),
|
|
141
|
-
e.drag && r.value.length > 0 ? (t(), o("div", K, [
|
|
142
|
-
e.smallDragStyle ? (t(), o("div", Q, [
|
|
143
|
-
(t(!0), o(d, null, T(r.value, (a) => (t(), o("div", {
|
|
144
|
-
class: "file-item",
|
|
145
|
-
key: a.uid
|
|
146
|
-
}, [
|
|
147
|
-
p(c, {
|
|
148
|
-
name: "icon-fujian",
|
|
149
|
-
size: "small"
|
|
150
|
-
}),
|
|
151
|
-
s("div", W, u(a.name), 1),
|
|
152
|
-
e.clearable ? (t(), f(c, {
|
|
153
|
-
key: 0,
|
|
154
|
-
name: "icon-guanbi",
|
|
155
|
-
class: "file-item-close",
|
|
156
|
-
size: "x-small",
|
|
157
|
-
onClick: (V) => C(a)
|
|
158
|
-
}, null, 8, ["onClick"])) : m("", !0)
|
|
159
|
-
]))), 128))
|
|
160
|
-
])) : (t(), o(d, { key: 1 }, [
|
|
161
|
-
s("div", null, u(e.attachmentTitle), 1),
|
|
162
|
-
s("div", X, [
|
|
163
|
-
(t(!0), o(d, null, T(r.value, (a) => (t(), o("div", {
|
|
164
|
-
class: "file-item",
|
|
165
|
-
key: a.uid
|
|
166
|
-
}, [
|
|
167
|
-
p(c, {
|
|
168
|
-
name: "icon-fujiantubiao1",
|
|
169
|
-
size: "ultra-large"
|
|
170
|
-
}),
|
|
171
|
-
s("div", {
|
|
172
|
-
class: "file-item-name",
|
|
173
|
-
title: a.name
|
|
174
|
-
}, u(a.name), 9, Y),
|
|
175
|
-
e.clearable ? (t(), f(c, {
|
|
176
|
-
key: 0,
|
|
177
|
-
name: "icon-guanbi",
|
|
178
|
-
class: "file-item-close",
|
|
179
|
-
size: "x-small",
|
|
180
|
-
onClick: (V) => C(a)
|
|
181
|
-
}, null, 8, ["onClick"])) : m("", !0)
|
|
182
|
-
]))), 128))
|
|
183
|
-
])
|
|
184
|
-
], 64))
|
|
185
|
-
])) : m("", !0)
|
|
186
|
-
], 64);
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
}), te = /* @__PURE__ */ G(Z, [["__scopeId", "data-v-cf510f7a"]]);
|
|
190
|
-
export {
|
|
191
|
-
te as default
|
|
192
|
-
};
|
|
@@ -1,321 +0,0 @@
|
|
|
1
|
-
import { defineComponent as $, ref as v, computed as N, watch as L, onMounted as x, onBeforeUnmount as F, openBlock as T, createElementBlock as E, mergeModels as J, useModel as A, resolveComponent as G, unref as W, createElementVNode as P, createBlock as X, withCtx as D, createTextVNode as I, createCommentVNode as Y, createVNode as R } from "vue";
|
|
2
|
-
import { _ as H, u as K, e as Q } from "./index-if5yiaE6.js";
|
|
3
|
-
import "element-plus";
|
|
4
|
-
const Z = $({
|
|
5
|
-
props: {
|
|
6
|
-
width: {
|
|
7
|
-
type: Number,
|
|
8
|
-
default: 800
|
|
9
|
-
},
|
|
10
|
-
height: {
|
|
11
|
-
type: Number,
|
|
12
|
-
default: 300
|
|
13
|
-
},
|
|
14
|
-
lineWidth: {
|
|
15
|
-
type: Number,
|
|
16
|
-
default: 4
|
|
17
|
-
},
|
|
18
|
-
lineColor: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: "#000000"
|
|
21
|
-
},
|
|
22
|
-
bgColor: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: ""
|
|
25
|
-
},
|
|
26
|
-
isCrop: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: !1
|
|
29
|
-
},
|
|
30
|
-
isClearBgColor: {
|
|
31
|
-
type: Boolean,
|
|
32
|
-
default: !1
|
|
33
|
-
},
|
|
34
|
-
format: {
|
|
35
|
-
type: String,
|
|
36
|
-
default: "image/png"
|
|
37
|
-
},
|
|
38
|
-
quality: {
|
|
39
|
-
type: Number,
|
|
40
|
-
default: 1
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
setup(a) {
|
|
44
|
-
const n = v(!1), c = v(""), d = v([]), t = v(null), g = v(0), o = v(0), C = v(!1), f = v(1), l = v(null), S = N(() => a.height / a.width), u = N(() => a.bgColor ? a.bgColor : "rgba(255, 255, 255, 0)");
|
|
45
|
-
L(u, (e) => {
|
|
46
|
-
l.value && (l.value.style.background = e);
|
|
47
|
-
});
|
|
48
|
-
const s = () => {
|
|
49
|
-
if (l.value) {
|
|
50
|
-
l.value.style.width = `${a.width}px`;
|
|
51
|
-
const e = parseFloat(window.getComputedStyle(l.value).width);
|
|
52
|
-
l.value.style.height = `${S.value * e}px`, t.value = l.value.getContext("2d"), t.value && (t.value.scale(1 * f.value, 1 * f.value), f.value = e / a.width, t.value.scale(1 / f.value, 1 / f.value));
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
x(() => {
|
|
56
|
-
l.value && (l.value.height = a.height, l.value.width = a.width, l.value.style.background = u.value, s(), document.onmouseup = () => {
|
|
57
|
-
C.value = !1;
|
|
58
|
-
}), window.addEventListener("resize", s);
|
|
59
|
-
}), F(() => {
|
|
60
|
-
window.removeEventListener("resize", s);
|
|
61
|
-
});
|
|
62
|
-
const m = (e) => {
|
|
63
|
-
g.value = e.x, o.value = e.y, t.value && (t.value.beginPath(), t.value.moveTo(g.value, o.value), t.value.lineTo(e.x, e.y), t.value.lineCap = "round", t.value.lineJoin = "round", t.value.lineWidth = a.lineWidth * f.value, t.value.stroke(), t.value.closePath(), d.value.push(e));
|
|
64
|
-
}, y = (e) => {
|
|
65
|
-
t.value && (t.value.beginPath(), t.value.moveTo(g.value, o.value), t.value.lineTo(e.x, e.y), t.value.strokeStyle = a.lineColor, t.value.lineWidth = a.lineWidth * f.value, t.value.lineCap = "round", t.value.lineJoin = "round", t.value.stroke(), t.value.closePath(), o.value = e.y, g.value = e.x, d.value.push(e));
|
|
66
|
-
}, V = (e) => {
|
|
67
|
-
t.value && (t.value.beginPath(), t.value.moveTo(g.value, o.value), t.value.lineTo(e.x, e.y), t.value.lineCap = "round", t.value.lineJoin = "round", t.value.stroke(), t.value.closePath(), d.value.push(e), d.value.push({ x: -1, y: -1 }));
|
|
68
|
-
}, U = (e) => {
|
|
69
|
-
const i = (e == null ? void 0 : e.format) || a.format, b = (e == null ? void 0 : e.quality) || a.quality;
|
|
70
|
-
return new Promise((k, B) => {
|
|
71
|
-
if (!n.value) {
|
|
72
|
-
B("Warning: Not Signed!");
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
if (t.value) {
|
|
76
|
-
const h = t.value.getImageData(0, 0, l.value.width, l.value.height);
|
|
77
|
-
t.value.globalCompositeOperation = "destination-over", t.value.fillStyle = u.value, t.value.fillRect(0, 0, l.value.width, l.value.height), c.value = l.value.toDataURL(i, b);
|
|
78
|
-
let p = c.value;
|
|
79
|
-
if (t.value.clearRect(0, 0, l.value.width, l.value.height), t.value.putImageData(h, 0, 0), t.value.globalCompositeOperation = "source-over", a.isCrop) {
|
|
80
|
-
const r = q(h.data), w = document.createElement("canvas"), M = w.getContext("2d");
|
|
81
|
-
if (M) {
|
|
82
|
-
w.width = r[2] - r[0], w.height = r[3] - r[1];
|
|
83
|
-
const z = t.value.getImageData(r[0], r[1], r[2], r[3]);
|
|
84
|
-
M.globalCompositeOperation = "destination-over", M.putImageData(z, 0, 0), M.fillStyle = u.value, M.fillRect(0, 0, w.width, w.height), p = w.toDataURL(i, b);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
k(p);
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
}, O = () => {
|
|
91
|
-
t.value && t.value.clearRect(0, 0, l.value.width, l.value.height), a.isClearBgColor && (d.value = [], n.value = !1, c.value = "");
|
|
92
|
-
}, q = (e) => {
|
|
93
|
-
let i = l.value.width, b = 0, k = l.value.height, B = 0;
|
|
94
|
-
for (let h = 0; h < l.value.width; h++)
|
|
95
|
-
for (let p = 0; p < l.value.height; p++) {
|
|
96
|
-
const r = (h + l.value.width * p) * 4;
|
|
97
|
-
(e[r] > 0 || e[r + 1] > 0 || e[r + 2] > 0 || e[r + 3] > 0) && (B = Math.max(p, B), b = Math.max(h, b), k = Math.min(p, k), i = Math.min(h, i));
|
|
98
|
-
}
|
|
99
|
-
return [i + 1, k + 1, b + 1, B + 1];
|
|
100
|
-
};
|
|
101
|
-
return {
|
|
102
|
-
canvas: l,
|
|
103
|
-
myBg: u,
|
|
104
|
-
drawStart: m,
|
|
105
|
-
drawMove: y,
|
|
106
|
-
drawEnd: V,
|
|
107
|
-
generate: U,
|
|
108
|
-
reset: O,
|
|
109
|
-
touchStart: (e) => {
|
|
110
|
-
if (e.preventDefault(), n.value = !0, e.touches.length === 1 && l.value) {
|
|
111
|
-
const i = {
|
|
112
|
-
x: e.targetTouches[0].clientX - l.value.getBoundingClientRect().left,
|
|
113
|
-
y: e.targetTouches[0].clientY - l.value.getBoundingClientRect().top
|
|
114
|
-
};
|
|
115
|
-
m(i);
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
touchMove: (e) => {
|
|
119
|
-
if (e.preventDefault(), e.touches.length === 1) {
|
|
120
|
-
const i = {
|
|
121
|
-
x: e.targetTouches[0].clientX - l.value.getBoundingClientRect().left,
|
|
122
|
-
y: e.targetTouches[0].clientY - l.value.getBoundingClientRect().top
|
|
123
|
-
};
|
|
124
|
-
y(i);
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
touchEnd: (e) => {
|
|
128
|
-
if (e.preventDefault(), e.touches.length === 1) {
|
|
129
|
-
const i = {
|
|
130
|
-
x: e.targetTouches[0].clientX - l.value.getBoundingClientRect().left,
|
|
131
|
-
y: e.targetTouches[0].clientY - l.value.getBoundingClientRect().top
|
|
132
|
-
};
|
|
133
|
-
V(i);
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
mouseDown: (e) => {
|
|
137
|
-
e.preventDefault(), C.value = !0, n.value = !0;
|
|
138
|
-
const i = {
|
|
139
|
-
x: e.offsetX,
|
|
140
|
-
y: e.offsetY
|
|
141
|
-
};
|
|
142
|
-
m(i);
|
|
143
|
-
},
|
|
144
|
-
mouseMove: (e) => {
|
|
145
|
-
if (e.preventDefault(), C.value) {
|
|
146
|
-
const i = {
|
|
147
|
-
x: e.offsetX,
|
|
148
|
-
y: e.offsetY
|
|
149
|
-
};
|
|
150
|
-
y(i);
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
mouseUp: (e) => {
|
|
154
|
-
e.preventDefault();
|
|
155
|
-
const i = {
|
|
156
|
-
x: e.offsetX,
|
|
157
|
-
y: e.offsetY
|
|
158
|
-
};
|
|
159
|
-
V(i), C.value = !1;
|
|
160
|
-
}
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
function j(a, n, c, d, t, g) {
|
|
165
|
-
return T(), E("canvas", {
|
|
166
|
-
ref: "canvas",
|
|
167
|
-
onMousedown: n[0] || (n[0] = (...o) => a.mouseDown && a.mouseDown(...o)),
|
|
168
|
-
onMousemove: n[1] || (n[1] = (...o) => a.mouseMove && a.mouseMove(...o)),
|
|
169
|
-
onMouseup: n[2] || (n[2] = (...o) => a.mouseUp && a.mouseUp(...o)),
|
|
170
|
-
onTouchstart: n[3] || (n[3] = (...o) => a.touchStart && a.touchStart(...o)),
|
|
171
|
-
onTouchmove: n[4] || (n[4] = (...o) => a.touchMove && a.touchMove(...o)),
|
|
172
|
-
onTouchend: n[5] || (n[5] = (...o) => a.touchEnd && a.touchEnd(...o))
|
|
173
|
-
}, null, 544);
|
|
174
|
-
}
|
|
175
|
-
const _ = /* @__PURE__ */ H(Z, [["render", j], ["__scopeId", "data-v-5f3bfcf7"]]), ee = { key: 0 }, te = { class: "vfc-esign-preview" }, le = ["src"], ae = {
|
|
176
|
-
key: 1,
|
|
177
|
-
class: "vfc-esign"
|
|
178
|
-
}, ie = /* @__PURE__ */ $({
|
|
179
|
-
__name: "Component",
|
|
180
|
-
props: /* @__PURE__ */ J({
|
|
181
|
-
lineWidth: { default: 6 },
|
|
182
|
-
lineColor: { default: "#000000" },
|
|
183
|
-
bgColor: { default: "#f6f6f6" },
|
|
184
|
-
isCrop: { type: Boolean, default: !1 },
|
|
185
|
-
width: { default: 700 },
|
|
186
|
-
height: { default: 300 },
|
|
187
|
-
disabled: { type: Boolean },
|
|
188
|
-
format: { default: "image/png" }
|
|
189
|
-
}, {
|
|
190
|
-
modelValue: {},
|
|
191
|
-
modelModifiers: {}
|
|
192
|
-
}),
|
|
193
|
-
emits: ["update:modelValue"],
|
|
194
|
-
setup(a) {
|
|
195
|
-
const n = a, c = v(), d = K(), t = A(a, "modelValue"), g = {
|
|
196
|
-
size: "small",
|
|
197
|
-
labelPosition: "right",
|
|
198
|
-
items: [
|
|
199
|
-
{
|
|
200
|
-
component: "Inline",
|
|
201
|
-
children: [
|
|
202
|
-
{
|
|
203
|
-
label: "画笔粗细",
|
|
204
|
-
component: "InputNumber",
|
|
205
|
-
name: "lineWidth",
|
|
206
|
-
props: {
|
|
207
|
-
controlsPosition: "right"
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
{ label: "画笔颜色", component: "ColorPicker", name: "lineColor" },
|
|
211
|
-
{ label: "画板背景色", component: "ColorPicker", name: "bgColor" }
|
|
212
|
-
],
|
|
213
|
-
props: {
|
|
214
|
-
align: "left",
|
|
215
|
-
gap: 20
|
|
216
|
-
},
|
|
217
|
-
designKey: "design-ZuIT",
|
|
218
|
-
name: "form-OqAi",
|
|
219
|
-
style: {
|
|
220
|
-
marginBottom: "10px"
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
]
|
|
224
|
-
}, o = v({
|
|
225
|
-
lineWidth: 6,
|
|
226
|
-
lineColor: "#000000",
|
|
227
|
-
bgColor: "#fff"
|
|
228
|
-
}), C = () => {
|
|
229
|
-
c.value.reset();
|
|
230
|
-
}, f = () => {
|
|
231
|
-
c.value.generate().then((u) => {
|
|
232
|
-
t.value = u;
|
|
233
|
-
}).catch((u) => {
|
|
234
|
-
alert(u);
|
|
235
|
-
});
|
|
236
|
-
}, l = v(""), S = () => {
|
|
237
|
-
l.value = t.value, t.value = "";
|
|
238
|
-
};
|
|
239
|
-
return x(() => {
|
|
240
|
-
Object.assign(o.value, n);
|
|
241
|
-
}), (u, s) => {
|
|
242
|
-
const m = G("el-button");
|
|
243
|
-
return W(d).read || t.value ? (T(), E("div", ee, [
|
|
244
|
-
P("div", te, [
|
|
245
|
-
P("img", {
|
|
246
|
-
src: t.value,
|
|
247
|
-
alt: "未签名"
|
|
248
|
-
}, null, 8, le)
|
|
249
|
-
]),
|
|
250
|
-
W(d).read ? Y("", !0) : (T(), X(m, {
|
|
251
|
-
key: 0,
|
|
252
|
-
disabled: u.disabled,
|
|
253
|
-
onClick: S,
|
|
254
|
-
type: "primary"
|
|
255
|
-
}, {
|
|
256
|
-
default: D(() => s[2] || (s[2] = [
|
|
257
|
-
I("重写")
|
|
258
|
-
])),
|
|
259
|
-
_: 1
|
|
260
|
-
}, 8, ["disabled"]))
|
|
261
|
-
])) : (T(), E("div", ae, [
|
|
262
|
-
R(W(Q), {
|
|
263
|
-
modelValue: o.value,
|
|
264
|
-
"onUpdate:modelValue": s[0] || (s[0] = (y) => o.value = y),
|
|
265
|
-
schema: g,
|
|
266
|
-
class: "vfc-esign-actions"
|
|
267
|
-
}, null, 8, ["modelValue"]),
|
|
268
|
-
R(_, {
|
|
269
|
-
class: "vfc-esign-canvas",
|
|
270
|
-
ref_key: "esign",
|
|
271
|
-
ref: c,
|
|
272
|
-
width: u.width,
|
|
273
|
-
height: u.height,
|
|
274
|
-
isCrop: u.isCrop,
|
|
275
|
-
lineWidth: o.value.lineWidth,
|
|
276
|
-
lineColor: o.value.lineColor,
|
|
277
|
-
bgColor: o.value.bgColor,
|
|
278
|
-
format: u.format
|
|
279
|
-
}, null, 8, ["width", "height", "isCrop", "lineWidth", "lineColor", "bgColor", "format"]),
|
|
280
|
-
P("div", null, [
|
|
281
|
-
l.value ? (T(), X(m, {
|
|
282
|
-
key: 0,
|
|
283
|
-
disabled: u.disabled,
|
|
284
|
-
onClick: s[1] || (s[1] = (y) => t.value = l.value),
|
|
285
|
-
plain: "",
|
|
286
|
-
type: "primary"
|
|
287
|
-
}, {
|
|
288
|
-
default: D(() => s[3] || (s[3] = [
|
|
289
|
-
I("取消")
|
|
290
|
-
])),
|
|
291
|
-
_: 1
|
|
292
|
-
}, 8, ["disabled"])) : Y("", !0),
|
|
293
|
-
R(m, {
|
|
294
|
-
disabled: u.disabled,
|
|
295
|
-
onClick: C,
|
|
296
|
-
plain: "",
|
|
297
|
-
type: "primary"
|
|
298
|
-
}, {
|
|
299
|
-
default: D(() => s[4] || (s[4] = [
|
|
300
|
-
I("清空")
|
|
301
|
-
])),
|
|
302
|
-
_: 1
|
|
303
|
-
}, 8, ["disabled"]),
|
|
304
|
-
R(m, {
|
|
305
|
-
disabled: u.disabled,
|
|
306
|
-
onClick: f,
|
|
307
|
-
type: "primary"
|
|
308
|
-
}, {
|
|
309
|
-
default: D(() => s[5] || (s[5] = [
|
|
310
|
-
I("保存")
|
|
311
|
-
])),
|
|
312
|
-
_: 1
|
|
313
|
-
}, 8, ["disabled"])
|
|
314
|
-
])
|
|
315
|
-
]));
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
});
|
|
319
|
-
export {
|
|
320
|
-
ie as default
|
|
321
|
-
};
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import { defineComponent as U, ref as o, readonly as j, onUnmounted as D, watch as E, onMounted as L, resolveComponent as p, openBlock as m, createElementBlock as T, createElementVNode as u, createVNode as s, withKeys as N, withModifiers as $, withCtx as h, toDisplayString as q, normalizeStyle as A, Fragment as G, renderList as H, createBlock as J, normalizeClass as O, withDirectives as P, unref as Q, vShow as X, nextTick as Y } from "vue";
|
|
2
|
-
import { c as Z, j as ee, I as x, b as le, _ as ae } from "./index-if5yiaE6.js";
|
|
3
|
-
import "element-plus";
|
|
4
|
-
const te = { class: "filter-search-header" }, ne = /* @__PURE__ */ U({
|
|
5
|
-
__name: "FilterSearch",
|
|
6
|
-
props: {
|
|
7
|
-
name: {},
|
|
8
|
-
children: {},
|
|
9
|
-
placeholder: {},
|
|
10
|
-
defaultCollapse: { type: Boolean },
|
|
11
|
-
searchTypes: {},
|
|
12
|
-
onSearch: {},
|
|
13
|
-
onChange: {},
|
|
14
|
-
onSearchTypeChange: {}
|
|
15
|
-
},
|
|
16
|
-
setup(w, { expose: V }) {
|
|
17
|
-
const a = w, i = o(a.defaultCollapse), n = o(a.searchTypes ? a.searchTypes[0].value : null), b = () => n.value, k = (e) => {
|
|
18
|
-
if (a.searchTypes) {
|
|
19
|
-
const l = a.searchTypes.find((c) => c.value === e);
|
|
20
|
-
l && (n.value = l.value);
|
|
21
|
-
}
|
|
22
|
-
}, r = o(""), z = (e) => {
|
|
23
|
-
r.value = e;
|
|
24
|
-
}, I = () => r.value, F = (e) => {
|
|
25
|
-
try {
|
|
26
|
-
d[a.onSearchTypeChange](f, e);
|
|
27
|
-
} catch (l) {
|
|
28
|
-
console.error(l);
|
|
29
|
-
}
|
|
30
|
-
}, M = (e) => {
|
|
31
|
-
if (a.onChange)
|
|
32
|
-
try {
|
|
33
|
-
d[a.onChange](f, e);
|
|
34
|
-
} catch (l) {
|
|
35
|
-
console.error(l);
|
|
36
|
-
}
|
|
37
|
-
}, y = async () => {
|
|
38
|
-
try {
|
|
39
|
-
await d[a.onSearch](f, r.value);
|
|
40
|
-
} catch (e) {
|
|
41
|
-
console.error(e);
|
|
42
|
-
}
|
|
43
|
-
}, R = () => {
|
|
44
|
-
i.value = !i.value;
|
|
45
|
-
}, { ruleModule: d, pageMethodMap: f } = Z(), _ = j({
|
|
46
|
-
setSearchValue: z,
|
|
47
|
-
getSearchValue: I,
|
|
48
|
-
getSearchType: b,
|
|
49
|
-
setSearchType: k,
|
|
50
|
-
type: "filterSearch"
|
|
51
|
-
});
|
|
52
|
-
if (a.name) {
|
|
53
|
-
const e = ee(a.name, _);
|
|
54
|
-
D(() => {
|
|
55
|
-
e();
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
const C = o(""), v = o(), S = o(0), g = () => {
|
|
59
|
-
var l;
|
|
60
|
-
const e = (l = a.searchTypes) == null ? void 0 : l.find((c) => c.value === n.value);
|
|
61
|
-
C.value = e ? e.label : "", v.value && Y(() => {
|
|
62
|
-
S.value = v.value.offsetWidth + 28;
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
return E(
|
|
66
|
-
() => n.value,
|
|
67
|
-
() => {
|
|
68
|
-
g();
|
|
69
|
-
}
|
|
70
|
-
), L(() => {
|
|
71
|
-
g();
|
|
72
|
-
}), V(_), (e, l) => {
|
|
73
|
-
const c = p("el-option"), W = p("el-select"), B = p("el-input"), K = p("el-collapse-transition");
|
|
74
|
-
return m(), T("div", null, [
|
|
75
|
-
u("div", te, [
|
|
76
|
-
s(B, {
|
|
77
|
-
modelValue: r.value,
|
|
78
|
-
"onUpdate:modelValue": l[1] || (l[1] = (t) => r.value = t),
|
|
79
|
-
placeholder: e.placeholder || "Search",
|
|
80
|
-
size: "large",
|
|
81
|
-
onKeyup: N($(y, ["stop"]), ["enter"]),
|
|
82
|
-
class: "filter-search-input",
|
|
83
|
-
clearable: !0,
|
|
84
|
-
onInput: M
|
|
85
|
-
}, {
|
|
86
|
-
prefix: h(() => [
|
|
87
|
-
u("span", {
|
|
88
|
-
ref_key: "textWidthRef",
|
|
89
|
-
ref: v,
|
|
90
|
-
class: "text-width-calc"
|
|
91
|
-
}, q(C.value), 513),
|
|
92
|
-
s(W, {
|
|
93
|
-
ref: "selectRef",
|
|
94
|
-
modelValue: n.value,
|
|
95
|
-
"onUpdate:modelValue": l[0] || (l[0] = (t) => n.value = t),
|
|
96
|
-
size: "small",
|
|
97
|
-
class: "filter-search-select",
|
|
98
|
-
style: A({ width: S.value + "px" }),
|
|
99
|
-
onChange: F
|
|
100
|
-
}, {
|
|
101
|
-
default: h(() => [
|
|
102
|
-
(m(!0), T(G, null, H(e.searchTypes, (t) => (m(), J(c, {
|
|
103
|
-
key: t.value,
|
|
104
|
-
label: t.label,
|
|
105
|
-
value: t.value
|
|
106
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
107
|
-
]),
|
|
108
|
-
_: 1
|
|
109
|
-
}, 8, ["modelValue", "style"])
|
|
110
|
-
]),
|
|
111
|
-
suffix: h(() => [
|
|
112
|
-
s(x, {
|
|
113
|
-
name: "icon-lujing2",
|
|
114
|
-
size: "small",
|
|
115
|
-
color: "#666666",
|
|
116
|
-
onClick: y,
|
|
117
|
-
class: "search-icon"
|
|
118
|
-
})
|
|
119
|
-
]),
|
|
120
|
-
_: 1
|
|
121
|
-
}, 8, ["modelValue", "placeholder", "onKeyup"]),
|
|
122
|
-
u("div", {
|
|
123
|
-
class: O(["filter-wrapper", { active: !i.value }]),
|
|
124
|
-
onClick: R
|
|
125
|
-
}, [
|
|
126
|
-
s(x, {
|
|
127
|
-
name: "icon-shaixuan",
|
|
128
|
-
size: "small"
|
|
129
|
-
}),
|
|
130
|
-
l[2] || (l[2] = u("span", { class: "filter-text" }, "Filter", -1))
|
|
131
|
-
], 2)
|
|
132
|
-
]),
|
|
133
|
-
s(K, null, {
|
|
134
|
-
default: h(() => [
|
|
135
|
-
P(u("div", null, [
|
|
136
|
-
s(Q(le), { list: e.children }, null, 8, ["list"])
|
|
137
|
-
], 512), [
|
|
138
|
-
[X, !i.value]
|
|
139
|
-
])
|
|
140
|
-
]),
|
|
141
|
-
_: 1
|
|
142
|
-
})
|
|
143
|
-
]);
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
}), ce = /* @__PURE__ */ ae(ne, [["__scopeId", "data-v-b0751bd0"]]);
|
|
147
|
-
export {
|
|
148
|
-
ce as default
|
|
149
|
-
};
|