@web-utils/form-ui 1.0.0-beta47 → 1.0.0-beta49

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.
Files changed (118) hide show
  1. package/chunks/{C9dGL28n.mjs → 6yfBZFOB.mjs} +2 -2
  2. package/chunks/B-zqRAXo.mjs +69 -0
  3. package/chunks/{CXvGoZKJ.mjs → B1IPSTA6.mjs} +2 -2
  4. package/chunks/{Ct5bDJ50.mjs → B9gA65rt2.mjs} +3 -3
  5. package/chunks/{C1AgOUe_.mjs → BA2KEptL.mjs} +2 -2
  6. package/chunks/BTlLPtSk2.mjs +146 -0
  7. package/chunks/{Bm5eiSmT.mjs → BUGCiCnl.mjs} +11 -7
  8. package/chunks/{DiJyms_r.mjs → BbSPWDDZ.mjs} +2 -2
  9. package/chunks/{BH_JJ8Xh.mjs → BfxDxIg0.mjs} +2 -2
  10. package/chunks/{C3Uo82-I.mjs → BqWvBF14.mjs} +3 -3
  11. package/chunks/BsZgAJX_2.mjs +81 -0
  12. package/chunks/BtOr-3u02.mjs +568 -0
  13. package/chunks/{DXYgAmil.mjs → BtcjAHE6.mjs} +2 -2
  14. package/chunks/{DhtHh0jk.mjs → ByHz4mmh.mjs} +2 -2
  15. package/chunks/{BufIRDd0.mjs → C2zgFLYO.mjs} +1 -1
  16. package/chunks/{XCGWTz41.mjs → CAd1zK9Q.mjs} +2 -2
  17. package/chunks/{CSyJ-vEx.mjs → CJdkjadi.mjs} +1 -1
  18. package/chunks/{CFOGMFgo.mjs → CabldOLo.mjs} +17 -10
  19. package/chunks/{Bd1UFJic.mjs → Cln3RBAD.mjs} +21 -21
  20. package/chunks/{CTKmEf2M.mjs → CqoVAnxC2.mjs} +2 -2
  21. package/chunks/{DF9fJMQS.mjs → CuAoMR3n.mjs} +3 -3
  22. package/chunks/{XqRTtFfp.mjs → CxTg0r4n.mjs} +1 -1
  23. package/chunks/{pdwFQpA8.mjs → D0Zg2CV0.mjs} +3 -3
  24. package/chunks/{BsCS7SB5.mjs → DA7oGHSX.mjs} +2 -2
  25. package/chunks/DOZRzqlo.mjs +37 -0
  26. package/chunks/{Cj59E77g.mjs → D_qiRmiE.mjs} +5 -5
  27. package/chunks/{cmuHpsX6.mjs → DcTVYqeJ.mjs} +29 -25
  28. package/chunks/{B3ajWLh3.mjs → Dkd5BC98.mjs} +2 -2
  29. package/chunks/DyHLMash.mjs +614 -0
  30. package/chunks/{ChmDDqoZ2.mjs → GI8krYU82.mjs} +1 -1
  31. package/chunks/{D8UVq1t1.mjs → V2p-PCpL.mjs} +6 -6
  32. package/chunks/{taicx2sd.mjs → bFbPPcdq.mjs} +2 -2
  33. package/chunks/{TvNHGVAP.mjs → eae6huQB.mjs} +2 -2
  34. package/chunks/gCeDFHo1.mjs +32 -0
  35. package/chunks/{BvA0aMEE.mjs → gLPy4Sus.mjs} +1 -1
  36. package/chunks/{o6VhYAN52.mjs → hzaYr6Ud2.mjs} +2 -2
  37. package/chunks/{CqTcEefA.mjs → pIzhYsBe.mjs} +2 -2
  38. package/chunks/{CWfUPCtS.mjs → vXQf89tS.mjs} +274 -273
  39. package/chunks/{BWBHzD5N.mjs → wXeqV-_7.mjs} +2 -2
  40. package/confirm-button/index.d.ts +2 -0
  41. package/confirm-button/index.mjs +1 -1
  42. package/confirmable/index.d.ts +2 -0
  43. package/confirmable/index.mjs +1 -1
  44. package/dict-render/index.d.ts +28 -0
  45. package/dict-render/index.mjs +2 -0
  46. package/editable-tree/index.mjs +1 -1
  47. package/element-dialog/index.d.ts +2 -2
  48. package/element-dialog/index.mjs +1 -1
  49. package/{resize-observer → element-resize-observer}/index.mjs +3 -3
  50. package/form-button/index.d.ts +2 -0
  51. package/form-cascader/index.d.ts +3 -3
  52. package/form-cascader/index.mjs +1 -1
  53. package/form-checkbox/index.mjs +1 -1
  54. package/form-checkbox-group/index.mjs +2 -0
  55. package/form-date-picker/index.mjs +1 -1
  56. package/form-holder/index.mjs +1 -1
  57. package/form-image/index.mjs +1 -1
  58. package/form-input/index.mjs +1 -1
  59. package/form-input-cron-expression/index.mjs +1 -1
  60. package/form-input-email/index.mjs +1 -1
  61. package/form-input-id-card/index.mjs +1 -1
  62. package/form-input-number/index.mjs +1 -1
  63. package/form-input-phone-number/index.mjs +1 -1
  64. package/form-input-tag/index.mjs +1 -1
  65. package/form-input-time/index.mjs +1 -1
  66. package/form-item-group/index.mjs +1 -1
  67. package/form-item-x/index.mjs +1 -1
  68. package/form-radio-group/index.d.ts +1 -1
  69. package/form-radio-group/index.mjs +1 -1
  70. package/form-rate/index.mjs +1 -1
  71. package/form-row/index.mjs +1 -1
  72. package/form-select/index.d.ts +1 -1
  73. package/form-select/index.mjs +1 -1
  74. package/form-slider/index.mjs +1 -1
  75. package/form-switch/index.mjs +1 -1
  76. package/form-table/index.d.ts +269 -0
  77. package/form-table/index.mjs +2 -0
  78. package/form-table-plus/index.d.ts +266 -0
  79. package/form-table-plus/index.mjs +2 -0
  80. package/form-text/index.mjs +1 -1
  81. package/form-textarea/index.mjs +1 -1
  82. package/form-time-select/index.mjs +1 -1
  83. package/helper/dictionary.mjs +7 -7
  84. package/iframe-window/index.mjs +1 -1
  85. package/index.css +1 -1
  86. package/index.d.ts +8 -3
  87. package/index.mjs +55 -50
  88. package/package.json +1 -1
  89. package/pageable-table/index.d.ts +7 -7
  90. package/pageable-table/index.mjs +1 -1
  91. package/sub-table/index.d.ts +100 -0
  92. package/sub-table/index.mjs +472 -0
  93. package/sub-table/style.css +1 -0
  94. package/sub-table-plus/index.d.ts +97 -0
  95. package/sub-table-plus/index.mjs +2 -0
  96. package/sub-table-plus/style.css +1 -0
  97. package/table-column/index.mjs +1 -1
  98. package/table-column-def/index.d.ts +18 -8
  99. package/table-column-def/index.mjs +1 -1
  100. package/table-view/index.mjs +107 -106
  101. package/toolbar/index.mjs +1 -1
  102. package/toolbar-button/index.d.ts +2 -2
  103. package/toolbar-button/index.mjs +1 -1
  104. package/vue-cron/index.mjs +1 -1
  105. package/web-types.json +1 -1
  106. package/x-input-tag/index.mjs +52 -51
  107. package/year-calendar/index.mjs +1 -1
  108. package/chunks/CLPSCSsy.mjs +0 -603
  109. package/chunks/CuG2Q-PM.mjs +0 -100
  110. package/form-check-box-group/index.mjs +0 -2
  111. package/chunks/{Ds_Tpa_M.mjs → BBERmTup.mjs} +0 -0
  112. package/chunks/{B1MSrc6f.mjs → CkOD-_VV.mjs} +0 -0
  113. package/chunks/{DDmQcNm6.mjs → DOP3aBxf.mjs} +0 -0
  114. package/chunks/{DJe97Fgi.mjs → hlha6Bhc.mjs} +0 -0
  115. package/{resize-observer → element-resize-observer}/index.d.ts +0 -0
  116. package/{resize-observer → element-resize-observer}/style.css +0 -0
  117. package/{form-check-box-group → form-checkbox-group}/index.d.ts +1 -1
  118. /package/{form-check-box-group → form-checkbox-group}/style.css +0 -0
