yc-vep-ui 0.0.8 → 0.0.10

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, ElDatePicker as ne, ElInput as re, ElInputNumber as ie, ElInputTag as ae, ElLink as oe, ElMessageBox as L, ElRadioGroup as se, ElSelect as ce, ElTag as R, ElText as z, ElTimeSelect as le } from "element-plus";
3
- import { AiEditor as ue } from "aieditor";
4
- import { init as de } 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 fe = { class: /* @__PURE__ */ h({ bodyClass: !0 }) }, pe = /* @__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 fe = { class: /* @__PURE__ */ h({ bodyClass: !0 }) }, pe = /* @__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", fe, [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(pe, [["__scopeId", "data-v-ae248017"]]), me = /* @__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
- }), he = /* @__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
- }), ge = /* @__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
- }), _e = /* @__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
- }), ve = /* @__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
- }), ye = /* @__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
- }), be = /* @__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
- }), xe = /* @__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
- }), Se = /* @__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
- }), Ce = /* @__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 fe = { class: /* @__PURE__ */ h({ bodyClass: !0 }) }, pe = /* @__PURE__ */ u
188
188
  });
189
189
  //#endregion
190
190
  //#region src/components/utils/tools.ts
191
- function we(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 Te = { class: "filter-grid" }, Ee = { 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 Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
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,126 +249,138 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
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));
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 y() {
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 S() {
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(() => [a("div", Te, [(b(!0), i(e, null, C(_.value, (e) => (b(), i("div", {
290
- key: e.prop,
291
- class: "filter-field",
292
- style: g({ gridColumn: `span ${e.span || 24 / s.column}` })
293
- }, [l(d, {
294
- label: e.label,
295
- "label-width": j(we)(e?.labelWidth || s.labelWidth),
296
- "value-width": j(U)(e?.valueWidth || s.valueWidth)
297
- }, {
298
- default: P(() => [e.render ? (b(), n(D(j(W)(e, h).component), p({
299
- key: 0,
300
- modelValue: h[e.prop],
301
- "onUpdate:modelValue": (t) => h[e.prop] = t
302
- }, { ref_for: !0 }, j(W)(e, h).props, {
303
- clearable: !0,
304
- style: { width: j(U)(e?.valueWidth || s.valueWidth) }
305
- }), null, 16, [
306
- "modelValue",
307
- "onUpdate:modelValue",
308
- "style"
309
- ])) : (b(), n(u, {
310
- key: 1,
311
- modelValue: h[e.prop],
312
- "onUpdate:modelValue": (t) => h[e.prop] = t,
313
- placeholder: "请输入",
314
- clearable: !0,
315
- style: g({ width: j(U)(e?.valueWidth || s.valueWidth) })
316
- }, null, 8, [
317
- "modelValue",
318
- "onUpdate:modelValue",
319
- "style"
320
- ]))]),
321
- _: 2
322
- }, 1032, [
323
- "label",
324
- "label-width",
325
- "value-width"
326
- ])], 4))), 128)), a("div", {
327
- class: "filter-field filter-actions",
328
- style: g({ gridColumn: `span ${24 / s.column}` })
329
- }, [a("div", Ee, [
330
- w(t.$slots, "left", { form: h }, void 0, !0),
331
- s.fields.length >= 2 * s.column ? (b(), n(f, {
332
- key: 0,
333
- text: "",
334
- icon: m.expand ? j(he) : j(me),
335
- onClick: o[0] ||= (e) => m.expand = !m.expand
336
- }, {
337
- default: P(() => [c(k(m.expand ? "收起" : "展开"), 1)]),
338
- _: 1
339
- }, 8, ["icon"])) : r("", !0),
340
- l(f, {
341
- icon: j(Ce),
342
- type: "primary",
343
- onClick: y
344
- }, {
345
- default: P(() => [...o[1] ||= [c("查询", -1)]]),
346
- _: 1
347
- }, 8, ["icon"]),
348
- l(f, {
349
- icon: j(H),
350
- onClick: S
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
+ }, {
297
+ default: K(() => [t.render ? (F(), S(V(W(Y)(t, a).component), j({
298
+ key: 0,
299
+ modelValue: a[t.prop],
300
+ "onUpdate:modelValue": (e) => a[t.prop] = e
301
+ }, { ref_for: !0 }, W(Y)(t, a).props, {
302
+ clearable: !0,
303
+ style: { width: W(J)(t?.valueWidth || e.valueWidth) }
304
+ }), null, 16, [
305
+ "modelValue",
306
+ "onUpdate:modelValue",
307
+ "style"
308
+ ])) : (F(), S(r, {
309
+ key: 1,
310
+ modelValue: a[t.prop],
311
+ "onUpdate:modelValue": (e) => a[t.prop] = e,
312
+ placeholder: "请输入",
313
+ clearable: !0,
314
+ style: N({ width: W(J)(t?.valueWidth || e.valueWidth) })
315
+ }, null, 8, [
316
+ "modelValue",
317
+ "onUpdate:modelValue",
318
+ "style"
319
+ ]))]),
320
+ _: 2
321
+ }, 1032, [
322
+ "label",
323
+ "label-width",
324
+ "value-width"
325
+ ]))]),
326
+ _: 2
327
+ }, 1032, ["span"]))), 256)), O(d, {
328
+ span: 24 / e.column,
329
+ offset: s.value
351
330
  }, {
352
- default: P(() => [...o[2] ||= [c("重置", -1)]]),
353
- _: 1
354
- }, 8, ["icon"]),
355
- w(t.$slots, "handle", { form: h }, void 0, !0),
356
- w(t.$slots, "right", { form: h }, void 0, !0)
357
- ])], 4)])]),
331
+ default: K(() => [O(u, {
332
+ label: "",
333
+ "label-width": "30px"
334
+ }, {
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
+ key: 0,
339
+ text: "",
340
+ icon: i.expand ? W(Te) : W(we),
341
+ onClick: n[0] ||= (e) => i.expand = !i.expand
342
+ }, {
343
+ default: K(() => [D(H(i.expand ? "收起" : "展开"), 1)]),
344
+ _: 1
345
+ }, 8, ["icon"])) : C("", !0),
346
+ O(f, {
347
+ icon: W(Pe),
348
+ type: "primary",
349
+ onClick: c
350
+ }, {
351
+ default: K(() => [...n[1] ||= [D("查询", -1)]]),
352
+ _: 1
353
+ }, 8, ["icon"]),
354
+ O(f, {
355
+ icon: W(Ne),
356
+ onClick: l
357
+ }, {
358
+ default: K(() => [...n[2] ||= [D("重置", -1)]]),
359
+ _: 1
360
+ }, 8, ["icon"]),
361
+ z(t.$slots, "handle", { form: a }, void 0, !0),
362
+ z(t.$slots, "right", { form: a }, void 0, !0)
363
+ ])]),
364
+ _: 3
365
+ })]),
366
+ _: 3
367
+ }, 8, ["span", "offset"])]),
368
+ _: 3
369
+ })]),
358
370
  _: 3
359
371
  }, 16, ["model", "size"]);
360
372
  };
361
373
  }
