yc-vep-ui 0.0.37 → 0.0.39

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 CHANGED
@@ -1,18 +1,17 @@
1
1
  import e from "element-plus/es/locale/lang/zh-cn";
2
- import * as t from "element-plus";
3
- import { ElButton as n, ElDatePicker as r, ElInput as i, ElInputNumber as a, ElInputTag as o, ElLink as s, ElMessageBox as c, ElRadioGroup as l, ElSelect as u, ElTag as d, ElText as f, ElTimeSelect as p } from "element-plus";
4
- import { Fragment as m, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createPropsRestProxy as b, createSlots as x, createTextVNode as S, createVNode as C, defineComponent as w, h as T, mergeModels as E, mergeProps as D, nextTick as ee, normalizeClass as O, normalizeStyle as k, onMounted as A, onUnmounted as te, openBlock as j, reactive as M, ref as N, renderList as P, renderSlot as F, resolveComponent as I, resolveDirective as ne, resolveDynamicComponent as L, setBlockTracking as R, toDisplayString as z, toValue as B, unref as V, useCssVars as re, useModel as ie, watch as H, watchEffect as ae, withCtx as U, withDirectives as W } from "vue";
5
- import { ArrowRight as oe, ArrowUp as se, CirclePlus as ce, Delete as le, DocumentAdd as ue, Edit as de, Folder as fe, MoreFilled as pe, Promotion as me, Refresh as G, Search as he } from "@element-plus/icons-vue";
6
- import { AiEditor as ge } from "aieditor";
2
+ import { ElButton as t, ElButton as n, ElCard as r, ElCol as i, ElConfigProvider as a, ElDatePicker as o, ElDatePicker as s, ElDescriptions as c, ElDescriptionsItem as l, ElDialog as u, ElDropdown as d, ElDropdownItem as f, ElDropdownMenu as p, ElForm as m, ElFormItem as h, ElIcon as ee, ElInput as g, ElInput as te, ElInputNumber as ne, ElInputNumber as re, ElInputTag as ie, ElInputTag as ae, ElLink as _, ElLink as oe, ElMenu as se, ElMenuItem as ce, ElMessage as le, ElMessage as ue, ElMessageBox as v, ElMessageBox as de, ElNotification as fe, ElNotification as pe, ElOption as me, ElOptionGroup as he, ElPagination as ge, ElPopconfirm as _e, ElPopover as ve, ElRadio as ye, ElRadioButton as be, ElRadioGroup as xe, ElRadioGroup as Se, ElRow as Ce, ElScrollbar as we, ElSelect as Te, ElSelect as Ee, ElSubMenu as De, ElSwitch as Oe, ElTable as ke, ElTableColumn as Ae, ElTag as y, ElTag as je, ElText as b, ElText as Me, ElTimeSelect as Ne, ElTimeSelect as Pe, ElTreeV2 as Fe, ElUpload as Ie, provideGlobalConfig as Le } from "element-plus";
3
+ import { Fragment as x, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createPropsRestProxy as D, createSlots as Re, createTextVNode as O, createVNode as k, defineComponent as A, h as j, mergeModels as ze, mergeProps as M, nextTick as Be, normalizeClass as N, normalizeStyle as P, onMounted as Ve, onUnmounted as He, openBlock as F, reactive as I, ref as L, renderList as R, renderSlot as z, resolveComponent as B, resolveDirective as Ue, resolveDynamicComponent as V, setBlockTracking as We, toDisplayString as H, toValue as U, unref as W, useCssVars as Ge, useModel as Ke, watch as G, watchEffect as qe, withCtx as K, withDirectives as q } from "vue";
4
+ import { ArrowRight as Je, ArrowUp as Ye, CirclePlus as Xe, Delete as Ze, DocumentAdd as Qe, Edit as $e, Folder as et, MoreFilled as tt, Promotion as nt, Refresh as rt, Search as it } from "@element-plus/icons-vue";
5
+ import { AiEditor as at } from "aieditor";
7
6
  //#region \0rolldown/runtime.js
