@web-utils/component 3.8.3 → 4.0.0

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 (67) hide show
  1. package/card/index.mjs +13 -13
  2. package/chat/index.mjs +2 -2
  3. package/chunks/{FormTemp.BSpnNput.mjs → FormTemp.Bu2VCxUh.mjs} +2 -2
  4. package/chunks/{dataformat.B9UvztrQ.mjs → dataformat.CpqOeGBl.mjs} +2 -2
  5. package/chunks/{dic.CET0XdKP.mjs → dic.Dkl-leRW.mjs} +43 -43
  6. package/chunks/{event.BT1F_1vF.mjs → event.9aDS6jcw.mjs} +2 -2
  7. package/chunks/{init.ofpxEyAI.mjs → init.DAsXSoLW.mjs} +2 -2
  8. package/chunks/{packages.CWPkeLu9.mjs → packages.ByyangTp.mjs} +3 -3
  9. package/chunks/{util.CoahLDYn.mjs → util.DqFv_pWg.mjs} +54 -55
  10. package/dialog-form/index.mjs +6 -6
  11. package/flow/index.mjs +30 -32
  12. package/flow-designer/index.mjs +1 -1
  13. package/flow-node/index.mjs +1 -1
  14. package/form-holder/index.mjs +18 -36
  15. package/form-view/index.mjs +21 -23
  16. package/fy-array/index.mjs +2 -2
  17. package/fy-cascader/index.mjs +1 -1
  18. package/fy-checkbox/index.mjs +1 -1
  19. package/fy-code/index.mjs +1 -1
  20. package/fy-curd/index.mjs +141 -137
  21. package/fy-date/index.mjs +1 -1
  22. package/fy-draggable/index.mjs +27 -19
  23. package/fy-dynamic/index.mjs +64 -57
  24. package/fy-empty/index.mjs +1 -1
  25. package/fy-form/index.mjs +117 -136
  26. package/fy-form-design/index.mjs +15 -16
  27. package/fy-form-design/style.css +1 -1
  28. package/fy-input/index.mjs +2 -2
  29. package/fy-input-color/index.mjs +1 -1
  30. package/fy-input-icon/index.mjs +1 -1
  31. package/fy-input-map/index.mjs +56 -51
  32. package/fy-input-number/index.mjs +1 -1
  33. package/fy-input-table/index.mjs +46 -38
  34. package/fy-input-tree/index.mjs +1 -1
  35. package/fy-radio/index.mjs +1 -1
  36. package/fy-rate/index.mjs +1 -1
  37. package/fy-select/index.mjs +4 -4
  38. package/fy-slider/index.mjs +2 -2
  39. package/fy-switch/index.mjs +1 -1
  40. package/fy-tabs/index.mjs +0 -1
  41. package/fy-time/index.mjs +1 -1
  42. package/fy-title/index.mjs +1 -1
  43. package/fy-tree/index.mjs +1 -1
  44. package/fy-u-editor/index.mjs +1 -1
  45. package/fy-upload/index.mjs +3 -3
  46. package/highlight-j-s/index.mjs +1 -1
  47. package/image-cropper/index.mjs +1 -1
  48. package/image-preview/index.mjs +1 -1
  49. package/license/index.mjs +1 -1
  50. package/login/index.mjs +1 -1
  51. package/monaco-editor/index.mjs +10 -12
  52. package/package.json +17 -17
  53. package/pageable-table/index.mjs +33 -37
  54. package/pageable-view/index.mjs +53 -57
  55. package/record-video/index.mjs +1 -1
  56. package/search/index.mjs +2 -2
  57. package/search-popover/index.mjs +1 -1
  58. package/sign/index.mjs +1 -1
  59. package/split-pane/index.mjs +3 -3
  60. package/table-view/index.mjs +1 -3
  61. package/text-ellipsis/index.mjs +1 -1
  62. package/verify/index.mjs +1 -1
  63. package/vue-cron/index.mjs +1 -1
  64. package/vue-quill-editor/index.mjs +24 -13
  65. package/vue-tags-input/index.mjs +21 -10
  66. package/vue-video-player/index.mjs +10 -12
  67. package/web-types.json +2 -5
