@web-utils/form-ui 1.0.0-beta36 → 1.0.0-beta37

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 (75) hide show
  1. package/chunks/{iWQD3xvX.mjs → B17LMtNG.mjs} +11 -16
  2. package/chunks/{DFsI7Y6h.mjs → B2HO8aAj.mjs} +11 -11
  3. package/chunks/{axr9InkL.mjs → BC0gfvsl.mjs} +9 -13
  4. package/chunks/{DQxPzCsy.mjs → BMAsNnWL.mjs} +11 -15
  5. package/chunks/{DQJyNm1V.mjs → Bd1UFJic.mjs} +135 -131
  6. package/chunks/{D5_ctQqL.mjs → BeBtvo7Q.mjs} +1 -1
  7. package/chunks/{Cr1vBYne.mjs → BeyC-b9n.mjs} +12 -15
  8. package/chunks/{A3sHIRQ_.mjs → BiIR7j9T.mjs} +15 -42
  9. package/chunks/{_dm2lLNL.mjs → BrXlRZbl.mjs} +2 -2
  10. package/chunks/{BTS_zTkz.mjs → BufIRDd0.mjs} +35 -39
  11. package/chunks/{Buc52aVh.mjs → Byr79NWq.mjs} +11 -29
  12. package/chunks/{BLWwTutr.mjs → C81uwgZb.mjs} +14 -33
  13. package/chunks/{CNskrN5I.mjs → C95McWbI.mjs} +2 -2
  14. package/chunks/CE8bze--.mjs +231 -0
  15. package/chunks/{DcbnHU8K.mjs → CGmMqCP6.mjs} +19 -23
  16. package/chunks/{D7hD-ppq.mjs → CRrdgtwT.mjs} +1 -1
  17. package/chunks/{DistOy_O.mjs → CUvhHVXq.mjs} +27 -19
  18. package/chunks/{DJKE5P39.mjs → CZ6kuiWf.mjs} +2 -2
  19. package/chunks/{Dgyjc3LT.mjs → Cab-ZjRx.mjs} +29 -45
  20. package/chunks/{ZXCLnZFa.mjs → Ce5K-XbN.mjs} +111 -144
  21. package/chunks/{CLn0r4lV.mjs → CszLlvRH.mjs} +15 -17
  22. package/chunks/{CGJkMYZ4.mjs → D0M61zlJ.mjs} +11 -20
  23. package/chunks/DjX-fB-E.mjs +35 -0
  24. package/chunks/{BwdWZEjT.mjs → DkXSvAFI.mjs} +12 -18
  25. package/chunks/{DQKi5eEl.mjs → XqRTtFfp.mjs} +2 -2
  26. package/chunks/{BX-cVxlK.mjs → cmuHpsX6.mjs} +21 -14
  27. package/chunks/{1cDNhlSV.mjs → h0Y7oZ-O.mjs} +2 -2
  28. package/editable-tree/index.d.ts +1 -1
  29. package/editable-tree/index.mjs +1 -1
  30. package/element-dialog/index.d.ts +1 -1
  31. package/element-dialog/index.mjs +1 -1
  32. package/form-cascader/index.d.ts +0 -14
  33. package/form-cascader/index.mjs +1 -1
  34. package/form-check-box-group/index.d.ts +0 -2
  35. package/form-check-box-group/index.mjs +1 -1
  36. package/form-checkbox/index.d.ts +36 -10
  37. package/form-checkbox/index.mjs +1 -1
  38. package/form-date-picker/index.mjs +1 -1
  39. package/form-holder/index.d.ts +2 -6
  40. package/form-holder/index.mjs +1 -1
  41. package/form-image/index.d.ts +2 -14
  42. package/form-image/index.mjs +1 -1
  43. package/form-input/index.d.ts +0 -24
  44. package/form-input/index.mjs +1 -1
  45. package/form-input-cron-expression/index.mjs +1 -1
  46. package/form-input-email/index.mjs +1 -1
  47. package/form-input-id-card/index.mjs +1 -1
  48. package/form-input-number/index.d.ts +0 -6
  49. package/form-input-number/index.mjs +1 -1
  50. package/form-input-phone-number/index.mjs +1 -1
  51. package/form-item-x/index.mjs +1 -1
  52. package/form-radio-group/index.d.ts +0 -2
  53. package/form-radio-group/index.mjs +1 -1
  54. package/form-rate/index.d.ts +0 -2
  55. package/form-rate/index.mjs +1 -1
  56. package/form-select/index.d.ts +0 -14
  57. package/form-select/index.mjs +1 -1
  58. package/form-slider/index.d.ts +0 -4
  59. package/form-slider/index.mjs +1 -1
  60. package/form-switch/index.d.ts +0 -2
  61. package/form-switch/index.mjs +1 -1
  62. package/form-text/index.mjs +1 -1
  63. package/helper/dictionary.mjs +1 -1
  64. package/iframe-window/index.mjs +1 -1
  65. package/index.mjs +25 -25
  66. package/package.json +1 -1
  67. package/pageable-table/index.d.ts +0 -38
  68. package/pageable-table/index.mjs +1 -1
  69. package/table-column/index.mjs +1 -1
  70. package/table-view/index.mjs +6 -6
  71. package/toolbar/index.mjs +1 -1
  72. package/toolbar-button/index.mjs +1 -1
  73. package/web-types.json +1 -1
  74. package/chunks/BLRY0zkF.mjs +0 -51
  75. package/chunks/BvsmTC3G.mjs +0 -229