@@ -0,0 +1,614 @@
1
+ import { d as e, n as t, r as n } from "./DcTVYqeJ.mjs";
2
+ import { getDictLabel as r } from "../helper/dictionary.mjs";
3
+ import { pageableTableContextKey as i } from "../constants/index.mjs";
4
+ import { t as a } from "./CxTg0r4n.mjs";
5
+ import o from "../element-resize-observer/index.mjs";
6
+ import { t as s } from "./B-zqRAXo.mjs";
7
+ import { useVisibilityChange as c } from "../hook/useVisibilityChange.mjs";
8
+ import "@web-utils/core";
9
+ import { Fragment as l, computed as u, createBlock as d, createTextVNode as f, createVNode as p, inject as m, isVNode as h, mergeModels as g, mergeProps as _, nextTick as v, onUpdated as ee, openBlock as y, provide as te, reactive as b, ref as x, toDisplayString as S, useModel as C, useTemplateRef as w, watch as T, withCtx as E } from "vue";
10
+ import { ElMessage as D } from "element-plus";
11
+ import { ElCheckbox as O, ElDrawer as k, ElEmpty as ne, ElPagination as re, ElRadio as A, ElTable as j, ElTableColumn as M } from "element-plus/es";
12
+ import { useEventBus as N } from "@web-utils/vue/hooks/useEventBus";
13
+ //#region src/components/table/components/TableColumnFilter.vue
14
+ var ie = /* @__PURE__ */ Object.assign({ name: "TableColumnFilter" }, {
15
+ __name: "TableColumnFilter",
16
+ props: /* @__PURE__ */ g({ columns: {
17
+ type: Array,
18
+ default: () => []
19
+ } }, {
20
+ modelValue: {
21
+ type: Boolean,
22
+ default: !1
23
+ },
24
+ modelModifiers: {}
25
+ }),
26
+ emits: ["update:modelValue"],
27
+ setup(e, { expose: t }) {
28
+ let n = C(e, "modelValue"), r = b({}), i = b({}), a = b({}), o = b({}), s = (e, t, n) => {
29
+ n === "hide" ? r[t.prop] = e : n === "fixed" ? i[t.prop] = e : n === "filterable" ? a[t.prop] = e : n === "sortable" && (o[t.prop] = e);
30
+ };
31
+ return t({
32
+ hideProps: r,
33
+ fixedProps: i,
34
+ filterableProps: a,
35
+ sortableProps: o
36
+ }), (t, r) => {
37
+ let i = M, a = O, o = j, c = k;
38
+ return y(), d(c, {
39
+ modelValue: n.value,
40
+ "onUpdate:modelValue": r[0] || (r[0] = (e) => n.value = e),
41
+ class: "table-column-filter",
42
+ title: "表格设置",
43
+ "append-to-body": ""
44
+ }, {
45
+ default: E(() => [p(o, {
46
+ data: e.columns,
47
+ border: ""
48
+ }, {
49
+ default: E(() => [
50
+ p(i, { label: "列名" }, {
51
+ default: E(({ row: e }) => [f(S(e.label), 1)]),
52
+ _: 1
53
+ }),
54
+ p(i, {
55
+ label: "隐藏",
56
+ align: "center"
57
+ }, {
58
+ default: E(({ row: e }) => [p(a, { onChange: (t) => s(t, e, "hide") }, null, 8, ["onChange"])]),
59
+ _: 1
60
+ }),
61
+ p(i, {
62
+ label: "冻结",
63
+ align: "center"
64
+ }, {
65
+ default: E(({ row: e }) => [p(a, { onChange: (t) => s(t, e, "fixed") }, null, 8, ["onChange"])]),
66
+ _: 1
67
+ }),
68
+ p(i, {
69
+ label: "过滤",
70
+ align: "center"
71
+ }, {
72
+ default: E(({ row: e }) => [p(a, { onChange: (t) => s(t, e, "filterable") }, null, 8, ["onChange"])]),
73
+ _: 1
74
+ }),
75
+ p(i, {
76
+ label: "排序",
77
+ align: "center"
78
+ }, {
79
+ default: E(({ row: e }) => [p(a, {
80
+ title: e.allowSort ? null : "该列不支持排序!",
81
+ disabled: !e.allowSort,
82
+ onChange: (t) => s(t, e, "sortable")
83
+ }, null, 8, [
84
+ "title",
85
+ "disabled",
86
+ "onChange"
87
+ ])]),
88
+ _: 1
89
+ })
90
+ ]),
91
+ _: 1
92
+ }, 8, ["data"])]),
93
+ _: 1
94
+ }, 8, ["modelValue"]);
95
+ };
96
+ }
97
+ });
98
+ //#endregion
99
+ //#region src/components/table/components/TableColumnFilterable.vue?vue&type=script&lang.jsx
100
+ function P(e) {
101
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !h(e);
102
+ }
103
+ //#endregion
104
+ //#region src/components/table/components/TableColumnFilterable.vue
105
+ var ae = {
106
+ name: "TableColumnFilterable",
107
+ props: {
108
+ filterable: Boolean,
109
+ prop: String
110
+ },
111
+ setup(e, { attrs: t, slots: n }) {
112
+ let r = m(i, null), a = u(() => {
113
+ if (e.filterable && r) return (e, t, n) => t[n.property] === e;
114
+ }), o = u(() => {
115
+ if (e.filterable && r) return [...new Set(r.records.value.map((t) => t[e.prop]).filter((e) => e))].map((e) => ({
116
+ text: e,
117
+ value: e
118
+ }));
119
+ });
120
+ return () => p(s, _(t, {
121
+ prop: e.prop,
122
+ filterable: e.filterable,
123
+ filterMethod: a.value,
124
+ filters: o.value
125
+ }), P(n) ? n : { default: () => [n] });
126
+ }
127
+ }, F = {
128
+ data: {
129
+ type: Array,
130
+ default: () => []
131
+ },
132
+ height: [String, Number],
133
+ maxHeight: [String, Number],
134
+ stripe: {
135
+ type: Boolean,
136
+ default: !1
137
+ },
138
+ border: {
139
+ type: Boolean,
140
+ default: !0
141
+ },
142
+ size: String,
143
+ fit: {
144
+ type: Boolean,
145
+ default: !0
146
+ },
147
+ showHeader: {
148
+ type: Boolean,
149
+ default: !0
150
+ },
151
+ highlightCurrentRow: {
152
+ type: Boolean,
153
+ default: !1
154
+ },
155
+ currentRowKey: [String, Number],
156
+ rowClassName: [Function, String],
157
+ rowStyle: [Function, Object],
158
+ cellClassName: [Function, String],
159
+ cellStyle: [Function, Object],
160
+ headerRowClassName: [Function, String],
161
+ headerRowStyle: [Function, Object],
162
+ headerCellClassName: [Function, String],
163
+ headerCellStyle: [Function, Object],
164
+ rowKey: {
165
+ type: [Function, String],
166
+ default: "id"
167
+ },
168
+ emptyText: {
169
+ type: String,
170
+ default: "No Data"
171
+ },
172
+ defaultExpandAll: {
173
+ type: Boolean,
174
+ default: !1
175
+ },
176
+ expandRowKeys: {
177
+ type: Array,
178
+ default: () => []
179
+ },
180
+ defaultSort: Object,
181
+ tooltipEffect: {
182
+ type: String,
183
+ default: "dark"
184
+ },
185
+ tooltipOptions: {
186
+ type: Object,
187
+ default: () => ({})
188
+ },
189
+ appendFilterPanelTo: String,
190
+ showSummary: {
191
+ type: Boolean,
192
+ default: !1
193
+ },
194
+ sumText: {
195
+ type: String,
196
+ default: "Sum"
197
+ },
198
+ summaryMethod: Function,
199
+ spanMethod: Function,
200
+ selectOnIndeterminate: {
201
+ type: Boolean,
202
+ default: !0
203
+ },
204
+ indent: {
205
+ type: Number,
206
+ default: 16
207
+ },
208
+ lazy: {
209
+ type: Boolean,
210
+ default: !1
211
+ },
212
+ load: Function,
213
+ treeProps: {
214
+ type: Object,
215
+ default: () => ({})
216
+ },
217
+ tableLayout: {
218
+ type: String,
219
+ default: "fixed"
220
+ },
221
+ scrollbarAlwaysOn: {
222
+ type: Boolean,
223
+ default: !1
224
+ },
225
+ showOverflowTooltip: [Boolean, Object],
226
+ flexible: {
227
+ type: Boolean,
228
+ default: !1
229
+ },
230
+ scrollbarTabindex: [String, Number],
231
+ allowDragLastColumn: {
232
+ type: Boolean,
233
+ default: !0
234
+ },
235
+ tooltipFormatter: Function,
236
+ preserveExpandedContent: {
237
+ type: Boolean,
238
+ default: !1
239
+ },
240
+ nativeScrollbar: {
241
+ type: Boolean,
242
+ default: !1
243
+ },
244
+ rowExpandable: Function,
245
+ selectionWidth: {
246
+ type: String,
247
+ default: "45"
248
+ },
249
+ viewId: String,
250
+ url: String,
251
+ hideOnSinglePage: Boolean,
252
+ api: Function,
253
+ model: Object,
254
+ ascs: {
255
+ type: Array,
256
+ default: () => []
257
+ },
258
+ descs: {
259
+ type: Array,
260
+ default: () => []
261
+ },
262
+ headerBold: Boolean,
263
+ autoHeight: Boolean,
264
+ immediate: {
265
+ type: Boolean,
266
+ default: !0
267
+ },
268
+ index: {
269
+ type: Boolean,
270
+ default: !0
271
+ },
272
+ multiple: {
273
+ type: Boolean,
274
+ default: !0
275
+ },
276
+ selection: {
277
+ type: Boolean,
278
+ default: !0
279
+ },
280
+ reloadOnModelChange: {
281
+ type: Boolean,
282
+ default: !1
283
+ },
284
+ columns: Array,
285
+ pageSize: {
286
+ type: Number,
287
+ default: 25
288
+ },
289
+ dicOptions: {
290
+ type: Array,
291
+ default: () => []
292
+ },
293
+ paging: {
294
+ type: Boolean,
295
+ default: !0
296
+ },
297
+ clickRowSelect: Boolean,
298
+ payloadStyle: String,
299
+ disabledRowKeys: Array,
300
+ selectExport: Boolean,
301
+ useVisibilityChange: Boolean
302
+ }, I = { data: !0 }, oe = (e) => I[e] !== !0;
303
+ //#endregion
304
+ //#region src/components/table/PageableTable.vue?vue&type=script&lang.jsx
305
+ function se(e) {
306
+ let t = "";
307
+ for (let n in e) t += `<TableColumnDef prop="${n}" label="${n}"/>\n`;
308
+ return t;
309
+ }
310
+ var L = {
311
+ loading: 1,
312
+ error: -1,
313
+ empty: 2,
314
+ success: 0
315
+ }, R = {
316
+ name: "PageableTable",
317
+ emits: { "page-loaded": null },
318
+ inheritAttrs: !1,
319
+ props: { ...F },
320
+ setup(s, { emit: d, attrs: m, slots: h, expose: g }) {
321
+ let y = w("table"), b = w("settingPanel"), S = x(L.empty), C = x([]), E = x(null), O = x(!1), k = x([]), P = x({
322
+ total: 0,
323
+ page: 1,
324
+ limit: s.pageSize,
325
+ ascs: s.ascs,
326
+ descs: s.descs
327
+ }), F = x(0), I = x(0), R = u(() => s.reloadOnModelChange ? {
328
+ asc: P.value.ascs,
329
+ desc: P.value.descs,
330
+ page: P.value.page,
331
+ limit: P.value.limit,
332
+ model: s.model
333
+ } : {
334
+ asc: P.value.ascs,
335
+ desc: P.value.descs,
336
+ page: P.value.page,
337
+ limit: P.value.limit
338
+ }), z = u(() => {
339
+ var e;
340
+ let t = `${(P.value.page - 1) * P.value.limit + (((e = C.value) == null ? void 0 : e.length) ?? 0)}`;
341
+ return t.length > 3 ? 60 + (t.length - 3) * 10 : 60;
342
+ }), B = () => {
343
+ H();
344
+ }, V = (e, t, n) => {
345
+ if (s.clickRowSelect && $(e)) {
346
+ var r;
347
+ if (k.value.find((t) => t[s.rowKey] === e[s.rowKey])) {
348
+ var i;
349
+ (i = y.value) == null || i.toggleRowSelection(e, !1);
350
+ return;
351
+ }
352
+ (r = y.value) == null || r.toggleRowSelection(e);
353
+ }
354
+ }, H = () => {
355
+ var e, t;
356
+ let n = (e = y.value) == null || (e = e.$children) == null ? void 0 : e.find((e) => {
357
+ var t;
358
+ return ((t = e.$options) == null ? void 0 : t.name) === "ElTableBody";
359
+ });
360
+ n == null || (t = n.$refs) == null || (t = t.tooltip) == null || t.hide();
361
+ }, U = ({ scrollLeft: e, scrollTop: t }) => {
362
+ F.value = t, I.value = e;
363
+ }, W = () => {
364
+ fe(F.value, I.value);
365
+ }, G = (e) => t(se(e)), ce = ({ prop: e, order: t }) => {
366
+ s.payloadStyle === "body" ? (P.value.ascs = t === "ascending" ? [e] : s.ascs, P.value.descs = t === "descending" ? [e] : s.descs) : (P.value.ascs = t === "ascending" ? e : "", P.value.descs = t === "descending" ? e : "");
367
+ }, le = (e) => {
368
+ $(e) && (E.value = e);
369
+ }, ue = (e) => {
370
+ k.value = e;
371
+ }, K = () => {
372
+ var e;
373
+ (e = y.value) == null || e.clearSelection();
374
+ }, de = () => {
375
+ let e;
376
+ return e = s.payloadStyle === "body" ? {
377
+ page: {
378
+ ...P.value,
379
+ current: P.value.page,
380
+ size: P.value.limit
381
+ },
382
+ example: s.model || {}
383
+ } : {
384
+ ...P.value,
385
+ current: P.value.page,
386
+ size: P.value.limit,
387
+ ...s.model || {}
388
+ }, s.selectExport && (s.rowKey ? e.exportKeys = k.value.map((e) => e[s.rowKey]) : e.exportKeys = k.value.map((e) => C.value.indexOf(e))), e;
389
+ }, q = async (e = !0) => {
390
+ if (!s.api && s.data !== !1) {
391
+ var t;
392
+ C.value = s.data, P.value.page = 1, P.value.total = (t = C.value) == null ? void 0 : t.length, P.value.limit = P.value.total;
393
+ return;
394
+ }
395
+ e !== !1 && (C.value = []);
396
+ let n, r = de();
397
+ if (s.api) {
398
+ e !== !1 && (S.value = L.loading);
399
+ try {
400
+ s.api && (n = await s.api(r));
401
+ } catch {
402
+ S.value = L.error;
403
+ return;
404
+ }
405
+ } else if (s.data) n = { data: { data: {
406
+ total: s.data.length,
407
+ records: s.data
408
+ } } };
409
+ else {
410
+ D.warning({
411
+ title: "开发提示!",
412
+ message: "PageableTable api(Function) 属性"
413
+ });
414
+ return;
415
+ }
416
+ let { data: { data: i } = {} } = n || {}, { total: a, records: o } = i || {};
417
+ P.value.total = Number(a), C.value = await pe(o), !o || !o.length ? S.value = L.empty : S.value = L.success, J(), d("page-loaded", i);
418
+ }, J = () => {
419
+ v(() => {
420
+ var e;
421
+ (e = y.value) == null || e.doLayout();
422
+ });
423
+ }, Y = async (e) => {
424
+ await q(e);
425
+ }, X = () => {
426
+ P.value = {
427
+ total: 0,
428
+ page: 1,
429
+ limit: s.pageSize,
430
+ ascs: s.ascs,
431
+ descs: s.descs
432
+ };
433
+ }, fe = (e, t) => {
434
+ y.value.setScrollTop(e), y.value.setScrollLeft(t);
435
+ }, Z = (e, t) => {
436
+ var n;
437
+ (n = y.value) == null || n.toggleRowSelection(e, t);
438
+ }, pe = async (e) => {
439
+ if (!e) return [];
440
+ let t = [...e];
441
+ for (let e of t) for (let t of s.dicOptions) if (e[`$${t.prop}`] = e[t.prop], t.dicData) {
442
+ var n;
443
+ e[t.prop] = ((n = t.dicData.find((n) => n.modelValue === e[t.prop])) == null ? void 0 : n.label) || e[t.prop];
444
+ } else e[t.prop] = await r(t.dicType, e[t.prop]);
445
+ return t;
446
+ }, Q = () => {
447
+ O.value = !O.value;
448
+ }, $ = (e) => {
449
+ var t;
450
+ return !(e != null && e.disabled) && !((t = s.disabledRowKeys) != null && t.includes(e == null ? void 0 : e[s.rowKey]));
451
+ };
452
+ s.useVisibilityChange && c({ onPageVisible: () => {
453
+ Y(!1);
454
+ } }), N("reloadTableView", (e) => {
455
+ e === s.viewId && q();
456
+ }), T(() => s.url, X), T(() => s.api, X), T(() => m.data, q), T(() => R.value, q, {
457
+ deep: !0,
458
+ immediate: s.immediate
459
+ }), ee(() => {
460
+ W();
461
+ }), g({
462
+ records: C,
463
+ getPage: q,
464
+ refresh: Y,
465
+ reload: X,
466
+ doLayout: J,
467
+ clearSelection: K,
468
+ toggleRowSelection: Z,
469
+ toggleSettings: Q
470
+ }), te(i, {
471
+ records: C,
472
+ getPage: q,
473
+ refresh: Y,
474
+ reload: X,
475
+ doLayout: J,
476
+ clearSelection: K,
477
+ toggleRowSelection: Z,
478
+ toggleSettings: Q
479
+ });
480
+ let { autoBindProps: me, listeners: he } = e(s, { predicate: oe });
481
+ return () => {
482
+ var e;
483
+ let t = E.value && E.value[m["row-key"] || s.rowKey || "id"] === (E.value && s.rowKey ? E.value[s.rowKey] : (e = E.value) == null ? void 0 : e.id), r = [];
484
+ if (h.default) {
485
+ var i;
486
+ let e = n((i = h.default) == null ? void 0 : i.call(h));
487
+ for (let t = 0; t < e.length; t++) {
488
+ let { props: n, children: i } = e[t];
489
+ if (!n) continue;
490
+ let { sortable: a, prop: o, fixed: s, ...c } = n, l = {
491
+ ...c,
492
+ prop: o,
493
+ allowSort: a !== !1
494
+ };
495
+ i && (l.headerSlot = i.header, l.defaultSlot = i.default, l.expandSlot = i.expand, l.iconSlot = i["filter-icon"]), r.push(l);
496
+ }
497
+ } else if (s.columns) for (let e = 0; e < s.columns.length; e++) {
498
+ let { prop: t, sortable: n, fixed: i, ...a } = s.columns[e], o = {
499
+ ...a,
500
+ prop: t,
501
+ allowSort: n !== !1
502
+ };
503
+ b.value && (o.hide = b.value.hideProps[t], o.filterable = b.value.filterableProps[t], o.sortable = b.value.sortableProps[t] === !0, o.fixed = i || b.value.fixedProps[t]), r.push(o);
504
+ }
505
+ return p("div", { class: ["pageable-table", { "auto-height": s.autoHeight }] }, [p("div", { class: "pageable-table-wrapper" }, [
506
+ h.toolbar && h.toolbar({ selectedRows: k.value }),
507
+ p(j, _(he.value, me.value, {
508
+ ref: "table",
509
+ data: C.value,
510
+ class: ["flex-item", { "header-bold": s.headerBold }],
511
+ border: s.border,
512
+ stripe: !0,
513
+ size: "default",
514
+ height: s.autoHeight ? null : "auto",
515
+ onScroll: U,
516
+ onSortChange: ce,
517
+ onRowDblclick: B,
518
+ onRowClick: V,
519
+ onCellClick: H,
520
+ onCurrentChange: le,
521
+ onSelectionChange: ue
522
+ }), {
523
+ default: () => {
524
+ let e = [];
525
+ if (s.multiple && s.selection && e.push(p(M, {
526
+ key: "selection",
527
+ type: "selection",
528
+ selectable: $,
529
+ width: s.selectionWidth,
530
+ align: "center"
531
+ }, null)), !s.multiple && s.selection && e.push(p(M, {
532
+ key: "single-selection",
533
+ type: "single-selection",
534
+ "class-name": "single-select-column",
535
+ width: s.selectionWidth,
536
+ align: "center"
537
+ }, {
538
+ header: () => p(A, {
539
+ modelValue: !!E.value,
540
+ label: !0
541
+ }, { default: () => [p("span", null, null)] }),
542
+ default: ({ row: e }) => p(A, {
543
+ label: !0,
544
+ disabled: !$(e),
545
+ modelValue: t
546
+ }, { default: () => [p("span", null, null)] })
547
+ })), s.index && e.push(p(M, {
548
+ key: "index",
549
+ type: "index",
550
+ label: "序号",
551
+ width: z.value,
552
+ align: "center"
553
+ }, { default: ({ $index: e }) => (P.value.page - 1) * P.value.limit + e + 1 || e + 1 })), r.length > 0) for (let t = 0; t < r.length; t++) {
554
+ let n = r[t];
555
+ if (n.hide) continue;
556
+ let { prop: i, headerSlot: a, defaultSlot: o, expandSlot: s, iconSlot: c, ...l } = n;
557
+ e.push(p(ae, _(l, { prop: i }), {
558
+ default: h[i] ? ({ row: e }) => h[i]({ row: e }) : o,
559
+ header: a,
560
+ expand: s,
561
+ "filter-icon": c
562
+ }));
563
+ }
564
+ else e.push(p(M, {
565
+ key: "default",
566
+ label: "点击表格行复制模板"
567
+ }, { default: ({ row: e }) => p("pre", {
568
+ class: "pointer",
569
+ onClick: () => G(e)
570
+ }, [JSON.stringify(e, null, " ")]) }));
571
+ return e;
572
+ },
573
+ empty: () => h.empty ? h.empty() : p(l, null, [
574
+ S.value === L.loading && p("span", { class: "pageable-table-loading" }, [p("i", { class: "table-status-icon el-icon-loading" }, null), f("加载中...")]),
575
+ S.value === L.error && p(a, {
576
+ class: "pageable-table-error",
577
+ onClick: Y
578
+ }, { default: () => [p("i", { class: "table-status-icon el-icon-error" }, null), f("加载失败,点击重试!")] }),
579
+ S.value !== L.loading && S.value !== L.error && p(ne, null, null)
580
+ ]),
581
+ append: h.append
582
+ }),
583
+ s.paging && p(re, {
584
+ "current-page": P.value.page,
585
+ "onUpdate:current-page": (e) => P.value.page = e,
586
+ "hide-on-single-page": s.hideOnSinglePage,
587
+ "page-size": P.value.limit,
588
+ "onUpdate:page-size": (e) => P.value.limit = e,
589
+ total: P.value.total,
590
+ "page-sizes": [
591
+ 10,
592
+ 25,
593
+ 50,
594
+ 100,
595
+ 500,
596
+ 1e3,
597
+ 2e3
598
+ ],
599
+ class: "flex-not-shrink",
600
+ background: !0,
601
+ layout: "total, sizes, prev, pager, next, jumper"
602
+ }, null),
603
+ p(ie, {
604
+ ref: "settingPanel",
605
+ modelValue: O.value,
606
+ "onUpdate:modelValue": (e) => O.value = e,
607
+ columns: r
608
+ }, null)
609
+ ]), p(o, { onNotify: J }, null)]);
610
+ };
611
+ }
612
+ };
613
+ //#endregion
614
+ export { R as t };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./B1MSrc6f.mjs";
1
+ import { t as e } from "./CkOD-_VV.mjs";
2
2
  import { Fragment as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createStaticVNode as a, createVNode as o, normalizeClass as s, normalizeStyle as c, openBlock as l, renderList as u, toDisplayString as d, withModifiers as f } from "vue";
