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