362
- }), [["__scopeId", "data-v-1fc85c76"]]), De = {
374
+ }), [["__scopeId", "data-v-45f0642b"]]), Re = {
363
375
  key: 0,
364
376
  style: { display: "inline-block" }
365
- }, Oe = {
377
+ }, ze = {
366
378
  key: 0,
367
379
  style: { display: "inline-block" }
368
- }, ke = {
380
+ }, Be = {
369
381
  key: 0,
370
382
  class: "ui-form-buttons"
371
- }, q = /* @__PURE__ */ B(/* @__PURE__ */ u({
383
+ }, Ve = /* @__PURE__ */ q(/* @__PURE__ */ k({
372
384
  __name: "index",
373
385
  props: {
374
386
  fields: {},
@@ -377,7 +389,7 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
377
389
  labelWidth: { default: "100px" },
378
390
  labelPosition: { default: "top" },
379
391
  omitFields: { default: () => [] },
380
- rules: { default: () => x({}) },
392
+ rules: { default: () => I({}) },
381
393
  required: { type: Boolean },
382
394
  column: { default: 24 },
383
395
  defaultValues: {},
@@ -386,9 +398,9 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
386
398
  size: {}
387
399
  },
388
400
  emits: ["submit", "reset"],
389
- setup(a, { expose: s, emit: u }) {
390
- ee((e) => ({ ec46e5ec: e.column / 2 }));
391
- 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, [
392
404
  "fields",
393
405
  "labelWidth",
394
406
  "valueWidth",
@@ -397,121 +409,121 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
397
409
  "labelPosition",
398
410
  "valueModel",
399
411
  "column"
400
- ]), m = S(0), _ = S(), v = x({}), y = t(() => {
401
- let e = A(v);
402
- return a.fields.forEach((t) => {
403
- let n = t.prop ? e?.[t.prop] : void 0, r = G(t, v)?.props?.defaultValue;
404
- v[t.prop] = n ?? r ?? void 0, t?.slots && t?.slots?.length > 0 && t.slots.forEach((t) => {
405
- let n = t.prop ? e?.[t.prop] : void 0, r = G(t, v)?.props?.defaultValue;
406
- 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;
407
419
  });
408
- }), a.fields.filter((e) => typeof e.prop == "string");
409
- }), E = t(() => {
410
- if (a.rules && Object.keys(a.rules).length) return a.rules;
411
- let e = {};
412
- return y.value.forEach((t) => {
413
- 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] = [{
414
426
  required: !0,
415
- message: "请输入" + t.label,
427
+ message: "请输入" + e.label,
416
428
  trigger: "change"
417
429
  }]);
418
- }), e;
430
+ }), t;
419
431
  });
420
- te(() => {
421
- Object.assign(v, f?.form);
432
+ _e(() => {
433
+ Object.assign(s, i?.form);
422
434
  });
423
- async function O(e) {
435
+ async function u(e) {
424
436
  let t = !0;
425
437
  if (await e.validate((e) => {
426
438
  t = e;
427
439
  }), !t) return;
428
440
  let n = {};
429
- Object.keys(v).forEach((e) => {
430
- v[e] !== void 0 && (n[e] = A(v[e]));
431
- }), d("submit", n);
441
+ Object.keys(s).forEach((e) => {
442
+ s[e] !== void 0 && (n[e] = U(s[e]));
443
+ }), r("submit", n);
432
444
  }
433
- function M() {
434
- _ && _.value?.clearValidate();
445
+ function d() {
446
+ o && o.value?.clearValidate();
435
447
  }
436
- function N() {
437
- Object.keys(v).forEach((e) => {
438
- a.omitFields.includes(e) || (v[e] = void 0);
439
- }), 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);
440
452
  }
441
- function F() {
442
- return v;
453
+ function p() {
454
+ return s;
443
455
  }
444
- function I(e) {
456
+ function m(e) {
445
457
  Object.keys(e).forEach((t) => {
446
- v[t] = e[t];
458
+ s[t] = e[t];
447
459
  });
448
460
  }
449
- async function ne() {
461
+ async function h() {
450
462
  return new Promise((e) => {
451
- _.value?.validate((t, n) => e(n));
463
+ o.value?.validate((t, n) => e(n));
452
464
  });
453
465
  }
454
- return s({
455
- getValues: F,
456
- setValues: I,
457
- clearValidate: M,
458
- onSubmit: O,
459
- validate: ne
460
- }), (t, o) => {
461
- let s = T("el-input"), u = T("el-form-item"), d = T("el-form"), f = T("el-button");
462
- 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({
463
475
  ref_key: "uiFormRef",
464
- ref: _,
465
- model: v
476
+ ref: o,
477
+ model: s
466
478
  }, t.$attrs, {
467
- rules: E.value,
468
- inline: a.labelPosition !== "top",
469
- "label-position": a.labelPosition,
479
+ rules: l.value,
480
+ inline: e.labelPosition !== "top",
481
+ "label-position": e.labelPosition,
470
482
  class: {
471
483
  "ui-form": !0,
472
- horizontal: a.labelPosition !== "top"
484
+ horizontal: e.labelPosition !== "top"
473
485
  },
474
486
  "validate-on-rule-change": !1
475
487
  }), {
476
- default: P(() => [(b(!0), i(e, null, C(y.value, (r) => (b(), n(u, {
477
- key: r.prop,
478
- label: r.label,
479
- "label-width": a.labelWidth,
480
- "value-width": a.valueWidth,
481
- prop: r.prop,
482
- style: g({
483
- width: `${r?.width ? r?.width + "px" : "100%"}`,
484
- 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}`
485
497
  })
486
498
  }, {
487
- 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({
488
500
  key: 1,
489
- modelValue: v[r.prop],
490
- "onUpdate:modelValue": (e) => v[r.prop] = e
491
- }, { 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, {
492
504
  clearable: !0,
493
- key: `${r.prop}-${m.value}`,
505
+ key: `${n.prop}-${a.value}`,
494
506
  style: { display: "inline-block" },
495
- class: { underline: a.valueModel === "underline" }
507
+ class: { underline: e.valueModel === "underline" }
496
508
  }), null, 16, [
497
509
  "modelValue",
498
510
  "onUpdate:modelValue",
499
511
  "class"
500
- ])) : (b(), i("span", De, 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({
501
513
  key: 1,
502
- modelValue: v[e.prop],
503
- "onUpdate:modelValue": (t) => v[e.prop] = t,
504
- "default-value": e.defaultValue,
505
- placeholder: e.placeholder
506
- }, { 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, {
507
519
  style: {
508
520
  display: "inline-block",
509
521
  marginLeft: "10px",
510
- width: `${e.width ? e.width + "px" : "100%"}`
522
+ width: `${n.width ? n.width + "px" : "100%"}`
511
523
  },
512
- class: { underline: a.valueModel === "underline" },
524
+ class: { underline: e.valueModel === "underline" },
513
525
  clearable: !0,
514
- key: `${e.prop}-${m.value}`
526
+ key: `${n.prop}-${a.value}`
515
527
  }), null, 16, [
516
528
  "modelValue",
517
529
  "onUpdate:modelValue",
@@ -519,13 +531,13 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
519
531
  "placeholder",
520
532
  "style",
521
533
  "class"
522
- ])) : (b(), i("span", Oe, 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, {
523
535
  key: 1,
524
- modelValue: v[r.prop],
525
- "onUpdate:modelValue": (e) => v[r.prop] = e,
536
+ modelValue: s[n.prop],
537
+ "onUpdate:modelValue": (e) => s[n.prop] = e,
526
538
  placeholder: "请输入",
527
539
  clearable: !0,
528
- class: h({ underline: a.valueModel === "underline" })
540
+ class: M({ underline: e.valueModel === "underline" })
529
541
  }, null, 8, [
530
542
  "modelValue",
531
543
  "onUpdate:modelValue",
@@ -546,31 +558,31 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
546
558
  "inline",
547
559
  "label-position",
548
560
  "class"
549
- ]), t.$attrs?.hideHandle ? r("", !0) : (b(), i("div", ke, [
550
- w(t.$slots, "handle", { form: v }, void 0, !0),
551
- l(f, {
552
- icon: j(H),
553
- 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(),
554
566
  size: t.$props.size
555
567
  }, {
556
- default: P(() => [...o[2] ||= [c("重置", -1)]]),
568
+ default: K(() => [...n[2] ||= [D("重置", -1)]]),
557
569
  _: 1
558
570
  }, 8, ["icon", "size"]),
559
- l(f, {
560
- icon: j(Se),
571
+ O(p, {
572
+ icon: W(Me),
561
573
  type: "primary",
562
- onClick: o[1] ||= (e) => _.value && O(_.value),
574
+ onClick: n[1] ||= (e) => o.value && u(o.value),
563
575
  size: t.$props.size
564
576
  }, {
565
- default: P(() => [...o[3] ||= [c("提交", -1)]]),
577
+ default: K(() => [...n[3] ||= [D("提交", -1)]]),
566
578
  _: 1
567
579
  }, 8, ["icon", "size"])
568
580
  ]))], 64);
569
581
  };
570
582
  }
571
- }), [["__scopeId", "data-v-f8f2a1f5"]]), Ae = ["disabled"], J = /* @__PURE__ */ u({
583
+ }), [["__scopeId", "data-v-f8f2a1f5"]]), He = ["disabled"], Z = /* @__PURE__ */ k({
572
584
  __name: "index",
573
- props: /* @__PURE__ */ f({
585
+ props: /* @__PURE__ */ le({
574
586
  defaultValue: { default: "" },
575
587
  disabled: {
576
588
  type: Boolean,
@@ -583,32 +595,32 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
583
595
  },
584
596
  modelModifiers: {}
585
597
  }),
586
- emits: /* @__PURE__ */ f(["change"], ["update:modelValue"]),
598
+ emits: /* @__PURE__ */ le(["change"], ["update:modelValue"]),
587
599
  setup(e, { emit: t }) {
588
- let n = S(), r = M(e, "modelValue"), a = S(r.value || e.defaultValue || ""), o = null, s = t;
589
- return v(() => {
590
- o = new ue({
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({
591
603
  element: n.value,
592
604
  placeholder: "点击输入内容...",
593
605
  content: r.value || e.defaultValue || "",
594
606
  toolbarExcludeKeys: ["ai"],
595
607
  onChange: (e) => {
596
608
  let t = e.getHtml();
597
- r.value = t, a.value = t, s("change", t);
609
+ r.value = t, i.value = t, o("change", t);
598
610
  }
599
- }), o.setEditable(!e.disabled);
600
- }), N(r, (e) => {
601
- o && e !== o.getHtml() && o.setContent(e);
602
- }), y(() => {
603
- o && o.destroy();
604
- }), (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", {
605
617
  ref_key: "editorRef",
606
618
  ref: n,
607
619
  style: { height: "500px" },
608
620
  disabled: e.disabled
609
- }, null, 8, Ae));
621
+ }, null, 8, He));
610
622
  }
611
- }), je = { class: "ui-tree-wrapper" }, Me = {
623
+ }), Ue = { class: "ui-tree-wrapper" }, We = {
612
624
  key: 0,
613
625
  style: {
614
626
  display: "flex",
@@ -617,14 +629,14 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
617
629
  "align-items": "center",
618
630
  gap: "10px"
619
631
  }
620
- }, Ne = {
632
+ }, Ge = {
621
633
  key: 0,
622
634
  class: "custom-tree-node"
623
- }, Pe = { class: "node-label" }, Fe = { style: {
635
+ }, Ke = { class: "node-label" }, qe = { style: {
624
636
  color: "#ef4444",
625
637
  display: "flex",
626
638
  "align-items": "center"
627
- } }, Y = /* @__PURE__ */ B(/* @__PURE__ */ u({
639
+ } }, Je = /* @__PURE__ */ q(/* @__PURE__ */ k({
628
640
  __name: "index",
629
641
  props: {
630
642
  id: {},
@@ -641,35 +653,35 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
641
653
  },
642
654
  emits: ["change"],
643
655
  setup(e, { emit: t }) {
644
- let s = o(e, [
656
+ let n = E(e, [
645
657
  "filterable",
646
658
  "placeholder",
647
659
  "data",
648
660
  "props"
649
- ]), u = S(""), d = S(), f = S(null);
650
- N(u, (t) => {
651
- 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);
652
664
  });
653
- function m(t, n) {
665
+ function o(t, n) {
654
666
  return t ? n?.[e.props?.label || "label"]?.includes(t) ?? !1 : !0;
655
667
  }
656
- function h(e, t) {
657
- e?.stopPropagation(), d.value = t.id;
668
+ function s(e, t) {
669
+ e?.stopPropagation(), i.value = t.id;
658
670
  }
659
- function g() {
660
- L.prompt("请输入新的名称", "添加节点", {
671
+ function c() {
672
+ _.prompt("请输入新的名称", "添加节点", {
661
673
  confirmButtonText: "确定",
662
674
  cancelButtonText: "取消",
663
675
  callback: async (e) => {
664
676
  if (e.action === "confirm") {
665
- if (!s?.id) return;
677
+ if (!n?.id) return;
666
678
  console.log("添加 =》》", e?.value);
667
679
  }
668
680
  }
669
681
  });
670
682
  }
671
- function _(e) {
672
- L.prompt("请输入新的名称", "重命名", {
683
+ function l(e) {
684
+ _.prompt("请输入新的名称", "重命名", {
673
685
  confirmButtonText: "确定",
674
686
  cancelButtonText: "取消",
675
687
  inputValue: e.label
@@ -677,18 +689,18 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
677
689
  console.log("修改节点 =》》", e);
678
690
  });
679
691
  }
680
- async function v(e) {
692
+ async function u(e) {
681
693
  e.id && console.log("删除节点 =》》", e.id);
682
694
  }
683
- return (t, o) => {
684
- 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");
685
- return b(), i("div", je, [
686
- e.filterable ? (b(), i("div", Me, [l(d, {
687
- modelValue: u.value,
688
- "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,
689
701
  placeholder: e.placeholder ?? "请输入",
690
702
  clearable: ""
691
- }, null, 8, ["modelValue", "placeholder"]), s?.hidePlusHandle ? r("", !0) : (b(), n(x, {
703
+ }, null, 8, ["modelValue", "placeholder"]), n?.hidePlusHandle ? C("", !0) : (F(), S(p, {
692
704
  key: 0,
693
705
  style: {
694
706
  margin: "0px",
@@ -696,89 +708,89 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
696
708
  },
697
709
  link: ""
698
710
  }, {
699
- default: P(() => [l(y, { size: 22 }, {
700
- default: P(() => [l(j(ge), { onClick: o[1] ||= (e) => g() })]),
711
+ default: K(() => [O(f, { size: 22 }, {
712
+ default: K(() => [O(W(Ee), { onClick: i[1] ||= (e) => c() })]),
701
713
  _: 1
702
714
  })]),
703
715
  _: 1
704
- }))])) : r("", !0),
705
- w(t.$slots, "handle", { style: "margin-top: 8px" }, void 0, !0),
706
- l(D, p({
716
+ }))])) : C("", !0),
717
+ z(t.$slots, "handle", { style: "margin-top: 8px" }, void 0, !0),
718
+ O(_, j({
707
719
  ref_key: "treeRef",
708
- ref: f,
720
+ ref: a,
709
721
  style: { "margin-top": "8px" }
710
722
  }, {
711
723
  ...t.$props,
712
724
  ...t.$attrs
713
725
  }, {
714
- "node-key": s?.nodeKey || "id",
726
+ "node-key": n?.nodeKey || "id",
715
727
  "highlight-current": !0,
716
- "filter-method": m
728
+ "filter-method": o
717
729
  }), {
718
- default: P((u) => [u?.data ? (b(), i("div", Ne, [a("div", Pe, [u.data?.children?.length ? (b(), n(y, { key: 0 }, {
719
- default: P(() => [l(j(be))]),
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))]),
720
732
  _: 1
721
- })) : 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, {
722
734
  key: 0,
723
735
  trigger: "click"
724
736
  }, {
725
- dropdown: P(() => [l(C, null, {
726
- default: P(() => [
727
- s?.hideNodeAdd ? r("", !0) : (b(), n(S, {
737
+ dropdown: K(() => [O(h, null, {
738
+ default: K(() => [
739
+ n?.hideNodeAdd ? C("", !0) : (F(), S(m, {
728
740
  key: 0,
729
- onClick: o[2] ||= (e) => g()
741
+ onClick: i[2] ||= (e) => c()
730
742
  }, {
731
- default: P(() => [l(y, null, {
732
- default: P(() => [l(j(ve))]),
743
+ default: K(() => [O(f, null, {
744
+ default: K(() => [O(W(Oe))]),
733
745
  _: 1
734
- }), o[3] ||= c("添加 ", -1)]),
746
+ }), i[3] ||= D("添加 ", -1)]),
735
747
  _: 1
736
748
  })),
737
- s?.hideNodeEdit ? r("", !0) : (b(), n(S, {
749
+ n?.hideNodeEdit ? C("", !0) : (F(), S(m, {
738
750
  key: 1,
739
- onClick: (e) => _(u.data)
751
+ onClick: (e) => l(r.data)
740
752
  }, {
741
- default: P(() => [l(y, null, {
742
- default: P(() => [l(j(ye))]),
753
+ default: K(() => [O(f, null, {
754
+ default: K(() => [O(W(ke))]),
743
755
  _: 1
744
- }), o[4] ||= c("编辑 ", -1)]),
756
+ }), i[4] ||= D("编辑 ", -1)]),
745
757
  _: 1
746
758
  }, 8, ["onClick"])),
747
- s?.hideNodeDel ? r("", !0) : (b(), n(S, {
759
+ n?.hideNodeDel ? C("", !0) : (F(), S(m, {
748
760
  key: 2,
749
- onClick: (e) => v(u.data)
761
+ onClick: (e) => u(r.data)
750
762
  }, {
751
- default: P(() => [a("span", Fe, [l(y, null, {
752
- default: P(() => [l(j(_e))]),
763
+ default: K(() => [T("span", qe, [O(f, null, {
764
+ default: K(() => [O(W(De))]),
753
765
  _: 1
754
- }), o[5] ||= c("删除 ", -1)])]),
766
+ }), i[5] ||= D("删除 ", -1)])]),
755
767
  _: 1
756
768
  }, 8, ["onClick"])),
757
- w(t.$slots, "node-handle", { data: u.data }, void 0, !0)
769
+ z(t.$slots, "node-handle", { data: r.data }, void 0, !0)
758
770
  ]),
759
771
  _: 2
760
772
  }, 1024)]),
761
- default: P(() => [l(y, { onClick: (e) => h(e, u.data) }, {
762
- default: P(() => [l(j(xe))]),
773
+ default: K(() => [O(f, { onClick: (e) => s(e, r.data) }, {
774
+ default: K(() => [O(W(je))]),
763
775
  _: 1
764
776
  }, 8, ["onClick"])]),
765
777
  _: 2
766
- }, 1024))])) : r("", !0)]),
778
+ }, 1024))])) : C("", !0)]),
767
779
  _: 3
768
780
  }, 16, ["node-key"])
769
781
  ]);
770
782
  };
771
783
  }
772
- }), [["__scopeId", "data-v-4495ddac"]]), Ie = { style: { height: "100%" } }, Le = { style: {
784
+ }), [["__scopeId", "data-v-4495ddac"]]), Ye = { style: { height: "100%" } }, Xe = { style: {
773
785
  display: "flex",
774
786
  "flex-direction": "row",
775
787
  "justify-content": "space-between",
776
788
  "align-items": "center",
777
789
  gap: "10px"
778
- } }, Re = { style: { margin: "10px 0px" } }, ze = ["onClick"], Be = { key: 0 }, X = /* @__PURE__ */ B(/* @__PURE__ */ u({
790
+ } }, Ze = { style: { margin: "10px 0px" } }, Qe = ["onClick"], $e = { key: 0 }, et = /* @__PURE__ */ q(/* @__PURE__ */ k({
779
791
  __name: "index",
780
792
  props: {
781
- loading: { default: () => S(!1) },
793
+ loading: { default: () => L(!1) },
782
794
  data: {},
783
795
  placeholder: {},
784
796
  props: {},
@@ -786,47 +798,47 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
786
798
  filterable: { type: Boolean }
787
799
  },
788
800
  emits: ["node-click"],
789
- setup(o, { emit: s }) {
790
- 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);
791
- N(() => [u.value, o.data?.[0]], (e) => {
792
- !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]);
793
805
  }, { immediate: !0 });
794
- function f(e) {
795
- u.value = e, c("node-click", e);
806
+ function o(e) {
807
+ i.value = e, n("node-click", e);
796
808
  }
797
- return (t, s) => {
798
- let c = T("el-input");
799
- return b(), i("div", Ie, [
800
- a("div", Le, [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, {
801
813
  key: 0,
802
- modelValue: l.value,
803
- "onUpdate:modelValue": s[0] ||= (e) => l.value = e,
804
- placeholder: o.placeholder ?? "请输入"
805
- }, null, 8, ["modelValue", "placeholder"])) : r("", !0), w(t.$slots, "plus", {}, void 0, !0)]),
806
- a("div", Re, [w(t.$slots, "handle", {}, void 0, !0)]),
807
- 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({
808
820
  class: "infinite-list",
809
821
  "infinite-scroll-immediate": !1
810
- }, t.$attrs), [(b(!0), i(e, null, C(d.value, (e, n) => (b(), i("li", {
811
- key: "infinite-list-" + n,
812
- 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({
813
825
  "infinite-list-item": !0,
814
- active: e === u.value
826
+ active: n === i.value
815
827
  }),
816
- onClick: (t) => f(e)
817
- }, [a("span", null, k(e[o.props?.label || "label"]), 1), w(t.$slots, "itemHandle", { data: e }, void 0, !0)], 10, ze))), 128))], 16)), [[j(o.vInfiniteScroll), o.vInfiniteScroll]]),
818
- o.loading.value ? (b(), i("p", Be, "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)
819
831
  ]);
820
832
  };
821
833
  }
822
- }), [["__scopeId", "data-v-2180fa82"]]), Ve = {
834
+ }), [["__scopeId", "data-v-2180fa82"]]), tt = {
823
835
  key: 0,
824
836
  style: {
825
837
  padding: "10px 0px",
826
838
  "margin-bottom": "10px",
827
839
  "border-bottom": "1px solid #e5e5e5"
828
840
  }
829
- }, He = { key: 1 }, Z = /* @__PURE__ */ B(/* @__PURE__ */ u({
841
+ }, nt = { key: 1 }, rt = /* @__PURE__ */ q(/* @__PURE__ */ k({
830
842
  __name: "index",
831
843
  props: {
832
844
  data: {},
@@ -839,33 +851,33 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
839
851
  extra: {},
840
852
  labelWidth: {}
841
853
  },
842
- setup(t) {
843
- let a = o(t, [
854
+ setup(e) {
855
+ let t = E(e, [
844
856
  "title",
845
857
  "column",
846
858
  "fields",
847
859
  "data"
848
860
  ]);
849
- return (o, s) => {
850
- let c = T("el-descriptions-item"), u = T("el-descriptions");
851
- return b(), i(e, null, [
852
- t.title ? (b(), i("h4", Ve, k(t.title), 1)) : r("", !0),
853
- w(o.$slots, "title", {}, void 0, !0),
854
- l(u, p({ column: t.column }, a, { class: "ui-descriptions" }), {
855
- default: P(() => [(b(!0), i(e, null, C(t.fields, (e) => (b(), n(c, {
856
- key: e.prop,
857
- label: e.label,
858
- 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
859
871
  }, {
860
- 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({
861
873
  key: 0,
862
- modelValue: t.data[e.prop],
863
- "onUpdate:modelValue": (n) => t.data[e.prop] = n
864
- }, { 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, {
865
877
  clearable: !0,
866
- key: e.prop,
878
+ key: t.prop,
867
879
  style: { display: "inline-block" }
868
- }), null, 16, ["modelValue", "onUpdate:modelValue"])) : (b(), i("span", He, k(t.data[e.prop] || "-"), 1))]),
880
+ }), null, 16, ["modelValue", "onUpdate:modelValue"])) : (F(), w("span", nt, H(e.data[t.prop] || "-"), 1))]),
869
881
  _: 2
870
882
  }, 1032, ["label", "span"]))), 128))]),
871
883
  _: 1
@@ -873,10 +885,10 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
873
885
  ], 64);
874
886
  };
875
887
  }
876
- }), [["__scopeId", "data-v-f02c30f9"]]), Ue = {
888
+ }), [["__scopeId", "data-v-f02c30f9"]]), it = {
877
889
  key: 0,
878
890
  class: "dialog-footer"
879
- }, We = /* @__PURE__ */ B(/* @__PURE__ */ u({
891
+ }, at = /* @__PURE__ */ q(/* @__PURE__ */ k({
880
892
  __name: "index",
881
893
  props: {
882
894
  visible: { type: Boolean },
@@ -891,36 +903,36 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
891
903
  "submit"
892
904
  ],
893
905
  setup(e, { emit: t }) {
894
- let a = t, o = e, s = S();
895
- function u() {
896
- a("close"), a("update:visible", !1);
906
+ let n = t, r = e, i = L();
907
+ function a() {
908
+ n("close"), n("update:visible", !1);
897
909
  }
898
- function d() {
899
- a("submit", A(s?.value || {})), a("update:visible", !1);
910
+ function o() {
911
+ n("submit", U(i?.value || {})), n("update:visible", !1);
900
912
  }
901
913
  return (e, t) => {
902
- let a = T("el-button"), f = T("el-dialog");
903
- return b(), n(f, p(e.$attrs, {
904
- "model-value": o.visible,
905
- "show-close": o.disabled,
906
- 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,
907
919
  "destroy-on-close": "",
908
920
  "lock-scroll": !1,
909
921
  "close-on-click-modal": !1,
910
- "onUpdate:modelValue": t[0] ||= (e) => !e && u(),
911
- onClose: u
922
+ "onUpdate:modelValue": t[0] ||= (e) => !e && a(),
923
+ onClose: a
912
924
  }), {
913
- default: P(() => [(b(), n(D(o.component), p({
925
+ default: K(() => [(F(), S(V(r.component), j({
914
926
  ref_key: "slotRef",
915
- ref: s
916
- }, o.componentProps), null, 16)), o.disabled ? r("", !0) : (b(), i("div", Ue, [l(a, { onClick: u }, {
917
- 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)]]),
918
930
  _: 1
919
- }), l(a, {
931
+ }), O(n, {
920
932
  type: "primary",
921
- onClick: d
933
+ onClick: o
922
934
  }, {
923
- default: P(() => [...t[2] ||= [c("确定", -1)]]),
935
+ default: K(() => [...t[2] ||= [D("确定", -1)]]),
924
936
  _: 1
925
937
  })]))]),
926
938
  _: 1
@@ -934,63 +946,63 @@ var Te = { class: "filter-grid" }, Ee = { class: "filter-buttons" }, K = /* @__P
934
946
  }), [["__scopeId", "data-v-fde928bf"]]);
935
947
  //#endregion
936
948
  //#region src/components/utils/render.ts
937
- function Ge(e) {
938
- return d("template", { style: {
949
+ function ot(t) {
950
+ return A("template", { style: {
939
951
  display: "flex",
940
952
  flexDirection: "row",
941
953
  flexWrap: "wrap"
942
- } }, (Array.isArray(e) ? e : [e]).map((e) => {
943
- let { text: t, ...n } = e;
944
- return d(I, {
945
- ...n,
954
+ } }, (Array.isArray(t) ? t : [t]).map((t) => {
955
+ let { text: n, ...r } = t;
956
+ return A(e, {
957
+ ...r,
946
958
  link: !0,
947
959
  size: "small",
948
- type: e.type || "default"
949
- }, () => t);
960
+ type: t.type || "default"
961
+ }, () => n);
950
962
  }));
951
963
  }
952
- function Ke(e) {
953
- return Array.isArray(e) ? d("div", { style: {
964
+ function st(e) {
965
+ return Array.isArray(e) ? A("div", { style: {
954
966
  display: "flex",
955
967
  gap: "8px",
956
968
  flexDirection: "row",
957
969
  flexWrap: "wrap"
958
- } }, e.map((e) => d(oe, {
970
+ } }, e.map((e) => A(g, {
959
971
  ...e,
960
972
  type: e.type || "primary"
961
- }, d(z, {
973
+ }, A(y, {
962
974
  lineClamp: e?.lineClamp,
963
975
  type: e.type || "primary"
964
- }, () => e.prop)))) : d(oe, {
976
+ }, () => e.prop)))) : A(g, {
965
977
  ...e,
966
978
  type: e.type || "primary"
967
- }, d(z, {
979
+ }, A(y, {
968
980
  lineClamp: e?.lineClamp,
969
981
  type: e.type || "primary"
970
982
  }, () => e.prop));
971
983
  }
972
- function qe(e) {
973
- return d("div", { style: {
984
+ function ct(e) {
985
+ return A("div", { style: {
974
986
  display: "flex",
975
987
  gap: "4px",
976
988
  flexDirection: "row",
977
989
  flexWrap: "wrap"
978
- } }, (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)));
979
991
  }
980
- function Je(e) {
981
- return d(R, { ...e });
992
+ function lt(e) {
993
+ return A(v, { ...e });
982
994
  }
983
- function Ye(e) {
984
- return d(ce, {
995
+ function ut(e) {
996
+ return A(re, {
985
997
  style: { minWidth: "160px" },
986
998
  ...e,
987
999
  placeholder: "请选择",
988
1000
  filterable: !0
989
1001
  });
990
1002
  }
991
- function Xe(e) {
1003
+ function dt(e) {
992
1004
  let t = e?.type === "datetime" ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
993
- return d(ne, {
1005
+ return A(r, {
994
1006
  format: t,
995
1007
  valueFormat: t,
996
1008
  startPlaceholder: "开始时间",
@@ -1000,9 +1012,9 @@ function Xe(e) {
1000
1012
  "onUpdate:modelValue": (t) => e?.onChange?.(t)
1001
1013
  });
1002
1014
  }
1003
- function Ze(e) {
1015
+ function ft(e) {
1004
1016
  let { start: t = "00:00", end: n = "23:30", ...r } = e;
1005
- return d(le, {
1017
+ return A(oe, {
1006
1018
  start: t,
1007
1019
  end: n,
1008
1020
  ...r,
@@ -1010,15 +1022,15 @@ function Ze(e) {
1010
1022
  filterable: !0
1011
1023
  });
1012
1024
  }
1013
- function Qe(e) {
1014
- return d(re, {
1025
+ function pt(e) {
1026
+ return A(p, {
1015
1027
  ...e,
1016
1028
  placeholder: "请输入"
1017
1029
  });
1018
1030
  }
1019
- function $e(e) {
1031
+ function mt(e) {
1020
1032
  let { align: t = "left", controlsPosition: n = "right", ...r } = e;
1021
- return d(ie, {
1033
+ return A(m, {
1022
1034
  align: t,
1023
1035
  style: {
1024
1036
  ...e?.style || {},
@@ -1029,47 +1041,47 @@ function $e(e) {
1029
1041
  ...r
1030
1042
  });
1031
1043
  }
1032
- function et(e) {
1044
+ function ht(e) {
1033
1045
  let { rows: t = 1, ...n } = e;
1034
- return d(re, {
1046
+ return A(p, {
1035
1047
  placeholder: "请输入",
1036
1048
  rows: t,
1037
1049
  ...n,
1038
1050
  type: "textarea"
1039
1051
  });
1040
1052
  }
1041
- function tt(e) {
1042
- return d(ae, {
1053
+ function gt(e) {
1054
+ return A(h, {
1043
1055
  placeholder: "请输入",
1044
1056
  ...e,
1045
1057
  clearable: !1
1046
1058
  });
1047
1059
  }
1048
- function nt(e) {
1049
- return d(J, e);
1060
+ function _t(e) {
1061
+ return A(Z, e);
1050
1062
  }
1051
- function rt(e) {
1052
- return d(se, e);
1063
+ function vt(e) {
1064
+ return A(te, e);
1053
1065
  }
1054
- function it(e) {
1055
- return d(z, e, () => e.prop);
1066
+ function yt(e) {
1067
+ return A(y, e, () => e.prop);
1056
1068
  }
1057
1069
  var Q = {
1058
- button: Ge,
1059
- link: Ke,
1060
- tag: qe,
1061
- switch: Je,
1062
- select: Ye,
1063
- datePicker: Xe,
1064
- timeSelect: Ze,
1065
- input: Qe,
1066
- inputNumber: $e,
1067
- textarea: et,
1068
- inputTag: tt,
1069
- editor: nt,
1070
- radio: rt,
1071
- text: it
1072
- }, at = /* @__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({
1073
1085
  name: "UiColumn",
1074
1086
  __name: "UiColumn",
1075
1087
  props: {
@@ -1080,69 +1092,69 @@ var Q = {
1080
1092
  size: {}
1081
1093
  },
1082
1094
  emits: ["update:data"],
1083
- setup(t, { emit: a }) {
1084
- let o = a, s = t;
1085
- function l(e, t, n) {
1086
- let r = {};
1087
- Object.keys(Q).forEach((i) => {
1088
- let a = i;
1089
- r[a] = (r) => {
1090
- 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 : {
1091
1103
  placeholder: "请输入",
1092
1104
  filterable: !0,
1093
- ...r,
1094
- prop: r?.prop || e[n.prop],
1095
- modelValue: r?.prop || e[n.prop],
1096
- onChange: r?.onChange || ((e) => o("update:data", t, n.prop, e)),
1097
- 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))
1098
1110
  };
1099
- return Q[a](i);
1111
+ return Q[o](a);
1100
1112
  };
1101
1113
  });
1102
- let i = n.render ? n.render({
1114
+ let a = r.render ? r.render({
1103
1115
  data: e,
1104
1116
  index: t,
1105
- h: r,
1106
- column: n
1117
+ h: i,
1118
+ column: r
1107
1119
  }) : null;
1108
- 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;
1109
1121
  }
1110
- return (a, o) => {
1111
- let u = T("UiColumn", !0), d = T("el-table-column"), f = T("el-text");
1112
- 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, {
1113
1125
  key: 0,
1114
- label: t.column.label,
1115
- align: s.align
1126
+ label: e.column.label,
1127
+ align: r.align
1116
1128
  }, {
1117
- 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({
1118
1130
  column: e,
1119
- data: s.data
1120
- }, { 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, [
1121
1133
  "column",
1122
1134
  "data",
1123
1135
  "align"
1124
1136
  ]))), 256))]),
1125
1137
  _: 1
1126
- }, 8, ["label", "align"])) : (b(), n(d, {
1138
+ }, 8, ["label", "align"])) : (F(), S(o, {
1127
1139
  key: 1,
1128
- prop: String(t.column.prop),
1129
- label: t.column.label,
1130
- "column-key": String(t.column.prop),
1131
- align: s.align,
1132
- width: t.column.width,
1133
- "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
1134
1146
  }, {
1135
- 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)), {
1136
1148
  key: 0,
1137
- align: s.align,
1138
- size: s.size
1139
- }, null, 8, ["align", "size"])) : (b(), n(f, {
1149
+ align: r.align,
1150
+ size: r.size
1151
+ }, null, 8, ["align", "size"])) : (F(), S(s, {
1140
1152
  key: 1,
1141
- "line-clamp": t.column?.lineClamp || 2
1153
+ "line-clamp": e.column?.lineClamp || 2
1142
1154
  }, {
1143
- default: P(() => [c(k(a.row[t.column.prop]), 1)]),
1155
+ default: K(() => [D(H(t.row[e.column.prop]), 1)]),
1144
1156
  _: 2
1145
- }, 1032, ["line-clamp"]))], 64)) : r("", !0)]),
1157
+ }, 1032, ["line-clamp"]))], 64)) : C("", !0)]),
1146
1158
  _: 1
1147
1159
  }, 8, [
1148
1160
  "prop",
@@ -1154,7 +1166,7 @@ var Q = {
1154
1166
  ]));
1155
1167
  };
1156
1168
  }
1157
- }), ot = /* @__PURE__ */ B(/* @__PURE__ */ u({
1169
+ }), xt = /* @__PURE__ */ q(/* @__PURE__ */ k({
1158
1170
  __name: "index",
1159
1171
  props: {
1160
1172
  loading: {
@@ -1166,14 +1178,14 @@ var Q = {
1166
1178
  default: !1
1167
1179
  },
1168
1180
  size: { default: "default" },
1169
- data: { default: () => x([]) },
1181
+ data: { default: () => I([]) },
1170
1182
  columns: {},
1171
1183
  align: { default: "left" },
1172
1184
  hidePagination: {
1173
1185
  type: Boolean,
1174
1186
  default: !1
1175
1187
  },
1176
- pagination: { default: () => x({
1188
+ pagination: { default: () => I({
1177
1189
  page: 1,
1178
1190
  pageSize: 10,
1179
1191
  total: 0,
@@ -1190,8 +1202,8 @@ var Q = {
1190
1202
  rowKey: {}
1191
1203
  },
1192
1204
  emits: ["pagination"],
1193
- setup(a, { emit: s }) {
1194
- let c = s, l = o(a, [
1205
+ setup(e, { emit: t }) {
1206
+ let n = t, r = E(e, [
1195
1207
  "loading",
1196
1208
  "border",
1197
1209
  "align",
@@ -1199,59 +1211,59 @@ var Q = {
1199
1211
  "pagination",
1200
1212
  "data",
1201
1213
  "size"
1202
- ]), 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"));
1203
- N(() => [l.defaultCheckedKeys, a.data], ([e, t]) => {
1204
- !e?.length || !t?.length || m(() => {
1205
- 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;
1206
1218
  let n = t.filter((t) => e.includes(t.id));
1207
- u.value.clearSelection(), n.forEach((e) => u.value?.toggleRowSelection(e, !0));
1219
+ i.value.clearSelection(), n.forEach((e) => i.value?.toggleRowSelection(e, !0));
1208
1220
  });
1209
1221
  }, { immediate: !0 });
1210
- function g(e, t) {
1211
- 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));
1212
1224
  }
1213
- function _(e, t, n) {
1214
- a.data[e] && (a.data[e] = {
1215
- ...a.data[e],
1216
- [t]: n
1225
+ function l(t, n, r) {
1226
+ e.data[t] && (e.data[t] = {
1227
+ ...e.data[t],
1228
+ [n]: r
1217
1229
  });
1218
1230
  }
1219
- return (t, o) => {
1220
- let s = T("el-table-column"), c = T("el-table"), m = T("el-pagination"), v = E("loading");
1221
- return b(), i("div", null, [
1222
- F((b(), n(c, p({ border: a.border }, t.$attrs, {
1223
- 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,
1224
1236
  lazy: !0,
1225
1237
  class: "ui-table",
1226
1238
  fit: "",
1227
1239
  ref_key: "tableRef",
1228
- ref: u
1240
+ ref: i
1229
1241
  }), {
1230
- default: P(() => [
1231
- f.value ? (b(), n(s, {
1242
+ default: K(() => [
1243
+ o.value ? (F(), S(u, {
1232
1244
  key: 0,
1233
1245
  type: "selection",
1234
- selectable: l.selectable,
1246
+ selectable: r.selectable,
1235
1247
  "column-key": "selection_0",
1236
- align: a.align,
1248
+ align: e.align,
1237
1249
  fixed: "left"
1238
- }, null, 8, ["selectable", "align"])) : r("", !0),
1239
- d.value ? (b(), n(s, {
1250
+ }, null, 8, ["selectable", "align"])) : C("", !0),
1251
+ a.value ? (F(), S(u, {
1240
1252
  key: 1,
1241
1253
  fixed: "left",
1242
1254
  type: "index",
1243
1255
  label: "序号",
1244
1256
  width: "60",
1245
1257
  "column-key": "index_1",
1246
- align: a.align
1247
- }, null, 8, ["align"])) : r("", !0),
1248
- (b(!0), i(e, null, C(h.value, (e, t) => (b(), n(at, {
1249
- key: t + "column_" + e?.prop?.toString(),
1250
- column: e,
1251
- data: a.data,
1252
- align: a.align,
1253
- "onUpdate:data": _,
1254
- 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
1255
1267
  }, null, 8, [
1256
1268
  "column",
1257
1269
  "data",
@@ -1260,54 +1272,54 @@ var Q = {
1260
1272
  ]))), 128))
1261
1273
  ]),
1262
1274
  _: 1
1263
- }, 16, ["border", "data"])), [[v, a.loading]]),
1264
- a.hidePagination ? r("", !0) : (b(), n(m, {
1275
+ }, 16, ["border", "data"])), [[p, e.loading]]),
1276
+ e.hidePagination ? C("", !0) : (F(), S(f, {
1265
1277
  key: 0,
1266
1278
  class: "ui-pagination",
1267
1279
  size: "small",
1268
1280
  background: "",
1269
1281
  layout: "total, sizes, prev, pager, next, jumper",
1270
- "page-sizes": a.pagination?.pageSizes || [
1282
+ "page-sizes": e.pagination?.pageSizes || [
1271
1283
  10,
1272
1284
  20,
1273
1285
  50
1274
1286
  ],
1275
- "page-size": a.pagination.pageSize,
1276
- "onUpdate:pageSize": o[0] ||= (e) => a.pagination.pageSize = e,
1277
- "current-page": a.pagination.page,
1278
- "onUpdate:currentPage": o[1] ||= (e) => a.pagination.page = e,
1279
- total: a.pagination.total,
1280
- "onUpdate:total": o[2] ||= (e) => a.pagination.total = e,
1281
- 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
1282
1294
  }, null, 8, [
1283
1295
  "page-sizes",
1284
1296
  "page-size",
1285
1297
  "current-page",
1286
1298
  "total"
1287
1299
  ])),
1288
- w(t.$slots, "default", {}, void 0, !0)
1300
+ z(t.$slots, "default", {}, void 0, !0)
1289
1301
  ]);
1290
1302
  };
1291
1303
  }
1292
- }), [["__scopeId", "data-v-3402edfe"]]), $ = /* @__PURE__ */ u({
1304
+ }), [["__scopeId", "data-v-3402edfe"]]), $ = /* @__PURE__ */ k({
1293
1305
  __name: "Series",
1294
1306
  props: {
1295
1307
  option: {},
1296
1308
  height: {}
1297
1309
  },
1298
1310
  setup(e) {
1299
- let t = e, n = S(null), r = S(null);
1300
- v(() => {
1301
- n.value && (r.value = de(n.value), a());
1302
- }), _(() => {
1311
+ let t = e, n = L(null), r = L(null);
1312
+ P(() => {
1313
+ n.value && (r.value = be(n.value), i());
1314
+ }), de(() => {
1303
1315
  r.value && r.value.dispose();
1304
- }), N(() => t.option, (e) => {
1305
- e && a();
1316
+ }), G(() => t.option, (e) => {
1317
+ e && i();
1306
1318
  }, { deep: !0 });
1307
- function a() {
1319
+ function i() {
1308
1320
  r.value && (!Array.isArray(t?.option.series) || !t?.option?.series?.length || r.value.setOption(t.option));
1309
1321
  }
1310
- return (e, r) => (b(), i("div", p(e.$attrs, {
1322
+ return (e, r) => (F(), w("div", j(e.$attrs, {
1311
1323
  style: {
1312
1324
  width: "100%",
1313
1325
  height: t.height || "100%",
@@ -1317,7 +1329,7 @@ var Q = {
1317
1329
  ref: n
1318
1330
  }), null, 16));
1319
1331
  }
1320
- }), st = /* @__PURE__ */ u({
1332
+ }), St = /* @__PURE__ */ k({
1321
1333
  __name: "Pie",
1322
1334
  props: {
1323
1335
  data: {},
@@ -1327,32 +1339,32 @@ var Q = {
1327
1339
  height: {}
1328
1340
  },
1329
1341
  setup(e) {
1330
- let r = e, i = t(() => {
1331
- 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;
1332
1344
  return {
1333
1345
  title: {
1334
- text: r?.title || "",
1346
+ text: t?.title || "",
1335
1347
  left: "left"
1336
1348
  },
1337
1349
  tooltip: { trigger: "item" },
1338
- legend: e?.legend ?? (r?.horizontal ? {
1350
+ legend: e?.legend ?? (t?.horizontal ? {
1339
1351
  orient: "vertical",
1340
1352
  top: "center",
1341
1353
  right: "10%",
1342
- data: r?.data?.map((e) => e.name),
1354
+ data: t?.data?.map((e) => e.name),
1343
1355
  formatter: (e) => {
1344
- let t = r?.data?.find((t) => t.name === e);
1345
- return `${e} ${t ? t.value : 0}`;
1356
+ let n = t?.data?.find((t) => t.name === e);
1357
+ return `${e} ${n ? n.value : 0}`;
1346
1358
  }
1347
1359
  } : {
1348
1360
  top: "5%",
1349
1361
  left: "center"
1350
1362
  }),
1351
- series: t.length > 0 ? t : [{
1352
- name: n?.name || "xx饼图",
1363
+ series: n.length > 0 ? n : [{
1364
+ name: r?.name || "xx饼图",
1353
1365
  type: "pie",
1354
1366
  radius: ["40%", "70%"],
1355
- center: r?.horizontal || i === "vertical" ? ["30%", "50%"] : ["50%", "50%"],
1367
+ center: t?.horizontal || i === "vertical" ? ["30%", "50%"] : ["50%", "50%"],
1356
1368
  avoidLabelOverlap: !1,
1357
1369
  itemStyle: { borderRadius: 10 },
1358
1370
  label: {
@@ -1365,16 +1377,16 @@ var Q = {
1365
1377
  fontWeight: "bold"
1366
1378
  } },
1367
1379
  labelLine: { show: !1 },
1368
- data: r.data || []
1380
+ data: t.data || []
1369
1381
  }]
1370
1382
  };
1371
1383
  });
1372
- return (t, r) => (b(), n($, p({
1373
- option: i.value,
1384
+ return (t, r) => (F(), S($, j({
1385
+ option: n.value,
1374
1386
  height: e.height
1375
1387
  }, t.$attrs), null, 16, ["option", "height"]));
1376
1388
  }
1377
- }), ct = /* @__PURE__ */ u({
1389
+ }), Ct = /* @__PURE__ */ k({
1378
1390
  __name: "Bar",
1379
1391
  props: {
1380
1392
  data: {},
@@ -1382,11 +1394,11 @@ var Q = {
1382
1394
  title: {}
1383
1395
  },
1384
1396
  setup(e) {
1385
- let r = e, i = t(() => {
1386
- let e = r?.option || {};
1397
+ let t = e, n = x(() => {
1398
+ let e = t?.option || {};
1387
1399
  return {
1388
1400
  title: {
1389
- text: r?.title || "",
1401
+ text: t?.title || "",
1390
1402
  left: "left"
1391
1403
  },
1392
1404
  tooltip: { trigger: "axis" },
@@ -1397,10 +1409,10 @@ var Q = {
1397
1409
  },
1398
1410
  xAxis: {
1399
1411
  type: "category",
1400
- data: r.data.map((e) => e.name)
1412
+ data: t.data.map((e) => e.name)
1401
1413
  },
1402
1414
  yAxis: { type: "value" },
1403
- series: r?.option?.series || r.data?.map((e) => ({
1415
+ series: t?.option?.series || t.data?.map((e) => ({
1404
1416
  name: e?.name || "xx柱状图",
1405
1417
  type: "bar",
1406
1418
  data: e.value,
@@ -1408,23 +1420,52 @@ var Q = {
1408
1420
  }))
1409
1421
  };
1410
1422
  });
1411
- return (e, t) => (b(), n($, { option: i.value }, null, 8, ["option"]));
1423
+ return (e, t) => (F(), S($, { option: n.value }, null, 8, ["option"]));
1412
1424
  }
1413
- }), lt = {
1414
- UiCard: V,
1415
- UiTable: ot,
1416
- UiFilter: K,
1417
- UiForm: q,
1418
- UiEditor: J,
1419
- UiTree: Y,
1420
- UiInfiniteScroll: X,
1421
- UiDescriptions: Z,
1422
- UiDialog: We,
1423
- UiPie: st,
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,
1424
1436
  UiSeries: $,
1425
- UiBar: ct
1426
- }, ut = { install(e) {
1427
- for (let [t, n] of Object.entries(lt)) 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.__name, t));
1468
+ for (let [t, n] of Object.entries(wt)) e.component(t, n);
1428
1469
  } };
1429
1470
  //#endregion
1430
- export { ct as UiBar, V as UiCard, Z as UiDescriptions, We as UiDialog, J as UiEditor, K as UiFilter, q as UiForm, X as UiInfiniteScroll, st as UiPie, $ as UiSeries, ot as UiTable, Y as UiTree, ut 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 };