3
3
  import p from "dayjs";
4
4
  //#region src/components/material-year-calendar/MonthCalendar.vue
@@ -1,7 +1,7 @@
1
- import { i as e, n as t } from "./Cj59E77g.mjs";
2
- import { n } from "./CSyJ-vEx.mjs";
1
+ import { i as e, n as t } from "./D_qiRmiE.mjs";
2
+ import { n } from "./CJdkjadi.mjs";
3
3
  import { useDictionary as r } from "../hook/useDictionary.mjs";
4
- import { t as i } from "./CFOGMFgo.mjs";
4
+ import { t as i } from "./CabldOLo.mjs";
5
5
  import { computed as a, createVNode as o, defineComponent as s, isVNode as c, mergeProps as l, useModel as u } from "vue";
6
6
  import { ElCheckbox as d, ElCheckboxButton as f, ElCheckboxGroup as p } from "element-plus/es";
7
7
  //#region src/components/form/props/checkbox-group.ts
@@ -85,14 +85,14 @@ var m = {
85
85
  options: !0
86
86
  }, g = (e) => n[e] === void 0 && h[e] !== !0;
87
87
  //#endregion
88
- //#region src/components/form/FormCheckBoxGroup.vue?vue&type=script&lang.jsx
88
+ //#region src/components/form/FormCheckboxGroup.vue?vue&type=script&lang.jsx
89
89
  function _(e) {
90
90
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !c(e);
91
91
  }