package/fy-curd/index.mjs CHANGED
@@ -1,14 +1,25 @@
1
- import { p as $ } from "../chunks/packages.CWPkeLu9.mjs";
2
- import { p as x } from "../chunks/permission.CO31YIkD.mjs";
3
- import { i as O } from "../chunks/init.ofpxEyAI.mjs";
4
- import { g as F, f as k, t as I, c as E } from "../chunks/dataformat.B9UvztrQ.mjs";
5
- import { o as h, j as C, d as a, u as B, D as b, k as P, i as D, l as T, s as z } from "../chunks/util.CoahLDYn.mjs";
1
+ var k = Object.defineProperty;
2
+ var w = Object.getOwnPropertySymbols;
3
+ var I = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
4
+ var S = (t, e, i) => e in t ? k(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, y = (t, e) => {
5
+ for (var i in e || (e = {}))
6
+ I.call(e, i) && S(t, i, e[i]);
7
+ if (w)
8
+ for (var i of w(e))
9
+ E.call(e, i) && S(t, i, e[i]);
10
+ return t;
11
+ };
12
+ import { p as P } from "../chunks/packages.ByyangTp.mjs";
13
+ import { p as B } from "../chunks/permission.CO31YIkD.mjs";
14
+ import { i as D } from "../chunks/init.DAsXSoLW.mjs";
15
+ import { g as T, f as z, t as M, c as L } from "../chunks/dataformat.CpqOeGBl.mjs";
16
+ import { o as h, j as x, d as a, u as $, D as b, k as V, i as R, l as A, s as H } from "../chunks/util.DqFv_pWg.mjs";
6
17
  import { isBlank as c } from "@web-utils/core";
7
- import { s as M } from "../chunks/slot.DXIbhGat.mjs";
18
+ import { s as N } from "../chunks/slot.DXIbhGat.mjs";
8
19
  import { n as f } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
9
- import { F as L, d as w } from "../chunks/FormTemp.BSpnNput.mjs";
10
- import { s as V } from "../chunks/dic.CET0XdKP.mjs";
11
- import R from "../icon-temp/index.mjs";
20
+ import { F as j, d as O } from "../chunks/FormTemp.Bu2VCxUh.mjs";
21
+ import { s as W } from "../chunks/dic.Dkl-leRW.mjs";
22
+ import K from "../icon-temp/index.mjs";
12
23
  import "../icon-temp/style.css";
13
24
  const p = {
14
25
  menuWidth: 220,
@@ -79,9 +90,9 @@ const p = {
79
90
  dropRowClass: ".el-table__body-wrapper > table > tbody",
80
91
  dropColClass: ".el-table__header-wrapper tr",
81
92
  ghostClass: "avue-crud__ghost"
82
- }, A = {
93
+ }, U = {
83
94
  name: "HeaderSearch",
84
- mixins: [M],
95
+ mixins: [N],
85
96
  inject: ["crud"],
86
97
  props: {
87
98
  search: Object
@@ -118,7 +129,7 @@ const p = {
118
129
  d = d.replace(d[0], d[0].toLowerCase()), m[d] = l[u];
119
130
  }
120
131
  }), l = Object.assign(l, m, {
121
- type: F(l),
132
+ type: T(l),
122
133
  detail: !1,
123
134
  dicFlag: l.cascader ? !0 : h(l.dicFlag, !1),
124
135
  span: l.searchSpan || t.searchSpan || p.searchSpan,
@@ -213,7 +224,7 @@ const p = {
213
224
  },
214
225
  // 搜索回调
215
226
  searchChange(t, e) {
216
- t = C(t), this.crud.propOption.forEach((i) => {
227
+ t = x(t), this.crud.propOption.forEach((i) => {
217
228
  i.searchProp && (t[i.searchProp] = t[i.prop], delete t[i.prop]);
218
229
  }), this.crud.$emit("search-change", t, e);
219
230
  },
@@ -234,7 +245,7 @@ const p = {
234
245
  }
235
246
  }
236
247
  };
237
- var H = function() {
248
+ var G = function() {
238
249
  var e = this, i = e._self._c;
239
250
  return e.searchFlag ? i("ElCard", { directives: [{ name: "show", rawName: "v-show", value: e.searchShow && e.searchFlag, expression: "searchShow && searchFlag" }], staticClass: "avue-crud__search", attrs: { shadow: e.crud.isCard } }, [e._t("search", null, { row: e.searchForm, search: e.searchForm, size: e.crud.controlSize }), i("FyForm", { ref: "form", attrs: { option: e.option }, on: { submit: e.searchChange, "reset-change": e.resetChange }, scopedSlots: e._u([{ key: "menuForm", fn: function(n) {
240
251
  return [e._t(
@@ -265,18 +276,18 @@ var H = function() {
265
276
  })], null, !0), model: { value: e.searchForm, callback: function(n) {
266
277
  e.searchForm = n;
267
278
  }, expression: "searchForm" } })], 2) : e._e();
268
- }, N = [], j = /* @__PURE__ */ f(
269
- A,
270
- H,
271
- N,
279
+ }, q = [], X = /* @__PURE__ */ f(
280
+ U,
281
+ G,
282
+ q,
272
283
  !1,
273
284
  null,
274
285
  null
275
286
  );
276
- const W = j.exports, K = {
287
+ const J = X.exports, Q = {
277
288
  name: "HeaderMenu",
278
289
  directives: {
279
- permission: x
290
+ permission: B
280
291
  },
281
292
  inject: ["crud"],
282
293
  data() {
@@ -344,7 +355,7 @@ const W = j.exports, K = {
344
355
  }
345
356
  }
346
357
  };
347
- var U = function() {
358
+ var Y = function() {
348
359
  var e = this, i = e._self._c;
349
360
  return i("div", { staticClass: "avue-crud__menu" }, [e.optVal(e.crud.tableOption.menuLeft, !0) ? i("div", { staticClass: "avue-crud__left" }, [e.optVal(e.crud.tableOption.addBtn, e.config.addBtn) ? i("ElButton", { directives: [{ name: "permission", rawName: "v-permission", value: e.crud.getPermission("addBtn"), expression: "crud.getPermission('addBtn')" }], attrs: { type: "primary", icon: e.crud.getBtnIcon("addBtn"), size: e.crud.isMediumSize }, on: { click: e.crud.rowAdd } }, [e.crud.isIconMenu ? e._e() : [e._v(" " + e._s(e.crud.menuIcon("addBtn")) + " ")]], 2) : e._e(), e.optVal(e.crud.tableOption.addRowBtn, e.config.addRowBtn) ? i("ElButton", { directives: [{ name: "permission", rawName: "v-permission", value: e.crud.getPermission("addRowBtn"), expression: "crud.getPermission('addRowBtn')" }], attrs: { type: "primary", icon: e.crud.getBtnIcon("addBtn"), size: e.crud.isMediumSize }, on: { click: e.crud.rowCellAdd } }, [e.crud.isIconMenu ? e._e() : [e._v(" " + e._s(e.crud.menuIcon("addBtn")) + " ")]], 2) : e._e(), e._t("menuLeft", null, { size: e.crud.isMediumSize })], 2) : e._e(), e.optVal(e.crud.tableOption.menuRight, !0) ? i("div", { staticClass: "avue-crud__right" }, [e.optVal(e.crud.tableOption.dateBtn, e.config.dateBtn) ? i("FyDate", { staticStyle: { display: "inline-block", "margin-right": "20px" }, attrs: { type: "datetimerange", "value-format": "yyyy-MM-dd HH:mm:ss", format: "yyyy-MM-dd HH:mm:ss", "picker-options": e.pickerOptions, size: e.crud.isMediumSize }, on: { change: e.dateChange } }) : e._e(), e._t("menuRight", null, { size: e.crud.isMediumSize }), e.optVal(e.crud.tableOption.excelBtn, e.config.excelBtn) ? i("ElButton", { directives: [{ name: "permission", rawName: "v-permission", value: e.crud.getPermission("excelBtn"), expression: "crud.getPermission('excelBtn')" }], attrs: { icon: e.crud.getBtnIcon("excelBtn"), circle: "", size: e.crud.isMediumSize }, on: { click: e.rowExcel } }) : e._e(), e.optVal(e.crud.tableOption.printBtn, e.config.printBtn) ? i("ElButton", { directives: [{ name: "permission", rawName: "v-permission", value: e.crud.getPermission("printBtn"), expression: "crud.getPermission('printBtn')" }], attrs: { icon: e.crud.getBtnIcon("printBtn"), circle: "", size: e.crud.isMediumSize }, on: { click: e.rowPrint } }) : e._e(), e.optVal(e.crud.tableOption.refreshBtn, e.config.refreshBtn) ? i("ElButton", { directives: [{ name: "permission", rawName: "v-permission", value: e.crud.getPermission("refreshBtn"), expression: "crud.getPermission('refreshBtn')" }], attrs: { icon: e.crud.getBtnIcon("refreshBtn"), circle: "", size: e.crud.isMediumSize }, on: { click: e.crud.refreshChange } }) : e._e(), e.optVal(e.crud.tableOption.columnBtn, e.config.columnBtn) ? i("ElButton", { directives: [{ name: "permission", rawName: "v-permission", value: e.crud.getPermission("columnBtn"), expression: "crud.getPermission('columnBtn')" }], attrs: { icon: e.crud.getBtnIcon("columnBtn"), circle: "", size: e.crud.isMediumSize }, on: { click: function(n) {
350
361
  return e.crud.$refs.dialogColumn.handleShow();
@@ -353,17 +364,17 @@ var U = function() {
353
364
  } } }) : e._e(), e.optVal(e.crud.tableOption.filterBtn, e.config.filterBtn) ? i("ElButton", { directives: [{ name: "permission", rawName: "v-permission", value: e.crud.getPermission("filterBtn"), expression: "crud.getPermission('filterBtn')" }], attrs: { icon: e.crud.getBtnIcon("filterBtn"), circle: "", size: e.crud.isMediumSize }, on: { click: function(n) {
354
365
  return e.crud.$refs.dialogFilter.handleShow();
355
366
  } } }) : e._e()], 2) : e._e()]);
356
- }, G = [], q = /* @__PURE__ */ f(
357
- K,
358
- U,
359
- G,
367
+ }, Z = [], ee = /* @__PURE__ */ f(
368
+ Q,
369
+ Y,
370
+ Z,
360
371
  !1,
361
372
  null,
362
373
  null
363
374
  );
364
- const X = q.exports, y = {}, J = {
375
+ const te = ee.exports, C = {}, ie = {
365
376
  name: "ColumnSlot",
366
- components: { IconTemp: R, FormTemp: L },
377
+ components: { IconTemp: K, FormTemp: j },
367
378
  inject: ["dynamic", "crud"],
368
379
  props: {
369
380
  column: Object,
@@ -378,9 +389,9 @@ const X = q.exports, y = {}, J = {
378
389
  methods: {
379
390
  isBlank: c,
380
391
  optVal: h,
381
- uploadFun: B,
392
+ uploadFun: $,
382
393
  isMediaType(t, e) {
383
- return D(t, e);
394
+ return R(t, e);
384
395
  },
385
396
  vaildLabel(t, e, i) {
386
397
  if (t.rules && e.$cellEdit)
@@ -388,8 +399,8 @@ const X = q.exports, y = {}, J = {
388
399
  },
389
400
  columnChange(t, e, i) {
390
401
  const n = `${i}-${e.prop}`;
391
- y[n] || (this.handleChange(e, t), typeof e.change == "function" && e.cell === !0 && e.change({ row: t, column: e, index: i, value: t[e.prop] })), y[n] = !0, this.$nextTick(() => {
392
- y[n] = !1;
402
+ C[n] || (this.handleChange(e, t), typeof e.change == "function" && e.cell === !0 && e.change({ row: t, column: e, index: i, value: t[e.prop] })), C[n] = !0, this.$nextTick(() => {
403
+ C[n] = !1;
393
404
  });
394
405
  },
395
406
  handleChange(t, e) {
@@ -399,7 +410,7 @@ const X = q.exports, y = {}, J = {
399
410
  const r = n, s = e[t.prop], l = e.$index, o = this.findObject(this.columnOption, r);
400
411
  c(o) || (c(this.crud.cascaderDIC[l]) && this.$set(this.crud.cascaderDIC, l, {}), this.crud.cascaderIndexList.includes(l) && i.forEach((m) => {
401
412
  this.$set(this.crud.cascaderDIC[l], m.prop, []), i.forEach((u) => e[u] = "");
402
- }), !(c(i) || c(s) || c(o)) && V({
413
+ }), !(c(i) || c(s) || c(o)) && W({
403
414
  column: o,
404
415
  value: s,
405
416
  form: e
@@ -411,12 +422,12 @@ const X = q.exports, y = {}, J = {
411
422
  });
412
423
  },
413
424
  handleDetail(t, e) {
414
- const i = e.parentProp ? (this.crud.cascaderDIC[t.$index] || {})[e.prop] : this.crud.DIC[e.prop], n = w(t, e, this.crud.tableOption, i);
425
+ const i = e.parentProp ? (this.crud.cascaderDIC[t.$index] || {})[e.prop] : this.crud.DIC[e.prop], n = O(t, e, this.crud.tableOption, i);
415
426
  return !c(i) && this.crud.tableOption.filterDic !== !0 && (t[`$${e.prop}`] = n), n;
416
427
  },
417
428
  corArray(t, e) {
418
429
  let i = this.handleDetail(t, e);
419
- return Array.isArray(i) || (i = c(i) ? [] : i.split(P)), a(i);
430
+ return Array.isArray(i) || (i = c(i) ? [] : i.split(V)), a(i);
420
431
  },
421
432
  openImg(t, e, i) {
422
433
  let n = this.getImgList(t, e);
@@ -431,7 +442,7 @@ const X = q.exports, y = {}, J = {
431
442
  }
432
443
  }
433
444
  };
434
- var Q = function() {
445
+ var ne = function() {
435
446
  var e = this, i = e._self._c;
436
447
  return e.getColumnProp(e.column, "hide") ? i("ElTableColumn", { key: e.column.prop, attrs: { prop: e.column.prop, label: e.column.label, "column-key": e.column.prop, "filter-placement": "bottom-end", filters: e.getColumnProp(e.column, "filters"), "filter-method": e.getColumnProp(e.column, "filterMethod") ? e.handleFilterMethod : void 0, "filter-multiple": e.optVal(e.column.filterMultiple, !0), "show-overflow-tooltip": e.column.overHidden, "min-width": e.column.minWidth, sortable: e.getColumnProp(e.column, "sortable"), "sort-method": e.column.sortMethod, "sort-orders": e.column.sortOrders, "sort-by": e.column.sortBy, resizable: e.column.resizable, "render-header": e.column.renderHeader, align: e.column.align || e.crud.tableOption.align, "header-align": e.column.headerAlign || e.crud.tableOption.headerAlign, width: e.getColumnProp(e.column, "width"), fixed: e.getColumnProp(e.column, "fixed") }, scopedSlots: e._u([{ key: "header", fn: function({ $index: n }) {
437
448
  return [e.crud.getSlotName(e.column, "H", e.crud.$scopedSlots) ? e._t(e.crud.getSlotName(e.column, "H"), null, null, { column: e.column, $index: n }) : i("span", [e._v(e._s(e.column.label))])];
@@ -464,17 +475,17 @@ var Q = function() {
464
475
  e.$set(n, e.column.prop, s);
465
476
  }, expression: "row[column.prop]" } })], 1) : e.column.type === "color" ? i("i", { staticClass: "avue-crud__color", style: { backgroundColor: n[e.column.prop] } }) : e.column.type === "icon" ? i("IconTemp", { attrs: { text: n[e.column.prop] } }) : e.column.html ? i("span", { domProps: { innerHTML: e._s(e.handleDetail(n, e.column)) } }) : i("span", { domProps: { textContent: e._s(e.handleDetail(n, e.column)) } })]];
466
477
  } }], null, !0) }) : e._e();
467
- }, Y = [], Z = /* @__PURE__ */ f(
468
- J,
469
- Q,
470
- Y,
478
+ }, re = [], se = /* @__PURE__ */ f(
479
+ ie,
480
+ ne,
481
+ re,
471
482
  !1,
472
483
  null,
473
484
  null
474
485
  );
475
- const S = Z.exports, ee = {
486
+ const F = se.exports, le = {
476
487
  name: "ColumnDynamic",
477
- components: { ColumnSlot: S },
488
+ components: { ColumnSlot: F },
478
489
  inject: ["dynamic", "crud"],
479
490
  props: {
480
491
  columnOption: Object
@@ -489,7 +500,7 @@ const S = Z.exports, ee = {
489
500
  optVal: h
490
501
  }
491
502
  };
492
- var te = function() {
503
+ var oe = function() {
493
504
  var e = this, i = e._self._c;
494
505
  return e.getColumnProp(e.columnOption, "hide") ? i("ElTableColumn", { key: e.columnOption.prop, attrs: { prop: e.columnOption.prop, label: e.columnOption.label, "filter-placement": "bottom-end", filters: e.getColumnProp(e.columnOption, "filters"), "filter-method": e.getColumnProp(e.columnOption, "filterMethod") ? e.handleFilterMethod : void 0, "filter-multiple": e.optVal(e.columnOption.filterMultiple, !0), "show-overflow-tooltip": e.columnOption.overHidden, "min-width": e.columnOption.minWidth, sortable: e.getColumnProp(e.columnOption, "sortable"), "render-header": e.columnOption.renderHeader, align: e.columnOption.align || e.crud.tableOption.align, "header-align": e.columnOption.headerAlign || e.crud.tableOption.headerAlign, width: e.getColumnProp(e.columnOption, "width"), fixed: e.getColumnProp(e.columnOption, "fixed") } }, [e._l(e.columnOption.children, function(n) {
495
506
  return [n.children && n.children.length > 0 ? i("ColumnDynamic", { key: n.prop, attrs: { "column-option": n }, scopedSlots: e._u([e._l(e.crud.mainSlot, function(r) {
@@ -502,17 +513,17 @@ var te = function() {
502
513
  } };
503
514
  })], null, !0) })];
504
515
  })], 2) : e._e();
505
- }, ie = [], ne = /* @__PURE__ */ f(
506
- ee,
507
- te,
508
- ie,
516
+ }, ae = [], ce = /* @__PURE__ */ f(
517
+ le,
518
+ oe,
519
+ ae,
509
520
  !1,
510
521
  null,
511
522
  null
512
523
  );
513
- const re = ne.exports, se = {
524
+ const ue = ce.exports, de = {
514
525
  name: "Column",
515
- components: { ColumnDynamic: re, ColumnSlot: S },
526
+ components: { ColumnDynamic: ue, ColumnSlot: F },
516
527
  inject: ["crud"],
517
528
  provide() {
518
529
  return {
@@ -526,7 +537,7 @@ const re = ne.exports, se = {
526
537
  computed: {
527
538
  list() {
528
539
  let t = [...this.columnOption];
529
- return t = T(t, "index", (e, i) => {
540
+ return t = A(t, "index", (e, i) => {
530
541
  var n, r;
531
542
  return ((n = this.crud.objectOption[e.prop]) == null ? void 0 : n.index) - ((r = this.crud.objectOption[i.prop]) == null ? void 0 : r.index);
532
543
  }), t;
@@ -565,7 +576,7 @@ const re = ne.exports, se = {
565
576
  }
566
577
  }
567
578
  };
568
- var le = function() {
579
+ var pe = function() {
569
580
  var e = this, i = e._self._c;
570
581
  return i("div", [e._t("header"), e._l(e.list, function(n) {
571
582
  return [n.children && n.children.length > 0 ? i("ColumnDynamic", { key: n.pop, attrs: { "column-option": n }, scopedSlots: e._u([e._l(e.crud.mainSlot, function(r) {
@@ -578,15 +589,15 @@ var le = function() {
578
589
  } };
579
590
  })], null, !0) })];
580
591
  }), e._t("footer")], 2);
581
- }, oe = [], ae = /* @__PURE__ */ f(
582
- se,
583
- le,
584
- oe,
592
+ }, he = [], me = /* @__PURE__ */ f(
593
+ de,
594
+ pe,
595
+ he,
585
596
  !1,
586
597
  null,
587
598
  null
588
599
  );
589
- const ce = ae.exports, ue = {
600
+ const fe = me.exports, be = {
590
601
  name: "ColumnDefault",
591
602
  inject: ["crud"],
592
603
  data() {
@@ -623,23 +634,23 @@ const ce = ae.exports, ue = {
623
634
  }
624
635
  }
625
636
  };
626
- var de = function() {
637
+ var ge = function() {
627
638
  var e = this, i = e._self._c;
628
639
  return i("div", [i("ElTableColumn", { attrs: { width: "1px" } }), e.crud.tableOption.expand ? i("ElTableColumn", { key: "expand", attrs: { type: "expand", width: e.crud.tableOption.expandWidth || e.config.expandWidth, fixed: e.optVal(e.crud.tableOption.expandFixed, e.config.expandFixed), align: "center" }, scopedSlots: e._u([{ key: "default", fn: function({ row: n }) {
629
640
  return [e._t("expand", null, { row: n, index: n.$index })];
630
641
  } }], null, !0) }) : e._e(), e.crud.tableOption.selection ? i("ElTableColumn", { key: "selection", attrs: { fixed: e.optVal(e.crud.tableOption.selectionFixed, e.config.selectionFixed), type: "selection", selectable: e.crud.tableOption.selectable, "reserve-selection": e.optVal(e.crud.tableOption.reserveSelection), width: e.crud.tableOption.selectionWidth || e.config.selectionWidth, align: "center" } }) : e._e(), e.optVal(e.crud.tableOption.index) ? i("ElTableColumn", { key: "index", attrs: { fixed: e.optVal(e.crud.tableOption.indexFixed, e.config.indexFixed), label: e.crud.tableOption.indexLabel || e.config.indexLabel, type: "index", width: e.crud.tableOption.indexWidth || e.config.indexWidth, index: e.indexMethod, align: "center" } }) : e._e()], 1);
631
- }, pe = [], he = /* @__PURE__ */ f(
632
- ue,
633
- de,
634
- pe,
642
+ }, _e = [], ve = /* @__PURE__ */ f(
643
+ be,
644
+ ge,
645
+ _e,
635
646
  !1,
636
647
  null,
637
648
  null
638
649
  );
639
- const me = he.exports, fe = {
650
+ const ye = ve.exports, Ce = {
640
651
  name: "ColumnMenu",
641
652
  directives: {
642
- permission: x
653
+ permission: B
643
654
  },
644
655
  inject: ["crud"],
645
656
  data() {
@@ -668,7 +679,7 @@ const me = he.exports, fe = {
668
679
  }
669
680
  }
670
681
  };
671
- var be = function() {
682
+ var xe = function() {
672
683
  var e = this, i = e._self._c;
673
684
  return e.optVal(e.crud.tableOption.menu, e.config.menu) && e.crud.getPermission("menu") ? i("ElTableColumn", { key: "menu", staticClass: "avue-crud__btn", attrs: { prop: "menu", fixed: e.optVal(e.crud.tableOption.menuFixed, e.config.menuFixed), label: e.crud.tableOption.menuTitle || "操作", align: e.crud.tableOption.menuAlign || e.config.menuAlign, "header-align": e.crud.tableOption.menuHeaderAlign || e.config.menuHeaderAlign, width: e.crud.isMobile ? e.crud.tableOption.menuXsWidth || e.config.menuXsWidth : e.crud.tableOption.menuWidth || e.config.menuWidth }, scopedSlots: e._u([{ key: "default", fn: function({ row: n, $index: r }) {
674
685
  return [e.isMenu ? i("ElDropdown", { attrs: { size: e.crud.isMediumSize }, scopedSlots: e._u([{ key: "dropdown", fn: function() {
@@ -697,15 +708,15 @@ var be = function() {
697
708
  return s.stopPropagation(), e.crud.rowDel(n, r);
698
709
  } } }, [e.isIconMenu ? e._e() : [e._v(" " + e._s(e.crud.menuIcon("delBtn")) + " ")]], 2) : e._e()] : e._e(), e._t("menu", null, { row: n, type: e.menuText("primary"), disabled: e.crud.btnDisabled, size: e.crud.isMediumSize, index: r })];
699
710
  } }], null, !0) }) : e._e();
700
- }, ge = [], _e = /* @__PURE__ */ f(
701
- fe,
702
- be,
703
- ge,
711
+ }, Be = [], we = /* @__PURE__ */ f(
712
+ Ce,
713
+ xe,
714
+ Be,
704
715
  !1,
705
716
  null,
706
717
  null
707
718
  );
708
- const ve = _e.exports, ye = {
719
+ const Se = we.exports, $e = {
709
720
  name: "TablePage",
710
721
  inject: ["crud"],
711
722
  data() {
@@ -776,22 +787,22 @@ const ve = _e.exports, ye = {
776
787
  }
777
788
  }
778
789
  };
779
- var Ce = function() {
790
+ var Oe = function() {
780
791
  var e = this, i = e._self._c;
781
792
  return e.pageFlag && e.optVal(e.crud.tableOption.page, !0) ? i("ElCard", { staticClass: "avue-pagination", attrs: { shadow: e.crud.isCard } }, [e._t("page"), i("ElPagination", { staticStyle: { "margin-top": "25px" }, attrs: { small: e.crud.size === "mini", disabled: e.defaultPage.disabled, "hide-on-single-page": e.defaultPage.single, "pager-count": e.defaultPage.pagerCount, "current-page": e.defaultPage.currentPage, background: e.defaultPage.background, "page-size": e.defaultPage.pageSize, "page-sizes": e.defaultPage.pageSizes, layout: e.defaultPage.layout, total: e.defaultPage.total }, on: { "update:currentPage": function(n) {
782
793
  return e.$set(e.defaultPage, "currentPage", n);
783
794
  }, "update:current-page": function(n) {
784
795
  return e.$set(e.defaultPage, "currentPage", n);
785
796
  }, "size-change": e.sizeChange, "prev-click": e.prevClick, "next-click": e.nextClick, "current-change": e.currentChange } })], 2) : e._e();
786
- }, xe = [], Be = /* @__PURE__ */ f(
787
- ye,
788
- Ce,
789
- xe,
797
+ }, Fe = [], ke = /* @__PURE__ */ f(
798
+ $e,
799
+ Oe,
800
+ Fe,
790
801
  !1,
791
802
  null,
792
803
  null
793
804
  );
794
- const we = Be.exports, Se = {
805
+ const Ie = ke.exports, Ee = {
795
806
  name: "FyDialogForm",
796
807
  inject: ["crud"],
797
808
  data() {
@@ -866,7 +877,7 @@ const we = Be.exports, Se = {
866
877
  },
867
878
  methods: {
868
879
  optVal: h,
869
- uploadFun: B,
880
+ uploadFun: $,
870
881
  submit() {
871
882
  this.$refs.tableForm.submit();
872
883
  },
@@ -898,11 +909,11 @@ const we = Be.exports, Se = {
898
909
  },
899
910
  // 保存
900
911
  rowSave(t) {
901
- this.crud.$emit("row-save", C(this.crud.tableForm, ["$"]), this.closeDialog, t);
912
+ this.crud.$emit("row-save", x(this.crud.tableForm, ["$"]), this.closeDialog, t);
902
913
  },
903
914
  // 更新
904
915
  rowUpdate(t) {
905
- this.crud.$emit("row-update", C(this.crud.tableForm, ["$"]), this.crud.tableIndex, this.closeDialog, t);
916
+ this.crud.$emit("row-update", x(this.crud.tableForm, ["$"]), this.crud.tableIndex, this.closeDialog, t);
906
917
  },
907
918
  closeDialog(t) {
908
919
  t = a(t), t && (() => {
@@ -937,7 +948,7 @@ const we = Be.exports, Se = {
937
948
  }
938
949
  }
939
950
  };
940
- var $e = function() {
951
+ var Pe = function() {
941
952
  var e = this, i = e._self._c;
942
953
  return e.boxVisible ? i(e.dialogType, e._b({ tag: "Component", staticClass: "dialog-form", attrs: { "lock-scroll": "", "show-full-screen": "", "destroy-on-close": e.crud.tableOption.dialogDestroy, "wrapper-closable": e.crud.tableOption.dialogClickModal, direction: e.direction, "custom-class": e.crud.tableOption.dialogCustomClass, "modal-append-to-body": "", "append-to-body": "", top: e.dialogTop, title: e.dialogTitle, "close-on-press-escape": e.crud.tableOption.dialogEscape, "close-on-click-modal": e.optVal(e.crud.tableOption.dialogClickModal, !1), modal: e.crud.tableOption.dialogModal, "show-close": e.crud.tableOption.dialogCloseBtn, visible: e.boxVisible, "before-close": e.hide }, on: { "update:visible": function(n) {
943
954
  e.boxVisible = n;
@@ -950,15 +961,15 @@ var $e = function() {
950
961
  })], null, !0), model: { value: e.crud.tableForm, callback: function(n) {
951
962
  e.$set(e.crud, "tableForm", n);
952
963
  }, expression: "crud.tableForm" } }, "FyForm", e.uploadFun({}, e.crud), !1)), i("span", { staticClass: "avue-dialog__footer", class: `avue-dialog__footer--${e.dialogMenuPosition}` }, [e.optVal(e.option.submitBtn, !0) && !e.isView ? i("ElButton", { attrs: { loading: e.disabled, size: e.crud.controlSize, icon: e.option.submitIcon, type: "primary" }, on: { click: e.submit } }, [e._v(" " + e._s(e.option.submitText) + " ")]) : e._e(), e.optVal(e.option.emptyBtn, !0) && !e.isView ? i("ElButton", { attrs: { disabled: e.disabled, size: e.crud.controlSize, icon: e.option.emptyIcon }, on: { click: e.reset } }, [e._v(" " + e._s(e.option.emptyText) + " ")]) : e._e(), e._t("menuForm", null, { disabled: e.disabled, size: e.crud.controlSize, type: e.boxType })], 2)], 1) : e._e();
953
- }, Oe = [], Fe = /* @__PURE__ */ f(
954
- Se,
955
- $e,
956
- Oe,
964
+ }, De = [], Te = /* @__PURE__ */ f(
965
+ Ee,
966
+ Pe,
967
+ De,
957
968
  !1,
958
969
  null,
959
970
  null
960
971
  );
961
- const ke = Fe.exports, Ie = {
972
+ const ze = Te.exports, Me = {
962
973
  name: "DialogColumn",
963
974
  inject: ["crud"],
964
975
  data() {
@@ -1017,7 +1028,7 @@ const ke = Fe.exports, Ie = {
1017
1028
  }
1018
1029
  }
1019
1030
  };
1020
- var Ee = function() {
1031
+ var Le = function() {
1021
1032
  var e = this, i = e._self._c;
1022
1033
  return e.columnBox ? i("div", [i("ElDrawer", { staticClass: "avue-crud__dialog avue-crud__column avue-dialog", attrs: { "lock-scroll": "", "append-to-body": "", title: "列显隐", size: e.crud.isMobile ? "100%" : "40%", visible: e.columnBox }, on: { "update:visible": function(n) {
1023
1034
  e.columnBox = n;
@@ -1030,15 +1041,15 @@ var Ee = function() {
1030
1041
  }, expression: "crud.objectOption[row.prop][item.prop]" } })];
1031
1042
  } }], null, !0) }) : e._e()];
1032
1043
  })], 2)], 1)], 1) : e._e();
1033
- }, Pe = [], De = /* @__PURE__ */ f(
1034
- Ie,
1035
- Ee,
1036
- Pe,
1044
+ }, Ve = [], Re = /* @__PURE__ */ f(
1045
+ Me,
1046
+ Le,
1047
+ Ve,
1037
1048
  !1,
1038
1049
  null,
1039
1050
  null
1040
1051
  );
1041
- const Te = De.exports, ze = {
1052
+ const Ae = Re.exports, He = {
1042
1053
  name: "DialogExcel",
1043
1054
  inject: ["crud"],
1044
1055
  data() {
@@ -1069,7 +1080,7 @@ const Te = De.exports, ze = {
1069
1080
  const s = a(r);
1070
1081
  e.forEach((l) => {
1071
1082
  const o = l.parentProp ? (this.crud.cascaderDIC[l.$index] || {})[l.prop] : this.crud.DIC[l.prop];
1072
- s[l.prop] = w(s, l, t, o);
1083
+ s[l.prop] = O(s, l, t, o);
1073
1084
  }), n.push(s);
1074
1085
  }), this.form.params.includes("sum") && t.showSummary && n.push(this.crud.sumsList), n;
1075
1086
  },
@@ -1181,7 +1192,7 @@ const Te = De.exports, ze = {
1181
1192
  }
1182
1193
  }
1183
1194
  };
1184
- var Me = function() {
1195
+ var Ne = function() {
1185
1196
  var e = this, i = e._self._c;
1186
1197
  return e.box ? i("div", [i("ElementDialog", { staticClass: "avue-dialog", attrs: { title: "导出", "lock-scroll": "", visible: e.box, width: e.crud.isMobile ? "100%" : "30%" }, on: { "update:visible": function(n) {
1187
1198
  e.box = n;
@@ -1192,15 +1203,15 @@ var Me = function() {
1192
1203
  }, proxy: !0 }], null, !1, 2375905330) }, [i("FyForm", { attrs: { option: e.option }, model: { value: e.form, callback: function(n) {
1193
1204
  e.form = n;
1194
1205
  }, expression: "form" } })], 1)], 1) : e._e();
1195
- }, Le = [], Ve = /* @__PURE__ */ f(
1196
- ze,
1197
- Me,
1198
- Le,
1206
+ }, je = [], We = /* @__PURE__ */ f(
1207
+ He,
1208
+ Ne,
1209
+ je,
1199
1210
  !1,
1200
1211
  null,
1201
1212
  null
1202
1213
  );
1203
- const Re = Ve.exports, Ae = {
1214
+ const Ke = We.exports, Ue = {
1204
1215
  name: "DialogFilter",
1205
1216
  inject: ["crud"],
1206
1217
  data() {
@@ -1289,7 +1300,7 @@ const Re = Ve.exports, Ae = {
1289
1300
  }
1290
1301
  }
1291
1302
  };
1292
- var He = function() {
1303
+ var Ge = function() {
1293
1304
  var e = this, i = e._self._c;
1294
1305
  return e.box ? i("div", [i("ElDrawer", { staticClass: "avue-dialog", class: ["avue-crud__dialog", "avue-crud__filter"], attrs: { "lock-scroll": "", "append-to-body": "", title: "过滤条件", size: e.crud.isMobile ? "100%" : "60%", visible: e.box }, on: { "update:visible": function(n) {
1295
1306
  e.box = n;
@@ -1308,32 +1319,32 @@ var He = function() {
1308
1319
  }), i("ElCol", { staticClass: "avue-form__menu avue-form__menu--right", attrs: { span: 24 } }, [i("ElButton", { attrs: { type: "primary", size: e.crud.isMediumSize }, on: { click: e.handleSubmit } }, [e._v(" 确 定 ")]), i("ElButton", { attrs: { size: e.crud.isMediumSize }, on: { click: function(n) {
1309
1320
  e.box = !1;
1310
1321
  } } }, [e._v(" 取 消 ")])], 1)], 2)], 1)], 1) : e._e();
1311
- }, Ne = [], je = /* @__PURE__ */ f(
1312
- Ae,
1313
- He,
1314
- Ne,
1322
+ }, qe = [], Xe = /* @__PURE__ */ f(
1323
+ Ue,
1324
+ Ge,
1325
+ qe,
1315
1326
  !1,
1316
1327
  null,
1317
1328
  null
1318
1329
  );
1319
- const We = je.exports, Ke = {
1330
+ const Je = Xe.exports, Qe = {
1320
1331
  name: "FyCurd",
1321
1332
  components: {
1322
- DialogFilter: We,
1323
- DialogExcel: Re,
1324
- DialogColumn: Te,
1325
- FyDialogForm: ke,
1326
- TablePage: we,
1327
- ColumnMenu: ve,
1328
- ColumnDefault: me,
1329
- Column: ce,
1330
- HeaderMenu: X,
1331
- HeaderSearch: W
1333
+ DialogFilter: Je,
1334
+ DialogExcel: Ke,
1335
+ DialogColumn: Ae,
1336
+ FyDialogForm: ze,
1337
+ TablePage: Ie,
1338
+ ColumnMenu: Se,
1339
+ ColumnDefault: ye,
1340
+ Column: fe,
1341
+ HeaderMenu: te,
1342
+ HeaderSearch: J
1332
1343
  },
1333
1344
  directives: {
1334
- permission: x
1345
+ permission: B
1335
1346
  },
1336
- mixins: [O],
1347
+ mixins: [D],
1337
1348
  provide() {
1338
1349
  return {
1339
1350
  crud: this
@@ -1385,7 +1396,6 @@ const We = je.exports, Ke = {
1385
1396
  },
1386
1397
  data: {
1387
1398
  type: Array,
1388
- required: !0,
1389
1399
  default: () => []
1390
1400
  }
1391
1401
  },
@@ -1461,7 +1471,7 @@ const We = je.exports, Ke = {
1461
1471
  Array.isArray(n.children) ? e(n.children) : t.push(n);
1462
1472
  });
1463
1473
  }
1464
- return e(this.columnOption), t = E(t), t;
1474
+ return e(this.columnOption), t = L(t), t;
1465
1475
  },
1466
1476
  isShowSummary() {
1467
1477
  return this.option.showSummary;
@@ -1525,7 +1535,7 @@ const We = je.exports, Ke = {
1525
1535
  this.dataInit(), this.getTableHeight(), this.refreshTable();
1526
1536
  },
1527
1537
  methods: {
1528
- setPx: z,
1538
+ setPx: H,
1529
1539
  optVal: h,
1530
1540
  handleValidate(t, e, i) {
1531
1541
  this.listError[t] || this.$set(this.listError, t, { valid: !1, msg: "" }), this.listError[t].valid = !e, this.listError[t].msg = i;
@@ -1556,7 +1566,7 @@ const We = je.exports, Ke = {
1556
1566
  });
1557
1567
  },
1558
1568
  menuIcon(t) {
1559
- return h(this.tableOption[`${t}Text`], I(`crud.${t}`));
1569
+ return h(this.tableOption[`${t}Text`], M(`crud.${t}`));
1560
1570
  },
1561
1571
  getBtnIcon(t) {
1562
1572
  const e = `${t}Icon`;
@@ -1675,17 +1685,11 @@ const We = je.exports, Ke = {
1675
1685
  },
1676
1686
  // 单元格新增
1677
1687
  rowCellAdd(t = {}) {
1678
- const e = this.list.length, i = k(this.propOption).tableForm;
1679
- t = a(
1680
- Object.assign(
1681
- {
1682
- $cellEdit: !0,
1683
- $index: e
1684
- },
1685
- i,
1686
- t
1687
- )
1688
- ), this.list.push(t);
1688
+ const e = this.list.length, i = z(this.propOption).tableForm;
1689
+ t = a(y(y({
1690
+ $cellEdit: !0,
1691
+ $index: e
1692
+ }, i), t)), this.list.push(t);
1689
1693
  },
1690
1694
  // 行取消
1691
1695
  rowCancel(t, e) {
@@ -1806,7 +1810,7 @@ const We = je.exports, Ke = {
1806
1810
  return;
1807
1811
  }
1808
1812
  if (!window.Sortable) {
1809
- $.logs("Sortable");
1813
+ P.logs("Sortable");
1810
1814
  return;
1811
1815
  }
1812
1816
  window.Sortable.create(e, {
@@ -1833,7 +1837,7 @@ const We = je.exports, Ke = {
1833
1837
  }
1834
1838
  }
1835
1839
  };
1836
- var Ue = function() {
1840
+ var Ye = function() {
1837
1841
  var e = this, i = e._self._c;
1838
1842
  return i("div", { staticClass: "avue-crud avue-crud--card" }, [e.tableOption.title ? i(e.tableOption.titleSize || "h2", { tag: "Component", style: e.tableOption.titleStyle }, [e._v(" " + e._s(e.tableOption.title) + " ")]) : e._e(), i("HeaderSearch", { ref: "headerSearch", scopedSlots: e._u([{ key: "search", fn: function(n) {
1839
1843
  return [e._t("search", null, null, n)];
@@ -1870,15 +1874,15 @@ var Ue = function() {
1870
1874
  }), { key: "menuForm", fn: function(n) {
1871
1875
  return [e._t("menuForm", null, null, n)];
1872
1876
  } }], null, !0) }), i("DialogColumn", { ref: "dialogColumn" }), i("DialogExcel", { ref: "dialogExcel" }), i("DialogFilter", { ref: "dialogFilter" })], 2);
1873
- }, Ge = [], qe = /* @__PURE__ */ f(
1874
- Ke,
1875
- Ue,
1876
- Ge,
1877
+ }, Ze = [], et = /* @__PURE__ */ f(
1878
+ Qe,
1879
+ Ye,
1880
+ Ze,
1877
1881
  !1,
1878
1882
  null,
1879
1883
  null
1880
1884
  );
1881
- const ot = qe.exports;
1885
+ const mt = et.exports;
1882
1886
  export {
1883
- ot as default
1887
+ mt as default
1884
1888
  };
package/fy-date/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { p as l, e as r } from "../chunks/event.BT1F_1vF.mjs";
1
+ import { p as l, e as r } from "../chunks/event.9aDS6jcw.mjs";
2
2
  import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const o = {
4
4
  name: "FyDate",