8
- var K = Object.defineProperty, _e = (e, t) => {
7
+ var ot = Object.defineProperty, st = (e, t) => {
9
8
  let n = {};
10
- for (var r in e) K(n, r, {
9
+ for (var r in e) ot(n, r, {
11
10
  get: e[r],
12
11
  enumerable: !0
13
12
  });
14
- return t || K(n, Symbol.toStringTag, { value: "Module" }), n;
15
- }, ve = { class: /* @__PURE__ */ O({ bodyClass: !0 }) }, ye = /* @__PURE__ */ w({
13
+ return t || ot(n, Symbol.toStringTag, { value: "Module" }), n;
14
+ }, ct = { class: /* @__PURE__ */ N({ bodyClass: !0 }) }, lt = /* @__PURE__ */ A({
16
15
  __name: "index",
17
16
  props: {
18
17
  title: {},
@@ -21,94 +20,94 @@ var K = Object.defineProperty, _e = (e, t) => {
21
20
  icon: {}
22
21
  },
23
22
  setup(e) {
24
- let t = h(() => ({
23
+ let t = S(() => ({
25
24
  display: "flex",
26
25
  alignItems: "center",
27
26
  gap: "4px",
28
27
  borderBottom: e.hideBorder ? "1px solid #e5e7eb" : "none"
29
28
  }));
30
29
  return (n, r) => {
31
- let i = I("el-icon"), a = I("el-card");
32
- return j(), g(a, D(n.$attrs, { class: {
30
+ let i = B("el-icon"), a = B("el-card");
31
+ return F(), C(a, M(n.$attrs, { class: {
33
32
  "ui-card": !0,
34
33
  hideBorder: e.hideBorder
35
- } }), x({
36
- default: U(() => [y("div", ve, [F(n.$slots, "default", {}, void 0, !0)])]),
34
+ } }), Re({
35
+ default: K(() => [E("div", ct, [z(n.$slots, "default", {}, void 0, !0)])]),
37
36
  _: 2
38
37
  }, [e.title && e.title?.length > 0 ? {
39
38
  name: "header",
40
- fn: U(() => [y("div", { style: k(t.value) }, [e.icon ? (j(), g(i, { key: 0 }, {
41
- default: U(() => [(j(), g(L(e.icon), { color: "#2563eb" }))]),
39
+ fn: K(() => [E("div", { style: P(t.value) }, [e.icon ? (F(), C(i, { key: 0 }, {
40
+ default: K(() => [(F(), C(V(e.icon), { color: "#2563eb" }))]),
42
41
  _: 1
43
- })) : _("", !0), r[0] || (R(-1, !0), (r[0] = y("h4", null, [S(z(e.title), 1)])).cacheIndex = 0, R(1), r[0])], 4)]),
42
+ })) : w("", !0), r[0] || (We(-1, !0), (r[0] = E("h4", null, [O(H(e.title), 1)])).cacheIndex = 0, We(1), r[0])], 4)]),
44
43
  key: "0"
45
44
  } : void 0]), 1040, ["class"]);
46
45
  };
47
46
  }
48
- }), q = (e, t) => {
47
+ }), J = (e, t) => {
49
48
  let n = e.__vccOpts || e;
50
49
  for (let [e, r] of t) n[e] = r;
51
50
  return n;
52
- }, be = /* @__PURE__ */ q(ye, [["__scopeId", "data-v-ae248017"]]);
51
+ }, ut = /* @__PURE__ */ J(lt, [["__scopeId", "data-v-ae248017"]]);
53
52
  //#endregion
54
53
  //#region src/components/utils/render.ts
55
- function xe(e) {
56
- return T("template", { style: {
54
+ function dt(e) {
55
+ return j("template", { style: {
57
56
  display: "flex",
58
57
  flexDirection: "row",
59
58
  flexWrap: "wrap"
60
59
  } }, (Array.isArray(e) ? e : [e]).map((e) => {
61
- let { text: t, ...r } = e;
62
- return T(n, {
60
+ let { text: n, ...r } = e;
61
+ return j(t, {
63
62
  ...r,
64
63
  link: !0,
65
64
  size: "small",
66
65
  type: e.type || "default"
67
- }, () => t);
66
+ }, () => n);
68
67
  }));
69
68
  }
70
- function Se(e) {
71
- return Array.isArray(e) ? T("div", { style: {
69
+ function ft(e) {
70
+ return Array.isArray(e) ? j("div", { style: {
72
71
  display: "flex",
73
72
  gap: "8px",
74
73
  flexDirection: "row",
75
74
  flexWrap: "wrap"
76
- } }, e.map((e) => T(s, {
75
+ } }, e.map((e) => j(_, {
77
76
  ...e,
78
77
  type: e.type || "primary"
79
- }, T(f, {
78
+ }, j(b, {
80
79
  lineClamp: e?.lineClamp,
81
80
  type: e.type || "primary"
82
- }, () => e.prop)))) : T(s, {
81
+ }, () => e.prop)))) : j(_, {
83
82
  ...e,
84
83
  type: e.type || "primary"
85
- }, T(f, {
84
+ }, j(b, {
86
85
  lineClamp: e?.lineClamp,
87
86
  type: e.type || "primary"
88
87
  }, () => e.prop));
89
88
  }
90
- function Ce(e) {
91
- return T("div", { style: {
89
+ function pt(e) {
90
+ return j("div", { style: {
92
91
  display: "flex",
93
92
  gap: "4px",
94
93
  flexDirection: "row",
95
94
  flexWrap: "wrap"
96
- } }, (Array.isArray(e.prop) ? e.prop : [e.prop]).map((t) => T(d, e, () => t)));
95
+ } }, (Array.isArray(e.prop) ? e.prop : [e.prop]).map((t) => j(y, e, () => t)));
97
96
  }
98
- function we(e) {
99
- return T(d, { ...e });
97
+ function mt(e) {
98
+ return j(y, { ...e });
100
99
  }
101
- function Te(e) {
102
- return T(u, {
100
+ function ht(e) {
101
+ return j(Te, {
103
102
  style: { minWidth: "160px" },
104
103
  ...e,
105
104
  placeholder: "请选择",
106
105
  filterable: !0
107
106
  });
108
107
  }
109
- function Ee(e) {
108
+ function gt(e) {
110
109
  let t = e?.type === "datetime" ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
111
- return T(r, {
110
+ return j(s, {
112
111
  format: t,
113
112
  valueFormat: t,
114
113
  startPlaceholder: "开始时间",
@@ -118,9 +117,9 @@ function Ee(e) {
118
117
  "onUpdate:modelValue": (t) => e?.onChange?.(t)
119
118
  });
120
119
  }
121
- function De(e) {
120
+ function _t(e) {
122
121
  let { start: t = "00:00", end: n = "23:30", ...r } = e;
123
- return T(p, {
122
+ return j(Ne, {
124
123
  start: t,
125
124
  end: n,
126
125
  ...r,
@@ -128,15 +127,15 @@ function De(e) {
128
127
  filterable: !0
129
128
  });
130
129
  }
131
- function Oe(e) {
132
- return T(i, {
130
+ function vt(e) {
131
+ return j(g, {
133
132
  ...e,
134
133
  placeholder: "请输入"
135
134
  });
136
135
  }
137
- function ke(e) {
136
+ function yt(e) {
138
137
  let { align: t = "left", controlsPosition: n = "right", ...r } = e;
139
- return T(a, {
138
+ return j(ne, {
140
139
  align: t,
141
140
  style: {
142
141
  ...e?.style || {},
@@ -147,47 +146,47 @@ function ke(e) {
147
146
  ...r
148
147
  });
149
148
  }
150
- function Ae(e) {
149
+ function bt(e) {
151
150
  let { rows: t = 1, ...n } = e;
152
- return T(i, {
151
+ return j(g, {
153
152
  placeholder: "请输入",
154
153
  rows: t,
155
154
  ...n,
156
155
  type: "textarea"
157
156
  });
158
157
  }
159
- function je(e) {
160
- return T(o, {
158
+ function xt(e) {
159
+ return j(ie, {
161
160
  placeholder: "请输入",
162
161
  ...e,
163
162
  clearable: !1
164
163
  });
165
164
  }
166
- function Me(e) {
167
- return T($, e);
165
+ function St(e) {
166
+ return j($, e);
168
167
  }
169
- function Ne(e) {
170
- return T(l, e);
168
+ function Ct(e) {
169
+ return j(xe, e);
171
170
  }
172
- function Pe(e) {
173
- return T(f, e, () => e.prop);
171
+ function wt(e) {
172
+ return j(b, e, () => e.prop);
174
173
  }
175
- var J = {
176
- button: xe,
177
- link: Se,
178
- tag: Ce,
179
- switch: we,
180
- select: Te,
181
- datePicker: Ee,
182
- timeSelect: De,
183
- input: Oe,
184
- inputNumber: ke,
185
- textarea: Ae,
186
- inputTag: je,
187
- editor: Me,
188
- radio: Ne,
189
- text: Pe
190
- }, Fe = /* @__PURE__ */ w({
174
+ var Y = {
175
+ button: dt,
176
+ link: ft,
177
+ tag: pt,
178
+ switch: mt,
179
+ select: ht,
180
+ datePicker: gt,
181
+ timeSelect: _t,
182
+ input: vt,
183
+ inputNumber: yt,
184
+ textarea: bt,
185
+ inputTag: xt,
186
+ editor: St,
187
+ radio: Ct,
188
+ text: wt
189
+ }, Tt = /* @__PURE__ */ A({
191
190
  name: "UiColumn",
192
191
  __name: "UiColumn",
193
192
  props: {
@@ -202,7 +201,7 @@ var J = {
202
201
  let n = t, r = e;
203
202
  function i(e, t, r) {
204
203
  let i = {};
205
- Object.keys(J).forEach((a) => {
204
+ Object.keys(Y).forEach((a) => {
206
205
  let o = a;
207
206
  i[o] = (i) => {
208
207
  let a = Array.isArray(i) ? i : {
@@ -214,7 +213,7 @@ var J = {
214
213
  onChange: i?.onChange || ((e) => n("update:data", t, r.prop, e)),
215
214
  onInput: i?.onInput || ((e) => n("update:data", t, r.prop, e))
216
215
  };
217
- return J[o](a);
216
+ return Y[o](a);
218
217
  };
219
218
  });
220
219
  let a = r.render ? r.render({
@@ -223,16 +222,16 @@ var J = {
223
222
  h: i,
224
223
  column: r
225
224
  }) : null;
226
- return a ? typeof a == "object" ? a : T("div", { innerHTML: String(a) }) : null;
225
+ return a ? typeof a == "object" ? a : j("div", { innerHTML: String(a) }) : null;
227
226
  }
228
227
  return (t, n) => {
229
- let a = I("UiColumn", !0), o = I("el-table-column"), s = I("el-text");
230
- return e.column?.children && e.column?.children?.length > 0 ? (j(), g(o, {
228
+ let a = B("UiColumn", !0), o = B("el-table-column"), s = B("el-text");
229
+ return e.column?.children && e.column?.children?.length > 0 ? (F(), C(o, {
231
230
  key: 0,
232
231
  label: e.column.label,
233
232
  align: r.align
234
233
  }, {
235
- default: U(() => [(j(!0), v(m, null, P(e.column.children, (e) => (j(), g(a, D({
234
+ default: K(() => [(F(!0), T(x, null, R(e.column.children, (e) => (F(), C(a, M({
236
235
  column: e,
237
236
  data: r.data
238
237
  }, { ref_for: !0 }, t.$attrs, { align: r.align }), null, 16, [
@@ -241,7 +240,7 @@ var J = {
241
240
  "align"
242
241
  ]))), 256))]),
243
242
  _: 1
244
- }, 8, ["label", "align"])) : (j(), g(o, {
243
+ }, 8, ["label", "align"])) : (F(), C(o, {
245
244
  key: 1,
246
245
  prop: String(e.column.prop),
247
246
  label: e.column.label,
@@ -250,17 +249,17 @@ var J = {
250
249
  width: e.column.width,
251
250
  "show-overflow-tooltip": e.column.showOverflowTooltip
252
251
  }, {
253
- default: U((t) => [t?.row ? (j(), v(m, { key: 0 }, [e.column.render ? (j(), g(L(i(t.row, t.$index, e.column)), {
252
+ default: K((t) => [t?.row ? (F(), T(x, { key: 0 }, [e.column.render ? (F(), C(V(i(t.row, t.$index, e.column)), {
254
253
  key: 0,
255
254
  align: r.align,
256
255
  size: r.size
257
- }, null, 8, ["align", "size"])) : (j(), g(s, {
256
+ }, null, 8, ["align", "size"])) : (F(), C(s, {
258
257
  key: 1,
259
258
  "line-clamp": e.column?.lineClamp || 2
260
259
  }, {
261
- default: U(() => [S(z(t.row[e.column.prop]), 1)]),
260
+ default: K(() => [O(H(t.row[e.column.prop]), 1)]),
262
261
  _: 2
263
- }, 1032, ["line-clamp"]))], 64)) : _("", !0)]),
262
+ }, 1032, ["line-clamp"]))], 64)) : w("", !0)]),
264
263
  _: 1
265
264
  }, 8, [
266
265
  "prop",
@@ -272,7 +271,7 @@ var J = {
272
271
  ]));
273
272
  };
274
273
  }
275
- }), Ie = /* @__PURE__ */ q(/* @__PURE__ */ w({
274
+ }), Et = /* @__PURE__ */ J(/* @__PURE__ */ A({
276
275
  __name: "index",
277
276
  props: {
278
277
  loading: {
@@ -284,14 +283,14 @@ var J = {
284
283
  default: !1
285
284
  },
286
285
  size: { default: "default" },
287
- data: { default: () => M([]) },
286
+ data: { default: () => I([]) },
288
287
  columns: {},
289
288
  align: { default: "left" },
290
289
  hidePagination: {
291
290
  type: Boolean,
292
291
  default: !1
293
292
  },
294
- pagination: { default: () => M({
293
+ pagination: { default: () => I({
295
294
  page: 1,
296
295
  pageSize: 10,
297
296
  total: 0,
@@ -309,7 +308,7 @@ var J = {
309
308
  },
310
309
  emits: ["pagination"],
311
310
  setup(e, { emit: t }) {
312
- let n = t, r = b(e, [
311
+ let n = t, r = D(e, [
313
312
  "loading",
314
313
  "border",
315
314
  "align",
@@ -317,16 +316,16 @@ var J = {
317
316
  "pagination",
318
317
  "data",
319
318
  "size"
320
- ]), i = N(), a = h(() => B(r.columns)?.some((e) => e.type === "index")), o = h(() => B(r.columns)?.some((e) => e.type === "selection")), s = h(() => !r.columns || !r.columns.length ? [] : r.columns.filter((e) => e.type !== "index" && e.type !== "selection"));
321
- H(() => [r.defaultCheckedKeys, e.data], ([e, t]) => {
322
- !e?.length || !t?.length || ee(() => {
319
+ ]), i = L(), a = S(() => U(r.columns)?.some((e) => e.type === "index")), o = S(() => U(r.columns)?.some((e) => e.type === "selection")), s = S(() => !r.columns || !r.columns.length ? [] : r.columns.filter((e) => e.type !== "index" && e.type !== "selection"));
320
+ G(() => [r.defaultCheckedKeys, e.data], ([e, t]) => {
321
+ !e?.length || !t?.length || Be(() => {
323
322
  if (!i.value) return;
324
323
  let n = t.filter((t) => e.includes(t.id));
325
324
  i.value.clearSelection(), n.forEach((e) => i.value?.toggleRowSelection(e, !0));
326
325
  });
327
326
  }, { immediate: !0 });
328
327
  function c(t, r) {
329
- e.pagination.page = t || e.pagination.page, e.pagination.pageSize = r || e.pagination.pageSize, n("pagination", B(e.pagination));
328
+ e.pagination.page = t || e.pagination.page, e.pagination.pageSize = r || e.pagination.pageSize, n("pagination", U(e.pagination));
330
329
  }
331
330
  function l(t, n, r) {
332
331
  e.data[t] && (e.data[t] = {
@@ -335,9 +334,9 @@ var J = {
335
334
  });
336
335
  }
337
336
  return (t, n) => {
338
- let u = I("el-table-column"), d = I("el-table"), f = I("el-pagination"), p = ne("loading");
339
- return j(), v("div", null, [
340
- W((j(), g(d, D({ border: e.border }, t.$attrs, {
337
+ let u = B("el-table-column"), d = B("el-table"), f = B("el-pagination"), p = Ue("loading");
338
+ return F(), T("div", null, [
339
+ q((F(), C(d, M({ border: e.border }, t.$attrs, {
341
340
  data: e.data,
342
341
  lazy: !0,
343
342
  class: "ui-table",
@@ -345,16 +344,16 @@ var J = {
345
344
  ref_key: "tableRef",
346
345
  ref: i
347
346
  }), {
348
- default: U(() => [
349
- o.value ? (j(), g(u, {
347
+ default: K(() => [
348
+ o.value ? (F(), C(u, {
350
349
  key: 0,
351
350
  type: "selection",
352
351
  selectable: r.selectable,
353
352
  "column-key": "selection_0",
354
353
  align: e.align,
355
354
  fixed: "left"
356
- }, null, 8, ["selectable", "align"])) : _("", !0),
357
- a.value ? (j(), g(u, {
355
+ }, null, 8, ["selectable", "align"])) : w("", !0),
356
+ a.value ? (F(), C(u, {
358
357
  key: 1,
359
358
  fixed: "left",
360
359
  type: "index",
@@ -362,8 +361,8 @@ var J = {
362
361
  width: "60",
363
362
  "column-key": "index_1",
364
363
  align: e.align
365
- }, null, 8, ["align"])) : _("", !0),
366
- (j(!0), v(m, null, P(s.value, (t, n) => (j(), g(Fe, {
364
+ }, null, 8, ["align"])) : w("", !0),
365
+ (F(!0), T(x, null, R(s.value, (t, n) => (F(), C(Tt, {
367
366
  key: n + "column_" + t?.prop?.toString(),
368
367
  column: t,
369
368
  data: e.data,
@@ -379,7 +378,7 @@ var J = {
379
378
  ]),
380
379
  _: 1
381
380
  }, 16, ["border", "data"])), [[p, e.loading]]),
382
- e.hidePagination ? _("", !0) : (j(), g(f, {
381
+ e.hidePagination ? w("", !0) : (F(), C(f, {
383
382
  key: 0,
384
383
  class: "ui-pagination",
385
384
  size: "small",
@@ -403,14 +402,14 @@ var J = {
403
402
  "current-page",
404
403
  "total"
405
404
  ])),
406
- F(t.$slots, "default", {}, void 0, !0)
405
+ z(t.$slots, "default", {}, void 0, !0)
407
406
  ]);
408
407
  };
409
408
  }
410
409
  }), [["__scopeId", "data-v-3402edfe"]]);
411
410
  //#endregion
412
411
  //#region src/components/utils/tools.ts
413
- function Y(e) {
412
+ function Dt(e) {
414
413
  return typeof e == "number" ? e + "px" : e || "100px";
415
414
  }
416
415
  function X(e) {
@@ -418,7 +417,7 @@ function X(e) {
418
417
  }
419
418
  function Z(e, t) {
420
419
  let n = {};
421
- return Object.keys(J).forEach((r) => {
420
+ return Object.keys(Y).forEach((r) => {
422
421
  let i = r;
423
422
  n[i] = (n = {}) => ({
424
423
  props: {
@@ -428,7 +427,7 @@ function Z(e, t) {
428
427
  onChange: (r) => n.onChange?.(r) || (t[e.prop] = r)
429
428
  },
430
429
  type: i,
431
- component: J[i]
430
+ component: Y[i]
432
431
  });
433
432
  }), ((n) => typeof e.render == "function" ? e.render({
434
433
  h: n,
@@ -441,7 +440,7 @@ function Q(e, t) {
441
440
  }
442
441
  //#endregion
443
442
  //#region src/components/Filter/index.vue?vue&type=script&setup=true&lang.ts
444
- var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
443
+ var Ot = { class: "filter-buttons" }, kt = /* @__PURE__ */ J(/* @__PURE__ */ A({
445
444
  name: "UiDefaultFilter",
446
445
  __name: "index",
447
446
  props: {
@@ -463,7 +462,7 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
463
462
  "search"
464
463
  ],
465
464
  setup(e, { emit: t }) {
466
- let n = t, r = b(e, [
465
+ let n = t, r = D(e, [
467
466
  "fields",
468
467
  "labelWidth",
469
468
  "valueWidth",
@@ -471,11 +470,11 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
471
470
  "column",
472
471
  "size",
473
472
  "filterFixedValues"
474
- ]), i = M({
473
+ ]), i = I({
475
474
  expandNum: 0,
476
475
  expand: !1
477
- }), a = M({}), o = h(() => e.fields.slice(0, i.expand ? e.fields.length : i.expandNum)), s = h(() => 24 - o.value?.reduce((t, n) => t + (n.span || 24 / e.column), 0) % 24 - 24 / e.column);
478
- A(() => {
476
+ }), a = I({}), o = S(() => e.fields.slice(0, i.expand ? e.fields.length : i.expandNum)), s = S(() => 24 - o.value?.reduce((t, n) => t + (n.span || 24 / e.column), 0) % 24 - 24 / e.column);
477
+ Ve(() => {
479
478
  i.expandNum = r?.expandNum ?? 2 * e.column - 1, e.fields.forEach((e) => {
480
479
  let t = Z(e, a)?.props?.defaultValue;
481
480
  t !== void 0 && (a[e.prop] = t);
@@ -485,7 +484,7 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
485
484
  let t = {};
486
485
  Object.keys(a).forEach((e) => {
487
486
  if (a[e] !== void 0) {
488
- let n = B(a[e]);
487
+ let n = U(a[e]);
489
488
  t[e] = typeof n == "string" ? n.trim() : n;
490
489
  }
491
490
  }), n("submit", {
@@ -502,38 +501,38 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
502
501
  }), n("reset", a);
503
502
  }
504
503
  return (t, n) => {
505
- let r = I("el-input"), u = I("el-form-item"), d = I("el-col"), f = I("el-button"), p = I("el-row"), h = I("el-form");
506
- return j(), g(h, D({
504
+ let r = B("el-input"), u = B("el-form-item"), d = B("el-col"), f = B("el-button"), p = B("el-row"), m = B("el-form");
505
+ return F(), C(m, M({
507
506
  model: a,
508
507
  class: "ui-filter",
509
508
  size: e.size
510
509
  }, t.$attrs), {
511
- default: U(() => [C(p, { gutter: 20 }, {
512
- default: U(() => [(j(!0), v(m, null, P(o.value, (t) => (j(), g(d, { span: t.span || 24 / e.column }, {
513
- default: U(() => [(j(), g(u, {
510
+ default: K(() => [k(p, { gutter: 20 }, {
511
+ default: K(() => [(F(!0), T(x, null, R(o.value, (t) => (F(), C(d, { span: t.span || 24 / e.column }, {
512
+ default: K(() => [(F(), C(u, {
514
513
  key: t.prop,
515
514
  label: t.label,
516
- "label-width": V(Y)(t?.labelWidth || e.labelWidth),
517
- "value-width": V(X)(t?.valueWidth || e.valueWidth)
515
+ "label-width": W(Dt)(t?.labelWidth || e.labelWidth),
516
+ "value-width": W(X)(t?.valueWidth || e.valueWidth)
518
517
  }, {
519
- default: U(() => [t.render ? (j(), g(L(V(Z)(t, a).component), D({
518
+ default: K(() => [t.render ? (F(), C(V(W(Z)(t, a).component), M({
520
519
  key: 0,
521
520
  modelValue: a[t.prop],
522
521
  "onUpdate:modelValue": (e) => a[t.prop] = e
523
- }, { ref_for: !0 }, V(Z)(t, a).props, {
522
+ }, { ref_for: !0 }, W(Z)(t, a).props, {
524
523
  clearable: !0,
525
- style: { width: V(X)(t?.valueWidth || e.valueWidth) }
524
+ style: { width: W(X)(t?.valueWidth || e.valueWidth) }
526
525
  }), null, 16, [
527
526
  "modelValue",
528
527
  "onUpdate:modelValue",
529
528
  "style"
530
- ])) : (j(), g(r, {
529
+ ])) : (F(), C(r, {
531
530
  key: 1,
532
531
  modelValue: a[t.prop],
533
532
  "onUpdate:modelValue": (e) => a[t.prop] = e,
534
533
  placeholder: "请输入",
535
534
  clearable: !0,
536
- style: k({ width: V(X)(t?.valueWidth || e.valueWidth) })
535
+ style: P({ width: W(X)(t?.valueWidth || e.valueWidth) })
537
536
  }, null, 8, [
538
537
  "modelValue",
539
538
  "onUpdate:modelValue",
@@ -546,42 +545,42 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
546
545
  "value-width"
547
546
  ]))]),
548
547
  _: 2
549
- }, 1032, ["span"]))), 256)), C(d, {
548
+ }, 1032, ["span"]))), 256)), k(d, {
550
549
  span: 24 / e.column,
551
550
  offset: s.value
552
551
  }, {
553
- default: U(() => [C(u, {
552
+ default: K(() => [k(u, {
554
553
  label: "",
555
554
  "label-width": "30px"
556
555
  }, {
557
- default: U(() => [y("div", Le, [
558
- F(t.$slots, "left", { form: a }, void 0, !0),
559
- e.fields.length >= 2 * e.column ? (j(), g(f, {
556
+ default: K(() => [E("div", Ot, [
557
+ z(t.$slots, "left", { form: a }, void 0, !0),
558
+ e.fields.length >= 2 * e.column ? (F(), C(f, {
560
559
  key: 0,
561
560
  text: "",
562
- icon: i.expand ? V(se) : V(oe),
561
+ icon: i.expand ? W(Ye) : W(Je),
563
562
  onClick: n[0] ||= (e) => i.expand = !i.expand
564
563
  }, {
565
- default: U(() => [S(z(i.expand ? "收起" : "展开"), 1)]),
564
+ default: K(() => [O(H(i.expand ? "收起" : "展开"), 1)]),
566
565
  _: 1
567
- }, 8, ["icon"])) : _("", !0),
568
- C(f, {
569
- icon: V(he),
566
+ }, 8, ["icon"])) : w("", !0),
567
+ k(f, {
568
+ icon: W(it),
570
569
  type: "primary",
571
570
  onClick: c
572
571
  }, {
573
- default: U(() => [...n[1] ||= [S("查询", -1)]]),
572
+ default: K(() => [...n[1] ||= [O("查询", -1)]]),
574
573
  _: 1
575
574
  }, 8, ["icon"]),
576
- C(f, {
577
- icon: V(G),
575
+ k(f, {
576
+ icon: W(rt),
578
577
  onClick: l
579
578
  }, {
580
- default: U(() => [...n[2] ||= [S("重置", -1)]]),
579
+ default: K(() => [...n[2] ||= [O("重置", -1)]]),
581
580
  _: 1
582
581
  }, 8, ["icon"]),
583
- F(t.$slots, "handle", { form: a }, void 0, !0),
584
- F(t.$slots, "right", { form: a }, void 0, !0)
582
+ z(t.$slots, "handle", { form: a }, void 0, !0),
583
+ z(t.$slots, "right", { form: a }, void 0, !0)
585
584
  ])]),
586
585
  _: 3
587
586
  })]),
@@ -593,16 +592,16 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
593
592
  }, 16, ["model", "size"]);
594
593
  };
595
594
  }
596
- }), [["__scopeId", "data-v-45f0642b"]]), ze = {
595
+ }), [["__scopeId", "data-v-45f0642b"]]), At = {
597
596
  key: 0,
598
597
  style: { display: "inline-block" }
599
- }, Be = {
598
+ }, jt = {
600
599
  key: 0,
601
600
  style: { display: "inline-block" }
602
- }, Ve = {
601
+ }, Mt = {
603
602
  key: 0,
604
603
  class: "ui-form-buttons"
605
- }, He = /* @__PURE__ */ q(/* @__PURE__ */ w({
604
+ }, Nt = /* @__PURE__ */ J(/* @__PURE__ */ A({
606
605
  __name: "index",
607
606
  props: {
608
607
  fields: {},
@@ -611,7 +610,7 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
611
610
  labelWidth: { default: "100px" },
612
611
  labelPosition: { default: "top" },
613
612
  omitFields: { default: () => [] },
614
- rules: { default: () => M({}) },
613
+ rules: { default: () => I({}) },
615
614
  required: { type: Boolean },
616
615
  column: { default: 24 },
617
616
  defaultValues: {},
@@ -621,8 +620,8 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
621
620
  },
622
621
  emits: ["submit", "reset"],
623
622
  setup(e, { expose: t, emit: n }) {
624
- re((e) => ({ ec46e5ec: e.column / 2 }));
625
- let r = n, i = b(e, [
623
+ Ge((e) => ({ ec46e5ec: e.column / 2 }));
624
+ let r = n, i = D(e, [
626
625
  "fields",
627
626
  "labelWidth",
628
627
  "valueWidth",
@@ -631,8 +630,8 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
631
630
  "labelPosition",
632
631
  "valueModel",
633
632
  "column"
634
- ]), a = N(0), o = N(), s = M({}), c = h(() => {
635
- let t = B(s);
633
+ ]), a = L(0), o = L(), s = I({}), c = S(() => {
634
+ let t = U(s);
636
635
  return e.fields.forEach((e) => {
637
636
  let n = e.prop ? t?.[e.prop] : void 0, r = Q(e, s)?.props?.defaultValue;
638
637
  s[e.prop] = n ?? r ?? void 0, e?.slots && e?.slots?.length > 0 && e.slots.forEach((e) => {
@@ -640,7 +639,7 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
640
639
  s[e.prop] = n ?? r ?? void 0;
641
640
  });
642
641
  }), e.fields.filter((e) => typeof e.prop == "string");
643
- }), l = h(() => {
642
+ }), l = S(() => {
644
643
  if (e.rules && Object.keys(e.rules).length) return e.rules;
645
644
  let t = {};
646
645
  return c.value.forEach((e) => {
@@ -651,7 +650,7 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
651
650
  }]);
652
651
  }), t;
653
652
  });
654
- ae(() => {
653
+ qe(() => {
655
654
  Object.assign(s, i?.form);
656
655
  });
657
656
  async function u(e) {
@@ -661,7 +660,7 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
661
660
  }), !t) return;
662
661
  let n = {};
663
662
  Object.keys(s).forEach((e) => {
664
- s[e] !== void 0 && (n[e] = B(s[e]));
663
+ s[e] !== void 0 && (n[e] = U(s[e]));
665
664
  }), r("submit", n);
666
665
  }
667
666
  function d() {
@@ -675,25 +674,25 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
675
674
  function p() {
676
675
  return s;
677
676
  }
678
- function y(e) {
677
+ function m(e) {
679
678
  Object.keys(e).forEach((t) => {
680
679
  s[t] = e[t];
681
680
  });
682
681
  }
683
- async function x() {
682
+ async function h() {
684
683
  return new Promise((e) => {
685
684
  o.value?.validate((t, n) => e(n));
686
685
  });
687
686
  }
688
687
  return t({
689
688
  getValues: p,
690
- setValues: y,
689
+ setValues: m,
691
690
  clearValidate: d,
692
691
  onSubmit: u,
693
- validate: x
692
+ validate: h
694
693
  }), (t, n) => {
695
- let r = I("el-input"), i = I("el-form-item"), d = I("el-form"), p = I("el-button");
696
- return j(), v(m, null, [C(d, D({
694
+ let r = B("el-input"), i = B("el-form-item"), d = B("el-form"), p = B("el-button");
695
+ return F(), T(x, null, [k(d, M({
697
696
  ref_key: "uiFormRef",
698
697
  ref: o,
699
698
  model: s
@@ -707,22 +706,22 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
707
706
  },
708
707
  "validate-on-rule-change": !1
709
708
  }), {
710
- default: U(() => [(j(!0), v(m, null, P(c.value, (n) => (j(), g(i, {
709
+ default: K(() => [(F(!0), T(x, null, R(c.value, (n) => (F(), C(i, {
711
710
  key: n.prop,
712
711
  label: n.label,
713
712
  "label-width": e.labelWidth,
714
713
  "value-width": e.valueWidth,
715
714
  prop: n.prop,
716
- style: k({
715
+ style: P({
717
716
  width: `${n?.width ? n?.width + "px" : "100%"}`,
718
717
  gridColumn: `span ${(n?.span || e.column) / 2 || 1}`
719
718
  })
720
719
  }, {
721
- default: U(() => [n.render ? (j(), v(m, { key: 0 }, [V(Q)(n, s).component ? (j(), g(L(V(Q)(n, s).component), D({
720
+ default: K(() => [n.render ? (F(), T(x, { key: 0 }, [W(Q)(n, s).component ? (F(), C(V(W(Q)(n, s).component), M({
722
721
  key: 1,
723
722
  modelValue: s[n.prop],
724
723
  "onUpdate:modelValue": (e) => s[n.prop] = e
725
- }, { ref_for: !0 }, V(Q)(n, s).props, {
724
+ }, { ref_for: !0 }, W(Q)(n, s).props, {
726
725
  clearable: !0,
727
726
  key: `${n.prop}-${a.value}`,
728
727
  style: { display: "inline-block" },
@@ -731,13 +730,13 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
731
730
  "modelValue",
732
731
  "onUpdate:modelValue",
733
732
  "class"
734
- ])) : (j(), v("span", ze, z(V(Q)(n, s) || "-"), 1)), (j(!0), v(m, null, P(n.slots, (n) => F(t.$slots, "default", { form: s }, () => [V(Q)(n, s).component ? (j(), g(L(V(Q)(n, s).component), D({
733
+ ])) : (F(), T("span", At, H(W(Q)(n, s) || "-"), 1)), (F(!0), T(x, null, R(n.slots, (n) => z(t.$slots, "default", { form: s }, () => [W(Q)(n, s).component ? (F(), C(V(W(Q)(n, s).component), M({
735
734
  key: 1,
736
735
  modelValue: s[n.prop],
737
736
  "onUpdate:modelValue": (e) => s[n.prop] = e,
738
737
  "default-value": n.defaultValue,
739
738
  placeholder: n.placeholder
740
- }, { ref_for: !0 }, V(Q)(n, s).props, {
739
+ }, { ref_for: !0 }, W(Q)(n, s).props, {
741
740
  style: {
742
741
  display: "inline-block",
743
742
  marginLeft: "10px",
@@ -753,13 +752,13 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
753
752
  "placeholder",
754
753
  "style",
755
754
  "class"
756
- ])) : (j(), v("span", Be, z(V(Q)(n, s) || "-"), 1))], !0)), 256))], 64)) : (j(), g(r, {
755
+ ])) : (F(), T("span", jt, H(W(Q)(n, s) || "-"), 1))], !0)), 256))], 64)) : (F(), C(r, {
757
756
  key: 1,
758
757
  modelValue: s[n.prop],
759
758
  "onUpdate:modelValue": (e) => s[n.prop] = e,
760
759
  placeholder: "请输入",
761
760
  clearable: !0,
762
- class: O({ underline: e.valueModel === "underline" })
761
+ class: N({ underline: e.valueModel === "underline" })
763
762
  }, null, 8, [
764
763
  "modelValue",
765
764
  "onUpdate:modelValue",
@@ -780,31 +779,31 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
780
779
  "inline",
781
780
  "label-position",
782
781
  "class"
783
- ]), t.$attrs?.hideHandle ? _("", !0) : (j(), v("div", Ve, [
784
- F(t.$slots, "handle", { form: s }, void 0, !0),
785
- C(p, {
786
- icon: V(G),
782
+ ]), t.$attrs?.hideHandle ? w("", !0) : (F(), T("div", Mt, [
783
+ z(t.$slots, "handle", { form: s }, void 0, !0),
784
+ k(p, {
785
+ icon: W(rt),
787
786
  onClick: n[0] ||= (e) => o.value && f(),
788
787
  size: t.$props.size
789
788
  }, {
790
- default: U(() => [...n[2] ||= [S("重置", -1)]]),
789
+ default: K(() => [...n[2] ||= [O("重置", -1)]]),
791
790
  _: 1
792
791
  }, 8, ["icon", "size"]),
793
- C(p, {
794
- icon: V(me),
792
+ k(p, {
793
+ icon: W(nt),
795
794
  type: "primary",
796
795
  onClick: n[1] ||= (e) => o.value && u(o.value),
797
796
  size: t.$props.size
798
797
  }, {
799
- default: U(() => [...n[3] ||= [S("提交", -1)]]),
798
+ default: K(() => [...n[3] ||= [O("提交", -1)]]),
800
799
  _: 1
801
800
  }, 8, ["icon", "size"])
802
801
  ]))], 64);
803
802
  };
804
803
  }
805
- }), [["__scopeId", "data-v-f8f2a1f5"]]), Ue = ["disabled"], $ = /* @__PURE__ */ w({
804
+ }), [["__scopeId", "data-v-f8f2a1f5"]]), Pt = ["disabled"], $ = /* @__PURE__ */ A({
806
805
  __name: "index",
807
- props: /* @__PURE__ */ E({
806
+ props: /* @__PURE__ */ ze({
808
807
  defaultValue: { default: "" },
809
808
  disabled: {
810
809
  type: Boolean,
@@ -817,11 +816,11 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
817
816
  },
818
817
  modelModifiers: {}
819
818
  }),
820
- emits: /* @__PURE__ */ E(["change"], ["update:modelValue"]),
819
+ emits: /* @__PURE__ */ ze(["change"], ["update:modelValue"]),
821
820
  setup(e, { emit: t }) {
822
- let n = N(), r = ie(e, "modelValue"), i = N(r.value || e.defaultValue || ""), a = null, o = t;
823
- return A(() => {
824
- a = new ge({
821
+ let n = L(), r = Ke(e, "modelValue"), i = L(r.value || e.defaultValue || ""), a = null, o = t;
822
+ return Ve(() => {
823
+ a = new at({
825
824
  element: n.value,
826
825
  placeholder: "点击输入内容...",
827
826
  content: r.value || e.defaultValue || "",
@@ -831,18 +830,18 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
831
830
  r.value = t, i.value = t, o("change", t);
832
831
  }
833
832
  }), a.setEditable(!e.disabled);
834
- }), H(r, (e) => {
833
+ }), G(r, (e) => {
835
834
  a && e !== a.getHtml() && a.setContent(e);
836
- }), te(() => {
835
+ }), He(() => {
837
836
  a && a.destroy();
838
- }), (t, r) => (j(), v("div", {
837
+ }), (t, r) => (F(), T("div", {
839
838
  ref_key: "editorRef",
840
839
  ref: n,
841
840
  style: { height: "500px" },
842
841
  disabled: e.disabled
843
- }, null, 8, Ue));
842
+ }, null, 8, Pt));
844
843
  }
845
- }), We = { class: "ui-tree-wrapper" }, Ge = {
844
+ }), Ft = { class: "ui-tree-wrapper" }, It = {
846
845
  key: 0,
847
846
  style: {
848
847
  display: "flex",
@@ -851,14 +850,14 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
851
850
  "align-items": "center",
852
851
  gap: "10px"
853
852
  }
854
- }, Ke = {
853
+ }, Lt = {
855
854
  key: 0,
856
855
  class: "custom-tree-node"
857
- }, qe = { class: "node-label" }, Je = { style: {
856
+ }, Rt = { class: "node-label" }, zt = { style: {
858
857
  color: "#ef4444",
859
858
  display: "flex",
860
859
  "align-items": "center"
861
- } }, Ye = /* @__PURE__ */ q(/* @__PURE__ */ w({
860
+ } }, Bt = /* @__PURE__ */ J(/* @__PURE__ */ A({
862
861
  __name: "index",
863
862
  props: {
864
863
  id: {},
@@ -875,13 +874,13 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
875
874
  },
876
875
  emits: ["change"],
877
876
  setup(e, { emit: t }) {
878
- let n = b(e, [
877
+ let n = D(e, [
879
878
  "filterable",
880
879
  "placeholder",
881
880
  "data",
882
881
  "props"
883
- ]), r = N(""), i = N(), a = N(null);
884
- H(r, (t) => {
882
+ ]), r = L(""), i = L(), a = L(null);
883
+ G(r, (t) => {
885
884
  e.filterable && a.value.filter(t);
886
885
  });
887
886
  function o(t, n) {
@@ -890,8 +889,8 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
890
889
  function s(e, t) {
891
890
  e?.stopPropagation(), i.value = t.id;
892
891
  }
893
- function l() {
894
- c.prompt("请输入新的名称", "添加节点", {
892
+ function c() {
893
+ v.prompt("请输入新的名称", "添加节点", {
895
894
  confirmButtonText: "确定",
896
895
  cancelButtonText: "取消",
897
896
  callback: async (e) => {
@@ -902,8 +901,8 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
902
901
  }
903
902
  });
904
903
  }
905
- function u(e) {
906
- c.prompt("请输入新的名称", "重命名", {
904
+ function l(e) {
905
+ v.prompt("请输入新的名称", "重命名", {
907
906
  confirmButtonText: "确定",
908
907
  cancelButtonText: "取消",
909
908
  inputValue: e.label
@@ -911,18 +910,18 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
911
910
  console.log("修改节点 =》》", e);
912
911
  });
913
912
  }
914
- async function d(e) {
913
+ async function u(e) {
915
914
  e.id && console.log("删除节点 =》》", e.id);
916
915
  }
917
916
  return (t, i) => {
918
- let c = I("el-input"), f = I("el-icon"), p = I("el-button"), m = I("el-dropdown-item"), h = I("el-dropdown-menu"), b = I("el-dropdown"), x = I("el-tree-v2");
919
- return j(), v("div", We, [
920
- e.filterable ? (j(), v("div", Ge, [C(c, {
917
+ let d = B("el-input"), f = B("el-icon"), p = B("el-button"), m = B("el-dropdown-item"), h = B("el-dropdown-menu"), ee = B("el-dropdown"), g = B("el-tree-v2");
918
+ return F(), T("div", Ft, [
919
+ e.filterable ? (F(), T("div", It, [k(d, {
921
920
  modelValue: r.value,
922
921
  "onUpdate:modelValue": i[0] ||= (e) => r.value = e,
923
922
  placeholder: e.placeholder ?? "请输入",
924
923
  clearable: ""
925
- }, null, 8, ["modelValue", "placeholder"]), n?.hidePlusHandle ? _("", !0) : (j(), g(p, {
924
+ }, null, 8, ["modelValue", "placeholder"]), n?.hidePlusHandle ? w("", !0) : (F(), C(p, {
926
925
  key: 0,
927
926
  style: {
928
927
  margin: "0px",
@@ -930,14 +929,14 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
930
929
  },
931
930
  link: ""
932
931
  }, {
933
- default: U(() => [C(f, { size: 22 }, {
934
- default: U(() => [C(V(ce), { onClick: i[1] ||= (e) => l() })]),
932
+ default: K(() => [k(f, { size: 22 }, {
933
+ default: K(() => [k(W(Xe), { onClick: i[1] ||= (e) => c() })]),
935
934
  _: 1
936
935
  })]),
937
936
  _: 1
938
- }))])) : _("", !0),
939
- F(t.$slots, "handle", { style: "margin-top: 8px" }, void 0, !0),
940
- C(x, D({
937
+ }))])) : w("", !0),
938
+ z(t.$slots, "handle", { style: "margin-top: 8px" }, void 0, !0),
939
+ k(g, M({
941
940
  ref_key: "treeRef",
942
941
  ref: a,
943
942
  style: { "margin-top": "8px" }
@@ -949,70 +948,70 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
949
948
  "highlight-current": !0,
950
949
  "filter-method": o
951
950
  }), {
952
- default: U((r) => [r?.data ? (j(), v("div", Ke, [y("div", qe, [r.data?.children?.length ? (j(), g(f, { key: 0 }, {
953
- default: U(() => [C(V(fe))]),
951
+ default: K((r) => [r?.data ? (F(), T("div", Lt, [E("div", Rt, [r.data?.children?.length ? (F(), C(f, { key: 0 }, {
952
+ default: K(() => [k(W(et))]),
954
953
  _: 1
955
- })) : _("", !0), S(" " + z(r.data?.[e.props?.label || "label"]) + " " + z(r.data?.children?.length ? `(${r.data.children.length})` : ""), 1)]), n.hideNodeHandle ? _("", !0) : (j(), g(b, {
954
+ })) : w("", !0), O(" " + H(r.data?.[e.props?.label || "label"]) + " " + H(r.data?.children?.length ? `(${r.data.children.length})` : ""), 1)]), n.hideNodeHandle ? w("", !0) : (F(), C(ee, {
956
955
  key: 0,
957
956
  trigger: "click"
958
957
  }, {
959
- dropdown: U(() => [C(h, null, {
960
- default: U(() => [
961
- n?.hideNodeAdd ? _("", !0) : (j(), g(m, {
958
+ dropdown: K(() => [k(h, null, {
959
+ default: K(() => [
960
+ n?.hideNodeAdd ? w("", !0) : (F(), C(m, {
962
961
  key: 0,
963
- onClick: i[2] ||= (e) => l()
962
+ onClick: i[2] ||= (e) => c()
964
963
  }, {
965
- default: U(() => [C(f, null, {
966
- default: U(() => [C(V(ue))]),
964
+ default: K(() => [k(f, null, {
965
+ default: K(() => [k(W(Qe))]),
967
966
  _: 1
968
- }), i[3] ||= S("添加 ", -1)]),
967
+ }), i[3] ||= O("添加 ", -1)]),
969
968
  _: 1
970
969
  })),
971
- n?.hideNodeEdit ? _("", !0) : (j(), g(m, {
970
+ n?.hideNodeEdit ? w("", !0) : (F(), C(m, {
972
971
  key: 1,
973
- onClick: (e) => u(r.data)
972
+ onClick: (e) => l(r.data)
974
973
  }, {
975
- default: U(() => [C(f, null, {
976
- default: U(() => [C(V(de))]),
974
+ default: K(() => [k(f, null, {
975
+ default: K(() => [k(W($e))]),
977
976
  _: 1
978
- }), i[4] ||= S("编辑 ", -1)]),
977
+ }), i[4] ||= O("编辑 ", -1)]),
979
978
  _: 1
980
979
  }, 8, ["onClick"])),
981
- n?.hideNodeDel ? _("", !0) : (j(), g(m, {
980
+ n?.hideNodeDel ? w("", !0) : (F(), C(m, {
982
981
  key: 2,
983
- onClick: (e) => d(r.data)
982
+ onClick: (e) => u(r.data)
984
983
  }, {
985
- default: U(() => [y("span", Je, [C(f, null, {
986
- default: U(() => [C(V(le))]),
984
+ default: K(() => [E("span", zt, [k(f, null, {
985
+ default: K(() => [k(W(Ze))]),
987
986
  _: 1
988
- }), i[5] ||= S("删除 ", -1)])]),
987
+ }), i[5] ||= O("删除 ", -1)])]),
989
988
  _: 1
990
989
  }, 8, ["onClick"])),
991
- F(t.$slots, "node-handle", { data: r.data }, void 0, !0)
990
+ z(t.$slots, "node-handle", { data: r.data }, void 0, !0)
992
991
  ]),
993
992
  _: 2
994
993
  }, 1024)]),
995
- default: U(() => [C(f, { onClick: (e) => s(e, r.data) }, {
996
- default: U(() => [C(V(pe))]),
994
+ default: K(() => [k(f, { onClick: (e) => s(e, r.data) }, {
995
+ default: K(() => [k(W(tt))]),
997
996
  _: 1
998
997
  }, 8, ["onClick"])]),
999
998
  _: 2
1000
- }, 1024))])) : _("", !0)]),
999
+ }, 1024))])) : w("", !0)]),
1001
1000
  _: 3
1002
1001
  }, 16, ["node-key"])
1003
1002
  ]);
1004
1003
  };
1005
1004
  }
1006
- }), [["__scopeId", "data-v-4495ddac"]]), Xe = { style: { height: "100%" } }, Ze = { style: {
1005
+ }), [["__scopeId", "data-v-4495ddac"]]), Vt = { style: { height: "100%" } }, Ht = { style: {
1007
1006
  display: "flex",
1008
1007
  "flex-direction": "row",
1009
1008
  "justify-content": "space-between",
1010
1009
  "align-items": "center",
1011
1010
  gap: "10px"
1012
- } }, Qe = { style: { margin: "10px 0px" } }, $e = ["onClick"], et = { key: 0 }, tt = /* @__PURE__ */ q(/* @__PURE__ */ w({
1011
+ } }, Ut = { style: { margin: "10px 0px" } }, Wt = ["onClick"], Gt = { key: 0 }, Kt = /* @__PURE__ */ J(/* @__PURE__ */ A({
1013
1012
  __name: "index",
1014
1013
  props: {
1015
- loading: { default: () => N(!1) },
1014
+ loading: { default: () => L(!1) },
1016
1015
  data: {},
1017
1016
  placeholder: {},
1018
1017
  props: {},
@@ -1021,46 +1020,46 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
1021
1020
  },
1022
1021
  emits: ["node-click"],
1023
1022
  setup(e, { emit: t }) {
1024
- let n = t, r = N(""), i = N(), a = h(() => r.value ? e.data.filter((t) => t[e.props?.label || "label"]?.includes(r.value)) : e.data);
1025
- H(() => [i.value, e.data?.[0]], (t) => {
1023
+ let n = t, r = L(""), i = L(), a = S(() => r.value ? e.data.filter((t) => t[e.props?.label || "label"]?.includes(r.value)) : e.data);
1024
+ G(() => [i.value, e.data?.[0]], (t) => {
1026
1025
  !t[0] && t[1] && (i.value = e.data?.[0]);
1027
1026
  }, { immediate: !0 });
1028
1027
  function o(e) {
1029
1028
  i.value = e, n("node-click", e);
1030
1029
  }
1031
1030
  return (t, n) => {
1032
- let s = I("el-input");
1033
- return j(), v("div", Xe, [
1034
- y("div", Ze, [e.filterable ? (j(), g(s, {
1031
+ let s = B("el-input");
1032
+ return F(), T("div", Vt, [
1033
+ E("div", Ht, [e.filterable ? (F(), C(s, {
1035
1034
  key: 0,
1036
1035
  modelValue: r.value,
1037
1036
  "onUpdate:modelValue": n[0] ||= (e) => r.value = e,
1038
1037
  placeholder: e.placeholder ?? "请输入"
1039
- }, null, 8, ["modelValue", "placeholder"])) : _("", !0), F(t.$slots, "plus", {}, void 0, !0)]),
1040
- y("div", Qe, [F(t.$slots, "handle", {}, void 0, !0)]),
1041
- W((j(), v("ul", D({
1038
+ }, null, 8, ["modelValue", "placeholder"])) : w("", !0), z(t.$slots, "plus", {}, void 0, !0)]),
1039
+ E("div", Ut, [z(t.$slots, "handle", {}, void 0, !0)]),
1040
+ q((F(), T("ul", M({
1042
1041
  class: "infinite-list",
1043
1042
  "infinite-scroll-immediate": !1
1044
- }, t.$attrs), [(j(!0), v(m, null, P(a.value, (n, r) => (j(), v("li", {
1043
+ }, t.$attrs), [(F(!0), T(x, null, R(a.value, (n, r) => (F(), T("li", {
1045
1044
  key: "infinite-list-" + r,
1046
- class: O({
1045
+ class: N({
1047
1046
  "infinite-list-item": !0,
1048
1047
  active: n === i.value
1049
1048
  }),
1050
1049
  onClick: (e) => o(n)
1051
- }, [y("span", null, z(n[e.props?.label || "label"]), 1), F(t.$slots, "itemHandle", { data: n }, void 0, !0)], 10, $e))), 128))], 16)), [[V(e.vInfiniteScroll), e.vInfiniteScroll]]),
1052
- e.loading.value ? (j(), v("p", et, "loading...")) : _("", !0)
1050
+ }, [E("span", null, H(n[e.props?.label || "label"]), 1), z(t.$slots, "itemHandle", { data: n }, void 0, !0)], 10, Wt))), 128))], 16)), [[W(e.vInfiniteScroll), e.vInfiniteScroll]]),
1051
+ e.loading.value ? (F(), T("p", Gt, "loading...")) : w("", !0)
1053
1052
  ]);
1054
1053
  };
1055
1054
  }
1056
- }), [["__scopeId", "data-v-2180fa82"]]), nt = {
1055
+ }), [["__scopeId", "data-v-2180fa82"]]), qt = {
1057
1056
  key: 0,
1058
1057
  style: {
1059
1058
  padding: "10px 0px",
1060
1059
  "margin-bottom": "10px",
1061
1060
  "border-bottom": "1px solid #e5e5e5"
1062
1061
  }
1063
- }, rt = { key: 1 }, it = /* @__PURE__ */ q(/* @__PURE__ */ w({
1062
+ }, Jt = { key: 1 }, Yt = /* @__PURE__ */ J(/* @__PURE__ */ A({
1064
1063
  __name: "index",
1065
1064
  props: {
1066
1065
  data: {},
@@ -1074,32 +1073,32 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
1074
1073
  labelWidth: {}
1075
1074
  },
1076
1075
  setup(e) {
1077
- let t = b(e, [
1076
+ let t = D(e, [
1078
1077
  "title",
1079
1078
  "column",
1080
1079
  "fields",
1081
1080
  "data"
1082
1081
  ]);
1083
1082
  return (n, r) => {
1084
- let i = I("el-descriptions-item"), a = I("el-descriptions");
1085
- return j(), v(m, null, [
1086
- e.title ? (j(), v("h4", nt, z(e.title), 1)) : _("", !0),
1087
- F(n.$slots, "title", {}, void 0, !0),
1088
- C(a, D({ column: e.column }, t, { class: "ui-descriptions" }), {
1089
- default: U(() => [(j(!0), v(m, null, P(e.fields, (t) => (j(), g(i, {
1083
+ let i = B("el-descriptions-item"), a = B("el-descriptions");
1084
+ return F(), T(x, null, [
1085
+ e.title ? (F(), T("h4", qt, H(e.title), 1)) : w("", !0),
1086
+ z(n.$slots, "title", {}, void 0, !0),
1087
+ k(a, M({ column: e.column }, t, { class: "ui-descriptions" }), {
1088
+ default: K(() => [(F(!0), T(x, null, R(e.fields, (t) => (F(), C(i, {
1090
1089
  key: t.prop,
1091
1090
  label: t.label,
1092
1091
  span: t.span || 2
1093
1092
  }, {
1094
- default: U(() => [t.render ? (j(), g(L(V(Z)(t, e.data).component), D({
1093
+ default: K(() => [t.render ? (F(), C(V(W(Z)(t, e.data).component), M({
1095
1094
  key: 0,
1096
1095
  modelValue: e.data[t.prop],
1097
1096
  "onUpdate:modelValue": (n) => e.data[t.prop] = n
1098
- }, { ref_for: !0 }, V(Z)(t, e.data).props, {
1097
+ }, { ref_for: !0 }, W(Z)(t, e.data).props, {
1099
1098
  clearable: !0,
1100
1099
  key: t.prop,
1101
1100
  style: { display: "inline-block" }
1102
- }), null, 16, ["modelValue", "onUpdate:modelValue"])) : (j(), v("span", rt, z(e.data[t.prop] || "-"), 1))]),
1101
+ }), null, 16, ["modelValue", "onUpdate:modelValue"])) : (F(), T("span", Jt, H(e.data[t.prop] || "-"), 1))]),
1103
1102
  _: 2
1104
1103
  }, 1032, ["label", "span"]))), 128))]),
1105
1104
  _: 1
@@ -1107,10 +1106,10 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
1107
1106
  ], 64);
1108
1107
  };
1109
1108
  }
1110
- }), [["__scopeId", "data-v-f02c30f9"]]), at = {
1109
+ }), [["__scopeId", "data-v-f02c30f9"]]), Xt = {
1111
1110
  key: 0,
1112
1111
  class: "dialog-footer"
1113
- }, ot = /* @__PURE__ */ q(/* @__PURE__ */ w({
1112
+ }, Zt = /* @__PURE__ */ J(/* @__PURE__ */ A({
1114
1113
  __name: "index",
1115
1114
  props: {
1116
1115
  visible: { type: Boolean },
@@ -1125,16 +1124,16 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
1125
1124
  "submit"
1126
1125
  ],
1127
1126
  setup(e, { emit: t }) {
1128
- let n = t, r = e, i = N();
1127
+ let n = t, r = e, i = L();
1129
1128
  function a() {
1130
1129
  n("close"), n("update:visible", !1);
1131
1130
  }
1132
1131
  function o() {
1133
- n("submit", B(i?.value || {})), n("update:visible", !1);
1132
+ n("submit", U(i?.value || {})), n("update:visible", !1);
1134
1133
  }
1135
1134
  return (e, t) => {
1136
- let n = I("el-button"), s = I("el-dialog");
1137
- return j(), g(s, D(e.$attrs, {
1135
+ let n = B("el-button"), s = B("el-dialog");
1136
+ return F(), C(s, M(e.$attrs, {
1138
1137
  "model-value": r.visible,
1139
1138
  "show-close": r.disabled,
1140
1139
  fullscreen: !r.width,
@@ -1144,17 +1143,17 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
1144
1143
  "onUpdate:modelValue": t[0] ||= (e) => !e && a(),
1145
1144
  onClose: a
1146
1145
  }), {
1147
- default: U(() => [(j(), g(L(r.component), D({
1146
+ default: K(() => [(F(), C(V(r.component), M({
1148
1147
  ref_key: "slotRef",
1149
1148
  ref: i
1150
- }, r.componentProps), null, 16)), r.disabled ? _("", !0) : (j(), v("div", at, [C(n, { onClick: a }, {
1151
- default: U(() => [...t[1] ||= [S("取消", -1)]]),
1149
+ }, r.componentProps), null, 16)), r.disabled ? w("", !0) : (F(), T("div", Xt, [k(n, { onClick: a }, {
1150
+ default: K(() => [...t[1] ||= [O("取消", -1)]]),
1152
1151
  _: 1
1153
- }), C(n, {
1152
+ }), k(n, {
1154
1153
  type: "primary",
1155
1154
  onClick: o
1156
1155
  }, {
1157
- default: U(() => [...t[2] ||= [S("确定", -1)]]),
1156
+ default: K(() => [...t[2] ||= [O("确定", -1)]]),
1158
1157
  _: 1
1159
1158
  })]))]),
1160
1159
  _: 1
@@ -1165,20 +1164,20 @@ var Le = { class: "filter-buttons" }, Re = /* @__PURE__ */ q(/* @__PURE__ */ w({
1165
1164
  ]);
1166
1165
  };
1167
1166
  }
1168
- }), [["__scopeId", "data-v-fde928bf"]]), st = /* @__PURE__ */ _e({
1169
- UiCard: () => be,
1170
- UiDescriptions: () => it,
1171
- UiDialog: () => ot,
1167
+ }), [["__scopeId", "data-v-fde928bf"]]), Qt = /* @__PURE__ */ st({
1168
+ UiCard: () => ut,
1169
+ UiDescriptions: () => Yt,
1170
+ UiDialog: () => Zt,
1172
1171
  UiEditor: () => $,
1173
- UiFilter: () => Re,
1174
- UiForm: () => He,
1175
- UiInfiniteScroll: () => tt,
1176
- UiTable: () => Ie,
1177
- UiTree: () => Ye
1178
- }), ct = { install(n) {
1179
- for (let [e, r] of Object.entries(t)) n.component(e.replace(/^El/, "Yc"), r);
1180
- t.provideGlobalConfig({ locale: e });
1181
- for (let [e, t] of Object.entries(st)) n.component(e.replace(/^Ui/, "Yc"), t);
1172
+ UiFilter: () => kt,
1173
+ UiForm: () => Nt,
1174
+ UiInfiniteScroll: () => Kt,
1175
+ UiTable: () => Et,
1176
+ UiTree: () => Bt
1177
+ }), $t = { async install(t) {
1178
+ t.use(v), t.use(le), t.use(fe), Le({ locale: e });
1179
+ let n = await Promise.resolve().then(() => Qt);
1180
+ for (let [e, r] of Object.entries(n)) r && typeof r == "object" && "install" in r ? t.use(r) : r && typeof r == "function" && t.component(e.replace(/^Ui/, "Yc"), r);
1182
1181
  } };
1183
1182
  //#endregion
1184
- export { ct as default };
1183
+ export { i as ElCol, a as ElConfigProvider, o as ElDatePicker, ut as UiCard, Yt as UiDescriptions, Zt as UiDialog, $ as UiEditor, kt as UiFilter, Nt as UiForm, Kt as UiInfiniteScroll, Et as UiTable, Bt as UiTree, n as YcButton, r as YcCard, c as YcDescriptions, l as YcDescriptionsItem, u as YcDialog, d as YcDropdown, f as YcDropdownItem, p as YcDropdownMenu, m as YcForm, h as YcFormItem, ee as YcIcon, te as YcInput, re as YcInputNumber, ae as YcInputTag, oe as YcLink, se as YcMenu, ce as YcMenuItem, ue as YcMessage, de as YcMessageBox, pe as YcNotification, me as YcOption, he as YcOptionGroup, ge as YcPagination, _e as YcPopconfirm, ve as YcPopover, ye as YcRadio, be as YcRadioButton, Se as YcRadioGroup, Ce as YcRow, we as YcScrollbar, Ee as YcSelect, De as YcSubMenu, Oe as YcSwitch, ke as YcTable, Ae as YcTableColumn, je as YcTag, Me as YcText, Pe as YcTimeSelect, Fe as YcTreeV2, Ie as YcUpload, $t as default, $t as ycPlugin };