yc-vep-ui 0.0.39 → 0.0.41

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