yc-vep-ui 0.0.9 → 0.0.11

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,9 @@
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, onBeforeUnmount as _, onMounted as v, onUnmounted as y, openBlock as b, reactive as x, ref as S, renderList as C, renderSlot as w, resolveComponent as T, resolveDirective as E, resolveDynamicComponent as D, setBlockTracking as O, toDisplayString as k, toValue as A, unref as j, useCssVars as ee, useModel as M, watch as N, watchEffect as te, withCtx as P, withDirectives as F } from "vue";
2
- import { ElButton as I, ElCol as L, ElDatePicker as ne, ElInput as re, ElInputNumber as ie, ElInputTag as ae, ElLink as oe, ElMessageBox as se, ElRadioGroup as ce, ElRow as le, ElSelect as ue, ElTag as R, ElText as z, ElTimeSelect as de } from "element-plus";
3
- import { AiEditor as fe } from "aieditor";
4
- import { init as pe } from "echarts";
1
+ import { ElButton as e, ElCard as t, ElCol as n, ElDatePicker as r, ElDescriptions as i, ElDescriptionsItem as a, ElDialog as o, ElDropdown as s, ElDropdownItem as c, ElDropdownMenu as l, ElForm as u, ElFormItem as d, ElIcon as f, ElInput as p, ElInputNumber as m, ElInputTag as h, ElLink as g, ElMessageBox as _, ElPagination as ee, ElRadioGroup as te, ElRow as ne, ElSelect as re, ElTable as ie, ElTableColumn as ae, ElTag as v, ElText as y, ElTimeSelect as oe, ElTreeV2 as se } from "element-plus";
2
+ import { Fragment as b, computed as x, createBlock as S, createCommentVNode as C, createElementBlock as w, createElementVNode as T, createPropsRestProxy as E, createSlots as ce, createTextVNode as D, createVNode as O, defineComponent as k, h as A, mergeModels as le, mergeProps as j, nextTick as ue, normalizeClass as M, normalizeStyle as N, onBeforeUnmount as de, onMounted as P, onUnmounted as fe, openBlock as F, reactive as I, ref as L, renderList as R, renderSlot as z, resolveComponent as B, resolveDirective as pe, resolveDynamicComponent as V, setBlockTracking as me, toDisplayString as H, toValue as U, unref as W, useCssVars as he, useModel as ge, watch as G, watchEffect as _e, withCtx as K, withDirectives as ve } from "vue";
3
+ import { AiEditor as ye } from "aieditor";
4
+ import { init as be } from "echarts";
5
5
  //#region src/components/Card/index.vue?vue&type=script&setup=true&lang.ts