@@ -1,18 +1,18 @@
1
- import { n as e, u as t } from "./BX-cVxlK.mjs";
1
+ import { n as e, u as t } from "./cmuHpsX6.mjs";
2
2
  import { getDictLabel as n } from "../helper/dictionary.mjs";
3
3
  import { pageableTableContextKey as r } from "../constants/index.mjs";
4
4
  import i from "../resize-observer/index.mjs";
5
- import { t as a } from "./D5_ctQqL.mjs";
5
+ import { t as a } from "./BeBtvo7Q.mjs";
6
6
  import { useVisibilityChange as o } from "../hook/useVisibilityChange.mjs";
7
7
  import { hasOwn as s } from "@web-utils/core";
8
- import { Fragment as c, computed as l, createBlock as u, createTextVNode as d, createVNode as f, defineComponent as p, inject as m, mergeModels as h, mergeProps as g, nextTick as ee, onBeforeUpdate as _, onUpdated as te, openBlock as v, provide as y, reactive as b, ref as x, toDisplayString as S, useModel as C, watch as w, withCtx as T } from "vue";
9
- import { ElMessage as ne } from "element-plus";
10
- import { ElButton as re, ElCheckbox as E, ElDrawer as D, ElEmpty as O, ElPagination as k, ElRadio as A, ElTable as j, ElTableColumn as M } from "element-plus/es";
11
- import { useEventBus as ie } from "@web-utils/vue/hooks/useEventBus";
8
+ import { Fragment as c, computed as l, createBlock as u, createTextVNode as d, createVNode as f, inject as p, mergeModels as m, mergeProps as h, nextTick as ee, onBeforeUpdate as te, onUpdated as g, openBlock as _, provide as ne, reactive as v, ref as y, toDisplayString as b, useModel as x, watch as S, withCtx as C } from "vue";
9
+ import { ElMessage as re } from "element-plus";
10
+ import { ElButton as ie, ElCheckbox as w, ElDrawer as T, ElEmpty as ae, ElPagination as E, ElRadio as D, ElTable as O, ElTableColumn as k } from "element-plus/es";
11
+ import { useEventBus as A } from "@web-utils/vue/hooks/useEventBus";
12
12
  //#region src/components/table/components/TableColumnFilter.vue
