yc-vep-ui 0.0.18 → 0.0.19
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/vep-ui.es.js +187 -262
- package/dist/vep-ui.umd.js +1 -1
- package/package.json +1 -1
package/dist/vep-ui.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createPropsRestProxy as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, h as d, mergeModels as f, mergeProps as p, nextTick as m, normalizeClass as h, normalizeStyle as g, onMounted as _, onUnmounted as v, openBlock as y, reactive as b, ref as x, renderList as S, renderSlot as C, resolveComponent as w, resolveDirective as T, resolveDynamicComponent as E, setBlockTracking as D, toDisplayString as O, toValue as k, unref as A, useCssVars as ee, useModel as j, watch as M, watchEffect as te, withCtx as N, withDirectives as P } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { AiEditor as
|
|
2
|
+
import { ElButton as F, ElCard as ne, ElCol as I, ElConfigProvider as re, ElDatePicker as L, ElDescriptions as ie, ElDescriptionsItem as ae, ElDialog as oe, ElDropdown as se, ElDropdownItem as ce, ElDropdownMenu as le, ElForm as ue, ElFormItem as de, ElIcon as fe, ElInput as R, ElInputNumber as pe, ElInputTag as z, ElLink as B, ElMessage as me, ElMessageBox as V, ElNotification as he, ElOption as ge, ElOptionGroup as _e, ElPagination as ve, ElPopconfirm as ye, ElPopover as be, ElRadio as xe, ElRadioButton as Se, ElRadioGroup as H, ElRow as Ce, ElScrollbar as we, ElSelect as Te, ElSwitch as Ee, ElTable as De, ElTableColumn as Oe, ElTag as U, ElText as W, ElTimeSelect as ke, ElTreeV2 as Ae, ElUpload as je, provideGlobalConfig as Me } from "element-plus";
|
|
3
|
+
import { AiEditor as Ne } from "aieditor";
|
|
4
4
|
//#region node_modules/element-plus/es/locale/lang/zh-cn.mjs
|
|
5
|
-
var
|
|
5
|
+
var Pe = {
|
|
6
6
|
name: "zh-cn",
|
|
7
7
|
el: {
|
|
8
8
|
breadcrumb: { label: "面包屑" },
|
|
@@ -181,7 +181,7 @@ var tn = {
|
|
|
181
181
|
defaultLabel: "请输入第 {index} 位 OTP 字符"
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
},
|
|
184
|
+
}, Fe = { class: /* @__PURE__ */ h({ bodyClass: !0 }) }, Ie = /* @__PURE__ */ u({
|
|
185
185
|
__name: "index",
|
|
186
186
|
props: {
|
|
187
187
|
title: {},
|
|
@@ -202,7 +202,7 @@ var tn = {
|
|
|
202
202
|
"ui-card": !0,
|
|
203
203
|
hideBorder: e.hideBorder
|
|
204
204
|
} }), s({
|
|
205
|
-
default: N(() => [a("div",
|
|
205
|
+
default: N(() => [a("div", Fe, [C(t.$slots, "default", {}, void 0, !0)])]),
|
|
206
206
|
_: 2
|
|
207
207
|
}, [e.title && e.title?.length > 0 ? {
|
|
208
208
|
name: "header",
|
|
@@ -214,11 +214,11 @@ var tn = {
|
|
|
214
214
|
} : void 0]), 1040, ["class"]);
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
|
-
}),
|
|
217
|
+
}), G = (e, t) => {
|
|
218
218
|
let n = e.__vccOpts || e;
|
|
219
219
|
for (let [e, r] of t) n[e] = r;
|
|
220
220
|
return n;
|
|
221
|
-
},
|
|
221
|
+
}, K = /* @__PURE__ */ G(Ie, [["__scopeId", "data-v-ae248017"]]), Le = /* @__PURE__ */ u({
|
|
222
222
|
name: "ArrowRight",
|
|
223
223
|
__name: "arrow-right",
|
|
224
224
|
setup(e) {
|
|
@@ -230,7 +230,7 @@ var tn = {
|
|
|
230
230
|
d: "M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"
|
|
231
231
|
})]));
|
|
232
232
|
}
|
|
233
|
-
}),
|
|
233
|
+
}), Re = /* @__PURE__ */ u({
|
|
234
234
|
name: "ArrowUp",
|
|
235
235
|
__name: "arrow-up",
|
|
236
236
|
setup(e) {
|
|
@@ -242,7 +242,7 @@ var tn = {
|
|
|
242
242
|
d: "m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"
|
|
243
243
|
})]));
|
|
244
244
|
}
|
|
245
|
-
}),
|
|
245
|
+
}), ze = /* @__PURE__ */ u({
|
|
246
246
|
name: "CirclePlus",
|
|
247
247
|
__name: "circle-plus",
|
|
248
248
|
setup(e) {
|
|
@@ -264,7 +264,7 @@ var tn = {
|
|
|
264
264
|
})
|
|
265
265
|
]));
|
|
266
266
|
}
|
|
267
|
-
}),
|
|
267
|
+
}), Be = /* @__PURE__ */ u({
|
|
268
268
|
name: "Delete",
|
|
269
269
|
__name: "delete",
|
|
270
270
|
setup(e) {
|
|
@@ -276,7 +276,7 @@ var tn = {
|
|
|
276
276
|
d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"
|
|
277
277
|
})]));
|
|
278
278
|
}
|
|
279
|
-
}),
|
|
279
|
+
}), Ve = /* @__PURE__ */ u({
|
|
280
280
|
name: "DocumentAdd",
|
|
281
281
|
__name: "document-add",
|
|
282
282
|
setup(e) {
|
|
@@ -288,7 +288,7 @@ var tn = {
|
|
|
288
288
|
d: "M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z"
|
|
289
289
|
})]));
|
|
290
290
|
}
|
|
291
|
-
}),
|
|
291
|
+
}), He = /* @__PURE__ */ u({
|
|
292
292
|
name: "Edit",
|
|
293
293
|
__name: "edit",
|
|
294
294
|
setup(e) {
|
|
@@ -303,7 +303,7 @@ var tn = {
|
|
|
303
303
|
d: "m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"
|
|
304
304
|
})]));
|
|
305
305
|
}
|
|
306
|
-
}),
|
|
306
|
+
}), Ue = /* @__PURE__ */ u({
|
|
307
307
|
name: "Folder",
|
|
308
308
|
__name: "folder",
|
|
309
309
|
setup(e) {
|
|
@@ -315,7 +315,7 @@ var tn = {
|
|
|
315
315
|
d: "M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"
|
|
316
316
|
})]));
|
|
317
317
|
}
|
|
318
|
-
}),
|
|
318
|
+
}), We = /* @__PURE__ */ u({
|
|
319
319
|
name: "MoreFilled",
|
|
320
320
|
__name: "more-filled",
|
|
321
321
|
setup(e) {
|
|
@@ -327,7 +327,7 @@ var tn = {
|
|
|
327
327
|
d: "M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"
|
|
328
328
|
})]));
|
|
329
329
|
}
|
|
330
|
-
}),
|
|
330
|
+
}), Ge = /* @__PURE__ */ u({
|
|
331
331
|
name: "Promotion",
|
|
332
332
|
__name: "promotion",
|
|
333
333
|
setup(e) {
|
|
@@ -339,7 +339,7 @@ var tn = {
|
|
|
339
339
|
d: "m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"
|
|
340
340
|
})]));
|
|
341
341
|
}
|
|
342
|
-
}),
|
|
342
|
+
}), q = /* @__PURE__ */ u({
|
|
343
343
|
name: "Refresh",
|
|
344
344
|
__name: "refresh",
|
|
345
345
|
setup(e) {
|
|
@@ -351,7 +351,7 @@ var tn = {
|
|
|
351
351
|
d: "M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"
|
|
352
352
|
})]));
|
|
353
353
|
}
|
|
354
|
-
}),
|
|
354
|
+
}), Ke = /* @__PURE__ */ u({
|
|
355
355
|
name: "Search",
|
|
356
356
|
__name: "search",
|
|
357
357
|
setup(e) {
|
|
@@ -366,15 +366,15 @@ var tn = {
|
|
|
366
366
|
});
|
|
367
367
|
//#endregion
|
|
368
368
|
//#region src/components/utils/tools.ts
|
|
369
|
-
function
|
|
369
|
+
function qe(e) {
|
|
370
370
|
return typeof e == "number" ? e + "px" : e || "100px";
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function J(e) {
|
|
373
373
|
return typeof e == "number" ? e + "px" : e || "180px";
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function Y(e, t) {
|
|
376
376
|
let n = {};
|
|
377
|
-
return Object.keys(
|
|
377
|
+
return Object.keys(Q).forEach((r) => {
|
|
378
378
|
let i = r;
|
|
379
379
|
n[i] = (n = {}) => ({
|
|
380
380
|
props: {
|
|
@@ -384,20 +384,20 @@ function X(e, t) {
|
|
|
384
384
|
onChange: (r) => n.onChange?.(r) || (t[e.prop] = r)
|
|
385
385
|
},
|
|
386
386
|
type: i,
|
|
387
|
-
component:
|
|
387
|
+
component: Q[i]
|
|
388
388
|
});
|
|
389
389
|
}), ((n) => typeof e.render == "function" ? e.render({
|
|
390
390
|
h: n,
|
|
391
391
|
data: t
|
|
392
392
|
}) : n.input(n.props || {}))(n);
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
let n =
|
|
394
|
+
function X(e, t) {
|
|
395
|
+
let n = Y(e, t);
|
|
396
396
|
return typeof n == "object" && (n.component ||= n), n;
|
|
397
397
|
}
|
|
398
398
|
//#endregion
|
|
399
399
|
//#region src/components/Filter/index.vue?vue&type=script&setup=true&lang.ts
|
|
400
|
-
var
|
|
400
|
+
var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ G(/* @__PURE__ */ u({
|
|
401
401
|
name: "UiDefaultFilter",
|
|
402
402
|
__name: "index",
|
|
403
403
|
props: {
|
|
@@ -433,7 +433,7 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
433
433
|
}), h = b({}), v = t(() => s.fields.slice(0, m.expand ? s.fields.length : m.expandNum)), x = t(() => 24 - v.value?.reduce((e, t) => e + (t.span || 24 / s.column), 0) % 24 - 24 / s.column);
|
|
434
434
|
_(() => {
|
|
435
435
|
m.expandNum = f?.expandNum ?? 2 * s.column - 1, s.fields.forEach((e) => {
|
|
436
|
-
let t =
|
|
436
|
+
let t = Y(e, h)?.props?.defaultValue;
|
|
437
437
|
t !== void 0 && (h[e.prop] = t);
|
|
438
438
|
});
|
|
439
439
|
});
|
|
@@ -469,16 +469,16 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
469
469
|
default: N(() => [(y(), n(d, {
|
|
470
470
|
key: e.prop,
|
|
471
471
|
label: e.label,
|
|
472
|
-
"label-width": A(
|
|
473
|
-
"value-width": A(
|
|
472
|
+
"label-width": A(qe)(e?.labelWidth || s.labelWidth),
|
|
473
|
+
"value-width": A(J)(e?.valueWidth || s.valueWidth)
|
|
474
474
|
}, {
|
|
475
|
-
default: N(() => [e.render ? (y(), n(E(A(
|
|
475
|
+
default: N(() => [e.render ? (y(), n(E(A(Y)(e, h).component), p({
|
|
476
476
|
key: 0,
|
|
477
477
|
modelValue: h[e.prop],
|
|
478
478
|
"onUpdate:modelValue": (t) => h[e.prop] = t
|
|
479
|
-
}, { ref_for: !0 }, A(
|
|
479
|
+
}, { ref_for: !0 }, A(Y)(e, h).props, {
|
|
480
480
|
clearable: !0,
|
|
481
|
-
style: { width: A(
|
|
481
|
+
style: { width: A(J)(e?.valueWidth || s.valueWidth) }
|
|
482
482
|
}), null, 16, [
|
|
483
483
|
"modelValue",
|
|
484
484
|
"onUpdate:modelValue",
|
|
@@ -489,7 +489,7 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
489
489
|
"onUpdate:modelValue": (t) => h[e.prop] = t,
|
|
490
490
|
placeholder: "请输入",
|
|
491
491
|
clearable: !0,
|
|
492
|
-
style: g({ width: A(
|
|
492
|
+
style: g({ width: A(J)(e?.valueWidth || s.valueWidth) })
|
|
493
493
|
}, null, 8, [
|
|
494
494
|
"modelValue",
|
|
495
495
|
"onUpdate:modelValue",
|
|
@@ -510,19 +510,19 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
510
510
|
label: "",
|
|
511
511
|
"label-width": "30px"
|
|
512
512
|
}, {
|
|
513
|
-
default: N(() => [a("div",
|
|
513
|
+
default: N(() => [a("div", Je, [
|
|
514
514
|
C(t.$slots, "left", { form: h }, void 0, !0),
|
|
515
515
|
s.fields.length >= 2 * s.column ? (y(), n(_, {
|
|
516
516
|
key: 0,
|
|
517
517
|
text: "",
|
|
518
|
-
icon: m.expand ? A(
|
|
518
|
+
icon: m.expand ? A(Re) : A(Le),
|
|
519
519
|
onClick: o[0] ||= (e) => m.expand = !m.expand
|
|
520
520
|
}, {
|
|
521
521
|
default: N(() => [c(O(m.expand ? "收起" : "展开"), 1)]),
|
|
522
522
|
_: 1
|
|
523
523
|
}, 8, ["icon"])) : r("", !0),
|
|
524
524
|
l(_, {
|
|
525
|
-
icon: A(
|
|
525
|
+
icon: A(Ke),
|
|
526
526
|
type: "primary",
|
|
527
527
|
onClick: T
|
|
528
528
|
}, {
|
|
@@ -530,7 +530,7 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
530
530
|
_: 1
|
|
531
531
|
}, 8, ["icon"]),
|
|
532
532
|
l(_, {
|
|
533
|
-
icon: A(
|
|
533
|
+
icon: A(q),
|
|
534
534
|
onClick: D
|
|
535
535
|
}, {
|
|
536
536
|
default: N(() => [...o[2] ||= [c("重置", -1)]]),
|
|
@@ -549,16 +549,16 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
549
549
|
}, 16, ["model", "size"]);
|
|
550
550
|
};
|
|
551
551
|
}
|
|
552
|
-
}), [["__scopeId", "data-v-45f0642b"]]),
|
|
552
|
+
}), [["__scopeId", "data-v-45f0642b"]]), Xe = {
|
|
553
553
|
key: 0,
|
|
554
554
|
style: { display: "inline-block" }
|
|
555
|
-
},
|
|
555
|
+
}, Ze = {
|
|
556
556
|
key: 0,
|
|
557
557
|
style: { display: "inline-block" }
|
|
558
|
-
},
|
|
558
|
+
}, Qe = {
|
|
559
559
|
key: 0,
|
|
560
560
|
class: "ui-form-buttons"
|
|
561
|
-
},
|
|
561
|
+
}, $e = /* @__PURE__ */ G(/* @__PURE__ */ u({
|
|
562
562
|
__name: "index",
|
|
563
563
|
props: {
|
|
564
564
|
fields: {},
|
|
@@ -590,9 +590,9 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
590
590
|
]), m = x(0), _ = x(), v = b({}), T = t(() => {
|
|
591
591
|
let e = k(v);
|
|
592
592
|
return a.fields.forEach((t) => {
|
|
593
|
-
let n = t.prop ? e?.[t.prop] : void 0, r =
|
|
593
|
+
let n = t.prop ? e?.[t.prop] : void 0, r = X(t, v)?.props?.defaultValue;
|
|
594
594
|
v[t.prop] = n ?? r ?? void 0, t?.slots && t?.slots?.length > 0 && t.slots.forEach((t) => {
|
|
595
|
-
let n = t.prop ? e?.[t.prop] : void 0, r =
|
|
595
|
+
let n = t.prop ? e?.[t.prop] : void 0, r = X(t, v)?.props?.defaultValue;
|
|
596
596
|
v[t.prop] = n ?? r ?? void 0;
|
|
597
597
|
});
|
|
598
598
|
}), a.fields.filter((e) => typeof e.prop == "string");
|
|
@@ -636,7 +636,7 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
636
636
|
v[t] = e[t];
|
|
637
637
|
});
|
|
638
638
|
}
|
|
639
|
-
async function
|
|
639
|
+
async function I() {
|
|
640
640
|
return new Promise((e) => {
|
|
641
641
|
_.value?.validate((t, n) => e(n));
|
|
642
642
|
});
|
|
@@ -646,7 +646,7 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
646
646
|
setValues: ne,
|
|
647
647
|
clearValidate: M,
|
|
648
648
|
onSubmit: j,
|
|
649
|
-
validate:
|
|
649
|
+
validate: I
|
|
650
650
|
}), (t, o) => {
|
|
651
651
|
let s = w("el-input"), u = w("el-form-item"), d = w("el-form"), f = w("el-button");
|
|
652
652
|
return y(), i(e, null, [l(d, p({
|
|
@@ -674,11 +674,11 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
674
674
|
gridColumn: `span ${(r?.span || a.column) / 2 || 1}`
|
|
675
675
|
})
|
|
676
676
|
}, {
|
|
677
|
-
default: N(() => [r.render ? (y(), i(e, { key: 0 }, [A(
|
|
677
|
+
default: N(() => [r.render ? (y(), i(e, { key: 0 }, [A(X)(r, v).component ? (y(), n(E(A(X)(r, v).component), p({
|
|
678
678
|
key: 1,
|
|
679
679
|
modelValue: v[r.prop],
|
|
680
680
|
"onUpdate:modelValue": (e) => v[r.prop] = e
|
|
681
|
-
}, { ref_for: !0 }, A(
|
|
681
|
+
}, { ref_for: !0 }, A(X)(r, v).props, {
|
|
682
682
|
clearable: !0,
|
|
683
683
|
key: `${r.prop}-${m.value}`,
|
|
684
684
|
style: { display: "inline-block" },
|
|
@@ -687,13 +687,13 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
687
687
|
"modelValue",
|
|
688
688
|
"onUpdate:modelValue",
|
|
689
689
|
"class"
|
|
690
|
-
])) : (y(), i("span",
|
|
690
|
+
])) : (y(), i("span", Xe, O(A(X)(r, v) || "-"), 1)), (y(!0), i(e, null, S(r.slots, (e) => C(t.$slots, "default", { form: v }, () => [A(X)(e, v).component ? (y(), n(E(A(X)(e, v).component), p({
|
|
691
691
|
key: 1,
|
|
692
692
|
modelValue: v[e.prop],
|
|
693
693
|
"onUpdate:modelValue": (t) => v[e.prop] = t,
|
|
694
694
|
"default-value": e.defaultValue,
|
|
695
695
|
placeholder: e.placeholder
|
|
696
|
-
}, { ref_for: !0 }, A(
|
|
696
|
+
}, { ref_for: !0 }, A(X)(e, v).props, {
|
|
697
697
|
style: {
|
|
698
698
|
display: "inline-block",
|
|
699
699
|
marginLeft: "10px",
|
|
@@ -709,7 +709,7 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
709
709
|
"placeholder",
|
|
710
710
|
"style",
|
|
711
711
|
"class"
|
|
712
|
-
])) : (y(), i("span",
|
|
712
|
+
])) : (y(), i("span", Ze, O(A(X)(e, v) || "-"), 1))], !0)), 256))], 64)) : (y(), n(s, {
|
|
713
713
|
key: 1,
|
|
714
714
|
modelValue: v[r.prop],
|
|
715
715
|
"onUpdate:modelValue": (e) => v[r.prop] = e,
|
|
@@ -736,10 +736,10 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
736
736
|
"inline",
|
|
737
737
|
"label-position",
|
|
738
738
|
"class"
|
|
739
|
-
]), t.$attrs?.hideHandle ? r("", !0) : (y(), i("div",
|
|
739
|
+
]), t.$attrs?.hideHandle ? r("", !0) : (y(), i("div", Qe, [
|
|
740
740
|
C(t.$slots, "handle", { form: v }, void 0, !0),
|
|
741
741
|
l(f, {
|
|
742
|
-
icon: A(
|
|
742
|
+
icon: A(q),
|
|
743
743
|
onClick: o[0] ||= (e) => _.value && P(),
|
|
744
744
|
size: t.$props.size
|
|
745
745
|
}, {
|
|
@@ -747,7 +747,7 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
747
747
|
_: 1
|
|
748
748
|
}, 8, ["icon", "size"]),
|
|
749
749
|
l(f, {
|
|
750
|
-
icon: A(
|
|
750
|
+
icon: A(Ge),
|
|
751
751
|
type: "primary",
|
|
752
752
|
onClick: o[1] ||= (e) => _.value && j(_.value),
|
|
753
753
|
size: t.$props.size
|
|
@@ -758,7 +758,7 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
758
758
|
]))], 64);
|
|
759
759
|
};
|
|
760
760
|
}
|
|
761
|
-
}), [["__scopeId", "data-v-f8f2a1f5"]]),
|
|
761
|
+
}), [["__scopeId", "data-v-f8f2a1f5"]]), et = ["disabled"], Z = /* @__PURE__ */ u({
|
|
762
762
|
__name: "index",
|
|
763
763
|
props: /* @__PURE__ */ f({
|
|
764
764
|
defaultValue: { default: "" },
|
|
@@ -777,7 +777,7 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
777
777
|
setup(e, { emit: t }) {
|
|
778
778
|
let n = x(), r = j(e, "modelValue"), a = x(r.value || e.defaultValue || ""), o = null, s = t;
|
|
779
779
|
return _(() => {
|
|
780
|
-
o = new
|
|
780
|
+
o = new Ne({
|
|
781
781
|
element: n.value,
|
|
782
782
|
placeholder: "点击输入内容...",
|
|
783
783
|
content: r.value || e.defaultValue || "",
|
|
@@ -796,9 +796,9 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
796
796
|
ref: n,
|
|
797
797
|
style: { height: "500px" },
|
|
798
798
|
disabled: e.disabled
|
|
799
|
-
}, null, 8,
|
|
799
|
+
}, null, 8, et));
|
|
800
800
|
}
|
|
801
|
-
}),
|
|
801
|
+
}), tt = { class: "ui-tree-wrapper" }, nt = {
|
|
802
802
|
key: 0,
|
|
803
803
|
style: {
|
|
804
804
|
display: "flex",
|
|
@@ -807,14 +807,14 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
807
807
|
"align-items": "center",
|
|
808
808
|
gap: "10px"
|
|
809
809
|
}
|
|
810
|
-
},
|
|
810
|
+
}, rt = {
|
|
811
811
|
key: 0,
|
|
812
812
|
class: "custom-tree-node"
|
|
813
|
-
},
|
|
813
|
+
}, it = { class: "node-label" }, at = { style: {
|
|
814
814
|
color: "#ef4444",
|
|
815
815
|
display: "flex",
|
|
816
816
|
"align-items": "center"
|
|
817
|
-
} },
|
|
817
|
+
} }, ot = /* @__PURE__ */ G(/* @__PURE__ */ u({
|
|
818
818
|
__name: "index",
|
|
819
819
|
props: {
|
|
820
820
|
id: {},
|
|
@@ -847,7 +847,7 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
847
847
|
e?.stopPropagation(), d.value = t.id;
|
|
848
848
|
}
|
|
849
849
|
function g() {
|
|
850
|
-
|
|
850
|
+
V.prompt("请输入新的名称", "添加节点", {
|
|
851
851
|
confirmButtonText: "确定",
|
|
852
852
|
cancelButtonText: "取消",
|
|
853
853
|
callback: async (e) => {
|
|
@@ -859,7 +859,7 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
859
859
|
});
|
|
860
860
|
}
|
|
861
861
|
function _(e) {
|
|
862
|
-
|
|
862
|
+
V.prompt("请输入新的名称", "重命名", {
|
|
863
863
|
confirmButtonText: "确定",
|
|
864
864
|
cancelButtonText: "取消",
|
|
865
865
|
inputValue: e.label
|
|
@@ -872,8 +872,8 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
872
872
|
}
|
|
873
873
|
return (t, o) => {
|
|
874
874
|
let d = w("el-input"), b = w("el-icon"), x = w("el-button"), S = w("el-dropdown-item"), T = w("el-dropdown-menu"), E = w("el-dropdown"), D = w("el-tree-v2");
|
|
875
|
-
return y(), i("div",
|
|
876
|
-
e.filterable ? (y(), i("div",
|
|
875
|
+
return y(), i("div", tt, [
|
|
876
|
+
e.filterable ? (y(), i("div", nt, [l(d, {
|
|
877
877
|
modelValue: u.value,
|
|
878
878
|
"onUpdate:modelValue": o[0] ||= (e) => u.value = e,
|
|
879
879
|
placeholder: e.placeholder ?? "请输入",
|
|
@@ -887,7 +887,7 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
887
887
|
link: ""
|
|
888
888
|
}, {
|
|
889
889
|
default: N(() => [l(b, { size: 22 }, {
|
|
890
|
-
default: N(() => [l(A(
|
|
890
|
+
default: N(() => [l(A(ze), { onClick: o[1] ||= (e) => g() })]),
|
|
891
891
|
_: 1
|
|
892
892
|
})]),
|
|
893
893
|
_: 1
|
|
@@ -905,8 +905,8 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
905
905
|
"highlight-current": !0,
|
|
906
906
|
"filter-method": m
|
|
907
907
|
}), {
|
|
908
|
-
default: N((u) => [u?.data ? (y(), i("div",
|
|
909
|
-
default: N(() => [l(A(
|
|
908
|
+
default: N((u) => [u?.data ? (y(), i("div", rt, [a("div", it, [u.data?.children?.length ? (y(), n(b, { key: 0 }, {
|
|
909
|
+
default: N(() => [l(A(Ue))]),
|
|
910
910
|
_: 1
|
|
911
911
|
})) : r("", !0), c(" " + O(u.data?.[e.props?.label || "label"]) + " " + O(u.data?.children?.length ? `(${u.data.children.length})` : ""), 1)]), s.hideNodeHandle ? r("", !0) : (y(), n(E, {
|
|
912
912
|
key: 0,
|
|
@@ -919,7 +919,7 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
919
919
|
onClick: o[2] ||= (e) => g()
|
|
920
920
|
}, {
|
|
921
921
|
default: N(() => [l(b, null, {
|
|
922
|
-
default: N(() => [l(A(
|
|
922
|
+
default: N(() => [l(A(Ve))]),
|
|
923
923
|
_: 1
|
|
924
924
|
}), o[3] ||= c("添加 ", -1)]),
|
|
925
925
|
_: 1
|
|
@@ -929,7 +929,7 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
929
929
|
onClick: (e) => _(u.data)
|
|
930
930
|
}, {
|
|
931
931
|
default: N(() => [l(b, null, {
|
|
932
|
-
default: N(() => [l(A(
|
|
932
|
+
default: N(() => [l(A(He))]),
|
|
933
933
|
_: 1
|
|
934
934
|
}), o[4] ||= c("编辑 ", -1)]),
|
|
935
935
|
_: 1
|
|
@@ -938,8 +938,8 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
938
938
|
key: 2,
|
|
939
939
|
onClick: (e) => v(u.data)
|
|
940
940
|
}, {
|
|
941
|
-
default: N(() => [a("span",
|
|
942
|
-
default: N(() => [l(A(
|
|
941
|
+
default: N(() => [a("span", at, [l(b, null, {
|
|
942
|
+
default: N(() => [l(A(Be))]),
|
|
943
943
|
_: 1
|
|
944
944
|
}), o[5] ||= c("删除 ", -1)])]),
|
|
945
945
|
_: 1
|
|
@@ -949,7 +949,7 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
949
949
|
_: 2
|
|
950
950
|
}, 1024)]),
|
|
951
951
|
default: N(() => [l(b, { onClick: (e) => h(e, u.data) }, {
|
|
952
|
-
default: N(() => [l(A(
|
|
952
|
+
default: N(() => [l(A(We))]),
|
|
953
953
|
_: 1
|
|
954
954
|
}, 8, ["onClick"])]),
|
|
955
955
|
_: 2
|
|
@@ -959,13 +959,13 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
959
959
|
]);
|
|
960
960
|
};
|
|
961
961
|
}
|
|
962
|
-
}), [["__scopeId", "data-v-4495ddac"]]),
|
|
962
|
+
}), [["__scopeId", "data-v-4495ddac"]]), st = { style: { height: "100%" } }, ct = { style: {
|
|
963
963
|
display: "flex",
|
|
964
964
|
"flex-direction": "row",
|
|
965
965
|
"justify-content": "space-between",
|
|
966
966
|
"align-items": "center",
|
|
967
967
|
gap: "10px"
|
|
968
|
-
} },
|
|
968
|
+
} }, lt = { style: { margin: "10px 0px" } }, ut = ["onClick"], dt = { key: 0 }, ft = /* @__PURE__ */ G(/* @__PURE__ */ u({
|
|
969
969
|
__name: "index",
|
|
970
970
|
props: {
|
|
971
971
|
loading: { default: () => x(!1) },
|
|
@@ -986,14 +986,14 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
986
986
|
}
|
|
987
987
|
return (t, s) => {
|
|
988
988
|
let c = w("el-input");
|
|
989
|
-
return y(), i("div",
|
|
990
|
-
a("div",
|
|
989
|
+
return y(), i("div", st, [
|
|
990
|
+
a("div", ct, [o.filterable ? (y(), n(c, {
|
|
991
991
|
key: 0,
|
|
992
992
|
modelValue: l.value,
|
|
993
993
|
"onUpdate:modelValue": s[0] ||= (e) => l.value = e,
|
|
994
994
|
placeholder: o.placeholder ?? "请输入"
|
|
995
995
|
}, null, 8, ["modelValue", "placeholder"])) : r("", !0), C(t.$slots, "plus", {}, void 0, !0)]),
|
|
996
|
-
a("div",
|
|
996
|
+
a("div", lt, [C(t.$slots, "handle", {}, void 0, !0)]),
|
|
997
997
|
P((y(), i("ul", p({
|
|
998
998
|
class: "infinite-list",
|
|
999
999
|
"infinite-scroll-immediate": !1
|
|
@@ -1004,19 +1004,19 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
1004
1004
|
active: e === u.value
|
|
1005
1005
|
}),
|
|
1006
1006
|
onClick: (t) => f(e)
|
|
1007
|
-
}, [a("span", null, O(e[o.props?.label || "label"]), 1), C(t.$slots, "itemHandle", { data: e }, void 0, !0)], 10,
|
|
1008
|
-
o.loading.value ? (y(), i("p",
|
|
1007
|
+
}, [a("span", null, O(e[o.props?.label || "label"]), 1), C(t.$slots, "itemHandle", { data: e }, void 0, !0)], 10, ut))), 128))], 16)), [[A(o.vInfiniteScroll), o.vInfiniteScroll]]),
|
|
1008
|
+
o.loading.value ? (y(), i("p", dt, "loading...")) : r("", !0)
|
|
1009
1009
|
]);
|
|
1010
1010
|
};
|
|
1011
1011
|
}
|
|
1012
|
-
}), [["__scopeId", "data-v-2180fa82"]]),
|
|
1012
|
+
}), [["__scopeId", "data-v-2180fa82"]]), pt = {
|
|
1013
1013
|
key: 0,
|
|
1014
1014
|
style: {
|
|
1015
1015
|
padding: "10px 0px",
|
|
1016
1016
|
"margin-bottom": "10px",
|
|
1017
1017
|
"border-bottom": "1px solid #e5e5e5"
|
|
1018
1018
|
}
|
|
1019
|
-
},
|
|
1019
|
+
}, mt = { key: 1 }, ht = /* @__PURE__ */ G(/* @__PURE__ */ u({
|
|
1020
1020
|
__name: "index",
|
|
1021
1021
|
props: {
|
|
1022
1022
|
data: {},
|
|
@@ -1039,7 +1039,7 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
1039
1039
|
return (o, s) => {
|
|
1040
1040
|
let c = w("el-descriptions-item"), u = w("el-descriptions");
|
|
1041
1041
|
return y(), i(e, null, [
|
|
1042
|
-
t.title ? (y(), i("h4",
|
|
1042
|
+
t.title ? (y(), i("h4", pt, O(t.title), 1)) : r("", !0),
|
|
1043
1043
|
C(o.$slots, "title", {}, void 0, !0),
|
|
1044
1044
|
l(u, p({ column: t.column }, a, { class: "ui-descriptions" }), {
|
|
1045
1045
|
default: N(() => [(y(!0), i(e, null, S(t.fields, (e) => (y(), n(c, {
|
|
@@ -1047,15 +1047,15 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
1047
1047
|
label: e.label,
|
|
1048
1048
|
span: e.span || 2
|
|
1049
1049
|
}, {
|
|
1050
|
-
default: N(() => [e.render ? (y(), n(E(A(
|
|
1050
|
+
default: N(() => [e.render ? (y(), n(E(A(Y)(e, t.data).component), p({
|
|
1051
1051
|
key: 0,
|
|
1052
1052
|
modelValue: t.data[e.prop],
|
|
1053
1053
|
"onUpdate:modelValue": (n) => t.data[e.prop] = n
|
|
1054
|
-
}, { ref_for: !0 }, A(
|
|
1054
|
+
}, { ref_for: !0 }, A(Y)(e, t.data).props, {
|
|
1055
1055
|
clearable: !0,
|
|
1056
1056
|
key: e.prop,
|
|
1057
1057
|
style: { display: "inline-block" }
|
|
1058
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue"])) : (y(), i("span",
|
|
1058
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue"])) : (y(), i("span", mt, O(t.data[e.prop] || "-"), 1))]),
|
|
1059
1059
|
_: 2
|
|
1060
1060
|
}, 1032, ["label", "span"]))), 128))]),
|
|
1061
1061
|
_: 1
|
|
@@ -1063,10 +1063,10 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
1063
1063
|
], 64);
|
|
1064
1064
|
};
|
|
1065
1065
|
}
|
|
1066
|
-
}), [["__scopeId", "data-v-f02c30f9"]]),
|
|
1066
|
+
}), [["__scopeId", "data-v-f02c30f9"]]), gt = {
|
|
1067
1067
|
key: 0,
|
|
1068
1068
|
class: "dialog-footer"
|
|
1069
|
-
},
|
|
1069
|
+
}, _t = /* @__PURE__ */ G(/* @__PURE__ */ u({
|
|
1070
1070
|
__name: "index",
|
|
1071
1071
|
props: {
|
|
1072
1072
|
visible: { type: Boolean },
|
|
@@ -1103,7 +1103,7 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
1103
1103
|
default: N(() => [(y(), n(E(o.component), p({
|
|
1104
1104
|
ref_key: "slotRef",
|
|
1105
1105
|
ref: s
|
|
1106
|
-
}, o.componentProps), null, 16)), o.disabled ? r("", !0) : (y(), i("div",
|
|
1106
|
+
}, o.componentProps), null, 16)), o.disabled ? r("", !0) : (y(), i("div", gt, [l(a, { onClick: u }, {
|
|
1107
1107
|
default: N(() => [...t[1] ||= [c("取消", -1)]]),
|
|
1108
1108
|
_: 1
|
|
1109
1109
|
}), l(a, {
|
|
@@ -1124,14 +1124,14 @@ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
|
|
|
1124
1124
|
}), [["__scopeId", "data-v-fde928bf"]]);
|
|
1125
1125
|
//#endregion
|
|
1126
1126
|
//#region src/components/utils/render.ts
|
|
1127
|
-
function
|
|
1127
|
+
function vt(e) {
|
|
1128
1128
|
return d("template", { style: {
|
|
1129
1129
|
display: "flex",
|
|
1130
1130
|
flexDirection: "row",
|
|
1131
1131
|
flexWrap: "wrap"
|
|
1132
1132
|
} }, (Array.isArray(e) ? e : [e]).map((e) => {
|
|
1133
1133
|
let { text: t, ...n } = e;
|
|
1134
|
-
return d(
|
|
1134
|
+
return d(F, {
|
|
1135
1135
|
...n,
|
|
1136
1136
|
link: !0,
|
|
1137
1137
|
size: "small",
|
|
@@ -1139,19 +1139,19 @@ function Bn(e) {
|
|
|
1139
1139
|
}, () => t);
|
|
1140
1140
|
}));
|
|
1141
1141
|
}
|
|
1142
|
-
function
|
|
1142
|
+
function yt(e) {
|
|
1143
1143
|
return Array.isArray(e) ? d("div", { style: {
|
|
1144
1144
|
display: "flex",
|
|
1145
1145
|
gap: "8px",
|
|
1146
1146
|
flexDirection: "row",
|
|
1147
1147
|
flexWrap: "wrap"
|
|
1148
|
-
} }, e.map((e) => d(
|
|
1148
|
+
} }, e.map((e) => d(B, {
|
|
1149
1149
|
...e,
|
|
1150
1150
|
type: e.type || "primary"
|
|
1151
1151
|
}, d(W, {
|
|
1152
1152
|
lineClamp: e?.lineClamp,
|
|
1153
1153
|
type: e.type || "primary"
|
|
1154
|
-
}, () => e.prop)))) : d(
|
|
1154
|
+
}, () => e.prop)))) : d(B, {
|
|
1155
1155
|
...e,
|
|
1156
1156
|
type: e.type || "primary"
|
|
1157
1157
|
}, d(W, {
|
|
@@ -1159,7 +1159,7 @@ function Vn(e) {
|
|
|
1159
1159
|
type: e.type || "primary"
|
|
1160
1160
|
}, () => e.prop));
|
|
1161
1161
|
}
|
|
1162
|
-
function
|
|
1162
|
+
function bt(e) {
|
|
1163
1163
|
return d("div", { style: {
|
|
1164
1164
|
display: "flex",
|
|
1165
1165
|
gap: "4px",
|
|
@@ -1167,20 +1167,20 @@ function Hn(e) {
|
|
|
1167
1167
|
flexWrap: "wrap"
|
|
1168
1168
|
} }, (Array.isArray(e.prop) ? e.prop : [e.prop]).map((t) => d(U, e, () => t)));
|
|
1169
1169
|
}
|
|
1170
|
-
function
|
|
1170
|
+
function xt(e) {
|
|
1171
1171
|
return d(U, { ...e });
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1174
|
-
return d(
|
|
1173
|
+
function St(e) {
|
|
1174
|
+
return d(Te, {
|
|
1175
1175
|
style: { minWidth: "160px" },
|
|
1176
1176
|
...e,
|
|
1177
1177
|
placeholder: "请选择",
|
|
1178
1178
|
filterable: !0
|
|
1179
1179
|
});
|
|
1180
1180
|
}
|
|
1181
|
-
function
|
|
1181
|
+
function Ct(e) {
|
|
1182
1182
|
let t = e?.type === "datetime" ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
1183
|
-
return d(
|
|
1183
|
+
return d(L, {
|
|
1184
1184
|
format: t,
|
|
1185
1185
|
valueFormat: t,
|
|
1186
1186
|
startPlaceholder: "开始时间",
|
|
@@ -1190,9 +1190,9 @@ function Gn(e) {
|
|
|
1190
1190
|
"onUpdate:modelValue": (t) => e?.onChange?.(t)
|
|
1191
1191
|
});
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1193
|
+
function wt(e) {
|
|
1194
1194
|
let { start: t = "00:00", end: n = "23:30", ...r } = e;
|
|
1195
|
-
return d(
|
|
1195
|
+
return d(ke, {
|
|
1196
1196
|
start: t,
|
|
1197
1197
|
end: n,
|
|
1198
1198
|
...r,
|
|
@@ -1200,15 +1200,15 @@ function Kn(e) {
|
|
|
1200
1200
|
filterable: !0
|
|
1201
1201
|
});
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1204
|
-
return d(
|
|
1203
|
+
function Tt(e) {
|
|
1204
|
+
return d(R, {
|
|
1205
1205
|
...e,
|
|
1206
1206
|
placeholder: "请输入"
|
|
1207
1207
|
});
|
|
1208
1208
|
}
|
|
1209
|
-
function
|
|
1209
|
+
function Et(e) {
|
|
1210
1210
|
let { align: t = "left", controlsPosition: n = "right", ...r } = e;
|
|
1211
|
-
return d(
|
|
1211
|
+
return d(pe, {
|
|
1212
1212
|
align: t,
|
|
1213
1213
|
style: {
|
|
1214
1214
|
...e?.style || {},
|
|
@@ -1219,47 +1219,47 @@ function Jn(e) {
|
|
|
1219
1219
|
...r
|
|
1220
1220
|
});
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1222
|
+
function Dt(e) {
|
|
1223
1223
|
let { rows: t = 1, ...n } = e;
|
|
1224
|
-
return d(
|
|
1224
|
+
return d(R, {
|
|
1225
1225
|
placeholder: "请输入",
|
|
1226
1226
|
rows: t,
|
|
1227
1227
|
...n,
|
|
1228
1228
|
type: "textarea"
|
|
1229
1229
|
});
|
|
1230
1230
|
}
|
|
1231
|
-
function
|
|
1232
|
-
return d(
|
|
1231
|
+
function Ot(e) {
|
|
1232
|
+
return d(z, {
|
|
1233
1233
|
placeholder: "请输入",
|
|
1234
1234
|
...e,
|
|
1235
1235
|
clearable: !1
|
|
1236
1236
|
});
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1239
|
-
return d(
|
|
1238
|
+
function kt(e) {
|
|
1239
|
+
return d(Z, e);
|
|
1240
1240
|
}
|
|
1241
|
-
function
|
|
1242
|
-
return d(
|
|
1241
|
+
function At(e) {
|
|
1242
|
+
return d(H, e);
|
|
1243
1243
|
}
|
|
1244
|
-
function
|
|
1244
|
+
function jt(e) {
|
|
1245
1245
|
return d(W, e, () => e.prop);
|
|
1246
1246
|
}
|
|
1247
|
-
var
|
|
1248
|
-
button:
|
|
1249
|
-
link:
|
|
1250
|
-
tag:
|
|
1251
|
-
switch:
|
|
1252
|
-
select:
|
|
1253
|
-
datePicker:
|
|
1254
|
-
timeSelect:
|
|
1255
|
-
input:
|
|
1256
|
-
inputNumber:
|
|
1257
|
-
textarea:
|
|
1258
|
-
inputTag:
|
|
1259
|
-
editor:
|
|
1260
|
-
radio:
|
|
1261
|
-
text:
|
|
1262
|
-
},
|
|
1247
|
+
var Q = {
|
|
1248
|
+
button: vt,
|
|
1249
|
+
link: yt,
|
|
1250
|
+
tag: bt,
|
|
1251
|
+
switch: xt,
|
|
1252
|
+
select: St,
|
|
1253
|
+
datePicker: Ct,
|
|
1254
|
+
timeSelect: wt,
|
|
1255
|
+
input: Tt,
|
|
1256
|
+
inputNumber: Et,
|
|
1257
|
+
textarea: Dt,
|
|
1258
|
+
inputTag: Ot,
|
|
1259
|
+
editor: kt,
|
|
1260
|
+
radio: At,
|
|
1261
|
+
text: jt
|
|
1262
|
+
}, Mt = /* @__PURE__ */ u({
|
|
1263
1263
|
name: "UiColumn",
|
|
1264
1264
|
__name: "UiColumn",
|
|
1265
1265
|
props: {
|
|
@@ -1274,7 +1274,7 @@ var $ = {
|
|
|
1274
1274
|
let o = a, s = t;
|
|
1275
1275
|
function l(e, t, n) {
|
|
1276
1276
|
let r = {};
|
|
1277
|
-
Object.keys(
|
|
1277
|
+
Object.keys(Q).forEach((i) => {
|
|
1278
1278
|
let a = i;
|
|
1279
1279
|
r[a] = (r) => {
|
|
1280
1280
|
let i = Array.isArray(r) ? r : {
|
|
@@ -1286,7 +1286,7 @@ var $ = {
|
|
|
1286
1286
|
onChange: r?.onChange || ((e) => o("update:data", t, n.prop, e)),
|
|
1287
1287
|
onInput: r?.onInput || ((e) => o("update:data", t, n.prop, e))
|
|
1288
1288
|
};
|
|
1289
|
-
return
|
|
1289
|
+
return Q[a](i);
|
|
1290
1290
|
};
|
|
1291
1291
|
});
|
|
1292
1292
|
let i = n.render ? n.render({
|
|
@@ -1344,7 +1344,7 @@ var $ = {
|
|
|
1344
1344
|
]));
|
|
1345
1345
|
};
|
|
1346
1346
|
}
|
|
1347
|
-
}),
|
|
1347
|
+
}), $ = /* @__PURE__ */ G(/* @__PURE__ */ u({
|
|
1348
1348
|
__name: "index",
|
|
1349
1349
|
props: {
|
|
1350
1350
|
loading: {
|
|
@@ -1435,7 +1435,7 @@ var $ = {
|
|
|
1435
1435
|
"column-key": "index_1",
|
|
1436
1436
|
align: a.align
|
|
1437
1437
|
}, null, 8, ["align"])) : r("", !0),
|
|
1438
|
-
(y(!0), i(e, null, S(h.value, (e, t) => (y(), n(
|
|
1438
|
+
(y(!0), i(e, null, S(h.value, (e, t) => (y(), n(Mt, {
|
|
1439
1439
|
key: t + "column_" + e?.prop?.toString(),
|
|
1440
1440
|
column: e,
|
|
1441
1441
|
data: a.data,
|
|
@@ -1479,136 +1479,61 @@ var $ = {
|
|
|
1479
1479
|
]);
|
|
1480
1480
|
};
|
|
1481
1481
|
}
|
|
1482
|
-
}), [["__scopeId", "data-v-3402edfe"]]),
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
ElContainer: Ne,
|
|
1516
|
-
ElCountdown: Pe,
|
|
1517
|
-
ElDatePicker: Fe,
|
|
1518
|
-
ElDatePickerPanel: Ie,
|
|
1519
|
-
ElDescriptions: Le,
|
|
1520
|
-
ElDescriptionsItem: Re,
|
|
1521
|
-
ElDialog: ze,
|
|
1522
|
-
ElDivider: Be,
|
|
1523
|
-
ElDrawer: Ve,
|
|
1524
|
-
ElDropdown: He,
|
|
1525
|
-
ElDropdownItem: Ue,
|
|
1526
|
-
ElDropdownMenu: We,
|
|
1527
|
-
ElEmpty: Ge,
|
|
1528
|
-
ElFooter: Ke,
|
|
1529
|
-
ElForm: qe,
|
|
1530
|
-
ElFormItem: Je,
|
|
1531
|
-
ElHeader: Ye,
|
|
1532
|
-
ElIcon: Xe,
|
|
1533
|
-
ElImage: Ze,
|
|
1534
|
-
ElImageViewer: Qe,
|
|
1535
|
-
ElInput: I,
|
|
1536
|
-
ElInputNumber: L,
|
|
1537
|
-
ElInputOtp: $e,
|
|
1538
|
-
ElInputTag: R,
|
|
1539
|
-
ElLink: z,
|
|
1540
|
-
ElMain: et,
|
|
1541
|
-
ElMention: tt,
|
|
1542
|
-
ElMenu: nt,
|
|
1543
|
-
ElMenuItem: rt,
|
|
1544
|
-
ElMenuItemGroup: it,
|
|
1545
|
-
ElOption: at,
|
|
1546
|
-
ElOptionGroup: ot,
|
|
1547
|
-
ElOverlay: st,
|
|
1548
|
-
ElPageHeader: ct,
|
|
1549
|
-
ElPagination: lt,
|
|
1550
|
-
ElPopconfirm: ut,
|
|
1551
|
-
ElPopover: dt,
|
|
1552
|
-
ElPopper: ft,
|
|
1553
|
-
ElPopperArrow: pt,
|
|
1554
|
-
ElPopperContent: mt,
|
|
1555
|
-
ElPopperTrigger: ht,
|
|
1556
|
-
ElProgress: gt,
|
|
1557
|
-
ElRadio: _t,
|
|
1558
|
-
ElRadioButton: vt,
|
|
1559
|
-
ElRadioGroup: V,
|
|
1560
|
-
ElRate: yt,
|
|
1561
|
-
ElResult: bt,
|
|
1562
|
-
ElRow: xt,
|
|
1563
|
-
ElScrollbar: St,
|
|
1564
|
-
ElSegmented: Ct,
|
|
1565
|
-
ElSelect: H,
|
|
1566
|
-
ElSelectV2: wt,
|
|
1567
|
-
ElSkeleton: Tt,
|
|
1568
|
-
ElSkeletonItem: Et,
|
|
1569
|
-
ElSlider: Dt,
|
|
1570
|
-
ElSpace: Ot,
|
|
1571
|
-
ElSplitter: kt,
|
|
1572
|
-
ElSplitterPanel: At,
|
|
1573
|
-
ElStatistic: jt,
|
|
1574
|
-
ElStep: Mt,
|
|
1575
|
-
ElSteps: Nt,
|
|
1576
|
-
ElSubMenu: Pt,
|
|
1577
|
-
ElSwitch: Ft,
|
|
1578
|
-
ElTabPane: It,
|
|
1579
|
-
ElTable: Lt,
|
|
1580
|
-
ElTableColumn: Rt,
|
|
1581
|
-
ElTableV2: zt,
|
|
1582
|
-
ElTabs: Bt,
|
|
1482
|
+
}), [["__scopeId", "data-v-3402edfe"]]), Nt = {
|
|
1483
|
+
ElButton: F,
|
|
1484
|
+
ElCard: ne,
|
|
1485
|
+
ElCol: I,
|
|
1486
|
+
ElConfigProvider: re,
|
|
1487
|
+
ElDatePicker: L,
|
|
1488
|
+
ElDescriptions: ie,
|
|
1489
|
+
ElDescriptionsItem: ae,
|
|
1490
|
+
ElDialog: oe,
|
|
1491
|
+
ElDropdown: se,
|
|
1492
|
+
ElDropdownItem: ce,
|
|
1493
|
+
ElDropdownMenu: le,
|
|
1494
|
+
ElForm: ue,
|
|
1495
|
+
ElFormItem: de,
|
|
1496
|
+
ElIcon: fe,
|
|
1497
|
+
ElInput: R,
|
|
1498
|
+
ElInputNumber: pe,
|
|
1499
|
+
ElInputTag: z,
|
|
1500
|
+
ElLink: B,
|
|
1501
|
+
ElOption: ge,
|
|
1502
|
+
ElOptionGroup: _e,
|
|
1503
|
+
ElPagination: ve,
|
|
1504
|
+
ElPopconfirm: ye,
|
|
1505
|
+
ElPopover: be,
|
|
1506
|
+
ElRadio: xe,
|
|
1507
|
+
ElRadioButton: Se,
|
|
1508
|
+
ElRadioGroup: H,
|
|
1509
|
+
ElRow: Ce,
|
|
1510
|
+
ElScrollbar: we,
|
|
1511
|
+
ElSelect: Te,
|
|
1512
|
+
ElSwitch: Ee,
|
|
1513
|
+
ElTable: De,
|
|
1514
|
+
ElTableColumn: Oe,
|
|
1583
1515
|
ElTag: U,
|
|
1584
1516
|
ElText: W,
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
UiInfiniteScroll: Pn,
|
|
1606
|
-
UiDescriptions: Ln,
|
|
1607
|
-
UiDialog: zn
|
|
1608
|
-
}, ir = { install(e) {
|
|
1609
|
-
for (let [, t] of Object.entries(nr)) t?.name && e.component(t.name, t);
|
|
1610
|
-
$t({ locale: tn });
|
|
1611
|
-
for (let [t, n] of Object.entries(rr)) e.component(t, n);
|
|
1517
|
+
ElTimeSelect: ke,
|
|
1518
|
+
ElTreeV2: Ae,
|
|
1519
|
+
ElUpload: je,
|
|
1520
|
+
ElMessageBox: V,
|
|
1521
|
+
ElMessage: me,
|
|
1522
|
+
ElNotification: he
|
|
1523
|
+
}, Pt = {
|
|
1524
|
+
UiCard: K,
|
|
1525
|
+
UiTable: $,
|
|
1526
|
+
UiFilter: Ye,
|
|
1527
|
+
UiForm: $e,
|
|
1528
|
+
UiEditor: Z,
|
|
1529
|
+
UiTree: ot,
|
|
1530
|
+
UiInfiniteScroll: ft,
|
|
1531
|
+
UiDescriptions: ht,
|
|
1532
|
+
UiDialog: _t
|
|
1533
|
+
}, Ft = { install(e) {
|
|
1534
|
+
for (let [, t] of Object.entries(Nt)) t?.name && e.component(t.name, t);
|
|
1535
|
+
Me({ locale: Pe });
|
|
1536
|
+
for (let [t, n] of Object.entries(Pt)) e.component(t, n);
|
|
1612
1537
|
} };
|
|
1613
1538
|
//#endregion
|
|
1614
|
-
export {
|
|
1539
|
+
export { K as UiCard, ht as UiDescriptions, _t as UiDialog, Z as UiEditor, Ye as UiFilter, $e as UiForm, ft as UiInfiniteScroll, $ as UiTable, ot as UiTree, Ft as default };
|
package/dist/vep-ui.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`vue`),require(`element-plus`),require(`aieditor`)):typeof define==`function`&&define.amd?define([`exports`,`vue`,`element-plus`,`aieditor`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.VepUi={},e.Vue,e.ElementPlus,e.AiEditor))})(this,function(e,t,n,r){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var i={name:`zh-cn`,el:{breadcrumb:{label:`面包屑`},colorpicker:{confirm:`确定`,clear:`清空`,defaultLabel:`颜色选择器`,description:`当前颜色 {color},按 Enter 键选择新颜色`,alphaLabel:`选择透明度的值`,alphaDescription:`透明度 {alpha}, 当前颜色 {color}`,hueLabel:`选择色相值`,hueDescription:`色相 {hue}, 当前颜色 {color}`,svLabel:`选择饱和度与明度的值`,svDescription:`饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}`,predefineDescription:`选择 {value} 作为颜色`},datepicker:{now:`此刻`,today:`今天`,cancel:`取消`,clear:`清空`,confirm:`确定`,dateTablePrompt:`使用方向键与 Enter 键可选择日期`,monthTablePrompt:`使用方向键与 Enter 键可选择月份`,yearTablePrompt:`使用方向键与 Enter 键可选择年份`,selectedDate:`已选日期`,selectDate:`选择日期`,selectTime:`选择时间`,startDate:`开始日期`,startTime:`开始时间`,endDate:`结束日期`,endTime:`结束时间`,prevYear:`前一年`,nextYear:`后一年`,prevMonth:`上个月`,nextMonth:`下个月`,year:`年`,month1:`1 月`,month2:`2 月`,month3:`3 月`,month4:`4 月`,month5:`5 月`,month6:`6 月`,month7:`7 月`,month8:`8 月`,month9:`9 月`,month10:`10 月`,month11:`11 月`,month12:`12 月`,weeks:{sun:`日`,mon:`一`,tue:`二`,wed:`三`,thu:`四`,fri:`五`,sat:`六`},weeksFull:{sun:`星期日`,mon:`星期一`,tue:`星期二`,wed:`星期三`,thu:`星期四`,fri:`星期五`,sat:`星期六`},months:{jan:`一月`,feb:`二月`,mar:`三月`,apr:`四月`,may:`五月`,jun:`六月`,jul:`七月`,aug:`八月`,sep:`九月`,oct:`十月`,nov:`十一月`,dec:`十二月`}},inputNumber:{decrease:`减少数值`,increase:`增加数值`},select:{loading:`加载中`,noMatch:`无匹配数据`,noData:`无数据`,placeholder:`请选择`},mention:{loading:`加载中`},dropdown:{toggleDropdown:`切换下拉选项`},cascader:{noMatch:`无匹配数据`,loading:`加载中`,placeholder:`请选择`,noData:`暂无数据`},pagination:{goto:`前往`,pagesize:`条/页`,total:`共 {total} 条`,pageClassifier:`页`,page:`页`,prev:`上一页`,next:`下一页`,currentPage:`第 {pager} 页`,prevPages:`向前 {pager} 页`,nextPages:`向后 {pager} 页`,deprecationWarning:`你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档`},dialog:{close:`关闭此对话框`},drawer:{close:`关闭此对话框`},messagebox:{title:`提示`,confirm:`确定`,cancel:`取消`,error:`输入的数据不合法!`,close:`关闭此对话框`},upload:{deleteTip:`按 Delete 键可删除`,delete:`删除`,preview:`查看图片`,continue:`继续上传`},slider:{defaultLabel:`滑块介于 {min} 至 {max}`,defaultRangeStartLabel:`选择起始值`,defaultRangeEndLabel:`选择结束值`},table:{emptyText:`暂无数据`,confirmFilter:`筛选`,resetFilter:`重置`,clearFilter:`全部`,sumText:`合计`,selectAllLabel:`选择所有行`,selectRowLabel:`选择当前行`,expandRowLabel:`展开当前行`,collapseRowLabel:`收起当前行`,sortLabel:`按 {column} 排序`,filterLabel:`按 {column} 过滤`},tag:{close:`关闭此标签`},tour:{next:`下一步`,previous:`上一步`,finish:`结束导览`,close:`关闭此对话框`},tree:{emptyText:`暂无数据`},transfer:{noMatch:`无匹配数据`,noData:`无数据`,titles:[`列表 1`,`列表 2`],filterPlaceholder:`请输入搜索内容`,noCheckedFormat:`共 {total} 项`,hasCheckedFormat:`已选 {checked}/{total} 项`},image:{error:`加载失败`},pageHeader:{title:`返回`},popconfirm:{confirmButtonText:`确定`,cancelButtonText:`取消`},carousel:{leftArrow:`上一张幻灯片`,rightArrow:`下一张幻灯片`,indicator:`幻灯片切换至索引 {index}`},inputOTP:{groupLabel:`一次性密码输入框`,defaultLabel:`请输入第 {index} 位 OTP 字符`}}},a={class:(0,t.normalizeClass)({bodyClass:!0})},o=(0,t.defineComponent)({__name:`index`,props:{title:{},bodyClass:{},hideBorder:{type:Boolean},icon:{}},setup(e){let n=(0,t.computed)(()=>({display:`flex`,alignItems:`center`,gap:`4px`,borderBottom:e.hideBorder?`1px solid #e5e7eb`:`none`}));return(r,i)=>{let o=(0,t.resolveComponent)(`el-icon`),s=(0,t.resolveComponent)(`el-card`);return(0,t.openBlock)(),(0,t.createBlock)(s,(0,t.mergeProps)(r.$attrs,{class:{"ui-card":!0,hideBorder:e.hideBorder}}),(0,t.createSlots)({default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,a,[(0,t.renderSlot)(r.$slots,`default`,{},void 0,!0)])]),_:2},[e.title&&e.title?.length>0?{name:`header`,fn:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{style:(0,t.normalizeStyle)(n.value)},[e.icon?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.icon),{color:`#2563eb`}))]),_:1})):(0,t.createCommentVNode)(``,!0),i[0]||((0,t.setBlockTracking)(-1,!0),(i[0]=(0,t.createElementVNode)(`h4`,null,[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)])).cacheIndex=0,(0,t.setBlockTracking)(1),i[0])],4)]),key:`0`}:void 0]),1040,[`class`])}}}),s=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},c=s(o,[[`__scopeId`,`data-v-ae248017`]]),l=(0,t.defineComponent)({name:`ArrowRight`,__name:`arrow-right`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z`})]))}}),u=(0,t.defineComponent)({name:`ArrowUp`,__name:`arrow-up`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0`})]))}}),d=(0,t.defineComponent)({name:`CirclePlus`,__name:`circle-plus`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64`}),(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0`}),(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896`})]))}}),f=(0,t.defineComponent)({name:`Delete`,__name:`delete`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32`})]))}}),p=(0,t.defineComponent)({name:`DocumentAdd`,__name:`document-add`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z`})]))}}),m=(0,t.defineComponent)({name:`Edit`,__name:`edit`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z`}),(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z`})]))}}),h=(0,t.defineComponent)({name:`Folder`,__name:`folder`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32`})]))}}),g=(0,t.defineComponent)({name:`MoreFilled`,__name:`more-filled`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224`})]))}}),_=(0,t.defineComponent)({name:`Promotion`,__name:`promotion`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z`})]))}}),v=(0,t.defineComponent)({name:`Refresh`,__name:`refresh`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z`})]))}}),y=(0,t.defineComponent)({name:`Search`,__name:`search`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704`})]))}});function b(e){return typeof e==`number`?e+`px`:e||`100px`}function x(e){return typeof e==`number`?e+`px`:e||`180px`}function S(e,t){let n={};return Object.keys(Q).forEach(r=>{let i=r;n[i]=(n={})=>({props:{prop:e.prop,...n,"onUpdate:modelValue":n=>t[e.prop]=n,onChange:r=>n.onChange?.(r)||(t[e.prop]=r)},type:i,component:Q[i]})}),(n=>typeof e.render==`function`?e.render({h:n,data:t}):n.input(n.props||{}))(n)}function C(e,t){let n=S(e,t);return typeof n==`object`&&(n.component||=n),n}var w={class:`filter-buttons`},T=s((0,t.defineComponent)({name:`UiDefaultFilter`,__name:`index`,props:{type:{},size:{default:`default`},fields:{},expandNum:{},valueWidth:{default:`100%`},labelWidth:{default:`100px`},omitFields:{default:()=>[]},rules:{},required:{type:Boolean},column:{default:4},filterFixedValues:{default:()=>({page:1})}},emits:[`submit`,`reset`,`search`],setup(e,{emit:n}){let r=n,i=(0,t.createPropsRestProxy)(e,[`fields`,`labelWidth`,`valueWidth`,`omitFields`,`column`,`size`,`filterFixedValues`]),a=(0,t.reactive)({expandNum:0,expand:!1}),o=(0,t.reactive)({}),s=(0,t.computed)(()=>e.fields.slice(0,a.expand?e.fields.length:a.expandNum)),c=(0,t.computed)(()=>24-s.value?.reduce((t,n)=>t+(n.span||24/e.column),0)%24-24/e.column);(0,t.onMounted)(()=>{a.expandNum=i?.expandNum??2*e.column-1,e.fields.forEach(e=>{let t=S(e,o)?.props?.defaultValue;t!==void 0&&(o[e.prop]=t)})});function d(){let n={};Object.keys(o).forEach(e=>{if(o[e]!==void 0){let r=(0,t.toValue)(o[e]);n[e]=typeof r==`string`?r.trim():r}}),r(`submit`,{...n,...e.filterFixedValues}),r(`search`,{...n,...e.filterFixedValues})}function f(){Object.keys(o).forEach(t=>{e.omitFields.includes(t)||(o[t]=void 0)}),r(`reset`,o)}return(n,r)=>{let i=(0,t.resolveComponent)(`el-input`),p=(0,t.resolveComponent)(`el-form-item`),m=(0,t.resolveComponent)(`el-col`),h=(0,t.resolveComponent)(`el-button`),g=(0,t.resolveComponent)(`el-row`),_=(0,t.resolveComponent)(`el-form`);return(0,t.openBlock)(),(0,t.createBlock)(_,(0,t.mergeProps)({model:o,class:`ui-filter`,size:e.size},n.$attrs),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(g,{gutter:20},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.value,n=>((0,t.openBlock)(),(0,t.createBlock)(m,{span:n.span||24/e.column},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)(p,{key:n.prop,label:n.label,"label-width":(0,t.unref)(b)(n?.labelWidth||e.labelWidth),"value-width":(0,t.unref)(x)(n?.valueWidth||e.valueWidth)},{default:(0,t.withCtx)(()=>[n.render?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(S)(n,o).component),(0,t.mergeProps)({key:0,modelValue:o[n.prop],"onUpdate:modelValue":e=>o[n.prop]=e},{ref_for:!0},(0,t.unref)(S)(n,o).props,{clearable:!0,style:{width:(0,t.unref)(x)(n?.valueWidth||e.valueWidth)}}),null,16,[`modelValue`,`onUpdate:modelValue`,`style`])):((0,t.openBlock)(),(0,t.createBlock)(i,{key:1,modelValue:o[n.prop],"onUpdate:modelValue":e=>o[n.prop]=e,placeholder:`请输入`,clearable:!0,style:(0,t.normalizeStyle)({width:(0,t.unref)(x)(n?.valueWidth||e.valueWidth)})},null,8,[`modelValue`,`onUpdate:modelValue`,`style`]))]),_:2},1032,[`label`,`label-width`,`value-width`]))]),_:2},1032,[`span`]))),256)),(0,t.createVNode)(m,{span:24/e.column,offset:c.value},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,{label:``,"label-width":`30px`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,w,[(0,t.renderSlot)(n.$slots,`left`,{form:o},void 0,!0),e.fields.length>=2*e.column?((0,t.openBlock)(),(0,t.createBlock)(h,{key:0,text:``,icon:a.expand?(0,t.unref)(u):(0,t.unref)(l),onClick:r[0]||=e=>a.expand=!a.expand},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(a.expand?`收起`:`展开`),1)]),_:1},8,[`icon`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(h,{icon:(0,t.unref)(y),type:`primary`,onClick:d},{default:(0,t.withCtx)(()=>[...r[1]||=[(0,t.createTextVNode)(`查询`,-1)]]),_:1},8,[`icon`]),(0,t.createVNode)(h,{icon:(0,t.unref)(v),onClick:f},{default:(0,t.withCtx)(()=>[...r[2]||=[(0,t.createTextVNode)(`重置`,-1)]]),_:1},8,[`icon`]),(0,t.renderSlot)(n.$slots,`handle`,{form:o},void 0,!0),(0,t.renderSlot)(n.$slots,`right`,{form:o},void 0,!0)])]),_:3})]),_:3},8,[`span`,`offset`])]),_:3})]),_:3},16,[`model`,`size`])}}}),[[`__scopeId`,`data-v-45f0642b`]]),E={key:0,style:{display:`inline-block`}},D={key:0,style:{display:`inline-block`}},O={key:0,class:`ui-form-buttons`},k=s((0,t.defineComponent)({__name:`index`,props:{fields:{},expandNum:{},valueWidth:{default:`auto`},labelWidth:{default:`100px`},labelPosition:{default:`top`},omitFields:{default:()=>[]},rules:{default:()=>(0,t.reactive)({})},required:{type:Boolean},column:{default:24},defaultValues:{},form:{},valueModel:{default:`default`},size:{}},emits:[`submit`,`reset`],setup(e,{expose:n,emit:r}){(0,t.useCssVars)(e=>({ec46e5ec:e.column/2}));let i=r,a=(0,t.createPropsRestProxy)(e,[`fields`,`labelWidth`,`valueWidth`,`omitFields`,`rules`,`labelPosition`,`valueModel`,`column`]),o=(0,t.ref)(0),s=(0,t.ref)(),c=(0,t.reactive)({}),l=(0,t.computed)(()=>{let n=(0,t.toValue)(c);return e.fields.forEach(e=>{let t=e.prop?n?.[e.prop]:void 0,r=C(e,c)?.props?.defaultValue;c[e.prop]=t??r??void 0,e?.slots&&e?.slots?.length>0&&e.slots.forEach(e=>{let t=e.prop?n?.[e.prop]:void 0,r=C(e,c)?.props?.defaultValue;c[e.prop]=t??r??void 0})}),e.fields.filter(e=>typeof e.prop==`string`)}),u=(0,t.computed)(()=>{if(e.rules&&Object.keys(e.rules).length)return e.rules;let t={};return l.value.forEach(e=>{e.rules&&Object.keys(e.rules).length?t[e.prop]=e.rules:e.required&&(t[e.prop]=[{required:!0,message:`请输入`+e.label,trigger:`change`}])}),t});(0,t.watchEffect)(()=>{Object.assign(c,a?.form)});async function d(e){let n=!0;if(await e.validate(e=>{n=e}),!n)return;let r={};Object.keys(c).forEach(e=>{c[e]!==void 0&&(r[e]=(0,t.toValue)(c[e]))}),i(`submit`,r)}function f(){s&&s.value?.clearValidate()}function p(){Object.keys(c).forEach(t=>{e.omitFields.includes(t)||(c[t]=void 0)}),o.value+=1,i(`reset`,c)}function m(){return c}function h(e){Object.keys(e).forEach(t=>{c[t]=e[t]})}async function g(){return new Promise(e=>{s.value?.validate((t,n)=>e(n))})}return n({getValues:m,setValues:h,clearValidate:f,onSubmit:d,validate:g}),(n,r)=>{let i=(0,t.resolveComponent)(`el-input`),a=(0,t.resolveComponent)(`el-form-item`),f=(0,t.resolveComponent)(`el-form`),m=(0,t.resolveComponent)(`el-button`);return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createVNode)(f,(0,t.mergeProps)({ref_key:`uiFormRef`,ref:s,model:c},n.$attrs,{rules:u.value,inline:e.labelPosition!==`top`,"label-position":e.labelPosition,class:{"ui-form":!0,horizontal:e.labelPosition!==`top`},"validate-on-rule-change":!1}),{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(l.value,r=>((0,t.openBlock)(),(0,t.createBlock)(a,{key:r.prop,label:r.label,"label-width":e.labelWidth,"value-width":e.valueWidth,prop:r.prop,style:(0,t.normalizeStyle)({width:`${r?.width?r?.width+`px`:`100%`}`,gridColumn:`span ${(r?.span||e.column)/2||1}`})},{default:(0,t.withCtx)(()=>[r.render?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.unref)(C)(r,c).component?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(C)(r,c).component),(0,t.mergeProps)({key:1,modelValue:c[r.prop],"onUpdate:modelValue":e=>c[r.prop]=e},{ref_for:!0},(0,t.unref)(C)(r,c).props,{clearable:!0,key:`${r.prop}-${o.value}`,style:{display:`inline-block`},class:{underline:e.valueModel===`underline`}}),null,16,[`modelValue`,`onUpdate:modelValue`,`class`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,E,(0,t.toDisplayString)((0,t.unref)(C)(r,c)||`-`),1)),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.slots,r=>(0,t.renderSlot)(n.$slots,`default`,{form:c},()=>[(0,t.unref)(C)(r,c).component?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(C)(r,c).component),(0,t.mergeProps)({key:1,modelValue:c[r.prop],"onUpdate:modelValue":e=>c[r.prop]=e,"default-value":r.defaultValue,placeholder:r.placeholder},{ref_for:!0},(0,t.unref)(C)(r,c).props,{style:{display:`inline-block`,marginLeft:`10px`,width:`${r.width?r.width+`px`:`100%`}`},class:{underline:e.valueModel===`underline`},clearable:!0,key:`${r.prop}-${o.value}`}),null,16,[`modelValue`,`onUpdate:modelValue`,`default-value`,`placeholder`,`style`,`class`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,D,(0,t.toDisplayString)((0,t.unref)(C)(r,c)||`-`),1))],!0)),256))],64)):((0,t.openBlock)(),(0,t.createBlock)(i,{key:1,modelValue:c[r.prop],"onUpdate:modelValue":e=>c[r.prop]=e,placeholder:`请输入`,clearable:!0,class:(0,t.normalizeClass)({underline:e.valueModel===`underline`})},null,8,[`modelValue`,`onUpdate:modelValue`,`class`]))]),_:2},1032,[`label`,`label-width`,`value-width`,`prop`,`style`]))),128))]),_:3},16,[`model`,`rules`,`inline`,`label-position`,`class`]),n.$attrs?.hideHandle?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,O,[(0,t.renderSlot)(n.$slots,`handle`,{form:c},void 0,!0),(0,t.createVNode)(m,{icon:(0,t.unref)(v),onClick:r[0]||=e=>s.value&&p(),size:n.$props.size},{default:(0,t.withCtx)(()=>[...r[2]||=[(0,t.createTextVNode)(`重置`,-1)]]),_:1},8,[`icon`,`size`]),(0,t.createVNode)(m,{icon:(0,t.unref)(_),type:`primary`,onClick:r[1]||=e=>s.value&&d(s.value),size:n.$props.size},{default:(0,t.withCtx)(()=>[...r[3]||=[(0,t.createTextVNode)(`提交`,-1)]]),_:1},8,[`icon`,`size`])]))],64)}}}),[[`__scopeId`,`data-v-f8f2a1f5`]]),A=[`disabled`],j=(0,t.defineComponent)({__name:`index`,props:(0,t.mergeModels)({defaultValue:{default:``},disabled:{type:Boolean,default:!1}},{modelValue:{type:String,default:``},modelModifiers:{}}),emits:(0,t.mergeModels)([`change`],[`update:modelValue`]),setup(e,{emit:n}){let i=(0,t.ref)(),a=(0,t.useModel)(e,`modelValue`),o=(0,t.ref)(a.value||e.defaultValue||``),s=null,c=n;return(0,t.onMounted)(()=>{s=new r.AiEditor({element:i.value,placeholder:`点击输入内容...`,content:a.value||e.defaultValue||``,toolbarExcludeKeys:[`ai`],onChange:e=>{let t=e.getHtml();a.value=t,o.value=t,c(`change`,t)}}),s.setEditable(!e.disabled)}),(0,t.watch)(a,e=>{s&&e!==s.getHtml()&&s.setContent(e)}),(0,t.onUnmounted)(()=>{s&&s.destroy()}),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`editorRef`,ref:i,style:{height:`500px`},disabled:e.disabled},null,8,A))}}),ee={class:`ui-tree-wrapper`},te={key:0,style:{display:`flex`,"flex-direction":`row`,"justify-content":`space-between`,"align-items":`center`,gap:`10px`}},ne={key:0,class:`custom-tree-node`},M={class:`node-label`},N={style:{color:`#ef4444`,display:`flex`,"align-items":`center`}},P=s((0,t.defineComponent)({__name:`index`,props:{id:{},data:{default:()=>[]},filterable:{type:Boolean},placeholder:{},hidePlusHandle:{type:Boolean},hideNodeAdd:{type:Boolean},hideNodeEdit:{type:Boolean},hideNodeDel:{type:Boolean},hideNodeHandle:{type:Boolean},nodeKey:{},props:{default:()=>({label:`label`})}},emits:[`change`],setup(e,{emit:r}){let i=(0,t.createPropsRestProxy)(e,[`filterable`,`placeholder`,`data`,`props`]),a=(0,t.ref)(``),o=(0,t.ref)(),s=(0,t.ref)(null);(0,t.watch)(a,t=>{e.filterable&&s.value.filter(t)});function c(t,n){return t?n?.[e.props?.label||`label`]?.includes(t)??!1:!0}function l(e,t){e?.stopPropagation(),o.value=t.id}function u(){n.ElMessageBox.prompt(`请输入新的名称`,`添加节点`,{confirmButtonText:`确定`,cancelButtonText:`取消`,callback:async e=>{if(e.action===`confirm`){if(!i?.id)return;console.log(`添加 =》》`,e?.value)}}})}function _(e){n.ElMessageBox.prompt(`请输入新的名称`,`重命名`,{confirmButtonText:`确定`,cancelButtonText:`取消`,inputValue:e.label}).then(async({value:e})=>{console.log(`修改节点 =》》`,e)})}async function v(e){e.id&&console.log(`删除节点 =》》`,e.id)}return(n,r)=>{let o=(0,t.resolveComponent)(`el-input`),y=(0,t.resolveComponent)(`el-icon`),b=(0,t.resolveComponent)(`el-button`),x=(0,t.resolveComponent)(`el-dropdown-item`),S=(0,t.resolveComponent)(`el-dropdown-menu`),C=(0,t.resolveComponent)(`el-dropdown`),w=(0,t.resolveComponent)(`el-tree-v2`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,ee,[e.filterable?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,te,[(0,t.createVNode)(o,{modelValue:a.value,"onUpdate:modelValue":r[0]||=e=>a.value=e,placeholder:e.placeholder??`请输入`,clearable:``},null,8,[`modelValue`,`placeholder`]),i?.hidePlusHandle?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(b,{key:0,style:{margin:`0px`,padding:`0px`},link:``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(y,{size:22},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(d),{onClick:r[1]||=e=>u()})]),_:1})]),_:1}))])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`handle`,{style:`margin-top: 8px`},void 0,!0),(0,t.createVNode)(w,(0,t.mergeProps)({ref_key:`treeRef`,ref:s,style:{"margin-top":`8px`}},{...n.$props,...n.$attrs},{"node-key":i?.nodeKey||`id`,"highlight-current":!0,"filter-method":c}),{default:(0,t.withCtx)(a=>[a?.data?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ne,[(0,t.createElementVNode)(`div`,M,[a.data?.children?.length?((0,t.openBlock)(),(0,t.createBlock)(y,{key:0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(h))]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(a.data?.[e.props?.label||`label`])+` `+(0,t.toDisplayString)(a.data?.children?.length?`(${a.data.children.length})`:``),1)]),i.hideNodeHandle?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(C,{key:0,trigger:`click`},{dropdown:(0,t.withCtx)(()=>[(0,t.createVNode)(S,null,{default:(0,t.withCtx)(()=>[i?.hideNodeAdd?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(x,{key:0,onClick:r[2]||=e=>u()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(y,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(p))]),_:1}),r[3]||=(0,t.createTextVNode)(`添加 `,-1)]),_:1})),i?.hideNodeEdit?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(x,{key:1,onClick:e=>_(a.data)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(y,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(m))]),_:1}),r[4]||=(0,t.createTextVNode)(`编辑 `,-1)]),_:1},8,[`onClick`])),i?.hideNodeDel?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(x,{key:2,onClick:e=>v(a.data)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,N,[(0,t.createVNode)(y,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(f))]),_:1}),r[5]||=(0,t.createTextVNode)(`删除 `,-1)])]),_:1},8,[`onClick`])),(0,t.renderSlot)(n.$slots,`node-handle`,{data:a.data},void 0,!0)]),_:2},1024)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(y,{onClick:e=>l(e,a.data)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(g))]),_:1},8,[`onClick`])]),_:2},1024))])):(0,t.createCommentVNode)(``,!0)]),_:3},16,[`node-key`])])}}}),[[`__scopeId`,`data-v-4495ddac`]]),F={style:{height:`100%`}},I={style:{display:`flex`,"flex-direction":`row`,"justify-content":`space-between`,"align-items":`center`,gap:`10px`}},L={style:{margin:`10px 0px`}},R=[`onClick`],z={key:0},B=s((0,t.defineComponent)({__name:`index`,props:{loading:{default:()=>(0,t.ref)(!1)},data:{},placeholder:{},props:{},vInfiniteScroll:{type:Function},filterable:{type:Boolean}},emits:[`node-click`],setup(e,{emit:n}){let r=n,i=(0,t.ref)(``),a=(0,t.ref)(),o=(0,t.computed)(()=>i.value?e.data.filter(t=>t[e.props?.label||`label`]?.includes(i.value)):e.data);(0,t.watch)(()=>[a.value,e.data?.[0]],t=>{!t[0]&&t[1]&&(a.value=e.data?.[0])},{immediate:!0});function s(e){a.value=e,r(`node-click`,e)}return(n,r)=>{let c=(0,t.resolveComponent)(`el-input`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,F,[(0,t.createElementVNode)(`div`,I,[e.filterable?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,modelValue:i.value,"onUpdate:modelValue":r[0]||=e=>i.value=e,placeholder:e.placeholder??`请输入`},null,8,[`modelValue`,`placeholder`])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`plus`,{},void 0,!0)]),(0,t.createElementVNode)(`div`,L,[(0,t.renderSlot)(n.$slots,`handle`,{},void 0,!0)]),(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,(0,t.mergeProps)({class:`infinite-list`,"infinite-scroll-immediate":!1},n.$attrs),[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.value,(r,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:`infinite-list-`+i,class:(0,t.normalizeClass)({"infinite-list-item":!0,active:r===a.value}),onClick:e=>s(r)},[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(r[e.props?.label||`label`]),1),(0,t.renderSlot)(n.$slots,`itemHandle`,{data:r},void 0,!0)],10,R))),128))],16)),[[(0,t.unref)(e.vInfiniteScroll),e.vInfiniteScroll]]),e.loading.value?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,z,`loading...`)):(0,t.createCommentVNode)(``,!0)])}}}),[[`__scopeId`,`data-v-2180fa82`]]),V={key:0,style:{padding:`10px 0px`,"margin-bottom":`10px`,"border-bottom":`1px solid #e5e5e5`}},H={key:1},U=s((0,t.defineComponent)({__name:`index`,props:{data:{},fields:{default:()=>[]},column:{default:4},title:{default:``},border:{type:Boolean},direction:{},size:{},extra:{},labelWidth:{}},setup(e){let n=(0,t.createPropsRestProxy)(e,[`title`,`column`,`fields`,`data`]);return(r,i)=>{let a=(0,t.resolveComponent)(`el-descriptions-item`),o=(0,t.resolveComponent)(`el-descriptions`);return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)(`h4`,V,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(r.$slots,`title`,{},void 0,!0),(0,t.createVNode)(o,(0,t.mergeProps)({column:e.column},n,{class:`ui-descriptions`}),{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.fields,n=>((0,t.openBlock)(),(0,t.createBlock)(a,{key:n.prop,label:n.label,span:n.span||2},{default:(0,t.withCtx)(()=>[n.render?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(S)(n,e.data).component),(0,t.mergeProps)({key:0,modelValue:e.data[n.prop],"onUpdate:modelValue":t=>e.data[n.prop]=t},{ref_for:!0},(0,t.unref)(S)(n,e.data).props,{clearable:!0,key:n.prop,style:{display:`inline-block`}}),null,16,[`modelValue`,`onUpdate:modelValue`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,H,(0,t.toDisplayString)(e.data[n.prop]||`-`),1))]),_:2},1032,[`label`,`span`]))),128))]),_:1},16,[`column`])],64)}}}),[[`__scopeId`,`data-v-f02c30f9`]]),W={key:0,class:`dialog-footer`},G=s((0,t.defineComponent)({__name:`index`,props:{visible:{type:Boolean},width:{},disabled:{type:Boolean},component:{},componentProps:{}},emits:[`update:visible`,`close`,`submit`],setup(e,{emit:n}){let r=n,i=e,a=(0,t.ref)();function o(){r(`close`),r(`update:visible`,!1)}function s(){r(`submit`,(0,t.toValue)(a?.value||{})),r(`update:visible`,!1)}return(e,n)=>{let r=(0,t.resolveComponent)(`el-button`),c=(0,t.resolveComponent)(`el-dialog`);return(0,t.openBlock)(),(0,t.createBlock)(c,(0,t.mergeProps)(e.$attrs,{"model-value":i.visible,"show-close":i.disabled,fullscreen:!i.width,"destroy-on-close":``,"lock-scroll":!1,"close-on-click-modal":!1,"onUpdate:modelValue":n[0]||=e=>!e&&o(),onClose:o}),{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(i.component),(0,t.mergeProps)({ref_key:`slotRef`,ref:a},i.componentProps),null,16)),i.disabled?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,W,[(0,t.createVNode)(r,{onClick:o},{default:(0,t.withCtx)(()=>[...n[1]||=[(0,t.createTextVNode)(`取消`,-1)]]),_:1}),(0,t.createVNode)(r,{type:`primary`,onClick:s},{default:(0,t.withCtx)(()=>[...n[2]||=[(0,t.createTextVNode)(`确定`,-1)]]),_:1})]))]),_:1},16,[`model-value`,`show-close`,`fullscreen`])}}}),[[`__scopeId`,`data-v-fde928bf`]]);function K(e){return(0,t.h)(`template`,{style:{display:`flex`,flexDirection:`row`,flexWrap:`wrap`}},(Array.isArray(e)?e:[e]).map(e=>{let{text:r,...i}=e;return(0,t.h)(n.ElButton,{...i,link:!0,size:`small`,type:e.type||`default`},()=>r)}))}function q(e){return Array.isArray(e)?(0,t.h)(`div`,{style:{display:`flex`,gap:`8px`,flexDirection:`row`,flexWrap:`wrap`}},e.map(e=>(0,t.h)(n.ElLink,{...e,type:e.type||`primary`},(0,t.h)(n.ElText,{lineClamp:e?.lineClamp,type:e.type||`primary`},()=>e.prop)))):(0,t.h)(n.ElLink,{...e,type:e.type||`primary`},(0,t.h)(n.ElText,{lineClamp:e?.lineClamp,type:e.type||`primary`},()=>e.prop))}function re(e){return(0,t.h)(`div`,{style:{display:`flex`,gap:`4px`,flexDirection:`row`,flexWrap:`wrap`}},(Array.isArray(e.prop)?e.prop:[e.prop]).map(r=>(0,t.h)(n.ElTag,e,()=>r)))}function J(e){return(0,t.h)(n.ElTag,{...e})}function Y(e){return(0,t.h)(n.ElSelect,{style:{minWidth:`160px`},...e,placeholder:`请选择`,filterable:!0})}function X(e){let r=e?.type===`datetime`?`YYYY-MM-DD HH:mm:ss`:`YYYY-MM-DD`;return(0,t.h)(n.ElDatePicker,{format:r,valueFormat:r,startPlaceholder:`开始时间`,endPlaceholder:`结束时间`,...e,placeholder:`请选择`,"onUpdate:modelValue":t=>e?.onChange?.(t)})}function ie(e){let{start:r=`00:00`,end:i=`23:30`,...a}=e;return(0,t.h)(n.ElTimeSelect,{start:r,end:i,...a,placeholder:`请选择`,filterable:!0})}function ae(e){return(0,t.h)(n.ElInput,{...e,placeholder:`请输入`})}function oe(e){let{align:r=`left`,controlsPosition:i=`right`,...a}=e;return(0,t.h)(n.ElInputNumber,{align:r,style:{...e?.style||{},width:`100%`},controlsPosition:i,placeholder:`请输入`,...a})}function se(e){let{rows:r=1,...i}=e;return(0,t.h)(n.ElInput,{placeholder:`请输入`,rows:r,...i,type:`textarea`})}function ce(e){return(0,t.h)(n.ElInputTag,{placeholder:`请输入`,...e,clearable:!1})}function Z(e){return(0,t.h)(j,e)}function le(e){return(0,t.h)(n.ElRadioGroup,e)}function ue(e){return(0,t.h)(n.ElText,e,()=>e.prop)}var Q={button:K,link:q,tag:re,switch:J,select:Y,datePicker:X,timeSelect:ie,input:ae,inputNumber:oe,textarea:se,inputTag:ce,editor:Z,radio:le,text:ue},de=(0,t.defineComponent)({name:`UiColumn`,__name:`UiColumn`,props:{key:{},data:{},column:{},align:{},size:{}},emits:[`update:data`],setup(e,{emit:n}){let r=n,i=e;function a(e,n,i){let a={};Object.keys(Q).forEach(t=>{let o=t;a[o]=t=>{let a=Array.isArray(t)?t:{placeholder:`请输入`,filterable:!0,...t,prop:t?.prop||e[i.prop],modelValue:t?.prop||e[i.prop],onChange:t?.onChange||(e=>r(`update:data`,n,i.prop,e)),onInput:t?.onInput||(e=>r(`update:data`,n,i.prop,e))};return Q[o](a)}});let o=i.render?i.render({data:e,index:n,h:a,column:i}):null;return o?typeof o==`object`?o:(0,t.h)(`div`,{innerHTML:String(o)}):null}return(n,r)=>{let o=(0,t.resolveComponent)(`UiColumn`,!0),s=(0,t.resolveComponent)(`el-table-column`),c=(0,t.resolveComponent)(`el-text`);return e.column?.children&&e.column?.children?.length>0?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,label:e.column.label,align:i.align},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.column.children,e=>((0,t.openBlock)(),(0,t.createBlock)(o,(0,t.mergeProps)({column:e,data:i.data},{ref_for:!0},n.$attrs,{align:i.align}),null,16,[`column`,`data`,`align`]))),256))]),_:1},8,[`label`,`align`])):((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,prop:String(e.column.prop),label:e.column.label,"column-key":String(e.column.prop),align:i.align,width:e.column.width,"show-overflow-tooltip":e.column.showOverflowTooltip},{default:(0,t.withCtx)(n=>[n?.row?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.column.render?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(a(n.row,n.$index,e.column)),{key:0,align:i.align,size:i.size},null,8,[`align`,`size`])):((0,t.openBlock)(),(0,t.createBlock)(c,{key:1,"line-clamp":e.column?.lineClamp||2},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.row[e.column.prop]),1)]),_:2},1032,[`line-clamp`]))],64)):(0,t.createCommentVNode)(``,!0)]),_:1},8,[`prop`,`label`,`column-key`,`align`,`width`,`show-overflow-tooltip`]))}}}),$=s((0,t.defineComponent)({__name:`index`,props:{loading:{type:[Boolean,Object],default:!1},border:{type:Boolean,default:!1},size:{default:`default`},data:{default:()=>(0,t.reactive)([])},columns:{},align:{default:`left`},hidePagination:{type:Boolean,default:!1},pagination:{default:()=>(0,t.reactive)({page:1,pageSize:10,total:0,pageSizes:[10,20,50]})},currentChange:{type:Function},selectionChange:{type:Function},selectable:{type:Function},defaultCheckedKeys:{},rowKey:{}},emits:[`pagination`],setup(e,{emit:n}){let r=n,i=(0,t.createPropsRestProxy)(e,[`loading`,`border`,`align`,`hidePagination`,`pagination`,`data`,`size`]),a=(0,t.ref)(),o=(0,t.computed)(()=>(0,t.toValue)(i.columns)?.some(e=>e.type===`index`)),s=(0,t.computed)(()=>(0,t.toValue)(i.columns)?.some(e=>e.type===`selection`)),c=(0,t.computed)(()=>!i.columns||!i.columns.length?[]:i.columns.filter(e=>e.type!==`index`&&e.type!==`selection`));(0,t.watch)(()=>[i.defaultCheckedKeys,e.data],([e,n])=>{!e?.length||!n?.length||(0,t.nextTick)(()=>{if(!a.value)return;let t=n.filter(t=>e.includes(t.id));a.value.clearSelection(),t.forEach(e=>a.value?.toggleRowSelection(e,!0))})},{immediate:!0});function l(n,i){e.pagination.page=n||e.pagination.page,e.pagination.pageSize=i||e.pagination.pageSize,r(`pagination`,(0,t.toValue)(e.pagination))}function u(t,n,r){e.data[t]&&(e.data[t]={...e.data[t],[n]:r})}return(n,r)=>{let d=(0,t.resolveComponent)(`el-table-column`),f=(0,t.resolveComponent)(`el-table`),p=(0,t.resolveComponent)(`el-pagination`),m=(0,t.resolveDirective)(`loading`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,null,[(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)(f,(0,t.mergeProps)({border:e.border},n.$attrs,{data:e.data,lazy:!0,class:`ui-table`,fit:``,ref_key:`tableRef`,ref:a}),{default:(0,t.withCtx)(()=>[s.value?((0,t.openBlock)(),(0,t.createBlock)(d,{key:0,type:`selection`,selectable:i.selectable,"column-key":`selection_0`,align:e.align,fixed:`left`},null,8,[`selectable`,`align`])):(0,t.createCommentVNode)(``,!0),o.value?((0,t.openBlock)(),(0,t.createBlock)(d,{key:1,fixed:`left`,type:`index`,label:`序号`,width:`60`,"column-key":`index_1`,align:e.align},null,8,[`align`])):(0,t.createCommentVNode)(``,!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c.value,(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(de,{key:r+`column_`+n?.prop?.toString(),column:n,data:e.data,align:e.align,"onUpdate:data":u,size:e.size},null,8,[`column`,`data`,`align`,`size`]))),128))]),_:1},16,[`border`,`data`])),[[m,e.loading]]),e.hidePagination?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(p,{key:0,class:`ui-pagination`,size:`small`,background:``,layout:`total, sizes, prev, pager, next, jumper`,"page-sizes":e.pagination?.pageSizes||[10,20,50],"page-size":e.pagination.pageSize,"onUpdate:pageSize":r[0]||=t=>e.pagination.pageSize=t,"current-page":e.pagination.page,"onUpdate:currentPage":r[1]||=t=>e.pagination.page=t,total:e.pagination.total,"onUpdate:total":r[2]||=t=>e.pagination.total=t,onChange:l},null,8,[`page-sizes`,`page-size`,`current-page`,`total`])),(0,t.renderSlot)(n.$slots,`default`,{},void 0,!0)])}}}),[[`__scopeId`,`data-v-3402edfe`]]),fe={ElAffix:n.ElAffix,ElAlert:n.ElAlert,ElAnchor:n.ElAnchor,ElAnchorLink:n.ElAnchorLink,ElAside:n.ElAside,ElAutoResizer:n.ElAutoResizer,ElAutocomplete:n.ElAutocomplete,ElAvatar:n.ElAvatar,ElAvatarGroup:n.ElAvatarGroup,ElBacktop:n.ElBacktop,ElBadge:n.ElBadge,ElBreadcrumb:n.ElBreadcrumb,ElBreadcrumbItem:n.ElBreadcrumbItem,ElButton:n.ElButton,ElButtonGroup:n.ElButtonGroup,ElCalendar:n.ElCalendar,ElCard:n.ElCard,ElCarousel:n.ElCarousel,ElCarouselItem:n.ElCarouselItem,ElCascader:n.ElCascader,ElCascaderPanel:n.ElCascaderPanel,ElCheckTag:n.ElCheckTag,ElCheckbox:n.ElCheckbox,ElCheckboxButton:n.ElCheckboxButton,ElCheckboxGroup:n.ElCheckboxGroup,ElCol:n.ElCol,ElCollapse:n.ElCollapse,ElCollapseItem:n.ElCollapseItem,ElCollapseTransition:n.ElCollapseTransition,ElColorPicker:n.ElColorPicker,ElColorPickerPanel:n.ElColorPickerPanel,ElConfigProvider:n.ElConfigProvider,ElContainer:n.ElContainer,ElCountdown:n.ElCountdown,ElDatePicker:n.ElDatePicker,ElDatePickerPanel:n.ElDatePickerPanel,ElDescriptions:n.ElDescriptions,ElDescriptionsItem:n.ElDescriptionsItem,ElDialog:n.ElDialog,ElDivider:n.ElDivider,ElDrawer:n.ElDrawer,ElDropdown:n.ElDropdown,ElDropdownItem:n.ElDropdownItem,ElDropdownMenu:n.ElDropdownMenu,ElEmpty:n.ElEmpty,ElFooter:n.ElFooter,ElForm:n.ElForm,ElFormItem:n.ElFormItem,ElHeader:n.ElHeader,ElIcon:n.ElIcon,ElImage:n.ElImage,ElImageViewer:n.ElImageViewer,ElInput:n.ElInput,ElInputNumber:n.ElInputNumber,ElInputOtp:n.ElInputOtp,ElInputTag:n.ElInputTag,ElLink:n.ElLink,ElMain:n.ElMain,ElMention:n.ElMention,ElMenu:n.ElMenu,ElMenuItem:n.ElMenuItem,ElMenuItemGroup:n.ElMenuItemGroup,ElOption:n.ElOption,ElOptionGroup:n.ElOptionGroup,ElOverlay:n.ElOverlay,ElPageHeader:n.ElPageHeader,ElPagination:n.ElPagination,ElPopconfirm:n.ElPopconfirm,ElPopover:n.ElPopover,ElPopper:n.ElPopper,ElPopperArrow:n.ElPopperArrow,ElPopperContent:n.ElPopperContent,ElPopperTrigger:n.ElPopperTrigger,ElProgress:n.ElProgress,ElRadio:n.ElRadio,ElRadioButton:n.ElRadioButton,ElRadioGroup:n.ElRadioGroup,ElRate:n.ElRate,ElResult:n.ElResult,ElRow:n.ElRow,ElScrollbar:n.ElScrollbar,ElSegmented:n.ElSegmented,ElSelect:n.ElSelect,ElSelectV2:n.ElSelectV2,ElSkeleton:n.ElSkeleton,ElSkeletonItem:n.ElSkeletonItem,ElSlider:n.ElSlider,ElSpace:n.ElSpace,ElSplitter:n.ElSplitter,ElSplitterPanel:n.ElSplitterPanel,ElStatistic:n.ElStatistic,ElStep:n.ElStep,ElSteps:n.ElSteps,ElSubMenu:n.ElSubMenu,ElSwitch:n.ElSwitch,ElTabPane:n.ElTabPane,ElTable:n.ElTable,ElTableColumn:n.ElTableColumn,ElTableV2:n.ElTableV2,ElTabs:n.ElTabs,ElTag:n.ElTag,ElText:n.ElText,ElTimePicker:n.ElTimePicker,ElTimeSelect:n.ElTimeSelect,ElTimeline:n.ElTimeline,ElTimelineItem:n.ElTimelineItem,ElTooltip:n.ElTooltip,ElTour:n.ElTour,ElTourStep:n.ElTourStep,ElTransfer:n.ElTransfer,ElTree:n.ElTree,ElTreeSelect:n.ElTreeSelect,ElTreeV2:n.ElTreeV2,ElUpload:n.ElUpload,ElWatermark:n.ElWatermark},pe={UiCard:c,UiTable:$,UiFilter:T,UiForm:k,UiEditor:j,UiTree:P,UiInfiniteScroll:B,UiDescriptions:U,UiDialog:G};e.UiCard=c,e.UiDescriptions=U,e.UiDialog=G,e.UiEditor=j,e.UiFilter=T,e.UiForm=k,e.UiInfiniteScroll=B,e.UiTable=$,e.UiTree=P,e.default={install(e){for(let[,t]of Object.entries(fe))t?.name&&e.component(t.name,t);(0,n.provideGlobalConfig)({locale:i});for(let[t,n]of Object.entries(pe))e.component(t,n)}}});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`vue`),require(`element-plus`),require(`aieditor`)):typeof define==`function`&&define.amd?define([`exports`,`vue`,`element-plus`,`aieditor`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.VepUi={},e.Vue,e.ElementPlus,e.AiEditor))})(this,function(e,t,n,r){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var i={name:`zh-cn`,el:{breadcrumb:{label:`面包屑`},colorpicker:{confirm:`确定`,clear:`清空`,defaultLabel:`颜色选择器`,description:`当前颜色 {color},按 Enter 键选择新颜色`,alphaLabel:`选择透明度的值`,alphaDescription:`透明度 {alpha}, 当前颜色 {color}`,hueLabel:`选择色相值`,hueDescription:`色相 {hue}, 当前颜色 {color}`,svLabel:`选择饱和度与明度的值`,svDescription:`饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}`,predefineDescription:`选择 {value} 作为颜色`},datepicker:{now:`此刻`,today:`今天`,cancel:`取消`,clear:`清空`,confirm:`确定`,dateTablePrompt:`使用方向键与 Enter 键可选择日期`,monthTablePrompt:`使用方向键与 Enter 键可选择月份`,yearTablePrompt:`使用方向键与 Enter 键可选择年份`,selectedDate:`已选日期`,selectDate:`选择日期`,selectTime:`选择时间`,startDate:`开始日期`,startTime:`开始时间`,endDate:`结束日期`,endTime:`结束时间`,prevYear:`前一年`,nextYear:`后一年`,prevMonth:`上个月`,nextMonth:`下个月`,year:`年`,month1:`1 月`,month2:`2 月`,month3:`3 月`,month4:`4 月`,month5:`5 月`,month6:`6 月`,month7:`7 月`,month8:`8 月`,month9:`9 月`,month10:`10 月`,month11:`11 月`,month12:`12 月`,weeks:{sun:`日`,mon:`一`,tue:`二`,wed:`三`,thu:`四`,fri:`五`,sat:`六`},weeksFull:{sun:`星期日`,mon:`星期一`,tue:`星期二`,wed:`星期三`,thu:`星期四`,fri:`星期五`,sat:`星期六`},months:{jan:`一月`,feb:`二月`,mar:`三月`,apr:`四月`,may:`五月`,jun:`六月`,jul:`七月`,aug:`八月`,sep:`九月`,oct:`十月`,nov:`十一月`,dec:`十二月`}},inputNumber:{decrease:`减少数值`,increase:`增加数值`},select:{loading:`加载中`,noMatch:`无匹配数据`,noData:`无数据`,placeholder:`请选择`},mention:{loading:`加载中`},dropdown:{toggleDropdown:`切换下拉选项`},cascader:{noMatch:`无匹配数据`,loading:`加载中`,placeholder:`请选择`,noData:`暂无数据`},pagination:{goto:`前往`,pagesize:`条/页`,total:`共 {total} 条`,pageClassifier:`页`,page:`页`,prev:`上一页`,next:`下一页`,currentPage:`第 {pager} 页`,prevPages:`向前 {pager} 页`,nextPages:`向后 {pager} 页`,deprecationWarning:`你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档`},dialog:{close:`关闭此对话框`},drawer:{close:`关闭此对话框`},messagebox:{title:`提示`,confirm:`确定`,cancel:`取消`,error:`输入的数据不合法!`,close:`关闭此对话框`},upload:{deleteTip:`按 Delete 键可删除`,delete:`删除`,preview:`查看图片`,continue:`继续上传`},slider:{defaultLabel:`滑块介于 {min} 至 {max}`,defaultRangeStartLabel:`选择起始值`,defaultRangeEndLabel:`选择结束值`},table:{emptyText:`暂无数据`,confirmFilter:`筛选`,resetFilter:`重置`,clearFilter:`全部`,sumText:`合计`,selectAllLabel:`选择所有行`,selectRowLabel:`选择当前行`,expandRowLabel:`展开当前行`,collapseRowLabel:`收起当前行`,sortLabel:`按 {column} 排序`,filterLabel:`按 {column} 过滤`},tag:{close:`关闭此标签`},tour:{next:`下一步`,previous:`上一步`,finish:`结束导览`,close:`关闭此对话框`},tree:{emptyText:`暂无数据`},transfer:{noMatch:`无匹配数据`,noData:`无数据`,titles:[`列表 1`,`列表 2`],filterPlaceholder:`请输入搜索内容`,noCheckedFormat:`共 {total} 项`,hasCheckedFormat:`已选 {checked}/{total} 项`},image:{error:`加载失败`},pageHeader:{title:`返回`},popconfirm:{confirmButtonText:`确定`,cancelButtonText:`取消`},carousel:{leftArrow:`上一张幻灯片`,rightArrow:`下一张幻灯片`,indicator:`幻灯片切换至索引 {index}`},inputOTP:{groupLabel:`一次性密码输入框`,defaultLabel:`请输入第 {index} 位 OTP 字符`}}},a={class:(0,t.normalizeClass)({bodyClass:!0})},o=(0,t.defineComponent)({__name:`index`,props:{title:{},bodyClass:{},hideBorder:{type:Boolean},icon:{}},setup(e){let n=(0,t.computed)(()=>({display:`flex`,alignItems:`center`,gap:`4px`,borderBottom:e.hideBorder?`1px solid #e5e7eb`:`none`}));return(r,i)=>{let o=(0,t.resolveComponent)(`el-icon`),s=(0,t.resolveComponent)(`el-card`);return(0,t.openBlock)(),(0,t.createBlock)(s,(0,t.mergeProps)(r.$attrs,{class:{"ui-card":!0,hideBorder:e.hideBorder}}),(0,t.createSlots)({default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,a,[(0,t.renderSlot)(r.$slots,`default`,{},void 0,!0)])]),_:2},[e.title&&e.title?.length>0?{name:`header`,fn:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{style:(0,t.normalizeStyle)(n.value)},[e.icon?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.icon),{color:`#2563eb`}))]),_:1})):(0,t.createCommentVNode)(``,!0),i[0]||((0,t.setBlockTracking)(-1,!0),(i[0]=(0,t.createElementVNode)(`h4`,null,[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)])).cacheIndex=0,(0,t.setBlockTracking)(1),i[0])],4)]),key:`0`}:void 0]),1040,[`class`])}}}),s=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},c=s(o,[[`__scopeId`,`data-v-ae248017`]]),l=(0,t.defineComponent)({name:`ArrowRight`,__name:`arrow-right`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z`})]))}}),u=(0,t.defineComponent)({name:`ArrowUp`,__name:`arrow-up`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0`})]))}}),d=(0,t.defineComponent)({name:`CirclePlus`,__name:`circle-plus`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64`}),(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0`}),(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896`})]))}}),f=(0,t.defineComponent)({name:`Delete`,__name:`delete`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32`})]))}}),p=(0,t.defineComponent)({name:`DocumentAdd`,__name:`document-add`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z`})]))}}),m=(0,t.defineComponent)({name:`Edit`,__name:`edit`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z`}),(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z`})]))}}),h=(0,t.defineComponent)({name:`Folder`,__name:`folder`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32`})]))}}),g=(0,t.defineComponent)({name:`MoreFilled`,__name:`more-filled`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224`})]))}}),_=(0,t.defineComponent)({name:`Promotion`,__name:`promotion`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z`})]))}}),v=(0,t.defineComponent)({name:`Refresh`,__name:`refresh`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z`})]))}}),y=(0,t.defineComponent)({name:`Search`,__name:`search`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,t.createElementVNode)(`path`,{fill:`currentColor`,d:`m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704`})]))}});function b(e){return typeof e==`number`?e+`px`:e||`100px`}function x(e){return typeof e==`number`?e+`px`:e||`180px`}function S(e,t){let n={};return Object.keys(Q).forEach(r=>{let i=r;n[i]=(n={})=>({props:{prop:e.prop,...n,"onUpdate:modelValue":n=>t[e.prop]=n,onChange:r=>n.onChange?.(r)||(t[e.prop]=r)},type:i,component:Q[i]})}),(n=>typeof e.render==`function`?e.render({h:n,data:t}):n.input(n.props||{}))(n)}function C(e,t){let n=S(e,t);return typeof n==`object`&&(n.component||=n),n}var w={class:`filter-buttons`},T=s((0,t.defineComponent)({name:`UiDefaultFilter`,__name:`index`,props:{type:{},size:{default:`default`},fields:{},expandNum:{},valueWidth:{default:`100%`},labelWidth:{default:`100px`},omitFields:{default:()=>[]},rules:{},required:{type:Boolean},column:{default:4},filterFixedValues:{default:()=>({page:1})}},emits:[`submit`,`reset`,`search`],setup(e,{emit:n}){let r=n,i=(0,t.createPropsRestProxy)(e,[`fields`,`labelWidth`,`valueWidth`,`omitFields`,`column`,`size`,`filterFixedValues`]),a=(0,t.reactive)({expandNum:0,expand:!1}),o=(0,t.reactive)({}),s=(0,t.computed)(()=>e.fields.slice(0,a.expand?e.fields.length:a.expandNum)),c=(0,t.computed)(()=>24-s.value?.reduce((t,n)=>t+(n.span||24/e.column),0)%24-24/e.column);(0,t.onMounted)(()=>{a.expandNum=i?.expandNum??2*e.column-1,e.fields.forEach(e=>{let t=S(e,o)?.props?.defaultValue;t!==void 0&&(o[e.prop]=t)})});function d(){let n={};Object.keys(o).forEach(e=>{if(o[e]!==void 0){let r=(0,t.toValue)(o[e]);n[e]=typeof r==`string`?r.trim():r}}),r(`submit`,{...n,...e.filterFixedValues}),r(`search`,{...n,...e.filterFixedValues})}function f(){Object.keys(o).forEach(t=>{e.omitFields.includes(t)||(o[t]=void 0)}),r(`reset`,o)}return(n,r)=>{let i=(0,t.resolveComponent)(`el-input`),p=(0,t.resolveComponent)(`el-form-item`),m=(0,t.resolveComponent)(`el-col`),h=(0,t.resolveComponent)(`el-button`),g=(0,t.resolveComponent)(`el-row`),_=(0,t.resolveComponent)(`el-form`);return(0,t.openBlock)(),(0,t.createBlock)(_,(0,t.mergeProps)({model:o,class:`ui-filter`,size:e.size},n.$attrs),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(g,{gutter:20},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.value,n=>((0,t.openBlock)(),(0,t.createBlock)(m,{span:n.span||24/e.column},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)(p,{key:n.prop,label:n.label,"label-width":(0,t.unref)(b)(n?.labelWidth||e.labelWidth),"value-width":(0,t.unref)(x)(n?.valueWidth||e.valueWidth)},{default:(0,t.withCtx)(()=>[n.render?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(S)(n,o).component),(0,t.mergeProps)({key:0,modelValue:o[n.prop],"onUpdate:modelValue":e=>o[n.prop]=e},{ref_for:!0},(0,t.unref)(S)(n,o).props,{clearable:!0,style:{width:(0,t.unref)(x)(n?.valueWidth||e.valueWidth)}}),null,16,[`modelValue`,`onUpdate:modelValue`,`style`])):((0,t.openBlock)(),(0,t.createBlock)(i,{key:1,modelValue:o[n.prop],"onUpdate:modelValue":e=>o[n.prop]=e,placeholder:`请输入`,clearable:!0,style:(0,t.normalizeStyle)({width:(0,t.unref)(x)(n?.valueWidth||e.valueWidth)})},null,8,[`modelValue`,`onUpdate:modelValue`,`style`]))]),_:2},1032,[`label`,`label-width`,`value-width`]))]),_:2},1032,[`span`]))),256)),(0,t.createVNode)(m,{span:24/e.column,offset:c.value},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,{label:``,"label-width":`30px`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,w,[(0,t.renderSlot)(n.$slots,`left`,{form:o},void 0,!0),e.fields.length>=2*e.column?((0,t.openBlock)(),(0,t.createBlock)(h,{key:0,text:``,icon:a.expand?(0,t.unref)(u):(0,t.unref)(l),onClick:r[0]||=e=>a.expand=!a.expand},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(a.expand?`收起`:`展开`),1)]),_:1},8,[`icon`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(h,{icon:(0,t.unref)(y),type:`primary`,onClick:d},{default:(0,t.withCtx)(()=>[...r[1]||=[(0,t.createTextVNode)(`查询`,-1)]]),_:1},8,[`icon`]),(0,t.createVNode)(h,{icon:(0,t.unref)(v),onClick:f},{default:(0,t.withCtx)(()=>[...r[2]||=[(0,t.createTextVNode)(`重置`,-1)]]),_:1},8,[`icon`]),(0,t.renderSlot)(n.$slots,`handle`,{form:o},void 0,!0),(0,t.renderSlot)(n.$slots,`right`,{form:o},void 0,!0)])]),_:3})]),_:3},8,[`span`,`offset`])]),_:3})]),_:3},16,[`model`,`size`])}}}),[[`__scopeId`,`data-v-45f0642b`]]),E={key:0,style:{display:`inline-block`}},D={key:0,style:{display:`inline-block`}},O={key:0,class:`ui-form-buttons`},k=s((0,t.defineComponent)({__name:`index`,props:{fields:{},expandNum:{},valueWidth:{default:`auto`},labelWidth:{default:`100px`},labelPosition:{default:`top`},omitFields:{default:()=>[]},rules:{default:()=>(0,t.reactive)({})},required:{type:Boolean},column:{default:24},defaultValues:{},form:{},valueModel:{default:`default`},size:{}},emits:[`submit`,`reset`],setup(e,{expose:n,emit:r}){(0,t.useCssVars)(e=>({ec46e5ec:e.column/2}));let i=r,a=(0,t.createPropsRestProxy)(e,[`fields`,`labelWidth`,`valueWidth`,`omitFields`,`rules`,`labelPosition`,`valueModel`,`column`]),o=(0,t.ref)(0),s=(0,t.ref)(),c=(0,t.reactive)({}),l=(0,t.computed)(()=>{let n=(0,t.toValue)(c);return e.fields.forEach(e=>{let t=e.prop?n?.[e.prop]:void 0,r=C(e,c)?.props?.defaultValue;c[e.prop]=t??r??void 0,e?.slots&&e?.slots?.length>0&&e.slots.forEach(e=>{let t=e.prop?n?.[e.prop]:void 0,r=C(e,c)?.props?.defaultValue;c[e.prop]=t??r??void 0})}),e.fields.filter(e=>typeof e.prop==`string`)}),u=(0,t.computed)(()=>{if(e.rules&&Object.keys(e.rules).length)return e.rules;let t={};return l.value.forEach(e=>{e.rules&&Object.keys(e.rules).length?t[e.prop]=e.rules:e.required&&(t[e.prop]=[{required:!0,message:`请输入`+e.label,trigger:`change`}])}),t});(0,t.watchEffect)(()=>{Object.assign(c,a?.form)});async function d(e){let n=!0;if(await e.validate(e=>{n=e}),!n)return;let r={};Object.keys(c).forEach(e=>{c[e]!==void 0&&(r[e]=(0,t.toValue)(c[e]))}),i(`submit`,r)}function f(){s&&s.value?.clearValidate()}function p(){Object.keys(c).forEach(t=>{e.omitFields.includes(t)||(c[t]=void 0)}),o.value+=1,i(`reset`,c)}function m(){return c}function h(e){Object.keys(e).forEach(t=>{c[t]=e[t]})}async function g(){return new Promise(e=>{s.value?.validate((t,n)=>e(n))})}return n({getValues:m,setValues:h,clearValidate:f,onSubmit:d,validate:g}),(n,r)=>{let i=(0,t.resolveComponent)(`el-input`),a=(0,t.resolveComponent)(`el-form-item`),f=(0,t.resolveComponent)(`el-form`),m=(0,t.resolveComponent)(`el-button`);return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createVNode)(f,(0,t.mergeProps)({ref_key:`uiFormRef`,ref:s,model:c},n.$attrs,{rules:u.value,inline:e.labelPosition!==`top`,"label-position":e.labelPosition,class:{"ui-form":!0,horizontal:e.labelPosition!==`top`},"validate-on-rule-change":!1}),{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(l.value,r=>((0,t.openBlock)(),(0,t.createBlock)(a,{key:r.prop,label:r.label,"label-width":e.labelWidth,"value-width":e.valueWidth,prop:r.prop,style:(0,t.normalizeStyle)({width:`${r?.width?r?.width+`px`:`100%`}`,gridColumn:`span ${(r?.span||e.column)/2||1}`})},{default:(0,t.withCtx)(()=>[r.render?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.unref)(C)(r,c).component?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(C)(r,c).component),(0,t.mergeProps)({key:1,modelValue:c[r.prop],"onUpdate:modelValue":e=>c[r.prop]=e},{ref_for:!0},(0,t.unref)(C)(r,c).props,{clearable:!0,key:`${r.prop}-${o.value}`,style:{display:`inline-block`},class:{underline:e.valueModel===`underline`}}),null,16,[`modelValue`,`onUpdate:modelValue`,`class`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,E,(0,t.toDisplayString)((0,t.unref)(C)(r,c)||`-`),1)),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.slots,r=>(0,t.renderSlot)(n.$slots,`default`,{form:c},()=>[(0,t.unref)(C)(r,c).component?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(C)(r,c).component),(0,t.mergeProps)({key:1,modelValue:c[r.prop],"onUpdate:modelValue":e=>c[r.prop]=e,"default-value":r.defaultValue,placeholder:r.placeholder},{ref_for:!0},(0,t.unref)(C)(r,c).props,{style:{display:`inline-block`,marginLeft:`10px`,width:`${r.width?r.width+`px`:`100%`}`},class:{underline:e.valueModel===`underline`},clearable:!0,key:`${r.prop}-${o.value}`}),null,16,[`modelValue`,`onUpdate:modelValue`,`default-value`,`placeholder`,`style`,`class`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,D,(0,t.toDisplayString)((0,t.unref)(C)(r,c)||`-`),1))],!0)),256))],64)):((0,t.openBlock)(),(0,t.createBlock)(i,{key:1,modelValue:c[r.prop],"onUpdate:modelValue":e=>c[r.prop]=e,placeholder:`请输入`,clearable:!0,class:(0,t.normalizeClass)({underline:e.valueModel===`underline`})},null,8,[`modelValue`,`onUpdate:modelValue`,`class`]))]),_:2},1032,[`label`,`label-width`,`value-width`,`prop`,`style`]))),128))]),_:3},16,[`model`,`rules`,`inline`,`label-position`,`class`]),n.$attrs?.hideHandle?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,O,[(0,t.renderSlot)(n.$slots,`handle`,{form:c},void 0,!0),(0,t.createVNode)(m,{icon:(0,t.unref)(v),onClick:r[0]||=e=>s.value&&p(),size:n.$props.size},{default:(0,t.withCtx)(()=>[...r[2]||=[(0,t.createTextVNode)(`重置`,-1)]]),_:1},8,[`icon`,`size`]),(0,t.createVNode)(m,{icon:(0,t.unref)(_),type:`primary`,onClick:r[1]||=e=>s.value&&d(s.value),size:n.$props.size},{default:(0,t.withCtx)(()=>[...r[3]||=[(0,t.createTextVNode)(`提交`,-1)]]),_:1},8,[`icon`,`size`])]))],64)}}}),[[`__scopeId`,`data-v-f8f2a1f5`]]),A=[`disabled`],j=(0,t.defineComponent)({__name:`index`,props:(0,t.mergeModels)({defaultValue:{default:``},disabled:{type:Boolean,default:!1}},{modelValue:{type:String,default:``},modelModifiers:{}}),emits:(0,t.mergeModels)([`change`],[`update:modelValue`]),setup(e,{emit:n}){let i=(0,t.ref)(),a=(0,t.useModel)(e,`modelValue`),o=(0,t.ref)(a.value||e.defaultValue||``),s=null,c=n;return(0,t.onMounted)(()=>{s=new r.AiEditor({element:i.value,placeholder:`点击输入内容...`,content:a.value||e.defaultValue||``,toolbarExcludeKeys:[`ai`],onChange:e=>{let t=e.getHtml();a.value=t,o.value=t,c(`change`,t)}}),s.setEditable(!e.disabled)}),(0,t.watch)(a,e=>{s&&e!==s.getHtml()&&s.setContent(e)}),(0,t.onUnmounted)(()=>{s&&s.destroy()}),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`editorRef`,ref:i,style:{height:`500px`},disabled:e.disabled},null,8,A))}}),ee={class:`ui-tree-wrapper`},te={key:0,style:{display:`flex`,"flex-direction":`row`,"justify-content":`space-between`,"align-items":`center`,gap:`10px`}},ne={key:0,class:`custom-tree-node`},M={class:`node-label`},N={style:{color:`#ef4444`,display:`flex`,"align-items":`center`}},P=s((0,t.defineComponent)({__name:`index`,props:{id:{},data:{default:()=>[]},filterable:{type:Boolean},placeholder:{},hidePlusHandle:{type:Boolean},hideNodeAdd:{type:Boolean},hideNodeEdit:{type:Boolean},hideNodeDel:{type:Boolean},hideNodeHandle:{type:Boolean},nodeKey:{},props:{default:()=>({label:`label`})}},emits:[`change`],setup(e,{emit:r}){let i=(0,t.createPropsRestProxy)(e,[`filterable`,`placeholder`,`data`,`props`]),a=(0,t.ref)(``),o=(0,t.ref)(),s=(0,t.ref)(null);(0,t.watch)(a,t=>{e.filterable&&s.value.filter(t)});function c(t,n){return t?n?.[e.props?.label||`label`]?.includes(t)??!1:!0}function l(e,t){e?.stopPropagation(),o.value=t.id}function u(){n.ElMessageBox.prompt(`请输入新的名称`,`添加节点`,{confirmButtonText:`确定`,cancelButtonText:`取消`,callback:async e=>{if(e.action===`confirm`){if(!i?.id)return;console.log(`添加 =》》`,e?.value)}}})}function _(e){n.ElMessageBox.prompt(`请输入新的名称`,`重命名`,{confirmButtonText:`确定`,cancelButtonText:`取消`,inputValue:e.label}).then(async({value:e})=>{console.log(`修改节点 =》》`,e)})}async function v(e){e.id&&console.log(`删除节点 =》》`,e.id)}return(n,r)=>{let o=(0,t.resolveComponent)(`el-input`),y=(0,t.resolveComponent)(`el-icon`),b=(0,t.resolveComponent)(`el-button`),x=(0,t.resolveComponent)(`el-dropdown-item`),S=(0,t.resolveComponent)(`el-dropdown-menu`),C=(0,t.resolveComponent)(`el-dropdown`),w=(0,t.resolveComponent)(`el-tree-v2`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,ee,[e.filterable?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,te,[(0,t.createVNode)(o,{modelValue:a.value,"onUpdate:modelValue":r[0]||=e=>a.value=e,placeholder:e.placeholder??`请输入`,clearable:``},null,8,[`modelValue`,`placeholder`]),i?.hidePlusHandle?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(b,{key:0,style:{margin:`0px`,padding:`0px`},link:``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(y,{size:22},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(d),{onClick:r[1]||=e=>u()})]),_:1})]),_:1}))])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`handle`,{style:`margin-top: 8px`},void 0,!0),(0,t.createVNode)(w,(0,t.mergeProps)({ref_key:`treeRef`,ref:s,style:{"margin-top":`8px`}},{...n.$props,...n.$attrs},{"node-key":i?.nodeKey||`id`,"highlight-current":!0,"filter-method":c}),{default:(0,t.withCtx)(a=>[a?.data?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ne,[(0,t.createElementVNode)(`div`,M,[a.data?.children?.length?((0,t.openBlock)(),(0,t.createBlock)(y,{key:0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(h))]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(a.data?.[e.props?.label||`label`])+` `+(0,t.toDisplayString)(a.data?.children?.length?`(${a.data.children.length})`:``),1)]),i.hideNodeHandle?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(C,{key:0,trigger:`click`},{dropdown:(0,t.withCtx)(()=>[(0,t.createVNode)(S,null,{default:(0,t.withCtx)(()=>[i?.hideNodeAdd?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(x,{key:0,onClick:r[2]||=e=>u()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(y,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(p))]),_:1}),r[3]||=(0,t.createTextVNode)(`添加 `,-1)]),_:1})),i?.hideNodeEdit?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(x,{key:1,onClick:e=>_(a.data)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(y,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(m))]),_:1}),r[4]||=(0,t.createTextVNode)(`编辑 `,-1)]),_:1},8,[`onClick`])),i?.hideNodeDel?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(x,{key:2,onClick:e=>v(a.data)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,N,[(0,t.createVNode)(y,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(f))]),_:1}),r[5]||=(0,t.createTextVNode)(`删除 `,-1)])]),_:1},8,[`onClick`])),(0,t.renderSlot)(n.$slots,`node-handle`,{data:a.data},void 0,!0)]),_:2},1024)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(y,{onClick:e=>l(e,a.data)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(g))]),_:1},8,[`onClick`])]),_:2},1024))])):(0,t.createCommentVNode)(``,!0)]),_:3},16,[`node-key`])])}}}),[[`__scopeId`,`data-v-4495ddac`]]),F={style:{height:`100%`}},I={style:{display:`flex`,"flex-direction":`row`,"justify-content":`space-between`,"align-items":`center`,gap:`10px`}},L={style:{margin:`10px 0px`}},R=[`onClick`],z={key:0},B=s((0,t.defineComponent)({__name:`index`,props:{loading:{default:()=>(0,t.ref)(!1)},data:{},placeholder:{},props:{},vInfiniteScroll:{type:Function},filterable:{type:Boolean}},emits:[`node-click`],setup(e,{emit:n}){let r=n,i=(0,t.ref)(``),a=(0,t.ref)(),o=(0,t.computed)(()=>i.value?e.data.filter(t=>t[e.props?.label||`label`]?.includes(i.value)):e.data);(0,t.watch)(()=>[a.value,e.data?.[0]],t=>{!t[0]&&t[1]&&(a.value=e.data?.[0])},{immediate:!0});function s(e){a.value=e,r(`node-click`,e)}return(n,r)=>{let c=(0,t.resolveComponent)(`el-input`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,F,[(0,t.createElementVNode)(`div`,I,[e.filterable?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,modelValue:i.value,"onUpdate:modelValue":r[0]||=e=>i.value=e,placeholder:e.placeholder??`请输入`},null,8,[`modelValue`,`placeholder`])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`plus`,{},void 0,!0)]),(0,t.createElementVNode)(`div`,L,[(0,t.renderSlot)(n.$slots,`handle`,{},void 0,!0)]),(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,(0,t.mergeProps)({class:`infinite-list`,"infinite-scroll-immediate":!1},n.$attrs),[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.value,(r,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:`infinite-list-`+i,class:(0,t.normalizeClass)({"infinite-list-item":!0,active:r===a.value}),onClick:e=>s(r)},[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(r[e.props?.label||`label`]),1),(0,t.renderSlot)(n.$slots,`itemHandle`,{data:r},void 0,!0)],10,R))),128))],16)),[[(0,t.unref)(e.vInfiniteScroll),e.vInfiniteScroll]]),e.loading.value?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,z,`loading...`)):(0,t.createCommentVNode)(``,!0)])}}}),[[`__scopeId`,`data-v-2180fa82`]]),V={key:0,style:{padding:`10px 0px`,"margin-bottom":`10px`,"border-bottom":`1px solid #e5e5e5`}},H={key:1},U=s((0,t.defineComponent)({__name:`index`,props:{data:{},fields:{default:()=>[]},column:{default:4},title:{default:``},border:{type:Boolean},direction:{},size:{},extra:{},labelWidth:{}},setup(e){let n=(0,t.createPropsRestProxy)(e,[`title`,`column`,`fields`,`data`]);return(r,i)=>{let a=(0,t.resolveComponent)(`el-descriptions-item`),o=(0,t.resolveComponent)(`el-descriptions`);return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)(`h4`,V,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(r.$slots,`title`,{},void 0,!0),(0,t.createVNode)(o,(0,t.mergeProps)({column:e.column},n,{class:`ui-descriptions`}),{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.fields,n=>((0,t.openBlock)(),(0,t.createBlock)(a,{key:n.prop,label:n.label,span:n.span||2},{default:(0,t.withCtx)(()=>[n.render?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(S)(n,e.data).component),(0,t.mergeProps)({key:0,modelValue:e.data[n.prop],"onUpdate:modelValue":t=>e.data[n.prop]=t},{ref_for:!0},(0,t.unref)(S)(n,e.data).props,{clearable:!0,key:n.prop,style:{display:`inline-block`}}),null,16,[`modelValue`,`onUpdate:modelValue`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,H,(0,t.toDisplayString)(e.data[n.prop]||`-`),1))]),_:2},1032,[`label`,`span`]))),128))]),_:1},16,[`column`])],64)}}}),[[`__scopeId`,`data-v-f02c30f9`]]),W={key:0,class:`dialog-footer`},G=s((0,t.defineComponent)({__name:`index`,props:{visible:{type:Boolean},width:{},disabled:{type:Boolean},component:{},componentProps:{}},emits:[`update:visible`,`close`,`submit`],setup(e,{emit:n}){let r=n,i=e,a=(0,t.ref)();function o(){r(`close`),r(`update:visible`,!1)}function s(){r(`submit`,(0,t.toValue)(a?.value||{})),r(`update:visible`,!1)}return(e,n)=>{let r=(0,t.resolveComponent)(`el-button`),c=(0,t.resolveComponent)(`el-dialog`);return(0,t.openBlock)(),(0,t.createBlock)(c,(0,t.mergeProps)(e.$attrs,{"model-value":i.visible,"show-close":i.disabled,fullscreen:!i.width,"destroy-on-close":``,"lock-scroll":!1,"close-on-click-modal":!1,"onUpdate:modelValue":n[0]||=e=>!e&&o(),onClose:o}),{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(i.component),(0,t.mergeProps)({ref_key:`slotRef`,ref:a},i.componentProps),null,16)),i.disabled?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,W,[(0,t.createVNode)(r,{onClick:o},{default:(0,t.withCtx)(()=>[...n[1]||=[(0,t.createTextVNode)(`取消`,-1)]]),_:1}),(0,t.createVNode)(r,{type:`primary`,onClick:s},{default:(0,t.withCtx)(()=>[...n[2]||=[(0,t.createTextVNode)(`确定`,-1)]]),_:1})]))]),_:1},16,[`model-value`,`show-close`,`fullscreen`])}}}),[[`__scopeId`,`data-v-fde928bf`]]);function K(e){return(0,t.h)(`template`,{style:{display:`flex`,flexDirection:`row`,flexWrap:`wrap`}},(Array.isArray(e)?e:[e]).map(e=>{let{text:r,...i}=e;return(0,t.h)(n.ElButton,{...i,link:!0,size:`small`,type:e.type||`default`},()=>r)}))}function q(e){return Array.isArray(e)?(0,t.h)(`div`,{style:{display:`flex`,gap:`8px`,flexDirection:`row`,flexWrap:`wrap`}},e.map(e=>(0,t.h)(n.ElLink,{...e,type:e.type||`primary`},(0,t.h)(n.ElText,{lineClamp:e?.lineClamp,type:e.type||`primary`},()=>e.prop)))):(0,t.h)(n.ElLink,{...e,type:e.type||`primary`},(0,t.h)(n.ElText,{lineClamp:e?.lineClamp,type:e.type||`primary`},()=>e.prop))}function re(e){return(0,t.h)(`div`,{style:{display:`flex`,gap:`4px`,flexDirection:`row`,flexWrap:`wrap`}},(Array.isArray(e.prop)?e.prop:[e.prop]).map(r=>(0,t.h)(n.ElTag,e,()=>r)))}function J(e){return(0,t.h)(n.ElTag,{...e})}function Y(e){return(0,t.h)(n.ElSelect,{style:{minWidth:`160px`},...e,placeholder:`请选择`,filterable:!0})}function X(e){let r=e?.type===`datetime`?`YYYY-MM-DD HH:mm:ss`:`YYYY-MM-DD`;return(0,t.h)(n.ElDatePicker,{format:r,valueFormat:r,startPlaceholder:`开始时间`,endPlaceholder:`结束时间`,...e,placeholder:`请选择`,"onUpdate:modelValue":t=>e?.onChange?.(t)})}function ie(e){let{start:r=`00:00`,end:i=`23:30`,...a}=e;return(0,t.h)(n.ElTimeSelect,{start:r,end:i,...a,placeholder:`请选择`,filterable:!0})}function ae(e){return(0,t.h)(n.ElInput,{...e,placeholder:`请输入`})}function oe(e){let{align:r=`left`,controlsPosition:i=`right`,...a}=e;return(0,t.h)(n.ElInputNumber,{align:r,style:{...e?.style||{},width:`100%`},controlsPosition:i,placeholder:`请输入`,...a})}function se(e){let{rows:r=1,...i}=e;return(0,t.h)(n.ElInput,{placeholder:`请输入`,rows:r,...i,type:`textarea`})}function ce(e){return(0,t.h)(n.ElInputTag,{placeholder:`请输入`,...e,clearable:!1})}function Z(e){return(0,t.h)(j,e)}function le(e){return(0,t.h)(n.ElRadioGroup,e)}function ue(e){return(0,t.h)(n.ElText,e,()=>e.prop)}var Q={button:K,link:q,tag:re,switch:J,select:Y,datePicker:X,timeSelect:ie,input:ae,inputNumber:oe,textarea:se,inputTag:ce,editor:Z,radio:le,text:ue},de=(0,t.defineComponent)({name:`UiColumn`,__name:`UiColumn`,props:{key:{},data:{},column:{},align:{},size:{}},emits:[`update:data`],setup(e,{emit:n}){let r=n,i=e;function a(e,n,i){let a={};Object.keys(Q).forEach(t=>{let o=t;a[o]=t=>{let a=Array.isArray(t)?t:{placeholder:`请输入`,filterable:!0,...t,prop:t?.prop||e[i.prop],modelValue:t?.prop||e[i.prop],onChange:t?.onChange||(e=>r(`update:data`,n,i.prop,e)),onInput:t?.onInput||(e=>r(`update:data`,n,i.prop,e))};return Q[o](a)}});let o=i.render?i.render({data:e,index:n,h:a,column:i}):null;return o?typeof o==`object`?o:(0,t.h)(`div`,{innerHTML:String(o)}):null}return(n,r)=>{let o=(0,t.resolveComponent)(`UiColumn`,!0),s=(0,t.resolveComponent)(`el-table-column`),c=(0,t.resolveComponent)(`el-text`);return e.column?.children&&e.column?.children?.length>0?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,label:e.column.label,align:i.align},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.column.children,e=>((0,t.openBlock)(),(0,t.createBlock)(o,(0,t.mergeProps)({column:e,data:i.data},{ref_for:!0},n.$attrs,{align:i.align}),null,16,[`column`,`data`,`align`]))),256))]),_:1},8,[`label`,`align`])):((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,prop:String(e.column.prop),label:e.column.label,"column-key":String(e.column.prop),align:i.align,width:e.column.width,"show-overflow-tooltip":e.column.showOverflowTooltip},{default:(0,t.withCtx)(n=>[n?.row?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.column.render?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(a(n.row,n.$index,e.column)),{key:0,align:i.align,size:i.size},null,8,[`align`,`size`])):((0,t.openBlock)(),(0,t.createBlock)(c,{key:1,"line-clamp":e.column?.lineClamp||2},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.row[e.column.prop]),1)]),_:2},1032,[`line-clamp`]))],64)):(0,t.createCommentVNode)(``,!0)]),_:1},8,[`prop`,`label`,`column-key`,`align`,`width`,`show-overflow-tooltip`]))}}}),$=s((0,t.defineComponent)({__name:`index`,props:{loading:{type:[Boolean,Object],default:!1},border:{type:Boolean,default:!1},size:{default:`default`},data:{default:()=>(0,t.reactive)([])},columns:{},align:{default:`left`},hidePagination:{type:Boolean,default:!1},pagination:{default:()=>(0,t.reactive)({page:1,pageSize:10,total:0,pageSizes:[10,20,50]})},currentChange:{type:Function},selectionChange:{type:Function},selectable:{type:Function},defaultCheckedKeys:{},rowKey:{}},emits:[`pagination`],setup(e,{emit:n}){let r=n,i=(0,t.createPropsRestProxy)(e,[`loading`,`border`,`align`,`hidePagination`,`pagination`,`data`,`size`]),a=(0,t.ref)(),o=(0,t.computed)(()=>(0,t.toValue)(i.columns)?.some(e=>e.type===`index`)),s=(0,t.computed)(()=>(0,t.toValue)(i.columns)?.some(e=>e.type===`selection`)),c=(0,t.computed)(()=>!i.columns||!i.columns.length?[]:i.columns.filter(e=>e.type!==`index`&&e.type!==`selection`));(0,t.watch)(()=>[i.defaultCheckedKeys,e.data],([e,n])=>{!e?.length||!n?.length||(0,t.nextTick)(()=>{if(!a.value)return;let t=n.filter(t=>e.includes(t.id));a.value.clearSelection(),t.forEach(e=>a.value?.toggleRowSelection(e,!0))})},{immediate:!0});function l(n,i){e.pagination.page=n||e.pagination.page,e.pagination.pageSize=i||e.pagination.pageSize,r(`pagination`,(0,t.toValue)(e.pagination))}function u(t,n,r){e.data[t]&&(e.data[t]={...e.data[t],[n]:r})}return(n,r)=>{let d=(0,t.resolveComponent)(`el-table-column`),f=(0,t.resolveComponent)(`el-table`),p=(0,t.resolveComponent)(`el-pagination`),m=(0,t.resolveDirective)(`loading`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,null,[(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)(f,(0,t.mergeProps)({border:e.border},n.$attrs,{data:e.data,lazy:!0,class:`ui-table`,fit:``,ref_key:`tableRef`,ref:a}),{default:(0,t.withCtx)(()=>[s.value?((0,t.openBlock)(),(0,t.createBlock)(d,{key:0,type:`selection`,selectable:i.selectable,"column-key":`selection_0`,align:e.align,fixed:`left`},null,8,[`selectable`,`align`])):(0,t.createCommentVNode)(``,!0),o.value?((0,t.openBlock)(),(0,t.createBlock)(d,{key:1,fixed:`left`,type:`index`,label:`序号`,width:`60`,"column-key":`index_1`,align:e.align},null,8,[`align`])):(0,t.createCommentVNode)(``,!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c.value,(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(de,{key:r+`column_`+n?.prop?.toString(),column:n,data:e.data,align:e.align,"onUpdate:data":u,size:e.size},null,8,[`column`,`data`,`align`,`size`]))),128))]),_:1},16,[`border`,`data`])),[[m,e.loading]]),e.hidePagination?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(p,{key:0,class:`ui-pagination`,size:`small`,background:``,layout:`total, sizes, prev, pager, next, jumper`,"page-sizes":e.pagination?.pageSizes||[10,20,50],"page-size":e.pagination.pageSize,"onUpdate:pageSize":r[0]||=t=>e.pagination.pageSize=t,"current-page":e.pagination.page,"onUpdate:currentPage":r[1]||=t=>e.pagination.page=t,total:e.pagination.total,"onUpdate:total":r[2]||=t=>e.pagination.total=t,onChange:l},null,8,[`page-sizes`,`page-size`,`current-page`,`total`])),(0,t.renderSlot)(n.$slots,`default`,{},void 0,!0)])}}}),[[`__scopeId`,`data-v-3402edfe`]]),fe={ElButton:n.ElButton,ElCard:n.ElCard,ElCol:n.ElCol,ElConfigProvider:n.ElConfigProvider,ElDatePicker:n.ElDatePicker,ElDescriptions:n.ElDescriptions,ElDescriptionsItem:n.ElDescriptionsItem,ElDialog:n.ElDialog,ElDropdown:n.ElDropdown,ElDropdownItem:n.ElDropdownItem,ElDropdownMenu:n.ElDropdownMenu,ElForm:n.ElForm,ElFormItem:n.ElFormItem,ElIcon:n.ElIcon,ElInput:n.ElInput,ElInputNumber:n.ElInputNumber,ElInputTag:n.ElInputTag,ElLink:n.ElLink,ElOption:n.ElOption,ElOptionGroup:n.ElOptionGroup,ElPagination:n.ElPagination,ElPopconfirm:n.ElPopconfirm,ElPopover:n.ElPopover,ElRadio:n.ElRadio,ElRadioButton:n.ElRadioButton,ElRadioGroup:n.ElRadioGroup,ElRow:n.ElRow,ElScrollbar:n.ElScrollbar,ElSelect:n.ElSelect,ElSwitch:n.ElSwitch,ElTable:n.ElTable,ElTableColumn:n.ElTableColumn,ElTag:n.ElTag,ElText:n.ElText,ElTimeSelect:n.ElTimeSelect,ElTreeV2:n.ElTreeV2,ElUpload:n.ElUpload,ElMessageBox:n.ElMessageBox,ElMessage:n.ElMessage,ElNotification:n.ElNotification},pe={UiCard:c,UiTable:$,UiFilter:T,UiForm:k,UiEditor:j,UiTree:P,UiInfiniteScroll:B,UiDescriptions:U,UiDialog:G};e.UiCard=c,e.UiDescriptions=U,e.UiDialog=G,e.UiEditor=j,e.UiFilter=T,e.UiForm=k,e.UiInfiniteScroll=B,e.UiTable=$,e.UiTree=P,e.default={install(e){for(let[,t]of Object.entries(fe))t?.name&&e.component(t.name,t);(0,n.provideGlobalConfig)({locale:i});for(let[t,n]of Object.entries(pe))e.component(t,n)}}});
|