6
- var me = { class: /* @__PURE__ */ h({ bodyClass: !0 }) }, he = /* @__PURE__ */ u({
6
+ var xe = { class: /* @__PURE__ */ M({ bodyClass: !0 }) }, Se = /* @__PURE__ */ k({
7
7
  __name: "index",
8
8
  props: {
9
9
  title: {},
@@ -12,175 +12,175 @@ var me = { class: /* @__PURE__ */ h({ bodyClass: !0 }) }, he = /* @__PURE__ */ u
12
12
  icon: {}
13
13
  },
14
14
  setup(e) {
15
- let i = t(() => ({
15
+ let t = x(() => ({
16
16
  display: "flex",
17
17
  alignItems: "center",
18
18
  gap: "4px",
19
19
  borderBottom: e.hideBorder ? "1px solid #e5e7eb" : "none"
20
20
  }));
21
- return (t, o) => {
22
- let l = T("el-icon"), u = T("el-card");
23
- return b(), n(u, p(t.$attrs, { class: {
21
+ return (n, r) => {
22
+ let i = B("el-icon"), a = B("el-card");
23
+ return F(), S(a, j(n.$attrs, { class: {
24
24
  "ui-card": !0,
25
25
  hideBorder: e.hideBorder
26
- } }), s({
27
- default: P(() => [a("div", me, [w(t.$slots, "default", {}, void 0, !0)])]),
26
+ } }), ce({
27
+ default: K(() => [T("div", xe, [z(n.$slots, "default", {}, void 0, !0)])]),
28
28
  _: 2
29
29
  }, [e.title && e.title?.length > 0 ? {
30
30
  name: "header",
31
- fn: P(() => [a("div", { style: g(i.value) }, [e.icon ? (b(), n(l, { key: 0 }, {
32
- default: P(() => [(b(), n(D(e.icon), { color: "#2563eb" }))]),
31
+ fn: K(() => [T("div", { style: N(t.value) }, [e.icon ? (F(), S(i, { key: 0 }, {
32
+ default: K(() => [(F(), S(V(e.icon), { color: "#2563eb" }))]),
33
33
  _: 1
34
- })) : r("", !0), o[0] || (O(-1, !0), (o[0] = a("h4", null, [c(k(e.title), 1)])).cacheIndex = 0, O(1), o[0])], 4)]),
34
+ })) : C("", !0), r[0] || (me(-1, !0), (r[0] = T("h4", null, [D(H(e.title), 1)])).cacheIndex = 0, me(1), r[0])], 4)]),
35
35
  key: "0"
36
36
  } : void 0]), 1040, ["class"]);
37
37
  };
38
38
  }
39
- }), B = (e, t) => {
39
+ }), q = (e, t) => {
40
40
  let n = e.__vccOpts || e;
41
41
  for (let [e, r] of t) n[e] = r;
42
42
  return n;
43
- }, V = /* @__PURE__ */ B(he, [["__scopeId", "data-v-ae248017"]]), ge = /* @__PURE__ */ u({
43
+ }, Ce = /* @__PURE__ */ q(Se, [["__scopeId", "data-v-ae248017"]]), we = /* @__PURE__ */ k({
44
44
  name: "ArrowRight",
45
45
  __name: "arrow-right",
46
46
  setup(e) {
47
- return (e, t) => (b(), i("svg", {
47
+ return (e, t) => (F(), w("svg", {
48
48
  xmlns: "http://www.w3.org/2000/svg",
49
49
  viewBox: "0 0 1024 1024"
50
- }, [a("path", {
50
+ }, [T("path", {
51
51
  fill: "currentColor",
52
52
  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"
53
53
  })]));
54
54
  }
55
- }), _e = /* @__PURE__ */ u({
55
+ }), Te = /* @__PURE__ */ k({
56
56
  name: "ArrowUp",
57
57
  __name: "arrow-up",
58
58
  setup(e) {
59
- return (e, t) => (b(), i("svg", {
59
+ return (e, t) => (F(), w("svg", {
60
60
  xmlns: "http://www.w3.org/2000/svg",
61
61
  viewBox: "0 0 1024 1024"
62
- }, [a("path", {
62
+ }, [T("path", {
63
63
  fill: "currentColor",
64
64
  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"
65
65
  })]));
66
66
  }
67
- }), ve = /* @__PURE__ */ u({
67
+ }), Ee = /* @__PURE__ */ k({
68
68
  name: "CirclePlus",
69
69
  __name: "circle-plus",
70
70
  setup(e) {
71
- return (e, t) => (b(), i("svg", {
71
+ return (e, t) => (F(), w("svg", {
72
72
  xmlns: "http://www.w3.org/2000/svg",
73
73
  viewBox: "0 0 1024 1024"
74
74
  }, [
75
- a("path", {
75
+ T("path", {
76
76
  fill: "currentColor",
77
77
  d: "M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"
78
78
  }),
79
- a("path", {
79
+ T("path", {
80
80
  fill: "currentColor",
81
81
  d: "M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"
82
82
  }),
83
- a("path", {
83
+ T("path", {
84
84
  fill: "currentColor",
85
85
  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"
86
86
  })
87
87
  ]));
88
88
  }
89
- }), ye = /* @__PURE__ */ u({
89
+ }), De = /* @__PURE__ */ k({
90
90
  name: "Delete",
91
91
  __name: "delete",
92
92
  setup(e) {
93
- return (e, t) => (b(), i("svg", {
93
+ return (e, t) => (F(), w("svg", {
94
94
  xmlns: "http://www.w3.org/2000/svg",
95
95
  viewBox: "0 0 1024 1024"
96
- }, [a("path", {
96
+ }, [T("path", {
97
97
  fill: "currentColor",
98
98
  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"
99
99
  })]));
100
100
  }
101
- }), be = /* @__PURE__ */ u({
101
+ }), Oe = /* @__PURE__ */ k({
102
102
  name: "DocumentAdd",
103
103
  __name: "document-add",
104
104
  setup(e) {
105
- return (e, t) => (b(), i("svg", {
105
+ return (e, t) => (F(), w("svg", {
106
106
  xmlns: "http://www.w3.org/2000/svg",
107
107
  viewBox: "0 0 1024 1024"
108
- }, [a("path", {
108
+ }, [T("path", {
109
109
  fill: "currentColor",
110
110
  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"
111
111
  })]));
112
112
  }
113
- }), xe = /* @__PURE__ */ u({
113
+ }), ke = /* @__PURE__ */ k({
114
114
  name: "Edit",
115
115
  __name: "edit",
116
116
  setup(e) {
117
- return (e, t) => (b(), i("svg", {
117
+ return (e, t) => (F(), w("svg", {
118
118
  xmlns: "http://www.w3.org/2000/svg",
119
119
  viewBox: "0 0 1024 1024"
120
- }, [a("path", {
120
+ }, [T("path", {
121
121
  fill: "currentColor",
122
122
  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"
123
- }), a("path", {
123
+ }), T("path", {
124
124
  fill: "currentColor",
125
125
  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"
126
126
  })]));
127
127
  }
128
- }), Se = /* @__PURE__ */ u({
128
+ }), Ae = /* @__PURE__ */ k({
129
129
  name: "Folder",
130
130
  __name: "folder",
131
131
  setup(e) {
132
- return (e, t) => (b(), i("svg", {
132
+ return (e, t) => (F(), w("svg", {
133
133
  xmlns: "http://www.w3.org/2000/svg",
134
134
  viewBox: "0 0 1024 1024"
135
- }, [a("path", {
135
+ }, [T("path", {
136
136
  fill: "currentColor",
137
137
  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"
138
138
  })]));
139
139
  }
140
- }), Ce = /* @__PURE__ */ u({
140
+ }), je = /* @__PURE__ */ k({
141
141
  name: "MoreFilled",
142
142
  __name: "more-filled",
143
143
  setup(e) {
144
- return (e, t) => (b(), i("svg", {
144
+ return (e, t) => (F(), w("svg", {
145
145
  xmlns: "http://www.w3.org/2000/svg",
146
146
  viewBox: "0 0 1024 1024"
147
- }, [a("path", {
147
+ }, [T("path", {
148
148
  fill: "currentColor",
149
149
  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"
150
150
  })]));
151
151
  }
152
- }), we = /* @__PURE__ */ u({
152
+ }), Me = /* @__PURE__ */ k({
153
153
  name: "Promotion",
154
154
  __name: "promotion",
155
155
  setup(e) {
156
- return (e, t) => (b(), i("svg", {
156
+ return (e, t) => (F(), w("svg", {
157
157
  xmlns: "http://www.w3.org/2000/svg",
158
158
  viewBox: "0 0 1024 1024"
159
- }, [a("path", {
159
+ }, [T("path", {
160
160
  fill: "currentColor",
161
161
  d: "m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"
162
162
  })]));
163
163
  }
164
- }), H = /* @__PURE__ */ u({
164
+ }), Ne = /* @__PURE__ */ k({
165
165
  name: "Refresh",
166
166
  __name: "refresh",
167
167
  setup(e) {
168
- return (e, t) => (b(), i("svg", {
168
+ return (e, t) => (F(), w("svg", {
169
169
  xmlns: "http://www.w3.org/2000/svg",
170
170
  viewBox: "0 0 1024 1024"
171
- }, [a("path", {
171
+ }, [T("path", {
172
172
  fill: "currentColor",
173
173
  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"
174
174
  })]));
175
175
  }
176
- }), Te = /* @__PURE__ */ u({
176
+ }), Pe = /* @__PURE__ */ k({
177
177
  name: "Search",
178
178
  __name: "search",
179
179
  setup(e) {
180
- return (e, t) => (b(), i("svg", {
180
+ return (e, t) => (F(), w("svg", {
181
181
  xmlns: "http://www.w3.org/2000/svg",
182
182
  viewBox: "0 0 1024 1024"
183
- }, [a("path", {
183
+ }, [T("path", {
184
184
  fill: "currentColor",
185
185
  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"
186
186
  })]));
@@ -188,13 +188,13 @@ var me = { class: /* @__PURE__ */ h({ bodyClass: !0 }) }, he = /* @__PURE__ */ u
188
188
  });
189
189
  //#endregion
190
190
  //#region src/components/utils/tools.ts
191
- function Ee(e) {
191
+ function Fe(e) {
192
192
  return typeof e == "number" ? e + "px" : e || "100px";
193
193
  }
194
- function U(e) {
194
+ function J(e) {
195
195
  return typeof e == "number" ? e + "px" : e || "180px";
196
196
  }
197
- function W(e, t) {
197
+ function Y(e, t) {
198
198
  let n = {};
199
199
  return Object.keys(Q).forEach((r) => {
200
200
  let i = r;
@@ -213,13 +213,13 @@ function W(e, t) {
213
213
  data: t
214
214
  }) : n.input(n.props || {}))(n);
215
215
  }
216
- function G(e, t) {
217
- let n = W(e, t);
216
+ function X(e, t) {
217
+ let n = Y(e, t);
218
218
  return typeof n == "object" && (n.component ||= n), n;
219
219
  }
220
220
  //#endregion
221
221
  //#region src/components/Filter/index.vue?vue&type=script&setup=true&lang.ts
222
- var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
222
+ var Ie = { class: "filter-buttons" }, Le = /* @__PURE__ */ q(/* @__PURE__ */ k({
223
223
  name: "UiDefaultFilter",
224
224
  __name: "index",
225
225
  props: {
@@ -240,8 +240,8 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
240
240
  "reset",
241
241
  "search"
242
242
  ],
243
- setup(s, { emit: u }) {
244
- let d = u, f = o(s, [
243
+ setup(e, { emit: t }) {
244
+ let n = t, r = E(e, [
245
245
  "fields",
246
246
  "labelWidth",
247
247
  "valueWidth",
@@ -249,69 +249,69 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
249
249
  "column",
250
250
  "size",
251
251
  "filterFixedValues"
252
- ]), m = x({
252
+ ]), i = I({
253
253
  expandNum: 0,
254
254
  expand: !1
255
- }), h = x({}), _ = t(() => s.fields.slice(0, m.expand ? s.fields.length : m.expandNum)), y = t(() => 24 - _.value?.reduce((e, t) => e + (t.span || 24 / s.column), 0) % 24 - 24 / s.column);
256
- v(() => {
257
- m.expandNum = f?.expandNum ?? 2 * s.column - 1, s.fields.forEach((e) => {
258
- let t = W(e, h)?.props?.defaultValue;
259
- t !== void 0 && (h[e.prop] = t);
255
+ }), a = I({}), o = x(() => e.fields.slice(0, i.expand ? e.fields.length : i.expandNum)), s = x(() => 24 - o.value?.reduce((t, n) => t + (n.span || 24 / e.column), 0) % 24 - 24 / e.column);
256
+ P(() => {
257
+ i.expandNum = r?.expandNum ?? 2 * e.column - 1, e.fields.forEach((e) => {
258
+ let t = Y(e, a)?.props?.defaultValue;
259
+ t !== void 0 && (a[e.prop] = t);
260
260
  });
261
261
  });
262
- function S() {
263
- let e = {};
264
- Object.keys(h).forEach((t) => {
265
- if (h[t] !== void 0) {
266
- let n = A(h[t]);
267
- e[t] = typeof n == "string" ? n.trim() : n;
262
+ function c() {
263
+ let t = {};
264
+ Object.keys(a).forEach((e) => {
265
+ if (a[e] !== void 0) {
266
+ let n = U(a[e]);
267
+ t[e] = typeof n == "string" ? n.trim() : n;
268
268
  }
269
- }), d("submit", {
270
- ...e,
271
- ...s.filterFixedValues
272
- }), d("search", {
273
- ...e,
274
- ...s.filterFixedValues
269
+ }), n("submit", {
270
+ ...t,
271
+ ...e.filterFixedValues
272
+ }), n("search", {
273
+ ...t,
274
+ ...e.filterFixedValues
275
275
  });
276
276
  }
277
- function E() {
278
- Object.keys(h).forEach((e) => {
279
- s.omitFields.includes(e) || (h[e] = void 0);
280
- }), d("reset", h);
277
+ function l() {
278
+ Object.keys(a).forEach((t) => {
279
+ e.omitFields.includes(t) || (a[t] = void 0);
280
+ }), n("reset", a);
281
281
  }
282
- return (t, o) => {
283
- let u = T("el-input"), d = T("el-form-item"), f = T("el-button"), v = T("el-form");
284
- return b(), n(v, p({
285
- model: h,
282
+ return (t, n) => {
283
+ let r = B("el-input"), u = B("el-form-item"), d = B("el-col"), f = B("el-button"), p = B("el-row"), m = B("el-form");
284
+ return F(), S(m, j({
285
+ model: a,
286
286
  class: "ui-filter",
287
- size: s.size
287
+ size: e.size
288
288
  }, t.$attrs), {
289
- default: P(() => [l(j(le), { gutter: 20 }, {
290
- default: P(() => [(b(!0), i(e, null, C(_.value, (e) => (b(), n(j(L), { span: e.span || 24 / s.column }, {
291
- default: P(() => [(b(), n(d, {
292
- key: e.prop,
293
- label: e.label,
294
- "label-width": j(Ee)(e?.labelWidth || s.labelWidth),
295
- "value-width": j(U)(e?.valueWidth || s.valueWidth)
289
+ default: K(() => [O(p, { gutter: 20 }, {
290
+ default: K(() => [(F(!0), w(b, null, R(o.value, (t) => (F(), S(d, { span: t.span || 24 / e.column }, {
291
+ default: K(() => [(F(), S(u, {
292
+ key: t.prop,
293
+ label: t.label,
294
+ "label-width": W(Fe)(t?.labelWidth || e.labelWidth),
295
+ "value-width": W(J)(t?.valueWidth || e.valueWidth)
296
296
  }, {
297
- default: P(() => [e.render ? (b(), n(D(j(W)(e, h).component), p({
297
+ default: K(() => [t.render ? (F(), S(V(W(Y)(t, a).component), j({
298
298
  key: 0,
299
- modelValue: h[e.prop],
300
- "onUpdate:modelValue": (t) => h[e.prop] = t
301
- }, { ref_for: !0 }, j(W)(e, h).props, {
299
+ modelValue: a[t.prop],
300
+ "onUpdate:modelValue": (e) => a[t.prop] = e
301
+ }, { ref_for: !0 }, W(Y)(t, a).props, {
302
302
  clearable: !0,
303
- style: { width: j(U)(e?.valueWidth || s.valueWidth) }
303
+ style: { width: W(J)(t?.valueWidth || e.valueWidth) }
304
304
  }), null, 16, [
305
305
  "modelValue",
306
306
  "onUpdate:modelValue",
307
307
  "style"
308
- ])) : (b(), n(u, {
308
+ ])) : (F(), S(r, {
309
309
  key: 1,
310
- modelValue: h[e.prop],
311
- "onUpdate:modelValue": (t) => h[e.prop] = t,
310
+ modelValue: a[t.prop],
311
+ "onUpdate:modelValue": (e) => a[t.prop] = e,
312
312
  placeholder: "请输入",
313
313
  clearable: !0,
314
- style: g({ width: j(U)(e?.valueWidth || s.valueWidth) })
314
+ style: N({ width: W(J)(t?.valueWidth || e.valueWidth) })
315
315
  }, null, 8, [
316
316
  "modelValue",
317
317
  "onUpdate:modelValue",
@@ -324,42 +324,42 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
324
324
  "value-width"
325
325
  ]))]),
326
326
  _: 2
327
- }, 1032, ["span"]))), 256)), l(j(L), {
328
- span: 24 / s.column,
329
- offset: y.value
327
+ }, 1032, ["span"]))), 256)), O(d, {
328
+ span: 24 / e.column,
329
+ offset: s.value
330
330
  }, {
331
- default: P(() => [l(d, {
331
+ default: K(() => [O(u, {
332
332
  label: "",
333
333
  "label-width": "30px"
334
334
  }, {
335
- default: P(() => [a("div", De, [
336
- w(t.$slots, "left", { form: h }, void 0, !0),
337
- s.fields.length >= 2 * s.column ? (b(), n(f, {
335
+ default: K(() => [T("div", Ie, [
336
+ z(t.$slots, "left", { form: a }, void 0, !0),
337
+ e.fields.length >= 2 * e.column ? (F(), S(f, {
338
338
  key: 0,
339
339
  text: "",
340
- icon: m.expand ? j(_e) : j(ge),
341
- onClick: o[0] ||= (e) => m.expand = !m.expand
340
+ icon: i.expand ? W(Te) : W(we),
341
+ onClick: n[0] ||= (e) => i.expand = !i.expand
342
342
  }, {
343
- default: P(() => [c(k(m.expand ? "收起" : "展开"), 1)]),
343
+ default: K(() => [D(H(i.expand ? "收起" : "展开"), 1)]),
344
344
  _: 1
345
- }, 8, ["icon"])) : r("", !0),
346
- l(f, {
347
- icon: j(Te),
345
+ }, 8, ["icon"])) : C("", !0),
346
+ O(f, {
347
+ icon: W(Pe),
348
348
  type: "primary",
349
- onClick: S
349
+ onClick: c
350
350
  }, {
351
- default: P(() => [...o[1] ||= [c("查询", -1)]]),
351
+ default: K(() => [...n[1] ||= [D("查询", -1)]]),
352
352
  _: 1
353
353
  }, 8, ["icon"]),
354
- l(f, {
355
- icon: j(H),
356
- onClick: E
354
+ O(f, {
355
+ icon: W(Ne),
356
+ onClick: l
357
357
  }, {
358
- default: P(() => [...o[2] ||= [c("重置", -1)]]),
358
+ default: K(() => [...n[2] ||= [D("重置", -1)]]),
359
359
  _: 1
360
360
  }, 8, ["icon"]),
361
- w(t.$slots, "handle", { form: h }, void 0, !0),
362
- w(t.$slots, "right", { form: h }, void 0, !0)
361
+ z(t.$slots, "handle", { form: a }, void 0, !0),
362
+ z(t.$slots, "right", { form: a }, void 0, !0)
363
363
  ])]),
364
364
  _: 3
365
365
  })]),
@@ -371,16 +371,16 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
371
371
  }, 16, ["model", "size"]);
372
372
  };
373
373
  }
374
- }), [["__scopeId", "data-v-86984b51"]]), Oe = {
374
+ }), [["__scopeId", "data-v-45f0642b"]]), Re = {
375
375
  key: 0,
376
376
  style: { display: "inline-block" }
377
- }, ke = {
377
+ }, ze = {
378
378
  key: 0,
379
379
  style: { display: "inline-block" }
380
- }, Ae = {
380
+ }, Be = {
381
381
  key: 0,
382
382
  class: "ui-form-buttons"
383
- }, q = /* @__PURE__ */ B(/* @__PURE__ */ u({
383
+ }, Ve = /* @__PURE__ */ q(/* @__PURE__ */ k({
384
384
  __name: "index",
385
385
  props: {
386
386
  fields: {},
@@ -389,7 +389,7 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
389
389
  labelWidth: { default: "100px" },
390
390
  labelPosition: { default: "top" },
391
391
  omitFields: { default: () => [] },
392
- rules: { default: () => x({}) },
392
+ rules: { default: () => I({}) },
393
393
  required: { type: Boolean },
394
394
  column: { default: 24 },
395
395
  defaultValues: {},
@@ -398,9 +398,9 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
398
398
  size: {}
399
399
  },
400
400
  emits: ["submit", "reset"],
401
- setup(a, { expose: s, emit: u }) {
402
- ee((e) => ({ ec46e5ec: e.column / 2 }));
403
- let d = u, f = o(a, [
401
+ setup(e, { expose: t, emit: n }) {
402
+ he((e) => ({ ec46e5ec: e.column / 2 }));
403
+ let r = n, i = E(e, [
404
404
  "fields",
405
405
  "labelWidth",
406
406
  "valueWidth",
@@ -409,121 +409,121 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
409
409
  "labelPosition",
410
410
  "valueModel",
411
411
  "column"
412
- ]), m = S(0), _ = S(), v = x({}), y = t(() => {
413
- let e = A(v);
414
- return a.fields.forEach((t) => {
415
- let n = t.prop ? e?.[t.prop] : void 0, r = G(t, v)?.props?.defaultValue;
416
- v[t.prop] = n ?? r ?? void 0, t?.slots && t?.slots?.length > 0 && t.slots.forEach((t) => {
417
- let n = t.prop ? e?.[t.prop] : void 0, r = G(t, v)?.props?.defaultValue;
418
- v[t.prop] = n ?? r ?? void 0;
412
+ ]), a = L(0), o = L(), s = I({}), c = x(() => {
413
+ let t = U(s);
414
+ return e.fields.forEach((e) => {
415
+ let n = e.prop ? t?.[e.prop] : void 0, r = X(e, s)?.props?.defaultValue;
416
+ s[e.prop] = n ?? r ?? void 0, e?.slots && e?.slots?.length > 0 && e.slots.forEach((e) => {
417
+ let n = e.prop ? t?.[e.prop] : void 0, r = X(e, s)?.props?.defaultValue;
418
+ s[e.prop] = n ?? r ?? void 0;
419
419
  });
420
- }), a.fields.filter((e) => typeof e.prop == "string");
421
- }), E = t(() => {
422
- if (a.rules && Object.keys(a.rules).length) return a.rules;
423
- let e = {};
424
- return y.value.forEach((t) => {
425
- t.rules && Object.keys(t.rules).length ? e[t.prop] = t.rules : t.required && (e[t.prop] = [{
420
+ }), e.fields.filter((e) => typeof e.prop == "string");
421
+ }), l = x(() => {
422
+ if (e.rules && Object.keys(e.rules).length) return e.rules;
423
+ let t = {};
424
+ return c.value.forEach((e) => {
425
+ e.rules && Object.keys(e.rules).length ? t[e.prop] = e.rules : e.required && (t[e.prop] = [{
426
426
  required: !0,
427
- message: "请输入" + t.label,
427
+ message: "请输入" + e.label,
428
428
  trigger: "change"
429
429
  }]);
430
- }), e;
430
+ }), t;
431
431
  });
432
- te(() => {
433
- Object.assign(v, f?.form);
432
+ _e(() => {
433
+ Object.assign(s, i?.form);
434
434
  });
435
- async function O(e) {
435
+ async function u(e) {
436
436
  let t = !0;
437
437
  if (await e.validate((e) => {
438
438
  t = e;
439
439
  }), !t) return;
440
440
  let n = {};
441
- Object.keys(v).forEach((e) => {
442
- v[e] !== void 0 && (n[e] = A(v[e]));
443
- }), d("submit", n);
441
+ Object.keys(s).forEach((e) => {
442
+ s[e] !== void 0 && (n[e] = U(s[e]));
443
+ }), r("submit", n);
444
444
  }
445
- function M() {
446
- _ && _.value?.clearValidate();
445
+ function d() {
446
+ o && o.value?.clearValidate();
447
447
  }
448
- function N() {
449
- Object.keys(v).forEach((e) => {
450
- a.omitFields.includes(e) || (v[e] = void 0);
451
- }), m.value += 1, d("reset", v);
448
+ function f() {
449
+ Object.keys(s).forEach((t) => {
450
+ e.omitFields.includes(t) || (s[t] = void 0);
451
+ }), a.value += 1, r("reset", s);
452
452
  }
453
- function F() {
454
- return v;
453
+ function p() {
454
+ return s;
455
455
  }
456
- function I(e) {
456
+ function m(e) {
457
457
  Object.keys(e).forEach((t) => {
458
- v[t] = e[t];
458
+ s[t] = e[t];
459
459
  });
460
460
  }
461
- async function L() {
461
+ async function h() {
462
462
  return new Promise((e) => {
463
- _.value?.validate((t, n) => e(n));
463
+ o.value?.validate((t, n) => e(n));
464
464
  });
465
465
  }
466
- return s({
467
- getValues: F,
468
- setValues: I,
469
- clearValidate: M,
470
- onSubmit: O,
471
- validate: L
472
- }), (t, o) => {
473
- let s = T("el-input"), u = T("el-form-item"), d = T("el-form"), f = T("el-button");
474
- return b(), i(e, null, [l(d, p({
466
+ return t({
467
+ getValues: p,
468
+ setValues: m,
469
+ clearValidate: d,
470
+ onSubmit: u,
471
+ validate: h
472
+ }), (t, n) => {
473
+ let r = B("el-input"), i = B("el-form-item"), d = B("el-form"), p = B("el-button");
474
+ return F(), w(b, null, [O(d, j({
475
475
  ref_key: "uiFormRef",
476
- ref: _,
477
- model: v
476
+ ref: o,
477
+ model: s
478
478
  }, t.$attrs, {
479
- rules: E.value,
480
- inline: a.labelPosition !== "top",
481
- "label-position": a.labelPosition,
479
+ rules: l.value,
480
+ inline: e.labelPosition !== "top",
481
+ "label-position": e.labelPosition,
482
482
  class: {
483
483
  "ui-form": !0,
484
- horizontal: a.labelPosition !== "top"
484
+ horizontal: e.labelPosition !== "top"
485
485
  },
486
486
  "validate-on-rule-change": !1
487
487
  }), {
488
- default: P(() => [(b(!0), i(e, null, C(y.value, (r) => (b(), n(u, {
489
- key: r.prop,
490
- label: r.label,
491
- "label-width": a.labelWidth,
492
- "value-width": a.valueWidth,
493
- prop: r.prop,
494
- style: g({
495
- width: `${r?.width ? r?.width + "px" : "100%"}`,
496
- gridColumn: `span ${(r?.span || a.column) / 2 || 1}`
488
+ default: K(() => [(F(!0), w(b, null, R(c.value, (n) => (F(), S(i, {
489
+ key: n.prop,
490
+ label: n.label,
491
+ "label-width": e.labelWidth,
492
+ "value-width": e.valueWidth,
493
+ prop: n.prop,
494
+ style: N({
495
+ width: `${n?.width ? n?.width + "px" : "100%"}`,
496
+ gridColumn: `span ${(n?.span || e.column) / 2 || 1}`
497
497
  })
498
498
  }, {
499
- default: P(() => [r.render ? (b(), i(e, { key: 0 }, [j(G)(r, v).component ? (b(), n(D(j(G)(r, v).component), p({
499
+ default: K(() => [n.render ? (F(), w(b, { key: 0 }, [W(X)(n, s).component ? (F(), S(V(W(X)(n, s).component), j({
500
500
  key: 1,
501
- modelValue: v[r.prop],
502
- "onUpdate:modelValue": (e) => v[r.prop] = e
503
- }, { ref_for: !0 }, j(G)(r, v).props, {
501
+ modelValue: s[n.prop],
502
+ "onUpdate:modelValue": (e) => s[n.prop] = e
503
+ }, { ref_for: !0 }, W(X)(n, s).props, {
504
504
  clearable: !0,
505
- key: `${r.prop}-${m.value}`,
505
+ key: `${n.prop}-${a.value}`,
506
506
  style: { display: "inline-block" },
507
- class: { underline: a.valueModel === "underline" }
507
+ class: { underline: e.valueModel === "underline" }
508
508
  }), null, 16, [
509
509
  "modelValue",
510
510
  "onUpdate:modelValue",
511
511
  "class"
512
- ])) : (b(), i("span", Oe, k(j(G)(r, v) || "-"), 1)), (b(!0), i(e, null, C(r.slots, (e) => w(t.$slots, "default", { form: v }, () => [j(G)(e, v).component ? (b(), n(D(j(G)(e, v).component), p({
512
+ ])) : (F(), w("span", Re, H(W(X)(n, s) || "-"), 1)), (F(!0), w(b, null, R(n.slots, (n) => z(t.$slots, "default", { form: s }, () => [W(X)(n, s).component ? (F(), S(V(W(X)(n, s).component), j({
513
513
  key: 1,
514
- modelValue: v[e.prop],
515
- "onUpdate:modelValue": (t) => v[e.prop] = t,
516
- "default-value": e.defaultValue,
517
- placeholder: e.placeholder
518
- }, { ref_for: !0 }, j(G)(e, v).props, {
514
+ modelValue: s[n.prop],
515
+ "onUpdate:modelValue": (e) => s[n.prop] = e,
516
+ "default-value": n.defaultValue,
517
+ placeholder: n.placeholder
518
+ }, { ref_for: !0 }, W(X)(n, s).props, {
519
519
  style: {
520
520
  display: "inline-block",
521
521
  marginLeft: "10px",
522
- width: `${e.width ? e.width + "px" : "100%"}`
522
+ width: `${n.width ? n.width + "px" : "100%"}`
523
523
  },
524
- class: { underline: a.valueModel === "underline" },
524
+ class: { underline: e.valueModel === "underline" },
525
525
  clearable: !0,
526
- key: `${e.prop}-${m.value}`
526
+ key: `${n.prop}-${a.value}`
527
527
  }), null, 16, [
528
528
  "modelValue",
529
529
  "onUpdate:modelValue",
@@ -531,13 +531,13 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
531
531
  "placeholder",
532
532
  "style",
533
533
  "class"
534
- ])) : (b(), i("span", ke, k(j(G)(e, v) || "-"), 1))], !0)), 256))], 64)) : (b(), n(s, {
534
+ ])) : (F(), w("span", ze, H(W(X)(n, s) || "-"), 1))], !0)), 256))], 64)) : (F(), S(r, {
535
535
  key: 1,
536
- modelValue: v[r.prop],
537
- "onUpdate:modelValue": (e) => v[r.prop] = e,
536
+ modelValue: s[n.prop],
537
+ "onUpdate:modelValue": (e) => s[n.prop] = e,
538
538
  placeholder: "请输入",
539
539
  clearable: !0,
540
- class: h({ underline: a.valueModel === "underline" })
540
+ class: M({ underline: e.valueModel === "underline" })
541
541
  }, null, 8, [
542
542
  "modelValue",
543
543
  "onUpdate:modelValue",
@@ -558,31 +558,31 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
558
558
  "inline",
559
559
  "label-position",
560
560
  "class"
561
- ]), t.$attrs?.hideHandle ? r("", !0) : (b(), i("div", Ae, [
562
- w(t.$slots, "handle", { form: v }, void 0, !0),
563
- l(f, {
564
- icon: j(H),
565
- onClick: o[0] ||= (e) => _.value && N(),
561
+ ]), t.$attrs?.hideHandle ? C("", !0) : (F(), w("div", Be, [
562
+ z(t.$slots, "handle", { form: s }, void 0, !0),
563
+ O(p, {
564
+ icon: W(Ne),
565
+ onClick: n[0] ||= (e) => o.value && f(),
566
566
  size: t.$props.size
567
567
  }, {
568
- default: P(() => [...o[2] ||= [c("重置", -1)]]),
568
+ default: K(() => [...n[2] ||= [D("重置", -1)]]),
569
569
  _: 1
570
570
  }, 8, ["icon", "size"]),
571
- l(f, {
572
- icon: j(we),
571
+ O(p, {
572
+ icon: W(Me),
573
573
  type: "primary",
574
- onClick: o[1] ||= (e) => _.value && O(_.value),
574
+ onClick: n[1] ||= (e) => o.value && u(o.value),
575
575
  size: t.$props.size
576
576
  }, {
577
- default: P(() => [...o[3] ||= [c("提交", -1)]]),
577
+ default: K(() => [...n[3] ||= [D("提交", -1)]]),
578
578
  _: 1
579
579
  }, 8, ["icon", "size"])
580
580
  ]))], 64);
581
581
  };
582
582
  }
583
- }), [["__scopeId", "data-v-f8f2a1f5"]]), je = ["disabled"], J = /* @__PURE__ */ u({
583
+ }), [["__scopeId", "data-v-f8f2a1f5"]]), He = ["disabled"], Z = /* @__PURE__ */ k({
584
584
  __name: "index",
585
- props: /* @__PURE__ */ f({
585
+ props: /* @__PURE__ */ le({
586
586
  defaultValue: { default: "" },
587
587
  disabled: {
588
588
  type: Boolean,
@@ -595,32 +595,32 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
595
595
  },
596
596
  modelModifiers: {}
597
597
  }),
598
- emits: /* @__PURE__ */ f(["change"], ["update:modelValue"]),
598
+ emits: /* @__PURE__ */ le(["change"], ["update:modelValue"]),
599
599
  setup(e, { emit: t }) {
600
- let n = S(), r = M(e, "modelValue"), a = S(r.value || e.defaultValue || ""), o = null, s = t;
601
- return v(() => {
602
- o = new fe({
600
+ let n = L(), r = ge(e, "modelValue"), i = L(r.value || e.defaultValue || ""), a = null, o = t;
601
+ return P(() => {
602
+ a = new ye({
603
603
  element: n.value,
604
604
  placeholder: "点击输入内容...",
605
605
  content: r.value || e.defaultValue || "",
606
606
  toolbarExcludeKeys: ["ai"],
607
607
  onChange: (e) => {
608
608
  let t = e.getHtml();
609
- r.value = t, a.value = t, s("change", t);
609
+ r.value = t, i.value = t, o("change", t);
610
610
  }
611
- }), o.setEditable(!e.disabled);
612
- }), N(r, (e) => {
613
- o && e !== o.getHtml() && o.setContent(e);
614
- }), y(() => {
615
- o && o.destroy();
616
- }), (t, r) => (b(), i("div", {
611
+ }), a.setEditable(!e.disabled);
612
+ }), G(r, (e) => {
613
+ a && e !== a.getHtml() && a.setContent(e);
614
+ }), fe(() => {
615
+ a && a.destroy();
616
+ }), (t, r) => (F(), w("div", {
617
617
  ref_key: "editorRef",
618
618
  ref: n,
619
619
  style: { height: "500px" },
620
620
  disabled: e.disabled
621
- }, null, 8, je));
621
+ }, null, 8, He));
622
622
  }
623
- }), Me = { class: "ui-tree-wrapper" }, Ne = {
623
+ }), Ue = { class: "ui-tree-wrapper" }, We = {
624
624
  key: 0,
625
625
  style: {
626
626
  display: "flex",
@@ -629,14 +629,14 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
629
629
  "align-items": "center",
630
630
  gap: "10px"
631
631
  }
632
- }, Pe = {
632
+ }, Ge = {
633
633
  key: 0,
634
634
  class: "custom-tree-node"
635
- }, Fe = { class: "node-label" }, Ie = { style: {
635
+ }, Ke = { class: "node-label" }, qe = { style: {
636
636
  color: "#ef4444",
637
637
  display: "flex",
638
638
  "align-items": "center"
639
- } }, Y = /* @__PURE__ */ B(/* @__PURE__ */ u({
639
+ } }, Je = /* @__PURE__ */ q(/* @__PURE__ */ k({
640
640
  __name: "index",
641
641
  props: {
642
642
  id: {},
@@ -653,35 +653,35 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
653
653
  },
654
654
  emits: ["change"],
655
655
  setup(e, { emit: t }) {
656
- let s = o(e, [
656
+ let n = E(e, [
657
657
  "filterable",
658
658
  "placeholder",
659
659
  "data",
660
660
  "props"
661
- ]), u = S(""), d = S(), f = S(null);
662
- N(u, (t) => {
663
- e.filterable && f.value.filter(t);
661
+ ]), r = L(""), i = L(), a = L(null);
662
+ G(r, (t) => {
663
+ e.filterable && a.value.filter(t);
664
664
  });
665
- function m(t, n) {
665
+ function o(t, n) {
666
666
  return t ? n?.[e.props?.label || "label"]?.includes(t) ?? !1 : !0;
667
667
  }
668
- function h(e, t) {
669
- e?.stopPropagation(), d.value = t.id;
668
+ function s(e, t) {
669
+ e?.stopPropagation(), i.value = t.id;
670
670
  }
671
- function g() {
672
- se.prompt("请输入新的名称", "添加节点", {
671
+ function c() {
672
+ _.prompt("请输入新的名称", "添加节点", {
673
673
  confirmButtonText: "确定",
674
674
  cancelButtonText: "取消",
675
675
  callback: async (e) => {
676
676
  if (e.action === "confirm") {
677
- if (!s?.id) return;
677
+ if (!n?.id) return;
678
678
  console.log("添加 =》》", e?.value);
679
679
  }
680
680
  }
681
681
  });
682
682
  }
683
- function _(e) {
684
- se.prompt("请输入新的名称", "重命名", {
683
+ function l(e) {
684
+ _.prompt("请输入新的名称", "重命名", {
685
685
  confirmButtonText: "确定",
686
686
  cancelButtonText: "取消",
687
687
  inputValue: e.label
@@ -689,18 +689,18 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
689
689
  console.log("修改节点 =》》", e);
690
690
  });
691
691
  }
692
- async function v(e) {
692
+ async function u(e) {
693
693
  e.id && console.log("删除节点 =》》", e.id);
694
694
  }
695
- return (t, o) => {
696
- let d = T("el-input"), y = T("el-icon"), x = T("el-button"), S = T("el-dropdown-item"), C = T("el-dropdown-menu"), E = T("el-dropdown"), D = T("el-tree-v2");
697
- return b(), i("div", Me, [
698
- e.filterable ? (b(), i("div", Ne, [l(d, {
699
- modelValue: u.value,
700
- "onUpdate:modelValue": o[0] ||= (e) => u.value = e,
695
+ return (t, i) => {
696
+ let d = B("el-input"), f = B("el-icon"), p = B("el-button"), m = B("el-dropdown-item"), h = B("el-dropdown-menu"), g = B("el-dropdown"), _ = B("el-tree-v2");
697
+ return F(), w("div", Ue, [
698
+ e.filterable ? (F(), w("div", We, [O(d, {
699
+ modelValue: r.value,
700
+ "onUpdate:modelValue": i[0] ||= (e) => r.value = e,
701
701
  placeholder: e.placeholder ?? "请输入",
702
702
  clearable: ""
703
- }, null, 8, ["modelValue", "placeholder"]), s?.hidePlusHandle ? r("", !0) : (b(), n(x, {
703
+ }, null, 8, ["modelValue", "placeholder"]), n?.hidePlusHandle ? C("", !0) : (F(), S(p, {
704
704
  key: 0,
705
705
  style: {
706
706
  margin: "0px",
@@ -708,89 +708,89 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
708
708
  },
709
709
  link: ""
710
710
  }, {
711
- default: P(() => [l(y, { size: 22 }, {
712
- default: P(() => [l(j(ve), { onClick: o[1] ||= (e) => g() })]),
711
+ default: K(() => [O(f, { size: 22 }, {
712
+ default: K(() => [O(W(Ee), { onClick: i[1] ||= (e) => c() })]),
713
713
  _: 1
714
714
  })]),
715
715
  _: 1
716
- }))])) : r("", !0),
717
- w(t.$slots, "handle", { style: "margin-top: 8px" }, void 0, !0),
718
- l(D, p({
716
+ }))])) : C("", !0),
717
+ z(t.$slots, "handle", { style: "margin-top: 8px" }, void 0, !0),
718
+ O(_, j({
719
719
  ref_key: "treeRef",
720
- ref: f,
720
+ ref: a,
721
721
  style: { "margin-top": "8px" }
722
722
  }, {
723
723
  ...t.$props,
724
724
  ...t.$attrs
725
725
  }, {
726
- "node-key": s?.nodeKey || "id",
726
+ "node-key": n?.nodeKey || "id",
727
727
  "highlight-current": !0,
728
- "filter-method": m
728
+ "filter-method": o
729
729
  }), {
730
- default: P((u) => [u?.data ? (b(), i("div", Pe, [a("div", Fe, [u.data?.children?.length ? (b(), n(y, { key: 0 }, {
731
- default: P(() => [l(j(Se))]),
730
+ default: K((r) => [r?.data ? (F(), w("div", Ge, [T("div", Ke, [r.data?.children?.length ? (F(), S(f, { key: 0 }, {
731
+ default: K(() => [O(W(Ae))]),
732
732
  _: 1
733
- })) : r("", !0), c(" " + k(u.data?.[e.props?.label || "label"]) + " " + k(u.data?.children?.length ? `(${u.data.children.length})` : ""), 1)]), s.hideNodeHandle ? r("", !0) : (b(), n(E, {
733
+ })) : C("", !0), D(" " + H(r.data?.[e.props?.label || "label"]) + " " + H(r.data?.children?.length ? `(${r.data.children.length})` : ""), 1)]), n.hideNodeHandle ? C("", !0) : (F(), S(g, {
734
734
  key: 0,
735
735
  trigger: "click"
736
736
  }, {
737
- dropdown: P(() => [l(C, null, {
738
- default: P(() => [
739
- s?.hideNodeAdd ? r("", !0) : (b(), n(S, {
737
+ dropdown: K(() => [O(h, null, {
738
+ default: K(() => [
739
+ n?.hideNodeAdd ? C("", !0) : (F(), S(m, {
740
740
  key: 0,
741
- onClick: o[2] ||= (e) => g()
741
+ onClick: i[2] ||= (e) => c()
742
742
  }, {
743
- default: P(() => [l(y, null, {
744
- default: P(() => [l(j(be))]),
743
+ default: K(() => [O(f, null, {
744
+ default: K(() => [O(W(Oe))]),
745
745
  _: 1
746
- }), o[3] ||= c("添加 ", -1)]),
746
+ }), i[3] ||= D("添加 ", -1)]),
747
747
  _: 1
748
748
  })),
749
- s?.hideNodeEdit ? r("", !0) : (b(), n(S, {
749
+ n?.hideNodeEdit ? C("", !0) : (F(), S(m, {
750
750
  key: 1,
751
- onClick: (e) => _(u.data)
751
+ onClick: (e) => l(r.data)
752
752
  }, {
753
- default: P(() => [l(y, null, {
754
- default: P(() => [l(j(xe))]),
753
+ default: K(() => [O(f, null, {
754
+ default: K(() => [O(W(ke))]),
755
755
  _: 1
756
- }), o[4] ||= c("编辑 ", -1)]),
756
+ }), i[4] ||= D("编辑 ", -1)]),
757
757
  _: 1
758
758
  }, 8, ["onClick"])),
759
- s?.hideNodeDel ? r("", !0) : (b(), n(S, {
759
+ n?.hideNodeDel ? C("", !0) : (F(), S(m, {
760
760
  key: 2,
761
- onClick: (e) => v(u.data)
761
+ onClick: (e) => u(r.data)
762
762
  }, {
763
- default: P(() => [a("span", Ie, [l(y, null, {
764
- default: P(() => [l(j(ye))]),
763
+ default: K(() => [T("span", qe, [O(f, null, {
764
+ default: K(() => [O(W(De))]),
765
765
  _: 1
766
- }), o[5] ||= c("删除 ", -1)])]),
766
+ }), i[5] ||= D("删除 ", -1)])]),
767
767
  _: 1
768
768
  }, 8, ["onClick"])),
769
- w(t.$slots, "node-handle", { data: u.data }, void 0, !0)
769
+ z(t.$slots, "node-handle", { data: r.data }, void 0, !0)
770
770
  ]),
771
771
  _: 2
772
772
  }, 1024)]),
773
- default: P(() => [l(y, { onClick: (e) => h(e, u.data) }, {
774
- default: P(() => [l(j(Ce))]),
773
+ default: K(() => [O(f, { onClick: (e) => s(e, r.data) }, {
774
+ default: K(() => [O(W(je))]),
775
775
  _: 1
776
776
  }, 8, ["onClick"])]),
777
777
  _: 2
778
- }, 1024))])) : r("", !0)]),
778
+ }, 1024))])) : C("", !0)]),
779
779
  _: 3
780
780
  }, 16, ["node-key"])
781
781
  ]);
782
782
  };
783
783
  }
784
- }), [["__scopeId", "data-v-4495ddac"]]), Le = { style: { height: "100%" } }, Re = { style: {
784
+ }), [["__scopeId", "data-v-4495ddac"]]), Ye = { style: { height: "100%" } }, Xe = { style: {
785
785
  display: "flex",
786
786
  "flex-direction": "row",
787
787
  "justify-content": "space-between",
788
788
  "align-items": "center",
789
789
  gap: "10px"
790
- } }, ze = { style: { margin: "10px 0px" } }, Be = ["onClick"], Ve = { key: 0 }, X = /* @__PURE__ */ B(/* @__PURE__ */ u({
790
+ } }, Ze = { style: { margin: "10px 0px" } }, Qe = ["onClick"], $e = { key: 0 }, et = /* @__PURE__ */ q(/* @__PURE__ */ k({
791
791
  __name: "index",
792
792
  props: {
793
- loading: { default: () => S(!1) },
793
+ loading: { default: () => L(!1) },
794
794
  data: {},
795
795
  placeholder: {},
796
796
  props: {},
@@ -798,47 +798,47 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
798
798
  filterable: { type: Boolean }
799
799
  },
800
800
  emits: ["node-click"],
801
- setup(o, { emit: s }) {
802
- let c = s, l = S(""), u = S(), d = t(() => l.value ? o.data.filter((e) => e[o.props?.label || "label"]?.includes(l.value)) : o.data);
803
- N(() => [u.value, o.data?.[0]], (e) => {
804
- !e[0] && e[1] && (u.value = o.data?.[0]);
801
+ setup(e, { emit: t }) {
802
+ let n = t, r = L(""), i = L(), a = x(() => r.value ? e.data.filter((t) => t[e.props?.label || "label"]?.includes(r.value)) : e.data);
803
+ G(() => [i.value, e.data?.[0]], (t) => {
804
+ !t[0] && t[1] && (i.value = e.data?.[0]);
805
805
  }, { immediate: !0 });
806
- function f(e) {
807
- u.value = e, c("node-click", e);
806
+ function o(e) {
807
+ i.value = e, n("node-click", e);
808
808
  }
809
- return (t, s) => {
810
- let c = T("el-input");
811
- return b(), i("div", Le, [
812
- a("div", Re, [o.filterable ? (b(), n(c, {
809
+ return (t, n) => {
810
+ let s = B("el-input");
811
+ return F(), w("div", Ye, [
812
+ T("div", Xe, [e.filterable ? (F(), S(s, {
813
813
  key: 0,
814
- modelValue: l.value,
815
- "onUpdate:modelValue": s[0] ||= (e) => l.value = e,
816
- placeholder: o.placeholder ?? "请输入"
817
- }, null, 8, ["modelValue", "placeholder"])) : r("", !0), w(t.$slots, "plus", {}, void 0, !0)]),
818
- a("div", ze, [w(t.$slots, "handle", {}, void 0, !0)]),
819
- F((b(), i("ul", p({
814
+ modelValue: r.value,
815
+ "onUpdate:modelValue": n[0] ||= (e) => r.value = e,
816
+ placeholder: e.placeholder ?? "请输入"
817
+ }, null, 8, ["modelValue", "placeholder"])) : C("", !0), z(t.$slots, "plus", {}, void 0, !0)]),
818
+ T("div", Ze, [z(t.$slots, "handle", {}, void 0, !0)]),
819
+ ve((F(), w("ul", j({
820
820
  class: "infinite-list",
821
821
  "infinite-scroll-immediate": !1
822
- }, t.$attrs), [(b(!0), i(e, null, C(d.value, (e, n) => (b(), i("li", {
823
- key: "infinite-list-" + n,
824
- class: h({
822
+ }, t.$attrs), [(F(!0), w(b, null, R(a.value, (n, r) => (F(), w("li", {
823
+ key: "infinite-list-" + r,
824
+ class: M({
825
825
  "infinite-list-item": !0,
826
- active: e === u.value
826
+ active: n === i.value
827
827
  }),
828
- onClick: (t) => f(e)
829
- }, [a("span", null, k(e[o.props?.label || "label"]), 1), w(t.$slots, "itemHandle", { data: e }, void 0, !0)], 10, Be))), 128))], 16)), [[j(o.vInfiniteScroll), o.vInfiniteScroll]]),
830
- o.loading.value ? (b(), i("p", Ve, "loading...")) : r("", !0)
828
+ onClick: (e) => o(n)
829
+ }, [T("span", null, H(n[e.props?.label || "label"]), 1), z(t.$slots, "itemHandle", { data: n }, void 0, !0)], 10, Qe))), 128))], 16)), [[W(e.vInfiniteScroll), e.vInfiniteScroll]]),
830
+ e.loading.value ? (F(), w("p", $e, "loading...")) : C("", !0)
831
831
  ]);
832
832
  };
833
833
  }
834
- }), [["__scopeId", "data-v-2180fa82"]]), He = {
834
+ }), [["__scopeId", "data-v-2180fa82"]]), tt = {
835
835
  key: 0,
836
836
  style: {
837
837
  padding: "10px 0px",
838
838
  "margin-bottom": "10px",
839
839
  "border-bottom": "1px solid #e5e5e5"
840
840
  }
841
- }, Ue = { key: 1 }, Z = /* @__PURE__ */ B(/* @__PURE__ */ u({
841
+ }, nt = { key: 1 }, rt = /* @__PURE__ */ q(/* @__PURE__ */ k({
842
842
  __name: "index",
843
843
  props: {
844
844
  data: {},
@@ -851,33 +851,33 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
851
851
  extra: {},
852
852
  labelWidth: {}
853
853
  },
854
- setup(t) {
855
- let a = o(t, [
854
+ setup(e) {
855
+ let t = E(e, [
856
856
  "title",
857
857
  "column",
858
858
  "fields",
859
859
  "data"
860
860
  ]);
861
- return (o, s) => {
862
- let c = T("el-descriptions-item"), u = T("el-descriptions");
863
- return b(), i(e, null, [
864
- t.title ? (b(), i("h4", He, k(t.title), 1)) : r("", !0),
865
- w(o.$slots, "title", {}, void 0, !0),
866
- l(u, p({ column: t.column }, a, { class: "ui-descriptions" }), {
867
- default: P(() => [(b(!0), i(e, null, C(t.fields, (e) => (b(), n(c, {
868
- key: e.prop,
869
- label: e.label,
870
- span: e.span || 2
861
+ return (n, r) => {
862
+ let i = B("el-descriptions-item"), a = B("el-descriptions");
863
+ return F(), w(b, null, [
864
+ e.title ? (F(), w("h4", tt, H(e.title), 1)) : C("", !0),
865
+ z(n.$slots, "title", {}, void 0, !0),
866
+ O(a, j({ column: e.column }, t, { class: "ui-descriptions" }), {
867
+ default: K(() => [(F(!0), w(b, null, R(e.fields, (t) => (F(), S(i, {
868
+ key: t.prop,
869
+ label: t.label,
870
+ span: t.span || 2
871
871
  }, {
872
- default: P(() => [e.render ? (b(), n(D(j(W)(e, t.data).component), p({
872
+ default: K(() => [t.render ? (F(), S(V(W(Y)(t, e.data).component), j({
873
873
  key: 0,
874
- modelValue: t.data[e.prop],
875
- "onUpdate:modelValue": (n) => t.data[e.prop] = n
876
- }, { ref_for: !0 }, j(W)(e, t.data).props, {
874
+ modelValue: e.data[t.prop],
875
+ "onUpdate:modelValue": (n) => e.data[t.prop] = n
876
+ }, { ref_for: !0 }, W(Y)(t, e.data).props, {
877
877
  clearable: !0,
878
- key: e.prop,
878
+ key: t.prop,
879
879
  style: { display: "inline-block" }
880
- }), null, 16, ["modelValue", "onUpdate:modelValue"])) : (b(), i("span", Ue, k(t.data[e.prop] || "-"), 1))]),
880
+ }), null, 16, ["modelValue", "onUpdate:modelValue"])) : (F(), w("span", nt, H(e.data[t.prop] || "-"), 1))]),
881
881
  _: 2
882
882
  }, 1032, ["label", "span"]))), 128))]),
883
883
  _: 1
@@ -885,10 +885,10 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
885
885
  ], 64);
886
886
  };
887
887
  }
888
- }), [["__scopeId", "data-v-f02c30f9"]]), We = {
888
+ }), [["__scopeId", "data-v-f02c30f9"]]), it = {
889
889
  key: 0,
890
890
  class: "dialog-footer"
891
- }, Ge = /* @__PURE__ */ B(/* @__PURE__ */ u({
891
+ }, at = /* @__PURE__ */ q(/* @__PURE__ */ k({
892
892
  __name: "index",
893
893
  props: {
894
894
  visible: { type: Boolean },
@@ -903,36 +903,36 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
903
903
  "submit"
904
904
  ],
905
905
  setup(e, { emit: t }) {
906
- let a = t, o = e, s = S();
907
- function u() {
908
- a("close"), a("update:visible", !1);
906
+ let n = t, r = e, i = L();
907
+ function a() {
908
+ n("close"), n("update:visible", !1);
909
909
  }
910
- function d() {
911
- a("submit", A(s?.value || {})), a("update:visible", !1);
910
+ function o() {
911
+ n("submit", U(i?.value || {})), n("update:visible", !1);
912
912
  }
913
913
  return (e, t) => {
914
- let a = T("el-button"), f = T("el-dialog");
915
- return b(), n(f, p(e.$attrs, {
916
- "model-value": o.visible,
917
- "show-close": o.disabled,
918
- fullscreen: !o.width,
914
+ let n = B("el-button"), s = B("el-dialog");
915
+ return F(), S(s, j(e.$attrs, {
916
+ "model-value": r.visible,
917
+ "show-close": r.disabled,
918
+ fullscreen: !r.width,
919
919
  "destroy-on-close": "",
920
920
  "lock-scroll": !1,
921
921
  "close-on-click-modal": !1,
922
- "onUpdate:modelValue": t[0] ||= (e) => !e && u(),
923
- onClose: u
922
+ "onUpdate:modelValue": t[0] ||= (e) => !e && a(),
923
+ onClose: a
924
924
  }), {
925
- default: P(() => [(b(), n(D(o.component), p({
925
+ default: K(() => [(F(), S(V(r.component), j({
926
926
  ref_key: "slotRef",
927
- ref: s
928
- }, o.componentProps), null, 16)), o.disabled ? r("", !0) : (b(), i("div", We, [l(a, { onClick: u }, {
929
- default: P(() => [...t[1] ||= [c("取消", -1)]]),
927
+ ref: i
928
+ }, r.componentProps), null, 16)), r.disabled ? C("", !0) : (F(), w("div", it, [O(n, { onClick: a }, {
929
+ default: K(() => [...t[1] ||= [D("取消", -1)]]),
930
930
  _: 1
931
- }), l(a, {
931
+ }), O(n, {
932
932
  type: "primary",
933
- onClick: d
933
+ onClick: o
934
934
  }, {
935
- default: P(() => [...t[2] ||= [c("确定", -1)]]),
935
+ default: K(() => [...t[2] ||= [D("确定", -1)]]),
936
936
  _: 1
937
937
  })]))]),
938
938
  _: 1
@@ -946,63 +946,63 @@ var De = { class: "filter-buttons" }, K = /* @__PURE__ */ B(/* @__PURE__ */ u({
946
946
  }), [["__scopeId", "data-v-fde928bf"]]);
947
947
  //#endregion
948
948
  //#region src/components/utils/render.ts
949
- function Ke(e) {
950
- return d("template", { style: {
949
+ function ot(t) {
950
+ return A("template", { style: {
951
951
  display: "flex",
952
952
  flexDirection: "row",
953
953
  flexWrap: "wrap"
954
- } }, (Array.isArray(e) ? e : [e]).map((e) => {
955
- let { text: t, ...n } = e;
956
- return d(I, {
957
- ...n,
954
+ } }, (Array.isArray(t) ? t : [t]).map((t) => {
955
+ let { text: n, ...r } = t;
956
+ return A(e, {
957
+ ...r,
958
958
  link: !0,
959
959
  size: "small",
960
- type: e.type || "default"
961
- }, () => t);
960
+ type: t.type || "default"
961
+ }, () => n);
962
962
  }));
963
963
  }
964
- function qe(e) {
965
- return Array.isArray(e) ? d("div", { style: {
964
+ function st(e) {
965
+ return Array.isArray(e) ? A("div", { style: {
966
966
  display: "flex",
967
967
  gap: "8px",
968
968
  flexDirection: "row",
969
969
  flexWrap: "wrap"
970
- } }, e.map((e) => d(oe, {
970
+ } }, e.map((e) => A(g, {
971
971
  ...e,
972
972
  type: e.type || "primary"
973
- }, d(z, {
973
+ }, A(y, {
974
974
  lineClamp: e?.lineClamp,
975
975
  type: e.type || "primary"
976
- }, () => e.prop)))) : d(oe, {
976
+ }, () => e.prop)))) : A(g, {
977
977
  ...e,
978
978
  type: e.type || "primary"
979
- }, d(z, {
979
+ }, A(y, {
980
980
  lineClamp: e?.lineClamp,
981
981
  type: e.type || "primary"
982
982
  }, () => e.prop));
983
983
  }
984
- function Je(e) {
985
- return d("div", { style: {
984
+ function ct(e) {
985
+ return A("div", { style: {
986
986
  display: "flex",
987
987
  gap: "4px",
988
988
  flexDirection: "row",
989
989
  flexWrap: "wrap"
990
- } }, (Array.isArray(e.prop) ? e.prop : [e.prop]).map((t) => d(R, e, () => t)));
990
+ } }, (Array.isArray(e.prop) ? e.prop : [e.prop]).map((t) => A(v, e, () => t)));
991
991
  }
992
- function Ye(e) {
993
- return d(R, { ...e });
992
+ function lt(e) {
993
+ return A(v, { ...e });
994
994
  }
995
- function Xe(e) {
996
- return d(ue, {
995
+ function ut(e) {
996
+ return A(re, {
997
997
  style: { minWidth: "160px" },
998
998
  ...e,
999
999
  placeholder: "请选择",
1000
1000
  filterable: !0
1001
1001
  });
1002
1002
  }
1003
- function Ze(e) {
1003
+ function dt(e) {
1004
1004
  let t = e?.type === "datetime" ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
1005
- return d(ne, {
1005
+ return A(r, {
1006
1006
  format: t,
1007
1007
  valueFormat: t,
1008
1008
  startPlaceholder: "开始时间",
@@ -1012,9 +1012,9 @@ function Ze(e) {
1012
1012
  "onUpdate:modelValue": (t) => e?.onChange?.(t)
1013
1013
  });
1014
1014
  }
1015
- function Qe(e) {
1015
+ function ft(e) {
1016
1016
  let { start: t = "00:00", end: n = "23:30", ...r } = e;
1017
- return d(de, {
1017
+ return A(oe, {
1018
1018
  start: t,
1019
1019
  end: n,
1020
1020
  ...r,
@@ -1022,15 +1022,15 @@ function Qe(e) {
1022
1022
  filterable: !0
1023
1023
  });
1024
1024
  }
1025
- function $e(e) {
1026
- return d(re, {
1025
+ function pt(e) {
1026
+ return A(p, {
1027
1027
  ...e,
1028
1028
  placeholder: "请输入"
1029
1029
  });
1030
1030
  }
1031
- function et(e) {
1031
+ function mt(e) {
1032
1032
  let { align: t = "left", controlsPosition: n = "right", ...r } = e;
1033
- return d(ie, {
1033
+ return A(m, {
1034
1034
  align: t,
1035
1035
  style: {
1036
1036
  ...e?.style || {},
@@ -1041,47 +1041,47 @@ function et(e) {
1041
1041
  ...r
1042
1042
  });
1043
1043
  }
1044
- function tt(e) {
1044
+ function ht(e) {
1045
1045
  let { rows: t = 1, ...n } = e;
1046
- return d(re, {
1046
+ return A(p, {
1047
1047
  placeholder: "请输入",
1048
1048
  rows: t,
1049
1049
  ...n,
1050
1050
  type: "textarea"
1051
1051
  });
1052
1052
  }
1053
- function nt(e) {
1054
- return d(ae, {
1053
+ function gt(e) {
1054
+ return A(h, {
1055
1055
  placeholder: "请输入",
1056
1056
  ...e,
1057
1057
  clearable: !1
1058
1058
  });
1059
1059
  }
1060
- function rt(e) {
1061
- return d(J, e);
1060
+ function _t(e) {
1061
+ return A(Z, e);
1062
1062
  }
1063
- function it(e) {
1064
- return d(ce, e);
1063
+ function vt(e) {
1064
+ return A(te, e);
1065
1065
  }
1066
- function at(e) {
1067
- return d(z, e, () => e.prop);
1066
+ function yt(e) {
1067
+ return A(y, e, () => e.prop);
1068
1068
  }
1069
1069
  var Q = {
1070
- button: Ke,
1071
- link: qe,
1072
- tag: Je,
1073
- switch: Ye,
1074
- select: Xe,
1075
- datePicker: Ze,
1076
- timeSelect: Qe,
1077
- input: $e,
1078
- inputNumber: et,
1079
- textarea: tt,
1080
- inputTag: nt,
1081
- editor: rt,
1082
- radio: it,
1083
- text: at
1084
- }, ot = /* @__PURE__ */ u({
1070
+ button: ot,
1071
+ link: st,
1072
+ tag: ct,
1073
+ switch: lt,
1074
+ select: ut,
1075
+ datePicker: dt,
1076
+ timeSelect: ft,
1077
+ input: pt,
1078
+ inputNumber: mt,
1079
+ textarea: ht,
1080
+ inputTag: gt,
1081
+ editor: _t,
1082
+ radio: vt,
1083
+ text: yt
1084
+ }, bt = /* @__PURE__ */ k({
1085
1085
  name: "UiColumn",
1086
1086
  __name: "UiColumn",
1087
1087
  props: {
@@ -1092,69 +1092,69 @@ var Q = {
1092
1092
  size: {}
1093
1093
  },
1094
1094
  emits: ["update:data"],
1095
- setup(t, { emit: a }) {
1096
- let o = a, s = t;
1097
- function l(e, t, n) {
1098
- let r = {};
1099
- Object.keys(Q).forEach((i) => {
1100
- let a = i;
1101
- r[a] = (r) => {
1102
- let i = Array.isArray(r) ? r : {
1095
+ setup(e, { emit: t }) {
1096
+ let n = t, r = e;
1097
+ function i(e, t, r) {
1098
+ let i = {};
1099
+ Object.keys(Q).forEach((a) => {
1100
+ let o = a;
1101
+ i[o] = (i) => {
1102
+ let a = Array.isArray(i) ? i : {
1103
1103
  placeholder: "请输入",
1104
1104
  filterable: !0,
1105
- ...r,
1106
- prop: r?.prop || e[n.prop],
1107
- modelValue: r?.prop || e[n.prop],
1108
- onChange: r?.onChange || ((e) => o("update:data", t, n.prop, e)),
1109
- onInput: r?.onInput || ((e) => o("update:data", t, n.prop, e))
1105
+ ...i,
1106
+ prop: i?.prop || e[r.prop],
1107
+ modelValue: i?.prop || e[r.prop],
1108
+ onChange: i?.onChange || ((e) => n("update:data", t, r.prop, e)),
1109
+ onInput: i?.onInput || ((e) => n("update:data", t, r.prop, e))
1110
1110
  };
1111
- return Q[a](i);
1111
+ return Q[o](a);
1112
1112
  };
1113
1113
  });
1114
- let i = n.render ? n.render({
1114
+ let a = r.render ? r.render({
1115
1115
  data: e,
1116
1116
  index: t,
1117
- h: r,
1118
- column: n
1117
+ h: i,
1118
+ column: r
1119
1119
  }) : null;
1120
- return i ? typeof i == "object" ? i : d("div", { innerHTML: String(i) }) : null;
1120
+ return a ? typeof a == "object" ? a : A("div", { innerHTML: String(a) }) : null;
1121
1121
  }
1122
- return (a, o) => {
1123
- let u = T("UiColumn", !0), d = T("el-table-column"), f = T("el-text");
1124
- return t.column?.children && t.column?.children?.length > 0 ? (b(), n(d, {
1122
+ return (t, n) => {
1123
+ let a = B("UiColumn", !0), o = B("el-table-column"), s = B("el-text");
1124
+ return e.column?.children && e.column?.children?.length > 0 ? (F(), S(o, {
1125
1125
  key: 0,
1126
- label: t.column.label,
1127
- align: s.align
1126
+ label: e.column.label,
1127
+ align: r.align
1128
1128
  }, {
1129
- default: P(() => [(b(!0), i(e, null, C(t.column.children, (e) => (b(), n(u, p({
1129
+ default: K(() => [(F(!0), w(b, null, R(e.column.children, (e) => (F(), S(a, j({
1130
1130
  column: e,
1131
- data: s.data
1132
- }, { ref_for: !0 }, a.$attrs, { align: s.align }), null, 16, [
1131
+ data: r.data
1132
+ }, { ref_for: !0 }, t.$attrs, { align: r.align }), null, 16, [
1133
1133
  "column",
1134
1134
  "data",
1135
1135
  "align"
1136
1136
  ]))), 256))]),
1137
1137
  _: 1
1138
- }, 8, ["label", "align"])) : (b(), n(d, {
1138
+ }, 8, ["label", "align"])) : (F(), S(o, {
1139
1139
  key: 1,
1140
- prop: String(t.column.prop),
1141
- label: t.column.label,
1142
- "column-key": String(t.column.prop),
1143
- align: s.align,
1144
- width: t.column.width,
1145
- "show-overflow-tooltip": t.column.showOverflowTooltip
1140
+ prop: String(e.column.prop),
1141
+ label: e.column.label,
1142
+ "column-key": String(e.column.prop),
1143
+ align: r.align,
1144
+ width: e.column.width,
1145
+ "show-overflow-tooltip": e.column.showOverflowTooltip
1146
1146
  }, {
1147
- default: P((a) => [a?.row ? (b(), i(e, { key: 0 }, [t.column.render ? (b(), n(D(l(a.row, a.$index, t.column)), {
1147
+ default: K((t) => [t?.row ? (F(), w(b, { key: 0 }, [e.column.render ? (F(), S(V(i(t.row, t.$index, e.column)), {
1148
1148
  key: 0,
1149
- align: s.align,
1150
- size: s.size
1151
- }, null, 8, ["align", "size"])) : (b(), n(f, {
1149
+ align: r.align,
1150
+ size: r.size
1151
+ }, null, 8, ["align", "size"])) : (F(), S(s, {
1152
1152
  key: 1,
1153
- "line-clamp": t.column?.lineClamp || 2
1153
+ "line-clamp": e.column?.lineClamp || 2
1154
1154
  }, {
1155
- default: P(() => [c(k(a.row[t.column.prop]), 1)]),
1155
+ default: K(() => [D(H(t.row[e.column.prop]), 1)]),
1156
1156
  _: 2
1157
- }, 1032, ["line-clamp"]))], 64)) : r("", !0)]),
1157
+ }, 1032, ["line-clamp"]))], 64)) : C("", !0)]),
1158
1158
  _: 1
1159
1159
  }, 8, [
1160
1160
  "prop",
@@ -1166,7 +1166,7 @@ var Q = {
1166
1166
  ]));
1167
1167
  };
1168
1168
  }
1169
- }), st = /* @__PURE__ */ B(/* @__PURE__ */ u({
1169
+ }), xt = /* @__PURE__ */ q(/* @__PURE__ */ k({
1170
1170
  __name: "index",
1171
1171
  props: {
1172
1172
  loading: {
@@ -1178,14 +1178,14 @@ var Q = {
1178
1178
  default: !1
1179
1179
  },
1180
1180
  size: { default: "default" },
1181
- data: { default: () => x([]) },
1181
+ data: { default: () => I([]) },
1182
1182
  columns: {},
1183
1183
  align: { default: "left" },
1184
1184
  hidePagination: {
1185
1185
  type: Boolean,
1186
1186
  default: !1
1187
1187
  },
1188
- pagination: { default: () => x({
1188
+ pagination: { default: () => I({
1189
1189
  page: 1,
1190
1190
  pageSize: 10,
1191
1191
  total: 0,
@@ -1202,8 +1202,8 @@ var Q = {
1202
1202
  rowKey: {}
1203
1203
  },
1204
1204
  emits: ["pagination"],
1205
- setup(a, { emit: s }) {
1206
- let c = s, l = o(a, [
1205
+ setup(e, { emit: t }) {
1206
+ let n = t, r = E(e, [
1207
1207
  "loading",
1208
1208
  "border",
1209
1209
  "align",
@@ -1211,59 +1211,59 @@ var Q = {
1211
1211
  "pagination",
1212
1212
  "data",
1213
1213
  "size"
1214
- ]), u = S(), d = t(() => A(l.columns)?.some((e) => e.type === "index")), f = t(() => A(l.columns)?.some((e) => e.type === "selection")), h = t(() => !l.columns || !l.columns.length ? [] : l.columns.filter((e) => e.type !== "index" && e.type !== "selection"));
1215
- N(() => [l.defaultCheckedKeys, a.data], ([e, t]) => {
1216
- !e?.length || !t?.length || m(() => {
1217
- if (!u.value) return;
1214
+ ]), i = L(), a = x(() => U(r.columns)?.some((e) => e.type === "index")), o = x(() => U(r.columns)?.some((e) => e.type === "selection")), s = x(() => !r.columns || !r.columns.length ? [] : r.columns.filter((e) => e.type !== "index" && e.type !== "selection"));
1215
+ G(() => [r.defaultCheckedKeys, e.data], ([e, t]) => {
1216
+ !e?.length || !t?.length || ue(() => {
1217
+ if (!i.value) return;
1218
1218
  let n = t.filter((t) => e.includes(t.id));
1219
- u.value.clearSelection(), n.forEach((e) => u.value?.toggleRowSelection(e, !0));
1219
+ i.value.clearSelection(), n.forEach((e) => i.value?.toggleRowSelection(e, !0));
1220
1220
  });
1221
1221
  }, { immediate: !0 });
1222
- function g(e, t) {
1223
- a.pagination.page = e || a.pagination.page, a.pagination.pageSize = t || a.pagination.pageSize, c("pagination", A(a.pagination));
1222
+ function c(t, r) {
1223
+ e.pagination.page = t || e.pagination.page, e.pagination.pageSize = r || e.pagination.pageSize, n("pagination", U(e.pagination));
1224
1224
  }
1225
- function _(e, t, n) {
1226
- a.data[e] && (a.data[e] = {
1227
- ...a.data[e],
1228
- [t]: n
1225
+ function l(t, n, r) {
1226
+ e.data[t] && (e.data[t] = {
1227
+ ...e.data[t],
1228
+ [n]: r
1229
1229
  });
1230
1230
  }
1231
- return (t, o) => {
1232
- let s = T("el-table-column"), c = T("el-table"), m = T("el-pagination"), v = E("loading");
1233
- return b(), i("div", null, [
1234
- F((b(), n(c, p({ border: a.border }, t.$attrs, {
1235
- data: a.data,
1231
+ return (t, n) => {
1232
+ let u = B("el-table-column"), d = B("el-table"), f = B("el-pagination"), p = pe("loading");
1233
+ return F(), w("div", null, [
1234
+ ve((F(), S(d, j({ border: e.border }, t.$attrs, {
1235
+ data: e.data,
1236
1236
  lazy: !0,
1237
1237
  class: "ui-table",
1238
1238
  fit: "",
1239
1239
  ref_key: "tableRef",
1240
- ref: u
1240
+ ref: i
1241
1241
  }), {
1242
- default: P(() => [
1243
- f.value ? (b(), n(s, {
1242
+ default: K(() => [
1243
+ o.value ? (F(), S(u, {
1244
1244
  key: 0,
1245
1245
  type: "selection",
1246
- selectable: l.selectable,
1246
+ selectable: r.selectable,
1247
1247
  "column-key": "selection_0",
1248
- align: a.align,
1248
+ align: e.align,
1249
1249
  fixed: "left"
1250
- }, null, 8, ["selectable", "align"])) : r("", !0),
1251
- d.value ? (b(), n(s, {
1250
+ }, null, 8, ["selectable", "align"])) : C("", !0),
1251
+ a.value ? (F(), S(u, {
1252
1252
  key: 1,
1253
1253
  fixed: "left",
1254
1254
  type: "index",
1255
1255
  label: "序号",
1256
1256
  width: "60",
1257
1257
  "column-key": "index_1",
1258
- align: a.align
1259
- }, null, 8, ["align"])) : r("", !0),
1260
- (b(!0), i(e, null, C(h.value, (e, t) => (b(), n(ot, {
1261
- key: t + "column_" + e?.prop?.toString(),
1262
- column: e,
1263
- data: a.data,
1264
- align: a.align,
1265
- "onUpdate:data": _,
1266
- size: a.size
1258
+ align: e.align
1259
+ }, null, 8, ["align"])) : C("", !0),
1260
+ (F(!0), w(b, null, R(s.value, (t, n) => (F(), S(bt, {
1261
+ key: n + "column_" + t?.prop?.toString(),
1262
+ column: t,
1263
+ data: e.data,
1264
+ align: e.align,
1265
+ "onUpdate:data": l,
1266
+ size: e.size
1267
1267
  }, null, 8, [
1268
1268
  "column",
1269
1269
  "data",
@@ -1272,54 +1272,54 @@ var Q = {
1272
1272
  ]))), 128))
1273
1273
  ]),
1274
1274
  _: 1
1275
- }, 16, ["border", "data"])), [[v, a.loading]]),
1276
- a.hidePagination ? r("", !0) : (b(), n(m, {
1275
+ }, 16, ["border", "data"])), [[p, e.loading]]),
1276
+ e.hidePagination ? C("", !0) : (F(), S(f, {
1277
1277
  key: 0,
1278
1278
  class: "ui-pagination",
1279
1279
  size: "small",
1280
1280
  background: "",
1281
1281
  layout: "total, sizes, prev, pager, next, jumper",
1282
- "page-sizes": a.pagination?.pageSizes || [
1282
+ "page-sizes": e.pagination?.pageSizes || [
1283
1283
  10,
1284
1284
  20,
1285
1285
  50
1286
1286
  ],
1287
- "page-size": a.pagination.pageSize,
1288
- "onUpdate:pageSize": o[0] ||= (e) => a.pagination.pageSize = e,
1289
- "current-page": a.pagination.page,
1290
- "onUpdate:currentPage": o[1] ||= (e) => a.pagination.page = e,
1291
- total: a.pagination.total,
1292
- "onUpdate:total": o[2] ||= (e) => a.pagination.total = e,
1293
- onChange: g
1287
+ "page-size": e.pagination.pageSize,
1288
+ "onUpdate:pageSize": n[0] ||= (t) => e.pagination.pageSize = t,
1289
+ "current-page": e.pagination.page,
1290
+ "onUpdate:currentPage": n[1] ||= (t) => e.pagination.page = t,
1291
+ total: e.pagination.total,
1292
+ "onUpdate:total": n[2] ||= (t) => e.pagination.total = t,
1293
+ onChange: c
1294
1294
  }, null, 8, [
1295
1295
  "page-sizes",
1296
1296
  "page-size",
1297
1297
  "current-page",
1298
1298
  "total"
1299
1299
  ])),
1300
- w(t.$slots, "default", {}, void 0, !0)
1300
+ z(t.$slots, "default", {}, void 0, !0)
1301
1301
  ]);
1302
1302
  };
1303
1303
  }
1304
- }), [["__scopeId", "data-v-3402edfe"]]), $ = /* @__PURE__ */ u({
1304
+ }), [["__scopeId", "data-v-3402edfe"]]), $ = /* @__PURE__ */ k({
1305
1305
  __name: "Series",
1306
1306
  props: {
1307
1307
  option: {},
1308
1308
  height: {}
1309
1309
  },
1310
1310
  setup(e) {
1311
- let t = e, n = S(null), r = S(null);
1312
- v(() => {
1313
- n.value && (r.value = pe(n.value), a());
1314
- }), _(() => {
1311
+ let t = e, n = L(null), r = L(null);
1312
+ P(() => {
1313
+ n.value && (r.value = be(n.value), i());
1314
+ }), de(() => {
1315
1315
  r.value && r.value.dispose();
1316
- }), N(() => t.option, (e) => {
1317
- e && a();
1316
+ }), G(() => t.option, (e) => {
1317
+ e && i();
1318
1318
  }, { deep: !0 });
1319
- function a() {
1319
+ function i() {
1320
1320
  r.value && (!Array.isArray(t?.option.series) || !t?.option?.series?.length || r.value.setOption(t.option));
1321
1321
  }
1322
- return (e, r) => (b(), i("div", p(e.$attrs, {
1322
+ return (e, r) => (F(), w("div", j(e.$attrs, {
1323
1323
  style: {
1324
1324
  width: "100%",
1325
1325
  height: t.height || "100%",
@@ -1329,7 +1329,7 @@ var Q = {
1329
1329
  ref: n
1330
1330
  }), null, 16));
1331
1331
  }
1332
- }), ct = /* @__PURE__ */ u({
1332
+ }), St = /* @__PURE__ */ k({
1333
1333
  __name: "Pie",
1334
1334
  props: {
1335
1335
  data: {},
@@ -1339,32 +1339,32 @@ var Q = {
1339
1339
  height: {}
1340
1340
  },
1341
1341
  setup(e) {
1342
- let r = e, i = t(() => {
1343
- let e = r?.option || {}, t = Array.isArray(r?.option?.series) ? r.option.series.filter((e) => e && typeof e == "object" && "type" in e && e.type === "pie") : [], n = t[0] || {}, i = e?.legend?.orient;
1342
+ let t = e, n = x(() => {
1343
+ let e = t?.option || {}, n = Array.isArray(t?.option?.series) ? t.option.series.filter((e) => e && typeof e == "object" && "type" in e && e.type === "pie") : [], r = n[0] || {}, i = e?.legend?.orient;
1344
1344
  return {
1345
1345
  title: {
1346
- text: r?.title || "",
1346
+ text: t?.title || "",
1347
1347
  left: "left"
1348
1348
  },
1349
1349
  tooltip: { trigger: "item" },
1350
- legend: e?.legend ?? (r?.horizontal ? {
1350
+ legend: e?.legend ?? (t?.horizontal ? {
1351
1351
  orient: "vertical",
1352
1352
  top: "center",
1353
1353
  right: "10%",
1354
- data: r?.data?.map((e) => e.name),
1354
+ data: t?.data?.map((e) => e.name),
1355
1355
  formatter: (e) => {
1356
- let t = r?.data?.find((t) => t.name === e);
1357
- return `${e} ${t ? t.value : 0}`;
1356
+ let n = t?.data?.find((t) => t.name === e);
1357
+ return `${e} ${n ? n.value : 0}`;
1358
1358
  }
1359
1359
  } : {
1360
1360
  top: "5%",
1361
1361
  left: "center"
1362
1362
  }),
1363
- series: t.length > 0 ? t : [{
1364
- name: n?.name || "xx饼图",
1363
+ series: n.length > 0 ? n : [{
1364
+ name: r?.name || "xx饼图",
1365
1365
  type: "pie",
1366
1366
  radius: ["40%", "70%"],
1367
- center: r?.horizontal || i === "vertical" ? ["30%", "50%"] : ["50%", "50%"],
1367
+ center: t?.horizontal || i === "vertical" ? ["30%", "50%"] : ["50%", "50%"],
1368
1368
  avoidLabelOverlap: !1,
1369
1369
  itemStyle: { borderRadius: 10 },
1370
1370
  label: {
@@ -1377,16 +1377,16 @@ var Q = {
1377
1377
  fontWeight: "bold"
1378
1378
  } },
1379
1379
  labelLine: { show: !1 },
1380
- data: r.data || []
1380
+ data: t.data || []
1381
1381
  }]
1382
1382
  };
1383
1383
  });
1384
- return (t, r) => (b(), n($, p({
1385
- option: i.value,
1384
+ return (t, r) => (F(), S($, j({
1385
+ option: n.value,
1386
1386
  height: e.height
1387
1387
  }, t.$attrs), null, 16, ["option", "height"]));
1388
1388
  }
1389
- }), lt = /* @__PURE__ */ u({
1389
+ }), Ct = /* @__PURE__ */ k({
1390
1390
  __name: "Bar",
1391
1391
  props: {
1392
1392
  data: {},
@@ -1394,11 +1394,11 @@ var Q = {
1394
1394
  title: {}
1395
1395
  },
1396
1396
  setup(e) {
1397
- let r = e, i = t(() => {
1398
- let e = r?.option || {};
1397
+ let t = e, n = x(() => {
1398
+ let e = t?.option || {};
1399
1399
  return {
1400
1400
  title: {
1401
- text: r?.title || "",
1401
+ text: t?.title || "",
1402
1402
  left: "left"
1403
1403
  },
1404
1404
  tooltip: { trigger: "axis" },
@@ -1409,10 +1409,10 @@ var Q = {
1409
1409
  },
1410
1410
  xAxis: {
1411
1411
  type: "category",
1412
- data: r.data.map((e) => e.name)
1412
+ data: t.data.map((e) => e.name)
1413
1413
  },
1414
1414
  yAxis: { type: "value" },
1415
- series: r?.option?.series || r.data?.map((e) => ({
1415
+ series: t?.option?.series || t.data?.map((e) => ({
1416
1416
  name: e?.name || "xx柱状图",
1417
1417
  type: "bar",
1418
1418
  data: e.value,
@@ -1420,23 +1420,52 @@ var Q = {
1420
1420
  }))
1421
1421
  };
1422
1422
  });
1423
- return (e, t) => (b(), n($, { option: i.value }, null, 8, ["option"]));
1423
+ return (e, t) => (F(), S($, { option: n.value }, null, 8, ["option"]));
1424
1424
  }
1425
- }), ut = {
1426
- UiCard: V,
1427
- UiTable: st,
1428
- UiFilter: K,
1429
- UiForm: q,
1430
- UiEditor: J,
1431
- UiTree: Y,
1432
- UiInfiniteScroll: X,
1433
- UiDescriptions: Z,
1434
- UiDialog: Ge,
1435
- UiPie: ct,
1425
+ }), wt = {
1426
+ UiCard: Ce,
1427
+ UiTable: xt,
1428
+ UiFilter: Le,
1429
+ UiForm: Ve,
1430
+ UiEditor: Z,
1431
+ UiTree: Je,
1432
+ UiInfiniteScroll: et,
1433
+ UiDescriptions: rt,
1434
+ UiDialog: at,
1435
+ UiPie: St,
1436
1436
  UiSeries: $,
1437
- UiBar: lt
1438
- }, dt = { install(e) {
1439
- for (let [t, n] of Object.entries(ut)) e.component(t, n);
1437
+ UiBar: Ct
1438
+ }, Tt = [
1439
+ e,
1440
+ t,
1441
+ n,
1442
+ r,
1443
+ i,
1444
+ a,
1445
+ o,
1446
+ s,
1447
+ c,
1448
+ l,
1449
+ u,
1450
+ d,
1451
+ f,
1452
+ p,
1453
+ m,
1454
+ h,
1455
+ g,
1456
+ ee,
1457
+ te,
1458
+ ne,
1459
+ re,
1460
+ ie,
1461
+ ae,
1462
+ v,
1463
+ y,
1464
+ oe,
1465
+ se
1466
+ ], Et = { install(e) {
1467
+ Tt.forEach((t) => e.component(t.name, t));
1468
+ for (let [t, n] of Object.entries(wt)) e.component(t, n);
1440
1469
  } };
1441
1470
  //#endregion
1442
- export { lt as UiBar, V as UiCard, Z as UiDescriptions, Ge as UiDialog, J as UiEditor, K as UiFilter, q as UiForm, X as UiInfiniteScroll, ct as UiPie, $ as UiSeries, st as UiTable, Y as UiTree, dt as default };
1471
+ export { Ct as UiBar, Ce as UiCard, rt as UiDescriptions, at as UiDialog, Z as UiEditor, Le as UiFilter, Ve as UiForm, et as UiInfiniteScroll, St as UiPie, $ as UiSeries, xt as UiTable, Je as UiTree, Et as default };