92
92
  //#endregion
93
- //#region src/components/form/FormCheckBoxGroup.vue
93
+ //#region src/components/form/FormCheckboxGroup.vue
94
94
  var v = /* @__PURE__ */ s({
95
- name: "FormCheckBoxGroup",
95
+ name: "FormCheckboxGroup",
96
96
  inheritAttrs: !1,
97
97
  props: { ...m },
98
98
  emits: {
@@ -1,5 +1,5 @@
1
- import { n as e } from "./Cj59E77g.mjs";
2
- import { n as t, t as n } from "./CFOGMFgo.mjs";
1
+ import { n as e } from "./D_qiRmiE.mjs";
2
+ import { n as t, t as n } from "./CabldOLo.mjs";
3
3
  import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
4
4
  //#region src/components/form/FormInputPhoneNumber.vue?vue&type=script&lang.jsx
5
5
  function s(e) {
@@ -1,5 +1,5 @@
1
- import { n as e } from "./Cj59E77g.mjs";
2
- import { n as t, t as n } from "./CFOGMFgo.mjs";
1
+ import { n as e } from "./D_qiRmiE.mjs";
2
+ import { n as t, t as n } from "./CabldOLo.mjs";
3
3
  import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
4
4
  //#region src/components/form/FormInputEmail.vue?vue&type=script&lang.jsx
5
5
  function s(e) {
@@ -0,0 +1,32 @@
1
+ import { n as e, t } from "./CJdkjadi.mjs";
2
+ //#region src/components/table/form-table.ts
3
+ var n = {
4
+ ...e,
5
+ ...t,
6
+ modelValue: Array,
7
+ columns: Array,
8
+ allowEmpty: Boolean,
9
+ handleColumn: {
10
+ type: Boolean,
11
+ default: !0
12
+ },
13
+ block: {
14
+ type: Boolean,
15
+ default: !0
16
+ },
17
+ editable: Boolean,
18
+ showHandleColumnAddButton: {
19
+ type: Boolean,
20
+ default: !0
21
+ },
22
+ showEmptyAddButton: {
23
+ type: Boolean,
24
+ default: !0
25
+ },
26
+ status: {
27
+ type: [Number, String],
28
+ default: ""
29
+ }
30
+ }, r = { readonly: !0 }, i = (t) => e[t] === void 0 && r[t] !== !0;
31
+ //#endregion
32
+ export { i as n, n as t };
@@ -1,4 +1,4 @@
1
- import { u as e } from "./cmuHpsX6.mjs";
1
+ import { d as e } from "./DcTVYqeJ.mjs";
2
2
  import { computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, getCurrentInstance as s, mergeModels as c, mergeProps as l, normalizeClass as u, openBlock as d, ref as f, renderSlot as p, toDisplayString as m, toHandlers as h, unref as g, useModel as _, useTemplateRef as v, withCtx as y, withModifiers as b } from "vue";
3
3
  import { ElDialog as x } from "element-plus/es";
4
4
  //#region src/components/dialog/props.ts