yc-vep-ui 0.0.17 → 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 CHANGED
@@ -1,9 +1,8 @@
1
- import * as e from "element-plus";
2
- import { ElButton as t, ElDatePicker as n, ElInput as r, ElInputNumber as i, ElInputTag as a, ElLink as o, ElMessageBox as s, ElRadioGroup as c, ElSelect as l, ElTag as u, ElText as d, ElTimeSelect as f } from "element-plus";
3
- import { Fragment as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createPropsRestProxy as y, createSlots as b, createTextVNode as x, createVNode as S, defineComponent as C, h as w, mergeModels as T, mergeProps as E, nextTick as ee, normalizeClass as D, normalizeStyle as O, onMounted as te, onUnmounted as ne, openBlock as k, reactive as A, ref as j, renderList as M, renderSlot as N, resolveComponent as P, resolveDirective as re, resolveDynamicComponent as F, setBlockTracking as I, toDisplayString as L, toValue as R, unref as z, useCssVars as ie, useModel as ae, watch as B, watchEffect as oe, withCtx as V, withDirectives as H } from "vue";
4
- import { AiEditor as se } from "aieditor";
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 { 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";
5
4
  //#region node_modules/element-plus/es/locale/lang/zh-cn.mjs
6
- var ce = {
5
+ var Pe = {
7
6
  name: "zh-cn",
8
7
  el: {
9
8
  breadcrumb: { label: "面包屑" },
@@ -182,7 +181,7 @@ var ce = {
182
181
  defaultLabel: "请输入第 {index} 位 OTP 字符"
183
182
  }
184
183
  }
185
- }, le = { class: /* @__PURE__ */ D({ bodyClass: !0 }) }, ue = /* @__PURE__ */ C({
184
+ }, Fe = { class: /* @__PURE__ */ h({ bodyClass: !0 }) }, Ie = /* @__PURE__ */ u({
186
185
  __name: "index",
187
186
  props: {
188
187
  title: {},
@@ -191,175 +190,175 @@ var ce = {
191
190
  icon: {}
192
191
  },
193
192
  setup(e) {
194
- let t = m(() => ({
193
+ let i = t(() => ({
195
194
  display: "flex",
196
195
  alignItems: "center",
197
196
  gap: "4px",
198
197
  borderBottom: e.hideBorder ? "1px solid #e5e7eb" : "none"
199
198
  }));
200
- return (n, r) => {
201
- let i = P("el-icon"), a = P("el-card");
202
- return k(), h(a, E(n.$attrs, { class: {
199
+ return (t, o) => {
200
+ let l = w("el-icon"), u = w("el-card");
201
+ return y(), n(u, p(t.$attrs, { class: {
203
202
  "ui-card": !0,
204
203
  hideBorder: e.hideBorder
205
- } }), b({
206
- default: V(() => [v("div", le, [N(n.$slots, "default", {}, void 0, !0)])]),
204
+ } }), s({
205
+ default: N(() => [a("div", Fe, [C(t.$slots, "default", {}, void 0, !0)])]),
207
206
  _: 2
208
207
  }, [e.title && e.title?.length > 0 ? {
209
208
  name: "header",
210
- fn: V(() => [v("div", { style: O(t.value) }, [e.icon ? (k(), h(i, { key: 0 }, {
211
- default: V(() => [(k(), h(F(e.icon), { color: "#2563eb" }))]),
209
+ fn: N(() => [a("div", { style: g(i.value) }, [e.icon ? (y(), n(l, { key: 0 }, {
210
+ default: N(() => [(y(), n(E(e.icon), { color: "#2563eb" }))]),
212
211
  _: 1
213
- })) : g("", !0), r[0] || (I(-1, !0), (r[0] = v("h4", null, [x(L(e.title), 1)])).cacheIndex = 0, I(1), r[0])], 4)]),
212
+ })) : r("", !0), o[0] || (D(-1, !0), (o[0] = a("h4", null, [c(O(e.title), 1)])).cacheIndex = 0, D(1), o[0])], 4)]),
214
213
  key: "0"
215
214
  } : void 0]), 1040, ["class"]);
216
215
  };
217
216
  }
218
- }), U = (e, t) => {
217
+ }), G = (e, t) => {
219
218
  let n = e.__vccOpts || e;
220
219
  for (let [e, r] of t) n[e] = r;
221
220
  return n;
222
- }, W = /* @__PURE__ */ U(ue, [["__scopeId", "data-v-ae248017"]]), de = /* @__PURE__ */ C({
221
+ }, K = /* @__PURE__ */ G(Ie, [["__scopeId", "data-v-ae248017"]]), Le = /* @__PURE__ */ u({
223
222
  name: "ArrowRight",
224
223
  __name: "arrow-right",
225
224
  setup(e) {
226
- return (e, t) => (k(), _("svg", {
225
+ return (e, t) => (y(), i("svg", {
227
226
  xmlns: "http://www.w3.org/2000/svg",
228
227
  viewBox: "0 0 1024 1024"
229
- }, [v("path", {
228
+ }, [a("path", {
230
229
  fill: "currentColor",
231
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"
232
231
  })]));
233
232
  }
234
- }), fe = /* @__PURE__ */ C({
233
+ }), Re = /* @__PURE__ */ u({
235
234
  name: "ArrowUp",
236
235
  __name: "arrow-up",
237
236
  setup(e) {
238
- return (e, t) => (k(), _("svg", {
237
+ return (e, t) => (y(), i("svg", {
239
238
  xmlns: "http://www.w3.org/2000/svg",
240
239
  viewBox: "0 0 1024 1024"
241
- }, [v("path", {
240
+ }, [a("path", {
242
241
  fill: "currentColor",
243
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"
244
243
  })]));
245
244
  }
246
- }), pe = /* @__PURE__ */ C({
245
+ }), ze = /* @__PURE__ */ u({
247
246
  name: "CirclePlus",
248
247
  __name: "circle-plus",
249
248
  setup(e) {
250
- return (e, t) => (k(), _("svg", {
249
+ return (e, t) => (y(), i("svg", {
251
250
  xmlns: "http://www.w3.org/2000/svg",
252
251
  viewBox: "0 0 1024 1024"
253
252
  }, [
254
- v("path", {
253
+ a("path", {
255
254
  fill: "currentColor",
256
255
  d: "M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"
257
256
  }),
258
- v("path", {
257
+ a("path", {
259
258
  fill: "currentColor",
260
259
  d: "M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"
261
260
  }),
262
- v("path", {
261
+ a("path", {
263
262
  fill: "currentColor",
264
263
  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"
265
264
  })
266
265
  ]));
267
266
  }
268
- }), me = /* @__PURE__ */ C({
267
+ }), Be = /* @__PURE__ */ u({
269
268
  name: "Delete",
270
269
  __name: "delete",
271
270
  setup(e) {
272
- return (e, t) => (k(), _("svg", {
271
+ return (e, t) => (y(), i("svg", {
273
272
  xmlns: "http://www.w3.org/2000/svg",
274
273
  viewBox: "0 0 1024 1024"
275
- }, [v("path", {
274
+ }, [a("path", {
276
275
  fill: "currentColor",
277
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"
278
277
  })]));
279
278
  }
280
- }), he = /* @__PURE__ */ C({
279
+ }), Ve = /* @__PURE__ */ u({
281
280
  name: "DocumentAdd",
282
281
  __name: "document-add",
283
282
  setup(e) {
284
- return (e, t) => (k(), _("svg", {
283
+ return (e, t) => (y(), i("svg", {
285
284
  xmlns: "http://www.w3.org/2000/svg",
286
285
  viewBox: "0 0 1024 1024"
287
- }, [v("path", {
286
+ }, [a("path", {
288
287
  fill: "currentColor",
289
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"
290
289
  })]));
291
290
  }
292
- }), ge = /* @__PURE__ */ C({
291
+ }), He = /* @__PURE__ */ u({
293
292
  name: "Edit",
294
293
  __name: "edit",
295
294
  setup(e) {
296
- return (e, t) => (k(), _("svg", {
295
+ return (e, t) => (y(), i("svg", {
297
296
  xmlns: "http://www.w3.org/2000/svg",
298
297
  viewBox: "0 0 1024 1024"
299
- }, [v("path", {
298
+ }, [a("path", {
300
299
  fill: "currentColor",
301
300
  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"
302
- }), v("path", {
301
+ }), a("path", {
303
302
  fill: "currentColor",
304
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"
305
304
  })]));
306
305
  }
307
- }), _e = /* @__PURE__ */ C({
306
+ }), Ue = /* @__PURE__ */ u({
308
307
  name: "Folder",
309
308
  __name: "folder",
310
309
  setup(e) {
311
- return (e, t) => (k(), _("svg", {
310
+ return (e, t) => (y(), i("svg", {
312
311
  xmlns: "http://www.w3.org/2000/svg",
313
312
  viewBox: "0 0 1024 1024"
314
- }, [v("path", {
313
+ }, [a("path", {
315
314
  fill: "currentColor",
316
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"
317
316
  })]));
318
317
  }
319
- }), ve = /* @__PURE__ */ C({
318
+ }), We = /* @__PURE__ */ u({
320
319
  name: "MoreFilled",
321
320
  __name: "more-filled",
322
321
  setup(e) {
323
- return (e, t) => (k(), _("svg", {
322
+ return (e, t) => (y(), i("svg", {
324
323
  xmlns: "http://www.w3.org/2000/svg",
325
324
  viewBox: "0 0 1024 1024"
326
- }, [v("path", {
325
+ }, [a("path", {
327
326
  fill: "currentColor",
328
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"
329
328
  })]));
330
329
  }
331
- }), ye = /* @__PURE__ */ C({
330
+ }), Ge = /* @__PURE__ */ u({
332
331
  name: "Promotion",
333
332
  __name: "promotion",
334
333
  setup(e) {
335
- return (e, t) => (k(), _("svg", {
334
+ return (e, t) => (y(), i("svg", {
336
335
  xmlns: "http://www.w3.org/2000/svg",
337
336
  viewBox: "0 0 1024 1024"
338
- }, [v("path", {
337
+ }, [a("path", {
339
338
  fill: "currentColor",
340
339
  d: "m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"
341
340
  })]));
342
341
  }
343
- }), be = /* @__PURE__ */ C({
342
+ }), q = /* @__PURE__ */ u({
344
343
  name: "Refresh",
345
344
  __name: "refresh",
346
345
  setup(e) {
347
- return (e, t) => (k(), _("svg", {
346
+ return (e, t) => (y(), i("svg", {
348
347
  xmlns: "http://www.w3.org/2000/svg",
349
348
  viewBox: "0 0 1024 1024"
350
- }, [v("path", {
349
+ }, [a("path", {
351
350
  fill: "currentColor",
352
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"
353
352
  })]));
354
353
  }
355
- }), xe = /* @__PURE__ */ C({
354
+ }), Ke = /* @__PURE__ */ u({
356
355
  name: "Search",
357
356
  __name: "search",
358
357
  setup(e) {
359
- return (e, t) => (k(), _("svg", {
358
+ return (e, t) => (y(), i("svg", {
360
359
  xmlns: "http://www.w3.org/2000/svg",
361
360
  viewBox: "0 0 1024 1024"
362
- }, [v("path", {
361
+ }, [a("path", {
363
362
  fill: "currentColor",
364
363
  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"
365
364
  })]));
@@ -367,15 +366,15 @@ var ce = {
367
366
  });
368
367
  //#endregion
369
368
  //#region src/components/utils/tools.ts
370
- function Se(e) {
369
+ function qe(e) {
371
370
  return typeof e == "number" ? e + "px" : e || "100px";
372
371
  }
373
- function G(e) {
372
+ function J(e) {
374
373
  return typeof e == "number" ? e + "px" : e || "180px";
375
374
  }
376
- function K(e, t) {
375
+ function Y(e, t) {
377
376
  let n = {};
378
- return Object.keys($).forEach((r) => {
377
+ return Object.keys(Q).forEach((r) => {
379
378
  let i = r;
380
379
  n[i] = (n = {}) => ({
381
380
  props: {
@@ -385,20 +384,20 @@ function K(e, t) {
385
384
  onChange: (r) => n.onChange?.(r) || (t[e.prop] = r)
386
385
  },
387
386
  type: i,
388
- component: $[i]
387
+ component: Q[i]
389
388
  });
390
389
  }), ((n) => typeof e.render == "function" ? e.render({
391
390
  h: n,
392
391
  data: t
393
392
  }) : n.input(n.props || {}))(n);
394
393
  }
395
- function q(e, t) {
396
- let n = K(e, t);
394
+ function X(e, t) {
395
+ let n = Y(e, t);
397
396
  return typeof n == "object" && (n.component ||= n), n;
398
397
  }
399
398
  //#endregion
400
399
  //#region src/components/Filter/index.vue?vue&type=script&setup=true&lang.ts
401
- var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
400
+ var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ G(/* @__PURE__ */ u({
402
401
  name: "UiDefaultFilter",
403
402
  __name: "index",
404
403
  props: {
@@ -419,8 +418,8 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
419
418
  "reset",
420
419
  "search"
421
420
  ],
422
- setup(e, { emit: t }) {
423
- let n = t, r = y(e, [
421
+ setup(s, { emit: u }) {
422
+ let d = u, f = o(s, [
424
423
  "fields",
425
424
  "labelWidth",
426
425
  "valueWidth",
@@ -428,69 +427,69 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
428
427
  "column",
429
428
  "size",
430
429
  "filterFixedValues"
431
- ]), i = A({
430
+ ]), m = b({
432
431
  expandNum: 0,
433
432
  expand: !1
434
- }), a = A({}), o = m(() => e.fields.slice(0, i.expand ? e.fields.length : i.expandNum)), s = m(() => 24 - o.value?.reduce((t, n) => t + (n.span || 24 / e.column), 0) % 24 - 24 / e.column);
435
- te(() => {
436
- i.expandNum = r?.expandNum ?? 2 * e.column - 1, e.fields.forEach((e) => {
437
- let t = K(e, a)?.props?.defaultValue;
438
- t !== void 0 && (a[e.prop] = t);
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
+ _(() => {
435
+ m.expandNum = f?.expandNum ?? 2 * s.column - 1, s.fields.forEach((e) => {
436
+ let t = Y(e, h)?.props?.defaultValue;
437
+ t !== void 0 && (h[e.prop] = t);
439
438
  });
440
439
  });
441
- function c() {
442
- let t = {};
443
- Object.keys(a).forEach((e) => {
444
- if (a[e] !== void 0) {
445
- let n = R(a[e]);
446
- t[e] = typeof n == "string" ? n.trim() : n;
440
+ function T() {
441
+ let e = {};
442
+ Object.keys(h).forEach((t) => {
443
+ if (h[t] !== void 0) {
444
+ let n = k(h[t]);
445
+ e[t] = typeof n == "string" ? n.trim() : n;
447
446
  }
448
- }), n("submit", {
449
- ...t,
450
- ...e.filterFixedValues
451
- }), n("search", {
452
- ...t,
453
- ...e.filterFixedValues
447
+ }), d("submit", {
448
+ ...e,
449
+ ...s.filterFixedValues
450
+ }), d("search", {
451
+ ...e,
452
+ ...s.filterFixedValues
454
453
  });
455
454
  }
456
- function l() {
457
- Object.keys(a).forEach((t) => {
458
- e.omitFields.includes(t) || (a[t] = void 0);
459
- }), n("reset", a);
455
+ function D() {
456
+ Object.keys(h).forEach((e) => {
457
+ s.omitFields.includes(e) || (h[e] = void 0);
458
+ }), d("reset", h);
460
459
  }
461
- return (t, n) => {
462
- let r = P("el-input"), u = P("el-form-item"), d = P("el-col"), f = P("el-button"), m = P("el-row"), y = P("el-form");
463
- return k(), h(y, E({
464
- model: a,
460
+ return (t, o) => {
461
+ let u = w("el-input"), d = w("el-form-item"), f = w("el-col"), _ = w("el-button"), b = w("el-row"), k = w("el-form");
462
+ return y(), n(k, p({
463
+ model: h,
465
464
  class: "ui-filter",
466
- size: e.size
465
+ size: s.size
467
466
  }, t.$attrs), {
468
- default: V(() => [S(m, { gutter: 20 }, {
469
- default: V(() => [(k(!0), _(p, null, M(o.value, (t) => (k(), h(d, { span: t.span || 24 / e.column }, {
470
- default: V(() => [(k(), h(u, {
471
- key: t.prop,
472
- label: t.label,
473
- "label-width": z(Se)(t?.labelWidth || e.labelWidth),
474
- "value-width": z(G)(t?.valueWidth || e.valueWidth)
467
+ default: N(() => [l(b, { gutter: 20 }, {
468
+ default: N(() => [(y(!0), i(e, null, S(v.value, (e) => (y(), n(f, { span: e.span || 24 / s.column }, {
469
+ default: N(() => [(y(), n(d, {
470
+ key: e.prop,
471
+ label: e.label,
472
+ "label-width": A(qe)(e?.labelWidth || s.labelWidth),
473
+ "value-width": A(J)(e?.valueWidth || s.valueWidth)
475
474
  }, {
476
- default: V(() => [t.render ? (k(), h(F(z(K)(t, a).component), E({
475
+ default: N(() => [e.render ? (y(), n(E(A(Y)(e, h).component), p({
477
476
  key: 0,
478
- modelValue: a[t.prop],
479
- "onUpdate:modelValue": (e) => a[t.prop] = e
480
- }, { ref_for: !0 }, z(K)(t, a).props, {
477
+ modelValue: h[e.prop],
478
+ "onUpdate:modelValue": (t) => h[e.prop] = t
479
+ }, { ref_for: !0 }, A(Y)(e, h).props, {
481
480
  clearable: !0,
482
- style: { width: z(G)(t?.valueWidth || e.valueWidth) }
481
+ style: { width: A(J)(e?.valueWidth || s.valueWidth) }
483
482
  }), null, 16, [
484
483
  "modelValue",
485
484
  "onUpdate:modelValue",
486
485
  "style"
487
- ])) : (k(), h(r, {
486
+ ])) : (y(), n(u, {
488
487
  key: 1,
489
- modelValue: a[t.prop],
490
- "onUpdate:modelValue": (e) => a[t.prop] = e,
488
+ modelValue: h[e.prop],
489
+ "onUpdate:modelValue": (t) => h[e.prop] = t,
491
490
  placeholder: "请输入",
492
491
  clearable: !0,
493
- style: O({ width: z(G)(t?.valueWidth || e.valueWidth) })
492
+ style: g({ width: A(J)(e?.valueWidth || s.valueWidth) })
494
493
  }, null, 8, [
495
494
  "modelValue",
496
495
  "onUpdate:modelValue",
@@ -503,42 +502,42 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
503
502
  "value-width"
504
503
  ]))]),
505
504
  _: 2
506
- }, 1032, ["span"]))), 256)), S(d, {
507
- span: 24 / e.column,
508
- offset: s.value
505
+ }, 1032, ["span"]))), 256)), l(f, {
506
+ span: 24 / s.column,
507
+ offset: x.value
509
508
  }, {
510
- default: V(() => [S(u, {
509
+ default: N(() => [l(d, {
511
510
  label: "",
512
511
  "label-width": "30px"
513
512
  }, {
514
- default: V(() => [v("div", Ce, [
515
- N(t.$slots, "left", { form: a }, void 0, !0),
516
- e.fields.length >= 2 * e.column ? (k(), h(f, {
513
+ default: N(() => [a("div", Je, [
514
+ C(t.$slots, "left", { form: h }, void 0, !0),
515
+ s.fields.length >= 2 * s.column ? (y(), n(_, {
517
516
  key: 0,
518
517
  text: "",
519
- icon: i.expand ? z(fe) : z(de),
520
- onClick: n[0] ||= (e) => i.expand = !i.expand
518
+ icon: m.expand ? A(Re) : A(Le),
519
+ onClick: o[0] ||= (e) => m.expand = !m.expand
521
520
  }, {
522
- default: V(() => [x(L(i.expand ? "收起" : "展开"), 1)]),
521
+ default: N(() => [c(O(m.expand ? "收起" : "展开"), 1)]),
523
522
  _: 1
524
- }, 8, ["icon"])) : g("", !0),
525
- S(f, {
526
- icon: z(xe),
523
+ }, 8, ["icon"])) : r("", !0),
524
+ l(_, {
525
+ icon: A(Ke),
527
526
  type: "primary",
528
- onClick: c
527
+ onClick: T
529
528
  }, {
530
- default: V(() => [...n[1] ||= [x("查询", -1)]]),
529
+ default: N(() => [...o[1] ||= [c("查询", -1)]]),
531
530
  _: 1
532
531
  }, 8, ["icon"]),
533
- S(f, {
534
- icon: z(be),
535
- onClick: l
532
+ l(_, {
533
+ icon: A(q),
534
+ onClick: D
536
535
  }, {
537
- default: V(() => [...n[2] ||= [x("重置", -1)]]),
536
+ default: N(() => [...o[2] ||= [c("重置", -1)]]),
538
537
  _: 1
539
538
  }, 8, ["icon"]),
540
- N(t.$slots, "handle", { form: a }, void 0, !0),
541
- N(t.$slots, "right", { form: a }, void 0, !0)
539
+ C(t.$slots, "handle", { form: h }, void 0, !0),
540
+ C(t.$slots, "right", { form: h }, void 0, !0)
542
541
  ])]),
543
542
  _: 3
544
543
  })]),
@@ -550,16 +549,16 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
550
549
  }, 16, ["model", "size"]);
551
550
  };
552
551
  }
553
- }), [["__scopeId", "data-v-45f0642b"]]), we = {
552
+ }), [["__scopeId", "data-v-45f0642b"]]), Xe = {
554
553
  key: 0,
555
554
  style: { display: "inline-block" }
556
- }, Te = {
555
+ }, Ze = {
557
556
  key: 0,
558
557
  style: { display: "inline-block" }
559
- }, Ee = {
558
+ }, Qe = {
560
559
  key: 0,
561
560
  class: "ui-form-buttons"
562
- }, Y = /* @__PURE__ */ U(/* @__PURE__ */ C({
561
+ }, $e = /* @__PURE__ */ G(/* @__PURE__ */ u({
563
562
  __name: "index",
564
563
  props: {
565
564
  fields: {},
@@ -568,7 +567,7 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
568
567
  labelWidth: { default: "100px" },
569
568
  labelPosition: { default: "top" },
570
569
  omitFields: { default: () => [] },
571
- rules: { default: () => A({}) },
570
+ rules: { default: () => b({}) },
572
571
  required: { type: Boolean },
573
572
  column: { default: 24 },
574
573
  defaultValues: {},
@@ -577,9 +576,9 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
577
576
  size: {}
578
577
  },
579
578
  emits: ["submit", "reset"],
580
- setup(e, { expose: t, emit: n }) {
581
- ie((e) => ({ ec46e5ec: e.column / 2 }));
582
- let r = n, i = y(e, [
579
+ setup(a, { expose: s, emit: u }) {
580
+ ee((e) => ({ ec46e5ec: e.column / 2 }));
581
+ let d = u, f = o(a, [
583
582
  "fields",
584
583
  "labelWidth",
585
584
  "valueWidth",
@@ -588,121 +587,121 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
588
587
  "labelPosition",
589
588
  "valueModel",
590
589
  "column"
591
- ]), a = j(0), o = j(), s = A({}), c = m(() => {
592
- let t = R(s);
593
- return e.fields.forEach((e) => {
594
- let n = e.prop ? t?.[e.prop] : void 0, r = q(e, s)?.props?.defaultValue;
595
- s[e.prop] = n ?? r ?? void 0, e?.slots && e?.slots?.length > 0 && e.slots.forEach((e) => {
596
- let n = e.prop ? t?.[e.prop] : void 0, r = q(e, s)?.props?.defaultValue;
597
- s[e.prop] = n ?? r ?? void 0;
590
+ ]), m = x(0), _ = x(), v = b({}), T = t(() => {
591
+ let e = k(v);
592
+ return a.fields.forEach((t) => {
593
+ let n = t.prop ? e?.[t.prop] : void 0, r = X(t, v)?.props?.defaultValue;
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 = X(t, v)?.props?.defaultValue;
596
+ v[t.prop] = n ?? r ?? void 0;
598
597
  });
599
- }), e.fields.filter((e) => typeof e.prop == "string");
600
- }), l = m(() => {
601
- if (e.rules && Object.keys(e.rules).length) return e.rules;
602
- let t = {};
603
- return c.value.forEach((e) => {
604
- e.rules && Object.keys(e.rules).length ? t[e.prop] = e.rules : e.required && (t[e.prop] = [{
598
+ }), a.fields.filter((e) => typeof e.prop == "string");
599
+ }), D = t(() => {
600
+ if (a.rules && Object.keys(a.rules).length) return a.rules;
601
+ let e = {};
602
+ return T.value.forEach((t) => {
603
+ t.rules && Object.keys(t.rules).length ? e[t.prop] = t.rules : t.required && (e[t.prop] = [{
605
604
  required: !0,
606
- message: "请输入" + e.label,
605
+ message: "请输入" + t.label,
607
606
  trigger: "change"
608
607
  }]);
609
- }), t;
608
+ }), e;
610
609
  });
611
- oe(() => {
612
- Object.assign(s, i?.form);
610
+ te(() => {
611
+ Object.assign(v, f?.form);
613
612
  });
614
- async function u(e) {
613
+ async function j(e) {
615
614
  let t = !0;
616
615
  if (await e.validate((e) => {
617
616
  t = e;
618
617
  }), !t) return;
619
618
  let n = {};
620
- Object.keys(s).forEach((e) => {
621
- s[e] !== void 0 && (n[e] = R(s[e]));
622
- }), r("submit", n);
619
+ Object.keys(v).forEach((e) => {
620
+ v[e] !== void 0 && (n[e] = k(v[e]));
621
+ }), d("submit", n);
623
622
  }
624
- function d() {
625
- o && o.value?.clearValidate();
623
+ function M() {
624
+ _ && _.value?.clearValidate();
626
625
  }
627
- function f() {
628
- Object.keys(s).forEach((t) => {
629
- e.omitFields.includes(t) || (s[t] = void 0);
630
- }), a.value += 1, r("reset", s);
626
+ function P() {
627
+ Object.keys(v).forEach((e) => {
628
+ a.omitFields.includes(e) || (v[e] = void 0);
629
+ }), m.value += 1, d("reset", v);
631
630
  }
632
- function v() {
633
- return s;
631
+ function F() {
632
+ return v;
634
633
  }
635
- function b(e) {
634
+ function ne(e) {
636
635
  Object.keys(e).forEach((t) => {
637
- s[t] = e[t];
636
+ v[t] = e[t];
638
637
  });
639
638
  }
640
- async function C() {
639
+ async function I() {
641
640
  return new Promise((e) => {
642
- o.value?.validate((t, n) => e(n));
641
+ _.value?.validate((t, n) => e(n));
643
642
  });
644
643
  }
645
- return t({
646
- getValues: v,
647
- setValues: b,
648
- clearValidate: d,
649
- onSubmit: u,
650
- validate: C
651
- }), (t, n) => {
652
- let r = P("el-input"), i = P("el-form-item"), d = P("el-form"), m = P("el-button");
653
- return k(), _(p, null, [S(d, E({
644
+ return s({
645
+ getValues: F,
646
+ setValues: ne,
647
+ clearValidate: M,
648
+ onSubmit: j,
649
+ validate: I
650
+ }), (t, o) => {
651
+ let s = w("el-input"), u = w("el-form-item"), d = w("el-form"), f = w("el-button");
652
+ return y(), i(e, null, [l(d, p({
654
653
  ref_key: "uiFormRef",
655
- ref: o,
656
- model: s
654
+ ref: _,
655
+ model: v
657
656
  }, t.$attrs, {
658
- rules: l.value,
659
- inline: e.labelPosition !== "top",
660
- "label-position": e.labelPosition,
657
+ rules: D.value,
658
+ inline: a.labelPosition !== "top",
659
+ "label-position": a.labelPosition,
661
660
  class: {
662
661
  "ui-form": !0,
663
- horizontal: e.labelPosition !== "top"
662
+ horizontal: a.labelPosition !== "top"
664
663
  },
665
664
  "validate-on-rule-change": !1
666
665
  }), {
667
- default: V(() => [(k(!0), _(p, null, M(c.value, (n) => (k(), h(i, {
668
- key: n.prop,
669
- label: n.label,
670
- "label-width": e.labelWidth,
671
- "value-width": e.valueWidth,
672
- prop: n.prop,
673
- style: O({
674
- width: `${n?.width ? n?.width + "px" : "100%"}`,
675
- gridColumn: `span ${(n?.span || e.column) / 2 || 1}`
666
+ default: N(() => [(y(!0), i(e, null, S(T.value, (r) => (y(), n(u, {
667
+ key: r.prop,
668
+ label: r.label,
669
+ "label-width": a.labelWidth,
670
+ "value-width": a.valueWidth,
671
+ prop: r.prop,
672
+ style: g({
673
+ width: `${r?.width ? r?.width + "px" : "100%"}`,
674
+ gridColumn: `span ${(r?.span || a.column) / 2 || 1}`
676
675
  })
677
676
  }, {
678
- default: V(() => [n.render ? (k(), _(p, { key: 0 }, [z(q)(n, s).component ? (k(), h(F(z(q)(n, s).component), E({
677
+ default: N(() => [r.render ? (y(), i(e, { key: 0 }, [A(X)(r, v).component ? (y(), n(E(A(X)(r, v).component), p({
679
678
  key: 1,
680
- modelValue: s[n.prop],
681
- "onUpdate:modelValue": (e) => s[n.prop] = e
682
- }, { ref_for: !0 }, z(q)(n, s).props, {
679
+ modelValue: v[r.prop],
680
+ "onUpdate:modelValue": (e) => v[r.prop] = e
681
+ }, { ref_for: !0 }, A(X)(r, v).props, {
683
682
  clearable: !0,
684
- key: `${n.prop}-${a.value}`,
683
+ key: `${r.prop}-${m.value}`,
685
684
  style: { display: "inline-block" },
686
- class: { underline: e.valueModel === "underline" }
685
+ class: { underline: a.valueModel === "underline" }
687
686
  }), null, 16, [
688
687
  "modelValue",
689
688
  "onUpdate:modelValue",
690
689
  "class"
691
- ])) : (k(), _("span", we, L(z(q)(n, s) || "-"), 1)), (k(!0), _(p, null, M(n.slots, (n) => N(t.$slots, "default", { form: s }, () => [z(q)(n, s).component ? (k(), h(F(z(q)(n, s).component), E({
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({
692
691
  key: 1,
693
- modelValue: s[n.prop],
694
- "onUpdate:modelValue": (e) => s[n.prop] = e,
695
- "default-value": n.defaultValue,
696
- placeholder: n.placeholder
697
- }, { ref_for: !0 }, z(q)(n, s).props, {
692
+ modelValue: v[e.prop],
693
+ "onUpdate:modelValue": (t) => v[e.prop] = t,
694
+ "default-value": e.defaultValue,
695
+ placeholder: e.placeholder
696
+ }, { ref_for: !0 }, A(X)(e, v).props, {
698
697
  style: {
699
698
  display: "inline-block",
700
699
  marginLeft: "10px",
701
- width: `${n.width ? n.width + "px" : "100%"}`
700
+ width: `${e.width ? e.width + "px" : "100%"}`
702
701
  },
703
- class: { underline: e.valueModel === "underline" },
702
+ class: { underline: a.valueModel === "underline" },
704
703
  clearable: !0,
705
- key: `${n.prop}-${a.value}`
704
+ key: `${e.prop}-${m.value}`
706
705
  }), null, 16, [
707
706
  "modelValue",
708
707
  "onUpdate:modelValue",
@@ -710,13 +709,13 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
710
709
  "placeholder",
711
710
  "style",
712
711
  "class"
713
- ])) : (k(), _("span", Te, L(z(q)(n, s) || "-"), 1))], !0)), 256))], 64)) : (k(), h(r, {
712
+ ])) : (y(), i("span", Ze, O(A(X)(e, v) || "-"), 1))], !0)), 256))], 64)) : (y(), n(s, {
714
713
  key: 1,
715
- modelValue: s[n.prop],
716
- "onUpdate:modelValue": (e) => s[n.prop] = e,
714
+ modelValue: v[r.prop],
715
+ "onUpdate:modelValue": (e) => v[r.prop] = e,
717
716
  placeholder: "请输入",
718
717
  clearable: !0,
719
- class: D({ underline: e.valueModel === "underline" })
718
+ class: h({ underline: a.valueModel === "underline" })
720
719
  }, null, 8, [
721
720
  "modelValue",
722
721
  "onUpdate:modelValue",
@@ -737,31 +736,31 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
737
736
  "inline",
738
737
  "label-position",
739
738
  "class"
740
- ]), t.$attrs?.hideHandle ? g("", !0) : (k(), _("div", Ee, [
741
- N(t.$slots, "handle", { form: s }, void 0, !0),
742
- S(m, {
743
- icon: z(be),
744
- onClick: n[0] ||= (e) => o.value && f(),
739
+ ]), t.$attrs?.hideHandle ? r("", !0) : (y(), i("div", Qe, [
740
+ C(t.$slots, "handle", { form: v }, void 0, !0),
741
+ l(f, {
742
+ icon: A(q),
743
+ onClick: o[0] ||= (e) => _.value && P(),
745
744
  size: t.$props.size
746
745
  }, {
747
- default: V(() => [...n[2] ||= [x("重置", -1)]]),
746
+ default: N(() => [...o[2] ||= [c("重置", -1)]]),
748
747
  _: 1
749
748
  }, 8, ["icon", "size"]),
750
- S(m, {
751
- icon: z(ye),
749
+ l(f, {
750
+ icon: A(Ge),
752
751
  type: "primary",
753
- onClick: n[1] ||= (e) => o.value && u(o.value),
752
+ onClick: o[1] ||= (e) => _.value && j(_.value),
754
753
  size: t.$props.size
755
754
  }, {
756
- default: V(() => [...n[3] ||= [x("提交", -1)]]),
755
+ default: N(() => [...o[3] ||= [c("提交", -1)]]),
757
756
  _: 1
758
757
  }, 8, ["icon", "size"])
759
758
  ]))], 64);
760
759
  };
761
760
  }
762
- }), [["__scopeId", "data-v-f8f2a1f5"]]), De = ["disabled"], X = /* @__PURE__ */ C({
761
+ }), [["__scopeId", "data-v-f8f2a1f5"]]), et = ["disabled"], Z = /* @__PURE__ */ u({
763
762
  __name: "index",
764
- props: /* @__PURE__ */ T({
763
+ props: /* @__PURE__ */ f({
765
764
  defaultValue: { default: "" },
766
765
  disabled: {
767
766
  type: Boolean,
@@ -774,32 +773,32 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
774
773
  },
775
774
  modelModifiers: {}
776
775
  }),
777
- emits: /* @__PURE__ */ T(["change"], ["update:modelValue"]),
776
+ emits: /* @__PURE__ */ f(["change"], ["update:modelValue"]),
778
777
  setup(e, { emit: t }) {
779
- let n = j(), r = ae(e, "modelValue"), i = j(r.value || e.defaultValue || ""), a = null, o = t;
780
- return te(() => {
781
- a = new se({
778
+ let n = x(), r = j(e, "modelValue"), a = x(r.value || e.defaultValue || ""), o = null, s = t;
779
+ return _(() => {
780
+ o = new Ne({
782
781
  element: n.value,
783
782
  placeholder: "点击输入内容...",
784
783
  content: r.value || e.defaultValue || "",
785
784
  toolbarExcludeKeys: ["ai"],
786
785
  onChange: (e) => {
787
786
  let t = e.getHtml();
788
- r.value = t, i.value = t, o("change", t);
787
+ r.value = t, a.value = t, s("change", t);
789
788
  }
790
- }), a.setEditable(!e.disabled);
791
- }), B(r, (e) => {
792
- a && e !== a.getHtml() && a.setContent(e);
793
- }), ne(() => {
794
- a && a.destroy();
795
- }), (t, r) => (k(), _("div", {
789
+ }), o.setEditable(!e.disabled);
790
+ }), M(r, (e) => {
791
+ o && e !== o.getHtml() && o.setContent(e);
792
+ }), v(() => {
793
+ o && o.destroy();
794
+ }), (t, r) => (y(), i("div", {
796
795
  ref_key: "editorRef",
797
796
  ref: n,
798
797
  style: { height: "500px" },
799
798
  disabled: e.disabled
800
- }, null, 8, De));
799
+ }, null, 8, et));
801
800
  }
802
- }), Oe = { class: "ui-tree-wrapper" }, ke = {
801
+ }), tt = { class: "ui-tree-wrapper" }, nt = {
803
802
  key: 0,
804
803
  style: {
805
804
  display: "flex",
@@ -808,14 +807,14 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
808
807
  "align-items": "center",
809
808
  gap: "10px"
810
809
  }
811
- }, Ae = {
810
+ }, rt = {
812
811
  key: 0,
813
812
  class: "custom-tree-node"
814
- }, je = { class: "node-label" }, Me = { style: {
813
+ }, it = { class: "node-label" }, at = { style: {
815
814
  color: "#ef4444",
816
815
  display: "flex",
817
816
  "align-items": "center"
818
- } }, Z = /* @__PURE__ */ U(/* @__PURE__ */ C({
817
+ } }, ot = /* @__PURE__ */ G(/* @__PURE__ */ u({
819
818
  __name: "index",
820
819
  props: {
821
820
  id: {},
@@ -832,35 +831,35 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
832
831
  },
833
832
  emits: ["change"],
834
833
  setup(e, { emit: t }) {
835
- let n = y(e, [
834
+ let s = o(e, [
836
835
  "filterable",
837
836
  "placeholder",
838
837
  "data",
839
838
  "props"
840
- ]), r = j(""), i = j(), a = j(null);
841
- B(r, (t) => {
842
- e.filterable && a.value.filter(t);
839
+ ]), u = x(""), d = x(), f = x(null);
840
+ M(u, (t) => {
841
+ e.filterable && f.value.filter(t);
843
842
  });
844
- function o(t, n) {
843
+ function m(t, n) {
845
844
  return t ? n?.[e.props?.label || "label"]?.includes(t) ?? !1 : !0;
846
845
  }
847
- function c(e, t) {
848
- e?.stopPropagation(), i.value = t.id;
846
+ function h(e, t) {
847
+ e?.stopPropagation(), d.value = t.id;
849
848
  }
850
- function l() {
851
- s.prompt("请输入新的名称", "添加节点", {
849
+ function g() {
850
+ V.prompt("请输入新的名称", "添加节点", {
852
851
  confirmButtonText: "确定",
853
852
  cancelButtonText: "取消",
854
853
  callback: async (e) => {
855
854
  if (e.action === "confirm") {
856
- if (!n?.id) return;
855
+ if (!s?.id) return;
857
856
  console.log("添加 =》》", e?.value);
858
857
  }
859
858
  }
860
859
  });
861
860
  }
862
- function u(e) {
863
- s.prompt("请输入新的名称", "重命名", {
861
+ function _(e) {
862
+ V.prompt("请输入新的名称", "重命名", {
864
863
  confirmButtonText: "确定",
865
864
  cancelButtonText: "取消",
866
865
  inputValue: e.label
@@ -868,18 +867,18 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
868
867
  console.log("修改节点 =》》", e);
869
868
  });
870
869
  }
871
- async function d(e) {
870
+ async function v(e) {
872
871
  e.id && console.log("删除节点 =》》", e.id);
873
872
  }
874
- return (t, i) => {
875
- let s = P("el-input"), f = P("el-icon"), p = P("el-button"), m = P("el-dropdown-item"), y = P("el-dropdown-menu"), b = P("el-dropdown"), C = P("el-tree-v2");
876
- return k(), _("div", Oe, [
877
- e.filterable ? (k(), _("div", ke, [S(s, {
878
- modelValue: r.value,
879
- "onUpdate:modelValue": i[0] ||= (e) => r.value = e,
873
+ return (t, o) => {
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", tt, [
876
+ e.filterable ? (y(), i("div", nt, [l(d, {
877
+ modelValue: u.value,
878
+ "onUpdate:modelValue": o[0] ||= (e) => u.value = e,
880
879
  placeholder: e.placeholder ?? "请输入",
881
880
  clearable: ""
882
- }, null, 8, ["modelValue", "placeholder"]), n?.hidePlusHandle ? g("", !0) : (k(), h(p, {
881
+ }, null, 8, ["modelValue", "placeholder"]), s?.hidePlusHandle ? r("", !0) : (y(), n(x, {
883
882
  key: 0,
884
883
  style: {
885
884
  margin: "0px",
@@ -887,89 +886,89 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
887
886
  },
888
887
  link: ""
889
888
  }, {
890
- default: V(() => [S(f, { size: 22 }, {
891
- default: V(() => [S(z(pe), { onClick: i[1] ||= (e) => l() })]),
889
+ default: N(() => [l(b, { size: 22 }, {
890
+ default: N(() => [l(A(ze), { onClick: o[1] ||= (e) => g() })]),
892
891
  _: 1
893
892
  })]),
894
893
  _: 1
895
- }))])) : g("", !0),
896
- N(t.$slots, "handle", { style: "margin-top: 8px" }, void 0, !0),
897
- S(C, E({
894
+ }))])) : r("", !0),
895
+ C(t.$slots, "handle", { style: "margin-top: 8px" }, void 0, !0),
896
+ l(D, p({
898
897
  ref_key: "treeRef",
899
- ref: a,
898
+ ref: f,
900
899
  style: { "margin-top": "8px" }
901
900
  }, {
902
901
  ...t.$props,
903
902
  ...t.$attrs
904
903
  }, {
905
- "node-key": n?.nodeKey || "id",
904
+ "node-key": s?.nodeKey || "id",
906
905
  "highlight-current": !0,
907
- "filter-method": o
906
+ "filter-method": m
908
907
  }), {
909
- default: V((r) => [r?.data ? (k(), _("div", Ae, [v("div", je, [r.data?.children?.length ? (k(), h(f, { key: 0 }, {
910
- default: V(() => [S(z(_e))]),
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))]),
911
910
  _: 1
912
- })) : g("", !0), x(" " + L(r.data?.[e.props?.label || "label"]) + " " + L(r.data?.children?.length ? `(${r.data.children.length})` : ""), 1)]), n.hideNodeHandle ? g("", !0) : (k(), h(b, {
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, {
913
912
  key: 0,
914
913
  trigger: "click"
915
914
  }, {
916
- dropdown: V(() => [S(y, null, {
917
- default: V(() => [
918
- n?.hideNodeAdd ? g("", !0) : (k(), h(m, {
915
+ dropdown: N(() => [l(T, null, {
916
+ default: N(() => [
917
+ s?.hideNodeAdd ? r("", !0) : (y(), n(S, {
919
918
  key: 0,
920
- onClick: i[2] ||= (e) => l()
919
+ onClick: o[2] ||= (e) => g()
921
920
  }, {
922
- default: V(() => [S(f, null, {
923
- default: V(() => [S(z(he))]),
921
+ default: N(() => [l(b, null, {
922
+ default: N(() => [l(A(Ve))]),
924
923
  _: 1
925
- }), i[3] ||= x("添加 ", -1)]),
924
+ }), o[3] ||= c("添加 ", -1)]),
926
925
  _: 1
927
926
  })),
928
- n?.hideNodeEdit ? g("", !0) : (k(), h(m, {
927
+ s?.hideNodeEdit ? r("", !0) : (y(), n(S, {
929
928
  key: 1,
930
- onClick: (e) => u(r.data)
929
+ onClick: (e) => _(u.data)
931
930
  }, {
932
- default: V(() => [S(f, null, {
933
- default: V(() => [S(z(ge))]),
931
+ default: N(() => [l(b, null, {
932
+ default: N(() => [l(A(He))]),
934
933
  _: 1
935
- }), i[4] ||= x("编辑 ", -1)]),
934
+ }), o[4] ||= c("编辑 ", -1)]),
936
935
  _: 1
937
936
  }, 8, ["onClick"])),
938
- n?.hideNodeDel ? g("", !0) : (k(), h(m, {
937
+ s?.hideNodeDel ? r("", !0) : (y(), n(S, {
939
938
  key: 2,
940
- onClick: (e) => d(r.data)
939
+ onClick: (e) => v(u.data)
941
940
  }, {
942
- default: V(() => [v("span", Me, [S(f, null, {
943
- default: V(() => [S(z(me))]),
941
+ default: N(() => [a("span", at, [l(b, null, {
942
+ default: N(() => [l(A(Be))]),
944
943
  _: 1
945
- }), i[5] ||= x("删除 ", -1)])]),
944
+ }), o[5] ||= c("删除 ", -1)])]),
946
945
  _: 1
947
946
  }, 8, ["onClick"])),
948
- N(t.$slots, "node-handle", { data: r.data }, void 0, !0)
947
+ C(t.$slots, "node-handle", { data: u.data }, void 0, !0)
949
948
  ]),
950
949
  _: 2
951
950
  }, 1024)]),
952
- default: V(() => [S(f, { onClick: (e) => c(e, r.data) }, {
953
- default: V(() => [S(z(ve))]),
951
+ default: N(() => [l(b, { onClick: (e) => h(e, u.data) }, {
952
+ default: N(() => [l(A(We))]),
954
953
  _: 1
955
954
  }, 8, ["onClick"])]),
956
955
  _: 2
957
- }, 1024))])) : g("", !0)]),
956
+ }, 1024))])) : r("", !0)]),
958
957
  _: 3
959
958
  }, 16, ["node-key"])
960
959
  ]);
961
960
  };
962
961
  }
963
- }), [["__scopeId", "data-v-4495ddac"]]), Ne = { style: { height: "100%" } }, Pe = { style: {
962
+ }), [["__scopeId", "data-v-4495ddac"]]), st = { style: { height: "100%" } }, ct = { style: {
964
963
  display: "flex",
965
964
  "flex-direction": "row",
966
965
  "justify-content": "space-between",
967
966
  "align-items": "center",
968
967
  gap: "10px"
969
- } }, Fe = { style: { margin: "10px 0px" } }, Ie = ["onClick"], Le = { key: 0 }, Q = /* @__PURE__ */ U(/* @__PURE__ */ C({
968
+ } }, lt = { style: { margin: "10px 0px" } }, ut = ["onClick"], dt = { key: 0 }, ft = /* @__PURE__ */ G(/* @__PURE__ */ u({
970
969
  __name: "index",
971
970
  props: {
972
- loading: { default: () => j(!1) },
971
+ loading: { default: () => x(!1) },
973
972
  data: {},
974
973
  placeholder: {},
975
974
  props: {},
@@ -977,47 +976,47 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
977
976
  filterable: { type: Boolean }
978
977
  },
979
978
  emits: ["node-click"],
980
- setup(e, { emit: t }) {
981
- let n = t, r = j(""), i = j(), a = m(() => r.value ? e.data.filter((t) => t[e.props?.label || "label"]?.includes(r.value)) : e.data);
982
- B(() => [i.value, e.data?.[0]], (t) => {
983
- !t[0] && t[1] && (i.value = e.data?.[0]);
979
+ setup(o, { emit: s }) {
980
+ let c = s, l = x(""), u = x(), d = t(() => l.value ? o.data.filter((e) => e[o.props?.label || "label"]?.includes(l.value)) : o.data);
981
+ M(() => [u.value, o.data?.[0]], (e) => {
982
+ !e[0] && e[1] && (u.value = o.data?.[0]);
984
983
  }, { immediate: !0 });
985
- function o(e) {
986
- i.value = e, n("node-click", e);
984
+ function f(e) {
985
+ u.value = e, c("node-click", e);
987
986
  }
988
- return (t, n) => {
989
- let s = P("el-input");
990
- return k(), _("div", Ne, [
991
- v("div", Pe, [e.filterable ? (k(), h(s, {
987
+ return (t, s) => {
988
+ let c = w("el-input");
989
+ return y(), i("div", st, [
990
+ a("div", ct, [o.filterable ? (y(), n(c, {
992
991
  key: 0,
993
- modelValue: r.value,
994
- "onUpdate:modelValue": n[0] ||= (e) => r.value = e,
995
- placeholder: e.placeholder ?? "请输入"
996
- }, null, 8, ["modelValue", "placeholder"])) : g("", !0), N(t.$slots, "plus", {}, void 0, !0)]),
997
- v("div", Fe, [N(t.$slots, "handle", {}, void 0, !0)]),
998
- H((k(), _("ul", E({
992
+ modelValue: l.value,
993
+ "onUpdate:modelValue": s[0] ||= (e) => l.value = e,
994
+ placeholder: o.placeholder ?? "请输入"
995
+ }, null, 8, ["modelValue", "placeholder"])) : r("", !0), C(t.$slots, "plus", {}, void 0, !0)]),
996
+ a("div", lt, [C(t.$slots, "handle", {}, void 0, !0)]),
997
+ P((y(), i("ul", p({
999
998
  class: "infinite-list",
1000
999
  "infinite-scroll-immediate": !1
1001
- }, t.$attrs), [(k(!0), _(p, null, M(a.value, (n, r) => (k(), _("li", {
1002
- key: "infinite-list-" + r,
1003
- class: D({
1000
+ }, t.$attrs), [(y(!0), i(e, null, S(d.value, (e, n) => (y(), i("li", {
1001
+ key: "infinite-list-" + n,
1002
+ class: h({
1004
1003
  "infinite-list-item": !0,
1005
- active: n === i.value
1004
+ active: e === u.value
1006
1005
  }),
1007
- onClick: (e) => o(n)
1008
- }, [v("span", null, L(n[e.props?.label || "label"]), 1), N(t.$slots, "itemHandle", { data: n }, void 0, !0)], 10, Ie))), 128))], 16)), [[z(e.vInfiniteScroll), e.vInfiniteScroll]]),
1009
- e.loading.value ? (k(), _("p", Le, "loading...")) : g("", !0)
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, ut))), 128))], 16)), [[A(o.vInfiniteScroll), o.vInfiniteScroll]]),
1008
+ o.loading.value ? (y(), i("p", dt, "loading...")) : r("", !0)
1010
1009
  ]);
1011
1010
  };
1012
1011
  }
1013
- }), [["__scopeId", "data-v-2180fa82"]]), Re = {
1012
+ }), [["__scopeId", "data-v-2180fa82"]]), pt = {
1014
1013
  key: 0,
1015
1014
  style: {
1016
1015
  padding: "10px 0px",
1017
1016
  "margin-bottom": "10px",
1018
1017
  "border-bottom": "1px solid #e5e5e5"
1019
1018
  }
1020
- }, ze = { key: 1 }, Be = /* @__PURE__ */ U(/* @__PURE__ */ C({
1019
+ }, mt = { key: 1 }, ht = /* @__PURE__ */ G(/* @__PURE__ */ u({
1021
1020
  __name: "index",
1022
1021
  props: {
1023
1022
  data: {},
@@ -1030,33 +1029,33 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
1030
1029
  extra: {},
1031
1030
  labelWidth: {}
1032
1031
  },
1033
- setup(e) {
1034
- let t = y(e, [
1032
+ setup(t) {
1033
+ let a = o(t, [
1035
1034
  "title",
1036
1035
  "column",
1037
1036
  "fields",
1038
1037
  "data"
1039
1038
  ]);
1040
- return (n, r) => {
1041
- let i = P("el-descriptions-item"), a = P("el-descriptions");
1042
- return k(), _(p, null, [
1043
- e.title ? (k(), _("h4", Re, L(e.title), 1)) : g("", !0),
1044
- N(n.$slots, "title", {}, void 0, !0),
1045
- S(a, E({ column: e.column }, t, { class: "ui-descriptions" }), {
1046
- default: V(() => [(k(!0), _(p, null, M(e.fields, (t) => (k(), h(i, {
1047
- key: t.prop,
1048
- label: t.label,
1049
- span: t.span || 2
1039
+ return (o, s) => {
1040
+ let c = w("el-descriptions-item"), u = w("el-descriptions");
1041
+ return y(), i(e, null, [
1042
+ t.title ? (y(), i("h4", pt, O(t.title), 1)) : r("", !0),
1043
+ C(o.$slots, "title", {}, void 0, !0),
1044
+ l(u, p({ column: t.column }, a, { class: "ui-descriptions" }), {
1045
+ default: N(() => [(y(!0), i(e, null, S(t.fields, (e) => (y(), n(c, {
1046
+ key: e.prop,
1047
+ label: e.label,
1048
+ span: e.span || 2
1050
1049
  }, {
1051
- default: V(() => [t.render ? (k(), h(F(z(K)(t, e.data).component), E({
1050
+ default: N(() => [e.render ? (y(), n(E(A(Y)(e, t.data).component), p({
1052
1051
  key: 0,
1053
- modelValue: e.data[t.prop],
1054
- "onUpdate:modelValue": (n) => e.data[t.prop] = n
1055
- }, { ref_for: !0 }, z(K)(t, e.data).props, {
1052
+ modelValue: t.data[e.prop],
1053
+ "onUpdate:modelValue": (n) => t.data[e.prop] = n
1054
+ }, { ref_for: !0 }, A(Y)(e, t.data).props, {
1056
1055
  clearable: !0,
1057
- key: t.prop,
1056
+ key: e.prop,
1058
1057
  style: { display: "inline-block" }
1059
- }), null, 16, ["modelValue", "onUpdate:modelValue"])) : (k(), _("span", ze, L(e.data[t.prop] || "-"), 1))]),
1058
+ }), null, 16, ["modelValue", "onUpdate:modelValue"])) : (y(), i("span", mt, O(t.data[e.prop] || "-"), 1))]),
1060
1059
  _: 2
1061
1060
  }, 1032, ["label", "span"]))), 128))]),
1062
1061
  _: 1
@@ -1064,10 +1063,10 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
1064
1063
  ], 64);
1065
1064
  };
1066
1065
  }
1067
- }), [["__scopeId", "data-v-f02c30f9"]]), Ve = {
1066
+ }), [["__scopeId", "data-v-f02c30f9"]]), gt = {
1068
1067
  key: 0,
1069
1068
  class: "dialog-footer"
1070
- }, He = /* @__PURE__ */ U(/* @__PURE__ */ C({
1069
+ }, _t = /* @__PURE__ */ G(/* @__PURE__ */ u({
1071
1070
  __name: "index",
1072
1071
  props: {
1073
1072
  visible: { type: Boolean },
@@ -1082,36 +1081,36 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
1082
1081
  "submit"
1083
1082
  ],
1084
1083
  setup(e, { emit: t }) {
1085
- let n = t, r = e, i = j();
1086
- function a() {
1087
- n("close"), n("update:visible", !1);
1084
+ let a = t, o = e, s = x();
1085
+ function u() {
1086
+ a("close"), a("update:visible", !1);
1088
1087
  }
1089
- function o() {
1090
- n("submit", R(i?.value || {})), n("update:visible", !1);
1088
+ function d() {
1089
+ a("submit", k(s?.value || {})), a("update:visible", !1);
1091
1090
  }
1092
1091
  return (e, t) => {
1093
- let n = P("el-button"), s = P("el-dialog");
1094
- return k(), h(s, E(e.$attrs, {
1095
- "model-value": r.visible,
1096
- "show-close": r.disabled,
1097
- fullscreen: !r.width,
1092
+ let a = w("el-button"), f = w("el-dialog");
1093
+ return y(), n(f, p(e.$attrs, {
1094
+ "model-value": o.visible,
1095
+ "show-close": o.disabled,
1096
+ fullscreen: !o.width,
1098
1097
  "destroy-on-close": "",
1099
1098
  "lock-scroll": !1,
1100
1099
  "close-on-click-modal": !1,
1101
- "onUpdate:modelValue": t[0] ||= (e) => !e && a(),
1102
- onClose: a
1100
+ "onUpdate:modelValue": t[0] ||= (e) => !e && u(),
1101
+ onClose: u
1103
1102
  }), {
1104
- default: V(() => [(k(), h(F(r.component), E({
1103
+ default: N(() => [(y(), n(E(o.component), p({
1105
1104
  ref_key: "slotRef",
1106
- ref: i
1107
- }, r.componentProps), null, 16)), r.disabled ? g("", !0) : (k(), _("div", Ve, [S(n, { onClick: a }, {
1108
- default: V(() => [...t[1] ||= [x("取消", -1)]]),
1105
+ ref: s
1106
+ }, o.componentProps), null, 16)), o.disabled ? r("", !0) : (y(), i("div", gt, [l(a, { onClick: u }, {
1107
+ default: N(() => [...t[1] ||= [c("取消", -1)]]),
1109
1108
  _: 1
1110
- }), S(n, {
1109
+ }), l(a, {
1111
1110
  type: "primary",
1112
- onClick: o
1111
+ onClick: d
1113
1112
  }, {
1114
- default: V(() => [...t[2] ||= [x("确定", -1)]]),
1113
+ default: N(() => [...t[2] ||= [c("确定", -1)]]),
1115
1114
  _: 1
1116
1115
  })]))]),
1117
1116
  _: 1
@@ -1125,63 +1124,63 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
1125
1124
  }), [["__scopeId", "data-v-fde928bf"]]);
1126
1125
  //#endregion
1127
1126
  //#region src/components/utils/render.ts
1128
- function Ue(e) {
1129
- return w("template", { style: {
1127
+ function vt(e) {
1128
+ return d("template", { style: {
1130
1129
  display: "flex",
1131
1130
  flexDirection: "row",
1132
1131
  flexWrap: "wrap"
1133
1132
  } }, (Array.isArray(e) ? e : [e]).map((e) => {
1134
- let { text: n, ...r } = e;
1135
- return w(t, {
1136
- ...r,
1133
+ let { text: t, ...n } = e;
1134
+ return d(F, {
1135
+ ...n,
1137
1136
  link: !0,
1138
1137
  size: "small",
1139
1138
  type: e.type || "default"
1140
- }, () => n);
1139
+ }, () => t);
1141
1140
  }));
1142
1141
  }
1143
- function We(e) {
1144
- return Array.isArray(e) ? w("div", { style: {
1142
+ function yt(e) {
1143
+ return Array.isArray(e) ? d("div", { style: {
1145
1144
  display: "flex",
1146
1145
  gap: "8px",
1147
1146
  flexDirection: "row",
1148
1147
  flexWrap: "wrap"
1149
- } }, e.map((e) => w(o, {
1148
+ } }, e.map((e) => d(B, {
1150
1149
  ...e,
1151
1150
  type: e.type || "primary"
1152
- }, w(d, {
1151
+ }, d(W, {
1153
1152
  lineClamp: e?.lineClamp,
1154
1153
  type: e.type || "primary"
1155
- }, () => e.prop)))) : w(o, {
1154
+ }, () => e.prop)))) : d(B, {
1156
1155
  ...e,
1157
1156
  type: e.type || "primary"
1158
- }, w(d, {
1157
+ }, d(W, {
1159
1158
  lineClamp: e?.lineClamp,
1160
1159
  type: e.type || "primary"
1161
1160
  }, () => e.prop));
1162
1161
  }
1163
- function Ge(e) {
1164
- return w("div", { style: {
1162
+ function bt(e) {
1163
+ return d("div", { style: {
1165
1164
  display: "flex",
1166
1165
  gap: "4px",
1167
1166
  flexDirection: "row",
1168
1167
  flexWrap: "wrap"
1169
- } }, (Array.isArray(e.prop) ? e.prop : [e.prop]).map((t) => w(u, e, () => t)));
1168
+ } }, (Array.isArray(e.prop) ? e.prop : [e.prop]).map((t) => d(U, e, () => t)));
1170
1169
  }
1171
- function Ke(e) {
1172
- return w(u, { ...e });
1170
+ function xt(e) {
1171
+ return d(U, { ...e });
1173
1172
  }
1174
- function qe(e) {
1175
- return w(l, {
1173
+ function St(e) {
1174
+ return d(Te, {
1176
1175
  style: { minWidth: "160px" },
1177
1176
  ...e,
1178
1177
  placeholder: "请选择",
1179
1178
  filterable: !0
1180
1179
  });
1181
1180
  }
1182
- function Je(e) {
1181
+ function Ct(e) {
1183
1182
  let t = e?.type === "datetime" ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
1184
- return w(n, {
1183
+ return d(L, {
1185
1184
  format: t,
1186
1185
  valueFormat: t,
1187
1186
  startPlaceholder: "开始时间",
@@ -1191,9 +1190,9 @@ function Je(e) {
1191
1190
  "onUpdate:modelValue": (t) => e?.onChange?.(t)
1192
1191
  });
1193
1192
  }
1194
- function Ye(e) {
1193
+ function wt(e) {
1195
1194
  let { start: t = "00:00", end: n = "23:30", ...r } = e;
1196
- return w(f, {
1195
+ return d(ke, {
1197
1196
  start: t,
1198
1197
  end: n,
1199
1198
  ...r,
@@ -1201,15 +1200,15 @@ function Ye(e) {
1201
1200
  filterable: !0
1202
1201
  });
1203
1202
  }
1204
- function Xe(e) {
1205
- return w(r, {
1203
+ function Tt(e) {
1204
+ return d(R, {
1206
1205
  ...e,
1207
1206
  placeholder: "请输入"
1208
1207
  });
1209
1208
  }
1210
- function Ze(e) {
1209
+ function Et(e) {
1211
1210
  let { align: t = "left", controlsPosition: n = "right", ...r } = e;
1212
- return w(i, {
1211
+ return d(pe, {
1213
1212
  align: t,
1214
1213
  style: {
1215
1214
  ...e?.style || {},
@@ -1220,47 +1219,47 @@ function Ze(e) {
1220
1219
  ...r
1221
1220
  });
1222
1221
  }
1223
- function Qe(e) {
1222
+ function Dt(e) {
1224
1223
  let { rows: t = 1, ...n } = e;
1225
- return w(r, {
1224
+ return d(R, {
1226
1225
  placeholder: "请输入",
1227
1226
  rows: t,
1228
1227
  ...n,
1229
1228
  type: "textarea"
1230
1229
  });
1231
1230
  }
1232
- function $e(e) {
1233
- return w(a, {
1231
+ function Ot(e) {
1232
+ return d(z, {
1234
1233
  placeholder: "请输入",
1235
1234
  ...e,
1236
1235
  clearable: !1
1237
1236
  });
1238
1237
  }
1239
- function et(e) {
1240
- return w(X, e);
1238
+ function kt(e) {
1239
+ return d(Z, e);
1241
1240
  }
1242
- function tt(e) {
1243
- return w(c, e);
1241
+ function At(e) {
1242
+ return d(H, e);
1244
1243
  }
1245
- function nt(e) {
1246
- return w(d, e, () => e.prop);
1244
+ function jt(e) {
1245
+ return d(W, e, () => e.prop);
1247
1246
  }
1248
- var $ = {
1249
- button: Ue,
1250
- link: We,
1251
- tag: Ge,
1252
- switch: Ke,
1253
- select: qe,
1254
- datePicker: Je,
1255
- timeSelect: Ye,
1256
- input: Xe,
1257
- inputNumber: Ze,
1258
- textarea: Qe,
1259
- inputTag: $e,
1260
- editor: et,
1261
- radio: tt,
1262
- text: nt
1263
- }, rt = /* @__PURE__ */ C({
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({
1264
1263
  name: "UiColumn",
1265
1264
  __name: "UiColumn",
1266
1265
  props: {
@@ -1271,69 +1270,69 @@ var $ = {
1271
1270
  size: {}
1272
1271
  },
1273
1272
  emits: ["update:data"],
1274
- setup(e, { emit: t }) {
1275
- let n = t, r = e;
1276
- function i(e, t, r) {
1277
- let i = {};
1278
- Object.keys($).forEach((a) => {
1279
- let o = a;
1280
- i[o] = (i) => {
1281
- let a = Array.isArray(i) ? i : {
1273
+ setup(t, { emit: a }) {
1274
+ let o = a, s = t;
1275
+ function l(e, t, n) {
1276
+ let r = {};
1277
+ Object.keys(Q).forEach((i) => {
1278
+ let a = i;
1279
+ r[a] = (r) => {
1280
+ let i = Array.isArray(r) ? r : {
1282
1281
  placeholder: "请输入",
1283
1282
  filterable: !0,
1284
- ...i,
1285
- prop: i?.prop || e[r.prop],
1286
- modelValue: i?.prop || e[r.prop],
1287
- onChange: i?.onChange || ((e) => n("update:data", t, r.prop, e)),
1288
- onInput: i?.onInput || ((e) => n("update:data", t, r.prop, e))
1283
+ ...r,
1284
+ prop: r?.prop || e[n.prop],
1285
+ modelValue: r?.prop || e[n.prop],
1286
+ onChange: r?.onChange || ((e) => o("update:data", t, n.prop, e)),
1287
+ onInput: r?.onInput || ((e) => o("update:data", t, n.prop, e))
1289
1288
  };
1290
- return $[o](a);
1289
+ return Q[a](i);
1291
1290
  };
1292
1291
  });
1293
- let a = r.render ? r.render({
1292
+ let i = n.render ? n.render({
1294
1293
  data: e,
1295
1294
  index: t,
1296
- h: i,
1297
- column: r
1295
+ h: r,
1296
+ column: n
1298
1297
  }) : null;
1299
- return a ? typeof a == "object" ? a : w("div", { innerHTML: String(a) }) : null;
1298
+ return i ? typeof i == "object" ? i : d("div", { innerHTML: String(i) }) : null;
1300
1299
  }
1301
- return (t, n) => {
1302
- let a = P("UiColumn", !0), o = P("el-table-column"), s = P("el-text");
1303
- return e.column?.children && e.column?.children?.length > 0 ? (k(), h(o, {
1300
+ return (a, o) => {
1301
+ let u = w("UiColumn", !0), d = w("el-table-column"), f = w("el-text");
1302
+ return t.column?.children && t.column?.children?.length > 0 ? (y(), n(d, {
1304
1303
  key: 0,
1305
- label: e.column.label,
1306
- align: r.align
1304
+ label: t.column.label,
1305
+ align: s.align
1307
1306
  }, {
1308
- default: V(() => [(k(!0), _(p, null, M(e.column.children, (e) => (k(), h(a, E({
1307
+ default: N(() => [(y(!0), i(e, null, S(t.column.children, (e) => (y(), n(u, p({
1309
1308
  column: e,
1310
- data: r.data
1311
- }, { ref_for: !0 }, t.$attrs, { align: r.align }), null, 16, [
1309
+ data: s.data
1310
+ }, { ref_for: !0 }, a.$attrs, { align: s.align }), null, 16, [
1312
1311
  "column",
1313
1312
  "data",
1314
1313
  "align"
1315
1314
  ]))), 256))]),
1316
1315
  _: 1
1317
- }, 8, ["label", "align"])) : (k(), h(o, {
1316
+ }, 8, ["label", "align"])) : (y(), n(d, {
1318
1317
  key: 1,
1319
- prop: String(e.column.prop),
1320
- label: e.column.label,
1321
- "column-key": String(e.column.prop),
1322
- align: r.align,
1323
- width: e.column.width,
1324
- "show-overflow-tooltip": e.column.showOverflowTooltip
1318
+ prop: String(t.column.prop),
1319
+ label: t.column.label,
1320
+ "column-key": String(t.column.prop),
1321
+ align: s.align,
1322
+ width: t.column.width,
1323
+ "show-overflow-tooltip": t.column.showOverflowTooltip
1325
1324
  }, {
1326
- default: V((t) => [t?.row ? (k(), _(p, { key: 0 }, [e.column.render ? (k(), h(F(i(t.row, t.$index, e.column)), {
1325
+ default: N((a) => [a?.row ? (y(), i(e, { key: 0 }, [t.column.render ? (y(), n(E(l(a.row, a.$index, t.column)), {
1327
1326
  key: 0,
1328
- align: r.align,
1329
- size: r.size
1330
- }, null, 8, ["align", "size"])) : (k(), h(s, {
1327
+ align: s.align,
1328
+ size: s.size
1329
+ }, null, 8, ["align", "size"])) : (y(), n(f, {
1331
1330
  key: 1,
1332
- "line-clamp": e.column?.lineClamp || 2
1331
+ "line-clamp": t.column?.lineClamp || 2
1333
1332
  }, {
1334
- default: V(() => [x(L(t.row[e.column.prop]), 1)]),
1333
+ default: N(() => [c(O(a.row[t.column.prop]), 1)]),
1335
1334
  _: 2
1336
- }, 1032, ["line-clamp"]))], 64)) : g("", !0)]),
1335
+ }, 1032, ["line-clamp"]))], 64)) : r("", !0)]),
1337
1336
  _: 1
1338
1337
  }, 8, [
1339
1338
  "prop",
@@ -1345,7 +1344,7 @@ var $ = {
1345
1344
  ]));
1346
1345
  };
1347
1346
  }
1348
- }), it = /* @__PURE__ */ U(/* @__PURE__ */ C({
1347
+ }), $ = /* @__PURE__ */ G(/* @__PURE__ */ u({
1349
1348
  __name: "index",
1350
1349
  props: {
1351
1350
  loading: {
@@ -1357,14 +1356,14 @@ var $ = {
1357
1356
  default: !1
1358
1357
  },
1359
1358
  size: { default: "default" },
1360
- data: { default: () => A([]) },
1359
+ data: { default: () => b([]) },
1361
1360
  columns: {},
1362
1361
  align: { default: "left" },
1363
1362
  hidePagination: {
1364
1363
  type: Boolean,
1365
1364
  default: !1
1366
1365
  },
1367
- pagination: { default: () => A({
1366
+ pagination: { default: () => b({
1368
1367
  page: 1,
1369
1368
  pageSize: 10,
1370
1369
  total: 0,
@@ -1381,8 +1380,8 @@ var $ = {
1381
1380
  rowKey: {}
1382
1381
  },
1383
1382
  emits: ["pagination"],
1384
- setup(e, { emit: t }) {
1385
- let n = t, r = y(e, [
1383
+ setup(a, { emit: s }) {
1384
+ let c = s, l = o(a, [
1386
1385
  "loading",
1387
1386
  "border",
1388
1387
  "align",
@@ -1390,59 +1389,59 @@ var $ = {
1390
1389
  "pagination",
1391
1390
  "data",
1392
1391
  "size"
1393
- ]), i = j(), a = m(() => R(r.columns)?.some((e) => e.type === "index")), o = m(() => R(r.columns)?.some((e) => e.type === "selection")), s = m(() => !r.columns || !r.columns.length ? [] : r.columns.filter((e) => e.type !== "index" && e.type !== "selection"));
1394
- B(() => [r.defaultCheckedKeys, e.data], ([e, t]) => {
1395
- !e?.length || !t?.length || ee(() => {
1396
- if (!i.value) return;
1392
+ ]), u = x(), d = t(() => k(l.columns)?.some((e) => e.type === "index")), f = t(() => k(l.columns)?.some((e) => e.type === "selection")), h = t(() => !l.columns || !l.columns.length ? [] : l.columns.filter((e) => e.type !== "index" && e.type !== "selection"));
1393
+ M(() => [l.defaultCheckedKeys, a.data], ([e, t]) => {
1394
+ !e?.length || !t?.length || m(() => {
1395
+ if (!u.value) return;
1397
1396
  let n = t.filter((t) => e.includes(t.id));
1398
- i.value.clearSelection(), n.forEach((e) => i.value?.toggleRowSelection(e, !0));
1397
+ u.value.clearSelection(), n.forEach((e) => u.value?.toggleRowSelection(e, !0));
1399
1398
  });
1400
1399
  }, { immediate: !0 });
1401
- function c(t, r) {
1402
- e.pagination.page = t || e.pagination.page, e.pagination.pageSize = r || e.pagination.pageSize, n("pagination", R(e.pagination));
1400
+ function g(e, t) {
1401
+ a.pagination.page = e || a.pagination.page, a.pagination.pageSize = t || a.pagination.pageSize, c("pagination", k(a.pagination));
1403
1402
  }
1404
- function l(t, n, r) {
1405
- e.data[t] && (e.data[t] = {
1406
- ...e.data[t],
1407
- [n]: r
1403
+ function _(e, t, n) {
1404
+ a.data[e] && (a.data[e] = {
1405
+ ...a.data[e],
1406
+ [t]: n
1408
1407
  });
1409
1408
  }
1410
- return (t, n) => {
1411
- let u = P("el-table-column"), d = P("el-table"), f = P("el-pagination"), m = re("loading");
1412
- return k(), _("div", null, [
1413
- H((k(), h(d, E({ border: e.border }, t.$attrs, {
1414
- data: e.data,
1409
+ return (t, o) => {
1410
+ let s = w("el-table-column"), c = w("el-table"), m = w("el-pagination"), v = T("loading");
1411
+ return y(), i("div", null, [
1412
+ P((y(), n(c, p({ border: a.border }, t.$attrs, {
1413
+ data: a.data,
1415
1414
  lazy: !0,
1416
1415
  class: "ui-table",
1417
1416
  fit: "",
1418
1417
  ref_key: "tableRef",
1419
- ref: i
1418
+ ref: u
1420
1419
  }), {
1421
- default: V(() => [
1422
- o.value ? (k(), h(u, {
1420
+ default: N(() => [
1421
+ f.value ? (y(), n(s, {
1423
1422
  key: 0,
1424
1423
  type: "selection",
1425
- selectable: r.selectable,
1424
+ selectable: l.selectable,
1426
1425
  "column-key": "selection_0",
1427
- align: e.align,
1426
+ align: a.align,
1428
1427
  fixed: "left"
1429
- }, null, 8, ["selectable", "align"])) : g("", !0),
1430
- a.value ? (k(), h(u, {
1428
+ }, null, 8, ["selectable", "align"])) : r("", !0),
1429
+ d.value ? (y(), n(s, {
1431
1430
  key: 1,
1432
1431
  fixed: "left",
1433
1432
  type: "index",
1434
1433
  label: "序号",
1435
1434
  width: "60",
1436
1435
  "column-key": "index_1",
1437
- align: e.align
1438
- }, null, 8, ["align"])) : g("", !0),
1439
- (k(!0), _(p, null, M(s.value, (t, n) => (k(), h(rt, {
1440
- key: n + "column_" + t?.prop?.toString(),
1441
- column: t,
1442
- data: e.data,
1443
- align: e.align,
1444
- "onUpdate:data": l,
1445
- size: e.size
1436
+ align: a.align
1437
+ }, null, 8, ["align"])) : r("", !0),
1438
+ (y(!0), i(e, null, S(h.value, (e, t) => (y(), n(Mt, {
1439
+ key: t + "column_" + e?.prop?.toString(),
1440
+ column: e,
1441
+ data: a.data,
1442
+ align: a.align,
1443
+ "onUpdate:data": _,
1444
+ size: a.size
1446
1445
  }, null, 8, [
1447
1446
  "column",
1448
1447
  "data",
@@ -1451,50 +1450,90 @@ var $ = {
1451
1450
  ]))), 128))
1452
1451
  ]),
1453
1452
  _: 1
1454
- }, 16, ["border", "data"])), [[m, e.loading]]),
1455
- e.hidePagination ? g("", !0) : (k(), h(f, {
1453
+ }, 16, ["border", "data"])), [[v, a.loading]]),
1454
+ a.hidePagination ? r("", !0) : (y(), n(m, {
1456
1455
  key: 0,
1457
1456
  class: "ui-pagination",
1458
1457
  size: "small",
1459
1458
  background: "",
1460
1459
  layout: "total, sizes, prev, pager, next, jumper",
1461
- "page-sizes": e.pagination?.pageSizes || [
1460
+ "page-sizes": a.pagination?.pageSizes || [
1462
1461
  10,
1463
1462
  20,
1464
1463
  50
1465
1464
  ],
1466
- "page-size": e.pagination.pageSize,
1467
- "onUpdate:pageSize": n[0] ||= (t) => e.pagination.pageSize = t,
1468
- "current-page": e.pagination.page,
1469
- "onUpdate:currentPage": n[1] ||= (t) => e.pagination.page = t,
1470
- total: e.pagination.total,
1471
- "onUpdate:total": n[2] ||= (t) => e.pagination.total = t,
1472
- onChange: c
1465
+ "page-size": a.pagination.pageSize,
1466
+ "onUpdate:pageSize": o[0] ||= (e) => a.pagination.pageSize = e,
1467
+ "current-page": a.pagination.page,
1468
+ "onUpdate:currentPage": o[1] ||= (e) => a.pagination.page = e,
1469
+ total: a.pagination.total,
1470
+ "onUpdate:total": o[2] ||= (e) => a.pagination.total = e,
1471
+ onChange: g
1473
1472
  }, null, 8, [
1474
1473
  "page-sizes",
1475
1474
  "page-size",
1476
1475
  "current-page",
1477
1476
  "total"
1478
1477
  ])),
1479
- N(t.$slots, "default", {}, void 0, !0)
1478
+ C(t.$slots, "default", {}, void 0, !0)
1480
1479
  ]);
1481
1480
  };
1482
1481
  }
1483
- }), [["__scopeId", "data-v-3402edfe"]]), at = {
1484
- UiCard: W,
1485
- UiTable: it,
1486
- UiFilter: J,
1487
- UiForm: Y,
1488
- UiEditor: X,
1489
- UiTree: Z,
1490
- UiInfiniteScroll: Q,
1491
- UiDescriptions: Be,
1492
- UiDialog: He
1493
- }, ot = { install(t) {
1494
- Object.values(e).filter((e) => typeof e == "object" && !!e && "name" in e && typeof e.name == "string").forEach((e) => t.component(e.name, e));
1495
- let n = e;
1496
- typeof n.provideGlobalConfig == "function" && n.provideGlobalConfig({ locale: ce });
1497
- for (let [e, n] of Object.entries(at)) t.component(e, n);
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,
1515
+ ElTag: U,
1516
+ ElText: W,
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);
1498
1537
  } };
1499
1538
  //#endregion
1500
- export { W as UiCard, Be as UiDescriptions, He as UiDialog, X as UiEditor, J as UiFilter, Y as UiForm, Q as UiInfiniteScroll, it as UiTable, Z as UiTree, ot as default };
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 };