xbd-vui 0.0.7 → 0.0.8
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/xbd-vui.es.js +358 -328
- package/dist/xbd-vui.umd.js +5 -5
- package/package.json +1 -1
package/dist/xbd-vui.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { resolveComponent as N, createElementBlock as
|
|
2
|
-
import { ElButton as
|
|
3
|
-
import { VxePager as
|
|
4
|
-
const
|
|
1
|
+
import { resolveComponent as N, createElementBlock as y, openBlock as p, createVNode as h, createElementVNode as d, withCtx as g, createTextVNode as S, toDisplayString as R, ref as x, computed as O, createBlock as V, mergeProps as M, defineComponent as q, unref as b, renderSlot as w, createCommentVNode as H, toRefs as he, watch as le, normalizeStyle as T, normalizeClass as xe, Fragment as pe, withDirectives as U, vShow as Se, createSlots as G, renderList as ce, reactive as oe, useAttrs as ze, useSlots as Ce, resolveDirective as ae, normalizeProps as ne, guardReactiveProps as se, nextTick as ue } from "vue";
|
|
2
|
+
import { ElButton as K, ElSelectV2 as ke, ElCheckbox as re, ElSelect as Ve, ElOption as we } from "element-plus";
|
|
3
|
+
import { VxePager as $e } from "vxe-table";
|
|
4
|
+
const Pe = { class: "v-popover-handle" }, je = {
|
|
5
5
|
__name: "Handle",
|
|
6
6
|
props: {
|
|
7
7
|
value: { type: String, default: "" },
|
|
@@ -9,108 +9,108 @@ const $e = { class: "v-popover-handle" }, Pe = {
|
|
|
9
9
|
closeText: { type: String, default: "关闭" }
|
|
10
10
|
},
|
|
11
11
|
emits: ["close", "submit", "clear"],
|
|
12
|
-
setup(e, { emit:
|
|
13
|
-
const o =
|
|
14
|
-
return (
|
|
15
|
-
const
|
|
16
|
-
return
|
|
17
|
-
|
|
12
|
+
setup(e, { emit: a }) {
|
|
13
|
+
const o = a;
|
|
14
|
+
return (r, t) => {
|
|
15
|
+
const n = N("el-button");
|
|
16
|
+
return p(), y("div", Pe, [
|
|
17
|
+
h(n, {
|
|
18
18
|
size: "small",
|
|
19
|
-
onClick: t[0] || (t[0] = (
|
|
19
|
+
onClick: t[0] || (t[0] = (c) => o("clear"))
|
|
20
20
|
}, {
|
|
21
|
-
default:
|
|
22
|
-
|
|
21
|
+
default: g(() => t[3] || (t[3] = [
|
|
22
|
+
S("清空")
|
|
23
23
|
])),
|
|
24
24
|
_: 1,
|
|
25
25
|
__: [3]
|
|
26
26
|
}),
|
|
27
|
-
d("div", null, "共 " +
|
|
27
|
+
d("div", null, "共 " + R(e.value ? e.value.split(`
|
|
28
28
|
`).length : 0) + " 个", 1),
|
|
29
|
-
|
|
29
|
+
h(n, {
|
|
30
30
|
size: "small",
|
|
31
31
|
class: "v-popover-handle-right",
|
|
32
|
-
onClick: t[1] || (t[1] = (
|
|
32
|
+
onClick: t[1] || (t[1] = (c) => o("close"))
|
|
33
33
|
}, {
|
|
34
|
-
default:
|
|
35
|
-
|
|
34
|
+
default: g(() => [
|
|
35
|
+
S(R(e.closeText), 1)
|
|
36
36
|
]),
|
|
37
37
|
_: 1
|
|
38
38
|
}),
|
|
39
|
-
|
|
39
|
+
h(n, {
|
|
40
40
|
size: "small",
|
|
41
41
|
type: "primary",
|
|
42
|
-
onClick: t[2] || (t[2] = (
|
|
42
|
+
onClick: t[2] || (t[2] = (c) => o("submit"))
|
|
43
43
|
}, {
|
|
44
|
-
default:
|
|
45
|
-
|
|
44
|
+
default: g(() => [
|
|
45
|
+
S(R(e.submitText), 1)
|
|
46
46
|
]),
|
|
47
47
|
_: 1
|
|
48
48
|
})
|
|
49
49
|
]);
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
},
|
|
52
|
+
}, Be = { class: "v-batch-input-wrapper" }, Z = {
|
|
53
53
|
__name: "index",
|
|
54
54
|
props: {
|
|
55
55
|
modelValue: { type: String, default: () => "" },
|
|
56
56
|
rows: { type: [Number, String], default: () => 200 }
|
|
57
57
|
},
|
|
58
58
|
emits: ["update:modelValue", "search"],
|
|
59
|
-
setup(e, { expose:
|
|
60
|
-
const
|
|
59
|
+
setup(e, { expose: a, emit: o }) {
|
|
60
|
+
const r = e, t = o, n = x(!1), c = x(!1), i = x(), s = O({
|
|
61
61
|
get() {
|
|
62
62
|
var m;
|
|
63
|
-
return ((m =
|
|
63
|
+
return ((m = r.modelValue) == null ? void 0 : m.replaceAll(",", `
|
|
64
64
|
`)) || "";
|
|
65
65
|
},
|
|
66
66
|
set(m) {
|
|
67
67
|
t("update:modelValue", (m == null ? void 0 : m.split(`
|
|
68
68
|
`).join(",")) || "");
|
|
69
69
|
}
|
|
70
|
-
}),
|
|
70
|
+
}), l = O(
|
|
71
71
|
() => {
|
|
72
72
|
var m;
|
|
73
|
-
return ((m =
|
|
73
|
+
return ((m = s.value) == null ? void 0 : m.split(`
|
|
74
74
|
`).filter(Boolean).join(",")) || "";
|
|
75
75
|
}
|
|
76
|
-
),
|
|
77
|
-
|
|
76
|
+
), u = async () => {
|
|
77
|
+
n.value = !0, await 1, i == null || i.value.focus();
|
|
78
78
|
}, C = () => {
|
|
79
|
-
|
|
79
|
+
n.value = !1;
|
|
80
80
|
}, P = () => {
|
|
81
81
|
var m;
|
|
82
82
|
t(
|
|
83
83
|
"update:modelValue",
|
|
84
|
-
((m =
|
|
85
|
-
`).filter(Boolean).slice(0,
|
|
84
|
+
((m = s.value) == null ? void 0 : m.split(`
|
|
85
|
+
`).filter(Boolean).slice(0, r.rows).join(",")) || ""
|
|
86
86
|
);
|
|
87
|
-
},
|
|
88
|
-
|
|
87
|
+
}, j = () => {
|
|
88
|
+
s.value = "";
|
|
89
89
|
}, L = () => {
|
|
90
90
|
C(), t("search");
|
|
91
91
|
};
|
|
92
|
-
return
|
|
93
|
-
const
|
|
94
|
-
return
|
|
95
|
-
visible:
|
|
96
|
-
"onUpdate:visible": _[4] || (_[4] = (
|
|
97
|
-
disabled:
|
|
92
|
+
return a({ clear: j }), (m, _) => {
|
|
93
|
+
const z = N("el-input"), E = N("el-popover");
|
|
94
|
+
return p(), V(E, {
|
|
95
|
+
visible: n.value,
|
|
96
|
+
"onUpdate:visible": _[4] || (_[4] = (k) => n.value = k),
|
|
97
|
+
disabled: c.value,
|
|
98
98
|
trigger: "click",
|
|
99
99
|
placement: "bottom-end",
|
|
100
100
|
width: "405px",
|
|
101
101
|
offset: 2,
|
|
102
102
|
"show-arrow": !1,
|
|
103
|
-
onShow:
|
|
103
|
+
onShow: u,
|
|
104
104
|
onHide: C
|
|
105
105
|
}, {
|
|
106
|
-
reference:
|
|
107
|
-
|
|
108
|
-
modelValue:
|
|
109
|
-
"onUpdate:modelValue": _[2] || (_[2] = (
|
|
106
|
+
reference: g(() => [
|
|
107
|
+
h(z, M({
|
|
108
|
+
modelValue: l.value,
|
|
109
|
+
"onUpdate:modelValue": _[2] || (_[2] = (k) => l.value = k),
|
|
110
110
|
placeholder: m.$attrs.placeholder || "请输入",
|
|
111
|
-
class: ["v-batch-input",
|
|
111
|
+
class: ["v-batch-input", l.value && !n.value && "is--value"]
|
|
112
112
|
}, m.$attrs), {
|
|
113
|
-
suffix:
|
|
113
|
+
suffix: g(() => [
|
|
114
114
|
_[6] || (_[6] = d("svg", {
|
|
115
115
|
class: "v-batch-input-icon",
|
|
116
116
|
width: "14px",
|
|
@@ -144,11 +144,11 @@ const $e = { class: "v-popover-handle" }, Pe = {
|
|
|
144
144
|
d: "M670.72 449.097143a192.365714 192.365714 0 1 0 191.634286 192.365714 192.365714 192.365714 0 0 0-191.634286-192.365714z m0 320.365714a128 128 0 1 1 128-128 128 128 0 0 1-128 128z"
|
|
145
145
|
})
|
|
146
146
|
], -1)),
|
|
147
|
-
(
|
|
147
|
+
(p(), y("svg", {
|
|
148
148
|
class: "v-batch-input-clear",
|
|
149
|
-
onMouseenter: _[0] || (_[0] = (
|
|
150
|
-
onMouseleave: _[1] || (_[1] = (
|
|
151
|
-
onClick:
|
|
149
|
+
onMouseenter: _[0] || (_[0] = (k) => c.value = !0),
|
|
150
|
+
onMouseleave: _[1] || (_[1] = (k) => c.value = !1),
|
|
151
|
+
onClick: j,
|
|
152
152
|
t: "1731313372920",
|
|
153
153
|
viewBox: "0 0 1024 1024",
|
|
154
154
|
version: "1.1",
|
|
@@ -177,22 +177,22 @@ const $e = { class: "v-popover-handle" }, Pe = {
|
|
|
177
177
|
_: 1
|
|
178
178
|
}, 16, ["modelValue", "placeholder", "class"])
|
|
179
179
|
]),
|
|
180
|
-
default:
|
|
181
|
-
d("div",
|
|
182
|
-
|
|
180
|
+
default: g(() => [
|
|
181
|
+
d("div", Be, [
|
|
182
|
+
h(z, {
|
|
183
183
|
ref_key: "inputRef",
|
|
184
|
-
ref:
|
|
185
|
-
modelValue:
|
|
186
|
-
"onUpdate:modelValue": _[3] || (_[3] = (
|
|
184
|
+
ref: i,
|
|
185
|
+
modelValue: s.value,
|
|
186
|
+
"onUpdate:modelValue": _[3] || (_[3] = (k) => s.value = k),
|
|
187
187
|
rows: 12,
|
|
188
188
|
placeholder: `一行一个(最多支持${e.rows}行)`,
|
|
189
189
|
type: "textarea",
|
|
190
190
|
style: { width: "100%" },
|
|
191
191
|
onBlur: P
|
|
192
192
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
193
|
-
|
|
194
|
-
value:
|
|
195
|
-
onClear:
|
|
193
|
+
h(je, {
|
|
194
|
+
value: s.value,
|
|
195
|
+
onClear: j,
|
|
196
196
|
onClose: C,
|
|
197
197
|
onSubmit: L
|
|
198
198
|
}, null, 8, ["value"])
|
|
@@ -203,30 +203,30 @@ const $e = { class: "v-popover-handle" }, Pe = {
|
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
|
-
|
|
207
|
-
e.component("VBatchInput",
|
|
206
|
+
Z.install = (e) => {
|
|
207
|
+
e.component("VBatchInput", Z);
|
|
208
208
|
};
|
|
209
|
-
const
|
|
209
|
+
const Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
210
210
|
__proto__: null,
|
|
211
|
-
default:
|
|
212
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
211
|
+
default: Z
|
|
212
|
+
}, Symbol.toStringTag, { value: "Module" })), I = /* @__PURE__ */ q({
|
|
213
213
|
__name: "index",
|
|
214
214
|
setup(e) {
|
|
215
|
-
return (
|
|
216
|
-
default:
|
|
217
|
-
|
|
215
|
+
return (a, o) => (p(), V(b(K), M(a.$attrs, { size: "small" }), {
|
|
216
|
+
default: g(() => [
|
|
217
|
+
w(a.$slots, "default")
|
|
218
218
|
]),
|
|
219
219
|
_: 3
|
|
220
220
|
}, 16));
|
|
221
221
|
}
|
|
222
222
|
});
|
|
223
|
-
|
|
224
|
-
e.component("VButton",
|
|
223
|
+
I.install = (e) => {
|
|
224
|
+
e.component("VButton", I);
|
|
225
225
|
};
|
|
226
|
-
const
|
|
226
|
+
const Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
227
227
|
__proto__: null,
|
|
228
|
-
default:
|
|
229
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
228
|
+
default: I
|
|
229
|
+
}, Symbol.toStringTag, { value: "Module" })), J = /* @__PURE__ */ q({
|
|
230
230
|
__name: "index",
|
|
231
231
|
props: {
|
|
232
232
|
title: { type: String, default: "提示" },
|
|
@@ -234,57 +234,57 @@ const Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
234
234
|
loading: { type: Boolean, default: !1 }
|
|
235
235
|
},
|
|
236
236
|
emits: ["close", "save", "open"],
|
|
237
|
-
setup(e, { expose:
|
|
238
|
-
const
|
|
237
|
+
setup(e, { expose: a, emit: o }) {
|
|
238
|
+
const r = o, t = x(!1), n = () => {
|
|
239
239
|
t.value = !0;
|
|
240
|
-
},
|
|
241
|
-
t.value = !1,
|
|
242
|
-
},
|
|
243
|
-
|
|
244
|
-
},
|
|
245
|
-
|
|
240
|
+
}, c = () => {
|
|
241
|
+
t.value = !1, r("close");
|
|
242
|
+
}, i = () => {
|
|
243
|
+
c();
|
|
244
|
+
}, s = () => {
|
|
245
|
+
r("save");
|
|
246
246
|
};
|
|
247
|
-
return
|
|
247
|
+
return a({ open: n, close: c }), (l, u) => {
|
|
248
248
|
const C = N("el-button"), P = N("el-dialog");
|
|
249
|
-
return
|
|
249
|
+
return p(), V(P, M({
|
|
250
250
|
modelValue: t.value,
|
|
251
|
-
"onUpdate:modelValue":
|
|
251
|
+
"onUpdate:modelValue": u[0] || (u[0] = (j) => t.value = j),
|
|
252
252
|
width: "30%",
|
|
253
253
|
title: e.title,
|
|
254
254
|
"align-center": ""
|
|
255
|
-
},
|
|
255
|
+
}, l.$attrs, {
|
|
256
256
|
draggable: "",
|
|
257
257
|
"close-on-click-modal": !1,
|
|
258
|
-
onClose:
|
|
258
|
+
onClose: i,
|
|
259
259
|
class: "v-dialog"
|
|
260
260
|
}), {
|
|
261
|
-
footer:
|
|
262
|
-
e.disabled ?
|
|
261
|
+
footer: g(() => [
|
|
262
|
+
e.disabled ? H("", !0) : (p(), V(C, {
|
|
263
263
|
key: 0,
|
|
264
264
|
type: "primary",
|
|
265
265
|
loading: e.loading,
|
|
266
|
-
onClick:
|
|
266
|
+
onClick: s
|
|
267
267
|
}, {
|
|
268
|
-
default:
|
|
269
|
-
|
|
268
|
+
default: g(() => u[1] || (u[1] = [
|
|
269
|
+
S(" 确定 ")
|
|
270
270
|
])),
|
|
271
271
|
_: 1,
|
|
272
272
|
__: [1]
|
|
273
273
|
}, 8, ["loading"])),
|
|
274
|
-
|
|
274
|
+
h(C, {
|
|
275
275
|
disabled: e.loading,
|
|
276
|
-
onClick:
|
|
276
|
+
onClick: i
|
|
277
277
|
}, {
|
|
278
|
-
default:
|
|
279
|
-
|
|
278
|
+
default: g(() => u[2] || (u[2] = [
|
|
279
|
+
S(" 取消 ")
|
|
280
280
|
])),
|
|
281
281
|
_: 1,
|
|
282
282
|
__: [2]
|
|
283
283
|
}, 8, ["disabled"])
|
|
284
284
|
]),
|
|
285
|
-
default:
|
|
285
|
+
default: g(() => [
|
|
286
286
|
d("div", null, [
|
|
287
|
-
|
|
287
|
+
w(l.$slots, "content")
|
|
288
288
|
])
|
|
289
289
|
]),
|
|
290
290
|
_: 3
|
|
@@ -292,37 +292,37 @@ const Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
292
292
|
};
|
|
293
293
|
}
|
|
294
294
|
});
|
|
295
|
-
|
|
296
|
-
e.component("VGroup",
|
|
295
|
+
J.install = (e) => {
|
|
296
|
+
e.component("VGroup", J);
|
|
297
297
|
};
|
|
298
|
-
const
|
|
298
|
+
const Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
299
299
|
__proto__: null,
|
|
300
|
-
default:
|
|
301
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
300
|
+
default: J
|
|
301
|
+
}, Symbol.toStringTag, { value: "Module" })), te = (e, a) => {
|
|
302
302
|
const o = e.__vccOpts || e;
|
|
303
|
-
for (const [
|
|
304
|
-
o[
|
|
303
|
+
for (const [r, t] of a)
|
|
304
|
+
o[r] = t;
|
|
305
305
|
return o;
|
|
306
|
-
},
|
|
307
|
-
function qe(e,
|
|
308
|
-
return
|
|
309
|
-
|
|
306
|
+
}, Ae = {}, Te = { class: "v-group" };
|
|
307
|
+
function qe(e, a) {
|
|
308
|
+
return p(), y("div", Te, [
|
|
309
|
+
w(e.$slots, "default")
|
|
310
310
|
]);
|
|
311
311
|
}
|
|
312
|
-
const
|
|
313
|
-
|
|
314
|
-
e.component("VGroup",
|
|
312
|
+
const F = /* @__PURE__ */ te(Ae, [["render", qe]]);
|
|
313
|
+
F.install = (e) => {
|
|
314
|
+
e.component("VGroup", F);
|
|
315
315
|
};
|
|
316
|
-
const
|
|
316
|
+
const Re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
317
317
|
__proto__: null,
|
|
318
|
-
default:
|
|
318
|
+
default: F
|
|
319
319
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
320
320
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
321
|
-
var
|
|
321
|
+
var He = /* @__PURE__ */ q({
|
|
322
322
|
name: "ArrowLeftBold",
|
|
323
323
|
__name: "arrow-left-bold",
|
|
324
324
|
setup(e) {
|
|
325
|
-
return (
|
|
325
|
+
return (a, o) => (p(), y("svg", {
|
|
326
326
|
xmlns: "http://www.w3.org/2000/svg",
|
|
327
327
|
viewBox: "0 0 1024 1024"
|
|
328
328
|
}, [
|
|
@@ -332,11 +332,11 @@ var Re = /* @__PURE__ */ R({
|
|
|
332
332
|
})
|
|
333
333
|
]));
|
|
334
334
|
}
|
|
335
|
-
}),
|
|
335
|
+
}), Ue = He, Le = /* @__PURE__ */ q({
|
|
336
336
|
name: "ArrowRightBold",
|
|
337
337
|
__name: "arrow-right-bold",
|
|
338
338
|
setup(e) {
|
|
339
|
-
return (
|
|
339
|
+
return (a, o) => (p(), y("svg", {
|
|
340
340
|
xmlns: "http://www.w3.org/2000/svg",
|
|
341
341
|
viewBox: "0 0 1024 1024"
|
|
342
342
|
}, [
|
|
@@ -346,12 +346,12 @@ var Re = /* @__PURE__ */ R({
|
|
|
346
346
|
})
|
|
347
347
|
]));
|
|
348
348
|
}
|
|
349
|
-
}),
|
|
350
|
-
const
|
|
349
|
+
}), Ee = Le;
|
|
350
|
+
const We = {
|
|
351
351
|
key: 0,
|
|
352
352
|
class: "v-page__edit",
|
|
353
353
|
style: { background: "#fff" }
|
|
354
|
-
},
|
|
354
|
+
}, De = { class: "v-page__body-left" }, Y = {
|
|
355
355
|
__name: "index",
|
|
356
356
|
props: {
|
|
357
357
|
edit: { type: Boolean, default: !0 },
|
|
@@ -360,49 +360,49 @@ const De = {
|
|
|
360
360
|
// 可v-model绑定折叠状态
|
|
361
361
|
},
|
|
362
362
|
emits: ["update:modelCollapse"],
|
|
363
|
-
setup(e, { emit:
|
|
364
|
-
const o = e,
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
}),
|
|
368
|
-
|
|
363
|
+
setup(e, { emit: a }) {
|
|
364
|
+
const o = e, r = a, { modelCollapse: t } = he(o), n = x(t.value);
|
|
365
|
+
le(t, (i) => {
|
|
366
|
+
n.value = i;
|
|
367
|
+
}), le(n, (i) => {
|
|
368
|
+
r("update:modelCollapse", i);
|
|
369
369
|
});
|
|
370
|
-
const
|
|
371
|
-
|
|
370
|
+
const c = () => {
|
|
371
|
+
n.value = !n.value;
|
|
372
372
|
};
|
|
373
|
-
return (
|
|
374
|
-
const
|
|
375
|
-
return
|
|
373
|
+
return (i, s) => {
|
|
374
|
+
const l = N("el-button");
|
|
375
|
+
return p(), y("div", {
|
|
376
376
|
ref: "pageRef",
|
|
377
|
-
class:
|
|
377
|
+
class: xe(["v-page", { "is--full": !e.edit, "is--edit": e.edit }]),
|
|
378
378
|
style: T({ "--left-width": e.leftWidth })
|
|
379
379
|
}, [
|
|
380
|
-
e.edit ? (
|
|
381
|
-
|
|
382
|
-
])) : (
|
|
380
|
+
e.edit ? (p(), y("div", We, [
|
|
381
|
+
w(i.$slots, "default")
|
|
382
|
+
])) : (p(), y(pe, { key: 1 }, [
|
|
383
383
|
d("div", {
|
|
384
384
|
class: "v-page__body",
|
|
385
|
-
style: T({ paddingLeft:
|
|
385
|
+
style: T({ paddingLeft: n.value ? 0 : e.leftWidth })
|
|
386
386
|
}, [
|
|
387
|
-
U(d("div",
|
|
388
|
-
|
|
387
|
+
U(d("div", De, [
|
|
388
|
+
w(i.$slots, "left")
|
|
389
389
|
], 512), [
|
|
390
|
-
[
|
|
390
|
+
[Se, !n.value]
|
|
391
391
|
]),
|
|
392
392
|
d("div", {
|
|
393
393
|
class: "v-page__body-main",
|
|
394
|
-
style: T({ marginLeft:
|
|
394
|
+
style: T({ marginLeft: n.value ? 0 : "8px" })
|
|
395
395
|
}, [
|
|
396
|
-
|
|
396
|
+
w(i.$slots, "default")
|
|
397
397
|
], 4)
|
|
398
398
|
], 4),
|
|
399
399
|
d("div", {
|
|
400
400
|
class: "v-page__body-collapse",
|
|
401
|
-
style: T({ left:
|
|
402
|
-
onClick:
|
|
401
|
+
style: T({ left: n.value ? "0px" : e.leftWidth }),
|
|
402
|
+
onClick: c
|
|
403
403
|
}, [
|
|
404
|
-
|
|
405
|
-
icon:
|
|
404
|
+
h(l, {
|
|
405
|
+
icon: n.value ? b(Ee) : b(Ue),
|
|
406
406
|
type: "primary",
|
|
407
407
|
size: "small"
|
|
408
408
|
}, null, 8, ["icon"])
|
|
@@ -412,13 +412,13 @@ const De = {
|
|
|
412
412
|
};
|
|
413
413
|
}
|
|
414
414
|
};
|
|
415
|
-
|
|
416
|
-
e.component("VPage",
|
|
415
|
+
Y.install = (e) => {
|
|
416
|
+
e.component("VPage", Y);
|
|
417
417
|
};
|
|
418
|
-
const
|
|
418
|
+
const Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
419
419
|
__proto__: null,
|
|
420
|
-
default:
|
|
421
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
420
|
+
default: Y
|
|
421
|
+
}, Symbol.toStringTag, { value: "Module" })), Q = {
|
|
422
422
|
__name: "index",
|
|
423
423
|
props: {
|
|
424
424
|
modelValue: [String, Number, Array],
|
|
@@ -431,74 +431,98 @@ const Ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
431
431
|
placeholder: { type: String, default: "请选择" }
|
|
432
432
|
},
|
|
433
433
|
emits: ["update:modelValue"],
|
|
434
|
-
setup(e, { emit:
|
|
435
|
-
const o = e,
|
|
436
|
-
(
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
), a = B({
|
|
434
|
+
setup(e, { emit: a }) {
|
|
435
|
+
const o = e, r = a, t = O(() => !Array.isArray(o.options) || o.options.length === 0 ? [] : o.options.map((s) => {
|
|
436
|
+
if (typeof s != "object" || s === null) return null;
|
|
437
|
+
const l = s[o.labelKey] ?? "未命名选项", u = s[o.valueKey] ?? void 0;
|
|
438
|
+
return u != null ? { label: l, value: u } : null;
|
|
439
|
+
}).filter(Boolean)), n = O({
|
|
441
440
|
get: () => o.modelValue,
|
|
442
|
-
set: (
|
|
443
|
-
}),
|
|
441
|
+
set: (s) => r("update:modelValue", s)
|
|
442
|
+
}), c = O({
|
|
444
443
|
get: () => {
|
|
445
|
-
const
|
|
446
|
-
return
|
|
444
|
+
const s = Array.isArray(n.value) ? n.value : [], l = t.value.map((u) => u.value);
|
|
445
|
+
return l.length && l.every((u) => s.includes(u));
|
|
447
446
|
},
|
|
448
|
-
set: (
|
|
449
|
-
|
|
447
|
+
set: (s) => {
|
|
448
|
+
s ? r(
|
|
449
|
+
"update:modelValue",
|
|
450
|
+
t.value.map((l) => l.value)
|
|
451
|
+
) : r("update:modelValue", []);
|
|
450
452
|
}
|
|
451
|
-
}),
|
|
452
|
-
if (!
|
|
453
|
-
|
|
453
|
+
}), i = () => {
|
|
454
|
+
if (!c.value)
|
|
455
|
+
r("update:modelValue", []);
|
|
454
456
|
else {
|
|
455
|
-
const
|
|
456
|
-
|
|
457
|
+
const s = t.value.map((l) => l.value);
|
|
458
|
+
r("update:modelValue", s);
|
|
457
459
|
}
|
|
458
460
|
};
|
|
459
|
-
return (
|
|
460
|
-
|
|
461
|
-
|
|
461
|
+
return (s, l) => e.select ? (p(), V(b(ke), M({
|
|
462
|
+
key: 0,
|
|
463
|
+
modelValue: n.value,
|
|
464
|
+
"onUpdate:modelValue": l[1] || (l[1] = (u) => n.value = u),
|
|
465
|
+
placeholder: e.placeholder
|
|
466
|
+
}, s.$attrs, { options: t.value }), G({ _: 2 }, [
|
|
467
|
+
e.checkAll && t.value.length ? {
|
|
468
|
+
name: "header",
|
|
469
|
+
fn: g(() => [
|
|
470
|
+
h(b(re), {
|
|
471
|
+
modelValue: c.value,
|
|
472
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => c.value = u),
|
|
473
|
+
onChange: i
|
|
474
|
+
}, {
|
|
475
|
+
default: g(() => l[4] || (l[4] = [
|
|
476
|
+
S(" 全选 ")
|
|
477
|
+
])),
|
|
478
|
+
_: 1,
|
|
479
|
+
__: [4]
|
|
480
|
+
}, 8, ["modelValue"])
|
|
481
|
+
]),
|
|
482
|
+
key: "0"
|
|
483
|
+
} : void 0
|
|
484
|
+
]), 1040, ["modelValue", "placeholder", "options"])) : (p(), V(b(Ve), M({
|
|
485
|
+
key: 1,
|
|
486
|
+
modelValue: n.value,
|
|
487
|
+
"onUpdate:modelValue": l[3] || (l[3] = (u) => n.value = u),
|
|
462
488
|
placeholder: e.placeholder
|
|
463
|
-
},
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
label: i.label,
|
|
470
|
-
value: i.value
|
|
489
|
+
}, s.$attrs), G({
|
|
490
|
+
default: g(() => [
|
|
491
|
+
(p(!0), y(pe, null, ce(t.value, (u) => (p(), V(b(we), {
|
|
492
|
+
key: u.value,
|
|
493
|
+
label: u.label,
|
|
494
|
+
value: u.value
|
|
471
495
|
}, null, 8, ["label", "value"]))), 128))
|
|
472
496
|
]),
|
|
473
497
|
_: 2
|
|
474
498
|
}, [
|
|
475
499
|
e.checkAll && t.value.length ? {
|
|
476
500
|
name: "header",
|
|
477
|
-
fn:
|
|
478
|
-
|
|
479
|
-
modelValue:
|
|
480
|
-
"onUpdate:modelValue":
|
|
481
|
-
onChange:
|
|
501
|
+
fn: g(() => [
|
|
502
|
+
h(b(re), {
|
|
503
|
+
modelValue: c.value,
|
|
504
|
+
"onUpdate:modelValue": l[2] || (l[2] = (u) => c.value = u),
|
|
505
|
+
onChange: i
|
|
482
506
|
}, {
|
|
483
|
-
default:
|
|
484
|
-
|
|
507
|
+
default: g(() => l[5] || (l[5] = [
|
|
508
|
+
S(" 全选 ")
|
|
485
509
|
])),
|
|
486
510
|
_: 1,
|
|
487
|
-
__: [
|
|
511
|
+
__: [5]
|
|
488
512
|
}, 8, ["modelValue"])
|
|
489
513
|
]),
|
|
490
514
|
key: "0"
|
|
491
515
|
} : void 0
|
|
492
|
-
]), 1040, ["modelValue", "placeholder"
|
|
516
|
+
]), 1040, ["modelValue", "placeholder"]));
|
|
493
517
|
}
|
|
494
518
|
};
|
|
495
|
-
|
|
496
|
-
e.component("VSelect",
|
|
519
|
+
Q.install = (e) => {
|
|
520
|
+
e.component("VSelect", Q);
|
|
497
521
|
};
|
|
498
|
-
const
|
|
522
|
+
const Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
499
523
|
__proto__: null,
|
|
500
|
-
default:
|
|
501
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
524
|
+
default: Q
|
|
525
|
+
}, Symbol.toStringTag, { value: "Module" })), Ze = {
|
|
502
526
|
__name: "Pagination",
|
|
503
527
|
props: {
|
|
504
528
|
total: {
|
|
@@ -543,45 +567,45 @@ const Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
543
567
|
}
|
|
544
568
|
},
|
|
545
569
|
emits: ["update:pageNum", "update:pageSize", "change"],
|
|
546
|
-
setup(e, { emit:
|
|
547
|
-
const o = e,
|
|
570
|
+
setup(e, { emit: a }) {
|
|
571
|
+
const o = e, r = a, t = O({
|
|
548
572
|
get() {
|
|
549
573
|
return o.pageNum;
|
|
550
574
|
},
|
|
551
|
-
set(
|
|
552
|
-
|
|
575
|
+
set(i) {
|
|
576
|
+
r("update:pageNum", i);
|
|
553
577
|
}
|
|
554
|
-
}),
|
|
578
|
+
}), n = O({
|
|
555
579
|
get() {
|
|
556
580
|
return o.pageSize;
|
|
557
581
|
},
|
|
558
|
-
set(
|
|
559
|
-
|
|
582
|
+
set(i) {
|
|
583
|
+
r("update:pageSize", i);
|
|
560
584
|
}
|
|
561
585
|
});
|
|
562
|
-
function
|
|
563
|
-
|
|
586
|
+
function c({ type: i, currentPage: s, pageSize: l, $event: u }) {
|
|
587
|
+
r("change", { type: i, pageNum: s, pageSize: l, $event: u });
|
|
564
588
|
}
|
|
565
|
-
return (
|
|
589
|
+
return (i, s) => (p(), V(b($e), {
|
|
566
590
|
background: e.background,
|
|
567
591
|
"current-page": t.value,
|
|
568
|
-
"onUpdate:currentPage":
|
|
569
|
-
"page-size":
|
|
570
|
-
"onUpdate:pageSize":
|
|
592
|
+
"onUpdate:currentPage": s[0] || (s[0] = (l) => t.value = l),
|
|
593
|
+
"page-size": n.value,
|
|
594
|
+
"onUpdate:pageSize": s[1] || (s[1] = (l) => n.value = l),
|
|
571
595
|
layouts: e.layouts,
|
|
572
596
|
"page-sizes": e.pageSizes,
|
|
573
597
|
"pager-count": e.pagerCount,
|
|
574
598
|
total: e.total,
|
|
575
|
-
onPageChange:
|
|
599
|
+
onPageChange: c
|
|
576
600
|
}, null, 8, ["background", "current-page", "page-size", "layouts", "page-sizes", "pager-count", "total"]));
|
|
577
601
|
}
|
|
578
|
-
},
|
|
602
|
+
}, Ie = /* @__PURE__ */ te(Ze, [["__scopeId", "data-v-242732de"]]), Je = {
|
|
579
603
|
key: 0,
|
|
580
604
|
class: "vx-table__form"
|
|
581
|
-
},
|
|
605
|
+
}, Fe = { class: "vx-table__form-content" }, Ye = { class: "vx-table__form-handle" }, Qe = { class: "v-pagination-container" }, Xe = {
|
|
582
606
|
key: 0,
|
|
583
607
|
class: "v-text-title"
|
|
584
|
-
},
|
|
608
|
+
}, et = { style: { color: "var(--base-text-color)" } }, X = /* @__PURE__ */ q({
|
|
585
609
|
__name: "index",
|
|
586
610
|
props: {
|
|
587
611
|
pageHidden: {}
|
|
@@ -592,58 +616,58 @@ const Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
592
616
|
"checkbox-change",
|
|
593
617
|
"checkbox-all"
|
|
594
618
|
],
|
|
595
|
-
setup(e, { emit:
|
|
596
|
-
const o =
|
|
619
|
+
setup(e, { emit: a }) {
|
|
620
|
+
const o = x(null), r = x(null), t = x(), n = x(0), c = x(0), i = x(400), s = oe({}), l = x(0), u = Object.assign({}, ze(), {
|
|
597
621
|
toolbarConfig: {
|
|
598
622
|
slots: {
|
|
599
623
|
buttons: "toolbar_buttons"
|
|
600
624
|
}
|
|
601
625
|
}
|
|
602
|
-
}), C = Object.keys(Ce()), P =
|
|
603
|
-
function
|
|
626
|
+
}), C = Object.keys(Ce()), P = a;
|
|
627
|
+
function j() {
|
|
604
628
|
P("query");
|
|
605
629
|
}
|
|
606
630
|
function L() {
|
|
607
631
|
}
|
|
608
|
-
const { pageSize: m, pageNum: _ } =
|
|
632
|
+
const { pageSize: m, pageNum: _ } = u.pagerConfig || {}, z = oe({
|
|
609
633
|
pageSize: m || 20,
|
|
610
634
|
pageNum: _ || 1,
|
|
611
635
|
total: 0
|
|
612
|
-
}),
|
|
613
|
-
var
|
|
614
|
-
|
|
636
|
+
}), E = ({ type: f, pageNum: v, pageSize: A }) => {
|
|
637
|
+
var B;
|
|
638
|
+
f === "current" && (isChange.value = !0), z.pageNum = f === "size" ? 1 : v, z.pageSize = A, (B = t == null ? void 0 : t.value) == null || B.commitProxy("query");
|
|
615
639
|
};
|
|
616
|
-
function
|
|
617
|
-
|
|
640
|
+
function k({ records: f }) {
|
|
641
|
+
l.value = f.length, P("checkbox-change", f);
|
|
618
642
|
}
|
|
619
|
-
function ge({ records:
|
|
620
|
-
|
|
643
|
+
function ge({ records: f }) {
|
|
644
|
+
l.value = f.length, P("checkbox-all", f);
|
|
621
645
|
}
|
|
622
|
-
function ve(
|
|
623
|
-
|
|
646
|
+
function ve(f) {
|
|
647
|
+
n.value = f.offsetHeight;
|
|
624
648
|
}
|
|
625
|
-
function
|
|
626
|
-
|
|
649
|
+
function me(f) {
|
|
650
|
+
c.value = f.offsetHeight, W();
|
|
627
651
|
}
|
|
628
|
-
function
|
|
629
|
-
|
|
652
|
+
function _e() {
|
|
653
|
+
ue(() => {
|
|
630
654
|
W();
|
|
631
655
|
});
|
|
632
656
|
}
|
|
633
657
|
function W() {
|
|
634
|
-
const
|
|
635
|
-
if (!
|
|
636
|
-
const
|
|
637
|
-
|
|
658
|
+
const f = o.value, v = r.value;
|
|
659
|
+
if (!f || !v) return;
|
|
660
|
+
const A = f.getBoundingClientRect(), B = v.getBoundingClientRect(), D = A.height - (B.top - A.top);
|
|
661
|
+
i.value = D;
|
|
638
662
|
}
|
|
639
|
-
function
|
|
640
|
-
|
|
663
|
+
function be() {
|
|
664
|
+
ue(() => {
|
|
641
665
|
W();
|
|
642
666
|
});
|
|
643
667
|
}
|
|
644
|
-
return (
|
|
645
|
-
const
|
|
646
|
-
return U((
|
|
668
|
+
return (f, v) => {
|
|
669
|
+
const A = N("vxe-grid"), B = ae("dom-resize"), D = ae("dom-load");
|
|
670
|
+
return U((p(), y("div", {
|
|
647
671
|
ref_key: "tableRef",
|
|
648
672
|
ref: o,
|
|
649
673
|
class: "vx-table"
|
|
@@ -651,30 +675,36 @@ const Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
651
675
|
d("div", {
|
|
652
676
|
class: "vx-table__header",
|
|
653
677
|
style: T({
|
|
654
|
-
height: `${
|
|
678
|
+
height: `${n.value ? c.value - n.value + "px" : "auto"}`
|
|
655
679
|
})
|
|
656
680
|
}, [
|
|
657
|
-
U((
|
|
658
|
-
style: T({ transform: `translateY(${-
|
|
681
|
+
U((p(), y("div", {
|
|
682
|
+
style: T({ transform: `translateY(${-n.value + "px"})` })
|
|
659
683
|
}, [
|
|
660
|
-
|
|
661
|
-
d("div",
|
|
662
|
-
|
|
663
|
-
d("div",
|
|
664
|
-
|
|
665
|
-
|
|
684
|
+
b(C).includes("form") ? (p(), y("div", Je, [
|
|
685
|
+
d("div", Fe, [
|
|
686
|
+
w(f.$slots, "form", ne(se({ form: s }))),
|
|
687
|
+
d("div", Ye, [
|
|
688
|
+
w(f.$slots, "form_handle", {}, () => [
|
|
689
|
+
h(b(K), {
|
|
666
690
|
type: "primary",
|
|
667
|
-
|
|
691
|
+
icon: "Search",
|
|
692
|
+
size: "small",
|
|
693
|
+
onClick: j
|
|
668
694
|
}, {
|
|
669
|
-
default:
|
|
670
|
-
|
|
695
|
+
default: g(() => v[2] || (v[2] = [
|
|
696
|
+
S("查询")
|
|
671
697
|
])),
|
|
672
698
|
_: 1,
|
|
673
699
|
__: [2]
|
|
674
700
|
}),
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
701
|
+
h(b(K), {
|
|
702
|
+
icon: "Refresh",
|
|
703
|
+
size: "small",
|
|
704
|
+
onClick: L
|
|
705
|
+
}, {
|
|
706
|
+
default: g(() => v[3] || (v[3] = [
|
|
707
|
+
S("重置")
|
|
678
708
|
])),
|
|
679
709
|
_: 1,
|
|
680
710
|
__: [3]
|
|
@@ -682,50 +712,50 @@ const Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
682
712
|
])
|
|
683
713
|
])
|
|
684
714
|
])
|
|
685
|
-
])) :
|
|
715
|
+
])) : H("", !0)
|
|
686
716
|
], 4)), [
|
|
687
|
-
[
|
|
717
|
+
[B, ve]
|
|
688
718
|
]),
|
|
689
719
|
v[4] || (v[4] = d("div", { class: "vx-table__border" }, null, -1))
|
|
690
720
|
], 4),
|
|
691
|
-
U((
|
|
721
|
+
U((p(), y("div", {
|
|
692
722
|
ref_key: "contentRef",
|
|
693
|
-
ref:
|
|
723
|
+
ref: r,
|
|
694
724
|
class: "vx-table__content"
|
|
695
725
|
}, [
|
|
696
|
-
|
|
726
|
+
h(A, M({
|
|
697
727
|
ref_key: "gridRef",
|
|
698
728
|
ref: t
|
|
699
|
-
},
|
|
700
|
-
height:
|
|
701
|
-
onResizableChange:
|
|
702
|
-
onCheckboxChange:
|
|
729
|
+
}, b(u), {
|
|
730
|
+
height: i.value,
|
|
731
|
+
onResizableChange: be,
|
|
732
|
+
onCheckboxChange: k,
|
|
703
733
|
onCheckboxAll: ge
|
|
704
|
-
}),
|
|
705
|
-
ce(
|
|
706
|
-
name:
|
|
707
|
-
fn:
|
|
708
|
-
|
|
734
|
+
}), G({ _: 2 }, [
|
|
735
|
+
ce(b(C).filter(($) => !["form"].includes($)), ($) => ({
|
|
736
|
+
name: $,
|
|
737
|
+
fn: g((ye) => [
|
|
738
|
+
w(f.$slots, $, ne(se(ye)))
|
|
709
739
|
])
|
|
710
740
|
})),
|
|
711
|
-
|
|
741
|
+
f.pageHidden ? void 0 : {
|
|
712
742
|
name: "pager",
|
|
713
|
-
fn:
|
|
714
|
-
d("div",
|
|
743
|
+
fn: g(() => [
|
|
744
|
+
d("div", Qe, [
|
|
715
745
|
d("div", null, [
|
|
716
|
-
|
|
717
|
-
v[5] || (v[5] =
|
|
718
|
-
d("span",
|
|
719
|
-
v[6] || (v[6] =
|
|
720
|
-
])) :
|
|
746
|
+
l.value ? (p(), y("span", Xe, [
|
|
747
|
+
v[5] || (v[5] = S(" 已选中 ")),
|
|
748
|
+
d("span", et, R(l.value), 1),
|
|
749
|
+
v[6] || (v[6] = S(" 条 "))
|
|
750
|
+
])) : H("", !0)
|
|
721
751
|
]),
|
|
722
|
-
|
|
723
|
-
pageSize:
|
|
724
|
-
"onUpdate:pageSize": v[0] || (v[0] = (
|
|
725
|
-
pageNum:
|
|
726
|
-
"onUpdate:pageNum": v[1] || (v[1] = (
|
|
727
|
-
total:
|
|
728
|
-
onChange:
|
|
752
|
+
f.pageHidden ? H("", !0) : (p(), V(Ie, M({ key: 0 }, b(u).pagerConfig, {
|
|
753
|
+
pageSize: z.pageSize,
|
|
754
|
+
"onUpdate:pageSize": v[0] || (v[0] = ($) => z.pageSize = $),
|
|
755
|
+
pageNum: z.pageNum,
|
|
756
|
+
"onUpdate:pageNum": v[1] || (v[1] = ($) => z.pageNum = $),
|
|
757
|
+
total: z.total,
|
|
758
|
+
onChange: E
|
|
729
759
|
}), null, 16, ["pageSize", "pageNum", "total"]))
|
|
730
760
|
])
|
|
731
761
|
]),
|
|
@@ -733,79 +763,79 @@ const Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
733
763
|
}
|
|
734
764
|
]), 1040, ["height"])
|
|
735
765
|
])), [
|
|
736
|
-
[
|
|
766
|
+
[D, _e]
|
|
737
767
|
])
|
|
738
768
|
])), [
|
|
739
|
-
[
|
|
769
|
+
[B, me]
|
|
740
770
|
]);
|
|
741
771
|
};
|
|
742
772
|
}
|
|
743
773
|
});
|
|
744
|
-
|
|
745
|
-
e.component("VTable",
|
|
774
|
+
X.install = (e) => {
|
|
775
|
+
e.component("VTable", X);
|
|
746
776
|
};
|
|
747
|
-
const
|
|
777
|
+
const tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
748
778
|
__proto__: null,
|
|
749
|
-
default:
|
|
750
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
751
|
-
function
|
|
752
|
-
return
|
|
779
|
+
default: X
|
|
780
|
+
}, Symbol.toStringTag, { value: "Module" })), lt = {};
|
|
781
|
+
function ot(e, a) {
|
|
782
|
+
return p(), y("div", null, "1111");
|
|
753
783
|
}
|
|
754
|
-
const
|
|
755
|
-
|
|
756
|
-
e.component("VTablePro",
|
|
784
|
+
const ee = /* @__PURE__ */ te(lt, [["render", ot]]);
|
|
785
|
+
ee.install = (e) => {
|
|
786
|
+
e.component("VTablePro", ee);
|
|
757
787
|
};
|
|
758
|
-
const
|
|
788
|
+
const at = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
759
789
|
__proto__: null,
|
|
760
|
-
default:
|
|
761
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
762
|
-
function
|
|
763
|
-
for (const
|
|
764
|
-
const o =
|
|
790
|
+
default: ee
|
|
791
|
+
}, Symbol.toStringTag, { value: "Module" })), ie = /* @__PURE__ */ Object.assign({ "./BatchInput/index.ts": Oe, "./Button/index.ts": Ne, "./Dialog/index.ts": Me, "./Group/index.ts": Re, "./Page/index.ts": Ge, "./Select/index.ts": Ke, "./Table/index.ts": tt, "./TablePro/index.ts": at });
|
|
792
|
+
function nt(e) {
|
|
793
|
+
for (const a in ie) {
|
|
794
|
+
const o = ie[a].default, r = a.split("/")[1], t = r.charAt(0).toUpperCase() + r.slice(1);
|
|
765
795
|
e.component(`V${t}`, o);
|
|
766
796
|
}
|
|
767
797
|
}
|
|
768
|
-
const
|
|
769
|
-
mounted(e,
|
|
770
|
-
const o =
|
|
771
|
-
o && o(
|
|
798
|
+
const st = {
|
|
799
|
+
mounted(e, a) {
|
|
800
|
+
const o = a.value, r = e.getBoundingClientRect();
|
|
801
|
+
o && o(r, e);
|
|
772
802
|
}
|
|
773
|
-
},
|
|
803
|
+
}, ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
774
804
|
__proto__: null,
|
|
775
|
-
default:
|
|
776
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
777
|
-
for (const
|
|
778
|
-
const o =
|
|
779
|
-
o && o(
|
|
805
|
+
default: st
|
|
806
|
+
}, Symbol.toStringTag, { value: "Module" })), fe = /* @__PURE__ */ new WeakMap(), de = new ResizeObserver((e) => {
|
|
807
|
+
for (const a of e) {
|
|
808
|
+
const o = fe.get(a.target);
|
|
809
|
+
o && o(a.contentRect, a.target);
|
|
780
810
|
}
|
|
781
|
-
}),
|
|
782
|
-
mounted(e,
|
|
783
|
-
|
|
811
|
+
}), rt = {
|
|
812
|
+
mounted(e, a) {
|
|
813
|
+
fe.set(e, a.value), de.observe(e);
|
|
784
814
|
},
|
|
785
815
|
unmounted(e) {
|
|
786
|
-
|
|
816
|
+
de.unobserve(e);
|
|
787
817
|
}
|
|
788
|
-
},
|
|
818
|
+
}, it = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
789
819
|
__proto__: null,
|
|
790
|
-
default:
|
|
791
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
792
|
-
function
|
|
793
|
-
for (const [
|
|
794
|
-
const
|
|
795
|
-
if (
|
|
820
|
+
default: rt
|
|
821
|
+
}, Symbol.toStringTag, { value: "Module" })), dt = /* @__PURE__ */ Object.assign({ "./dom-load/index.ts": ut, "./dom-resize/index.ts": it });
|
|
822
|
+
function pt(e) {
|
|
823
|
+
for (const [a, o] of Object.entries(dt)) {
|
|
824
|
+
const r = a.replace("./", "").replace("/index.ts", "");
|
|
825
|
+
if (r) {
|
|
796
826
|
const t = o.default;
|
|
797
|
-
e.directive(
|
|
827
|
+
e.directive(r, t);
|
|
798
828
|
}
|
|
799
829
|
}
|
|
800
830
|
}
|
|
801
|
-
const ct = (e,
|
|
802
|
-
|
|
803
|
-
},
|
|
831
|
+
const ct = (e, a) => {
|
|
832
|
+
pt(e), nt(e);
|
|
833
|
+
}, mt = {
|
|
804
834
|
install: ct
|
|
805
835
|
};
|
|
806
836
|
export {
|
|
807
|
-
|
|
837
|
+
mt as default,
|
|
808
838
|
ct as install,
|
|
809
|
-
|
|
810
|
-
|
|
839
|
+
nt as registerComponents,
|
|
840
|
+
pt as registerDirectives
|
|
811
841
|
};
|
package/dist/xbd-vui.umd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(_,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus"),require("vxe-table")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","vxe-table"],e):(_=typeof globalThis<"u"?globalThis:_||self,e(_.XBDVUI={},_.Vue,_.ElementPlus,_.VXETable))})(this,function(_,e,
|
|
2
|
-
`).length:0)+" 个",1),e.createVNode(
|
|
1
|
+
(function(_,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus"),require("vxe-table")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","vxe-table"],e):(_=typeof globalThis<"u"?globalThis:_||self,e(_.XBDVUI={},_.Vue,_.ElementPlus,_.VXETable))})(this,function(_,e,V,G){"use strict";const I={class:"v-popover-handle"},K={__name:"Handle",props:{value:{type:String,default:""},submitText:{type:String,default:"搜索"},closeText:{type:String,default:"关闭"}},emits:["close","submit","clear"],setup(t,{emit:a}){const n=a;return(d,l)=>{const r=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",I,[e.createVNode(r,{size:"small",onClick:l[0]||(l[0]=p=>n("clear"))},{default:e.withCtx(()=>l[3]||(l[3]=[e.createTextVNode("清空")])),_:1,__:[3]}),e.createElementVNode("div",null,"共 "+e.toDisplayString(t.value?t.value.split(`
|
|
2
|
+
`).length:0)+" 个",1),e.createVNode(r,{size:"small",class:"v-popover-handle-right",onClick:l[1]||(l[1]=p=>n("close"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.closeText),1)]),_:1}),e.createVNode(r,{size:"small",type:"primary",onClick:l[2]||(l[2]=p=>n("submit"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.submitText),1)]),_:1})])}}},Z={class:"v-batch-input-wrapper"},N={__name:"index",props:{modelValue:{type:String,default:()=>""},rows:{type:[Number,String],default:()=>200}},emits:["update:modelValue","search"],setup(t,{expose:a,emit:n}){const d=t,l=n,r=e.ref(!1),p=e.ref(!1),c=e.ref(),s=e.computed({get(){var u;return((u=d.modelValue)==null?void 0:u.replaceAll(",",`
|
|
3
3
|
`))||""},set(u){l("update:modelValue",(u==null?void 0:u.split(`
|
|
4
|
-
`).join(","))||"")}}),
|
|
5
|
-
`).filter(Boolean).join(","))||""}),
|
|
6
|
-
`).filter(Boolean).slice(0,s.rows).join(","))||"")},k=()=>{i.value=""},M=()=>{h(),l("search")};return o({clear:k}),(u,g)=>{const b=e.resolveComponent("el-input"),v=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(v,{visible:a.value,"onUpdate:visible":g[4]||(g[4]=y=>a.value=y),disabled:m.value,trigger:"click",placement:"bottom-end",width:"405px",offset:2,"show-arrow":!1,onShow:c,onHide:h},{reference:e.withCtx(()=>[e.createVNode(b,e.mergeProps({modelValue:r.value,"onUpdate:modelValue":g[2]||(g[2]=y=>r.value=y),placeholder:u.$attrs.placeholder||"请输入",class:["v-batch-input",r.value&&!a.value&&"is--value"]},u.$attrs),{suffix:e.withCtx(()=>[g[6]||(g[6]=e.createElementVNode("svg",{class:"v-batch-input-icon",width:"14px",height:"14.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{fill:"#909399",d:"M765.932181 720.345605m22.756717 22.756717l226.015571 226.015571q22.756717 22.756717 0 45.513433l0 0q-22.756717 22.756717-45.513433 0l-226.015571-226.015571q-22.756717-22.756717 0-45.513433l0 0q22.756717-22.756717 45.513433 0Z"}),e.createElementVNode("path",{fill:"#909399",d:"M192.365714 236.982857m32.182857 0l575.634286 0q32.182857 0 32.182857 32.182857l0 0q0 32.182857-32.182857 32.182857l-575.634286 0q-32.182857 0-32.182857-32.182857l0 0q0-32.182857 32.182857-32.182857Z"}),e.createElementVNode("path",{fill:"#909399",d:"M192.365714 479.817143m32.182857 0l191.634286 0q32.182857 0 32.182857 32.182857l0-0.731429q0 32.182857-32.182857 32.182858l-191.634286 0q-32.182857 0-32.182857-32.182858l0 0.731429q0-32.182857 32.182857-32.182857Z"}),e.createElementVNode("path",{fill:"#909399",d:"M192.365714 722.651429m32.182857 0l63.634286 0q32.182857 0 32.182857 32.182857l0-0.731429q0 32.182857-32.182857 32.182857l-63.634286 0q-32.182857 0-32.182857-32.182857l0 0.731429q0-32.182857 32.182857-32.182857Z"}),e.createElementVNode("path",{fill:"#909399",d:"M896 0H128A128 128 0 0 0 0 128v768A128 128 0 0 0 128 1024h576.365714v-63.634286H128a64.365714 64.365714 0 0 1-63.634286-64.365714V128a63.634286 63.634286 0 0 1 63.634286-63.634286h768a64.365714 64.365714 0 0 1 64.365714 63.634286v448.365714H1024V128A128 128 0 0 0 896 0z"}),e.createElementVNode("path",{fill:"#909399",d:"M670.72 449.097143a192.365714 192.365714 0 1 0 191.634286 192.365714 192.365714 192.365714 0 0 0-191.634286-192.365714z m0 320.365714a128 128 0 1 1 128-128 128 128 0 0 1-128 128z"})],-1)),(e.openBlock(),e.createElementBlock("svg",{class:"v-batch-input-clear",onMouseenter:g[0]||(g[0]=y=>m.value=!0),onMouseleave:g[1]||(g[1]=y=>m.value=!1),onClick:k,t:"1731313372920",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3649",width:"19",height:"19"},g[5]||(g[5]=[e.createElementVNode("path",{d:"M512 96a416 416 0 1 1 0 832 416 416 0 0 1 0-832z m0 64a352 352 0 1 0 0 704 352 352 0 0 0 0-704z","p-id":"3650",fill:"currentColor"},null,-1),e.createElementVNode("path",{d:"M365.12 387.328a32 32 0 0 1 44.864-45.248l4.096 4.032 244.8 290.56a32 32 0 0 1-44.864 45.248l-4.096-4.032-244.8-290.56z","p-id":"3651",fill:"currentColor"},null,-1),e.createElementVNode("path",{d:"M365.12 636.672a32 32 0 0 0 44.864 45.248l4.096-4.032 244.8-290.56a32 32 0 0 0-44.864-45.248l-4.096 4.032-244.8 290.56z","p-id":"3652",fill:"currentColor"},null,-1)]),32))]),_:1},16,["modelValue","placeholder","class"])]),default:e.withCtx(()=>[e.createElementVNode("div",Z,[e.createVNode(b,{ref_key:"inputRef",ref:d,modelValue:i.value,"onUpdate:modelValue":g[3]||(g[3]=y=>i.value=y),rows:12,placeholder:`一行一个(最多支持${t.rows}行)`,type:"textarea",style:{width:"100%"},onBlur:x},null,8,["modelValue","placeholder"]),e.createVNode(K,{value:i.value,onClear:k,onClose:h,onSubmit:M},null,8,["value"])])]),_:1},8,["visible","disabled"])}}};B.install=t=>{t.component("VBatchInput",B)};const F=Object.freeze(Object.defineProperty({__proto__:null,default:B},Symbol.toStringTag,{value:"Module"})),w=e.defineComponent({__name:"index",setup(t){return(o,n)=>(e.openBlock(),e.createBlock(e.unref(N.ElButton),e.mergeProps(o.$attrs,{size:"small"}),{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},16))}});w.install=t=>{t.component("VButton",w)};const J=Object.freeze(Object.defineProperty({__proto__:null,default:w},Symbol.toStringTag,{value:"Module"})),z=e.defineComponent({__name:"index",props:{title:{type:String,default:"提示"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["close","save","open"],setup(t,{expose:o,emit:n}){const s=n,l=e.ref(!1),a=()=>{l.value=!0},m=()=>{l.value=!1,s("close")},d=()=>{m()},i=()=>{s("save")};return o({open:a,close:m}),(r,c)=>{const h=e.resolveComponent("el-button"),x=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(x,e.mergeProps({modelValue:l.value,"onUpdate:modelValue":c[0]||(c[0]=k=>l.value=k),width:"30%",title:t.title,"align-center":""},r.$attrs,{draggable:"","close-on-click-modal":!1,onClose:d,class:"v-dialog"}),{footer:e.withCtx(()=>[t.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(h,{key:0,type:"primary",loading:t.loading,onClick:i},{default:e.withCtx(()=>c[1]||(c[1]=[e.createTextVNode(" 确定 ")])),_:1,__:[1]},8,["loading"])),e.createVNode(h,{disabled:t.loading,onClick:d},{default:e.withCtx(()=>c[2]||(c[2]=[e.createTextVNode(" 取消 ")])),_:1,__:[2]},8,["disabled"])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(r.$slots,"content")])]),_:3},16,["modelValue","title"])}}});z.install=t=>{t.component("VGroup",z)};const X=Object.freeze(Object.defineProperty({__proto__:null,default:z},Symbol.toStringTag,{value:"Module"})),E=(t,o)=>{const n=t.__vccOpts||t;for(const[s,l]of o)n[s]=l;return n},Y={},Q={class:"v-group"};function ee(t,o){return e.openBlock(),e.createElementBlock("div",Q,[e.renderSlot(t.$slots,"default")])}const $=E(Y,[["render",ee]]);$.install=t=>{t.component("VGroup",$)};const te=Object.freeze(Object.defineProperty({__proto__:null,default:$},Symbol.toStringTag,{value:"Module"}));/*! Element Plus Icons Vue v2.3.1 */var le=e.defineComponent({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"})]))}}),oe=le,ne=e.defineComponent({name:"ArrowRightBold",__name:"arrow-right-bold",setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"})]))}}),ae=ne;const re={key:0,class:"v-page__edit",style:{background:"#fff"}},se={class:"v-page__body-left"},T={__name:"index",props:{edit:{type:Boolean,default:!0},leftWidth:{type:String,default:"240px"},modelCollapse:{type:Boolean,default:!1}},emits:["update:modelCollapse"],setup(t,{emit:o}){const n=t,s=o,{modelCollapse:l}=e.toRefs(n),a=e.ref(l.value);e.watch(l,d=>{a.value=d}),e.watch(a,d=>{s("update:modelCollapse",d)});const m=()=>{a.value=!a.value};return(d,i)=>{const r=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",{ref:"pageRef",class:e.normalizeClass(["v-page",{"is--full":!t.edit,"is--edit":t.edit}]),style:e.normalizeStyle({"--left-width":t.leftWidth})},[t.edit?(e.openBlock(),e.createElementBlock("div",re,[e.renderSlot(d.$slots,"default")])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",{class:"v-page__body",style:e.normalizeStyle({paddingLeft:a.value?0:t.leftWidth})},[e.withDirectives(e.createElementVNode("div",se,[e.renderSlot(d.$slots,"left")],512),[[e.vShow,!a.value]]),e.createElementVNode("div",{class:"v-page__body-main",style:e.normalizeStyle({marginLeft:a.value?0:"8px"})},[e.renderSlot(d.$slots,"default")],4)],4),e.createElementVNode("div",{class:"v-page__body-collapse",style:e.normalizeStyle({left:a.value?"0px":t.leftWidth}),onClick:m},[e.createVNode(r,{icon:a.value?e.unref(ae):e.unref(oe),type:"primary",size:"small"},null,8,["icon"])],4)],64))],6)}}};T.install=t=>{t.component("VPage",T)};const ie=Object.freeze(Object.defineProperty({__proto__:null,default:T},Symbol.toStringTag,{value:"Module"})),P={__name:"index",props:{modelValue:[String,Number,Array],options:{type:Array,default:()=>[]},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},select:{type:Boolean,default:!1},checkAll:{type:Boolean,default:!1},placeholder:{type:String,default:"请选择"}},emits:["update:modelValue"],setup(t,{emit:o}){const n=t,s=o,l=e.computed(()=>n.options.map(i=>({label:i[n.labelKey],value:i[n.valueKey]}))),a=e.computed({get:()=>n.modelValue,set:i=>s("update:modelValue",i)}),m=e.computed({get:()=>{const i=Array.isArray(a.value)?a.value:[],r=l.value.map(c=>c.value);return r.length&&r.every(c=>i.includes(c))},set:i=>{i?s("update:modelValue",l.value.map(r=>r.value)):s("update:modelValue",[])}}),d=()=>{if(!m.value)s("update:modelValue",[]);else{const i=l.value.map(r=>r.value);s("update:modelValue",i)}};return(i,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.select?"el-select-v2":"el-select"),e.mergeProps({modelValue:a.value,"onUpdate:modelValue":r[1]||(r[1]=c=>a.value=c),placeholder:t.placeholder},i.$attrs,{options:t.select?l.value:void 0}),e.createSlots({default:e.withCtx(()=>[t.select?e.createCommentVNode("",!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.value,c=>(e.openBlock(),e.createBlock(e.unref(N.ElOption),{key:c.value,label:c.label,value:c.value},null,8,["label","value"]))),128))]),_:2},[t.checkAll&&l.value.length?{name:"header",fn:e.withCtx(()=>[e.createVNode(e.unref(N.ElCheckbox),{modelValue:m.value,"onUpdate:modelValue":r[0]||(r[0]=c=>m.value=c),onChange:d},{default:e.withCtx(()=>r[2]||(r[2]=[e.createTextVNode(" 全选 ")])),_:1,__:[2]},8,["modelValue"])]),key:"0"}:void 0]),1040,["modelValue","placeholder","options"]))}};P.install=t=>{t.component("VSelect",P)};const de=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"})),ce={__name:"Pagination",props:{total:{required:!0,type:Number},pageNum:{type:Number,default:1},pageSize:{type:Number,default:20},pageSizes:{type:Array,default(){return[20,50,100,200,500]}},pagerCount:{type:Number,default:document.body.clientWidth<992?5:7},layouts:{type:Array,default:["PrevJump","PrevPage","Jump","PageCount","NextPage","NextJump","Sizes","Total"]},background:{type:Boolean,default:!1}},emits:["update:pageNum","update:pageSize","change"],setup(t,{emit:o}){const n=t,s=o,l=e.computed({get(){return n.pageNum},set(d){s("update:pageNum",d)}}),a=e.computed({get(){return n.pageSize},set(d){s("update:pageSize",d)}});function m({type:d,currentPage:i,pageSize:r,$event:c}){s("change",{type:d,pageNum:i,pageSize:r,$event:c})}return(d,i)=>(e.openBlock(),e.createBlock(e.unref(G.VxePager),{background:t.background,"current-page":l.value,"onUpdate:currentPage":i[0]||(i[0]=r=>l.value=r),"page-size":a.value,"onUpdate:pageSize":i[1]||(i[1]=r=>a.value=r),layouts:t.layouts,"page-sizes":t.pageSizes,"pager-count":t.pagerCount,total:t.total,onPageChange:m},null,8,["background","current-page","page-size","layouts","page-sizes","pager-count","total"]))}},pe=E(ce,[["__scopeId","data-v-242732de"]]),me={key:0,class:"vx-table__form"},fe={class:"vx-table__form-content"},ue={class:"vx-table__form-handle"},ge={class:"v-pagination-container"},_e={key:0,class:"v-text-title"},be={style:{color:"var(--base-text-color)"}},j=e.defineComponent({__name:"index",props:{pageHidden:{}},emits:["query","pageChange","checkbox-change","checkbox-all"],setup(t,{emit:o}){const n=e.ref(null),s=e.ref(null),l=e.ref(),a=e.ref(0),m=e.ref(0),d=e.ref(400),i=e.reactive({}),r=e.ref(0),c=Object.assign({},e.useAttrs(),{toolbarConfig:{slots:{buttons:"toolbar_buttons"}}}),h=Object.keys(e.useSlots()),x=o;function k(){x("query")}function M(){}const{pageSize:u,pageNum:g}=c.pagerConfig||{},b=e.reactive({pageSize:u||20,pageNum:g||1,total:0}),v=({type:p,pageNum:f,pageSize:S})=>{var C;p==="current"&&(isChange.value=!0),b.pageNum=p==="size"?1:f,b.pageSize=S,(C=l==null?void 0:l.value)==null||C.commitProxy("query")};function y({records:p}){r.value=p.length,x("checkbox-change",p)}function Se({records:p}){r.value=p.length,x("checkbox-all",p)}function Ne(p){a.value=p.offsetHeight}function Be(p){m.value=p.offsetHeight,q()}function we(){e.nextTick(()=>{q()})}function q(){const p=n.value,f=s.value;if(!p||!f)return;const S=p.getBoundingClientRect(),C=f.getBoundingClientRect(),A=S.height-(C.top-S.top);d.value=A}function ze(){e.nextTick(()=>{q()})}return(p,f)=>{const S=e.resolveComponent("vxe-grid"),C=e.resolveDirective("dom-resize"),A=e.resolveDirective("dom-load");return e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref_key:"tableRef",ref:n,class:"vx-table"},[e.createElementVNode("div",{class:"vx-table__header",style:e.normalizeStyle({height:`${a.value?m.value-a.value+"px":"auto"}`})},[e.withDirectives((e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({transform:`translateY(${-a.value+"px"})`})},[e.unref(h).includes("form")?(e.openBlock(),e.createElementBlock("div",me,[e.createElementVNode("div",fe,[e.renderSlot(p.$slots,"form",e.normalizeProps(e.guardReactiveProps({form:i}))),e.createElementVNode("div",ue,[e.renderSlot(p.$slots,"form_handle",{},()=>[e.createVNode(e.unref(N.ElButton),{type:"primary",onClick:k},{default:e.withCtx(()=>f[2]||(f[2]=[e.createTextVNode("查询")])),_:1,__:[2]}),e.createVNode(e.unref(N.ElButton),{onClick:M},{default:e.withCtx(()=>f[3]||(f[3]=[e.createTextVNode("重置")])),_:1,__:[3]})])])])])):e.createCommentVNode("",!0)],4)),[[C,Ne]]),f[4]||(f[4]=e.createElementVNode("div",{class:"vx-table__border"},null,-1))],4),e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref_key:"contentRef",ref:s,class:"vx-table__content"},[e.createVNode(S,e.mergeProps({ref_key:"gridRef",ref:l},e.unref(c),{height:d.value,onResizableChange:ze,onCheckboxChange:y,onCheckboxAll:Se}),e.createSlots({_:2},[e.renderList(e.unref(h).filter(V=>!["form"].includes(V)),V=>({name:V,fn:e.withCtx(Ee=>[e.renderSlot(p.$slots,V,e.normalizeProps(e.guardReactiveProps(Ee)))])})),p.pageHidden?void 0:{name:"pager",fn:e.withCtx(()=>[e.createElementVNode("div",ge,[e.createElementVNode("div",null,[r.value?(e.openBlock(),e.createElementBlock("span",_e,[f[5]||(f[5]=e.createTextVNode(" 已选中 ")),e.createElementVNode("span",be,e.toDisplayString(r.value),1),f[6]||(f[6]=e.createTextVNode(" 条 "))])):e.createCommentVNode("",!0)]),p.pageHidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(pe,e.mergeProps({key:0},e.unref(c).pagerConfig,{pageSize:b.pageSize,"onUpdate:pageSize":f[0]||(f[0]=V=>b.pageSize=V),pageNum:b.pageNum,"onUpdate:pageNum":f[1]||(f[1]=V=>b.pageNum=V),total:b.total,onChange:v}),null,16,["pageSize","pageNum","total"]))])]),key:"0"}]),1040,["height"])])),[[A,we]])])),[[C,Be]])}}});j.install=t=>{t.component("VTable",j)};const he=Object.freeze(Object.defineProperty({__proto__:null,default:j},Symbol.toStringTag,{value:"Module"})),ye={};function Ve(t,o){return e.openBlock(),e.createElementBlock("div",null,"1111")}const O=E(ye,[["render",Ve]]);O.install=t=>{t.component("VTablePro",O)};const R=Object.assign({"./BatchInput/index.ts":F,"./Button/index.ts":J,"./Dialog/index.ts":X,"./Group/index.ts":te,"./Page/index.ts":ie,"./Select/index.ts":de,"./Table/index.ts":he,"./TablePro/index.ts":Object.freeze(Object.defineProperty({__proto__:null,default:O},Symbol.toStringTag,{value:"Module"}))});function D(t){for(const o in R){const n=R[o].default,s=o.split("/")[1],l=s.charAt(0).toUpperCase()+s.slice(1);t.component(`V${l}`,n)}}const xe=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,o){const n=o.value,s=t.getBoundingClientRect();n&&n(s,t)}}},Symbol.toStringTag,{value:"Module"})),H=new WeakMap,U=new ResizeObserver(t=>{for(const o of t){const n=H.get(o.target);n&&n(o.contentRect,o.target)}}),ke=Object.assign({"./dom-load/index.ts":xe,"./dom-resize/index.ts":Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,o){H.set(t,o.value),U.observe(t)},unmounted(t){U.unobserve(t)}}},Symbol.toStringTag,{value:"Module"}))});function L(t){for(const[o,n]of Object.entries(ke)){const s=o.replace("./","").replace("/index.ts","");if(s){const l=n.default;t.directive(s,l)}}}const W=(t,o)=>{L(t),D(t)},Ce={install:W};_.default=Ce,_.install=W,_.registerComponents=D,_.registerDirectives=L,Object.defineProperties(_,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
4
|
+
`).join(","))||"")}}),o=e.computed(()=>{var u;return((u=s.value)==null?void 0:u.split(`
|
|
5
|
+
`).filter(Boolean).join(","))||""}),i=async()=>{r.value=!0,await 1,c==null||c.value.focus()},h=()=>{r.value=!1},x=()=>{var u;l("update:modelValue",((u=s.value)==null?void 0:u.split(`
|
|
6
|
+
`).filter(Boolean).slice(0,d.rows).join(","))||"")},C=()=>{s.value=""},M=()=>{h(),l("search")};return a({clear:C}),(u,g)=>{const b=e.resolveComponent("el-input"),q=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(q,{visible:r.value,"onUpdate:visible":g[4]||(g[4]=y=>r.value=y),disabled:p.value,trigger:"click",placement:"bottom-end",width:"405px",offset:2,"show-arrow":!1,onShow:i,onHide:h},{reference:e.withCtx(()=>[e.createVNode(b,e.mergeProps({modelValue:o.value,"onUpdate:modelValue":g[2]||(g[2]=y=>o.value=y),placeholder:u.$attrs.placeholder||"请输入",class:["v-batch-input",o.value&&!r.value&&"is--value"]},u.$attrs),{suffix:e.withCtx(()=>[g[6]||(g[6]=e.createElementVNode("svg",{class:"v-batch-input-icon",width:"14px",height:"14.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{fill:"#909399",d:"M765.932181 720.345605m22.756717 22.756717l226.015571 226.015571q22.756717 22.756717 0 45.513433l0 0q-22.756717 22.756717-45.513433 0l-226.015571-226.015571q-22.756717-22.756717 0-45.513433l0 0q22.756717-22.756717 45.513433 0Z"}),e.createElementVNode("path",{fill:"#909399",d:"M192.365714 236.982857m32.182857 0l575.634286 0q32.182857 0 32.182857 32.182857l0 0q0 32.182857-32.182857 32.182857l-575.634286 0q-32.182857 0-32.182857-32.182857l0 0q0-32.182857 32.182857-32.182857Z"}),e.createElementVNode("path",{fill:"#909399",d:"M192.365714 479.817143m32.182857 0l191.634286 0q32.182857 0 32.182857 32.182857l0-0.731429q0 32.182857-32.182857 32.182858l-191.634286 0q-32.182857 0-32.182857-32.182858l0 0.731429q0-32.182857 32.182857-32.182857Z"}),e.createElementVNode("path",{fill:"#909399",d:"M192.365714 722.651429m32.182857 0l63.634286 0q32.182857 0 32.182857 32.182857l0-0.731429q0 32.182857-32.182857 32.182857l-63.634286 0q-32.182857 0-32.182857-32.182857l0 0.731429q0-32.182857 32.182857-32.182857Z"}),e.createElementVNode("path",{fill:"#909399",d:"M896 0H128A128 128 0 0 0 0 128v768A128 128 0 0 0 128 1024h576.365714v-63.634286H128a64.365714 64.365714 0 0 1-63.634286-64.365714V128a63.634286 63.634286 0 0 1 63.634286-63.634286h768a64.365714 64.365714 0 0 1 64.365714 63.634286v448.365714H1024V128A128 128 0 0 0 896 0z"}),e.createElementVNode("path",{fill:"#909399",d:"M670.72 449.097143a192.365714 192.365714 0 1 0 191.634286 192.365714 192.365714 192.365714 0 0 0-191.634286-192.365714z m0 320.365714a128 128 0 1 1 128-128 128 128 0 0 1-128 128z"})],-1)),(e.openBlock(),e.createElementBlock("svg",{class:"v-batch-input-clear",onMouseenter:g[0]||(g[0]=y=>p.value=!0),onMouseleave:g[1]||(g[1]=y=>p.value=!1),onClick:C,t:"1731313372920",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3649",width:"19",height:"19"},g[5]||(g[5]=[e.createElementVNode("path",{d:"M512 96a416 416 0 1 1 0 832 416 416 0 0 1 0-832z m0 64a352 352 0 1 0 0 704 352 352 0 0 0 0-704z","p-id":"3650",fill:"currentColor"},null,-1),e.createElementVNode("path",{d:"M365.12 387.328a32 32 0 0 1 44.864-45.248l4.096 4.032 244.8 290.56a32 32 0 0 1-44.864 45.248l-4.096-4.032-244.8-290.56z","p-id":"3651",fill:"currentColor"},null,-1),e.createElementVNode("path",{d:"M365.12 636.672a32 32 0 0 0 44.864 45.248l4.096-4.032 244.8-290.56a32 32 0 0 0-44.864-45.248l-4.096 4.032-244.8 290.56z","p-id":"3652",fill:"currentColor"},null,-1)]),32))]),_:1},16,["modelValue","placeholder","class"])]),default:e.withCtx(()=>[e.createElementVNode("div",Z,[e.createVNode(b,{ref_key:"inputRef",ref:c,modelValue:s.value,"onUpdate:modelValue":g[3]||(g[3]=y=>s.value=y),rows:12,placeholder:`一行一个(最多支持${t.rows}行)`,type:"textarea",style:{width:"100%"},onBlur:x},null,8,["modelValue","placeholder"]),e.createVNode(K,{value:s.value,onClear:C,onClose:h,onSubmit:M},null,8,["value"])])]),_:1},8,["visible","disabled"])}}};N.install=t=>{t.component("VBatchInput",N)};const F=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"})),w=e.defineComponent({__name:"index",setup(t){return(a,n)=>(e.openBlock(),e.createBlock(e.unref(V.ElButton),e.mergeProps(a.$attrs,{size:"small"}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16))}});w.install=t=>{t.component("VButton",w)};const J=Object.freeze(Object.defineProperty({__proto__:null,default:w},Symbol.toStringTag,{value:"Module"})),z=e.defineComponent({__name:"index",props:{title:{type:String,default:"提示"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["close","save","open"],setup(t,{expose:a,emit:n}){const d=n,l=e.ref(!1),r=()=>{l.value=!0},p=()=>{l.value=!1,d("close")},c=()=>{p()},s=()=>{d("save")};return a({open:r,close:p}),(o,i)=>{const h=e.resolveComponent("el-button"),x=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(x,e.mergeProps({modelValue:l.value,"onUpdate:modelValue":i[0]||(i[0]=C=>l.value=C),width:"30%",title:t.title,"align-center":""},o.$attrs,{draggable:"","close-on-click-modal":!1,onClose:c,class:"v-dialog"}),{footer:e.withCtx(()=>[t.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(h,{key:0,type:"primary",loading:t.loading,onClick:s},{default:e.withCtx(()=>i[1]||(i[1]=[e.createTextVNode(" 确定 ")])),_:1,__:[1]},8,["loading"])),e.createVNode(h,{disabled:t.loading,onClick:c},{default:e.withCtx(()=>i[2]||(i[2]=[e.createTextVNode(" 取消 ")])),_:1,__:[2]},8,["disabled"])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"content")])]),_:3},16,["modelValue","title"])}}});z.install=t=>{t.component("VGroup",z)};const X=Object.freeze(Object.defineProperty({__proto__:null,default:z},Symbol.toStringTag,{value:"Module"})),E=(t,a)=>{const n=t.__vccOpts||t;for(const[d,l]of a)n[d]=l;return n},Y={},Q={class:"v-group"};function ee(t,a){return e.openBlock(),e.createElementBlock("div",Q,[e.renderSlot(t.$slots,"default")])}const $=E(Y,[["render",ee]]);$.install=t=>{t.component("VGroup",$)};const te=Object.freeze(Object.defineProperty({__proto__:null,default:$},Symbol.toStringTag,{value:"Module"}));/*! Element Plus Icons Vue v2.3.1 */var le=e.defineComponent({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(t){return(a,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"})]))}}),oe=le,ne=e.defineComponent({name:"ArrowRightBold",__name:"arrow-right-bold",setup(t){return(a,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"})]))}}),ae=ne;const re={key:0,class:"v-page__edit",style:{background:"#fff"}},se={class:"v-page__body-left"},T={__name:"index",props:{edit:{type:Boolean,default:!0},leftWidth:{type:String,default:"240px"},modelCollapse:{type:Boolean,default:!1}},emits:["update:modelCollapse"],setup(t,{emit:a}){const n=t,d=a,{modelCollapse:l}=e.toRefs(n),r=e.ref(l.value);e.watch(l,c=>{r.value=c}),e.watch(r,c=>{d("update:modelCollapse",c)});const p=()=>{r.value=!r.value};return(c,s)=>{const o=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",{ref:"pageRef",class:e.normalizeClass(["v-page",{"is--full":!t.edit,"is--edit":t.edit}]),style:e.normalizeStyle({"--left-width":t.leftWidth})},[t.edit?(e.openBlock(),e.createElementBlock("div",re,[e.renderSlot(c.$slots,"default")])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",{class:"v-page__body",style:e.normalizeStyle({paddingLeft:r.value?0:t.leftWidth})},[e.withDirectives(e.createElementVNode("div",se,[e.renderSlot(c.$slots,"left")],512),[[e.vShow,!r.value]]),e.createElementVNode("div",{class:"v-page__body-main",style:e.normalizeStyle({marginLeft:r.value?0:"8px"})},[e.renderSlot(c.$slots,"default")],4)],4),e.createElementVNode("div",{class:"v-page__body-collapse",style:e.normalizeStyle({left:r.value?"0px":t.leftWidth}),onClick:p},[e.createVNode(o,{icon:r.value?e.unref(ae):e.unref(oe),type:"primary",size:"small"},null,8,["icon"])],4)],64))],6)}}};T.install=t=>{t.component("VPage",T)};const ie=Object.freeze(Object.defineProperty({__proto__:null,default:T},Symbol.toStringTag,{value:"Module"})),P={__name:"index",props:{modelValue:[String,Number,Array],options:{type:Array,default:()=>[]},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},select:{type:Boolean,default:!1},checkAll:{type:Boolean,default:!1},placeholder:{type:String,default:"请选择"}},emits:["update:modelValue"],setup(t,{emit:a}){const n=t,d=a,l=e.computed(()=>!Array.isArray(n.options)||n.options.length===0?[]:n.options.map(s=>{if(typeof s!="object"||s===null)return null;const o=s[n.labelKey]??"未命名选项",i=s[n.valueKey]??void 0;return i!=null?{label:o,value:i}:null}).filter(Boolean)),r=e.computed({get:()=>n.modelValue,set:s=>d("update:modelValue",s)}),p=e.computed({get:()=>{const s=Array.isArray(r.value)?r.value:[],o=l.value.map(i=>i.value);return o.length&&o.every(i=>s.includes(i))},set:s=>{s?d("update:modelValue",l.value.map(o=>o.value)):d("update:modelValue",[])}}),c=()=>{if(!p.value)d("update:modelValue",[]);else{const s=l.value.map(o=>o.value);d("update:modelValue",s)}};return(s,o)=>t.select?(e.openBlock(),e.createBlock(e.unref(V.ElSelectV2),e.mergeProps({key:0,modelValue:r.value,"onUpdate:modelValue":o[1]||(o[1]=i=>r.value=i),placeholder:t.placeholder},s.$attrs,{options:l.value}),e.createSlots({_:2},[t.checkAll&&l.value.length?{name:"header",fn:e.withCtx(()=>[e.createVNode(e.unref(V.ElCheckbox),{modelValue:p.value,"onUpdate:modelValue":o[0]||(o[0]=i=>p.value=i),onChange:c},{default:e.withCtx(()=>o[4]||(o[4]=[e.createTextVNode(" 全选 ")])),_:1,__:[4]},8,["modelValue"])]),key:"0"}:void 0]),1040,["modelValue","placeholder","options"])):(e.openBlock(),e.createBlock(e.unref(V.ElSelect),e.mergeProps({key:1,modelValue:r.value,"onUpdate:modelValue":o[3]||(o[3]=i=>r.value=i),placeholder:t.placeholder},s.$attrs),e.createSlots({default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,i=>(e.openBlock(),e.createBlock(e.unref(V.ElOption),{key:i.value,label:i.label,value:i.value},null,8,["label","value"]))),128))]),_:2},[t.checkAll&&l.value.length?{name:"header",fn:e.withCtx(()=>[e.createVNode(e.unref(V.ElCheckbox),{modelValue:p.value,"onUpdate:modelValue":o[2]||(o[2]=i=>p.value=i),onChange:c},{default:e.withCtx(()=>o[5]||(o[5]=[e.createTextVNode(" 全选 ")])),_:1,__:[5]},8,["modelValue"])]),key:"0"}:void 0]),1040,["modelValue","placeholder"]))}};P.install=t=>{t.component("VSelect",P)};const de=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"})),ce={__name:"Pagination",props:{total:{required:!0,type:Number},pageNum:{type:Number,default:1},pageSize:{type:Number,default:20},pageSizes:{type:Array,default(){return[20,50,100,200,500]}},pagerCount:{type:Number,default:document.body.clientWidth<992?5:7},layouts:{type:Array,default:["PrevJump","PrevPage","Jump","PageCount","NextPage","NextJump","Sizes","Total"]},background:{type:Boolean,default:!1}},emits:["update:pageNum","update:pageSize","change"],setup(t,{emit:a}){const n=t,d=a,l=e.computed({get(){return n.pageNum},set(c){d("update:pageNum",c)}}),r=e.computed({get(){return n.pageSize},set(c){d("update:pageSize",c)}});function p({type:c,currentPage:s,pageSize:o,$event:i}){d("change",{type:c,pageNum:s,pageSize:o,$event:i})}return(c,s)=>(e.openBlock(),e.createBlock(e.unref(G.VxePager),{background:t.background,"current-page":l.value,"onUpdate:currentPage":s[0]||(s[0]=o=>l.value=o),"page-size":r.value,"onUpdate:pageSize":s[1]||(s[1]=o=>r.value=o),layouts:t.layouts,"page-sizes":t.pageSizes,"pager-count":t.pagerCount,total:t.total,onPageChange:p},null,8,["background","current-page","page-size","layouts","page-sizes","pager-count","total"]))}},pe=E(ce,[["__scopeId","data-v-242732de"]]),me={key:0,class:"vx-table__form"},fe={class:"vx-table__form-content"},ue={class:"vx-table__form-handle"},ge={class:"v-pagination-container"},_e={key:0,class:"v-text-title"},be={style:{color:"var(--base-text-color)"}},j=e.defineComponent({__name:"index",props:{pageHidden:{}},emits:["query","pageChange","checkbox-change","checkbox-all"],setup(t,{emit:a}){const n=e.ref(null),d=e.ref(null),l=e.ref(),r=e.ref(0),p=e.ref(0),c=e.ref(400),s=e.reactive({}),o=e.ref(0),i=Object.assign({},e.useAttrs(),{toolbarConfig:{slots:{buttons:"toolbar_buttons"}}}),h=Object.keys(e.useSlots()),x=a;function C(){x("query")}function M(){}const{pageSize:u,pageNum:g}=i.pagerConfig||{},b=e.reactive({pageSize:u||20,pageNum:g||1,total:0}),q=({type:m,pageNum:f,pageSize:B})=>{var S;m==="current"&&(isChange.value=!0),b.pageNum=m==="size"?1:f,b.pageSize=B,(S=l==null?void 0:l.value)==null||S.commitProxy("query")};function y({records:m}){o.value=m.length,x("checkbox-change",m)}function Se({records:m}){o.value=m.length,x("checkbox-all",m)}function Be(m){r.value=m.offsetHeight}function Ne(m){p.value=m.offsetHeight,A()}function we(){e.nextTick(()=>{A()})}function A(){const m=n.value,f=d.value;if(!m||!f)return;const B=m.getBoundingClientRect(),S=f.getBoundingClientRect(),R=B.height-(S.top-B.top);c.value=R}function ze(){e.nextTick(()=>{A()})}return(m,f)=>{const B=e.resolveComponent("vxe-grid"),S=e.resolveDirective("dom-resize"),R=e.resolveDirective("dom-load");return e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref_key:"tableRef",ref:n,class:"vx-table"},[e.createElementVNode("div",{class:"vx-table__header",style:e.normalizeStyle({height:`${r.value?p.value-r.value+"px":"auto"}`})},[e.withDirectives((e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({transform:`translateY(${-r.value+"px"})`})},[e.unref(h).includes("form")?(e.openBlock(),e.createElementBlock("div",me,[e.createElementVNode("div",fe,[e.renderSlot(m.$slots,"form",e.normalizeProps(e.guardReactiveProps({form:s}))),e.createElementVNode("div",ue,[e.renderSlot(m.$slots,"form_handle",{},()=>[e.createVNode(e.unref(V.ElButton),{type:"primary",icon:"Search",size:"small",onClick:C},{default:e.withCtx(()=>f[2]||(f[2]=[e.createTextVNode("查询")])),_:1,__:[2]}),e.createVNode(e.unref(V.ElButton),{icon:"Refresh",size:"small",onClick:M},{default:e.withCtx(()=>f[3]||(f[3]=[e.createTextVNode("重置")])),_:1,__:[3]})])])])])):e.createCommentVNode("",!0)],4)),[[S,Be]]),f[4]||(f[4]=e.createElementVNode("div",{class:"vx-table__border"},null,-1))],4),e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref_key:"contentRef",ref:d,class:"vx-table__content"},[e.createVNode(B,e.mergeProps({ref_key:"gridRef",ref:l},e.unref(i),{height:c.value,onResizableChange:ze,onCheckboxChange:y,onCheckboxAll:Se}),e.createSlots({_:2},[e.renderList(e.unref(h).filter(k=>!["form"].includes(k)),k=>({name:k,fn:e.withCtx(Ee=>[e.renderSlot(m.$slots,k,e.normalizeProps(e.guardReactiveProps(Ee)))])})),m.pageHidden?void 0:{name:"pager",fn:e.withCtx(()=>[e.createElementVNode("div",ge,[e.createElementVNode("div",null,[o.value?(e.openBlock(),e.createElementBlock("span",_e,[f[5]||(f[5]=e.createTextVNode(" 已选中 ")),e.createElementVNode("span",be,e.toDisplayString(o.value),1),f[6]||(f[6]=e.createTextVNode(" 条 "))])):e.createCommentVNode("",!0)]),m.pageHidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(pe,e.mergeProps({key:0},e.unref(i).pagerConfig,{pageSize:b.pageSize,"onUpdate:pageSize":f[0]||(f[0]=k=>b.pageSize=k),pageNum:b.pageNum,"onUpdate:pageNum":f[1]||(f[1]=k=>b.pageNum=k),total:b.total,onChange:q}),null,16,["pageSize","pageNum","total"]))])]),key:"0"}]),1040,["height"])])),[[R,we]])])),[[S,Ne]])}}});j.install=t=>{t.component("VTable",j)};const he=Object.freeze(Object.defineProperty({__proto__:null,default:j},Symbol.toStringTag,{value:"Module"})),ye={};function Ve(t,a){return e.openBlock(),e.createElementBlock("div",null,"1111")}const O=E(ye,[["render",Ve]]);O.install=t=>{t.component("VTablePro",O)};const v=Object.assign({"./BatchInput/index.ts":F,"./Button/index.ts":J,"./Dialog/index.ts":X,"./Group/index.ts":te,"./Page/index.ts":ie,"./Select/index.ts":de,"./Table/index.ts":he,"./TablePro/index.ts":Object.freeze(Object.defineProperty({__proto__:null,default:O},Symbol.toStringTag,{value:"Module"}))});function H(t){for(const a in v){const n=v[a].default,d=a.split("/")[1],l=d.charAt(0).toUpperCase()+d.slice(1);t.component(`V${l}`,n)}}const ke=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,a){const n=a.value,d=t.getBoundingClientRect();n&&n(d,t)}}},Symbol.toStringTag,{value:"Module"})),D=new WeakMap,U=new ResizeObserver(t=>{for(const a of t){const n=D.get(a.target);n&&n(a.contentRect,a.target)}}),xe=Object.assign({"./dom-load/index.ts":ke,"./dom-resize/index.ts":Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,a){D.set(t,a.value),U.observe(t)},unmounted(t){U.unobserve(t)}}},Symbol.toStringTag,{value:"Module"}))});function L(t){for(const[a,n]of Object.entries(xe)){const d=a.replace("./","").replace("/index.ts","");if(d){const l=n.default;t.directive(d,l)}}}const W=(t,a)=>{L(t),H(t)},Ce={install:W};_.default=Ce,_.install=W,_.registerComponents=H,_.registerDirectives=L,Object.defineProperties(_,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|