xlzw-component 1.0.5 → 1.0.6
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/README.md +2 -1
- package/dist/index.css +1 -1
- package/dist/xlzw-component.js +241 -214
- package/dist/xlzw-component.js.map +1 -1
- package/dist/xlzw-component.umd.cjs +2 -2
- package/dist/xlzw-component.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/xlzw-component.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ref as u, resolveComponent as E, openBlock as f, createElementBlock as
|
|
1
|
+
import { ref as u, resolveComponent as E, openBlock as f, createElementBlock as $, renderSlot as M, createCommentVNode as U, createBlock as N, withCtx as k, isRef as a0, toRefs as l0, customRef as s0, toValue as v, watch as F, computed as q, unref as i0, defineComponent as J, watchEffect as r0, createVNode as I, createElementVNode as p, normalizeStyle as K, resolveDynamicComponent as u0, toDisplayString as B, createTextVNode as G, Fragment as Q, renderList as Z, normalizeClass as e0, onMounted as t0 } from "vue";
|
|
2
2
|
import "ant-design-vue";
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
for (const [
|
|
6
|
-
|
|
7
|
-
return
|
|
3
|
+
const L = (e, a) => {
|
|
4
|
+
const t = e.__vccOpts || e;
|
|
5
|
+
for (const [n, o] of a)
|
|
6
|
+
t[n] = o;
|
|
7
|
+
return t;
|
|
8
8
|
}, d0 = {
|
|
9
9
|
key: 0,
|
|
10
10
|
id: "reset"
|
|
@@ -25,135 +25,135 @@ const V = (e, o) => {
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
setup(e) {
|
|
28
|
-
const
|
|
29
|
-
return (
|
|
30
|
-
const
|
|
31
|
-
return f(),
|
|
32
|
-
e.type == "reset" ? (f(),
|
|
33
|
-
M(
|
|
28
|
+
const a = u(!0);
|
|
29
|
+
return (t, n) => {
|
|
30
|
+
const o = E("a-button");
|
|
31
|
+
return f(), $("div", null, [
|
|
32
|
+
e.type == "reset" ? (f(), $("div", d0, [
|
|
33
|
+
M(t.$slots, "default", {}, void 0, !0)
|
|
34
34
|
])) : U("", !0),
|
|
35
|
-
e.type == "cancel" ? (f(),
|
|
36
|
-
M(
|
|
37
|
-
])) : e.type == "submit" ? (f(),
|
|
38
|
-
M(
|
|
39
|
-
])) : e.type == "sweep" ? (f(),
|
|
40
|
-
M(
|
|
41
|
-
])) : e.type == "disabled" ? (f(), N(
|
|
35
|
+
e.type == "cancel" ? (f(), $("div", c0, [
|
|
36
|
+
M(t.$slots, "default", {}, void 0, !0)
|
|
37
|
+
])) : e.type == "submit" ? (f(), $("div", v0, [
|
|
38
|
+
M(t.$slots, "default", {}, void 0, !0)
|
|
39
|
+
])) : e.type == "sweep" ? (f(), $("div", f0, [
|
|
40
|
+
M(t.$slots, "default", {}, void 0, !0)
|
|
41
|
+
])) : e.type == "disabled" ? (f(), N(o, {
|
|
42
42
|
key: 4,
|
|
43
43
|
type: "primary",
|
|
44
|
-
disabled:
|
|
44
|
+
disabled: a.value
|
|
45
45
|
}, {
|
|
46
46
|
default: k(() => [
|
|
47
|
-
M(
|
|
47
|
+
M(t.$slots, "default", {}, void 0, !0)
|
|
48
48
|
]),
|
|
49
49
|
_: 3
|
|
50
50
|
}, 8, ["disabled"])) : U("", !0)
|
|
51
51
|
]);
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
},
|
|
54
|
+
}, n1 = /* @__PURE__ */ L(p0, [["__scopeId", "data-v-b09240e9"]]), n0 = typeof window < "u" && typeof document < "u";
|
|
55
55
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
56
56
|
const m0 = Object.prototype.toString, h0 = (e) => m0.call(e) === "[object Object]";
|
|
57
57
|
function X(e) {
|
|
58
58
|
return Array.isArray(e) ? e : [e];
|
|
59
59
|
}
|
|
60
|
-
function b0(e,
|
|
61
|
-
if (!
|
|
62
|
-
const
|
|
63
|
-
for (const
|
|
60
|
+
function b0(e, a = {}) {
|
|
61
|
+
if (!a0(e)) return l0(e);
|
|
62
|
+
const t = Array.isArray(e.value) ? Array.from({ length: e.value.length }) : {};
|
|
63
|
+
for (const n in e.value) t[n] = s0(() => ({
|
|
64
64
|
get() {
|
|
65
|
-
return e.value[
|
|
65
|
+
return e.value[n];
|
|
66
66
|
},
|
|
67
|
-
set(
|
|
67
|
+
set(o) {
|
|
68
68
|
var l;
|
|
69
|
-
if (!((l = v(
|
|
69
|
+
if (!((l = v(a.replaceRef)) !== null && l !== void 0) || l) if (Array.isArray(e.value)) {
|
|
70
70
|
const s = [...e.value];
|
|
71
|
-
s[
|
|
71
|
+
s[n] = o, e.value = s;
|
|
72
72
|
} else {
|
|
73
73
|
const s = {
|
|
74
74
|
...e.value,
|
|
75
|
-
[
|
|
75
|
+
[n]: o
|
|
76
76
|
};
|
|
77
77
|
Object.setPrototypeOf(s, Object.getPrototypeOf(e.value)), e.value = s;
|
|
78
78
|
}
|
|
79
|
-
else e.value[
|
|
79
|
+
else e.value[n] = o;
|
|
80
80
|
}
|
|
81
81
|
}));
|
|
82
|
-
return
|
|
82
|
+
return t;
|
|
83
83
|
}
|
|
84
|
-
function _0(e,
|
|
85
|
-
return F(e,
|
|
86
|
-
...
|
|
84
|
+
function _0(e, a, t) {
|
|
85
|
+
return F(e, a, {
|
|
86
|
+
...t,
|
|
87
87
|
immediate: !0
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
|
-
const
|
|
91
|
-
function
|
|
92
|
-
var
|
|
93
|
-
const
|
|
94
|
-
return (
|
|
90
|
+
const o0 = n0 ? window : void 0;
|
|
91
|
+
function g0(e) {
|
|
92
|
+
var a;
|
|
93
|
+
const t = v(e);
|
|
94
|
+
return (a = t == null ? void 0 : t.$el) !== null && a !== void 0 ? a : t;
|
|
95
95
|
}
|
|
96
96
|
function Y(...e) {
|
|
97
|
-
const
|
|
98
|
-
const
|
|
99
|
-
return
|
|
97
|
+
const a = (n, o, l, s) => (n.addEventListener(o, l, s), () => n.removeEventListener(o, l, s)), t = q(() => {
|
|
98
|
+
const n = X(v(e[0])).filter((o) => o != null);
|
|
99
|
+
return n.every((o) => typeof o != "string") ? n : void 0;
|
|
100
100
|
});
|
|
101
101
|
return _0(() => {
|
|
102
|
-
var
|
|
102
|
+
var n, o;
|
|
103
103
|
return [
|
|
104
|
-
(
|
|
105
|
-
X(v(
|
|
106
|
-
X(
|
|
107
|
-
v(
|
|
104
|
+
(n = (o = t.value) === null || o === void 0 ? void 0 : o.map((l) => g0(l))) !== null && n !== void 0 ? n : [o0].filter((l) => l != null),
|
|
105
|
+
X(v(t.value ? e[1] : e[0])),
|
|
106
|
+
X(i0(t.value ? e[2] : e[1])),
|
|
107
|
+
v(t.value ? e[3] : e[2])
|
|
108
108
|
];
|
|
109
|
-
}, ([
|
|
110
|
-
if (!(
|
|
111
|
-
const
|
|
112
|
-
|
|
113
|
-
|
|
109
|
+
}, ([n, o, l, s], r, m) => {
|
|
110
|
+
if (!(n != null && n.length) || !(o != null && o.length) || !(l != null && l.length)) return;
|
|
111
|
+
const g = h0(s) ? { ...s } : s, h = n.flatMap((c) => o.flatMap((b) => l.map((C) => a(c, b, C, g))));
|
|
112
|
+
m(() => {
|
|
113
|
+
h.forEach((c) => c());
|
|
114
114
|
});
|
|
115
115
|
}, { flush: "post" });
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
var
|
|
119
|
-
const { pointerTypes:
|
|
117
|
+
function y0(e, a = {}) {
|
|
118
|
+
var t;
|
|
119
|
+
const { pointerTypes: n, preventDefault: o, stopPropagation: l, exact: s, onMove: r, onEnd: m, onStart: g, initialValue: h, axis: c = "both", draggingElement: b = o0, containerElement: C, handle: D = e, buttons: V = [0] } = a, y = u((t = v(h)) !== null && t !== void 0 ? t : {
|
|
120
120
|
x: 0,
|
|
121
121
|
y: 0
|
|
122
|
-
}),
|
|
123
|
-
v(
|
|
122
|
+
}), _ = u(), A = (i) => n ? n.includes(i.pointerType) : !0, z = (i) => {
|
|
123
|
+
v(o) && i.preventDefault(), v(l) && i.stopPropagation();
|
|
124
124
|
}, d = (i) => {
|
|
125
|
-
var
|
|
126
|
-
if (!v(
|
|
127
|
-
const
|
|
128
|
-
x: i.clientX - (
|
|
129
|
-
y: i.clientY - (
|
|
125
|
+
var w;
|
|
126
|
+
if (!v(V).includes(i.button) || v(a.disabled) || !A(i) || v(s) && i.target !== v(e)) return;
|
|
127
|
+
const T = v(C), P = T == null || (w = T.getBoundingClientRect) === null || w === void 0 ? void 0 : w.call(T), O = v(e).getBoundingClientRect(), H = {
|
|
128
|
+
x: i.clientX - (T ? O.left - P.left + T.scrollLeft : O.left),
|
|
129
|
+
y: i.clientY - (T ? O.top - P.top + T.scrollTop : O.top)
|
|
130
130
|
};
|
|
131
|
-
(
|
|
132
|
-
},
|
|
133
|
-
if (v(
|
|
134
|
-
const
|
|
135
|
-
let { x:
|
|
136
|
-
(c === "x" || c === "both") && (
|
|
137
|
-
x:
|
|
138
|
-
y:
|
|
131
|
+
(g == null ? void 0 : g(H, i)) !== !1 && (_.value = H, z(i));
|
|
132
|
+
}, x = (i) => {
|
|
133
|
+
if (v(a.disabled) || !A(i) || !_.value) return;
|
|
134
|
+
const w = v(C), T = v(e).getBoundingClientRect();
|
|
135
|
+
let { x: P, y: O } = y.value;
|
|
136
|
+
(c === "x" || c === "both") && (P = i.clientX - _.value.x, w && (P = Math.min(Math.max(0, P), w.scrollWidth - T.width))), (c === "y" || c === "both") && (O = i.clientY - _.value.y, w && (O = Math.min(Math.max(0, O), w.scrollHeight - T.height))), y.value = {
|
|
137
|
+
x: P,
|
|
138
|
+
y: O
|
|
139
139
|
}, r == null || r(y.value, i), z(i);
|
|
140
|
-
},
|
|
141
|
-
v(
|
|
140
|
+
}, S = (i) => {
|
|
141
|
+
v(a.disabled) || !A(i) || _.value && (_.value = void 0, m == null || m(y.value, i), z(i));
|
|
142
142
|
};
|
|
143
|
-
if (
|
|
143
|
+
if (n0) {
|
|
144
144
|
const i = () => {
|
|
145
|
-
var
|
|
145
|
+
var w;
|
|
146
146
|
return {
|
|
147
|
-
capture: (
|
|
148
|
-
passive: !v(
|
|
147
|
+
capture: (w = a.capture) !== null && w !== void 0 ? w : !0,
|
|
148
|
+
passive: !v(o)
|
|
149
149
|
};
|
|
150
150
|
};
|
|
151
|
-
Y(
|
|
151
|
+
Y(D, "pointerdown", d, i), Y(b, "pointermove", x, i), Y(b, "pointerup", S, i);
|
|
152
152
|
}
|
|
153
153
|
return {
|
|
154
154
|
...b0(y),
|
|
155
155
|
position: y,
|
|
156
|
-
isDragging: q(() => !!
|
|
156
|
+
isDragging: q(() => !!_.value),
|
|
157
157
|
style: q(() => `left:${y.value.x}px;top:${y.value.y}px;`)
|
|
158
158
|
};
|
|
159
159
|
}
|
|
@@ -163,82 +163,82 @@ const $0 = J({
|
|
|
163
163
|
width: String
|
|
164
164
|
},
|
|
165
165
|
emits: ["resetData"],
|
|
166
|
-
setup(e,
|
|
167
|
-
const
|
|
168
|
-
|
|
166
|
+
setup(e, a) {
|
|
167
|
+
const t = u(!1), n = u(null), o = () => {
|
|
168
|
+
t.value = !0;
|
|
169
169
|
}, l = () => {
|
|
170
|
-
|
|
171
|
-
}, { x: s, y: r, isDragging:
|
|
172
|
-
|
|
173
|
-
},
|
|
170
|
+
a.emit("resetData");
|
|
171
|
+
}, { x: s, y: r, isDragging: m } = y0(n), g = (z) => {
|
|
172
|
+
t.value = !1;
|
|
173
|
+
}, h = u(0), c = u(0), b = u(!1), C = u(0), D = u(0), V = u(0), y = u(0), _ = u({
|
|
174
174
|
left: 0,
|
|
175
175
|
right: 0,
|
|
176
176
|
top: 0,
|
|
177
177
|
bottom: 0
|
|
178
178
|
});
|
|
179
179
|
F([s, r], () => {
|
|
180
|
-
if (!
|
|
181
|
-
|
|
182
|
-
const z = document.body.getBoundingClientRect(), d =
|
|
183
|
-
|
|
180
|
+
if (!b.value) {
|
|
181
|
+
h.value = s.value, c.value = r.value;
|
|
182
|
+
const z = document.body.getBoundingClientRect(), d = n.value.getBoundingClientRect();
|
|
183
|
+
_.value.right = z.width - d.width, _.value.bottom = z.height - d.height, V.value = C.value, y.value = D.value;
|
|
184
184
|
}
|
|
185
|
-
|
|
186
|
-
}), F(
|
|
187
|
-
|
|
188
|
-
}),
|
|
189
|
-
|
|
190
|
-
Math.max(
|
|
191
|
-
|
|
192
|
-
) -
|
|
193
|
-
Math.max(
|
|
194
|
-
|
|
185
|
+
b.value = !0;
|
|
186
|
+
}), F(m, () => {
|
|
187
|
+
m || (b.value = !1);
|
|
188
|
+
}), r0(() => {
|
|
189
|
+
b.value && (C.value = V.value + Math.min(
|
|
190
|
+
Math.max(_.value.left, s.value),
|
|
191
|
+
_.value.right
|
|
192
|
+
) - h.value, D.value = y.value + Math.min(
|
|
193
|
+
Math.max(_.value.top, r.value),
|
|
194
|
+
_.value.bottom
|
|
195
195
|
) - c.value);
|
|
196
196
|
});
|
|
197
|
-
const
|
|
198
|
-
transform: `translate(${
|
|
197
|
+
const A = q(() => ({
|
|
198
|
+
transform: `translate(${C.value}px, ${D.value}px)`
|
|
199
199
|
}));
|
|
200
200
|
return {
|
|
201
|
-
visible:
|
|
202
|
-
showModal:
|
|
203
|
-
handleCancel:
|
|
204
|
-
modalTitleRef:
|
|
205
|
-
transformStyle:
|
|
201
|
+
visible: t,
|
|
202
|
+
showModal: o,
|
|
203
|
+
handleCancel: g,
|
|
204
|
+
modalTitleRef: n,
|
|
205
|
+
transformStyle: A,
|
|
206
206
|
cancel: l
|
|
207
207
|
};
|
|
208
208
|
}
|
|
209
|
-
}), x0 = { style: { background: "#fff", "border-radius": "5px" } },
|
|
210
|
-
function
|
|
209
|
+
}), x0 = { style: { background: "#fff", "border-radius": "5px" } }, C0 = { style: { background: "rgb(255, 255, 255)", height: "44px", display: "flex", "align-items": "center", "justify-content": "end", "margin-top": "10px", padding: "0 10px", "border-radius": "5px" } };
|
|
210
|
+
function w0(e, a, t, n, o, l) {
|
|
211
211
|
const s = E("a-modal");
|
|
212
|
-
return f(),
|
|
213
|
-
|
|
212
|
+
return f(), $("div", null, [
|
|
213
|
+
I(s, {
|
|
214
214
|
destroyOnClose: "",
|
|
215
215
|
maskClosable: !1,
|
|
216
216
|
onCancel: e.cancel,
|
|
217
217
|
ref: "modalRef",
|
|
218
218
|
visible: e.visible,
|
|
219
|
-
"onUpdate:visible":
|
|
219
|
+
"onUpdate:visible": a[0] || (a[0] = (r) => e.visible = r),
|
|
220
220
|
"wrap-style": { overflow: "hidden" },
|
|
221
221
|
width: e.width,
|
|
222
222
|
footer: null
|
|
223
223
|
}, {
|
|
224
224
|
title: k(() => [
|
|
225
|
-
|
|
225
|
+
p("div", {
|
|
226
226
|
ref: "modalTitleRef",
|
|
227
227
|
style: { width: "100%", cursor: "move", color: "#fff" }
|
|
228
|
-
},
|
|
228
|
+
}, B(e.title), 513)
|
|
229
229
|
]),
|
|
230
230
|
modalRender: k(({ originVNode: r }) => [
|
|
231
|
-
|
|
232
|
-
style:
|
|
231
|
+
p("div", {
|
|
232
|
+
style: K(e.transformStyle)
|
|
233
233
|
}, [
|
|
234
|
-
(f(), N(
|
|
234
|
+
(f(), N(u0(r)))
|
|
235
235
|
], 4)
|
|
236
236
|
]),
|
|
237
237
|
default: k(() => [
|
|
238
|
-
|
|
238
|
+
p("div", x0, [
|
|
239
239
|
M(e.$slots, "content", {}, void 0, !0)
|
|
240
240
|
]),
|
|
241
|
-
|
|
241
|
+
p("div", C0, [
|
|
242
242
|
M(e.$slots, "footer", {}, void 0, !0)
|
|
243
243
|
])
|
|
244
244
|
]),
|
|
@@ -246,50 +246,50 @@ function C0(e, o, a, t, n, l) {
|
|
|
246
246
|
}, 8, ["onCancel", "visible", "width"])
|
|
247
247
|
]);
|
|
248
248
|
}
|
|
249
|
-
const
|
|
249
|
+
const o1 = /* @__PURE__ */ L($0, [["render", w0], ["__scopeId", "data-v-868a4dd6"]]), T0 = { style: { "font-size": "13px", "font-weight": "700", padding: "15px 0px", height: "116px" } }, k0 = { style: { padding: "0 24px" } }, a1 = {
|
|
250
250
|
__name: "xlzw-deletePrompt",
|
|
251
251
|
emits: ["delOk"],
|
|
252
|
-
setup(e, { expose:
|
|
253
|
-
const
|
|
252
|
+
setup(e, { expose: a, emit: t }) {
|
|
253
|
+
const n = u(null), o = u("");
|
|
254
254
|
function l() {
|
|
255
|
-
|
|
255
|
+
m("delOk"), s();
|
|
256
256
|
}
|
|
257
257
|
function s() {
|
|
258
|
-
|
|
258
|
+
o.value = "", n.value.handleCancel();
|
|
259
259
|
}
|
|
260
|
-
function r(
|
|
261
|
-
|
|
260
|
+
function r(g) {
|
|
261
|
+
o.value = g, n.value.showModal();
|
|
262
262
|
}
|
|
263
|
-
const
|
|
264
|
-
return
|
|
265
|
-
const c = E("Title"),
|
|
266
|
-
return f(), N(
|
|
263
|
+
const m = t;
|
|
264
|
+
return a({ showModal: r }), (g, h) => {
|
|
265
|
+
const c = E("Title"), b = E("Button"), C = E("Modal");
|
|
266
|
+
return f(), N(C, {
|
|
267
267
|
width: "430px",
|
|
268
268
|
ref_key: "modalRef",
|
|
269
|
-
ref:
|
|
269
|
+
ref: n,
|
|
270
270
|
title: "确认对话框"
|
|
271
271
|
}, {
|
|
272
272
|
content: k(() => [
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
273
|
+
p("div", T0, [
|
|
274
|
+
I(c, { title: "提交" }),
|
|
275
|
+
p("div", k0, B(o.value), 1)
|
|
276
276
|
])
|
|
277
277
|
]),
|
|
278
278
|
footer: k(() => [
|
|
279
|
-
|
|
279
|
+
I(b, {
|
|
280
280
|
type: "reset",
|
|
281
281
|
onClick: s
|
|
282
282
|
}, {
|
|
283
|
-
default: k(() => [...
|
|
283
|
+
default: k(() => [...h[0] || (h[0] = [
|
|
284
284
|
G("取消", -1)
|
|
285
285
|
])]),
|
|
286
286
|
_: 1
|
|
287
287
|
}),
|
|
288
|
-
|
|
288
|
+
I(b, {
|
|
289
289
|
type: "submit",
|
|
290
290
|
onClick: l
|
|
291
291
|
}, {
|
|
292
|
-
default: k(() => [...
|
|
292
|
+
default: k(() => [...h[1] || (h[1] = [
|
|
293
293
|
G("确定", -1)
|
|
294
294
|
])]),
|
|
295
295
|
_: 1
|
|
@@ -299,7 +299,7 @@ const Z0 = /* @__PURE__ */ V($0, [["render", C0], ["__scopeId", "data-v-868a4dd6
|
|
|
299
299
|
}, 512);
|
|
300
300
|
};
|
|
301
301
|
}
|
|
302
|
-
}, M0 = { style: { width: "100%", height: "100%", background: "#f0f0f0", "font-size": "14px", color: "#333333" } }, z0 = { class: "header" },
|
|
302
|
+
}, M0 = { style: { width: "100%", height: "100%", background: "#f0f0f0", "font-size": "14px", color: "#333333" } }, z0 = { class: "header" }, S0 = { style: { "font-weight": "600", "font-size": "14px" } }, O0 = { class: "btn" }, B0 = { style: { background: "#fff", margin: "10px", height: "calc(100% - 64px)", "box-sizing": "border-box", "overflow-y": "auto", "font-size": "13px" } }, E0 = {
|
|
303
303
|
__name: "xlzw-businessInterface",
|
|
304
304
|
props: {
|
|
305
305
|
title: {
|
|
@@ -307,19 +307,19 @@ const Z0 = /* @__PURE__ */ V($0, [["render", C0], ["__scopeId", "data-v-868a4dd6
|
|
|
307
307
|
}
|
|
308
308
|
},
|
|
309
309
|
setup(e) {
|
|
310
|
-
return (
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
M(
|
|
310
|
+
return (a, t) => (f(), $("div", M0, [
|
|
311
|
+
p("div", z0, [
|
|
312
|
+
p("div", S0, B(e.title), 1),
|
|
313
|
+
p("div", O0, [
|
|
314
|
+
M(a.$slots, "btn", {}, void 0, !0)
|
|
315
315
|
])
|
|
316
316
|
]),
|
|
317
|
-
|
|
318
|
-
M(
|
|
317
|
+
p("div", B0, [
|
|
318
|
+
M(a.$slots, "content", {}, void 0, !0)
|
|
319
319
|
])
|
|
320
320
|
]));
|
|
321
321
|
}
|
|
322
|
-
},
|
|
322
|
+
}, l1 = /* @__PURE__ */ L(E0, [["__scopeId", "data-v-27e52c4b"]]), D0 = { class: "slanted-tabs-wrapper" }, A0 = { class: "tab-header" }, P0 = ["onClick"], R0 = { class: "tab-text" }, I0 = { class: "tab-content-panel" }, L0 = { class: "tab-pane" }, V0 = {
|
|
323
323
|
__name: "xlzw-embeddedTab",
|
|
324
324
|
props: {
|
|
325
325
|
tabs: {
|
|
@@ -333,28 +333,28 @@ const Z0 = /* @__PURE__ */ V($0, [["render", C0], ["__scopeId", "data-v-868a4dd6
|
|
|
333
333
|
}
|
|
334
334
|
},
|
|
335
335
|
emits: ["changeTab"],
|
|
336
|
-
setup(e, { emit:
|
|
337
|
-
const
|
|
338
|
-
console.log("点击了 Tab", l),
|
|
336
|
+
setup(e, { emit: a }) {
|
|
337
|
+
const t = e, n = a, o = (l) => {
|
|
338
|
+
console.log("点击了 Tab", l), t.activeTab !== l && n("changeTab", l);
|
|
339
339
|
};
|
|
340
|
-
return (l, s) => (f(),
|
|
341
|
-
|
|
342
|
-
(f(!0),
|
|
340
|
+
return (l, s) => (f(), $("div", D0, [
|
|
341
|
+
p("div", A0, [
|
|
342
|
+
(f(!0), $(Q, null, Z(e.tabs, (r, m) => (f(), $("div", {
|
|
343
343
|
key: r,
|
|
344
|
-
class:
|
|
345
|
-
onClick: (
|
|
344
|
+
class: e0(["tab-item", { active: e.activeTab === m }]),
|
|
345
|
+
onClick: (g) => o(m)
|
|
346
346
|
}, [
|
|
347
|
-
|
|
347
|
+
p("span", R0, B(r), 1)
|
|
348
348
|
], 10, P0))), 128))
|
|
349
349
|
]),
|
|
350
|
-
|
|
351
|
-
|
|
350
|
+
p("div", I0, [
|
|
351
|
+
p("div", L0, [
|
|
352
352
|
M(l.$slots, "content", {}, void 0, !0)
|
|
353
353
|
])
|
|
354
354
|
])
|
|
355
355
|
]));
|
|
356
356
|
}
|
|
357
|
-
},
|
|
357
|
+
}, s1 = /* @__PURE__ */ L(V0, [["__scopeId", "data-v-f92649a9"]]), N0 = J({
|
|
358
358
|
name: "TextTruncation",
|
|
359
359
|
props: {
|
|
360
360
|
text: {
|
|
@@ -363,19 +363,19 @@ const Z0 = /* @__PURE__ */ V($0, [["render", C0], ["__scopeId", "data-v-868a4dd6
|
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
}), q0 = { class: "text-truncation" };
|
|
366
|
-
function X0(e,
|
|
366
|
+
function X0(e, a, t, n, o, l) {
|
|
367
367
|
const s = E("a-tooltip");
|
|
368
368
|
return f(), N(s, null, {
|
|
369
369
|
title: k(() => [
|
|
370
|
-
G(
|
|
370
|
+
G(B(e.text), 1)
|
|
371
371
|
]),
|
|
372
372
|
default: k(() => [
|
|
373
|
-
|
|
373
|
+
p("div", q0, B(e.text), 1)
|
|
374
374
|
]),
|
|
375
375
|
_: 1
|
|
376
376
|
});
|
|
377
377
|
}
|
|
378
|
-
const
|
|
378
|
+
const i1 = /* @__PURE__ */ L(N0, [["render", X0], ["__scopeId", "data-v-ad7715fb"]]);
|
|
379
379
|
function Y0(e) {
|
|
380
380
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
381
381
|
}
|
|
@@ -770,7 +770,7 @@ function F0() {
|
|
|
770
770
|
return j || (j = 1, W = W0), W;
|
|
771
771
|
}
|
|
772
772
|
var G0 = F0();
|
|
773
|
-
const
|
|
773
|
+
const R = /* @__PURE__ */ Y0(G0), r1 = {
|
|
774
774
|
__name: "xlzw-selectCity",
|
|
775
775
|
props: {
|
|
776
776
|
regionText: { type: String, default: "" },
|
|
@@ -778,56 +778,56 @@ const P = /* @__PURE__ */ Y0(G0), o1 = {
|
|
|
778
778
|
disabled: { type: Boolean, default: !1 }
|
|
779
779
|
},
|
|
780
780
|
emits: ["update:regionText"],
|
|
781
|
-
setup(e, { emit:
|
|
782
|
-
const
|
|
783
|
-
|
|
784
|
-
},
|
|
781
|
+
setup(e, { emit: a }) {
|
|
782
|
+
const t = a, n = u([]), o = u([]), l = u([]), s = u(""), r = u(""), m = u(""), g = u(""), h = u(""), c = u(""), b = (d) => Object.keys(d).map((x) => ({ value: d[x], label: d[x] })), C = () => {
|
|
783
|
+
n.value = b(R[86] || {});
|
|
784
|
+
}, D = (d) => {
|
|
785
785
|
if (!d) {
|
|
786
|
-
|
|
786
|
+
o.value = [];
|
|
787
787
|
return;
|
|
788
788
|
}
|
|
789
|
-
|
|
790
|
-
},
|
|
789
|
+
o.value = b(R[d] || {});
|
|
790
|
+
}, V = (d) => {
|
|
791
791
|
if (!d) {
|
|
792
792
|
l.value = [];
|
|
793
793
|
return;
|
|
794
794
|
}
|
|
795
|
-
l.value =
|
|
795
|
+
l.value = b(R[d] || {});
|
|
796
796
|
}, y = () => {
|
|
797
|
-
const d = [
|
|
798
|
-
|
|
799
|
-
},
|
|
800
|
-
|
|
801
|
-
(
|
|
802
|
-
),
|
|
803
|
-
},
|
|
804
|
-
|
|
805
|
-
(
|
|
806
|
-
), c.value = "",
|
|
807
|
-
}, z = (d,
|
|
808
|
-
c.value =
|
|
797
|
+
const d = [g.value, h.value, c.value].filter(Boolean).join(" ");
|
|
798
|
+
t("update:regionText", d);
|
|
799
|
+
}, _ = (d, x) => {
|
|
800
|
+
g.value = x.label, s.value = Object.keys(R[86]).find(
|
|
801
|
+
(S) => R[86][S] === x.label
|
|
802
|
+
), h.value = "", r.value = "", c.value = "", m.value = "", D(s.value), y();
|
|
803
|
+
}, A = (d, x) => {
|
|
804
|
+
h.value = x.label, r.value = Object.keys(R[s.value]).find(
|
|
805
|
+
(S) => R[s.value][S] === x.label
|
|
806
|
+
), c.value = "", m.value = "", V(r.value), y();
|
|
807
|
+
}, z = (d, x) => {
|
|
808
|
+
c.value = x.label, y();
|
|
809
809
|
};
|
|
810
|
-
return
|
|
811
|
-
const
|
|
810
|
+
return t0(C), (d, x) => {
|
|
811
|
+
const S = E("a-select"), i = E("a-space");
|
|
812
812
|
return f(), N(i, null, {
|
|
813
813
|
default: k(() => [
|
|
814
|
-
|
|
815
|
-
value:
|
|
814
|
+
I(S, {
|
|
815
|
+
value: g.value,
|
|
816
816
|
placeholder: "请选择省",
|
|
817
|
-
options:
|
|
817
|
+
options: n.value,
|
|
818
818
|
style: { width: "125px" },
|
|
819
819
|
disabled: e.disabled,
|
|
820
|
-
onChange:
|
|
820
|
+
onChange: _
|
|
821
821
|
}, null, 8, ["value", "options", "disabled"]),
|
|
822
|
-
|
|
823
|
-
value:
|
|
822
|
+
I(S, {
|
|
823
|
+
value: h.value,
|
|
824
824
|
placeholder: "请选择市",
|
|
825
|
-
options:
|
|
825
|
+
options: o.value,
|
|
826
826
|
style: { width: "120px" },
|
|
827
827
|
disabled: !s.value || e.disabled,
|
|
828
|
-
onChange:
|
|
828
|
+
onChange: A
|
|
829
829
|
}, null, 8, ["value", "options", "disabled"]),
|
|
830
|
-
|
|
830
|
+
I(S, {
|
|
831
831
|
value: c.value,
|
|
832
832
|
placeholder: "请选择区县",
|
|
833
833
|
options: l.value,
|
|
@@ -853,27 +853,54 @@ const P = /* @__PURE__ */ Y0(G0), o1 = {
|
|
|
853
853
|
}
|
|
854
854
|
},
|
|
855
855
|
emits: ["changeTab"],
|
|
856
|
-
setup(e, { emit:
|
|
857
|
-
const
|
|
858
|
-
|
|
859
|
-
},
|
|
860
|
-
return (
|
|
861
|
-
(f(!0),
|
|
862
|
-
class:
|
|
856
|
+
setup(e, { emit: a }) {
|
|
857
|
+
const t = (o) => {
|
|
858
|
+
n("changeTab", o);
|
|
859
|
+
}, n = a;
|
|
860
|
+
return (o, l) => (f(), $("div", H0, [
|
|
861
|
+
(f(!0), $(Q, null, Z(e.tabs, (s, r) => (f(), $("div", {
|
|
862
|
+
class: e0(["tabs", { active: e.activeTab === r }]),
|
|
863
863
|
key: r,
|
|
864
|
-
onClick: (
|
|
865
|
-
},
|
|
864
|
+
onClick: (m) => t(r)
|
|
865
|
+
}, B(s), 11, U0))), 128))
|
|
866
|
+
]));
|
|
867
|
+
}
|
|
868
|
+
}, u1 = /* @__PURE__ */ L(j0, [["__scopeId", "data-v-d8c7bbbe"]]), J0 = { style: { display: "flex", "align-items": "center", "margin-bottom": "15px" } }, K0 = { id: "title" }, Q0 = { id: "message" }, Z0 = {
|
|
869
|
+
__name: "xlzw-title",
|
|
870
|
+
props: {
|
|
871
|
+
title: {
|
|
872
|
+
type: String
|
|
873
|
+
},
|
|
874
|
+
message: {
|
|
875
|
+
type: String
|
|
876
|
+
},
|
|
877
|
+
bgColor: {
|
|
878
|
+
type: String
|
|
879
|
+
}
|
|
880
|
+
},
|
|
881
|
+
setup(e) {
|
|
882
|
+
const a = e, t = u("#ec4408");
|
|
883
|
+
return t0(() => {
|
|
884
|
+
typeof window < "u" && window.config && (t.value = window.config.bgColor), a.bgColor && (t.value = a.bgColor);
|
|
885
|
+
}), (n, o) => (f(), $("div", J0, [
|
|
886
|
+
p("div", {
|
|
887
|
+
id: "shu",
|
|
888
|
+
style: K({ backgroundColor: t.value })
|
|
889
|
+
}, null, 4),
|
|
890
|
+
p("div", K0, B(e.title), 1),
|
|
891
|
+
p("div", Q0, B(e.message), 1)
|
|
866
892
|
]));
|
|
867
893
|
}
|
|
868
|
-
},
|
|
894
|
+
}, d1 = /* @__PURE__ */ L(Z0, [["__scopeId", "data-v-63e8edae"]]);
|
|
869
895
|
export {
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
896
|
+
l1 as BusinessInterface,
|
|
897
|
+
n1 as Button,
|
|
898
|
+
a1 as DeletePrompt,
|
|
899
|
+
s1 as EmbeddedTab,
|
|
900
|
+
i1 as MaxThreeLineTxt,
|
|
901
|
+
o1 as Model,
|
|
902
|
+
r1 as SelectCity,
|
|
903
|
+
u1 as Tabs,
|
|
904
|
+
d1 as Title
|
|
878
905
|
};
|
|
879
906
|
//# sourceMappingURL=xlzw-component.js.map
|