yc-vep-ui 0.0.16 → 0.0.18

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,8 +1,8 @@
1
- import e, { 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";
2
- 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";
3
- 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 { ElAffix as F, ElAlert as ne, ElAnchor as re, ElAnchorLink as ie, ElAside as ae, ElAutoResizer as oe, ElAutocomplete as se, ElAvatar as ce, ElAvatarGroup as le, ElBacktop as ue, ElBadge as de, ElBreadcrumb as fe, ElBreadcrumbItem as pe, ElButton as me, ElButtonGroup as he, ElCalendar as ge, ElCard as _e, ElCarousel as ve, ElCarouselItem as ye, ElCascader as be, ElCascaderPanel as xe, ElCheckTag as Se, ElCheckbox as Ce, ElCheckboxButton as we, ElCheckboxGroup as Te, ElCol as Ee, ElCollapse as De, ElCollapseItem as Oe, ElCollapseTransition as ke, ElColorPicker as Ae, ElColorPickerPanel as je, ElConfigProvider as Me, ElContainer as Ne, ElCountdown as Pe, ElDatePicker as Fe, ElDatePickerPanel as Ie, ElDescriptions as Le, ElDescriptionsItem as Re, ElDialog as ze, ElDivider as Be, ElDrawer as Ve, ElDropdown as He, ElDropdownItem as Ue, ElDropdownMenu as We, ElEmpty as Ge, ElFooter as Ke, ElForm as qe, ElFormItem as Je, ElHeader as Ye, ElIcon as Xe, ElImage as Ze, ElImageViewer as Qe, ElInput as I, ElInputNumber as L, ElInputOtp as $e, ElInputTag as R, ElLink as z, ElMain as et, ElMention as tt, ElMenu as nt, ElMenuItem as rt, ElMenuItemGroup as it, ElMessageBox as B, ElOption as at, ElOptionGroup as ot, ElOverlay as st, ElPageHeader as ct, ElPagination as lt, ElPopconfirm as ut, ElPopover as dt, ElPopper as ft, ElPopperArrow as pt, ElPopperContent as mt, ElPopperTrigger as ht, ElProgress as gt, ElRadio as _t, ElRadioButton as vt, ElRadioGroup as V, ElRate as yt, ElResult as bt, ElRow as xt, ElScrollbar as St, ElSegmented as Ct, ElSelect as H, ElSelectV2 as wt, ElSkeleton as Tt, ElSkeletonItem as Et, ElSlider as Dt, ElSpace as Ot, ElSplitter as kt, ElSplitterPanel as At, ElStatistic as jt, ElStep as Mt, ElSteps as Nt, ElSubMenu as Pt, ElSwitch as Ft, ElTabPane as It, ElTable as Lt, ElTableColumn as Rt, ElTableV2 as zt, ElTabs as Bt, ElTag as U, ElText as W, ElTimePicker as Vt, ElTimeSelect as G, ElTimeline as Ht, ElTimelineItem as Ut, ElTooltip as Wt, ElTour as Gt, ElTourStep as Kt, ElTransfer as qt, ElTree as Jt, ElTreeSelect as Yt, ElTreeV2 as Xt, ElUpload as Zt, ElWatermark as Qt, provideGlobalConfig as $t } from "element-plus";
3
+ import { AiEditor as en } from "aieditor";
4
4
  //#region node_modules/element-plus/es/locale/lang/zh-cn.mjs
5
- var ce = {
5
+ var tn = {
6
6
  name: "zh-cn",
7
7
  el: {
8
8
  breadcrumb: { label: "面包屑" },
@@ -181,7 +181,7 @@ var ce = {
181
181
  defaultLabel: "请输入第 {index} 位 OTP 字符"
182
182
  }
183
183
  }
184
- }, le = { class: /* @__PURE__ */ D({ bodyClass: !0 }) }, ue = /* @__PURE__ */ C({
184
+ }, nn = { class: /* @__PURE__ */ h({ bodyClass: !0 }) }, rn = /* @__PURE__ */ u({
185
185
  __name: "index",
186
186
  props: {
187
187
  title: {},
@@ -190,175 +190,175 @@ var ce = {
190
190
  icon: {}
191
191
  },
192
192
  setup(e) {
193
- let t = m(() => ({
193
+ let i = t(() => ({
194
194
  display: "flex",
195
195
  alignItems: "center",
196
196
  gap: "4px",
197
197
  borderBottom: e.hideBorder ? "1px solid #e5e7eb" : "none"
198
198
  }));
199
- return (n, r) => {
200
- let i = P("el-icon"), a = P("el-card");
201
- 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: {
202
202
  "ui-card": !0,
203
203
  hideBorder: e.hideBorder
204
- } }), b({
205
- default: V(() => [v("div", le, [N(n.$slots, "default", {}, void 0, !0)])]),
204
+ } }), s({
205
+ default: N(() => [a("div", nn, [C(t.$slots, "default", {}, void 0, !0)])]),
206
206
  _: 2
207
207
  }, [e.title && e.title?.length > 0 ? {
208
208
  name: "header",
209
- fn: V(() => [v("div", { style: O(t.value) }, [e.icon ? (k(), h(i, { key: 0 }, {
210
- 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" }))]),
211
211
  _: 1
212
- })) : 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)]),
213
213
  key: "0"
214
214
  } : void 0]), 1040, ["class"]);
215
215
  };
216
216
  }
217
- }), U = (e, t) => {
217
+ }), K = (e, t) => {
218
218
  let n = e.__vccOpts || e;
219
219
  for (let [e, r] of t) n[e] = r;
220
220
  return n;
221
- }, W = /* @__PURE__ */ U(ue, [["__scopeId", "data-v-ae248017"]]), de = /* @__PURE__ */ C({
221
+ }, q = /* @__PURE__ */ K(rn, [["__scopeId", "data-v-ae248017"]]), an = /* @__PURE__ */ u({
222
222
  name: "ArrowRight",
223
223
  __name: "arrow-right",
224
224
  setup(e) {
225
- return (e, t) => (k(), _("svg", {
225
+ return (e, t) => (y(), i("svg", {
226
226
  xmlns: "http://www.w3.org/2000/svg",
227
227
  viewBox: "0 0 1024 1024"
228
- }, [v("path", {
228
+ }, [a("path", {
229
229
  fill: "currentColor",
230
230
  d: "M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"
231
231
  })]));
232
232
  }
233
- }), fe = /* @__PURE__ */ C({
233
+ }), on = /* @__PURE__ */ u({
234
234
  name: "ArrowUp",
235
235
  __name: "arrow-up",
236
236
  setup(e) {
237
- return (e, t) => (k(), _("svg", {
237
+ return (e, t) => (y(), i("svg", {
238
238
  xmlns: "http://www.w3.org/2000/svg",
239
239
  viewBox: "0 0 1024 1024"
240
- }, [v("path", {
240
+ }, [a("path", {
241
241
  fill: "currentColor",
242
242
  d: "m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"
243
243
  })]));
244
244
  }
245
- }), pe = /* @__PURE__ */ C({
245
+ }), sn = /* @__PURE__ */ u({
246
246
  name: "CirclePlus",
247
247
  __name: "circle-plus",
248
248
  setup(e) {
249
- return (e, t) => (k(), _("svg", {
249
+ return (e, t) => (y(), i("svg", {
250
250
  xmlns: "http://www.w3.org/2000/svg",
251
251
  viewBox: "0 0 1024 1024"
252
252
  }, [
253
- v("path", {
253
+ a("path", {
254
254
  fill: "currentColor",
255
255
  d: "M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"
256
256
  }),
257
- v("path", {
257
+ a("path", {
258
258
  fill: "currentColor",
259
259
  d: "M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"
260
260
  }),
261
- v("path", {
261
+ a("path", {
262
262
  fill: "currentColor",
263
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"
264
264
  })
265
265
  ]));
266
266
  }
267
- }), me = /* @__PURE__ */ C({
267
+ }), cn = /* @__PURE__ */ u({
268
268
  name: "Delete",
269
269
  __name: "delete",
270
270
  setup(e) {
271
- return (e, t) => (k(), _("svg", {
271
+ return (e, t) => (y(), i("svg", {
272
272
  xmlns: "http://www.w3.org/2000/svg",
273
273
  viewBox: "0 0 1024 1024"
274
- }, [v("path", {
274
+ }, [a("path", {
275
275
  fill: "currentColor",
276
276
  d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"
277
277
  })]));
278
278
  }
279
- }), he = /* @__PURE__ */ C({
279
+ }), ln = /* @__PURE__ */ u({
280
280
  name: "DocumentAdd",
281
281
  __name: "document-add",
282
282
  setup(e) {
283
- return (e, t) => (k(), _("svg", {
283
+ return (e, t) => (y(), i("svg", {
284
284
  xmlns: "http://www.w3.org/2000/svg",
285
285
  viewBox: "0 0 1024 1024"
286
- }, [v("path", {
286
+ }, [a("path", {
287
287
  fill: "currentColor",
288
288
  d: "M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z"
289
289
  })]));
290
290
  }
291
- }), ge = /* @__PURE__ */ C({
291
+ }), un = /* @__PURE__ */ u({
292
292
  name: "Edit",
293
293
  __name: "edit",
294
294
  setup(e) {
295
- return (e, t) => (k(), _("svg", {
295
+ return (e, t) => (y(), i("svg", {
296
296
  xmlns: "http://www.w3.org/2000/svg",
297
297
  viewBox: "0 0 1024 1024"
298
- }, [v("path", {
298
+ }, [a("path", {
299
299
  fill: "currentColor",
300
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"
301
- }), v("path", {
301
+ }), a("path", {
302
302
  fill: "currentColor",
303
303
  d: "m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"
304
304
  })]));
305
305
  }
306
- }), _e = /* @__PURE__ */ C({
306
+ }), dn = /* @__PURE__ */ u({
307
307
  name: "Folder",
308
308
  __name: "folder",
309
309
  setup(e) {
310
- return (e, t) => (k(), _("svg", {
310
+ return (e, t) => (y(), i("svg", {
311
311
  xmlns: "http://www.w3.org/2000/svg",
312
312
  viewBox: "0 0 1024 1024"
313
- }, [v("path", {
313
+ }, [a("path", {
314
314
  fill: "currentColor",
315
315
  d: "M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"
316
316
  })]));
317
317
  }
318
- }), ve = /* @__PURE__ */ C({
318
+ }), fn = /* @__PURE__ */ u({
319
319
  name: "MoreFilled",
320
320
  __name: "more-filled",
321
321
  setup(e) {
322
- return (e, t) => (k(), _("svg", {
322
+ return (e, t) => (y(), i("svg", {
323
323
  xmlns: "http://www.w3.org/2000/svg",
324
324
  viewBox: "0 0 1024 1024"
325
- }, [v("path", {
325
+ }, [a("path", {
326
326
  fill: "currentColor",
327
327
  d: "M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"
328
328
  })]));
329
329
  }
330
- }), ye = /* @__PURE__ */ C({
330
+ }), pn = /* @__PURE__ */ u({
331
331
  name: "Promotion",
332
332
  __name: "promotion",
333
333
  setup(e) {
334
- return (e, t) => (k(), _("svg", {
334
+ return (e, t) => (y(), i("svg", {
335
335
  xmlns: "http://www.w3.org/2000/svg",
336
336
  viewBox: "0 0 1024 1024"
337
- }, [v("path", {
337
+ }, [a("path", {
338
338
  fill: "currentColor",
339
339
  d: "m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"
340
340
  })]));
341
341
  }
342
- }), be = /* @__PURE__ */ C({
342
+ }), J = /* @__PURE__ */ u({
343
343
  name: "Refresh",
344
344
  __name: "refresh",
345
345
  setup(e) {
346
- return (e, t) => (k(), _("svg", {
346
+ return (e, t) => (y(), i("svg", {
347
347
  xmlns: "http://www.w3.org/2000/svg",
348
348
  viewBox: "0 0 1024 1024"
349
- }, [v("path", {
349
+ }, [a("path", {
350
350
  fill: "currentColor",
351
351
  d: "M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"
352
352
  })]));
353
353
  }
354
- }), xe = /* @__PURE__ */ C({
354
+ }), mn = /* @__PURE__ */ u({
355
355
  name: "Search",
356
356
  __name: "search",
357
357
  setup(e) {
358
- return (e, t) => (k(), _("svg", {
358
+ return (e, t) => (y(), i("svg", {
359
359
  xmlns: "http://www.w3.org/2000/svg",
360
360
  viewBox: "0 0 1024 1024"
361
- }, [v("path", {
361
+ }, [a("path", {
362
362
  fill: "currentColor",
363
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"
364
364
  })]));
@@ -366,13 +366,13 @@ var ce = {
366
366
  });
367
367
  //#endregion
368
368
  //#region src/components/utils/tools.ts
369
- function Se(e) {
369
+ function hn(e) {
370
370
  return typeof e == "number" ? e + "px" : e || "100px";
371
371
  }
372
- function G(e) {
372
+ function Y(e) {
373
373
  return typeof e == "number" ? e + "px" : e || "180px";
374
374
  }
375
- function K(e, t) {
375
+ function X(e, t) {
376
376
  let n = {};
377
377
  return Object.keys($).forEach((r) => {
378
378
  let i = r;
@@ -391,13 +391,13 @@ function K(e, t) {
391
391
  data: t
392
392
  }) : n.input(n.props || {}))(n);
393
393
  }
394
- function q(e, t) {
395
- let n = K(e, t);
394
+ function Z(e, t) {
395
+ let n = X(e, t);
396
396
  return typeof n == "object" && (n.component ||= n), n;
397
397
  }
398
398
  //#endregion
399
399
  //#region src/components/Filter/index.vue?vue&type=script&setup=true&lang.ts
400
- var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
400
+ var gn = { class: "filter-buttons" }, _n = /* @__PURE__ */ K(/* @__PURE__ */ u({
401
401
  name: "UiDefaultFilter",
402
402
  __name: "index",
403
403
  props: {
@@ -418,8 +418,8 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
418
418
  "reset",
419
419
  "search"
420
420
  ],
421
- setup(e, { emit: t }) {
422
- let n = t, r = y(e, [
421
+ setup(s, { emit: u }) {
422
+ let d = u, f = o(s, [
423
423
  "fields",
424
424
  "labelWidth",
425
425
  "valueWidth",
@@ -427,69 +427,69 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
427
427
  "column",
428
428
  "size",
429
429
  "filterFixedValues"
430
- ]), i = A({
430
+ ]), m = b({
431
431
  expandNum: 0,
432
432
  expand: !1
433
- }), 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);
434
- te(() => {
435
- i.expandNum = r?.expandNum ?? 2 * e.column - 1, e.fields.forEach((e) => {
436
- let t = K(e, a)?.props?.defaultValue;
437
- 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 = X(e, h)?.props?.defaultValue;
437
+ t !== void 0 && (h[e.prop] = t);
438
438
  });
439
439
  });
440
- function c() {
441
- let t = {};
442
- Object.keys(a).forEach((e) => {
443
- if (a[e] !== void 0) {
444
- let n = R(a[e]);
445
- 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;
446
446
  }
447
- }), n("submit", {
448
- ...t,
449
- ...e.filterFixedValues
450
- }), n("search", {
451
- ...t,
452
- ...e.filterFixedValues
447
+ }), d("submit", {
448
+ ...e,
449
+ ...s.filterFixedValues
450
+ }), d("search", {
451
+ ...e,
452
+ ...s.filterFixedValues
453
453
  });
454
454
  }
455
- function l() {
456
- Object.keys(a).forEach((t) => {
457
- e.omitFields.includes(t) || (a[t] = void 0);
458
- }), 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);
459
459
  }
460
- return (t, n) => {
461
- 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");
462
- return k(), h(y, E({
463
- 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,
464
464
  class: "ui-filter",
465
- size: e.size
465
+ size: s.size
466
466
  }, t.$attrs), {
467
- default: V(() => [S(m, { gutter: 20 }, {
468
- default: V(() => [(k(!0), _(p, null, M(o.value, (t) => (k(), h(d, { span: t.span || 24 / e.column }, {
469
- default: V(() => [(k(), h(u, {
470
- key: t.prop,
471
- label: t.label,
472
- "label-width": z(Se)(t?.labelWidth || e.labelWidth),
473
- "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(hn)(e?.labelWidth || s.labelWidth),
473
+ "value-width": A(Y)(e?.valueWidth || s.valueWidth)
474
474
  }, {
475
- default: V(() => [t.render ? (k(), h(F(z(K)(t, a).component), E({
475
+ default: N(() => [e.render ? (y(), n(E(A(X)(e, h).component), p({
476
476
  key: 0,
477
- modelValue: a[t.prop],
478
- "onUpdate:modelValue": (e) => a[t.prop] = e
479
- }, { 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(X)(e, h).props, {
480
480
  clearable: !0,
481
- style: { width: z(G)(t?.valueWidth || e.valueWidth) }
481
+ style: { width: A(Y)(e?.valueWidth || s.valueWidth) }
482
482
  }), null, 16, [
483
483
  "modelValue",
484
484
  "onUpdate:modelValue",
485
485
  "style"
486
- ])) : (k(), h(r, {
486
+ ])) : (y(), n(u, {
487
487
  key: 1,
488
- modelValue: a[t.prop],
489
- "onUpdate:modelValue": (e) => a[t.prop] = e,
488
+ modelValue: h[e.prop],
489
+ "onUpdate:modelValue": (t) => h[e.prop] = t,
490
490
  placeholder: "请输入",
491
491
  clearable: !0,
492
- style: O({ width: z(G)(t?.valueWidth || e.valueWidth) })
492
+ style: g({ width: A(Y)(e?.valueWidth || s.valueWidth) })
493
493
  }, null, 8, [
494
494
  "modelValue",
495
495
  "onUpdate:modelValue",
@@ -502,42 +502,42 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
502
502
  "value-width"
503
503
  ]))]),
504
504
  _: 2
505
- }, 1032, ["span"]))), 256)), S(d, {
506
- span: 24 / e.column,
507
- offset: s.value
505
+ }, 1032, ["span"]))), 256)), l(f, {
506
+ span: 24 / s.column,
507
+ offset: x.value
508
508
  }, {
509
- default: V(() => [S(u, {
509
+ default: N(() => [l(d, {
510
510
  label: "",
511
511
  "label-width": "30px"
512
512
  }, {
513
- default: V(() => [v("div", Ce, [
514
- N(t.$slots, "left", { form: a }, void 0, !0),
515
- e.fields.length >= 2 * e.column ? (k(), h(f, {
513
+ default: N(() => [a("div", gn, [
514
+ C(t.$slots, "left", { form: h }, void 0, !0),
515
+ s.fields.length >= 2 * s.column ? (y(), n(_, {
516
516
  key: 0,
517
517
  text: "",
518
- icon: i.expand ? z(fe) : z(de),
519
- onClick: n[0] ||= (e) => i.expand = !i.expand
518
+ icon: m.expand ? A(on) : A(an),
519
+ onClick: o[0] ||= (e) => m.expand = !m.expand
520
520
  }, {
521
- default: V(() => [x(L(i.expand ? "收起" : "展开"), 1)]),
521
+ default: N(() => [c(O(m.expand ? "收起" : "展开"), 1)]),
522
522
  _: 1
523
- }, 8, ["icon"])) : g("", !0),
524
- S(f, {
525
- icon: z(xe),
523
+ }, 8, ["icon"])) : r("", !0),
524
+ l(_, {
525
+ icon: A(mn),
526
526
  type: "primary",
527
- onClick: c
527
+ onClick: T
528
528
  }, {
529
- default: V(() => [...n[1] ||= [x("查询", -1)]]),
529
+ default: N(() => [...o[1] ||= [c("查询", -1)]]),
530
530
  _: 1
531
531
  }, 8, ["icon"]),
532
- S(f, {
533
- icon: z(be),
534
- onClick: l
532
+ l(_, {
533
+ icon: A(J),
534
+ onClick: D
535
535
  }, {
536
- default: V(() => [...n[2] ||= [x("重置", -1)]]),
536
+ default: N(() => [...o[2] ||= [c("重置", -1)]]),
537
537
  _: 1
538
538
  }, 8, ["icon"]),
539
- N(t.$slots, "handle", { form: a }, void 0, !0),
540
- 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)
541
541
  ])]),
542
542
  _: 3
543
543
  })]),
@@ -549,16 +549,16 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
549
549
  }, 16, ["model", "size"]);
550
550
  };
551
551
  }
552
- }), [["__scopeId", "data-v-45f0642b"]]), we = {
552
+ }), [["__scopeId", "data-v-45f0642b"]]), vn = {
553
553
  key: 0,
554
554
  style: { display: "inline-block" }
555
- }, Te = {
555
+ }, yn = {
556
556
  key: 0,
557
557
  style: { display: "inline-block" }
558
- }, Ee = {
558
+ }, bn = {
559
559
  key: 0,
560
560
  class: "ui-form-buttons"
561
- }, Y = /* @__PURE__ */ U(/* @__PURE__ */ C({
561
+ }, xn = /* @__PURE__ */ K(/* @__PURE__ */ u({
562
562
  __name: "index",
563
563
  props: {
564
564
  fields: {},
@@ -567,7 +567,7 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
567
567
  labelWidth: { default: "100px" },
568
568
  labelPosition: { default: "top" },
569
569
  omitFields: { default: () => [] },
570
- rules: { default: () => A({}) },
570
+ rules: { default: () => b({}) },
571
571
  required: { type: Boolean },
572
572
  column: { default: 24 },
573
573
  defaultValues: {},
@@ -576,9 +576,9 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
576
576
  size: {}
577
577
  },
578
578
  emits: ["submit", "reset"],
579
- setup(e, { expose: t, emit: n }) {
580
- ie((e) => ({ ec46e5ec: e.column / 2 }));
581
- 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, [
582
582
  "fields",
583
583
  "labelWidth",
584
584
  "valueWidth",
@@ -587,121 +587,121 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
587
587
  "labelPosition",
588
588
  "valueModel",
589
589
  "column"
590
- ]), a = j(0), o = j(), s = A({}), c = m(() => {
591
- let t = R(s);
592
- return e.fields.forEach((e) => {
593
- let n = e.prop ? t?.[e.prop] : void 0, r = q(e, s)?.props?.defaultValue;
594
- s[e.prop] = n ?? r ?? void 0, e?.slots && e?.slots?.length > 0 && e.slots.forEach((e) => {
595
- let n = e.prop ? t?.[e.prop] : void 0, r = q(e, s)?.props?.defaultValue;
596
- 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 = Z(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 = Z(t, v)?.props?.defaultValue;
596
+ v[t.prop] = n ?? r ?? void 0;
597
597
  });
598
- }), e.fields.filter((e) => typeof e.prop == "string");
599
- }), l = m(() => {
600
- if (e.rules && Object.keys(e.rules).length) return e.rules;
601
- let t = {};
602
- return c.value.forEach((e) => {
603
- 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] = [{
604
604
  required: !0,
605
- message: "请输入" + e.label,
605
+ message: "请输入" + t.label,
606
606
  trigger: "change"
607
607
  }]);
608
- }), t;
608
+ }), e;
609
609
  });
610
- oe(() => {
611
- Object.assign(s, i?.form);
610
+ te(() => {
611
+ Object.assign(v, f?.form);
612
612
  });
613
- async function u(e) {
613
+ async function j(e) {
614
614
  let t = !0;
615
615
  if (await e.validate((e) => {
616
616
  t = e;
617
617
  }), !t) return;
618
618
  let n = {};
619
- Object.keys(s).forEach((e) => {
620
- s[e] !== void 0 && (n[e] = R(s[e]));
621
- }), r("submit", n);
619
+ Object.keys(v).forEach((e) => {
620
+ v[e] !== void 0 && (n[e] = k(v[e]));
621
+ }), d("submit", n);
622
622
  }
623
- function d() {
624
- o && o.value?.clearValidate();
623
+ function M() {
624
+ _ && _.value?.clearValidate();
625
625
  }
626
- function f() {
627
- Object.keys(s).forEach((t) => {
628
- e.omitFields.includes(t) || (s[t] = void 0);
629
- }), 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);
630
630
  }
631
- function v() {
632
- return s;
631
+ function F() {
632
+ return v;
633
633
  }
634
- function b(e) {
634
+ function ne(e) {
635
635
  Object.keys(e).forEach((t) => {
636
- s[t] = e[t];
636
+ v[t] = e[t];
637
637
  });
638
638
  }
639
- async function C() {
639
+ async function re() {
640
640
  return new Promise((e) => {
641
- o.value?.validate((t, n) => e(n));
641
+ _.value?.validate((t, n) => e(n));
642
642
  });
643
643
  }
644
- return t({
645
- getValues: v,
646
- setValues: b,
647
- clearValidate: d,
648
- onSubmit: u,
649
- validate: C
650
- }), (t, n) => {
651
- let r = P("el-input"), i = P("el-form-item"), d = P("el-form"), m = P("el-button");
652
- return k(), _(p, null, [S(d, E({
644
+ return s({
645
+ getValues: F,
646
+ setValues: ne,
647
+ clearValidate: M,
648
+ onSubmit: j,
649
+ validate: re
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({
653
653
  ref_key: "uiFormRef",
654
- ref: o,
655
- model: s
654
+ ref: _,
655
+ model: v
656
656
  }, t.$attrs, {
657
- rules: l.value,
658
- inline: e.labelPosition !== "top",
659
- "label-position": e.labelPosition,
657
+ rules: D.value,
658
+ inline: a.labelPosition !== "top",
659
+ "label-position": a.labelPosition,
660
660
  class: {
661
661
  "ui-form": !0,
662
- horizontal: e.labelPosition !== "top"
662
+ horizontal: a.labelPosition !== "top"
663
663
  },
664
664
  "validate-on-rule-change": !1
665
665
  }), {
666
- default: V(() => [(k(!0), _(p, null, M(c.value, (n) => (k(), h(i, {
667
- key: n.prop,
668
- label: n.label,
669
- "label-width": e.labelWidth,
670
- "value-width": e.valueWidth,
671
- prop: n.prop,
672
- style: O({
673
- width: `${n?.width ? n?.width + "px" : "100%"}`,
674
- 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}`
675
675
  })
676
676
  }, {
677
- 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(Z)(r, v).component ? (y(), n(E(A(Z)(r, v).component), p({
678
678
  key: 1,
679
- modelValue: s[n.prop],
680
- "onUpdate:modelValue": (e) => s[n.prop] = e
681
- }, { 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(Z)(r, v).props, {
682
682
  clearable: !0,
683
- key: `${n.prop}-${a.value}`,
683
+ key: `${r.prop}-${m.value}`,
684
684
  style: { display: "inline-block" },
685
- class: { underline: e.valueModel === "underline" }
685
+ class: { underline: a.valueModel === "underline" }
686
686
  }), null, 16, [
687
687
  "modelValue",
688
688
  "onUpdate:modelValue",
689
689
  "class"
690
- ])) : (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", vn, O(A(Z)(r, v) || "-"), 1)), (y(!0), i(e, null, S(r.slots, (e) => C(t.$slots, "default", { form: v }, () => [A(Z)(e, v).component ? (y(), n(E(A(Z)(e, v).component), p({
691
691
  key: 1,
692
- modelValue: s[n.prop],
693
- "onUpdate:modelValue": (e) => s[n.prop] = e,
694
- "default-value": n.defaultValue,
695
- placeholder: n.placeholder
696
- }, { 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(Z)(e, v).props, {
697
697
  style: {
698
698
  display: "inline-block",
699
699
  marginLeft: "10px",
700
- width: `${n.width ? n.width + "px" : "100%"}`
700
+ width: `${e.width ? e.width + "px" : "100%"}`
701
701
  },
702
- class: { underline: e.valueModel === "underline" },
702
+ class: { underline: a.valueModel === "underline" },
703
703
  clearable: !0,
704
- key: `${n.prop}-${a.value}`
704
+ key: `${e.prop}-${m.value}`
705
705
  }), null, 16, [
706
706
  "modelValue",
707
707
  "onUpdate:modelValue",
@@ -709,13 +709,13 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
709
709
  "placeholder",
710
710
  "style",
711
711
  "class"
712
- ])) : (k(), _("span", Te, L(z(q)(n, s) || "-"), 1))], !0)), 256))], 64)) : (k(), h(r, {
712
+ ])) : (y(), i("span", yn, O(A(Z)(e, v) || "-"), 1))], !0)), 256))], 64)) : (y(), n(s, {
713
713
  key: 1,
714
- modelValue: s[n.prop],
715
- "onUpdate:modelValue": (e) => s[n.prop] = e,
714
+ modelValue: v[r.prop],
715
+ "onUpdate:modelValue": (e) => v[r.prop] = e,
716
716
  placeholder: "请输入",
717
717
  clearable: !0,
718
- class: D({ underline: e.valueModel === "underline" })
718
+ class: h({ underline: a.valueModel === "underline" })
719
719
  }, null, 8, [
720
720
  "modelValue",
721
721
  "onUpdate:modelValue",
@@ -736,31 +736,31 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
736
736
  "inline",
737
737
  "label-position",
738
738
  "class"
739
- ]), t.$attrs?.hideHandle ? g("", !0) : (k(), _("div", Ee, [
740
- N(t.$slots, "handle", { form: s }, void 0, !0),
741
- S(m, {
742
- icon: z(be),
743
- onClick: n[0] ||= (e) => o.value && f(),
739
+ ]), t.$attrs?.hideHandle ? r("", !0) : (y(), i("div", bn, [
740
+ C(t.$slots, "handle", { form: v }, void 0, !0),
741
+ l(f, {
742
+ icon: A(J),
743
+ onClick: o[0] ||= (e) => _.value && P(),
744
744
  size: t.$props.size
745
745
  }, {
746
- default: V(() => [...n[2] ||= [x("重置", -1)]]),
746
+ default: N(() => [...o[2] ||= [c("重置", -1)]]),
747
747
  _: 1
748
748
  }, 8, ["icon", "size"]),
749
- S(m, {
750
- icon: z(ye),
749
+ l(f, {
750
+ icon: A(pn),
751
751
  type: "primary",
752
- onClick: n[1] ||= (e) => o.value && u(o.value),
752
+ onClick: o[1] ||= (e) => _.value && j(_.value),
753
753
  size: t.$props.size
754
754
  }, {
755
- default: V(() => [...n[3] ||= [x("提交", -1)]]),
755
+ default: N(() => [...o[3] ||= [c("提交", -1)]]),
756
756
  _: 1
757
757
  }, 8, ["icon", "size"])
758
758
  ]))], 64);
759
759
  };
760
760
  }
761
- }), [["__scopeId", "data-v-f8f2a1f5"]]), De = ["disabled"], X = /* @__PURE__ */ C({
761
+ }), [["__scopeId", "data-v-f8f2a1f5"]]), Sn = ["disabled"], Q = /* @__PURE__ */ u({
762
762
  __name: "index",
763
- props: /* @__PURE__ */ T({
763
+ props: /* @__PURE__ */ f({
764
764
  defaultValue: { default: "" },
765
765
  disabled: {
766
766
  type: Boolean,
@@ -773,32 +773,32 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
773
773
  },
774
774
  modelModifiers: {}
775
775
  }),
776
- emits: /* @__PURE__ */ T(["change"], ["update:modelValue"]),
776
+ emits: /* @__PURE__ */ f(["change"], ["update:modelValue"]),
777
777
  setup(e, { emit: t }) {
778
- let n = j(), r = ae(e, "modelValue"), i = j(r.value || e.defaultValue || ""), a = null, o = t;
779
- return te(() => {
780
- 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 en({
781
781
  element: n.value,
782
782
  placeholder: "点击输入内容...",
783
783
  content: r.value || e.defaultValue || "",
784
784
  toolbarExcludeKeys: ["ai"],
785
785
  onChange: (e) => {
786
786
  let t = e.getHtml();
787
- r.value = t, i.value = t, o("change", t);
787
+ r.value = t, a.value = t, s("change", t);
788
788
  }
789
- }), a.setEditable(!e.disabled);
790
- }), B(r, (e) => {
791
- a && e !== a.getHtml() && a.setContent(e);
792
- }), ne(() => {
793
- a && a.destroy();
794
- }), (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", {
795
795
  ref_key: "editorRef",
796
796
  ref: n,
797
797
  style: { height: "500px" },
798
798
  disabled: e.disabled
799
- }, null, 8, De));
799
+ }, null, 8, Sn));
800
800
  }
801
- }), Oe = { class: "ui-tree-wrapper" }, ke = {
801
+ }), Cn = { class: "ui-tree-wrapper" }, wn = {
802
802
  key: 0,
803
803
  style: {
804
804
  display: "flex",
@@ -807,14 +807,14 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
807
807
  "align-items": "center",
808
808
  gap: "10px"
809
809
  }
810
- }, Ae = {
810
+ }, Tn = {
811
811
  key: 0,
812
812
  class: "custom-tree-node"
813
- }, je = { class: "node-label" }, Me = { style: {
813
+ }, En = { class: "node-label" }, Dn = { style: {
814
814
  color: "#ef4444",
815
815
  display: "flex",
816
816
  "align-items": "center"
817
- } }, Z = /* @__PURE__ */ U(/* @__PURE__ */ C({
817
+ } }, On = /* @__PURE__ */ K(/* @__PURE__ */ u({
818
818
  __name: "index",
819
819
  props: {
820
820
  id: {},
@@ -831,35 +831,35 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
831
831
  },
832
832
  emits: ["change"],
833
833
  setup(e, { emit: t }) {
834
- let n = y(e, [
834
+ let s = o(e, [
835
835
  "filterable",
836
836
  "placeholder",
837
837
  "data",
838
838
  "props"
839
- ]), r = j(""), i = j(), a = j(null);
840
- B(r, (t) => {
841
- 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);
842
842
  });
843
- function o(t, n) {
843
+ function m(t, n) {
844
844
  return t ? n?.[e.props?.label || "label"]?.includes(t) ?? !1 : !0;
845
845
  }
846
- function c(e, t) {
847
- e?.stopPropagation(), i.value = t.id;
846
+ function h(e, t) {
847
+ e?.stopPropagation(), d.value = t.id;
848
848
  }
849
- function l() {
850
- s.prompt("请输入新的名称", "添加节点", {
849
+ function g() {
850
+ B.prompt("请输入新的名称", "添加节点", {
851
851
  confirmButtonText: "确定",
852
852
  cancelButtonText: "取消",
853
853
  callback: async (e) => {
854
854
  if (e.action === "confirm") {
855
- if (!n?.id) return;
855
+ if (!s?.id) return;
856
856
  console.log("添加 =》》", e?.value);
857
857
  }
858
858
  }
859
859
  });
860
860
  }
861
- function u(e) {
862
- s.prompt("请输入新的名称", "重命名", {
861
+ function _(e) {
862
+ B.prompt("请输入新的名称", "重命名", {
863
863
  confirmButtonText: "确定",
864
864
  cancelButtonText: "取消",
865
865
  inputValue: e.label
@@ -867,18 +867,18 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
867
867
  console.log("修改节点 =》》", e);
868
868
  });
869
869
  }
870
- async function d(e) {
870
+ async function v(e) {
871
871
  e.id && console.log("删除节点 =》》", e.id);
872
872
  }
873
- return (t, i) => {
874
- 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");
875
- return k(), _("div", Oe, [
876
- e.filterable ? (k(), _("div", ke, [S(s, {
877
- modelValue: r.value,
878
- "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", Cn, [
876
+ e.filterable ? (y(), i("div", wn, [l(d, {
877
+ modelValue: u.value,
878
+ "onUpdate:modelValue": o[0] ||= (e) => u.value = e,
879
879
  placeholder: e.placeholder ?? "请输入",
880
880
  clearable: ""
881
- }, null, 8, ["modelValue", "placeholder"]), n?.hidePlusHandle ? g("", !0) : (k(), h(p, {
881
+ }, null, 8, ["modelValue", "placeholder"]), s?.hidePlusHandle ? r("", !0) : (y(), n(x, {
882
882
  key: 0,
883
883
  style: {
884
884
  margin: "0px",
@@ -886,89 +886,89 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
886
886
  },
887
887
  link: ""
888
888
  }, {
889
- default: V(() => [S(f, { size: 22 }, {
890
- default: V(() => [S(z(pe), { onClick: i[1] ||= (e) => l() })]),
889
+ default: N(() => [l(b, { size: 22 }, {
890
+ default: N(() => [l(A(sn), { onClick: o[1] ||= (e) => g() })]),
891
891
  _: 1
892
892
  })]),
893
893
  _: 1
894
- }))])) : g("", !0),
895
- N(t.$slots, "handle", { style: "margin-top: 8px" }, void 0, !0),
896
- S(C, E({
894
+ }))])) : r("", !0),
895
+ C(t.$slots, "handle", { style: "margin-top: 8px" }, void 0, !0),
896
+ l(D, p({
897
897
  ref_key: "treeRef",
898
- ref: a,
898
+ ref: f,
899
899
  style: { "margin-top": "8px" }
900
900
  }, {
901
901
  ...t.$props,
902
902
  ...t.$attrs
903
903
  }, {
904
- "node-key": n?.nodeKey || "id",
904
+ "node-key": s?.nodeKey || "id",
905
905
  "highlight-current": !0,
906
- "filter-method": o
906
+ "filter-method": m
907
907
  }), {
908
- default: V((r) => [r?.data ? (k(), _("div", Ae, [v("div", je, [r.data?.children?.length ? (k(), h(f, { key: 0 }, {
909
- default: V(() => [S(z(_e))]),
908
+ default: N((u) => [u?.data ? (y(), i("div", Tn, [a("div", En, [u.data?.children?.length ? (y(), n(b, { key: 0 }, {
909
+ default: N(() => [l(A(dn))]),
910
910
  _: 1
911
- })) : 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, {
912
912
  key: 0,
913
913
  trigger: "click"
914
914
  }, {
915
- dropdown: V(() => [S(y, null, {
916
- default: V(() => [
917
- n?.hideNodeAdd ? g("", !0) : (k(), h(m, {
915
+ dropdown: N(() => [l(T, null, {
916
+ default: N(() => [
917
+ s?.hideNodeAdd ? r("", !0) : (y(), n(S, {
918
918
  key: 0,
919
- onClick: i[2] ||= (e) => l()
919
+ onClick: o[2] ||= (e) => g()
920
920
  }, {
921
- default: V(() => [S(f, null, {
922
- default: V(() => [S(z(he))]),
921
+ default: N(() => [l(b, null, {
922
+ default: N(() => [l(A(ln))]),
923
923
  _: 1
924
- }), i[3] ||= x("添加 ", -1)]),
924
+ }), o[3] ||= c("添加 ", -1)]),
925
925
  _: 1
926
926
  })),
927
- n?.hideNodeEdit ? g("", !0) : (k(), h(m, {
927
+ s?.hideNodeEdit ? r("", !0) : (y(), n(S, {
928
928
  key: 1,
929
- onClick: (e) => u(r.data)
929
+ onClick: (e) => _(u.data)
930
930
  }, {
931
- default: V(() => [S(f, null, {
932
- default: V(() => [S(z(ge))]),
931
+ default: N(() => [l(b, null, {
932
+ default: N(() => [l(A(un))]),
933
933
  _: 1
934
- }), i[4] ||= x("编辑 ", -1)]),
934
+ }), o[4] ||= c("编辑 ", -1)]),
935
935
  _: 1
936
936
  }, 8, ["onClick"])),
937
- n?.hideNodeDel ? g("", !0) : (k(), h(m, {
937
+ s?.hideNodeDel ? r("", !0) : (y(), n(S, {
938
938
  key: 2,
939
- onClick: (e) => d(r.data)
939
+ onClick: (e) => v(u.data)
940
940
  }, {
941
- default: V(() => [v("span", Me, [S(f, null, {
942
- default: V(() => [S(z(me))]),
941
+ default: N(() => [a("span", Dn, [l(b, null, {
942
+ default: N(() => [l(A(cn))]),
943
943
  _: 1
944
- }), i[5] ||= x("删除 ", -1)])]),
944
+ }), o[5] ||= c("删除 ", -1)])]),
945
945
  _: 1
946
946
  }, 8, ["onClick"])),
947
- N(t.$slots, "node-handle", { data: r.data }, void 0, !0)
947
+ C(t.$slots, "node-handle", { data: u.data }, void 0, !0)
948
948
  ]),
949
949
  _: 2
950
950
  }, 1024)]),
951
- default: V(() => [S(f, { onClick: (e) => c(e, r.data) }, {
952
- default: V(() => [S(z(ve))]),
951
+ default: N(() => [l(b, { onClick: (e) => h(e, u.data) }, {
952
+ default: N(() => [l(A(fn))]),
953
953
  _: 1
954
954
  }, 8, ["onClick"])]),
955
955
  _: 2
956
- }, 1024))])) : g("", !0)]),
956
+ }, 1024))])) : r("", !0)]),
957
957
  _: 3
958
958
  }, 16, ["node-key"])
959
959
  ]);
960
960
  };
961
961
  }
962
- }), [["__scopeId", "data-v-4495ddac"]]), Ne = { style: { height: "100%" } }, Pe = { style: {
962
+ }), [["__scopeId", "data-v-4495ddac"]]), kn = { style: { height: "100%" } }, An = { style: {
963
963
  display: "flex",
964
964
  "flex-direction": "row",
965
965
  "justify-content": "space-between",
966
966
  "align-items": "center",
967
967
  gap: "10px"
968
- } }, Fe = { style: { margin: "10px 0px" } }, Ie = ["onClick"], Le = { key: 0 }, Q = /* @__PURE__ */ U(/* @__PURE__ */ C({
968
+ } }, jn = { style: { margin: "10px 0px" } }, Mn = ["onClick"], Nn = { key: 0 }, Pn = /* @__PURE__ */ K(/* @__PURE__ */ u({
969
969
  __name: "index",
970
970
  props: {
971
- loading: { default: () => j(!1) },
971
+ loading: { default: () => x(!1) },
972
972
  data: {},
973
973
  placeholder: {},
974
974
  props: {},
@@ -976,47 +976,47 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
976
976
  filterable: { type: Boolean }
977
977
  },
978
978
  emits: ["node-click"],
979
- setup(e, { emit: t }) {
980
- 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);
981
- B(() => [i.value, e.data?.[0]], (t) => {
982
- !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]);
983
983
  }, { immediate: !0 });
984
- function o(e) {
985
- i.value = e, n("node-click", e);
984
+ function f(e) {
985
+ u.value = e, c("node-click", e);
986
986
  }
987
- return (t, n) => {
988
- let s = P("el-input");
989
- return k(), _("div", Ne, [
990
- v("div", Pe, [e.filterable ? (k(), h(s, {
987
+ return (t, s) => {
988
+ let c = w("el-input");
989
+ return y(), i("div", kn, [
990
+ a("div", An, [o.filterable ? (y(), n(c, {
991
991
  key: 0,
992
- modelValue: r.value,
993
- "onUpdate:modelValue": n[0] ||= (e) => r.value = e,
994
- placeholder: e.placeholder ?? "请输入"
995
- }, null, 8, ["modelValue", "placeholder"])) : g("", !0), N(t.$slots, "plus", {}, void 0, !0)]),
996
- v("div", Fe, [N(t.$slots, "handle", {}, void 0, !0)]),
997
- 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", jn, [C(t.$slots, "handle", {}, void 0, !0)]),
997
+ P((y(), i("ul", p({
998
998
  class: "infinite-list",
999
999
  "infinite-scroll-immediate": !1
1000
- }, t.$attrs), [(k(!0), _(p, null, M(a.value, (n, r) => (k(), _("li", {
1001
- key: "infinite-list-" + r,
1002
- 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({
1003
1003
  "infinite-list-item": !0,
1004
- active: n === i.value
1004
+ active: e === u.value
1005
1005
  }),
1006
- onClick: (e) => o(n)
1007
- }, [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]]),
1008
- 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, Mn))), 128))], 16)), [[A(o.vInfiniteScroll), o.vInfiniteScroll]]),
1008
+ o.loading.value ? (y(), i("p", Nn, "loading...")) : r("", !0)
1009
1009
  ]);
1010
1010
  };
1011
1011
  }
1012
- }), [["__scopeId", "data-v-2180fa82"]]), Re = {
1012
+ }), [["__scopeId", "data-v-2180fa82"]]), Fn = {
1013
1013
  key: 0,
1014
1014
  style: {
1015
1015
  padding: "10px 0px",
1016
1016
  "margin-bottom": "10px",
1017
1017
  "border-bottom": "1px solid #e5e5e5"
1018
1018
  }
1019
- }, ze = { key: 1 }, Be = /* @__PURE__ */ U(/* @__PURE__ */ C({
1019
+ }, In = { key: 1 }, Ln = /* @__PURE__ */ K(/* @__PURE__ */ u({
1020
1020
  __name: "index",
1021
1021
  props: {
1022
1022
  data: {},
@@ -1029,33 +1029,33 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
1029
1029
  extra: {},
1030
1030
  labelWidth: {}
1031
1031
  },
1032
- setup(e) {
1033
- let t = y(e, [
1032
+ setup(t) {
1033
+ let a = o(t, [
1034
1034
  "title",
1035
1035
  "column",
1036
1036
  "fields",
1037
1037
  "data"
1038
1038
  ]);
1039
- return (n, r) => {
1040
- let i = P("el-descriptions-item"), a = P("el-descriptions");
1041
- return k(), _(p, null, [
1042
- e.title ? (k(), _("h4", Re, L(e.title), 1)) : g("", !0),
1043
- N(n.$slots, "title", {}, void 0, !0),
1044
- S(a, E({ column: e.column }, t, { class: "ui-descriptions" }), {
1045
- default: V(() => [(k(!0), _(p, null, M(e.fields, (t) => (k(), h(i, {
1046
- key: t.prop,
1047
- label: t.label,
1048
- 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", Fn, 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
1049
1049
  }, {
1050
- default: V(() => [t.render ? (k(), h(F(z(K)(t, e.data).component), E({
1050
+ default: N(() => [e.render ? (y(), n(E(A(X)(e, t.data).component), p({
1051
1051
  key: 0,
1052
- modelValue: e.data[t.prop],
1053
- "onUpdate:modelValue": (n) => e.data[t.prop] = n
1054
- }, { 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(X)(e, t.data).props, {
1055
1055
  clearable: !0,
1056
- key: t.prop,
1056
+ key: e.prop,
1057
1057
  style: { display: "inline-block" }
1058
- }), null, 16, ["modelValue", "onUpdate:modelValue"])) : (k(), _("span", ze, L(e.data[t.prop] || "-"), 1))]),
1058
+ }), null, 16, ["modelValue", "onUpdate:modelValue"])) : (y(), i("span", In, O(t.data[e.prop] || "-"), 1))]),
1059
1059
  _: 2
1060
1060
  }, 1032, ["label", "span"]))), 128))]),
1061
1061
  _: 1
@@ -1063,10 +1063,10 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
1063
1063
  ], 64);
1064
1064
  };
1065
1065
  }
1066
- }), [["__scopeId", "data-v-f02c30f9"]]), Ve = {
1066
+ }), [["__scopeId", "data-v-f02c30f9"]]), Rn = {
1067
1067
  key: 0,
1068
1068
  class: "dialog-footer"
1069
- }, He = /* @__PURE__ */ U(/* @__PURE__ */ C({
1069
+ }, zn = /* @__PURE__ */ K(/* @__PURE__ */ u({
1070
1070
  __name: "index",
1071
1071
  props: {
1072
1072
  visible: { type: Boolean },
@@ -1081,36 +1081,36 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
1081
1081
  "submit"
1082
1082
  ],
1083
1083
  setup(e, { emit: t }) {
1084
- let n = t, r = e, i = j();
1085
- function a() {
1086
- n("close"), n("update:visible", !1);
1084
+ let a = t, o = e, s = x();
1085
+ function u() {
1086
+ a("close"), a("update:visible", !1);
1087
1087
  }
1088
- function o() {
1089
- n("submit", R(i?.value || {})), n("update:visible", !1);
1088
+ function d() {
1089
+ a("submit", k(s?.value || {})), a("update:visible", !1);
1090
1090
  }
1091
1091
  return (e, t) => {
1092
- let n = P("el-button"), s = P("el-dialog");
1093
- return k(), h(s, E(e.$attrs, {
1094
- "model-value": r.visible,
1095
- "show-close": r.disabled,
1096
- 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,
1097
1097
  "destroy-on-close": "",
1098
1098
  "lock-scroll": !1,
1099
1099
  "close-on-click-modal": !1,
1100
- "onUpdate:modelValue": t[0] ||= (e) => !e && a(),
1101
- onClose: a
1100
+ "onUpdate:modelValue": t[0] ||= (e) => !e && u(),
1101
+ onClose: u
1102
1102
  }), {
1103
- default: V(() => [(k(), h(F(r.component), E({
1103
+ default: N(() => [(y(), n(E(o.component), p({
1104
1104
  ref_key: "slotRef",
1105
- ref: i
1106
- }, r.componentProps), null, 16)), r.disabled ? g("", !0) : (k(), _("div", Ve, [S(n, { onClick: a }, {
1107
- default: V(() => [...t[1] ||= [x("取消", -1)]]),
1105
+ ref: s
1106
+ }, o.componentProps), null, 16)), o.disabled ? r("", !0) : (y(), i("div", Rn, [l(a, { onClick: u }, {
1107
+ default: N(() => [...t[1] ||= [c("取消", -1)]]),
1108
1108
  _: 1
1109
- }), S(n, {
1109
+ }), l(a, {
1110
1110
  type: "primary",
1111
- onClick: o
1111
+ onClick: d
1112
1112
  }, {
1113
- default: V(() => [...t[2] ||= [x("确定", -1)]]),
1113
+ default: N(() => [...t[2] ||= [c("确定", -1)]]),
1114
1114
  _: 1
1115
1115
  })]))]),
1116
1116
  _: 1
@@ -1124,63 +1124,63 @@ var Ce = { class: "filter-buttons" }, J = /* @__PURE__ */ U(/* @__PURE__ */ C({
1124
1124
  }), [["__scopeId", "data-v-fde928bf"]]);
1125
1125
  //#endregion
1126
1126
  //#region src/components/utils/render.ts
1127
- function Ue(e) {
1128
- return w("template", { style: {
1127
+ function Bn(e) {
1128
+ return d("template", { style: {
1129
1129
  display: "flex",
1130
1130
  flexDirection: "row",
1131
1131
  flexWrap: "wrap"
1132
1132
  } }, (Array.isArray(e) ? e : [e]).map((e) => {
1133
- let { text: n, ...r } = e;
1134
- return w(t, {
1135
- ...r,
1133
+ let { text: t, ...n } = e;
1134
+ return d(me, {
1135
+ ...n,
1136
1136
  link: !0,
1137
1137
  size: "small",
1138
1138
  type: e.type || "default"
1139
- }, () => n);
1139
+ }, () => t);
1140
1140
  }));
1141
1141
  }
1142
- function We(e) {
1143
- return Array.isArray(e) ? w("div", { style: {
1142
+ function Vn(e) {
1143
+ return Array.isArray(e) ? d("div", { style: {
1144
1144
  display: "flex",
1145
1145
  gap: "8px",
1146
1146
  flexDirection: "row",
1147
1147
  flexWrap: "wrap"
1148
- } }, e.map((e) => w(o, {
1148
+ } }, e.map((e) => d(z, {
1149
1149
  ...e,
1150
1150
  type: e.type || "primary"
1151
- }, w(d, {
1151
+ }, d(W, {
1152
1152
  lineClamp: e?.lineClamp,
1153
1153
  type: e.type || "primary"
1154
- }, () => e.prop)))) : w(o, {
1154
+ }, () => e.prop)))) : d(z, {
1155
1155
  ...e,
1156
1156
  type: e.type || "primary"
1157
- }, w(d, {
1157
+ }, d(W, {
1158
1158
  lineClamp: e?.lineClamp,
1159
1159
  type: e.type || "primary"
1160
1160
  }, () => e.prop));
1161
1161
  }
1162
- function Ge(e) {
1163
- return w("div", { style: {
1162
+ function Hn(e) {
1163
+ return d("div", { style: {
1164
1164
  display: "flex",
1165
1165
  gap: "4px",
1166
1166
  flexDirection: "row",
1167
1167
  flexWrap: "wrap"
1168
- } }, (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)));
1169
1169
  }
1170
- function Ke(e) {
1171
- return w(u, { ...e });
1170
+ function Un(e) {
1171
+ return d(U, { ...e });
1172
1172
  }
1173
- function qe(e) {
1174
- return w(l, {
1173
+ function Wn(e) {
1174
+ return d(H, {
1175
1175
  style: { minWidth: "160px" },
1176
1176
  ...e,
1177
1177
  placeholder: "请选择",
1178
1178
  filterable: !0
1179
1179
  });
1180
1180
  }
1181
- function Je(e) {
1181
+ function Gn(e) {
1182
1182
  let t = e?.type === "datetime" ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
1183
- return w(n, {
1183
+ return d(Fe, {
1184
1184
  format: t,
1185
1185
  valueFormat: t,
1186
1186
  startPlaceholder: "开始时间",
@@ -1190,9 +1190,9 @@ function Je(e) {
1190
1190
  "onUpdate:modelValue": (t) => e?.onChange?.(t)
1191
1191
  });
1192
1192
  }
1193
- function Ye(e) {
1193
+ function Kn(e) {
1194
1194
  let { start: t = "00:00", end: n = "23:30", ...r } = e;
1195
- return w(f, {
1195
+ return d(G, {
1196
1196
  start: t,
1197
1197
  end: n,
1198
1198
  ...r,
@@ -1200,15 +1200,15 @@ function Ye(e) {
1200
1200
  filterable: !0
1201
1201
  });
1202
1202
  }
1203
- function Xe(e) {
1204
- return w(r, {
1203
+ function qn(e) {
1204
+ return d(I, {
1205
1205
  ...e,
1206
1206
  placeholder: "请输入"
1207
1207
  });
1208
1208
  }
1209
- function Ze(e) {
1209
+ function Jn(e) {
1210
1210
  let { align: t = "left", controlsPosition: n = "right", ...r } = e;
1211
- return w(i, {
1211
+ return d(L, {
1212
1212
  align: t,
1213
1213
  style: {
1214
1214
  ...e?.style || {},
@@ -1219,47 +1219,47 @@ function Ze(e) {
1219
1219
  ...r
1220
1220
  });
1221
1221
  }
1222
- function Qe(e) {
1222
+ function Yn(e) {
1223
1223
  let { rows: t = 1, ...n } = e;
1224
- return w(r, {
1224
+ return d(I, {
1225
1225
  placeholder: "请输入",
1226
1226
  rows: t,
1227
1227
  ...n,
1228
1228
  type: "textarea"
1229
1229
  });
1230
1230
  }
1231
- function $e(e) {
1232
- return w(a, {
1231
+ function Xn(e) {
1232
+ return d(R, {
1233
1233
  placeholder: "请输入",
1234
1234
  ...e,
1235
1235
  clearable: !1
1236
1236
  });
1237
1237
  }
1238
- function et(e) {
1239
- return w(X, e);
1238
+ function Zn(e) {
1239
+ return d(Q, e);
1240
1240
  }
1241
- function tt(e) {
1242
- return w(c, e);
1241
+ function Qn(e) {
1242
+ return d(V, e);
1243
1243
  }
1244
- function nt(e) {
1245
- return w(d, e, () => e.prop);
1244
+ function $n(e) {
1245
+ return d(W, e, () => e.prop);
1246
1246
  }
1247
1247
  var $ = {
1248
- button: Ue,
1249
- link: We,
1250
- tag: Ge,
1251
- switch: Ke,
1252
- select: qe,
1253
- datePicker: Je,
1254
- timeSelect: Ye,
1255
- input: Xe,
1256
- inputNumber: Ze,
1257
- textarea: Qe,
1258
- inputTag: $e,
1259
- editor: et,
1260
- radio: tt,
1261
- text: nt
1262
- }, rt = /* @__PURE__ */ C({
1248
+ button: Bn,
1249
+ link: Vn,
1250
+ tag: Hn,
1251
+ switch: Un,
1252
+ select: Wn,
1253
+ datePicker: Gn,
1254
+ timeSelect: Kn,
1255
+ input: qn,
1256
+ inputNumber: Jn,
1257
+ textarea: Yn,
1258
+ inputTag: Xn,
1259
+ editor: Zn,
1260
+ radio: Qn,
1261
+ text: $n
1262
+ }, er = /* @__PURE__ */ u({
1263
1263
  name: "UiColumn",
1264
1264
  __name: "UiColumn",
1265
1265
  props: {
@@ -1270,69 +1270,69 @@ var $ = {
1270
1270
  size: {}
1271
1271
  },
1272
1272
  emits: ["update:data"],
1273
- setup(e, { emit: t }) {
1274
- let n = t, r = e;
1275
- function i(e, t, r) {
1276
- let i = {};
1277
- Object.keys($).forEach((a) => {
1278
- let o = a;
1279
- i[o] = (i) => {
1280
- 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($).forEach((i) => {
1278
+ let a = i;
1279
+ r[a] = (r) => {
1280
+ let i = Array.isArray(r) ? r : {
1281
1281
  placeholder: "请输入",
1282
1282
  filterable: !0,
1283
- ...i,
1284
- prop: i?.prop || e[r.prop],
1285
- modelValue: i?.prop || e[r.prop],
1286
- onChange: i?.onChange || ((e) => n("update:data", t, r.prop, e)),
1287
- 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))
1288
1288
  };
1289
- return $[o](a);
1289
+ return $[a](i);
1290
1290
  };
1291
1291
  });
1292
- let a = r.render ? r.render({
1292
+ let i = n.render ? n.render({
1293
1293
  data: e,
1294
1294
  index: t,
1295
- h: i,
1296
- column: r
1295
+ h: r,
1296
+ column: n
1297
1297
  }) : null;
1298
- 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;
1299
1299
  }
1300
- return (t, n) => {
1301
- let a = P("UiColumn", !0), o = P("el-table-column"), s = P("el-text");
1302
- 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, {
1303
1303
  key: 0,
1304
- label: e.column.label,
1305
- align: r.align
1304
+ label: t.column.label,
1305
+ align: s.align
1306
1306
  }, {
1307
- 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({
1308
1308
  column: e,
1309
- data: r.data
1310
- }, { 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, [
1311
1311
  "column",
1312
1312
  "data",
1313
1313
  "align"
1314
1314
  ]))), 256))]),
1315
1315
  _: 1
1316
- }, 8, ["label", "align"])) : (k(), h(o, {
1316
+ }, 8, ["label", "align"])) : (y(), n(d, {
1317
1317
  key: 1,
1318
- prop: String(e.column.prop),
1319
- label: e.column.label,
1320
- "column-key": String(e.column.prop),
1321
- align: r.align,
1322
- width: e.column.width,
1323
- "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
1324
1324
  }, {
1325
- 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)), {
1326
1326
  key: 0,
1327
- align: r.align,
1328
- size: r.size
1329
- }, null, 8, ["align", "size"])) : (k(), h(s, {
1327
+ align: s.align,
1328
+ size: s.size
1329
+ }, null, 8, ["align", "size"])) : (y(), n(f, {
1330
1330
  key: 1,
1331
- "line-clamp": e.column?.lineClamp || 2
1331
+ "line-clamp": t.column?.lineClamp || 2
1332
1332
  }, {
1333
- default: V(() => [x(L(t.row[e.column.prop]), 1)]),
1333
+ default: N(() => [c(O(a.row[t.column.prop]), 1)]),
1334
1334
  _: 2
1335
- }, 1032, ["line-clamp"]))], 64)) : g("", !0)]),
1335
+ }, 1032, ["line-clamp"]))], 64)) : r("", !0)]),
1336
1336
  _: 1
1337
1337
  }, 8, [
1338
1338
  "prop",
@@ -1344,7 +1344,7 @@ var $ = {
1344
1344
  ]));
1345
1345
  };
1346
1346
  }
1347
- }), it = /* @__PURE__ */ U(/* @__PURE__ */ C({
1347
+ }), tr = /* @__PURE__ */ K(/* @__PURE__ */ u({
1348
1348
  __name: "index",
1349
1349
  props: {
1350
1350
  loading: {
@@ -1356,14 +1356,14 @@ var $ = {
1356
1356
  default: !1
1357
1357
  },
1358
1358
  size: { default: "default" },
1359
- data: { default: () => A([]) },
1359
+ data: { default: () => b([]) },
1360
1360
  columns: {},
1361
1361
  align: { default: "left" },
1362
1362
  hidePagination: {
1363
1363
  type: Boolean,
1364
1364
  default: !1
1365
1365
  },
1366
- pagination: { default: () => A({
1366
+ pagination: { default: () => b({
1367
1367
  page: 1,
1368
1368
  pageSize: 10,
1369
1369
  total: 0,
@@ -1380,8 +1380,8 @@ var $ = {
1380
1380
  rowKey: {}
1381
1381
  },
1382
1382
  emits: ["pagination"],
1383
- setup(e, { emit: t }) {
1384
- let n = t, r = y(e, [
1383
+ setup(a, { emit: s }) {
1384
+ let c = s, l = o(a, [
1385
1385
  "loading",
1386
1386
  "border",
1387
1387
  "align",
@@ -1389,59 +1389,59 @@ var $ = {
1389
1389
  "pagination",
1390
1390
  "data",
1391
1391
  "size"
1392
- ]), 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"));
1393
- B(() => [r.defaultCheckedKeys, e.data], ([e, t]) => {
1394
- !e?.length || !t?.length || ee(() => {
1395
- 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;
1396
1396
  let n = t.filter((t) => e.includes(t.id));
1397
- i.value.clearSelection(), n.forEach((e) => i.value?.toggleRowSelection(e, !0));
1397
+ u.value.clearSelection(), n.forEach((e) => u.value?.toggleRowSelection(e, !0));
1398
1398
  });
1399
1399
  }, { immediate: !0 });
1400
- function c(t, r) {
1401
- 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));
1402
1402
  }
1403
- function l(t, n, r) {
1404
- e.data[t] && (e.data[t] = {
1405
- ...e.data[t],
1406
- [n]: r
1403
+ function _(e, t, n) {
1404
+ a.data[e] && (a.data[e] = {
1405
+ ...a.data[e],
1406
+ [t]: n
1407
1407
  });
1408
1408
  }
1409
- return (t, n) => {
1410
- let u = P("el-table-column"), d = P("el-table"), f = P("el-pagination"), m = re("loading");
1411
- return k(), _("div", null, [
1412
- H((k(), h(d, E({ border: e.border }, t.$attrs, {
1413
- 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,
1414
1414
  lazy: !0,
1415
1415
  class: "ui-table",
1416
1416
  fit: "",
1417
1417
  ref_key: "tableRef",
1418
- ref: i
1418
+ ref: u
1419
1419
  }), {
1420
- default: V(() => [
1421
- o.value ? (k(), h(u, {
1420
+ default: N(() => [
1421
+ f.value ? (y(), n(s, {
1422
1422
  key: 0,
1423
1423
  type: "selection",
1424
- selectable: r.selectable,
1424
+ selectable: l.selectable,
1425
1425
  "column-key": "selection_0",
1426
- align: e.align,
1426
+ align: a.align,
1427
1427
  fixed: "left"
1428
- }, null, 8, ["selectable", "align"])) : g("", !0),
1429
- a.value ? (k(), h(u, {
1428
+ }, null, 8, ["selectable", "align"])) : r("", !0),
1429
+ d.value ? (y(), n(s, {
1430
1430
  key: 1,
1431
1431
  fixed: "left",
1432
1432
  type: "index",
1433
1433
  label: "序号",
1434
1434
  width: "60",
1435
1435
  "column-key": "index_1",
1436
- align: e.align
1437
- }, null, 8, ["align"])) : g("", !0),
1438
- (k(!0), _(p, null, M(s.value, (t, n) => (k(), h(rt, {
1439
- key: n + "column_" + t?.prop?.toString(),
1440
- column: t,
1441
- data: e.data,
1442
- align: e.align,
1443
- "onUpdate:data": l,
1444
- 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(er, {
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
1445
1445
  }, null, 8, [
1446
1446
  "column",
1447
1447
  "data",
@@ -1450,48 +1450,165 @@ var $ = {
1450
1450
  ]))), 128))
1451
1451
  ]),
1452
1452
  _: 1
1453
- }, 16, ["border", "data"])), [[m, e.loading]]),
1454
- e.hidePagination ? g("", !0) : (k(), h(f, {
1453
+ }, 16, ["border", "data"])), [[v, a.loading]]),
1454
+ a.hidePagination ? r("", !0) : (y(), n(m, {
1455
1455
  key: 0,
1456
1456
  class: "ui-pagination",
1457
1457
  size: "small",
1458
1458
  background: "",
1459
1459
  layout: "total, sizes, prev, pager, next, jumper",
1460
- "page-sizes": e.pagination?.pageSizes || [
1460
+ "page-sizes": a.pagination?.pageSizes || [
1461
1461
  10,
1462
1462
  20,
1463
1463
  50
1464
1464
  ],
1465
- "page-size": e.pagination.pageSize,
1466
- "onUpdate:pageSize": n[0] ||= (t) => e.pagination.pageSize = t,
1467
- "current-page": e.pagination.page,
1468
- "onUpdate:currentPage": n[1] ||= (t) => e.pagination.page = t,
1469
- total: e.pagination.total,
1470
- "onUpdate:total": n[2] ||= (t) => e.pagination.total = t,
1471
- 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
1472
1472
  }, null, 8, [
1473
1473
  "page-sizes",
1474
1474
  "page-size",
1475
1475
  "current-page",
1476
1476
  "total"
1477
1477
  ])),
1478
- N(t.$slots, "default", {}, void 0, !0)
1478
+ C(t.$slots, "default", {}, void 0, !0)
1479
1479
  ]);
1480
1480
  };
1481
1481
  }
1482
- }), [["__scopeId", "data-v-3402edfe"]]), at = {
1483
- UiCard: W,
1484
- UiTable: it,
1485
- UiFilter: J,
1486
- UiForm: Y,
1487
- UiEditor: X,
1488
- UiTree: Z,
1489
- UiInfiniteScroll: Q,
1490
- UiDescriptions: Be,
1491
- UiDialog: He
1492
- }, ot = { install(t) {
1493
- t.use(e, { locale: ce });
1494
- for (let [e, n] of Object.entries(at)) t.component(e, n);
1482
+ }), [["__scopeId", "data-v-3402edfe"]]), nr = {
1483
+ ElAffix: F,
1484
+ ElAlert: ne,
1485
+ ElAnchor: re,
1486
+ ElAnchorLink: ie,
1487
+ ElAside: ae,
1488
+ ElAutoResizer: oe,
1489
+ ElAutocomplete: se,
1490
+ ElAvatar: ce,
1491
+ ElAvatarGroup: le,
1492
+ ElBacktop: ue,
1493
+ ElBadge: de,
1494
+ ElBreadcrumb: fe,
1495
+ ElBreadcrumbItem: pe,
1496
+ ElButton: me,
1497
+ ElButtonGroup: he,
1498
+ ElCalendar: ge,
1499
+ ElCard: _e,
1500
+ ElCarousel: ve,
1501
+ ElCarouselItem: ye,
1502
+ ElCascader: be,
1503
+ ElCascaderPanel: xe,
1504
+ ElCheckTag: Se,
1505
+ ElCheckbox: Ce,
1506
+ ElCheckboxButton: we,
1507
+ ElCheckboxGroup: Te,
1508
+ ElCol: Ee,
1509
+ ElCollapse: De,
1510
+ ElCollapseItem: Oe,
1511
+ ElCollapseTransition: ke,
1512
+ ElColorPicker: Ae,
1513
+ ElColorPickerPanel: je,
1514
+ ElConfigProvider: Me,
1515
+ ElContainer: Ne,
1516
+ ElCountdown: Pe,
1517
+ ElDatePicker: Fe,
1518
+ ElDatePickerPanel: Ie,
1519
+ ElDescriptions: Le,
1520
+ ElDescriptionsItem: Re,
1521
+ ElDialog: ze,
1522
+ ElDivider: Be,
1523
+ ElDrawer: Ve,
1524
+ ElDropdown: He,
1525
+ ElDropdownItem: Ue,
1526
+ ElDropdownMenu: We,
1527
+ ElEmpty: Ge,
1528
+ ElFooter: Ke,
1529
+ ElForm: qe,
1530
+ ElFormItem: Je,
1531
+ ElHeader: Ye,
1532
+ ElIcon: Xe,
1533
+ ElImage: Ze,
1534
+ ElImageViewer: Qe,
1535
+ ElInput: I,
1536
+ ElInputNumber: L,
1537
+ ElInputOtp: $e,
1538
+ ElInputTag: R,
1539
+ ElLink: z,
1540
+ ElMain: et,
1541
+ ElMention: tt,
1542
+ ElMenu: nt,
1543
+ ElMenuItem: rt,
1544
+ ElMenuItemGroup: it,
1545
+ ElOption: at,
1546
+ ElOptionGroup: ot,
1547
+ ElOverlay: st,
1548
+ ElPageHeader: ct,
1549
+ ElPagination: lt,
1550
+ ElPopconfirm: ut,
1551
+ ElPopover: dt,
1552
+ ElPopper: ft,
1553
+ ElPopperArrow: pt,
1554
+ ElPopperContent: mt,
1555
+ ElPopperTrigger: ht,
1556
+ ElProgress: gt,
1557
+ ElRadio: _t,
1558
+ ElRadioButton: vt,
1559
+ ElRadioGroup: V,
1560
+ ElRate: yt,
1561
+ ElResult: bt,
1562
+ ElRow: xt,
1563
+ ElScrollbar: St,
1564
+ ElSegmented: Ct,
1565
+ ElSelect: H,
1566
+ ElSelectV2: wt,
1567
+ ElSkeleton: Tt,
1568
+ ElSkeletonItem: Et,
1569
+ ElSlider: Dt,
1570
+ ElSpace: Ot,
1571
+ ElSplitter: kt,
1572
+ ElSplitterPanel: At,
1573
+ ElStatistic: jt,
1574
+ ElStep: Mt,
1575
+ ElSteps: Nt,
1576
+ ElSubMenu: Pt,
1577
+ ElSwitch: Ft,
1578
+ ElTabPane: It,
1579
+ ElTable: Lt,
1580
+ ElTableColumn: Rt,
1581
+ ElTableV2: zt,
1582
+ ElTabs: Bt,
1583
+ ElTag: U,
1584
+ ElText: W,
1585
+ ElTimePicker: Vt,
1586
+ ElTimeSelect: G,
1587
+ ElTimeline: Ht,
1588
+ ElTimelineItem: Ut,
1589
+ ElTooltip: Wt,
1590
+ ElTour: Gt,
1591
+ ElTourStep: Kt,
1592
+ ElTransfer: qt,
1593
+ ElTree: Jt,
1594
+ ElTreeSelect: Yt,
1595
+ ElTreeV2: Xt,
1596
+ ElUpload: Zt,
1597
+ ElWatermark: Qt
1598
+ }, rr = {
1599
+ UiCard: q,
1600
+ UiTable: tr,
1601
+ UiFilter: _n,
1602
+ UiForm: xn,
1603
+ UiEditor: Q,
1604
+ UiTree: On,
1605
+ UiInfiniteScroll: Pn,
1606
+ UiDescriptions: Ln,
1607
+ UiDialog: zn
1608
+ }, ir = { install(e) {
1609
+ for (let [, t] of Object.entries(nr)) t?.name && e.component(t.name, t);
1610
+ $t({ locale: tn });
1611
+ for (let [t, n] of Object.entries(rr)) e.component(t, n);
1495
1612
  } };
1496
1613
  //#endregion
1497
- 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 };
1614
+ export { q as UiCard, Ln as UiDescriptions, zn as UiDialog, Q as UiEditor, _n as UiFilter, xn as UiForm, Pn as UiInfiniteScroll, tr as UiTable, On as UiTree, ir as default };