13
- var ae = {
13
+ var j = {
14
14
  __name: "TableColumnFilter",
15
- props: /* @__PURE__ */ h({ columns: {
15
+ props: /* @__PURE__ */ m({ columns: {
16
16
  type: Array,
17
17
  default: () => []
18
18
  } }, {
@@ -24,7 +24,7 @@ var ae = {
24
24
  }),
25
25
  emits: ["update:modelValue"],
26
26
  setup(e, { expose: t }) {
27
- let n = C(e, "modelValue"), r = b({}), i = b({}), a = b({}), o = b({}), s = (e, t, n) => {
27
+ let n = x(e, "modelValue"), r = v({}), i = v({}), a = v({}), o = v({}), s = (e, t, n) => {
28
28
  n === "hide" ? r[t.prop] = e : n === "fixed" ? i[t.prop] = e : n === "filterable" ? a[t.prop] = e : n === "sortable" && (o[t.prop] = e);
29
29
  };
30
30
  return t({
@@ -33,49 +33,49 @@ var ae = {
33
33
  filterableProps: a,
34
34
  sortableProps: o
35
35
  }), (t, r) => {
36
- let i = M, a = E, o = j, c = D;
37
- return v(), u(c, {
36
+ let i = k, a = w, o = O, c = T;
37
+ return _(), u(c, {
38
38
  modelValue: n.value,
39
39
  "onUpdate:modelValue": r[0] || (r[0] = (e) => n.value = e),
40
40
  class: "table-column-filter",
41
41
  title: "表格设置",
42
42
  "append-to-body": ""
43
43
  }, {
44
- default: T(() => [f(o, {
44
+ default: C(() => [f(o, {
45
45
  data: e.columns,
46
46
  border: ""
47
47
  }, {
48
- default: T(() => [
48
+ default: C(() => [
49
49
  f(i, { label: "列名" }, {
50
- default: T(({ row: e }) => [d(S(e.label), 1)]),
50
+ default: C(({ row: e }) => [d(b(e.label), 1)]),
51
51
  _: 1
52
52
  }),
53
53
  f(i, {
54
54
  label: "隐藏",
55
55
  align: "center"
56
56
  }, {
57
- default: T(({ row: e }) => [f(a, { onChange: (t) => s(t, e, "hide") }, null, 8, ["onChange"])]),
57
+ default: C(({ row: e }) => [f(a, { onChange: (t) => s(t, e, "hide") }, null, 8, ["onChange"])]),
58
58
  _: 1
59
59
  }),
60
60
  f(i, {
61
61
  label: "冻结",
62
62
  align: "center"
63
63
  }, {
64
- default: T(({ row: e }) => [f(a, { onChange: (t) => s(t, e, "fixed") }, null, 8, ["onChange"])]),
64
+ default: C(({ row: e }) => [f(a, { onChange: (t) => s(t, e, "fixed") }, null, 8, ["onChange"])]),
65
65
  _: 1
66
66
  }),
67
67
  f(i, {
68
68
  label: "过滤",
69
69
  align: "center"
70
70
  }, {
71
- default: T(({ row: e }) => [f(a, { onChange: (t) => s(t, e, "filterable") }, null, 8, ["onChange"])]),
71
+ default: C(({ row: e }) => [f(a, { onChange: (t) => s(t, e, "filterable") }, null, 8, ["onChange"])]),
72
72
  _: 1
73
73
  }),
74
74
  f(i, {
75
75
  label: "排序",
76
76
  align: "center"
77
77
  }, {
78
- default: T(({ row: e }) => [f(a, {
78
+ default: C(({ row: e }) => [f(a, {
79
79
  title: e.allowSort ? null : "该列不支持排序!",
80
80
  disabled: !e.allowSort,
81
81
  onChange: (t) => s(t, e, "sortable")
@@ -93,13 +93,13 @@ var ae = {
93
93
  }, 8, ["modelValue"]);
94
94
  };
95
95
  }
96
- }, oe = {
96
+ }, M = {
97
97
  props: {
98
98
  filterable: Boolean,
99
99
  prop: String
100
100
  },
101
101
  setup(e, { attrs: t, slots: n }) {
102
- let i = m(r, null), o = l(() => {
102
+ let i = p(r, null), o = l(() => {
103
103
  if (e.filterable && i) return (e, t, n) => t[n.property] === e;
104
104
  }), s = l(() => {
105
105
  if (e.filterable && i) return [...new Set(i.records.value.map((t) => t[e.prop]).filter((e) => e))].map((e) => ({
@@ -107,7 +107,7 @@ var ae = {
107
107
  value: e
108
108
  }));
109
109
  });
110
- return () => f(a, g(t, {
110
+ return () => f(a, h(t, {
111
111
  prop: e.prop,
112
112
  filterable: e.filterable,
113
113
  filterMethod: o.value,
@@ -289,81 +289,52 @@ var ae = {
289
289
  disabledRowKeys: Array,
290
290
  selectExport: Boolean,
291
291
  useVisibilityChange: Boolean
292
- }, P = { data: !0 }, se = [
293
- "change",
294
- "expand-change",
295
- "blur",
296
- "focus",
297
- "clear",
298
- "visible-change",
299
- "remove-tag"
300
- ], ce = (e) => P[e] !== !0;
292
+ }, P = { data: !0 }, oe = (e) => P[e] !== !0;
301
293
  //#endregion
302
294
  //#region src/components/table/PageableTable.vue?vue&type=script&lang.jsx
303
- function F(e) {
295
+ function se(e) {
304
296
  let t = "";
305
297
  for (let n in e) t += `<TableColumn prop="${n}" label="${n}"/>\n`;
306
298
  return t;
307
299
  }
308
- var I = {
300
+ var F = {
309
301
  loading: 1,
310
302
  error: -1,
311
303
  empty: 2,
312
304
  success: 0
313
- }, L = /* @__PURE__ */ p({
305
+ }, I = {
314
306
  name: "PageableTable",
315
- emits: {
316
- "page-loaded": null,
317
- select: null,
318
- "select-all": null,
319
- "selection-change": null,
320
- "cell-mouse-enter": null,
321
- "cell-mouse-leave": null,
322
- "cell-click": null,
323
- "cell-dblclick": null,
324
- "cell-contextmenu": null,
325
- "row-click": null,
326
- "row-contextmenu": null,
327
- "row-dblclick": null,
328
- "header-click": null,
329
- "header-contextmenu": null,
330
- "sort-change": null,
331
- "filter-change": null,
332
- "current-change": null,
333
- "header-dragend": null,
334
- "expand-change": null,
335
- scroll: null
336
- },
307
+ emits: { "page-loaded": null },
337
308
  inheritAttrs: !1,
338
309
  props: { ...N },
339
- setup(a, { emit: u, attrs: p, slots: m, expose: h }) {
340
- let v = x(), b = x(), S = x(1), C = x(I.empty), T = x([]), E = x(null), D = x(!1), N = x([]), P = x({
310
+ setup(a, { emit: u, attrs: p, slots: m, expose: _ }) {
311
+ let v = y(), b = y(), x = y(1), C = y(F.empty), w = y([]), T = y(null), N = y(!1), P = y([]), I = y({
341
312
  total: 0,
342
313
  page: 1,
343
314
  limit: a.pageSize,
344
315
  ascs: a.ascs,
345
316
  descs: a.descs
346
- }), L = x(0), R = x(0), z = l(() => a.reloadOnModelChange ? {
347
- asc: P.value.ascs,
348
- desc: P.value.descs,
349
- page: P.value.page,
350
- limit: P.value.limit,
317
+ }), L = y(0), R = y(0), z = l(() => a.reloadOnModelChange ? {
318
+ asc: I.value.ascs,
319
+ desc: I.value.descs,
320
+ page: I.value.page,
321
+ limit: I.value.limit,
351
322
  model: a.model
352
323
  } : {
353
- asc: P.value.ascs,
354
- desc: P.value.descs,
355
- page: P.value.page,
356
- limit: P.value.limit
324
+ asc: I.value.ascs,
325
+ desc: I.value.descs,
326
+ page: I.value.page,
327
+ limit: I.value.limit
357
328
  }), B = l(() => {
358
329
  var e;
359
- let t = `${(P.value.page - 1) * P.value.limit + (((e = T.value) == null ? void 0 : e.length) ?? 0)}`;
330
+ let t = `${(I.value.page - 1) * I.value.limit + (((e = w.value) == null ? void 0 : e.length) ?? 0)}`;
360
331
  return t.length > 3 ? 60 + (t.length - 3) * 10 : 60;
361
- }), V = (...e) => {
362
- U(), u("row-dblclick", ...e);
332
+ }), V = () => {
333
+ U();
363
334
  }, H = (e, t, n) => {
364
335
  if (a.clickRowSelect && $(e)) {
365
336
  var r;
366
- if (N.value.find((t) => t[a.rowKey] === e[a.rowKey])) {
337
+ if (P.value.find((t) => t[a.rowKey] === e[a.rowKey])) {
367
338
  var i;
368
339
  (i = v.value) == null || i.toggleRowSelection(e, !1);
369
340
  return;
@@ -379,46 +350,46 @@ var I = {
379
350
  n == null || (t = n.$refs) == null || (t = t.tooltip) == null || t.hide();
380
351
  }, W = ({ scrollLeft: e, scrollTop: t }) => {
381
352
  L.value = t, R.value = e;
382
- }, le = () => {
383
- me(L.value, R.value);
384
- }, ue = (t) => e(F(t)), de = ({ prop: e, order: t }) => {
385
- a.payloadStyle === "body" ? (P.value.ascs = t === "ascending" ? [e] : a.ascs, P.value.descs = t === "descending" ? [e] : a.descs) : (P.value.ascs = t === "ascending" ? e : "", P.value.descs = t === "descending" ? e : "");
386
- }, fe = (e) => {
387
- $(e) && (E.value = e);
388
- }, pe = (e) => {
389
- N.value = e, u("selection-change", e);
390
353
  }, G = () => {
354
+ pe(L.value, R.value);
355
+ }, ce = (t) => e(se(t)), le = ({ prop: e, order: t }) => {
356
+ a.payloadStyle === "body" ? (I.value.ascs = t === "ascending" ? [e] : a.ascs, I.value.descs = t === "descending" ? [e] : a.descs) : (I.value.ascs = t === "ascending" ? e : "", I.value.descs = t === "descending" ? e : "");
357
+ }, ue = (e) => {
358
+ $(e) && (T.value = e);
359
+ }, de = (e) => {
360
+ P.value = e;
361
+ }, K = () => {
391
362
  var e;
392
363
  (e = v.value) == null || e.clearSelection();
393
- }, K = () => {
364
+ }, fe = () => {
394
365
  let e;
395
366
  return e = a.payloadStyle === "body" ? {
396
367
  page: {
397
- ...P.value,
398
- current: P.value.page,
399
- size: P.value.limit
368
+ ...I.value,
369
+ current: I.value.page,
370
+ size: I.value.limit
400
371
  },
401
372
  example: a.model || {}
402
373
  } : {
403
- ...P.value,
404
- current: P.value.page,
405
- size: P.value.limit,
374
+ ...I.value,
375
+ current: I.value.page,
376
+ size: I.value.limit,
406
377
  ...a.model || {}
407
- }, a.selectExport && (a.rowKey ? e.exportKeys = N.value.map((e) => e[a.rowKey]) : e.exportKeys = N.value.map((e) => T.value.indexOf(e))), e;
378
+ }, a.selectExport && (a.rowKey ? e.exportKeys = P.value.map((e) => e[a.rowKey]) : e.exportKeys = P.value.map((e) => w.value.indexOf(e))), e;
408
379
  }, q = async (e = !0) => {
409
380
  if (s(p, "data") && p.data !== !1) {
410
381
  var t;
411
- T.value = p.data, P.value.page = 1, P.value.total = (t = T.value) == null ? void 0 : t.length, P.value.limit = P.value.total;
382
+ w.value = p.data, I.value.page = 1, I.value.total = (t = w.value) == null ? void 0 : t.length, I.value.limit = I.value.total;
412
383
  return;
413
384
  }
414
- e !== !1 && (T.value = []);
415
- let n, r = K();
385
+ e !== !1 && (w.value = []);
386
+ let n, r = fe();
416
387
  if (a.api) {
417
- e !== !1 && (C.value = I.loading);
388
+ e !== !1 && (C.value = F.loading);
418
389
  try {
419
390
  a.api && (n = await a.api(r));
420
391
  } catch {
421
- C.value = I.error;
392
+ C.value = F.error;
422
393
  return;
423
394
  }
424
395
  } else if (a.data) n = { data: { data: {
@@ -426,14 +397,14 @@ var I = {
426
397
  records: a.data
427
398
  } } };
428
399
  else {
429
- ne.warning({
400
+ re.warning({
430
401
  title: "开发提示!",
431
402
  message: "PageableTable api(Function) 属性"
432
403
  });
433
404
  return;
434
405
  }
435
406
  let { data: { data: i } = {} } = n || {}, { total: o, records: c } = i || {};
436
- P.value.total = Number(o), T.value = await he(c), !c || !c.length ? C.value = I.empty : C.value = I.success, J(), u("page-loaded", i);
407
+ I.value.total = Number(o), w.value = await me(c), !c || !c.length ? C.value = F.empty : C.value = F.success, J(), u("page-loaded", i);
437
408
  }, J = () => {
438
409
  ee(() => {
439
410
  var e;
@@ -442,19 +413,19 @@ var I = {
442
413
  }, Y = async (e) => {
443
414
  await q(e);
444
415
  }, X = () => {
445
- P.value = {
416
+ I.value = {
446
417
  total: 0,
447
418
  page: 1,
448
419
  limit: a.pageSize,
449
420
  ascs: a.ascs,
450
421
  descs: a.descs
451
422
  };
452
- }, me = (e, t) => {
423
+ }, pe = (e, t) => {
453
424
  v.value.setScrollTop(e), v.value.setScrollLeft(t);
454
425
  }, Z = (e, t) => {
455
426
  var n;
456
427
  (n = v.value) == null || n.toggleRowSelection(e, t);
457
- }, he = async (e) => {
428
+ }, me = async (e) => {
458
429
  if (!e) return [];
459
430
  let t = [...e];
460
431
  for (let e of t) for (let t of a.dicOptions) if (e[`$${t.prop}`] = e[t.prop], t.dicData) {
@@ -463,49 +434,45 @@ var I = {
463
434
  } else e[t.prop] = await n(t.dicType, e[t.prop]);
464
435
  return t;
465
436
  }, Q = () => {
466
- D.value = !D.value;
437
+ N.value = !N.value;
467
438
  }, $ = (e) => {
468
439
  var t;
469
440
  return !(e != null && e.disabled) && !((t = a.disabledRowKeys) != null && t.includes(e == null ? void 0 : e[a.rowKey]));
470
441
  };
471
442
  a.useVisibilityChange && o({ onPageVisible: () => {
472
443
  Y(!1);
473
- } }), ie("reloadTableView", (e) => {
444
+ } }), A("reloadTableView", (e) => {
474
445
  e === a.viewId && q();
475
- }), w(() => a.url, X), w(() => a.api, X), w(() => p.data, q), w(() => z.value, q, {
446
+ }), S(() => a.url, X), S(() => a.api, X), S(() => p.data, q), S(() => z.value, q, {
476
447
  deep: !0,
477
448
  immediate: a.immediate
449
+ }), g(() => {
450
+ G();
478
451
  }), te(() => {
479
- le();
480
- }), _(() => {
481
- S.value++;
482
- }), h({
483
- records: T,
452
+ x.value++;
453
+ }), _({
454
+ records: w,
484
455
  getPage: q,
485
456
  refresh: Y,
486
457
  reload: X,
487
458
  doLayout: J,
488
- clearSelection: G,
459
+ clearSelection: K,
489
460
  toggleRowSelection: Z,
490
461
  toggleSettings: Q
491
- }), y(r, {
492
- records: T,
462
+ }), ne(r, {
463
+ records: w,
493
464
  getPage: q,
494
465
  refresh: Y,
495
466
  reload: X,
496
467
  doLayout: J,
497
- clearSelection: G,
468
+ clearSelection: K,
498
469
  toggleRowSelection: Z,
499
470
  toggleSettings: Q
500
471
  });
501
- let ge = t(a, {
502
- emit: u,
503
- events: se,
504
- predicate: ce
505
- });
472
+ let { autoBindProps: he, listeners: ge } = t(a, { predicate: oe });
506
473
  return () => {
507
474
  var e;
508
- let t = E.value && E.value[p["row-key"] || a.rowKey || "id"] === (E.value && a.rowKey ? E.value[a.rowKey] : (e = E.value) == null ? void 0 : e.id), n = [];
475
+ let t = T.value && T.value[p["row-key"] || a.rowKey || "id"] === (T.value && a.rowKey ? T.value[a.rowKey] : (e = T.value) == null ? void 0 : e.id), n = [];
509
476
  if (m.default) {
510
477
  var r;
511
478
  let e = (r = m.default) == null ? void 0 : r.call(m);
@@ -536,79 +503,79 @@ var I = {
536
503
  });
537
504
  });
538
505
  return f("div", { class: ["pageable-table", { "auto-height": a.autoHeight }] }, [f("div", { class: "pageable-table-wrapper" }, [
539
- m.toolbar && m.toolbar({ selectedRows: N.value }),
540
- f(j, g(ge.value, {
506
+ m.toolbar && m.toolbar({ selectedRows: P.value }),
507
+ f(O, h(ge.value, he.value, {
541
508
  ref: v,
542
- data: T.value,
509
+ data: w.value,
543
510
  class: ["flex-item", { "header-bold": a.headerBold }],
544
511
  border: a.border,
545
512
  stripe: !0,
546
513
  size: "default",
547
514
  height: a.autoHeight ? null : "auto",
548
515
  onScroll: W,
549
- onSortChange: de,
516
+ onSortChange: le,
550
517
  onRowDblclick: V,
551
518
  onRowClick: H,
552
519
  onCellClick: U,
553
- onCurrentChange: fe,
554
- onSelectionChange: pe
520
+ onCurrentChange: ue,
521
+ onSelectionChange: de
555
522
  }), {
556
523
  default: () => {
557
524
  let e = [];
558
- if (a.multiple && a.selection && e.push(f(M, {
525
+ if (a.multiple && a.selection && e.push(f(k, {
559
526
  type: "selection",
560
527
  selectable: $,
561
528
  width: a.selectionWidth,
562
529
  align: "center"
563
- }, null)), !a.multiple && a.selection && e.push(f(M, {
530
+ }, null)), !a.multiple && a.selection && e.push(f(k, {
564
531
  type: "single-selection",
565
532
  "class-name": "single-select-column",
566
533
  width: a.selectionWidth,
567
534
  align: "center"
568
535
  }, {
569
- header: () => f(A, {
570
- modelValue: !!E.value,
536
+ header: () => f(D, {
537
+ modelValue: !!T.value,
571
538
  label: !0
572
539
  }, { default: () => [f("span", null, null)] }),
573
- default: ({ row: e }) => f(A, {
540
+ default: ({ row: e }) => f(D, {
574
541
  label: !0,
575
542
  disabled: !$(e),
576
543
  modelValue: t
577
544
  }, { default: () => [f("span", null, null)] })
578
- })), a.index && e.push(f(M, {
545
+ })), a.index && e.push(f(k, {
579
546
  type: "index",
580
547
  label: "序号",
581
548
  width: B.value,
582
549
  align: "center"
583
- }, { default: ({ $index: e }) => (P.value.page - 1) * P.value.limit + e + 1 || e + 1 })), n.length > 0) for (let t = 0; t < n.length; t++) {
550
+ }, { default: ({ $index: e }) => (I.value.page - 1) * I.value.limit + e + 1 || e + 1 })), n.length > 0) for (let t = 0; t < n.length; t++) {
584
551
  let r = n[t];
585
552
  if (r.hide) continue;
586
553
  let i = r.prop;
587
- e.push(f(oe, r, { default: m[i] ? ({ row: e }) => m[i]({ row: e }) : void 0 }));
554
+ e.push(f(M, r, { default: m[i] ? ({ row: e }) => m[i]({ row: e }) : void 0 }));
588
555
  }
589
- else e.push(f(M, { label: "点击表格行复制模板" }, { default: ({ row: e }) => f("pre", {
556
+ else e.push(f(k, { label: "点击表格行复制模板" }, { default: ({ row: e }) => f("pre", {
590
557
  class: "pointer",
591
- onClick: () => ue(e)
558
+ onClick: () => ce(e)
592
559
  }, [JSON.stringify(e, null, " ")]) }));
593
560
  return e;
594
561
  },
595
562
  empty: () => m.empty ? m.empty() : f(c, null, [
596
- C.value === I.loading && f("span", { class: "pageable-table-loading" }, [f("i", { class: "table-status-icon el-icon-loading" }, null), d("加载中...")]),
597
- C.value === I.error && f(re, {
563
+ C.value === F.loading && f("span", { class: "pageable-table-loading" }, [f("i", { class: "table-status-icon el-icon-loading" }, null), d("加载中...")]),
564
+ C.value === F.error && f(ie, {
598
565
  class: "pageable-table-error",
599
566
  onClick: Y
600
567
  }, { default: () => [f("i", { class: "table-status-icon el-icon-error" }, null), d("加载失败,点击重试!")] }),
601
- C.value !== I.loading && C.value !== I.error && f(O, null, null)
568
+ C.value !== F.loading && C.value !== F.error && f(ae, null, null)
602
569
  ]),
603
570
  append: m.append
604
571
  }),
605
- a.paging && f(k, {
606
- "current-page": P.value.page,
607
- "onUpdate:current-page": (e) => P.value.page = e,
572
+ a.paging && f(E, {
573
+ "current-page": I.value.page,
574
+ "onUpdate:current-page": (e) => I.value.page = e,
608
575
  "hide-on-single-page": a.hideOnSinglePage,
609
- "page-size": P.value.limit,
610
- "onUpdate:page-size": (e) => P.value.limit = e,
611
- total: P.value.total,
576
+ "page-size": I.value.limit,
577
+ "onUpdate:page-size": (e) => I.value.limit = e,
578
+ total: I.value.total,
612
579
  "page-sizes": [
613
580
  10,
614
581
  25,
@@ -622,15 +589,15 @@ var I = {
622
589
  background: !0,
623
590
  layout: "total, sizes, prev, pager, next, jumper"
624
591
  }, null),
625
- f(ae, {
592
+ f(j, {
626
593
  ref: b,
627
- modelValue: D.value,
628
- "onUpdate:modelValue": (e) => D.value = e,
594
+ modelValue: N.value,
595
+ "onUpdate:modelValue": (e) => N.value = e,
629
596
  columns: n
630
597
  }, null)
631
598
  ]), f(i, { onNotify: J }, null)]);
632
599
  };
633
600
  }
634
- });
601
+ };
635
602
  //#endregion
636
- export { L as t };
603
+ export { I as t };
@@ -1,7 +1,7 @@
1
- import { i as e, n as t } from "./BvsmTC3G.mjs";
2
- import { n } from "./D7hD-ppq.mjs";
1
+ import { i as e, n as t } from "./CE8bze--.mjs";
2
+ import { n } from "./CRrdgtwT.mjs";
3
3
  import { useDictionary as r } from "../hook/useDictionary.mjs";
4
- import { t as i } from "./A3sHIRQ_.mjs";
4
+ import { t as i } from "./BiIR7j9T.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
@@ -82,30 +82,28 @@ var m = {
82
82
  modelValue: !0,
83
83
  type: !0,
84
84
  options: !0
85
- }, g = ["change"], _ = (e) => n[e] === void 0 && h[e] !== !0;
85
+ }, g = (e) => n[e] === void 0 && h[e] !== !0;
86
86
  //#endregion
87
87
  //#region src/components/form/FormCheckBoxGroup.vue?vue&type=script&lang.jsx
88
- function v(e) {
88
+ function _(e) {
89
89
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !c(e);
90
90
  }
91
91
  //#endregion
92
92
  //#region src/components/form/FormCheckBoxGroup.vue
93
- var y = /* @__PURE__ */ s({
93
+ var v = /* @__PURE__ */ s({
94
94
  name: "FormCheckBoxGroup",
95
95
  inheritAttrs: !1,
96
96
  props: { ...m },
97
97
  emits: {
98
98
  ...t,
99
- "update:other": null,
100
- change: null
99
+ "update:other": null
101
100
  },
102
101
  setup(t, { emit: n, slots: s, attrs: c }) {
103
- let m = u(t, "other"), { emitInput: h, render: y, disabled: b, autoBind: x } = e(t, {
102
+ let m = u(t, "other"), { emitInput: h, render: v, disabled: y, listeners: b, inputProps: x } = e(t, {
104
103
  emit: n,
105
104
  slots: s,
106
105
  attrs: c,
107
- events: g,
108
- predicate: _,
106
+ predicate: g,
109
107
  messagePrefix: "请选择",
110
108
  class: a(() => ["form-checkbox-group", {
111
109
  "form-checkbox-group-row": t.fillRow,
@@ -134,9 +132,9 @@ var y = /* @__PURE__ */ s({
134
132
  [w.value]: "否",
135
133
  [T.value]: "否"
136
134
  }] : t.options);
137
- return () => y({ vNodes: [o(p, l(x.value, {
135
+ return () => v({ vNodes: [o(p, l(b.value, x.value, {
138
136
  modelValue: C.value,
139
- disabled: b.value,
137
+ disabled: y.value,
140
138
  "onUpdate:modelValue": S
141
139
  }), {
142
140
  ...s,
@@ -146,11 +144,11 @@ var y = /* @__PURE__ */ s({
146
144
  key: e,
147
145
  value: e,
148
146
  disabled: r
149
- }, v(n) ? n : { default: () => [n] }) : o(d, {
147
+ }, _(n) ? n : { default: () => [n] }) : o(d, {
150
148
  key: e,
151
149
  value: e,
152
150
  disabled: r
153
- }, v(n) ? n : { default: () => [n] }));
151
+ }, _(n) ? n : { default: () => [n] }));
154
152
  })
155
153
  }), C.value.includes(t.otherVal) ? o(i, {
156
154
  "wrap-col": !1,
@@ -158,7 +156,7 @@ var y = /* @__PURE__ */ s({
158
156
  "hide-label": !0,
159
157
  "label-width": "0",
160
158
  prop: t.otherProp,
161
- disabled: b.value,
159
+ disabled: y.value,
162
160
  required: !!t.otherProp,
163
161
  placeholder: t.otherPlaceholder,
164
162
  label: t.otherLabel,
@@ -174,4 +172,4 @@ var y = /* @__PURE__ */ s({
174
172
  }
175
173
  });
176
174
  //#endregion
177
- export { y as t };
175
+ export { v as t };
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./BvsmTC3G.mjs";
2
- import { n, t as r } from "./D7hD-ppq.mjs";
1
+ import { i as e, n as t } from "./CE8bze--.mjs";
2
+ import { n, t as r } from "./CRrdgtwT.mjs";
3
3
  import { isString as i } from "@web-utils/core";
4
4
  import { computed as a, createVNode as o, mergeProps as s } from "vue";
5
5
  import { ElInputNumber as c } from "element-plus/es";
@@ -69,33 +69,24 @@ var l = {
69
69
  modelValue: !0,
70
70
  prefix: !0,
71
71
  suffix: !0
72
- }, d = [
73
- "change",
74
- "blur",
75
- "focus"
76
- ], f = (e) => n[e] === void 0 && u[e] !== !0, p = {
72
+ }, d = (e) => n[e] === void 0 && u[e] !== !0, f = {
77
73
  name: "FormInputNumber",
78
74
  inheritAttrs: !1,
79
75
  props: { ...l },
80
- emits: {
81
- ...t,
82
- change: null,
83
- blur: null,
84
- focus: null
85
- },
76
+ emits: { ...t },
86
77
  setup(t, { emit: n, slots: r, attrs: l }) {
87
- let { emitInput: u, render: p, placeholder: m, disabled: h, autoBind: g } = e(t, {
78
+ let { emitInput: u, render: f, placeholder: p, disabled: m, listeners: h, inputProps: g } = e(t, {
88
79
  emit: n,
89
80
  slots: r,
90
81
  attrs: l,
91
- events: d,
92
- predicate: f
82
+ predicate: d
93
83
  }), _ = a(() => i(t.modelValue) ? Number(t.modelValue) : t.modelValue);
94
- return () => p({ vNodes: o(c, s({ style: "width: 100%" }, g.value, {
84
+ return () => f({ vNodes: o(c, s(h.value, g.value, {
85
+ style: "width: 100%",
95
86
  modelValue: _.value,
96
- disabled: h.value,
87
+ disabled: m.value,
97
88
  "onUpdate:modelValue": u,
98
- placeholder: m.value
89
+ placeholder: p.value
99
90
  }), {
100
91
  prefix: r.prefix || t.prefix ? () => t.prefix : null,
101
92
  suffix: r.suffix || t.suffix ? () => t.suffix : t.append,
@@ -105,4 +96,4 @@ var l = {
105
96
  }
106
97
  };
107
98
  //#endregion
108
- export { p as t };
99
+ export { f as t };