xlzw-component 1.1.1 → 1.1.3
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 +3 -3
- package/dist/index.css +1 -1
- package/dist/xlzw-component.js +141 -135
- 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/README.md
CHANGED
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
#cancel[data-v-c800580d],#submit[data-v-c800580d],#reset[data-v-c800580d],#sweep[data-v-c800580d],#disable[data-v-c800580d],#fileSubmit[data-v-c800580d]{font-family:思源黑体 CN-Normal,思源黑体 CN,sans-serif;font-weight:350;font-size:13px;height:36px;line-height:36px;padding:0 20px;border-radius:5px;cursor:pointer;margin:0 5px;display:inline-block;box-sizing:border-box;text-align:center;white-space:nowrap;font-weight:500}#fileSubmit[data-v-c800580d]{margin:0}#cancel[data-v-c800580d]{color:#fff;background:#88a6b0}#submit[data-v-c800580d],#fileSubmit[data-v-c800580d]{color:#fff;background:#ec4408}#reset[data-v-c800580d],#sweep[data-v-c800580d]{color:#000;background:#fff;border:1px solid #88a6b0}#disable[data-v-c800580d]{color:#ccc;background:#f0f0f0}[data-v-c800580d] button{height:36px!important;font-family:思源黑体 CN-Normal,思源黑体 CN,sans-serif;font-weight:350;font-size:13px;background:#f0f0f0;color:#ccc;margin:0 5px}[data-v-81aa9f64] .ant-modal-content{padding:0!important}[data-v-81aa9f64] .ant-modal-close{color:#fff;top:10px;right:10px}[data-v-81aa9f64] .anticon-close{font-size:16px}[data-v-81aa9f64] .ant-modal-close:hover{color:#fff}[data-v-81aa9f64] .ant-modal-header{margin-bottom:0}[data-v-81aa9f64] .ant-modal-title{color:#fff;height:40px;background:#333;display:flex;align-items:center;padding:0 20px;font-size:13px;border-top-left-radius:5px;border-top-right-radius:5px}[data-v-81aa9f64] .ant-modal-body{background:#f0f0f0;padding:10px;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.header[data-v-27e52c4b]{height:44px;display:flex;align-items:center;justify-content:center;background:#fff;font-weight:700}.btn[data-v-27e52c4b]{position:absolute;right:10px}.slanted-tabs-wrapper[data-v-
|
|
1
|
+
#cancel[data-v-c800580d],#submit[data-v-c800580d],#reset[data-v-c800580d],#sweep[data-v-c800580d],#disable[data-v-c800580d],#fileSubmit[data-v-c800580d]{font-family:思源黑体 CN-Normal,思源黑体 CN,sans-serif;font-weight:350;font-size:13px;height:36px;line-height:36px;padding:0 20px;border-radius:5px;cursor:pointer;margin:0 5px;display:inline-block;box-sizing:border-box;text-align:center;white-space:nowrap;font-weight:500}#fileSubmit[data-v-c800580d]{margin:0}#cancel[data-v-c800580d]{color:#fff;background:#88a6b0}#submit[data-v-c800580d],#fileSubmit[data-v-c800580d]{color:#fff;background:#ec4408}#reset[data-v-c800580d],#sweep[data-v-c800580d]{color:#000;background:#fff;border:1px solid #88a6b0}#disable[data-v-c800580d]{color:#ccc;background:#f0f0f0}[data-v-c800580d] button{height:36px!important;font-family:思源黑体 CN-Normal,思源黑体 CN,sans-serif;font-weight:350;font-size:13px;background:#f0f0f0;color:#ccc;margin:0 5px}[data-v-81aa9f64] .ant-modal-content{padding:0!important}[data-v-81aa9f64] .ant-modal-close{color:#fff;top:10px;right:10px}[data-v-81aa9f64] .anticon-close{font-size:16px}[data-v-81aa9f64] .ant-modal-close:hover{color:#fff}[data-v-81aa9f64] .ant-modal-header{margin-bottom:0}[data-v-81aa9f64] .ant-modal-title{color:#fff;height:40px;background:#333;display:flex;align-items:center;padding:0 20px;font-size:13px;border-top-left-radius:5px;border-top-right-radius:5px}[data-v-81aa9f64] .ant-modal-body{background:#f0f0f0;padding:10px;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.header[data-v-27e52c4b]{height:44px;display:flex;align-items:center;justify-content:center;background:#fff;font-weight:700}.btn[data-v-27e52c4b]{position:absolute;right:10px}.slanted-tabs-wrapper[data-v-1af2a4e4]{--tab-skew-width: 25px;--tab-height: 32px;--tab-height-active: 34px;--bg-inactive: #fafafa;--bg-active: #ffffff;--text-inactive: #000;--text-active: #000;--border-color: #dcdcdc !important;--border-width: 1px;width:100%}.tab-header[data-v-1af2a4e4]{display:flex;align-items:flex-end}.tab-item[data-v-1af2a4e4]{position:relative;height:var(--tab-height);line-height:var(--tab-height);padding:0 calc(15px + var(--tab-skew-width)) 0 25px;margin-right:-12px;cursor:pointer;transition:all .2s ease;font-weight:500;color:var(--text-inactive);background-color:var(--border-color);z-index:1;width:127px;clip-path:polygon(0 0,calc(100% - var(--tab-skew-width)) 0,100% 100%,0 100%)}.tab-item[data-v-1af2a4e4]:before{content:"";position:absolute;top:var(--border-width);left:var(--border-width);right:var(--border-width);bottom:0;background-color:var(--bg-inactive);z-index:-1;clip-path:polygon(0 0,calc(100% - var(--tab-skew-width)) 0,100% 100%,0 100%);transition:background-color .2s ease}.tab-item.active[data-v-1af2a4e4]{height:var(--tab-height-active);line-height:var(--tab-height-active);color:var(--text-active);z-index:10;margin-bottom:calc(var(--border-width) * -2);border-bottom:none}.tab-item.active[data-v-1af2a4e4]:before{background-color:var(--bg-active);bottom:0}.tab-text[data-v-1af2a4e4]{position:relative;z-index:2;-webkit-user-select:none;user-select:none}.tab-content-panel[data-v-1af2a4e4]{background:var(--bg-active);height:100%}.text-truncation[data-v-ad7715fb]{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;line-height:1.5;max-height:4.5em;word-break:break-all}.right_Top[data-v-d8c7bbbe]{width:100%;height:44px;background:#fff;border-radius:5px;display:flex;align-items:center}.tabs[data-v-d8c7bbbe]{width:180px;height:32px;border-radius:5px;line-height:32px;padding-left:10px;margin-left:10px;color:#333;background:#f2f2f2;cursor:pointer;transition:all .2s ease}.tabs.active[data-v-d8c7bbbe]{color:#fff;background:#88a6b0}.tabs.active[data-v-d8c7bbbe]:hover{background:#7a98a3}#shu[data-v-63e8edae]{height:19px;width:4px;margin:0 10px}#title[data-v-63e8edae]{font-size:13px;color:#333;font-weight:700}#message[data-v-63e8edae]{font-size:13px;color:#666;margin-left:10px}.step-box{position:relative;width:100%;height:48px;box-sizing:border-box}.step-item{position:absolute;top:8px;width:32px;height:32px;border-radius:50%;background-color:#ccc;color:#666;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;cursor:pointer;transition:background-color .3s ease;z-index:2}.step-item.active{background-color:#88a6b0;color:#fff}.step-item:hover{opacity:.8}.step-line{position:absolute;top:23px;height:1px;background-color:#ccc;z-index:1;transition:background-color .3s ease}.step-line.active-line{background-color:#88a6b0}
|
package/dist/xlzw-component.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as c, resolveComponent as D, openBlock as d, createElementBlock as b, renderSlot as S, createCommentVNode as H, createBlock as
|
|
1
|
+
import { ref as c, resolveComponent as D, openBlock as d, createElementBlock as b, renderSlot as S, createCommentVNode as H, createBlock as N, withCtx as z, isRef as a0, toRefs as l0, customRef as s0, toValue as h, watch as U, computed as q, unref as i0, defineComponent as t0, watchEffect as r0, createVNode as I, createElementVNode as g, normalizeStyle as W, resolveDynamicComponent as u0, toDisplayString as M, createTextVNode as j, Fragment as J, renderList as K, normalizeClass as X, onMounted as Q, nextTick as c0, onUnmounted as d0 } from "vue";
|
|
2
2
|
import "ant-design-vue";
|
|
3
3
|
const V = (e, a) => {
|
|
4
4
|
const t = e.__vccOpts || e;
|
|
@@ -8,10 +8,10 @@ const V = (e, a) => {
|
|
|
8
8
|
}, v0 = {
|
|
9
9
|
key: 0,
|
|
10
10
|
id: "reset"
|
|
11
|
-
},
|
|
11
|
+
}, f0 = {
|
|
12
12
|
key: 1,
|
|
13
13
|
id: "cancel"
|
|
14
|
-
},
|
|
14
|
+
}, p0 = {
|
|
15
15
|
key: 2,
|
|
16
16
|
id: "submit"
|
|
17
17
|
}, m0 = {
|
|
@@ -35,13 +35,13 @@ const V = (e, a) => {
|
|
|
35
35
|
e.type == "reset" ? (d(), b("div", v0, [
|
|
36
36
|
S(t.$slots, "default", {}, void 0, !0)
|
|
37
37
|
])) : H("", !0),
|
|
38
|
-
e.type == "cancel" ? (d(), b("div",
|
|
38
|
+
e.type == "cancel" ? (d(), b("div", f0, [
|
|
39
39
|
S(t.$slots, "default", {}, void 0, !0)
|
|
40
|
-
])) : e.type == "submit" ? (d(), b("div",
|
|
40
|
+
])) : e.type == "submit" ? (d(), b("div", p0, [
|
|
41
41
|
S(t.$slots, "default", {}, void 0, !0)
|
|
42
42
|
])) : e.type == "sweep" ? (d(), b("div", m0, [
|
|
43
43
|
S(t.$slots, "default", {}, void 0, !0)
|
|
44
|
-
])) : e.type == "disabled" ? (d(),
|
|
44
|
+
])) : e.type == "disabled" ? (d(), N(n, {
|
|
45
45
|
key: 4,
|
|
46
46
|
type: "primary",
|
|
47
47
|
disabled: a.value
|
|
@@ -56,9 +56,9 @@ const V = (e, a) => {
|
|
|
56
56
|
]);
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
},
|
|
59
|
+
}, l1 = /* @__PURE__ */ V(b0, [["__scopeId", "data-v-c800580d"]]), n0 = typeof window < "u" && typeof document < "u";
|
|
60
60
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
61
|
-
const
|
|
61
|
+
const g0 = Object.prototype.toString, y0 = (e) => g0.call(e) === "[object Object]";
|
|
62
62
|
function Y(e) {
|
|
63
63
|
return Array.isArray(e) ? e : [e];
|
|
64
64
|
}
|
|
@@ -99,7 +99,7 @@ function x0(e) {
|
|
|
99
99
|
return (a = t == null ? void 0 : t.$el) !== null && a !== void 0 ? a : t;
|
|
100
100
|
}
|
|
101
101
|
function F(...e) {
|
|
102
|
-
const a = (o, n, l, s) => (o.addEventListener(n, l, s), () => o.removeEventListener(n, l, s)), t =
|
|
102
|
+
const a = (o, n, l, s) => (o.addEventListener(n, l, s), () => o.removeEventListener(n, l, s)), t = q(() => {
|
|
103
103
|
const o = Y(h(e[0])).filter((n) => n != null);
|
|
104
104
|
return o.every((n) => typeof n != "string") ? o : void 0;
|
|
105
105
|
});
|
|
@@ -113,56 +113,56 @@ function F(...e) {
|
|
|
113
113
|
];
|
|
114
114
|
}, ([o, n, l, s], i, m) => {
|
|
115
115
|
if (!(o != null && o.length) || !(n != null && n.length) || !(l != null && l.length)) return;
|
|
116
|
-
const
|
|
116
|
+
const f = y0(s) ? { ...s } : s, y = o.flatMap((u) => n.flatMap((v) => l.map((x) => a(u, v, x, f))));
|
|
117
117
|
m(() => {
|
|
118
|
-
|
|
118
|
+
y.forEach((u) => u());
|
|
119
119
|
});
|
|
120
120
|
}, { flush: "post" });
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function C0(e, a = {}) {
|
|
123
123
|
var t;
|
|
124
|
-
const { pointerTypes: o, preventDefault: n, stopPropagation: l, exact: s, onMove: i, onEnd: m, onStart:
|
|
124
|
+
const { pointerTypes: o, preventDefault: n, stopPropagation: l, exact: s, onMove: i, onEnd: m, onStart: f, initialValue: y, axis: u = "both", draggingElement: v = o0, containerElement: x, handle: _ = e, buttons: P = [0] } = a, C = c((t = h(y)) !== null && t !== void 0 ? t : {
|
|
125
125
|
x: 0,
|
|
126
126
|
y: 0
|
|
127
127
|
}), $ = c(), R = (r) => o ? o.includes(r.pointerType) : !0, B = (r) => {
|
|
128
128
|
h(n) && r.preventDefault(), h(l) && r.stopPropagation();
|
|
129
|
-
},
|
|
130
|
-
var
|
|
129
|
+
}, p = (r) => {
|
|
130
|
+
var k;
|
|
131
131
|
if (!h(P).includes(r.button) || h(a.disabled) || !R(r) || h(s) && r.target !== h(e)) return;
|
|
132
|
-
const
|
|
133
|
-
x: r.clientX - (
|
|
134
|
-
y: r.clientY - (
|
|
132
|
+
const T = h(x), A = T == null || (k = T.getBoundingClientRect) === null || k === void 0 ? void 0 : k.call(T), O = h(e).getBoundingClientRect(), Z = {
|
|
133
|
+
x: r.clientX - (T ? O.left - A.left + T.scrollLeft : O.left),
|
|
134
|
+
y: r.clientY - (T ? O.top - A.top + T.scrollTop : O.top)
|
|
135
135
|
};
|
|
136
|
-
(
|
|
137
|
-
},
|
|
136
|
+
(f == null ? void 0 : f(Z, r)) !== !1 && ($.value = Z, B(r));
|
|
137
|
+
}, w = (r) => {
|
|
138
138
|
if (h(a.disabled) || !R(r) || !$.value) return;
|
|
139
|
-
const
|
|
140
|
-
let { x: A, y: O } =
|
|
141
|
-
(u === "x" || u === "both") && (A = r.clientX - $.value.x,
|
|
139
|
+
const k = h(x), T = h(e).getBoundingClientRect();
|
|
140
|
+
let { x: A, y: O } = C.value;
|
|
141
|
+
(u === "x" || u === "both") && (A = r.clientX - $.value.x, k && (A = Math.min(Math.max(0, A), k.scrollWidth - T.width))), (u === "y" || u === "both") && (O = r.clientY - $.value.y, k && (O = Math.min(Math.max(0, O), k.scrollHeight - T.height))), C.value = {
|
|
142
142
|
x: A,
|
|
143
143
|
y: O
|
|
144
|
-
}, i == null || i(
|
|
144
|
+
}, i == null || i(C.value, r), B(r);
|
|
145
145
|
}, E = (r) => {
|
|
146
|
-
h(a.disabled) || !R(r) || $.value && ($.value = void 0, m == null || m(
|
|
146
|
+
h(a.disabled) || !R(r) || $.value && ($.value = void 0, m == null || m(C.value, r), B(r));
|
|
147
147
|
};
|
|
148
148
|
if (n0) {
|
|
149
149
|
const r = () => {
|
|
150
|
-
var
|
|
150
|
+
var k;
|
|
151
151
|
return {
|
|
152
|
-
capture: (
|
|
152
|
+
capture: (k = a.capture) !== null && k !== void 0 ? k : !0,
|
|
153
153
|
passive: !h(n)
|
|
154
154
|
};
|
|
155
155
|
};
|
|
156
|
-
F(_, "pointerdown",
|
|
156
|
+
F(_, "pointerdown", p, r), F(v, "pointermove", w, r), F(v, "pointerup", E, r);
|
|
157
157
|
}
|
|
158
158
|
return {
|
|
159
|
-
..._0(
|
|
160
|
-
position:
|
|
161
|
-
isDragging:
|
|
162
|
-
style:
|
|
159
|
+
..._0(C),
|
|
160
|
+
position: C,
|
|
161
|
+
isDragging: q(() => !!$.value),
|
|
162
|
+
style: q(() => `left:${C.value.x}px;top:${C.value.y}px;`)
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
|
-
const
|
|
165
|
+
const w0 = t0({
|
|
166
166
|
props: {
|
|
167
167
|
title: String,
|
|
168
168
|
width: String,
|
|
@@ -177,9 +177,9 @@ const C0 = t0({
|
|
|
177
177
|
t.value = !0;
|
|
178
178
|
}, l = () => {
|
|
179
179
|
a.emit("resetData");
|
|
180
|
-
}, { x: s, y: i, isDragging: m } =
|
|
180
|
+
}, { x: s, y: i, isDragging: m } = C0(o), f = (B) => {
|
|
181
181
|
t.value = !1;
|
|
182
|
-
},
|
|
182
|
+
}, y = c(0), u = c(0), v = c(!1), x = c(0), _ = c(0), P = c(0), C = c(0), $ = c({
|
|
183
183
|
left: 0,
|
|
184
184
|
right: 0,
|
|
185
185
|
top: 0,
|
|
@@ -187,9 +187,9 @@ const C0 = t0({
|
|
|
187
187
|
});
|
|
188
188
|
U([s, i], () => {
|
|
189
189
|
if (!v.value) {
|
|
190
|
-
|
|
191
|
-
const B = document.body.getBoundingClientRect(),
|
|
192
|
-
$.value.right = B.width -
|
|
190
|
+
y.value = s.value, u.value = i.value;
|
|
191
|
+
const B = document.body.getBoundingClientRect(), p = o.value.getBoundingClientRect();
|
|
192
|
+
$.value.right = B.width - p.width, $.value.bottom = B.height - p.height, P.value = x.value, C.value = _.value;
|
|
193
193
|
}
|
|
194
194
|
v.value = !0;
|
|
195
195
|
}), U(m, () => {
|
|
@@ -198,24 +198,24 @@ const C0 = t0({
|
|
|
198
198
|
v.value && (x.value = P.value + Math.min(
|
|
199
199
|
Math.max($.value.left, s.value),
|
|
200
200
|
$.value.right
|
|
201
|
-
) -
|
|
201
|
+
) - y.value, _.value = C.value + Math.min(
|
|
202
202
|
Math.max($.value.top, i.value),
|
|
203
203
|
$.value.bottom
|
|
204
204
|
) - u.value);
|
|
205
205
|
});
|
|
206
|
-
const R =
|
|
206
|
+
const R = q(() => ({
|
|
207
207
|
transform: `translate(${x.value}px, ${_.value}px)`
|
|
208
208
|
}));
|
|
209
209
|
return {
|
|
210
210
|
visible: t,
|
|
211
211
|
showModal: n,
|
|
212
|
-
handleCancel:
|
|
212
|
+
handleCancel: f,
|
|
213
213
|
modalTitleRef: o,
|
|
214
214
|
transformStyle: R,
|
|
215
215
|
cancel: l
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
|
-
}),
|
|
218
|
+
}), k0 = { 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" } };
|
|
219
219
|
function S0(e, a, t, o, n, l) {
|
|
220
220
|
const s = D("a-modal");
|
|
221
221
|
return d(), b("div", null, [
|
|
@@ -232,23 +232,23 @@ function S0(e, a, t, o, n, l) {
|
|
|
232
232
|
footer: null
|
|
233
233
|
}, {
|
|
234
234
|
title: z(() => [
|
|
235
|
-
|
|
235
|
+
g("div", {
|
|
236
236
|
ref: "modalTitleRef",
|
|
237
237
|
style: { width: "100%", cursor: "move", color: "#fff" }
|
|
238
238
|
}, M(e.title), 513)
|
|
239
239
|
]),
|
|
240
240
|
modalRender: z(({ originVNode: i }) => [
|
|
241
|
-
|
|
242
|
-
style:
|
|
241
|
+
g("div", {
|
|
242
|
+
style: W(e.transformStyle)
|
|
243
243
|
}, [
|
|
244
|
-
(d(),
|
|
244
|
+
(d(), N(u0(i)))
|
|
245
245
|
], 4)
|
|
246
246
|
]),
|
|
247
247
|
default: z(() => [
|
|
248
|
-
|
|
248
|
+
g("div", k0, [
|
|
249
249
|
S(e.$slots, "content", {}, void 0, !0)
|
|
250
250
|
]),
|
|
251
|
-
|
|
251
|
+
g("div", T0, [
|
|
252
252
|
S(e.$slots, "footer", {}, void 0, !0)
|
|
253
253
|
])
|
|
254
254
|
]),
|
|
@@ -256,7 +256,7 @@ function S0(e, a, t, o, n, l) {
|
|
|
256
256
|
}, 8, ["mask", "onCancel", "visible", "width"])
|
|
257
257
|
]);
|
|
258
258
|
}
|
|
259
|
-
const
|
|
259
|
+
const s1 = /* @__PURE__ */ V(w0, [["render", S0], ["__scopeId", "data-v-81aa9f64"]]), z0 = { style: { "font-size": "13px", "font-weight": "700", padding: "15px 0px", height: "116px" } }, M0 = { style: { padding: "0 24px" } }, i1 = {
|
|
260
260
|
__name: "xlzw-deletePrompt",
|
|
261
261
|
emits: ["delOk"],
|
|
262
262
|
setup(e, { expose: a, emit: t }) {
|
|
@@ -267,22 +267,22 @@ const i1 = /* @__PURE__ */ V(C0, [["render", S0], ["__scopeId", "data-v-81aa9f64
|
|
|
267
267
|
function s() {
|
|
268
268
|
n.value = "", o.value.handleCancel();
|
|
269
269
|
}
|
|
270
|
-
function i(
|
|
271
|
-
n.value =
|
|
270
|
+
function i(f) {
|
|
271
|
+
n.value = f, o.value.showModal();
|
|
272
272
|
}
|
|
273
273
|
const m = t;
|
|
274
|
-
return a({ showModal: i }), (
|
|
274
|
+
return a({ showModal: i }), (f, y) => {
|
|
275
275
|
const u = D("Title"), v = D("Button"), x = D("Modal");
|
|
276
|
-
return d(),
|
|
276
|
+
return d(), N(x, {
|
|
277
277
|
width: "430px",
|
|
278
278
|
ref_key: "modalRef",
|
|
279
279
|
ref: o,
|
|
280
280
|
title: "确认对话框"
|
|
281
281
|
}, {
|
|
282
282
|
content: z(() => [
|
|
283
|
-
|
|
284
|
-
I(u, { title: "
|
|
285
|
-
|
|
283
|
+
g("div", z0, [
|
|
284
|
+
I(u, { title: "提示" }),
|
|
285
|
+
g("div", M0, M(n.value), 1)
|
|
286
286
|
])
|
|
287
287
|
]),
|
|
288
288
|
footer: z(() => [
|
|
@@ -290,7 +290,7 @@ const i1 = /* @__PURE__ */ V(C0, [["render", S0], ["__scopeId", "data-v-81aa9f64
|
|
|
290
290
|
type: "reset",
|
|
291
291
|
onClick: s
|
|
292
292
|
}, {
|
|
293
|
-
default: z(() => [...
|
|
293
|
+
default: z(() => [...y[0] || (y[0] = [
|
|
294
294
|
j("取消", -1)
|
|
295
295
|
])]),
|
|
296
296
|
_: 1
|
|
@@ -299,7 +299,7 @@ const i1 = /* @__PURE__ */ V(C0, [["render", S0], ["__scopeId", "data-v-81aa9f64
|
|
|
299
299
|
type: "submit",
|
|
300
300
|
onClick: l
|
|
301
301
|
}, {
|
|
302
|
-
default: z(() => [...
|
|
302
|
+
default: z(() => [...y[1] || (y[1] = [
|
|
303
303
|
j("确定", -1)
|
|
304
304
|
])]),
|
|
305
305
|
_: 1
|
|
@@ -318,18 +318,18 @@ const i1 = /* @__PURE__ */ V(C0, [["render", S0], ["__scopeId", "data-v-81aa9f64
|
|
|
318
318
|
},
|
|
319
319
|
setup(e) {
|
|
320
320
|
return (a, t) => (d(), b("div", B0, [
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
321
|
+
g("div", E0, [
|
|
322
|
+
g("div", O0, M(e.title), 1),
|
|
323
|
+
g("div", D0, [
|
|
324
324
|
S(a.$slots, "btn", {}, void 0, !0)
|
|
325
325
|
])
|
|
326
326
|
]),
|
|
327
|
-
|
|
327
|
+
g("div", P0, [
|
|
328
328
|
S(a.$slots, "content", {}, void 0, !0)
|
|
329
329
|
])
|
|
330
330
|
]));
|
|
331
331
|
}
|
|
332
|
-
},
|
|
332
|
+
}, r1 = /* @__PURE__ */ V(R0, [["__scopeId", "data-v-27e52c4b"]]), A0 = { class: "slanted-tabs-wrapper" }, L0 = ["onClick"], I0 = { class: "tab-text" }, V0 = { class: "tab-content-panel" }, W0 = { class: "tab-pane" }, N0 = {
|
|
333
333
|
__name: "xlzw-embeddedTab",
|
|
334
334
|
props: {
|
|
335
335
|
tabs: {
|
|
@@ -340,6 +340,9 @@ const i1 = /* @__PURE__ */ V(C0, [["render", S0], ["__scopeId", "data-v-81aa9f64
|
|
|
340
340
|
activeTab: {
|
|
341
341
|
type: Number,
|
|
342
342
|
default: 0
|
|
343
|
+
},
|
|
344
|
+
bgColor: {
|
|
345
|
+
type: String
|
|
343
346
|
}
|
|
344
347
|
},
|
|
345
348
|
emits: ["changeTab"],
|
|
@@ -348,23 +351,26 @@ const i1 = /* @__PURE__ */ V(C0, [["render", S0], ["__scopeId", "data-v-81aa9f64
|
|
|
348
351
|
console.log("点击了 Tab", l), t.activeTab !== l && o("changeTab", l);
|
|
349
352
|
};
|
|
350
353
|
return (l, s) => (d(), b("div", A0, [
|
|
351
|
-
|
|
354
|
+
g("div", {
|
|
355
|
+
class: "tab-header",
|
|
356
|
+
style: W({ background: t.bgColor || "#f0f0f0" })
|
|
357
|
+
}, [
|
|
352
358
|
(d(!0), b(J, null, K(e.tabs, (i, m) => (d(), b("div", {
|
|
353
359
|
key: i,
|
|
354
360
|
class: X(["tab-item", { active: e.activeTab === m }]),
|
|
355
|
-
onClick: (
|
|
361
|
+
onClick: (f) => n(m)
|
|
356
362
|
}, [
|
|
357
|
-
|
|
358
|
-
], 10,
|
|
359
|
-
]),
|
|
360
|
-
|
|
361
|
-
|
|
363
|
+
g("span", I0, M(i), 1)
|
|
364
|
+
], 10, L0))), 128))
|
|
365
|
+
], 4),
|
|
366
|
+
g("div", V0, [
|
|
367
|
+
g("div", W0, [
|
|
362
368
|
S(l.$slots, "content", {}, void 0, !0)
|
|
363
369
|
])
|
|
364
370
|
])
|
|
365
371
|
]));
|
|
366
372
|
}
|
|
367
|
-
},
|
|
373
|
+
}, u1 = /* @__PURE__ */ V(N0, [["__scopeId", "data-v-1af2a4e4"]]), q0 = t0({
|
|
368
374
|
name: "TextTruncation",
|
|
369
375
|
props: {
|
|
370
376
|
text: {
|
|
@@ -372,24 +378,24 @@ const i1 = /* @__PURE__ */ V(C0, [["render", S0], ["__scopeId", "data-v-81aa9f64
|
|
|
372
378
|
required: !0
|
|
373
379
|
}
|
|
374
380
|
}
|
|
375
|
-
}),
|
|
376
|
-
function
|
|
381
|
+
}), X0 = { class: "text-truncation" };
|
|
382
|
+
function Y0(e, a, t, o, n, l) {
|
|
377
383
|
const s = D("a-tooltip");
|
|
378
|
-
return d(),
|
|
384
|
+
return d(), N(s, null, {
|
|
379
385
|
title: z(() => [
|
|
380
386
|
j(M(e.text), 1)
|
|
381
387
|
]),
|
|
382
388
|
default: z(() => [
|
|
383
|
-
|
|
389
|
+
g("div", X0, M(e.text), 1)
|
|
384
390
|
]),
|
|
385
391
|
_: 1
|
|
386
392
|
});
|
|
387
393
|
}
|
|
388
|
-
const
|
|
389
|
-
function
|
|
394
|
+
const c1 = /* @__PURE__ */ V(q0, [["render", Y0], ["__scopeId", "data-v-ad7715fb"]]);
|
|
395
|
+
function F0(e) {
|
|
390
396
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
391
397
|
}
|
|
392
|
-
const
|
|
398
|
+
const G0 = {
|
|
393
399
|
86: { 11e4: "北京市", 12e4: "天津市", 13e4: "河北省", 14e4: "山西省", 15e4: "内蒙古自治区", 21e4: "辽宁省", 22e4: "吉林省", 23e4: "黑龙江省", 31e4: "上海市", 32e4: "江苏省", 33e4: "浙江省", 34e4: "安徽省", 35e4: "福建省", 36e4: "江西省", 37e4: "山东省", 41e4: "河南省", 42e4: "湖北省", 43e4: "湖南省", 44e4: "广东省", 45e4: "广西壮族自治区", 46e4: "海南省", 5e5: "重庆市", 51e4: "四川省", 52e4: "贵州省", 53e4: "云南省", 54e4: "西藏自治区", 61e4: "陕西省", 62e4: "甘肃省", 63e4: "青海省", 64e4: "宁夏回族自治区", 65e4: "新疆维吾尔自治区", 71e4: "台湾省", 81e4: "香港特别行政区", 82e4: "澳门特别行政区" },
|
|
394
400
|
11e4: { 110100: "市辖区" },
|
|
395
401
|
110100: { 110101: "东城区", 110102: "西城区", 110105: "朝阳区", 110106: "丰台区", 110107: "石景山区", 110108: "海淀区", 110109: "门头沟区", 110111: "房山区", 110112: "通州区", 110113: "顺义区", 110114: "昌平区", 110115: "大兴区", 110116: "怀柔区", 110117: "平谷区", 110118: "密云区", 110119: "延庆区" },
|
|
@@ -776,11 +782,11 @@ const H0 = {
|
|
|
776
782
|
82e4: { 820001: "花地瑪堂區", 820002: "花王堂區", 820003: "望德堂區", 820004: "大堂區", 820005: "風順堂區", 820006: "嘉模堂區", 820007: "路氹填海區", 820008: "聖方濟各堂區" }
|
|
777
783
|
};
|
|
778
784
|
var G, e0;
|
|
779
|
-
function
|
|
780
|
-
return e0 || (e0 = 1, G =
|
|
785
|
+
function H0() {
|
|
786
|
+
return e0 || (e0 = 1, G = G0), G;
|
|
781
787
|
}
|
|
782
|
-
var
|
|
783
|
-
const L = /* @__PURE__ */
|
|
788
|
+
var U0 = H0();
|
|
789
|
+
const L = /* @__PURE__ */ F0(U0), d1 = {
|
|
784
790
|
__name: "xlzw-selectCity",
|
|
785
791
|
props: {
|
|
786
792
|
regionText: { type: String, default: "" },
|
|
@@ -789,40 +795,40 @@ const L = /* @__PURE__ */ G0(j0), v1 = {
|
|
|
789
795
|
},
|
|
790
796
|
emits: ["update:regionText"],
|
|
791
797
|
setup(e, { emit: a }) {
|
|
792
|
-
const t = a, o = c([]), n = c([]), l = c([]), s = c(""), i = c(""), m = c(""),
|
|
798
|
+
const t = a, o = c([]), n = c([]), l = c([]), s = c(""), i = c(""), m = c(""), f = c(""), y = c(""), u = c(""), v = (p) => Object.keys(p).map((w) => ({ value: p[w], label: p[w] })), x = () => {
|
|
793
799
|
o.value = v(L[86] || {});
|
|
794
|
-
}, _ = (
|
|
795
|
-
if (!
|
|
800
|
+
}, _ = (p) => {
|
|
801
|
+
if (!p) {
|
|
796
802
|
n.value = [];
|
|
797
803
|
return;
|
|
798
804
|
}
|
|
799
|
-
n.value = v(L[
|
|
800
|
-
}, P = (
|
|
801
|
-
if (!
|
|
805
|
+
n.value = v(L[p] || {});
|
|
806
|
+
}, P = (p) => {
|
|
807
|
+
if (!p) {
|
|
802
808
|
l.value = [];
|
|
803
809
|
return;
|
|
804
810
|
}
|
|
805
|
-
l.value = v(L[
|
|
806
|
-
},
|
|
807
|
-
const
|
|
808
|
-
t("update:regionText",
|
|
809
|
-
}, $ = (
|
|
810
|
-
|
|
811
|
-
(E) => L[86][E] ===
|
|
812
|
-
),
|
|
813
|
-
}, R = (
|
|
814
|
-
|
|
815
|
-
(E) => L[s.value][E] ===
|
|
816
|
-
), u.value = "", m.value = "", P(i.value),
|
|
817
|
-
}, B = (
|
|
818
|
-
u.value =
|
|
811
|
+
l.value = v(L[p] || {});
|
|
812
|
+
}, C = () => {
|
|
813
|
+
const p = [f.value, y.value, u.value].filter(Boolean).join(" ");
|
|
814
|
+
t("update:regionText", p);
|
|
815
|
+
}, $ = (p, w) => {
|
|
816
|
+
f.value = w.label, s.value = Object.keys(L[86]).find(
|
|
817
|
+
(E) => L[86][E] === w.label
|
|
818
|
+
), y.value = "", i.value = "", u.value = "", m.value = "", _(s.value), C();
|
|
819
|
+
}, R = (p, w) => {
|
|
820
|
+
y.value = w.label, i.value = Object.keys(L[s.value]).find(
|
|
821
|
+
(E) => L[s.value][E] === w.label
|
|
822
|
+
), u.value = "", m.value = "", P(i.value), C();
|
|
823
|
+
}, B = (p, w) => {
|
|
824
|
+
u.value = w.label, C();
|
|
819
825
|
};
|
|
820
|
-
return Q(x), (
|
|
826
|
+
return Q(x), (p, w) => {
|
|
821
827
|
const E = D("a-select"), r = D("a-space");
|
|
822
|
-
return d(),
|
|
828
|
+
return d(), N(r, null, {
|
|
823
829
|
default: z(() => [
|
|
824
830
|
I(E, {
|
|
825
|
-
value:
|
|
831
|
+
value: f.value,
|
|
826
832
|
placeholder: "请选择省",
|
|
827
833
|
options: o.value,
|
|
828
834
|
style: { width: "125px" },
|
|
@@ -830,7 +836,7 @@ const L = /* @__PURE__ */ G0(j0), v1 = {
|
|
|
830
836
|
onChange: $
|
|
831
837
|
}, null, 8, ["value", "options", "disabled"]),
|
|
832
838
|
I(E, {
|
|
833
|
-
value:
|
|
839
|
+
value: y.value,
|
|
834
840
|
placeholder: "请选择市",
|
|
835
841
|
options: n.value,
|
|
836
842
|
style: { width: "120px" },
|
|
@@ -850,7 +856,7 @@ const L = /* @__PURE__ */ G0(j0), v1 = {
|
|
|
850
856
|
});
|
|
851
857
|
};
|
|
852
858
|
}
|
|
853
|
-
},
|
|
859
|
+
}, j0 = { class: "right_Top" }, J0 = ["onClick"], K0 = {
|
|
854
860
|
__name: "xlzw-tabs",
|
|
855
861
|
props: {
|
|
856
862
|
tabs: {
|
|
@@ -867,15 +873,15 @@ const L = /* @__PURE__ */ G0(j0), v1 = {
|
|
|
867
873
|
const t = (n) => {
|
|
868
874
|
o("changeTab", n);
|
|
869
875
|
}, o = a;
|
|
870
|
-
return (n, l) => (d(), b("div",
|
|
876
|
+
return (n, l) => (d(), b("div", j0, [
|
|
871
877
|
(d(!0), b(J, null, K(e.tabs, (s, i) => (d(), b("div", {
|
|
872
878
|
class: X(["tabs", { active: e.activeTab === i }]),
|
|
873
879
|
key: i,
|
|
874
880
|
onClick: (m) => t(i)
|
|
875
|
-
}, M(s), 11,
|
|
881
|
+
}, M(s), 11, J0))), 128))
|
|
876
882
|
]));
|
|
877
883
|
}
|
|
878
|
-
},
|
|
884
|
+
}, v1 = /* @__PURE__ */ V(K0, [["__scopeId", "data-v-d8c7bbbe"]]), Q0 = { style: { display: "flex", "align-items": "center", "margin-bottom": "15px" } }, Z0 = { id: "title" }, e1 = { id: "message" }, t1 = {
|
|
879
885
|
__name: "xlzw-title",
|
|
880
886
|
props: {
|
|
881
887
|
title: {
|
|
@@ -892,16 +898,16 @@ const L = /* @__PURE__ */ G0(j0), v1 = {
|
|
|
892
898
|
const a = e, t = c("#ec4408");
|
|
893
899
|
return Q(() => {
|
|
894
900
|
typeof window < "u" && window.config && (t.value = window.config.bgColor), a.bgColor && (t.value = a.bgColor);
|
|
895
|
-
}), (o, n) => (d(), b("div",
|
|
896
|
-
|
|
901
|
+
}), (o, n) => (d(), b("div", Q0, [
|
|
902
|
+
g("div", {
|
|
897
903
|
id: "shu",
|
|
898
|
-
style:
|
|
904
|
+
style: W({ backgroundColor: t.value })
|
|
899
905
|
}, null, 4),
|
|
900
|
-
|
|
901
|
-
|
|
906
|
+
g("div", Z0, M(e.title), 1),
|
|
907
|
+
g("div", e1, M(e.message), 1)
|
|
902
908
|
]));
|
|
903
909
|
}
|
|
904
|
-
}, f1 = /* @__PURE__ */ V(
|
|
910
|
+
}, f1 = /* @__PURE__ */ V(t1, [["__scopeId", "data-v-63e8edae"]]), n1 = ["onClick"], p1 = {
|
|
905
911
|
__name: "xlzw-step",
|
|
906
912
|
props: {
|
|
907
913
|
list: {
|
|
@@ -929,12 +935,12 @@ const L = /* @__PURE__ */ G0(j0), v1 = {
|
|
|
929
935
|
});
|
|
930
936
|
const m = (u) => {
|
|
931
937
|
o("step-change", u);
|
|
932
|
-
},
|
|
938
|
+
}, f = (u) => {
|
|
933
939
|
const v = t.list.length;
|
|
934
940
|
return l.value === 0 || v === 0 ? 0 : l.value / (v + 1) * (u + 1) - 16;
|
|
935
|
-
},
|
|
936
|
-
const v =
|
|
937
|
-
return
|
|
941
|
+
}, y = (u) => {
|
|
942
|
+
const v = f(u);
|
|
943
|
+
return f(u + 1) - v - 32;
|
|
938
944
|
};
|
|
939
945
|
return (u, v) => (d(), b("div", {
|
|
940
946
|
class: "step-box",
|
|
@@ -942,17 +948,17 @@ const L = /* @__PURE__ */ G0(j0), v1 = {
|
|
|
942
948
|
ref: n
|
|
943
949
|
}, [
|
|
944
950
|
(d(!0), b(J, null, K(e.list, (x, _) => (d(), b("div", { key: _ }, [
|
|
945
|
-
|
|
951
|
+
g("div", {
|
|
946
952
|
class: X(["step-item", { active: e.currentStep >= _ }]),
|
|
947
|
-
style:
|
|
953
|
+
style: W({ left: f(_) + "px" }),
|
|
948
954
|
onClick: (P) => m(_)
|
|
949
|
-
}, M(_ + 1), 15,
|
|
955
|
+
}, M(_ + 1), 15, n1),
|
|
950
956
|
_ < e.list.length - 1 ? (d(), b("div", {
|
|
951
957
|
key: 0,
|
|
952
958
|
class: X(["step-line", { "active-line": e.currentStep > _ }]),
|
|
953
|
-
style:
|
|
954
|
-
left:
|
|
955
|
-
width:
|
|
959
|
+
style: W({
|
|
960
|
+
left: f(_) + 32 + 20 + "px",
|
|
961
|
+
width: y(_) - 40 + "px"
|
|
956
962
|
})
|
|
957
963
|
}, null, 6)) : H("", !0)
|
|
958
964
|
]))), 128))
|
|
@@ -960,15 +966,15 @@ const L = /* @__PURE__ */ G0(j0), v1 = {
|
|
|
960
966
|
}
|
|
961
967
|
};
|
|
962
968
|
export {
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
969
|
+
r1 as BusinessInterface,
|
|
970
|
+
l1 as Button,
|
|
971
|
+
i1 as DeletePrompt,
|
|
972
|
+
u1 as EmbeddedTab,
|
|
973
|
+
c1 as MaxThreeLineTxt,
|
|
974
|
+
s1 as Model,
|
|
975
|
+
d1 as SelectCity,
|
|
976
|
+
p1 as Step,
|
|
977
|
+
v1 as Tabs,
|
|
972
978
|
f1 as Title
|
|
973
979
|
};
|
|
974
980
|
//# sourceMappingURL=xlzw-component.js.map
|