yc-vep-ui 0.0.19 → 0.0.21

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,187 +1,10 @@
1
- import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createPropsRestProxy as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, h as d, mergeModels as f, mergeProps as p, nextTick as m, normalizeClass as h, normalizeStyle as g, onMounted as _, onUnmounted as v, openBlock as y, reactive as b, ref as x, renderList as S, renderSlot as C, resolveComponent as w, resolveDirective as T, resolveDynamicComponent as E, setBlockTracking as D, toDisplayString as O, toValue as k, unref as A, useCssVars as ee, useModel as j, watch as M, watchEffect as te, withCtx as N, withDirectives as P } from "vue";
2
- import { ElButton as F, ElCard as ne, ElCol as I, ElConfigProvider as re, ElDatePicker as L, ElDescriptions as ie, ElDescriptionsItem as ae, ElDialog as oe, ElDropdown as se, ElDropdownItem as ce, ElDropdownMenu as le, ElForm as ue, ElFormItem as de, ElIcon as fe, ElInput as R, ElInputNumber as pe, ElInputTag as z, ElLink as B, ElMessage as me, ElMessageBox as V, ElNotification as he, ElOption as ge, ElOptionGroup as _e, ElPagination as ve, ElPopconfirm as ye, ElPopover as be, ElRadio as xe, ElRadioButton as Se, ElRadioGroup as H, ElRow as Ce, ElScrollbar as we, ElSelect as Te, ElSwitch as Ee, ElTable as De, ElTableColumn as Oe, ElTag as U, ElText as W, ElTimeSelect as ke, ElTreeV2 as Ae, ElUpload as je, provideGlobalConfig as Me } from "element-plus";
3
- import { AiEditor as Ne } from "aieditor";
4
- //#region node_modules/element-plus/es/locale/lang/zh-cn.mjs
5
- var Pe = {
6
- name: "zh-cn",
7
- el: {
8
- breadcrumb: { label: "面包屑" },
9
- colorpicker: {
10
- confirm: "确定",
11
- clear: "清空",
12
- defaultLabel: "颜色选择器",
13
- description: "当前颜色 {color},按 Enter 键选择新颜色",
14
- alphaLabel: "选择透明度的值",
15
- alphaDescription: "透明度 {alpha}, 当前颜色 {color}",
16
- hueLabel: "选择色相值",
17
- hueDescription: "色相 {hue}, 当前颜色 {color}",
18
- svLabel: "选择饱和度与明度的值",
19
- svDescription: "饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",
20
- predefineDescription: "选择 {value} 作为颜色"
21
- },
22
- datepicker: {
23
- now: "此刻",
24
- today: "今天",
25
- cancel: "取消",
26
- clear: "清空",
27
- confirm: "确定",
28
- dateTablePrompt: "使用方向键与 Enter 键可选择日期",
29
- monthTablePrompt: "使用方向键与 Enter 键可选择月份",
30
- yearTablePrompt: "使用方向键与 Enter 键可选择年份",
31
- selectedDate: "已选日期",
32
- selectDate: "选择日期",
33
- selectTime: "选择时间",
34
- startDate: "开始日期",
35
- startTime: "开始时间",
36
- endDate: "结束日期",
37
- endTime: "结束时间",
38
- prevYear: "前一年",
39
- nextYear: "后一年",
40
- prevMonth: "上个月",
41
- nextMonth: "下个月",
42
- year: "年",
43
- month1: "1 月",
44
- month2: "2 月",
45
- month3: "3 月",
46
- month4: "4 月",
47
- month5: "5 月",
48
- month6: "6 月",
49
- month7: "7 月",
50
- month8: "8 月",
51
- month9: "9 月",
52
- month10: "10 月",
53
- month11: "11 月",
54
- month12: "12 月",
55
- weeks: {
56
- sun: "日",
57
- mon: "一",
58
- tue: "二",
59
- wed: "三",
60
- thu: "四",
61
- fri: "五",
62
- sat: "六"
63
- },
64
- weeksFull: {
65
- sun: "星期日",
66
- mon: "星期一",
67
- tue: "星期二",
68
- wed: "星期三",
69
- thu: "星期四",
70
- fri: "星期五",
71
- sat: "星期六"
72
- },
73
- months: {
74
- jan: "一月",
75
- feb: "二月",
76
- mar: "三月",
77
- apr: "四月",
78
- may: "五月",
79
- jun: "六月",
80
- jul: "七月",
81
- aug: "八月",
82
- sep: "九月",
83
- oct: "十月",
84
- nov: "十一月",
85
- dec: "十二月"
86
- }
87
- },
88
- inputNumber: {
89
- decrease: "减少数值",
90
- increase: "增加数值"
91
- },
92
- select: {
93
- loading: "加载中",
94
- noMatch: "无匹配数据",
95
- noData: "无数据",
96
- placeholder: "请选择"
97
- },
98
- mention: { loading: "加载中" },
99
- dropdown: { toggleDropdown: "切换下拉选项" },
100
- cascader: {
101
- noMatch: "无匹配数据",
102
- loading: "加载中",
103
- placeholder: "请选择",
104
- noData: "暂无数据"
105
- },
106
- pagination: {
107
- goto: "前往",
108
- pagesize: "条/页",
109
- total: "共 {total} 条",
110
- pageClassifier: "页",
111
- page: "页",
112
- prev: "上一页",
113
- next: "下一页",
114
- currentPage: "第 {pager} 页",
115
- prevPages: "向前 {pager} 页",
116
- nextPages: "向后 {pager} 页",
117
- deprecationWarning: "你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"
118
- },
119
- dialog: { close: "关闭此对话框" },
120
- drawer: { close: "关闭此对话框" },
121
- messagebox: {
122
- title: "提示",
123
- confirm: "确定",
124
- cancel: "取消",
125
- error: "输入的数据不合法!",
126
- close: "关闭此对话框"
127
- },
128
- upload: {
129
- deleteTip: "按 Delete 键可删除",
130
- delete: "删除",
131
- preview: "查看图片",
132
- continue: "继续上传"
133
- },
134
- slider: {
135
- defaultLabel: "滑块介于 {min} 至 {max}",
136
- defaultRangeStartLabel: "选择起始值",
137
- defaultRangeEndLabel: "选择结束值"
138
- },
139
- table: {
140
- emptyText: "暂无数据",
141
- confirmFilter: "筛选",
142
- resetFilter: "重置",
143
- clearFilter: "全部",
144
- sumText: "合计",
145
- selectAllLabel: "选择所有行",
146
- selectRowLabel: "选择当前行",
147
- expandRowLabel: "展开当前行",
148
- collapseRowLabel: "收起当前行",
149
- sortLabel: "按 {column} 排序",
150
- filterLabel: "按 {column} 过滤"
151
- },
152
- tag: { close: "关闭此标签" },
153
- tour: {
154
- next: "下一步",
155
- previous: "上一步",
156
- finish: "结束导览",
157
- close: "关闭此对话框"
158
- },
159
- tree: { emptyText: "暂无数据" },
160
- transfer: {
161
- noMatch: "无匹配数据",
162
- noData: "无数据",
163
- titles: ["列表 1", "列表 2"],
164
- filterPlaceholder: "请输入搜索内容",
165
- noCheckedFormat: "共 {total} 项",
166
- hasCheckedFormat: "已选 {checked}/{total} 项"
167
- },
168
- image: { error: "加载失败" },
169
- pageHeader: { title: "返回" },
170
- popconfirm: {
171
- confirmButtonText: "确定",
172
- cancelButtonText: "取消"
173
- },
174
- carousel: {
175
- leftArrow: "上一张幻灯片",
176
- rightArrow: "下一张幻灯片",
177
- indicator: "幻灯片切换至索引 {index}"
178
- },
179
- inputOTP: {
180
- groupLabel: "一次性密码输入框",
181
- defaultLabel: "请输入第 {index} 位 OTP 字符"
182
- }
183
- }
184
- }, Fe = { class: /* @__PURE__ */ h({ bodyClass: !0 }) }, Ie = /* @__PURE__ */ u({
1
+ import e from "element-plus/es/locale/lang/zh-cn";
2
+ import { Fragment as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createPropsRestProxy as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent 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 te, watch as M, watchEffect as ne, withCtx as N, withDirectives as P } from "vue";
3
+ import { ElButton as F, ElCard as I, ElCol as re, ElConfigProvider as ie, ElDatePicker as L, ElDescriptions as ae, ElDescriptionsItem as oe, ElDialog as se, ElDropdown as ce, ElDropdownItem as le, ElDropdownMenu as ue, ElForm as de, ElFormItem as fe, ElIcon as pe, ElInput as R, ElInputNumber as me, ElInputTag as z, ElLink as B, ElMessage as he, ElMessageBox as V, ElNotification as ge, ElOption as _e, ElOptionGroup as ve, ElPagination as ye, ElPopconfirm as be, ElPopover as xe, ElRadio as Se, ElRadioButton as Ce, ElRadioGroup as H, ElRow as we, ElScrollbar as Te, ElSelect as Ee, ElSwitch as De, ElTable as Oe, ElTableColumn as ke, ElTag as U, ElText as W, ElTimeSelect as Ae, ElTreeV2 as je, ElUpload as Me, provideGlobalConfig as Ne } from "element-plus";
4
+ import { ArrowRight as Pe, ArrowUp as Fe, CirclePlus as Ie, Delete as Le, DocumentAdd as Re, Edit as ze, Folder as Be, MoreFilled as Ve, Promotion as He, Refresh as G, Search as Ue } from "@element-plus/icons-vue";
5
+ import { AiEditor as We } from "aieditor";
6
+ //#region src/components/Card/index.vue?vue&type=script&setup=true&lang.ts
7
+ var Ge = { class: /* @__PURE__ */ g({ bodyClass: !0 }) }, Ke = /* @__PURE__ */ d({
185
8
  __name: "index",
186
9
  props: {
187
10
  title: {},
@@ -190,180 +13,35 @@ var Pe = {
190
13
  icon: {}
191
14
  },
192
15
  setup(e) {
193
- let i = t(() => ({
16
+ let t = n(() => ({
194
17
  display: "flex",
195
18
  alignItems: "center",
196
19
  gap: "4px",
197
20
  borderBottom: e.hideBorder ? "1px solid #e5e7eb" : "none"
198
21
  }));
199
- return (t, o) => {
200
- let l = w("el-icon"), u = w("el-card");
201
- return y(), n(u, p(t.$attrs, { class: {
22
+ return (n, a) => {
23
+ let s = T("el-icon"), u = T("el-card");
24
+ return b(), r(u, m(n.$attrs, { class: {
202
25
  "ui-card": !0,
203
26
  hideBorder: e.hideBorder
204
- } }), s({
205
- default: N(() => [a("div", Fe, [C(t.$slots, "default", {}, void 0, !0)])]),
27
+ } }), c({
28
+ default: N(() => [o("div", Ge, [w(n.$slots, "default", {}, void 0, !0)])]),
206
29
  _: 2
207
30
  }, [e.title && e.title?.length > 0 ? {
208
31
  name: "header",
209
- fn: N(() => [a("div", { style: g(i.value) }, [e.icon ? (y(), n(l, { key: 0 }, {
210
- default: N(() => [(y(), n(E(e.icon), { color: "#2563eb" }))]),
32
+ fn: N(() => [o("div", { style: _(t.value) }, [e.icon ? (b(), r(s, { key: 0 }, {
33
+ default: N(() => [(b(), r(D(e.icon), { color: "#2563eb" }))]),
211
34
  _: 1
212
- })) : r("", !0), o[0] || (D(-1, !0), (o[0] = a("h4", null, [c(O(e.title), 1)])).cacheIndex = 0, D(1), o[0])], 4)]),
35
+ })) : i("", !0), a[0] || (O(-1, !0), (a[0] = o("h4", null, [l(k(e.title), 1)])).cacheIndex = 0, O(1), a[0])], 4)]),
213
36
  key: "0"
214
37
  } : void 0]), 1040, ["class"]);
215
38
  };
216
39
  }
217
- }), G = (e, t) => {
40
+ }), K = (e, t) => {
218
41
  let n = e.__vccOpts || e;
219
42
  for (let [e, r] of t) n[e] = r;
220
43
  return n;
221
- }, K = /* @__PURE__ */ G(Ie, [["__scopeId", "data-v-ae248017"]]), Le = /* @__PURE__ */ u({
222
- name: "ArrowRight",
223
- __name: "arrow-right",
224
- setup(e) {
225
- return (e, t) => (y(), i("svg", {
226
- xmlns: "http://www.w3.org/2000/svg",
227
- viewBox: "0 0 1024 1024"
228
- }, [a("path", {
229
- fill: "currentColor",
230
- d: "M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"
231
- })]));
232
- }
233
- }), Re = /* @__PURE__ */ u({
234
- name: "ArrowUp",
235
- __name: "arrow-up",
236
- setup(e) {
237
- return (e, t) => (y(), i("svg", {
238
- xmlns: "http://www.w3.org/2000/svg",
239
- viewBox: "0 0 1024 1024"
240
- }, [a("path", {
241
- fill: "currentColor",
242
- d: "m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"
243
- })]));
244
- }
245
- }), ze = /* @__PURE__ */ u({
246
- name: "CirclePlus",
247
- __name: "circle-plus",
248
- setup(e) {
249
- return (e, t) => (y(), i("svg", {
250
- xmlns: "http://www.w3.org/2000/svg",
251
- viewBox: "0 0 1024 1024"
252
- }, [
253
- a("path", {
254
- fill: "currentColor",
255
- d: "M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"
256
- }),
257
- a("path", {
258
- fill: "currentColor",
259
- d: "M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"
260
- }),
261
- a("path", {
262
- fill: "currentColor",
263
- d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
264
- })
265
- ]));
266
- }
267
- }), Be = /* @__PURE__ */ u({
268
- name: "Delete",
269
- __name: "delete",
270
- setup(e) {
271
- return (e, t) => (y(), i("svg", {
272
- xmlns: "http://www.w3.org/2000/svg",
273
- viewBox: "0 0 1024 1024"
274
- }, [a("path", {
275
- fill: "currentColor",
276
- d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"
277
- })]));
278
- }
279
- }), Ve = /* @__PURE__ */ u({
280
- name: "DocumentAdd",
281
- __name: "document-add",
282
- setup(e) {
283
- return (e, t) => (y(), i("svg", {
284
- xmlns: "http://www.w3.org/2000/svg",
285
- viewBox: "0 0 1024 1024"
286
- }, [a("path", {
287
- fill: "currentColor",
288
- d: "M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z"
289
- })]));
290
- }
291
- }), He = /* @__PURE__ */ u({
292
- name: "Edit",
293
- __name: "edit",
294
- setup(e) {
295
- return (e, t) => (y(), i("svg", {
296
- xmlns: "http://www.w3.org/2000/svg",
297
- viewBox: "0 0 1024 1024"
298
- }, [a("path", {
299
- fill: "currentColor",
300
- d: "M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"
301
- }), a("path", {
302
- fill: "currentColor",
303
- d: "m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"
304
- })]));
305
- }
306
- }), Ue = /* @__PURE__ */ u({
307
- name: "Folder",
308
- __name: "folder",
309
- setup(e) {
310
- return (e, t) => (y(), i("svg", {
311
- xmlns: "http://www.w3.org/2000/svg",
312
- viewBox: "0 0 1024 1024"
313
- }, [a("path", {
314
- fill: "currentColor",
315
- d: "M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"
316
- })]));
317
- }
318
- }), We = /* @__PURE__ */ u({
319
- name: "MoreFilled",
320
- __name: "more-filled",
321
- setup(e) {
322
- return (e, t) => (y(), i("svg", {
323
- xmlns: "http://www.w3.org/2000/svg",
324
- viewBox: "0 0 1024 1024"
325
- }, [a("path", {
326
- fill: "currentColor",
327
- d: "M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"
328
- })]));
329
- }
330
- }), Ge = /* @__PURE__ */ u({
331
- name: "Promotion",
332
- __name: "promotion",
333
- setup(e) {
334
- return (e, t) => (y(), i("svg", {
335
- xmlns: "http://www.w3.org/2000/svg",
336
- viewBox: "0 0 1024 1024"
337
- }, [a("path", {
338
- fill: "currentColor",
339
- d: "m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"
340
- })]));
341
- }
342
- }), q = /* @__PURE__ */ u({
343
- name: "Refresh",
344
- __name: "refresh",
345
- setup(e) {
346
- return (e, t) => (y(), i("svg", {
347
- xmlns: "http://www.w3.org/2000/svg",
348
- viewBox: "0 0 1024 1024"
349
- }, [a("path", {
350
- fill: "currentColor",
351
- d: "M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"
352
- })]));
353
- }
354
- }), Ke = /* @__PURE__ */ u({
355
- name: "Search",
356
- __name: "search",
357
- setup(e) {
358
- return (e, t) => (y(), i("svg", {
359
- xmlns: "http://www.w3.org/2000/svg",
360
- viewBox: "0 0 1024 1024"
361
- }, [a("path", {
362
- fill: "currentColor",
363
- d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"
364
- })]));
365
- }
366
- });
44
+ }, q = /* @__PURE__ */ K(Ke, [["__scopeId", "data-v-ae248017"]]);
367
45
  //#endregion
368
46
  //#region src/components/utils/tools.ts
369
47
  function qe(e) {
@@ -397,7 +75,7 @@ function X(e, t) {
397
75
  }
398
76
  //#endregion
399
77
  //#region src/components/Filter/index.vue?vue&type=script&setup=true&lang.ts
400
- var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ G(/* @__PURE__ */ u({
78
+ var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ K(/* @__PURE__ */ d({
401
79
  name: "UiDefaultFilter",
402
80
  __name: "index",
403
81
  props: {
@@ -418,8 +96,8 @@ var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ G(/* @__PURE__ */ u({
418
96
  "reset",
419
97
  "search"
420
98
  ],
421
- setup(s, { emit: u }) {
422
- let d = u, f = o(s, [
99
+ setup(e, { emit: c }) {
100
+ let d = c, f = s(e, [
423
101
  "fields",
424
102
  "labelWidth",
425
103
  "valueWidth",
@@ -427,69 +105,69 @@ var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ G(/* @__PURE__ */ u({
427
105
  "column",
428
106
  "size",
429
107
  "filterFixedValues"
430
- ]), m = b({
108
+ ]), p = x({
431
109
  expandNum: 0,
432
110
  expand: !1
433
- }), h = b({}), v = t(() => s.fields.slice(0, m.expand ? s.fields.length : m.expandNum)), x = t(() => 24 - v.value?.reduce((e, t) => e + (t.span || 24 / s.column), 0) % 24 - 24 / s.column);
434
- _(() => {
435
- m.expandNum = f?.expandNum ?? 2 * s.column - 1, s.fields.forEach((e) => {
111
+ }), h = x({}), g = n(() => e.fields.slice(0, p.expand ? e.fields.length : p.expandNum)), y = n(() => 24 - g.value?.reduce((t, n) => t + (n.span || 24 / e.column), 0) % 24 - 24 / e.column);
112
+ v(() => {
113
+ p.expandNum = f?.expandNum ?? 2 * e.column - 1, e.fields.forEach((e) => {
436
114
  let t = Y(e, h)?.props?.defaultValue;
437
115
  t !== void 0 && (h[e.prop] = t);
438
116
  });
439
117
  });
440
- function T() {
441
- let e = {};
442
- Object.keys(h).forEach((t) => {
443
- if (h[t] !== void 0) {
444
- let n = k(h[t]);
445
- e[t] = typeof n == "string" ? n.trim() : n;
118
+ function S() {
119
+ let t = {};
120
+ Object.keys(h).forEach((e) => {
121
+ if (h[e] !== void 0) {
122
+ let n = A(h[e]);
123
+ t[e] = typeof n == "string" ? n.trim() : n;
446
124
  }
447
125
  }), d("submit", {
448
- ...e,
449
- ...s.filterFixedValues
126
+ ...t,
127
+ ...e.filterFixedValues
450
128
  }), d("search", {
451
- ...e,
452
- ...s.filterFixedValues
129
+ ...t,
130
+ ...e.filterFixedValues
453
131
  });
454
132
  }
455
- function D() {
456
- Object.keys(h).forEach((e) => {
457
- s.omitFields.includes(e) || (h[e] = void 0);
133
+ function E() {
134
+ Object.keys(h).forEach((t) => {
135
+ e.omitFields.includes(t) || (h[t] = void 0);
458
136
  }), d("reset", h);
459
137
  }
460
- return (t, o) => {
461
- let u = w("el-input"), d = w("el-form-item"), f = w("el-col"), _ = w("el-button"), b = w("el-row"), k = w("el-form");
462
- return y(), n(k, p({
138
+ return (n, s) => {
139
+ let c = T("el-input"), d = T("el-form-item"), f = T("el-col"), v = T("el-button"), x = T("el-row"), O = T("el-form");
140
+ return b(), r(O, m({
463
141
  model: h,
464
142
  class: "ui-filter",
465
- size: s.size
466
- }, t.$attrs), {
467
- default: N(() => [l(b, { gutter: 20 }, {
468
- default: N(() => [(y(!0), i(e, null, S(v.value, (e) => (y(), n(f, { span: e.span || 24 / s.column }, {
469
- default: N(() => [(y(), n(d, {
470
- key: e.prop,
471
- label: e.label,
472
- "label-width": A(qe)(e?.labelWidth || s.labelWidth),
473
- "value-width": A(J)(e?.valueWidth || s.valueWidth)
143
+ size: e.size
144
+ }, n.$attrs), {
145
+ default: N(() => [u(x, { gutter: 20 }, {
146
+ default: N(() => [(b(!0), a(t, null, C(g.value, (t) => (b(), r(f, { span: t.span || 24 / e.column }, {
147
+ default: N(() => [(b(), r(d, {
148
+ key: t.prop,
149
+ label: t.label,
150
+ "label-width": j(qe)(t?.labelWidth || e.labelWidth),
151
+ "value-width": j(J)(t?.valueWidth || e.valueWidth)
474
152
  }, {
475
- default: N(() => [e.render ? (y(), n(E(A(Y)(e, h).component), p({
153
+ default: N(() => [t.render ? (b(), r(D(j(Y)(t, h).component), m({
476
154
  key: 0,
477
- modelValue: h[e.prop],
478
- "onUpdate:modelValue": (t) => h[e.prop] = t
479
- }, { ref_for: !0 }, A(Y)(e, h).props, {
155
+ modelValue: h[t.prop],
156
+ "onUpdate:modelValue": (e) => h[t.prop] = e
157
+ }, { ref_for: !0 }, j(Y)(t, h).props, {
480
158
  clearable: !0,
481
- style: { width: A(J)(e?.valueWidth || s.valueWidth) }
159
+ style: { width: j(J)(t?.valueWidth || e.valueWidth) }
482
160
  }), null, 16, [
483
161
  "modelValue",
484
162
  "onUpdate:modelValue",
485
163
  "style"
486
- ])) : (y(), n(u, {
164
+ ])) : (b(), r(c, {
487
165
  key: 1,
488
- modelValue: h[e.prop],
489
- "onUpdate:modelValue": (t) => h[e.prop] = t,
166
+ modelValue: h[t.prop],
167
+ "onUpdate:modelValue": (e) => h[t.prop] = e,
490
168
  placeholder: "请输入",
491
169
  clearable: !0,
492
- style: g({ width: A(J)(e?.valueWidth || s.valueWidth) })
170
+ style: _({ width: j(J)(t?.valueWidth || e.valueWidth) })
493
171
  }, null, 8, [
494
172
  "modelValue",
495
173
  "onUpdate:modelValue",
@@ -502,42 +180,42 @@ var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ G(/* @__PURE__ */ u({
502
180
  "value-width"
503
181
  ]))]),
504
182
  _: 2
505
- }, 1032, ["span"]))), 256)), l(f, {
506
- span: 24 / s.column,
507
- offset: x.value
183
+ }, 1032, ["span"]))), 256)), u(f, {
184
+ span: 24 / e.column,
185
+ offset: y.value
508
186
  }, {
509
- default: N(() => [l(d, {
187
+ default: N(() => [u(d, {
510
188
  label: "",
511
189
  "label-width": "30px"
512
190
  }, {
513
- default: N(() => [a("div", Je, [
514
- C(t.$slots, "left", { form: h }, void 0, !0),
515
- s.fields.length >= 2 * s.column ? (y(), n(_, {
191
+ default: N(() => [o("div", Je, [
192
+ w(n.$slots, "left", { form: h }, void 0, !0),
193
+ e.fields.length >= 2 * e.column ? (b(), r(v, {
516
194
  key: 0,
517
195
  text: "",
518
- icon: m.expand ? A(Re) : A(Le),
519
- onClick: o[0] ||= (e) => m.expand = !m.expand
196
+ icon: p.expand ? j(Fe) : j(Pe),
197
+ onClick: s[0] ||= (e) => p.expand = !p.expand
520
198
  }, {
521
- default: N(() => [c(O(m.expand ? "收起" : "展开"), 1)]),
199
+ default: N(() => [l(k(p.expand ? "收起" : "展开"), 1)]),
522
200
  _: 1
523
- }, 8, ["icon"])) : r("", !0),
524
- l(_, {
525
- icon: A(Ke),
201
+ }, 8, ["icon"])) : i("", !0),
202
+ u(v, {
203
+ icon: j(Ue),
526
204
  type: "primary",
527
- onClick: T
205
+ onClick: S
528
206
  }, {
529
- default: N(() => [...o[1] ||= [c("查询", -1)]]),
207
+ default: N(() => [...s[1] ||= [l("查询", -1)]]),
530
208
  _: 1
531
209
  }, 8, ["icon"]),
532
- l(_, {
533
- icon: A(q),
534
- onClick: D
210
+ u(v, {
211
+ icon: j(G),
212
+ onClick: E
535
213
  }, {
536
- default: N(() => [...o[2] ||= [c("重置", -1)]]),
214
+ default: N(() => [...s[2] ||= [l("重置", -1)]]),
537
215
  _: 1
538
216
  }, 8, ["icon"]),
539
- C(t.$slots, "handle", { form: h }, void 0, !0),
540
- C(t.$slots, "right", { form: h }, void 0, !0)
217
+ w(n.$slots, "handle", { form: h }, void 0, !0),
218
+ w(n.$slots, "right", { form: h }, void 0, !0)
541
219
  ])]),
542
220
  _: 3
543
221
  })]),
@@ -558,7 +236,7 @@ var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ G(/* @__PURE__ */ u({
558
236
  }, Qe = {
559
237
  key: 0,
560
238
  class: "ui-form-buttons"
561
- }, $e = /* @__PURE__ */ G(/* @__PURE__ */ u({
239
+ }, $e = /* @__PURE__ */ K(/* @__PURE__ */ d({
562
240
  __name: "index",
563
241
  props: {
564
242
  fields: {},
@@ -567,7 +245,7 @@ var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ G(/* @__PURE__ */ u({
567
245
  labelWidth: { default: "100px" },
568
246
  labelPosition: { default: "top" },
569
247
  omitFields: { default: () => [] },
570
- rules: { default: () => b({}) },
248
+ rules: { default: () => x({}) },
571
249
  required: { type: Boolean },
572
250
  column: { default: 24 },
573
251
  defaultValues: {},
@@ -576,9 +254,9 @@ var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ G(/* @__PURE__ */ u({
576
254
  size: {}
577
255
  },
578
256
  emits: ["submit", "reset"],
579
- setup(a, { expose: s, emit: u }) {
257
+ setup(e, { expose: o, emit: c }) {
580
258
  ee((e) => ({ ec46e5ec: e.column / 2 }));
581
- let d = u, f = o(a, [
259
+ let d = c, f = s(e, [
582
260
  "fields",
583
261
  "labelWidth",
584
262
  "valueWidth",
@@ -587,121 +265,121 @@ var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ G(/* @__PURE__ */ u({
587
265
  "labelPosition",
588
266
  "valueModel",
589
267
  "column"
590
- ]), m = x(0), _ = x(), v = b({}), T = t(() => {
591
- let e = k(v);
592
- return a.fields.forEach((t) => {
593
- let n = t.prop ? e?.[t.prop] : void 0, r = X(t, v)?.props?.defaultValue;
594
- v[t.prop] = n ?? r ?? void 0, t?.slots && t?.slots?.length > 0 && t.slots.forEach((t) => {
595
- let n = t.prop ? e?.[t.prop] : void 0, r = X(t, v)?.props?.defaultValue;
596
- v[t.prop] = n ?? r ?? void 0;
268
+ ]), p = S(0), h = S(), v = x({}), y = n(() => {
269
+ let t = A(v);
270
+ return e.fields.forEach((e) => {
271
+ let n = e.prop ? t?.[e.prop] : void 0, r = X(e, v)?.props?.defaultValue;
272
+ v[e.prop] = n ?? r ?? void 0, e?.slots && e?.slots?.length > 0 && e.slots.forEach((e) => {
273
+ let n = e.prop ? t?.[e.prop] : void 0, r = X(e, v)?.props?.defaultValue;
274
+ v[e.prop] = n ?? r ?? void 0;
597
275
  });
598
- }), a.fields.filter((e) => typeof e.prop == "string");
599
- }), D = t(() => {
600
- if (a.rules && Object.keys(a.rules).length) return a.rules;
601
- let e = {};
602
- return T.value.forEach((t) => {
603
- t.rules && Object.keys(t.rules).length ? e[t.prop] = t.rules : t.required && (e[t.prop] = [{
276
+ }), e.fields.filter((e) => typeof e.prop == "string");
277
+ }), E = n(() => {
278
+ if (e.rules && Object.keys(e.rules).length) return e.rules;
279
+ let t = {};
280
+ return y.value.forEach((e) => {
281
+ e.rules && Object.keys(e.rules).length ? t[e.prop] = e.rules : e.required && (t[e.prop] = [{
604
282
  required: !0,
605
- message: "请输入" + t.label,
283
+ message: "请输入" + e.label,
606
284
  trigger: "change"
607
285
  }]);
608
- }), e;
286
+ }), t;
609
287
  });
610
- te(() => {
288
+ ne(() => {
611
289
  Object.assign(v, f?.form);
612
290
  });
613
- async function j(e) {
291
+ async function O(e) {
614
292
  let t = !0;
615
293
  if (await e.validate((e) => {
616
294
  t = e;
617
295
  }), !t) return;
618
296
  let n = {};
619
297
  Object.keys(v).forEach((e) => {
620
- v[e] !== void 0 && (n[e] = k(v[e]));
298
+ v[e] !== void 0 && (n[e] = A(v[e]));
621
299
  }), d("submit", n);
622
300
  }
301
+ function te() {
302
+ h && h.value?.clearValidate();
303
+ }
623
304
  function M() {
624
- _ && _.value?.clearValidate();
305
+ Object.keys(v).forEach((t) => {
306
+ e.omitFields.includes(t) || (v[t] = void 0);
307
+ }), p.value += 1, d("reset", v);
625
308
  }
626
309
  function P() {
627
- Object.keys(v).forEach((e) => {
628
- a.omitFields.includes(e) || (v[e] = void 0);
629
- }), m.value += 1, d("reset", v);
630
- }
631
- function F() {
632
310
  return v;
633
311
  }
634
- function ne(e) {
312
+ function F(e) {
635
313
  Object.keys(e).forEach((t) => {
636
314
  v[t] = e[t];
637
315
  });
638
316
  }
639
317
  async function I() {
640
318
  return new Promise((e) => {
641
- _.value?.validate((t, n) => e(n));
319
+ h.value?.validate((t, n) => e(n));
642
320
  });
643
321
  }
644
- return s({
645
- getValues: F,
646
- setValues: ne,
647
- clearValidate: M,
648
- onSubmit: j,
322
+ return o({
323
+ getValues: P,
324
+ setValues: F,
325
+ clearValidate: te,
326
+ onSubmit: O,
649
327
  validate: I
650
- }), (t, o) => {
651
- let s = w("el-input"), u = w("el-form-item"), d = w("el-form"), f = w("el-button");
652
- return y(), i(e, null, [l(d, p({
328
+ }), (n, o) => {
329
+ let s = T("el-input"), c = T("el-form-item"), d = T("el-form"), f = T("el-button");
330
+ return b(), a(t, null, [u(d, m({
653
331
  ref_key: "uiFormRef",
654
- ref: _,
332
+ ref: h,
655
333
  model: v
656
- }, t.$attrs, {
657
- rules: D.value,
658
- inline: a.labelPosition !== "top",
659
- "label-position": a.labelPosition,
334
+ }, n.$attrs, {
335
+ rules: E.value,
336
+ inline: e.labelPosition !== "top",
337
+ "label-position": e.labelPosition,
660
338
  class: {
661
339
  "ui-form": !0,
662
- horizontal: a.labelPosition !== "top"
340
+ horizontal: e.labelPosition !== "top"
663
341
  },
664
342
  "validate-on-rule-change": !1
665
343
  }), {
666
- default: N(() => [(y(!0), i(e, null, S(T.value, (r) => (y(), n(u, {
667
- key: r.prop,
668
- label: r.label,
669
- "label-width": a.labelWidth,
670
- "value-width": a.valueWidth,
671
- prop: r.prop,
672
- style: g({
673
- width: `${r?.width ? r?.width + "px" : "100%"}`,
674
- gridColumn: `span ${(r?.span || a.column) / 2 || 1}`
344
+ default: N(() => [(b(!0), a(t, null, C(y.value, (i) => (b(), r(c, {
345
+ key: i.prop,
346
+ label: i.label,
347
+ "label-width": e.labelWidth,
348
+ "value-width": e.valueWidth,
349
+ prop: i.prop,
350
+ style: _({
351
+ width: `${i?.width ? i?.width + "px" : "100%"}`,
352
+ gridColumn: `span ${(i?.span || e.column) / 2 || 1}`
675
353
  })
676
354
  }, {
677
- default: N(() => [r.render ? (y(), i(e, { key: 0 }, [A(X)(r, v).component ? (y(), n(E(A(X)(r, v).component), p({
355
+ default: N(() => [i.render ? (b(), a(t, { key: 0 }, [j(X)(i, v).component ? (b(), r(D(j(X)(i, v).component), m({
678
356
  key: 1,
679
- modelValue: v[r.prop],
680
- "onUpdate:modelValue": (e) => v[r.prop] = e
681
- }, { ref_for: !0 }, A(X)(r, v).props, {
357
+ modelValue: v[i.prop],
358
+ "onUpdate:modelValue": (e) => v[i.prop] = e
359
+ }, { ref_for: !0 }, j(X)(i, v).props, {
682
360
  clearable: !0,
683
- key: `${r.prop}-${m.value}`,
361
+ key: `${i.prop}-${p.value}`,
684
362
  style: { display: "inline-block" },
685
- class: { underline: a.valueModel === "underline" }
363
+ class: { underline: e.valueModel === "underline" }
686
364
  }), null, 16, [
687
365
  "modelValue",
688
366
  "onUpdate:modelValue",
689
367
  "class"
690
- ])) : (y(), i("span", Xe, O(A(X)(r, v) || "-"), 1)), (y(!0), i(e, null, S(r.slots, (e) => C(t.$slots, "default", { form: v }, () => [A(X)(e, v).component ? (y(), n(E(A(X)(e, v).component), p({
368
+ ])) : (b(), a("span", Xe, k(j(X)(i, v) || "-"), 1)), (b(!0), a(t, null, C(i.slots, (t) => w(n.$slots, "default", { form: v }, () => [j(X)(t, v).component ? (b(), r(D(j(X)(t, v).component), m({
691
369
  key: 1,
692
- modelValue: v[e.prop],
693
- "onUpdate:modelValue": (t) => v[e.prop] = t,
694
- "default-value": e.defaultValue,
695
- placeholder: e.placeholder
696
- }, { ref_for: !0 }, A(X)(e, v).props, {
370
+ modelValue: v[t.prop],
371
+ "onUpdate:modelValue": (e) => v[t.prop] = e,
372
+ "default-value": t.defaultValue,
373
+ placeholder: t.placeholder
374
+ }, { ref_for: !0 }, j(X)(t, v).props, {
697
375
  style: {
698
376
  display: "inline-block",
699
377
  marginLeft: "10px",
700
- width: `${e.width ? e.width + "px" : "100%"}`
378
+ width: `${t.width ? t.width + "px" : "100%"}`
701
379
  },
702
- class: { underline: a.valueModel === "underline" },
380
+ class: { underline: e.valueModel === "underline" },
703
381
  clearable: !0,
704
- key: `${e.prop}-${m.value}`
382
+ key: `${t.prop}-${p.value}`
705
383
  }), null, 16, [
706
384
  "modelValue",
707
385
  "onUpdate:modelValue",
@@ -709,13 +387,13 @@ var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ G(/* @__PURE__ */ u({
709
387
  "placeholder",
710
388
  "style",
711
389
  "class"
712
- ])) : (y(), i("span", Ze, O(A(X)(e, v) || "-"), 1))], !0)), 256))], 64)) : (y(), n(s, {
390
+ ])) : (b(), a("span", Ze, k(j(X)(t, v) || "-"), 1))], !0)), 256))], 64)) : (b(), r(s, {
713
391
  key: 1,
714
- modelValue: v[r.prop],
715
- "onUpdate:modelValue": (e) => v[r.prop] = e,
392
+ modelValue: v[i.prop],
393
+ "onUpdate:modelValue": (e) => v[i.prop] = e,
716
394
  placeholder: "请输入",
717
395
  clearable: !0,
718
- class: h({ underline: a.valueModel === "underline" })
396
+ class: g({ underline: e.valueModel === "underline" })
719
397
  }, null, 8, [
720
398
  "modelValue",
721
399
  "onUpdate:modelValue",
@@ -736,31 +414,31 @@ var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ G(/* @__PURE__ */ u({
736
414
  "inline",
737
415
  "label-position",
738
416
  "class"
739
- ]), t.$attrs?.hideHandle ? r("", !0) : (y(), i("div", Qe, [
740
- C(t.$slots, "handle", { form: v }, void 0, !0),
741
- l(f, {
742
- icon: A(q),
743
- onClick: o[0] ||= (e) => _.value && P(),
744
- size: t.$props.size
417
+ ]), n.$attrs?.hideHandle ? i("", !0) : (b(), a("div", Qe, [
418
+ w(n.$slots, "handle", { form: v }, void 0, !0),
419
+ u(f, {
420
+ icon: j(G),
421
+ onClick: o[0] ||= (e) => h.value && M(),
422
+ size: n.$props.size
745
423
  }, {
746
- default: N(() => [...o[2] ||= [c("重置", -1)]]),
424
+ default: N(() => [...o[2] ||= [l("重置", -1)]]),
747
425
  _: 1
748
426
  }, 8, ["icon", "size"]),
749
- l(f, {
750
- icon: A(Ge),
427
+ u(f, {
428
+ icon: j(He),
751
429
  type: "primary",
752
- onClick: o[1] ||= (e) => _.value && j(_.value),
753
- size: t.$props.size
430
+ onClick: o[1] ||= (e) => h.value && O(h.value),
431
+ size: n.$props.size
754
432
  }, {
755
- default: N(() => [...o[3] ||= [c("提交", -1)]]),
433
+ default: N(() => [...o[3] ||= [l("提交", -1)]]),
756
434
  _: 1
757
435
  }, 8, ["icon", "size"])
758
436
  ]))], 64);
759
437
  };
760
438
  }
761
- }), [["__scopeId", "data-v-f8f2a1f5"]]), et = ["disabled"], Z = /* @__PURE__ */ u({
439
+ }), [["__scopeId", "data-v-f8f2a1f5"]]), et = ["disabled"], Z = /* @__PURE__ */ d({
762
440
  __name: "index",
763
- props: /* @__PURE__ */ f({
441
+ props: /* @__PURE__ */ p({
764
442
  defaultValue: { default: "" },
765
443
  disabled: {
766
444
  type: Boolean,
@@ -773,25 +451,25 @@ var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ G(/* @__PURE__ */ u({
773
451
  },
774
452
  modelModifiers: {}
775
453
  }),
776
- emits: /* @__PURE__ */ f(["change"], ["update:modelValue"]),
454
+ emits: /* @__PURE__ */ p(["change"], ["update:modelValue"]),
777
455
  setup(e, { emit: t }) {
778
- let n = x(), r = j(e, "modelValue"), a = x(r.value || e.defaultValue || ""), o = null, s = t;
779
- return _(() => {
780
- o = new Ne({
456
+ let n = S(), r = te(e, "modelValue"), i = S(r.value || e.defaultValue || ""), o = null, s = t;
457
+ return v(() => {
458
+ o = new We({
781
459
  element: n.value,
782
460
  placeholder: "点击输入内容...",
783
461
  content: r.value || e.defaultValue || "",
784
462
  toolbarExcludeKeys: ["ai"],
785
463
  onChange: (e) => {
786
464
  let t = e.getHtml();
787
- r.value = t, a.value = t, s("change", t);
465
+ r.value = t, i.value = t, s("change", t);
788
466
  }
789
467
  }), o.setEditable(!e.disabled);
790
468
  }), M(r, (e) => {
791
469
  o && e !== o.getHtml() && o.setContent(e);
792
- }), v(() => {
470
+ }), y(() => {
793
471
  o && o.destroy();
794
- }), (t, r) => (y(), i("div", {
472
+ }), (t, r) => (b(), a("div", {
795
473
  ref_key: "editorRef",
796
474
  ref: n,
797
475
  style: { height: "500px" },
@@ -814,7 +492,7 @@ var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ G(/* @__PURE__ */ u({
814
492
  color: "#ef4444",
815
493
  display: "flex",
816
494
  "align-items": "center"
817
- } }, ot = /* @__PURE__ */ G(/* @__PURE__ */ u({
495
+ } }, ot = /* @__PURE__ */ K(/* @__PURE__ */ d({
818
496
  __name: "index",
819
497
  props: {
820
498
  id: {},
@@ -831,16 +509,16 @@ var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ G(/* @__PURE__ */ u({
831
509
  },
832
510
  emits: ["change"],
833
511
  setup(e, { emit: t }) {
834
- let s = o(e, [
512
+ let n = s(e, [
835
513
  "filterable",
836
514
  "placeholder",
837
515
  "data",
838
516
  "props"
839
- ]), u = x(""), d = x(), f = x(null);
840
- M(u, (t) => {
517
+ ]), c = S(""), d = S(), f = S(null);
518
+ M(c, (t) => {
841
519
  e.filterable && f.value.filter(t);
842
520
  });
843
- function m(t, n) {
521
+ function p(t, n) {
844
522
  return t ? n?.[e.props?.label || "label"]?.includes(t) ?? !1 : !0;
845
523
  }
846
524
  function h(e, t) {
@@ -852,7 +530,7 @@ var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ G(/* @__PURE__ */ u({
852
530
  cancelButtonText: "取消",
853
531
  callback: async (e) => {
854
532
  if (e.action === "confirm") {
855
- if (!s?.id) return;
533
+ if (!n?.id) return;
856
534
  console.log("添加 =》》", e?.value);
857
535
  }
858
536
  }
@@ -870,15 +548,15 @@ var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ G(/* @__PURE__ */ u({
870
548
  async function v(e) {
871
549
  e.id && console.log("删除节点 =》》", e.id);
872
550
  }
873
- return (t, o) => {
874
- let d = w("el-input"), b = w("el-icon"), x = w("el-button"), S = w("el-dropdown-item"), T = w("el-dropdown-menu"), E = w("el-dropdown"), D = w("el-tree-v2");
875
- return y(), i("div", tt, [
876
- e.filterable ? (y(), i("div", nt, [l(d, {
877
- modelValue: u.value,
878
- "onUpdate:modelValue": o[0] ||= (e) => u.value = e,
551
+ return (t, s) => {
552
+ 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");
553
+ return b(), a("div", tt, [
554
+ e.filterable ? (b(), a("div", nt, [u(d, {
555
+ modelValue: c.value,
556
+ "onUpdate:modelValue": s[0] ||= (e) => c.value = e,
879
557
  placeholder: e.placeholder ?? "请输入",
880
558
  clearable: ""
881
- }, null, 8, ["modelValue", "placeholder"]), s?.hidePlusHandle ? r("", !0) : (y(), n(x, {
559
+ }, null, 8, ["modelValue", "placeholder"]), n?.hidePlusHandle ? i("", !0) : (b(), r(x, {
882
560
  key: 0,
883
561
  style: {
884
562
  margin: "0px",
@@ -886,14 +564,14 @@ var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ G(/* @__PURE__ */ u({
886
564
  },
887
565
  link: ""
888
566
  }, {
889
- default: N(() => [l(b, { size: 22 }, {
890
- default: N(() => [l(A(ze), { onClick: o[1] ||= (e) => g() })]),
567
+ default: N(() => [u(y, { size: 22 }, {
568
+ default: N(() => [u(j(Ie), { onClick: s[1] ||= (e) => g() })]),
891
569
  _: 1
892
570
  })]),
893
571
  _: 1
894
- }))])) : r("", !0),
895
- C(t.$slots, "handle", { style: "margin-top: 8px" }, void 0, !0),
896
- l(D, p({
572
+ }))])) : i("", !0),
573
+ w(t.$slots, "handle", { style: "margin-top: 8px" }, void 0, !0),
574
+ u(D, m({
897
575
  ref_key: "treeRef",
898
576
  ref: f,
899
577
  style: { "margin-top": "8px" }
@@ -901,59 +579,59 @@ var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ G(/* @__PURE__ */ u({
901
579
  ...t.$props,
902
580
  ...t.$attrs
903
581
  }, {
904
- "node-key": s?.nodeKey || "id",
582
+ "node-key": n?.nodeKey || "id",
905
583
  "highlight-current": !0,
906
- "filter-method": m
584
+ "filter-method": p
907
585
  }), {
908
- default: N((u) => [u?.data ? (y(), i("div", rt, [a("div", it, [u.data?.children?.length ? (y(), n(b, { key: 0 }, {
909
- default: N(() => [l(A(Ue))]),
586
+ default: N((c) => [c?.data ? (b(), a("div", rt, [o("div", it, [c.data?.children?.length ? (b(), r(y, { key: 0 }, {
587
+ default: N(() => [u(j(Be))]),
910
588
  _: 1
911
- })) : r("", !0), c(" " + O(u.data?.[e.props?.label || "label"]) + " " + O(u.data?.children?.length ? `(${u.data.children.length})` : ""), 1)]), s.hideNodeHandle ? r("", !0) : (y(), n(E, {
589
+ })) : i("", !0), l(" " + k(c.data?.[e.props?.label || "label"]) + " " + k(c.data?.children?.length ? `(${c.data.children.length})` : ""), 1)]), n.hideNodeHandle ? i("", !0) : (b(), r(E, {
912
590
  key: 0,
913
591
  trigger: "click"
914
592
  }, {
915
- dropdown: N(() => [l(T, null, {
593
+ dropdown: N(() => [u(C, null, {
916
594
  default: N(() => [
917
- s?.hideNodeAdd ? r("", !0) : (y(), n(S, {
595
+ n?.hideNodeAdd ? i("", !0) : (b(), r(S, {
918
596
  key: 0,
919
- onClick: o[2] ||= (e) => g()
597
+ onClick: s[2] ||= (e) => g()
920
598
  }, {
921
- default: N(() => [l(b, null, {
922
- default: N(() => [l(A(Ve))]),
599
+ default: N(() => [u(y, null, {
600
+ default: N(() => [u(j(Re))]),
923
601
  _: 1
924
- }), o[3] ||= c("添加 ", -1)]),
602
+ }), s[3] ||= l("添加 ", -1)]),
925
603
  _: 1
926
604
  })),
927
- s?.hideNodeEdit ? r("", !0) : (y(), n(S, {
605
+ n?.hideNodeEdit ? i("", !0) : (b(), r(S, {
928
606
  key: 1,
929
- onClick: (e) => _(u.data)
607
+ onClick: (e) => _(c.data)
930
608
  }, {
931
- default: N(() => [l(b, null, {
932
- default: N(() => [l(A(He))]),
609
+ default: N(() => [u(y, null, {
610
+ default: N(() => [u(j(ze))]),
933
611
  _: 1
934
- }), o[4] ||= c("编辑 ", -1)]),
612
+ }), s[4] ||= l("编辑 ", -1)]),
935
613
  _: 1
936
614
  }, 8, ["onClick"])),
937
- s?.hideNodeDel ? r("", !0) : (y(), n(S, {
615
+ n?.hideNodeDel ? i("", !0) : (b(), r(S, {
938
616
  key: 2,
939
- onClick: (e) => v(u.data)
617
+ onClick: (e) => v(c.data)
940
618
  }, {
941
- default: N(() => [a("span", at, [l(b, null, {
942
- default: N(() => [l(A(Be))]),
619
+ default: N(() => [o("span", at, [u(y, null, {
620
+ default: N(() => [u(j(Le))]),
943
621
  _: 1
944
- }), o[5] ||= c("删除 ", -1)])]),
622
+ }), s[5] ||= l("删除 ", -1)])]),
945
623
  _: 1
946
624
  }, 8, ["onClick"])),
947
- C(t.$slots, "node-handle", { data: u.data }, void 0, !0)
625
+ w(t.$slots, "node-handle", { data: c.data }, void 0, !0)
948
626
  ]),
949
627
  _: 2
950
628
  }, 1024)]),
951
- default: N(() => [l(b, { onClick: (e) => h(e, u.data) }, {
952
- default: N(() => [l(A(We))]),
629
+ default: N(() => [u(y, { onClick: (e) => h(e, c.data) }, {
630
+ default: N(() => [u(j(Ve))]),
953
631
  _: 1
954
632
  }, 8, ["onClick"])]),
955
633
  _: 2
956
- }, 1024))])) : r("", !0)]),
634
+ }, 1024))])) : i("", !0)]),
957
635
  _: 3
958
636
  }, 16, ["node-key"])
959
637
  ]);
@@ -965,10 +643,10 @@ var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ G(/* @__PURE__ */ u({
965
643
  "justify-content": "space-between",
966
644
  "align-items": "center",
967
645
  gap: "10px"
968
- } }, lt = { style: { margin: "10px 0px" } }, ut = ["onClick"], dt = { key: 0 }, ft = /* @__PURE__ */ G(/* @__PURE__ */ u({
646
+ } }, lt = { style: { margin: "10px 0px" } }, ut = ["onClick"], dt = { key: 0 }, ft = /* @__PURE__ */ K(/* @__PURE__ */ d({
969
647
  __name: "index",
970
648
  props: {
971
- loading: { default: () => x(!1) },
649
+ loading: { default: () => S(!1) },
972
650
  data: {},
973
651
  placeholder: {},
974
652
  props: {},
@@ -976,36 +654,36 @@ var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ G(/* @__PURE__ */ u({
976
654
  filterable: { type: Boolean }
977
655
  },
978
656
  emits: ["node-click"],
979
- setup(o, { emit: s }) {
980
- let c = s, l = x(""), u = x(), d = t(() => l.value ? o.data.filter((e) => e[o.props?.label || "label"]?.includes(l.value)) : o.data);
981
- M(() => [u.value, o.data?.[0]], (e) => {
982
- !e[0] && e[1] && (u.value = o.data?.[0]);
657
+ setup(e, { emit: s }) {
658
+ let c = s, l = S(""), u = S(), d = n(() => l.value ? e.data.filter((t) => t[e.props?.label || "label"]?.includes(l.value)) : e.data);
659
+ M(() => [u.value, e.data?.[0]], (t) => {
660
+ !t[0] && t[1] && (u.value = e.data?.[0]);
983
661
  }, { immediate: !0 });
984
662
  function f(e) {
985
663
  u.value = e, c("node-click", e);
986
664
  }
987
- return (t, s) => {
988
- let c = w("el-input");
989
- return y(), i("div", st, [
990
- a("div", ct, [o.filterable ? (y(), n(c, {
665
+ return (n, s) => {
666
+ let c = T("el-input");
667
+ return b(), a("div", st, [
668
+ o("div", ct, [e.filterable ? (b(), r(c, {
991
669
  key: 0,
992
670
  modelValue: l.value,
993
671
  "onUpdate:modelValue": s[0] ||= (e) => l.value = e,
994
- placeholder: o.placeholder ?? "请输入"
995
- }, null, 8, ["modelValue", "placeholder"])) : r("", !0), C(t.$slots, "plus", {}, void 0, !0)]),
996
- a("div", lt, [C(t.$slots, "handle", {}, void 0, !0)]),
997
- P((y(), i("ul", p({
672
+ placeholder: e.placeholder ?? "请输入"
673
+ }, null, 8, ["modelValue", "placeholder"])) : i("", !0), w(n.$slots, "plus", {}, void 0, !0)]),
674
+ o("div", lt, [w(n.$slots, "handle", {}, void 0, !0)]),
675
+ P((b(), a("ul", m({
998
676
  class: "infinite-list",
999
677
  "infinite-scroll-immediate": !1
1000
- }, t.$attrs), [(y(!0), i(e, null, S(d.value, (e, n) => (y(), i("li", {
1001
- key: "infinite-list-" + n,
1002
- class: h({
678
+ }, n.$attrs), [(b(!0), a(t, null, C(d.value, (t, r) => (b(), a("li", {
679
+ key: "infinite-list-" + r,
680
+ class: g({
1003
681
  "infinite-list-item": !0,
1004
- active: e === u.value
682
+ active: t === u.value
1005
683
  }),
1006
- onClick: (t) => f(e)
1007
- }, [a("span", null, O(e[o.props?.label || "label"]), 1), C(t.$slots, "itemHandle", { data: e }, void 0, !0)], 10, ut))), 128))], 16)), [[A(o.vInfiniteScroll), o.vInfiniteScroll]]),
1008
- o.loading.value ? (y(), i("p", dt, "loading...")) : r("", !0)
684
+ onClick: (e) => f(t)
685
+ }, [o("span", null, k(t[e.props?.label || "label"]), 1), w(n.$slots, "itemHandle", { data: t }, void 0, !0)], 10, ut))), 128))], 16)), [[j(e.vInfiniteScroll), e.vInfiniteScroll]]),
686
+ e.loading.value ? (b(), a("p", dt, "loading...")) : i("", !0)
1009
687
  ]);
1010
688
  };
1011
689
  }
@@ -1016,7 +694,7 @@ var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ G(/* @__PURE__ */ u({
1016
694
  "margin-bottom": "10px",
1017
695
  "border-bottom": "1px solid #e5e5e5"
1018
696
  }
1019
- }, mt = { key: 1 }, ht = /* @__PURE__ */ G(/* @__PURE__ */ u({
697
+ }, mt = { key: 1 }, ht = /* @__PURE__ */ K(/* @__PURE__ */ d({
1020
698
  __name: "index",
1021
699
  props: {
1022
700
  data: {},
@@ -1029,33 +707,33 @@ var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ G(/* @__PURE__ */ u({
1029
707
  extra: {},
1030
708
  labelWidth: {}
1031
709
  },
1032
- setup(t) {
1033
- let a = o(t, [
710
+ setup(e) {
711
+ let n = s(e, [
1034
712
  "title",
1035
713
  "column",
1036
714
  "fields",
1037
715
  "data"
1038
716
  ]);
1039
717
  return (o, s) => {
1040
- let c = w("el-descriptions-item"), u = w("el-descriptions");
1041
- return y(), i(e, null, [
1042
- t.title ? (y(), i("h4", pt, O(t.title), 1)) : r("", !0),
1043
- C(o.$slots, "title", {}, void 0, !0),
1044
- l(u, p({ column: t.column }, a, { class: "ui-descriptions" }), {
1045
- default: N(() => [(y(!0), i(e, null, S(t.fields, (e) => (y(), n(c, {
1046
- key: e.prop,
1047
- label: e.label,
1048
- span: e.span || 2
718
+ let c = T("el-descriptions-item"), l = T("el-descriptions");
719
+ return b(), a(t, null, [
720
+ e.title ? (b(), a("h4", pt, k(e.title), 1)) : i("", !0),
721
+ w(o.$slots, "title", {}, void 0, !0),
722
+ u(l, m({ column: e.column }, n, { class: "ui-descriptions" }), {
723
+ default: N(() => [(b(!0), a(t, null, C(e.fields, (t) => (b(), r(c, {
724
+ key: t.prop,
725
+ label: t.label,
726
+ span: t.span || 2
1049
727
  }, {
1050
- default: N(() => [e.render ? (y(), n(E(A(Y)(e, t.data).component), p({
728
+ default: N(() => [t.render ? (b(), r(D(j(Y)(t, e.data).component), m({
1051
729
  key: 0,
1052
- modelValue: t.data[e.prop],
1053
- "onUpdate:modelValue": (n) => t.data[e.prop] = n
1054
- }, { ref_for: !0 }, A(Y)(e, t.data).props, {
730
+ modelValue: e.data[t.prop],
731
+ "onUpdate:modelValue": (n) => e.data[t.prop] = n
732
+ }, { ref_for: !0 }, j(Y)(t, e.data).props, {
1055
733
  clearable: !0,
1056
- key: e.prop,
734
+ key: t.prop,
1057
735
  style: { display: "inline-block" }
1058
- }), null, 16, ["modelValue", "onUpdate:modelValue"])) : (y(), i("span", mt, O(t.data[e.prop] || "-"), 1))]),
736
+ }), null, 16, ["modelValue", "onUpdate:modelValue"])) : (b(), a("span", mt, k(e.data[t.prop] || "-"), 1))]),
1059
737
  _: 2
1060
738
  }, 1032, ["label", "span"]))), 128))]),
1061
739
  _: 1
@@ -1066,7 +744,7 @@ var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ G(/* @__PURE__ */ u({
1066
744
  }), [["__scopeId", "data-v-f02c30f9"]]), gt = {
1067
745
  key: 0,
1068
746
  class: "dialog-footer"
1069
- }, _t = /* @__PURE__ */ G(/* @__PURE__ */ u({
747
+ }, _t = /* @__PURE__ */ K(/* @__PURE__ */ d({
1070
748
  __name: "index",
1071
749
  props: {
1072
750
  visible: { type: Boolean },
@@ -1081,36 +759,36 @@ var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ G(/* @__PURE__ */ u({
1081
759
  "submit"
1082
760
  ],
1083
761
  setup(e, { emit: t }) {
1084
- let a = t, o = e, s = x();
1085
- function u() {
1086
- a("close"), a("update:visible", !1);
762
+ let n = t, o = e, s = S();
763
+ function c() {
764
+ n("close"), n("update:visible", !1);
1087
765
  }
1088
766
  function d() {
1089
- a("submit", k(s?.value || {})), a("update:visible", !1);
767
+ n("submit", A(s?.value || {})), n("update:visible", !1);
1090
768
  }
1091
769
  return (e, t) => {
1092
- let a = w("el-button"), f = w("el-dialog");
1093
- return y(), n(f, p(e.$attrs, {
770
+ let n = T("el-button"), f = T("el-dialog");
771
+ return b(), r(f, m(e.$attrs, {
1094
772
  "model-value": o.visible,
1095
773
  "show-close": o.disabled,
1096
774
  fullscreen: !o.width,
1097
775
  "destroy-on-close": "",
1098
776
  "lock-scroll": !1,
1099
777
  "close-on-click-modal": !1,
1100
- "onUpdate:modelValue": t[0] ||= (e) => !e && u(),
1101
- onClose: u
778
+ "onUpdate:modelValue": t[0] ||= (e) => !e && c(),
779
+ onClose: c
1102
780
  }), {
1103
- default: N(() => [(y(), n(E(o.component), p({
781
+ default: N(() => [(b(), r(D(o.component), m({
1104
782
  ref_key: "slotRef",
1105
783
  ref: s
1106
- }, o.componentProps), null, 16)), o.disabled ? r("", !0) : (y(), i("div", gt, [l(a, { onClick: u }, {
1107
- default: N(() => [...t[1] ||= [c("取消", -1)]]),
784
+ }, o.componentProps), null, 16)), o.disabled ? i("", !0) : (b(), a("div", gt, [u(n, { onClick: c }, {
785
+ default: N(() => [...t[1] ||= [l("取消", -1)]]),
1108
786
  _: 1
1109
- }), l(a, {
787
+ }), u(n, {
1110
788
  type: "primary",
1111
789
  onClick: d
1112
790
  }, {
1113
- default: N(() => [...t[2] ||= [c("确定", -1)]]),
791
+ default: N(() => [...t[2] ||= [l("确定", -1)]]),
1114
792
  _: 1
1115
793
  })]))]),
1116
794
  _: 1
@@ -1125,13 +803,13 @@ var Je = { class: "filter-buttons" }, Ye = /* @__PURE__ */ G(/* @__PURE__ */ u({
1125
803
  //#endregion
1126
804
  //#region src/components/utils/render.ts
1127
805
  function vt(e) {
1128
- return d("template", { style: {
806
+ return f("template", { style: {
1129
807
  display: "flex",
1130
808
  flexDirection: "row",
1131
809
  flexWrap: "wrap"
1132
810
  } }, (Array.isArray(e) ? e : [e]).map((e) => {
1133
811
  let { text: t, ...n } = e;
1134
- return d(F, {
812
+ return f(F, {
1135
813
  ...n,
1136
814
  link: !0,
1137
815
  size: "small",
@@ -1140,38 +818,38 @@ function vt(e) {
1140
818
  }));
1141
819
  }
1142
820
  function yt(e) {
1143
- return Array.isArray(e) ? d("div", { style: {
821
+ return Array.isArray(e) ? f("div", { style: {
1144
822
  display: "flex",
1145
823
  gap: "8px",
1146
824
  flexDirection: "row",
1147
825
  flexWrap: "wrap"
1148
- } }, e.map((e) => d(B, {
826
+ } }, e.map((e) => f(B, {
1149
827
  ...e,
1150
828
  type: e.type || "primary"
1151
- }, d(W, {
829
+ }, f(W, {
1152
830
  lineClamp: e?.lineClamp,
1153
831
  type: e.type || "primary"
1154
- }, () => e.prop)))) : d(B, {
832
+ }, () => e.prop)))) : f(B, {
1155
833
  ...e,
1156
834
  type: e.type || "primary"
1157
- }, d(W, {
835
+ }, f(W, {
1158
836
  lineClamp: e?.lineClamp,
1159
837
  type: e.type || "primary"
1160
838
  }, () => e.prop));
1161
839
  }
1162
840
  function bt(e) {
1163
- return d("div", { style: {
841
+ return f("div", { style: {
1164
842
  display: "flex",
1165
843
  gap: "4px",
1166
844
  flexDirection: "row",
1167
845
  flexWrap: "wrap"
1168
- } }, (Array.isArray(e.prop) ? e.prop : [e.prop]).map((t) => d(U, e, () => t)));
846
+ } }, (Array.isArray(e.prop) ? e.prop : [e.prop]).map((t) => f(U, e, () => t)));
1169
847
  }
1170
848
  function xt(e) {
1171
- return d(U, { ...e });
849
+ return f(U, { ...e });
1172
850
  }
1173
851
  function St(e) {
1174
- return d(Te, {
852
+ return f(Ee, {
1175
853
  style: { minWidth: "160px" },
1176
854
  ...e,
1177
855
  placeholder: "请选择",
@@ -1180,7 +858,7 @@ function St(e) {
1180
858
  }
1181
859
  function Ct(e) {
1182
860
  let t = e?.type === "datetime" ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
1183
- return d(L, {
861
+ return f(L, {
1184
862
  format: t,
1185
863
  valueFormat: t,
1186
864
  startPlaceholder: "开始时间",
@@ -1192,7 +870,7 @@ function Ct(e) {
1192
870
  }
1193
871
  function wt(e) {
1194
872
  let { start: t = "00:00", end: n = "23:30", ...r } = e;
1195
- return d(ke, {
873
+ return f(Ae, {
1196
874
  start: t,
1197
875
  end: n,
1198
876
  ...r,
@@ -1201,14 +879,14 @@ function wt(e) {
1201
879
  });
1202
880
  }
1203
881
  function Tt(e) {
1204
- return d(R, {
882
+ return f(R, {
1205
883
  ...e,
1206
884
  placeholder: "请输入"
1207
885
  });
1208
886
  }
1209
887
  function Et(e) {
1210
888
  let { align: t = "left", controlsPosition: n = "right", ...r } = e;
1211
- return d(pe, {
889
+ return f(me, {
1212
890
  align: t,
1213
891
  style: {
1214
892
  ...e?.style || {},
@@ -1221,7 +899,7 @@ function Et(e) {
1221
899
  }
1222
900
  function Dt(e) {
1223
901
  let { rows: t = 1, ...n } = e;
1224
- return d(R, {
902
+ return f(R, {
1225
903
  placeholder: "请输入",
1226
904
  rows: t,
1227
905
  ...n,
@@ -1229,20 +907,20 @@ function Dt(e) {
1229
907
  });
1230
908
  }
1231
909
  function Ot(e) {
1232
- return d(z, {
910
+ return f(z, {
1233
911
  placeholder: "请输入",
1234
912
  ...e,
1235
913
  clearable: !1
1236
914
  });
1237
915
  }
1238
916
  function kt(e) {
1239
- return d(Z, e);
917
+ return f(Z, e);
1240
918
  }
1241
919
  function At(e) {
1242
- return d(H, e);
920
+ return f(H, e);
1243
921
  }
1244
922
  function jt(e) {
1245
- return d(W, e, () => e.prop);
923
+ return f(W, e, () => e.prop);
1246
924
  }
1247
925
  var Q = {
1248
926
  button: vt,
@@ -1259,7 +937,7 @@ var Q = {
1259
937
  editor: kt,
1260
938
  radio: At,
1261
939
  text: jt
1262
- }, Mt = /* @__PURE__ */ u({
940
+ }, Mt = /* @__PURE__ */ d({
1263
941
  name: "UiColumn",
1264
942
  __name: "UiColumn",
1265
943
  props: {
@@ -1270,9 +948,9 @@ var Q = {
1270
948
  size: {}
1271
949
  },
1272
950
  emits: ["update:data"],
1273
- setup(t, { emit: a }) {
1274
- let o = a, s = t;
1275
- function l(e, t, n) {
951
+ setup(e, { emit: n }) {
952
+ let o = n, s = e;
953
+ function c(e, t, n) {
1276
954
  let r = {};
1277
955
  Object.keys(Q).forEach((i) => {
1278
956
  let a = i;
@@ -1295,44 +973,44 @@ var Q = {
1295
973
  h: r,
1296
974
  column: n
1297
975
  }) : null;
1298
- return i ? typeof i == "object" ? i : d("div", { innerHTML: String(i) }) : null;
976
+ return i ? typeof i == "object" ? i : f("div", { innerHTML: String(i) }) : null;
1299
977
  }
1300
- return (a, o) => {
1301
- let u = w("UiColumn", !0), d = w("el-table-column"), f = w("el-text");
1302
- return t.column?.children && t.column?.children?.length > 0 ? (y(), n(d, {
978
+ return (n, o) => {
979
+ let u = T("UiColumn", !0), d = T("el-table-column"), f = T("el-text");
980
+ return e.column?.children && e.column?.children?.length > 0 ? (b(), r(d, {
1303
981
  key: 0,
1304
- label: t.column.label,
982
+ label: e.column.label,
1305
983
  align: s.align
1306
984
  }, {
1307
- default: N(() => [(y(!0), i(e, null, S(t.column.children, (e) => (y(), n(u, p({
985
+ default: N(() => [(b(!0), a(t, null, C(e.column.children, (e) => (b(), r(u, m({
1308
986
  column: e,
1309
987
  data: s.data
1310
- }, { ref_for: !0 }, a.$attrs, { align: s.align }), null, 16, [
988
+ }, { ref_for: !0 }, n.$attrs, { align: s.align }), null, 16, [
1311
989
  "column",
1312
990
  "data",
1313
991
  "align"
1314
992
  ]))), 256))]),
1315
993
  _: 1
1316
- }, 8, ["label", "align"])) : (y(), n(d, {
994
+ }, 8, ["label", "align"])) : (b(), r(d, {
1317
995
  key: 1,
1318
- prop: String(t.column.prop),
1319
- label: t.column.label,
1320
- "column-key": String(t.column.prop),
996
+ prop: String(e.column.prop),
997
+ label: e.column.label,
998
+ "column-key": String(e.column.prop),
1321
999
  align: s.align,
1322
- width: t.column.width,
1323
- "show-overflow-tooltip": t.column.showOverflowTooltip
1000
+ width: e.column.width,
1001
+ "show-overflow-tooltip": e.column.showOverflowTooltip
1324
1002
  }, {
1325
- default: N((a) => [a?.row ? (y(), i(e, { key: 0 }, [t.column.render ? (y(), n(E(l(a.row, a.$index, t.column)), {
1003
+ default: N((n) => [n?.row ? (b(), a(t, { key: 0 }, [e.column.render ? (b(), r(D(c(n.row, n.$index, e.column)), {
1326
1004
  key: 0,
1327
1005
  align: s.align,
1328
1006
  size: s.size
1329
- }, null, 8, ["align", "size"])) : (y(), n(f, {
1007
+ }, null, 8, ["align", "size"])) : (b(), r(f, {
1330
1008
  key: 1,
1331
- "line-clamp": t.column?.lineClamp || 2
1009
+ "line-clamp": e.column?.lineClamp || 2
1332
1010
  }, {
1333
- default: N(() => [c(O(a.row[t.column.prop]), 1)]),
1011
+ default: N(() => [l(k(n.row[e.column.prop]), 1)]),
1334
1012
  _: 2
1335
- }, 1032, ["line-clamp"]))], 64)) : r("", !0)]),
1013
+ }, 1032, ["line-clamp"]))], 64)) : i("", !0)]),
1336
1014
  _: 1
1337
1015
  }, 8, [
1338
1016
  "prop",
@@ -1344,7 +1022,7 @@ var Q = {
1344
1022
  ]));
1345
1023
  };
1346
1024
  }
1347
- }), $ = /* @__PURE__ */ G(/* @__PURE__ */ u({
1025
+ }), $ = /* @__PURE__ */ K(/* @__PURE__ */ d({
1348
1026
  __name: "index",
1349
1027
  props: {
1350
1028
  loading: {
@@ -1356,14 +1034,14 @@ var Q = {
1356
1034
  default: !1
1357
1035
  },
1358
1036
  size: { default: "default" },
1359
- data: { default: () => b([]) },
1037
+ data: { default: () => x([]) },
1360
1038
  columns: {},
1361
1039
  align: { default: "left" },
1362
1040
  hidePagination: {
1363
1041
  type: Boolean,
1364
1042
  default: !1
1365
1043
  },
1366
- pagination: { default: () => b({
1044
+ pagination: { default: () => x({
1367
1045
  page: 1,
1368
1046
  pageSize: 10,
1369
1047
  total: 0,
@@ -1380,8 +1058,8 @@ var Q = {
1380
1058
  rowKey: {}
1381
1059
  },
1382
1060
  emits: ["pagination"],
1383
- setup(a, { emit: s }) {
1384
- let c = s, l = o(a, [
1061
+ setup(e, { emit: o }) {
1062
+ let c = o, l = s(e, [
1385
1063
  "loading",
1386
1064
  "border",
1387
1065
  "align",
@@ -1389,28 +1067,28 @@ var Q = {
1389
1067
  "pagination",
1390
1068
  "data",
1391
1069
  "size"
1392
- ]), u = x(), d = t(() => k(l.columns)?.some((e) => e.type === "index")), f = t(() => k(l.columns)?.some((e) => e.type === "selection")), h = t(() => !l.columns || !l.columns.length ? [] : l.columns.filter((e) => e.type !== "index" && e.type !== "selection"));
1393
- M(() => [l.defaultCheckedKeys, a.data], ([e, t]) => {
1394
- !e?.length || !t?.length || m(() => {
1070
+ ]), u = S(), d = n(() => A(l.columns)?.some((e) => e.type === "index")), f = n(() => A(l.columns)?.some((e) => e.type === "selection")), p = n(() => !l.columns || !l.columns.length ? [] : l.columns.filter((e) => e.type !== "index" && e.type !== "selection"));
1071
+ M(() => [l.defaultCheckedKeys, e.data], ([e, t]) => {
1072
+ !e?.length || !t?.length || h(() => {
1395
1073
  if (!u.value) return;
1396
1074
  let n = t.filter((t) => e.includes(t.id));
1397
1075
  u.value.clearSelection(), n.forEach((e) => u.value?.toggleRowSelection(e, !0));
1398
1076
  });
1399
1077
  }, { immediate: !0 });
1400
- function g(e, t) {
1401
- a.pagination.page = e || a.pagination.page, a.pagination.pageSize = t || a.pagination.pageSize, c("pagination", k(a.pagination));
1078
+ function g(t, n) {
1079
+ e.pagination.page = t || e.pagination.page, e.pagination.pageSize = n || e.pagination.pageSize, c("pagination", A(e.pagination));
1402
1080
  }
1403
- function _(e, t, n) {
1404
- a.data[e] && (a.data[e] = {
1405
- ...a.data[e],
1406
- [t]: n
1081
+ function _(t, n, r) {
1082
+ e.data[t] && (e.data[t] = {
1083
+ ...e.data[t],
1084
+ [n]: r
1407
1085
  });
1408
1086
  }
1409
- return (t, o) => {
1410
- let s = w("el-table-column"), c = w("el-table"), m = w("el-pagination"), v = T("loading");
1411
- return y(), i("div", null, [
1412
- P((y(), n(c, p({ border: a.border }, t.$attrs, {
1413
- data: a.data,
1087
+ return (n, o) => {
1088
+ let s = T("el-table-column"), c = T("el-table"), h = T("el-pagination"), v = E("loading");
1089
+ return b(), a("div", null, [
1090
+ P((b(), r(c, m({ border: e.border }, n.$attrs, {
1091
+ data: e.data,
1414
1092
  lazy: !0,
1415
1093
  class: "ui-table",
1416
1094
  fit: "",
@@ -1418,30 +1096,30 @@ var Q = {
1418
1096
  ref: u
1419
1097
  }), {
1420
1098
  default: N(() => [
1421
- f.value ? (y(), n(s, {
1099
+ f.value ? (b(), r(s, {
1422
1100
  key: 0,
1423
1101
  type: "selection",
1424
1102
  selectable: l.selectable,
1425
1103
  "column-key": "selection_0",
1426
- align: a.align,
1104
+ align: e.align,
1427
1105
  fixed: "left"
1428
- }, null, 8, ["selectable", "align"])) : r("", !0),
1429
- d.value ? (y(), n(s, {
1106
+ }, null, 8, ["selectable", "align"])) : i("", !0),
1107
+ d.value ? (b(), r(s, {
1430
1108
  key: 1,
1431
1109
  fixed: "left",
1432
1110
  type: "index",
1433
1111
  label: "序号",
1434
1112
  width: "60",
1435
1113
  "column-key": "index_1",
1436
- align: a.align
1437
- }, null, 8, ["align"])) : r("", !0),
1438
- (y(!0), i(e, null, S(h.value, (e, t) => (y(), n(Mt, {
1439
- key: t + "column_" + e?.prop?.toString(),
1440
- column: e,
1441
- data: a.data,
1442
- align: a.align,
1114
+ align: e.align
1115
+ }, null, 8, ["align"])) : i("", !0),
1116
+ (b(!0), a(t, null, C(p.value, (t, n) => (b(), r(Mt, {
1117
+ key: n + "column_" + t?.prop?.toString(),
1118
+ column: t,
1119
+ data: e.data,
1120
+ align: e.align,
1443
1121
  "onUpdate:data": _,
1444
- size: a.size
1122
+ size: e.size
1445
1123
  }, null, 8, [
1446
1124
  "column",
1447
1125
  "data",
@@ -1450,24 +1128,24 @@ var Q = {
1450
1128
  ]))), 128))
1451
1129
  ]),
1452
1130
  _: 1
1453
- }, 16, ["border", "data"])), [[v, a.loading]]),
1454
- a.hidePagination ? r("", !0) : (y(), n(m, {
1131
+ }, 16, ["border", "data"])), [[v, e.loading]]),
1132
+ e.hidePagination ? i("", !0) : (b(), r(h, {
1455
1133
  key: 0,
1456
1134
  class: "ui-pagination",
1457
1135
  size: "small",
1458
1136
  background: "",
1459
1137
  layout: "total, sizes, prev, pager, next, jumper",
1460
- "page-sizes": a.pagination?.pageSizes || [
1138
+ "page-sizes": e.pagination?.pageSizes || [
1461
1139
  10,
1462
1140
  20,
1463
1141
  50
1464
1142
  ],
1465
- "page-size": a.pagination.pageSize,
1466
- "onUpdate:pageSize": o[0] ||= (e) => a.pagination.pageSize = e,
1467
- "current-page": a.pagination.page,
1468
- "onUpdate:currentPage": o[1] ||= (e) => a.pagination.page = e,
1469
- total: a.pagination.total,
1470
- "onUpdate:total": o[2] ||= (e) => a.pagination.total = e,
1143
+ "page-size": e.pagination.pageSize,
1144
+ "onUpdate:pageSize": o[0] ||= (t) => e.pagination.pageSize = t,
1145
+ "current-page": e.pagination.page,
1146
+ "onUpdate:currentPage": o[1] ||= (t) => e.pagination.page = t,
1147
+ total: e.pagination.total,
1148
+ "onUpdate:total": o[2] ||= (t) => e.pagination.total = t,
1471
1149
  onChange: g
1472
1150
  }, null, 8, [
1473
1151
  "page-sizes",
@@ -1475,53 +1153,53 @@ var Q = {
1475
1153
  "current-page",
1476
1154
  "total"
1477
1155
  ])),
1478
- C(t.$slots, "default", {}, void 0, !0)
1156
+ w(n.$slots, "default", {}, void 0, !0)
1479
1157
  ]);
1480
1158
  };
1481
1159
  }
1482
1160
  }), [["__scopeId", "data-v-3402edfe"]]), Nt = {
1483
1161
  ElButton: F,
1484
- ElCard: ne,
1485
- ElCol: I,
1486
- ElConfigProvider: re,
1162
+ ElCard: I,
1163
+ ElCol: re,
1164
+ ElConfigProvider: ie,
1487
1165
  ElDatePicker: L,
1488
- ElDescriptions: ie,
1489
- ElDescriptionsItem: ae,
1490
- ElDialog: oe,
1491
- ElDropdown: se,
1492
- ElDropdownItem: ce,
1493
- ElDropdownMenu: le,
1494
- ElForm: ue,
1495
- ElFormItem: de,
1496
- ElIcon: fe,
1166
+ ElDescriptions: ae,
1167
+ ElDescriptionsItem: oe,
1168
+ ElDialog: se,
1169
+ ElDropdown: ce,
1170
+ ElDropdownItem: le,
1171
+ ElDropdownMenu: ue,
1172
+ ElForm: de,
1173
+ ElFormItem: fe,
1174
+ ElIcon: pe,
1497
1175
  ElInput: R,
1498
- ElInputNumber: pe,
1176
+ ElInputNumber: me,
1499
1177
  ElInputTag: z,
1500
1178
  ElLink: B,
1501
- ElOption: ge,
1502
- ElOptionGroup: _e,
1503
- ElPagination: ve,
1504
- ElPopconfirm: ye,
1505
- ElPopover: be,
1506
- ElRadio: xe,
1507
- ElRadioButton: Se,
1179
+ ElOption: _e,
1180
+ ElOptionGroup: ve,
1181
+ ElPagination: ye,
1182
+ ElPopconfirm: be,
1183
+ ElPopover: xe,
1184
+ ElRadio: Se,
1185
+ ElRadioButton: Ce,
1508
1186
  ElRadioGroup: H,
1509
- ElRow: Ce,
1510
- ElScrollbar: we,
1511
- ElSelect: Te,
1512
- ElSwitch: Ee,
1513
- ElTable: De,
1514
- ElTableColumn: Oe,
1187
+ ElRow: we,
1188
+ ElScrollbar: Te,
1189
+ ElSelect: Ee,
1190
+ ElSwitch: De,
1191
+ ElTable: Oe,
1192
+ ElTableColumn: ke,
1515
1193
  ElTag: U,
1516
1194
  ElText: W,
1517
- ElTimeSelect: ke,
1518
- ElTreeV2: Ae,
1519
- ElUpload: je,
1195
+ ElTimeSelect: Ae,
1196
+ ElTreeV2: je,
1197
+ ElUpload: Me,
1520
1198
  ElMessageBox: V,
1521
- ElMessage: me,
1522
- ElNotification: he
1199
+ ElMessage: he,
1200
+ ElNotification: ge
1523
1201
  }, Pt = {
1524
- UiCard: K,
1202
+ UiCard: q,
1525
1203
  UiTable: $,
1526
1204
  UiFilter: Ye,
1527
1205
  UiForm: $e,
@@ -1530,10 +1208,10 @@ var Q = {
1530
1208
  UiInfiniteScroll: ft,
1531
1209
  UiDescriptions: ht,
1532
1210
  UiDialog: _t
1533
- }, Ft = { install(e) {
1534
- for (let [, t] of Object.entries(Nt)) t?.name && e.component(t.name, t);
1535
- Me({ locale: Pe });
1536
- for (let [t, n] of Object.entries(Pt)) e.component(t, n);
1211
+ }, Ft = { install(t) {
1212
+ for (let [, e] of Object.entries(Nt)) e?.name && t.component(e.name, e);
1213
+ Ne({ locale: e });
1214
+ for (let [e, n] of Object.entries(Pt)) t.component(e, n);
1537
1215
  } };
1538
1216
  //#endregion
1539
- export { K as UiCard, ht as UiDescriptions, _t as UiDialog, Z as UiEditor, Ye as UiFilter, $e as UiForm, ft as UiInfiniteScroll, $ as UiTable, ot as UiTree, Ft as default };
1217
+ export { q as UiCard, ht as UiDescriptions, _t as UiDialog, Z as UiEditor, Ye as UiFilter, $e as UiForm, ft as UiInfiniteScroll, $ as UiTable, ot as UiTree, Ft as default };