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.
@@ -1,10 +1,10 @@
1
- import { ref as u, resolveComponent as E, openBlock as f, createElementBlock as x, renderSlot as M, createCommentVNode as U, createBlock as N, withCtx as k, isRef as n0, toRefs as a0, customRef as o0, toValue as v, watch as F, computed as q, unref as l0, defineComponent as J, watchEffect as s0, createVNode as R, createElementVNode as g, normalizeStyle as i0, resolveDynamicComponent as r0, toDisplayString as I, createTextVNode as G, Fragment as K, renderList as Q, normalizeClass as Z, onMounted as u0 } from "vue";
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 V = (e, o) => {
4
- const a = e.__vccOpts || e;
5
- for (const [t, n] of o)
6
- a[t] = n;
7
- return a;
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 o = u(!0);
29
- return (a, t) => {
30
- const n = E("a-button");
31
- return f(), x("div", null, [
32
- e.type == "reset" ? (f(), x("div", d0, [
33
- M(a.$slots, "default", {}, void 0, !0)
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(), x("div", c0, [
36
- M(a.$slots, "default", {}, void 0, !0)
37
- ])) : e.type == "submit" ? (f(), x("div", v0, [
38
- M(a.$slots, "default", {}, void 0, !0)
39
- ])) : e.type == "sweep" ? (f(), x("div", f0, [
40
- M(a.$slots, "default", {}, void 0, !0)
41
- ])) : e.type == "disabled" ? (f(), N(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: o.value
44
+ disabled: a.value
45
45
  }, {
46
46
  default: k(() => [
47
- M(a.$slots, "default", {}, void 0, !0)
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
- }, Q0 = /* @__PURE__ */ V(p0, [["__scopeId", "data-v-b09240e9"]]), e0 = typeof window < "u" && typeof document < "u";
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, o = {}) {
61
- if (!n0(e)) return a0(e);
62
- const a = Array.isArray(e.value) ? Array.from({ length: e.value.length }) : {};
63
- for (const t in e.value) a[t] = o0(() => ({
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[t];
65
+ return e.value[n];
66
66
  },
67
- set(n) {
67
+ set(o) {
68
68
  var l;
69
- if (!((l = v(o.replaceRef)) !== null && l !== void 0) || l) if (Array.isArray(e.value)) {
69
+ if (!((l = v(a.replaceRef)) !== null && l !== void 0) || l) if (Array.isArray(e.value)) {
70
70
  const s = [...e.value];
71
- s[t] = n, e.value = s;
71
+ s[n] = o, e.value = s;
72
72
  } else {
73
73
  const s = {
74
74
  ...e.value,
75
- [t]: n
75
+ [n]: o
76
76
  };
77
77
  Object.setPrototypeOf(s, Object.getPrototypeOf(e.value)), e.value = s;
78
78
  }
79
- else e.value[t] = n;
79
+ else e.value[n] = o;
80
80
  }
81
81
  }));
82
- return a;
82
+ return t;
83
83
  }
84
- function _0(e, o, a) {
85
- return F(e, o, {
86
- ...a,
84
+ function _0(e, a, t) {
85
+ return F(e, a, {
86
+ ...t,
87
87
  immediate: !0
88
88
  });
89
89
  }
90
- const t0 = e0 ? window : void 0;
91
- function y0(e) {
92
- var o;
93
- const a = v(e);
94
- return (o = a == null ? void 0 : a.$el) !== null && o !== void 0 ? o : a;
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 o = (t, n, l, s) => (t.addEventListener(n, l, s), () => t.removeEventListener(n, l, s)), a = q(() => {
98
- const t = X(v(e[0])).filter((n) => n != null);
99
- return t.every((n) => typeof n != "string") ? t : void 0;
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 t, n;
102
+ var n, o;
103
103
  return [
104
- (t = (n = a.value) === null || n === void 0 ? void 0 : n.map((l) => y0(l))) !== null && t !== void 0 ? t : [t0].filter((l) => l != null),
105
- X(v(a.value ? e[1] : e[0])),
106
- X(l0(a.value ? e[2] : e[1])),
107
- v(a.value ? e[3] : e[2])
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
- }, ([t, n, l, s], r, p) => {
110
- if (!(t != null && t.length) || !(n != null && n.length) || !(l != null && l.length)) return;
111
- const _ = h0(s) ? { ...s } : s, m = t.flatMap((c) => n.flatMap((h) => l.map((T) => o(c, h, T, _))));
112
- p(() => {
113
- m.forEach((c) => c());
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 g0(e, o = {}) {
118
- var a;
119
- const { pointerTypes: t, preventDefault: n, stopPropagation: l, exact: s, onMove: r, onEnd: p, onStart: _, initialValue: m, axis: c = "both", draggingElement: h = t0, containerElement: T, handle: S = e, buttons: L = [0] } = o, y = u((a = v(m)) !== null && a !== void 0 ? a : {
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
- }), b = u(), D = (i) => t ? t.includes(i.pointerType) : !0, z = (i) => {
123
- v(n) && i.preventDefault(), v(l) && i.stopPropagation();
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 C;
126
- if (!v(L).includes(i.button) || v(o.disabled) || !D(i) || v(s) && i.target !== v(e)) return;
127
- const w = v(T), A = w == null || (C = w.getBoundingClientRect) === null || C === void 0 ? void 0 : C.call(w), B = v(e).getBoundingClientRect(), H = {
128
- x: i.clientX - (w ? B.left - A.left + w.scrollLeft : B.left),
129
- y: i.clientY - (w ? B.top - A.top + w.scrollTop : B.top)
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
- (_ == null ? void 0 : _(H, i)) !== !1 && (b.value = H, z(i));
132
- }, $ = (i) => {
133
- if (v(o.disabled) || !D(i) || !b.value) return;
134
- const C = v(T), w = v(e).getBoundingClientRect();
135
- let { x: A, y: B } = y.value;
136
- (c === "x" || c === "both") && (A = i.clientX - b.value.x, C && (A = Math.min(Math.max(0, A), C.scrollWidth - w.width))), (c === "y" || c === "both") && (B = i.clientY - b.value.y, C && (B = Math.min(Math.max(0, B), C.scrollHeight - w.height))), y.value = {
137
- x: A,
138
- y: B
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
- }, O = (i) => {
141
- v(o.disabled) || !D(i) || b.value && (b.value = void 0, p == null || p(y.value, i), z(i));
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 (e0) {
143
+ if (n0) {
144
144
  const i = () => {
145
- var C;
145
+ var w;
146
146
  return {
147
- capture: (C = o.capture) !== null && C !== void 0 ? C : !0,
148
- passive: !v(n)
147
+ capture: (w = a.capture) !== null && w !== void 0 ? w : !0,
148
+ passive: !v(o)
149
149
  };
150
150
  };
151
- Y(S, "pointerdown", d, i), Y(h, "pointermove", $, i), Y(h, "pointerup", O, i);
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(() => !!b.value),
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, o) {
167
- const a = u(!1), t = u(null), n = () => {
168
- a.value = !0;
166
+ setup(e, a) {
167
+ const t = u(!1), n = u(null), o = () => {
168
+ t.value = !0;
169
169
  }, l = () => {
170
- o.emit("resetData");
171
- }, { x: s, y: r, isDragging: p } = g0(t), _ = (z) => {
172
- a.value = !1;
173
- }, m = u(0), c = u(0), h = u(!1), T = u(0), S = u(0), L = u(0), y = u(0), b = u({
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 (!h.value) {
181
- m.value = s.value, c.value = r.value;
182
- const z = document.body.getBoundingClientRect(), d = t.value.getBoundingClientRect();
183
- b.value.right = z.width - d.width, b.value.bottom = z.height - d.height, L.value = T.value, y.value = S.value;
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
- h.value = !0;
186
- }), F(p, () => {
187
- p || (h.value = !1);
188
- }), s0(() => {
189
- h.value && (T.value = L.value + Math.min(
190
- Math.max(b.value.left, s.value),
191
- b.value.right
192
- ) - m.value, S.value = y.value + Math.min(
193
- Math.max(b.value.top, r.value),
194
- b.value.bottom
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 D = q(() => ({
198
- transform: `translate(${T.value}px, ${S.value}px)`
197
+ const A = q(() => ({
198
+ transform: `translate(${C.value}px, ${D.value}px)`
199
199
  }));
200
200
  return {
201
- visible: a,
202
- showModal: n,
203
- handleCancel: _,
204
- modalTitleRef: t,
205
- transformStyle: D,
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" } }, T0 = { 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 C0(e, o, a, t, n, l) {
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(), x("div", null, [
213
- R(s, {
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": o[0] || (o[0] = (r) => e.visible = r),
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
- g("div", {
225
+ p("div", {
226
226
  ref: "modalTitleRef",
227
227
  style: { width: "100%", cursor: "move", color: "#fff" }
228
- }, I(e.title), 513)
228
+ }, B(e.title), 513)
229
229
  ]),
230
230
  modalRender: k(({ originVNode: r }) => [
231
- g("div", {
232
- style: i0(e.transformStyle)
231
+ p("div", {
232
+ style: K(e.transformStyle)
233
233
  }, [
234
- (f(), N(r0(r)))
234
+ (f(), N(u0(r)))
235
235
  ], 4)
236
236
  ]),
237
237
  default: k(() => [
238
- g("div", x0, [
238
+ p("div", x0, [
239
239
  M(e.$slots, "content", {}, void 0, !0)
240
240
  ]),
241
- g("div", T0, [
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 Z0 = /* @__PURE__ */ V($0, [["render", C0], ["__scopeId", "data-v-868a4dd6"]]), w0 = { style: { "font-size": "13px", "font-weight": "700", padding: "15px 0px", height: "116px" } }, k0 = { style: { padding: "0 24px" } }, e1 = {
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: o, emit: a }) {
253
- const t = u(null), n = u("");
252
+ setup(e, { expose: a, emit: t }) {
253
+ const n = u(null), o = u("");
254
254
  function l() {
255
- p("delOk"), s();
255
+ m("delOk"), s();
256
256
  }
257
257
  function s() {
258
- n.value = "", t.value.handleCancel();
258
+ o.value = "", n.value.handleCancel();
259
259
  }
260
- function r(_) {
261
- n.value = _, t.value.showModal();
260
+ function r(g) {
261
+ o.value = g, n.value.showModal();
262
262
  }
263
- const p = a;
264
- return o({ showModal: r }), (_, m) => {
265
- const c = E("Title"), h = E("Button"), T = E("Modal");
266
- return f(), N(T, {
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: t,
269
+ ref: n,
270
270
  title: "确认对话框"
271
271
  }, {
272
272
  content: k(() => [
273
- g("div", w0, [
274
- R(c, { title: "提交" }),
275
- g("div", k0, I(n.value), 1)
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
- R(h, {
279
+ I(b, {
280
280
  type: "reset",
281
281
  onClick: s
282
282
  }, {
283
- default: k(() => [...m[0] || (m[0] = [
283
+ default: k(() => [...h[0] || (h[0] = [
284
284
  G("取消", -1)
285
285
  ])]),
286
286
  _: 1
287
287
  }),
288
- R(h, {
288
+ I(b, {
289
289
  type: "submit",
290
290
  onClick: l
291
291
  }, {
292
- default: k(() => [...m[1] || (m[1] = [
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" }, O0 = { style: { "font-weight": "600", "font-size": "14px" } }, B0 = { class: "btn" }, E0 = { style: { background: "#fff", margin: "10px", height: "calc(100% - 64px)", "box-sizing": "border-box", "overflow-y": "auto", "font-size": "13px" } }, S0 = {
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 (o, a) => (f(), x("div", M0, [
311
- g("div", z0, [
312
- g("div", O0, I(e.title), 1),
313
- g("div", B0, [
314
- M(o.$slots, "btn", {}, void 0, !0)
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
- g("div", E0, [
318
- M(o.$slots, "content", {}, void 0, !0)
317
+ p("div", B0, [
318
+ M(a.$slots, "content", {}, void 0, !0)
319
319
  ])
320
320
  ]));
321
321
  }
322
- }, t1 = /* @__PURE__ */ V(S0, [["__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 = {
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: o }) {
337
- const a = e, t = o, n = (l) => {
338
- console.log("点击了 Tab", l), a.activeTab !== l && t("changeTab", 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(), x("div", D0, [
341
- g("div", A0, [
342
- (f(!0), x(K, null, Q(e.tabs, (r, p) => (f(), x("div", {
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: Z(["tab-item", { active: e.activeTab === p }]),
345
- onClick: (_) => n(p)
344
+ class: e0(["tab-item", { active: e.activeTab === m }]),
345
+ onClick: (g) => o(m)
346
346
  }, [
347
- g("span", R0, I(r), 1)
347
+ p("span", R0, B(r), 1)
348
348
  ], 10, P0))), 128))
349
349
  ]),
350
- g("div", I0, [
351
- g("div", L0, [
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
- }, n1 = /* @__PURE__ */ V(V0, [["__scopeId", "data-v-f92649a9"]]), N0 = J({
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, o, a, t, n, l) {
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(I(e.text), 1)
370
+ G(B(e.text), 1)
371
371
  ]),
372
372
  default: k(() => [
373
- g("div", q0, I(e.text), 1)
373
+ p("div", q0, B(e.text), 1)
374
374
  ]),
375
375
  _: 1
376
376
  });
377
377
  }
378
- const a1 = /* @__PURE__ */ V(N0, [["render", X0], ["__scopeId", "data-v-ad7715fb"]]);
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 P = /* @__PURE__ */ Y0(G0), o1 = {
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: o }) {
782
- const a = o, t = u([]), n = u([]), l = u([]), s = u(""), r = u(""), p = u(""), _ = u(""), m = u(""), c = u(""), h = (d) => Object.keys(d).map(($) => ({ value: d[$], label: d[$] })), T = () => {
783
- t.value = h(P[86] || {});
784
- }, S = (d) => {
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
- n.value = [];
786
+ o.value = [];
787
787
  return;
788
788
  }
789
- n.value = h(P[d] || {});
790
- }, L = (d) => {
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 = h(P[d] || {});
795
+ l.value = b(R[d] || {});
796
796
  }, y = () => {
797
- const d = [_.value, m.value, c.value].filter(Boolean).join(" ");
798
- a("update:regionText", d);
799
- }, b = (d, $) => {
800
- _.value = $.label, s.value = Object.keys(P[86]).find(
801
- (O) => P[86][O] === $.label
802
- ), m.value = "", r.value = "", c.value = "", p.value = "", S(s.value), y();
803
- }, D = (d, $) => {
804
- m.value = $.label, r.value = Object.keys(P[s.value]).find(
805
- (O) => P[s.value][O] === $.label
806
- ), c.value = "", p.value = "", L(r.value), y();
807
- }, z = (d, $) => {
808
- c.value = $.label, y();
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 u0(T), (d, $) => {
811
- const O = E("a-select"), i = E("a-space");
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
- R(O, {
815
- value: _.value,
814
+ I(S, {
815
+ value: g.value,
816
816
  placeholder: "请选择省",
817
- options: t.value,
817
+ options: n.value,
818
818
  style: { width: "125px" },
819
819
  disabled: e.disabled,
820
- onChange: b
820
+ onChange: _
821
821
  }, null, 8, ["value", "options", "disabled"]),
822
- R(O, {
823
- value: m.value,
822
+ I(S, {
823
+ value: h.value,
824
824
  placeholder: "请选择市",
825
- options: n.value,
825
+ options: o.value,
826
826
  style: { width: "120px" },
827
827
  disabled: !s.value || e.disabled,
828
- onChange: D
828
+ onChange: A
829
829
  }, null, 8, ["value", "options", "disabled"]),
830
- R(O, {
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: o }) {
857
- const a = (n) => {
858
- t("changeTab", n);
859
- }, t = o;
860
- return (n, l) => (f(), x("div", H0, [
861
- (f(!0), x(K, null, Q(e.tabs, (s, r) => (f(), x("div", {
862
- class: Z(["tabs", { active: e.activeTab === r }]),
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: (p) => a(r)
865
- }, I(s), 11, U0))), 128))
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
- }, l1 = /* @__PURE__ */ V(j0, [["__scopeId", "data-v-d8c7bbbe"]]);
894
+ }, d1 = /* @__PURE__ */ L(Z0, [["__scopeId", "data-v-63e8edae"]]);
869
895
  export {
870
- t1 as BusinessInterface,
871
- Q0 as Button,
872
- e1 as DeletePrompt,
873
- n1 as EmbeddedTab,
874
- a1 as MaxThreeLineTxt,
875
- Z0 as Model,
876
- o1 as SelectCity,
877
- l1 as Tabs
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