@web-utils/component 2.7.12 → 2.7.14

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 (110) hide show
  1. package/dist/chunks/{ConfigSelect.vue_vue_type_template_lang.e7a9d5b7.js → ConfigSelect.vue_vue_type_template_lang.dfc91f07.js} +20 -15
  2. package/dist/chunks/{ConfigTable.vue_vue_type_template_lang.e9060616.js → ConfigTable.vue_vue_type_template_lang.b27540fd.js} +1 -1
  3. package/dist/chunks/{ConfigUpload.vue_vue_type_template_lang.48dd814b.js → ConfigUpload.vue_vue_type_template_lang.129c0ced.js} +18 -13
  4. package/dist/chunks/{WidgetConfig.vue_vue_type_template_lang.d3cd0479.js → WidgetConfig.vue_vue_type_template_lang.3cc74fe8.js} +16 -16
  5. package/dist/chunks/{WidgetForm.vue_vue_type_template_lang.fbb7d6b7.js → WidgetForm.vue_vue_type_template_lang.d4b05679.js} +10 -10
  6. package/dist/chunks/{WidgetFormGroup.vue_vue_type_template_lang.47789aae.js → WidgetFormGroup.vue_vue_type_template_lang.bdcb6d37.js} +13 -13
  7. package/dist/chunks/{WidgetFormTable.vue_vue_type_template_lang.30625146.js → WidgetFormTable.vue_vue_type_template_lang.e2b788ba.js} +4 -3
  8. package/dist/chunks/{dataformat.d3fd2d1b.js → dataformat.65b92bfe.js} +36 -35
  9. package/dist/chunks/detail.d67573b1.js +28 -0
  10. package/dist/chunks/dic.70feb9b4.js +135 -0
  11. package/dist/chunks/{event.43b42228.js → event.dd6f522d.js} +3 -3
  12. package/dist/chunks/{init.3b47bb80.js → init.7c58eb34.js} +10 -10
  13. package/dist/chunks/{monaco.1dbdc960.js → monaco.cefcb9f5.js} +92 -85
  14. package/dist/chunks/{packages.6f252850.js → packages.1fc9ccba.js} +1 -1
  15. package/dist/chunks/slot.4b391395.js +27 -0
  16. package/dist/chunks/util.23fe58fb.js +261 -0
  17. package/dist/components/afd-column/index.js +1 -1
  18. package/dist/components/affix/index.js +2 -2
  19. package/dist/components/base.css +1 -1
  20. package/dist/components/carousel/index.js +2 -2
  21. package/dist/components/chat/index.js +9 -9
  22. package/dist/components/column/index.js +25 -25
  23. package/dist/components/column-default/index.js +3 -2
  24. package/dist/components/column-dynamic/index.js +1 -1
  25. package/dist/components/column-menu/index.js +11 -11
  26. package/dist/components/column-slot/index.js +54 -53
  27. package/dist/components/config-custom/index.js +3 -3
  28. package/dist/components/config-event/index.js +5 -5
  29. package/dist/components/config-rate/index.js +1 -1
  30. package/dist/components/config-rate/style.css +1 -1
  31. package/dist/components/config-select/index.js +3 -3
  32. package/dist/components/config-switch/index.js +5 -5
  33. package/dist/components/config-switch/style.css +1 -1
  34. package/dist/components/config-table/index.js +3 -3
  35. package/dist/components/config-tree/index.js +3 -3
  36. package/dist/components/config-tree/style.css +1 -1
  37. package/dist/components/config-upload/index.js +1 -1
  38. package/dist/components/dialog-excel/index.js +37 -40
  39. package/dist/components/dialog-filter/index.js +19 -19
  40. package/dist/components/dialog-form/index.js +1 -1
  41. package/dist/components/element-dialog/index.js +2 -2
  42. package/dist/components/element-dialog/style.css +1 -1
  43. package/dist/components/flow/index.js +17 -18
  44. package/dist/components/flow-node/index.js +1 -1
  45. package/dist/components/form-temp/index.js +3 -3
  46. package/dist/components/fy-array/index.js +2 -2
  47. package/dist/components/fy-cascader/index.js +13 -13
  48. package/dist/components/fy-checkbox/index.js +4 -4
  49. package/dist/components/fy-code/index.js +1 -1
  50. package/dist/components/fy-curd/index.js +68 -69
  51. package/dist/components/fy-date/index.js +1 -1
  52. package/dist/components/fy-dialog-form/index.js +11 -11
  53. package/dist/components/fy-draggable/index.js +5 -7
  54. package/dist/components/fy-dynamic/index.js +32 -28
  55. package/dist/components/fy-empty/index.js +1 -1
  56. package/dist/components/fy-form/index.js +153 -141
  57. package/dist/components/fy-form-design/index.js +31 -31
  58. package/dist/components/fy-input/index.js +60 -46
  59. package/dist/components/fy-input-color/index.js +34 -29
  60. package/dist/components/fy-input-icon/index.js +1 -1
  61. package/dist/components/fy-input-map/index.js +14 -14
  62. package/dist/components/fy-input-number/index.js +1 -1
  63. package/dist/components/fy-input-table/index.js +2 -2
  64. package/dist/components/fy-input-tree/index.js +12 -12
  65. package/dist/components/fy-radio/index.js +1 -1
  66. package/dist/components/fy-rate/index.js +1 -1
  67. package/dist/components/fy-select/index.js +3 -3
  68. package/dist/components/fy-slider/index.js +2 -2
  69. package/dist/components/fy-switch/index.js +1 -1
  70. package/dist/components/fy-tabs/index.js +2 -2
  71. package/dist/components/fy-time/index.js +2 -2
  72. package/dist/components/fy-title/index.js +1 -1
  73. package/dist/components/fy-tree/index.js +3 -3
  74. package/dist/components/fy-u-editor/index.js +26 -24
  75. package/dist/components/fy-upload/index.js +198 -312
  76. package/dist/components/header-menu/index.js +2 -2
  77. package/dist/components/header-search/index.js +16 -15
  78. package/dist/components/image-cropper/index.js +299 -0
  79. package/dist/components/image-cropper/style.css +1 -0
  80. package/dist/components/image-preview/index.js +346 -0
  81. package/dist/components/image-preview/style.css +1 -0
  82. package/dist/components/keyboard/index.js +58 -63
  83. package/dist/components/license/index.js +7 -7
  84. package/dist/components/login/index.js +37 -32
  85. package/dist/components/name-avatar/index.js +1 -1
  86. package/dist/components/pageable-table/index.js +1 -1
  87. package/dist/components/pageable-view/index.js +26 -26
  88. package/dist/components/photo-swipe/index.js +71 -166
  89. package/dist/components/queue/index.js +6 -6
  90. package/dist/components/record-video/index.js +18 -18
  91. package/dist/components/search/index.js +3 -3
  92. package/dist/components/sign/index.js +64 -59
  93. package/dist/components/skeleton/index.js +1 -1
  94. package/dist/components/table-page/index.js +5 -5
  95. package/dist/components/text-ellipsis/index.js +11 -10
  96. package/dist/components/verify/index.js +25 -25
  97. package/dist/components/widget-config/index.js +8 -8
  98. package/dist/components/widget-form/index.js +7 -7
  99. package/dist/components/widget-form-group/index.js +8 -8
  100. package/dist/components/widget-form-item/index.js +14 -13
  101. package/dist/components/widget-form-table/index.js +14 -14
  102. package/dist/index.css +109 -40
  103. package/dist/index.es.js +4069 -3731
  104. package/package.json +6 -56
  105. package/web-types.json +28 -10
  106. package/dist/chunks/detail.ac4d421a.js +0 -28
  107. package/dist/chunks/dic.79d9f595.js +0 -133
  108. package/dist/chunks/slot.1b8d2b1b.js +0 -27
  109. package/dist/chunks/util.80e28481.js +0 -250
  110. package/dist/components/photo-swipe/style.css +0 -1
@@ -1,4 +1,4 @@
1
- import { p as i, e as c } from "../../chunks/event.43b42228.js";
1
+ import { p as c, e as i } from "../../chunks/event.dd6f522d.js";
2
2
  import { n as o } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
3
  var r = function() {
4
4
  var e = this, t = e.$createElement, l = e._self._c || t;
@@ -57,7 +57,7 @@ var r = function() {
57
57
  }, h = [];
58
58
  const d = {
59
59
  name: "FyCheckbox",
60
- mixins: [i, c],
60
+ mixins: [c, i],
61
61
  props: {
62
62
  all: {
63
63
  type: Boolean,
@@ -86,10 +86,10 @@ const d = {
86
86
  this.all && (this.text = e ? this.dic.map((t) => t[this.valueKey]) : [], this.isIndeterminate = !1);
87
87
  },
88
88
  handleCheckChange() {
89
- let e = this.text;
89
+ const e = this.text;
90
90
  if (!this.all)
91
91
  return;
92
- let t = e.length, l = this.dic.length;
92
+ const t = e.length, l = this.dic.length;
93
93
  this.checkAll = t === l, this.isIndeterminate = t > 0 && t < l;
94
94
  }
95
95
  }
@@ -1,5 +1,5 @@
1
1
  import s from "element-ui/lib/scrollbar";
2
- import { s as o } from "../../chunks/util.80e28481.js";
2
+ import { s as o } from "../../chunks/util.23fe58fb.js";
3
3
  import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
4
4
  var i = function() {
5
5
  var t = this, e = t.$createElement, n = t._self._c || e;
@@ -1,9 +1,9 @@
1
- import { p as F } from "../../chunks/packages.6f252850.js";
1
+ import { p as F } from "../../chunks/packages.1fc9ccba.js";
2
2
  import { p as S } from "../../chunks/permission.ce5d2121.js";
3
- import { i as _ } from "../../chunks/init.3b47bb80.js";
3
+ import { i as _ } from "../../chunks/init.7c58eb34.js";
4
4
  import { c as d } from "../../chunks/config.46422d7f.js";
5
- import { b as v, t as O, f as L } from "../../chunks/dataformat.d3fd2d1b.js";
6
- import { k as f, s as k, o as y, d as n } from "../../chunks/util.80e28481.js";
5
+ import { b as O, t as v, f as L } from "../../chunks/dataformat.65b92bfe.js";
6
+ import { k as f, s as k, o as y, d as n } from "../../chunks/util.23fe58fb.js";
7
7
  import { isBlank as b } from "@web-utils/core";
8
8
  import { n as E } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
9
9
  var x = function() {
@@ -28,8 +28,8 @@ var x = function() {
28
28
  }, e._l(e.searchSlot, function(i) {
29
29
  return {
30
30
  key: i,
31
- fn: function(r) {
32
- return [e._t(i, null, null, r)];
31
+ fn: function(s) {
32
+ return [e._t(i, null, null, s)];
33
33
  }
34
34
  };
35
35
  })], null, !0)
@@ -158,10 +158,10 @@ var x = function() {
158
158
  scopedSlots: e._u([{
159
159
  key: "expand",
160
160
  fn: function(i) {
161
- var r = i.row, s = i.index;
161
+ var s = i.row, r = i.index;
162
162
  return [e._t("expand", null, {
163
- row: r,
164
- index: s
163
+ row: s,
164
+ index: r
165
165
  })];
166
166
  }
167
167
  }], null, !0)
@@ -171,8 +171,8 @@ var x = function() {
171
171
  }, e._l(e.mainSlot, function(i) {
172
172
  return {
173
173
  key: i,
174
- fn: function(r) {
175
- return [e._t(i, null, null, r)];
174
+ fn: function(s) {
175
+ return [e._t(i, null, null, s)];
176
176
  }
177
177
  };
178
178
  }), {
@@ -201,8 +201,8 @@ var x = function() {
201
201
  scopedSlots: e._u([e._l(e.formSlot, function(i) {
202
202
  return {
203
203
  key: i,
204
- fn: function(r) {
205
- return [e._t(i, null, null, r)];
204
+ fn: function(s) {
205
+ return [e._t(i, null, null, s)];
206
206
  }
207
207
  };
208
208
  }), {
@@ -337,7 +337,7 @@ const P = {
337
337
  return this.getSlotList(["Search"], this.$scopedSlots, this.propOption);
338
338
  },
339
339
  mainSlot() {
340
- let e = [];
340
+ const e = [];
341
341
  return this.propOption.forEach((t) => {
342
342
  this.$scopedSlots[t.prop] && e.push(t.prop);
343
343
  }), this.getSlotList(["Header", "Form"], this.$scopedSlots, this.propOption).concat(e);
@@ -352,7 +352,7 @@ const P = {
352
352
  Array.isArray(i.children) ? t(i.children) : e.push(i);
353
353
  });
354
354
  }
355
- return t(this.columnOption), e = v(e), e;
355
+ return t(this.columnOption), e = O(e), e;
356
356
  },
357
357
  isShowSummary() {
358
358
  return this.option.showSummary;
@@ -441,20 +441,20 @@ const P = {
441
441
  e && e();
442
442
  });
443
443
  },
444
- //树懒加载
444
+ // 树懒加载
445
445
  treeLoad(e, t, l) {
446
446
  this.$emit("tree-load", e, t, (i) => {
447
447
  e.children = i, l(i);
448
448
  });
449
449
  },
450
450
  menuIcon(e) {
451
- return y(this.tableOption[e + "Text"], O(`crud.${e}`));
451
+ return y(this.tableOption[`${e}Text`], v(`crud.${e}`));
452
452
  },
453
453
  getBtnIcon(e) {
454
- const t = e + "Icon";
454
+ const t = `${e}Icon`;
455
455
  return this.tableOption[t] || d[t];
456
456
  },
457
- //对部分表单字段进行校验的方法
457
+ // 对部分表单字段进行校验的方法
458
458
  validateField(e) {
459
459
  return this.$refs.dialogForm.$refs.tableForm.validateField(e);
460
460
  },
@@ -475,27 +475,27 @@ const P = {
475
475
  e.$cellEdit && !this.cascaderFormList[t] && (this.cascaderFormList[t] = n(e)), this.$set(e, "$cellEdit", e.$cellEdit || !1), this.$set(e, "$index", t);
476
476
  });
477
477
  },
478
- //拖动表头事件
478
+ // 拖动表头事件
479
479
  headerDragend(e, t, l, i) {
480
480
  this.objectOption[l.property] && this.$set(this.objectOption[l.property], "width", e), this.$emit("header-dragend", e, t, l, i);
481
481
  },
482
482
  headerSort(e, t) {
483
- let l = this.columnOption, i = l.splice(e, 1)[0];
483
+ const l = this.columnOption, i = l.splice(e, 1)[0];
484
484
  l.splice(t, 0, i), this.refreshTable();
485
485
  },
486
486
  // 清除过滤器执行函数
487
487
  clearFilter(e) {
488
488
  this.$refs.table.clearFilter(e);
489
489
  },
490
- //展开或则关闭
490
+ // 展开或则关闭
491
491
  expandChange(e, t) {
492
492
  this.$emit("expand-change", e, t);
493
493
  },
494
- //设置单选
494
+ // 设置单选
495
495
  currentRowChange(e, t) {
496
496
  this.$emit("current-row-change", e, t);
497
497
  },
498
- //刷新事件
498
+ // 刷新事件
499
499
  refreshChange() {
500
500
  this.$emit("refresh-change");
501
501
  },
@@ -517,7 +517,7 @@ const P = {
517
517
  selectAll(e) {
518
518
  this.$emit("select-all", e);
519
519
  },
520
- //筛选回调用
520
+ // 筛选回调用
521
521
  filterChange(e) {
522
522
  this.$emit("filter-change", e);
523
523
  },
@@ -533,19 +533,19 @@ const P = {
533
533
  rowClick(e, t, l) {
534
534
  this.$emit("row-click", e, t, l);
535
535
  },
536
- //清空排序
536
+ // 清空排序
537
537
  clearSort() {
538
538
  this.$refs.table.clearSort();
539
539
  },
540
- //当单元格 hover 进入时会触发该事件
540
+ // 当单元格 hover 进入时会触发该事件
541
541
  cellMouseEnter(e, t, l, i) {
542
542
  this.$emit("cell-mouse-enter", e, t, l, i);
543
543
  },
544
- //当单元格 hover 退出时会触发该事件
544
+ // 当单元格 hover 退出时会触发该事件
545
545
  cellMouseLeave(e, t, l, i) {
546
546
  this.$emit("cell-mouse-leave", e, t, l, i);
547
547
  },
548
- //当某个单元格被点击时会触发该事件
548
+ // 当某个单元格被点击时会触发该事件
549
549
  cellClick(e, t, l, i) {
550
550
  this.$emit("cell-click", e, t, l, i);
551
551
  },
@@ -553,21 +553,21 @@ const P = {
553
553
  headerClick(e, t) {
554
554
  this.$emit("header-click", e, t);
555
555
  },
556
- //当某一行被鼠标右键点击时会触发该事件
556
+ // 当某一行被鼠标右键点击时会触发该事件
557
557
  rowContextmenu(e, t, l) {
558
558
  this.$emit("row-contextmenu", e, t, l);
559
559
  },
560
- //当某一列的表头被鼠标右键点击时触发该事件
560
+ // 当某一列的表头被鼠标右键点击时触发该事件
561
561
  headerContextmenu(e, t) {
562
562
  this.$emit("header-contextmenu", e, t);
563
563
  },
564
- //当某个单元格被双击击时会触发该事件
564
+ // 当某个单元格被双击击时会触发该事件
565
565
  cellDblclick(e, t, l, i) {
566
566
  this.$emit("cell-dblclick", e, t, l, i);
567
567
  },
568
- //单元格新增
568
+ // 单元格新增
569
569
  rowCellAdd(e = {}) {
570
- let t = this.list.length, l = L(this.propOption).tableForm;
570
+ const t = this.list.length, l = L(this.propOption).tableForm;
571
571
  e = n(
572
572
  Object.assign(
573
573
  {
@@ -579,23 +579,22 @@ const P = {
579
579
  )
580
580
  ), this.list.push(e);
581
581
  },
582
- //行取消
582
+ // 行取消
583
583
  rowCancel(e, t) {
584
584
  b(e[this.rowKey]) ? (this.list.splice(t, 1), delete this.cascaderDIC[t]) : (this.cascaderFormList[t].$cellEdit = !1, this.$set(this.cascaderDIC, t, this.cascaderDicList[t]), this.$set(this.list, t, this.cascaderFormList[t])), delete this.cascaderDicList[t], delete this.cascaderFormList[t], this.cascaderIndexList.splice(this.cascaderIndexList.indexOf(t), 1);
585
585
  },
586
- //行编辑点击
586
+ // 行编辑点击
587
587
  rowCell(e, t) {
588
588
  e.$cellEdit ? this.rowCellUpdate(e, t) : this.rowCellEdit(e, t);
589
589
  },
590
590
  rowCellUpdate(e, t) {
591
591
  e = n(e);
592
- var l = this.validateCellField(t);
593
- const i = () => {
592
+ const l = this.validateCellField(t), i = () => {
594
593
  this.btnDisabledList[t] = !1, this.btnDisabled = !1, this.list[t].$cellEdit = !1, this.cascaderIndexList.splice(this.cascaderIndexList.indexOf(t), 1), delete this.cascaderFormList[t];
595
- }, r = () => {
594
+ }, s = () => {
596
595
  this.btnDisabledList[t] = !1, this.btnDisabled = !1;
597
596
  };
598
- l && (this.btnDisabledList[t] = !0, this.btnDisabled = !0, b(e[this.rowKey]) ? this.$emit("row-save", e, i, r) : this.$emit("row-update", e, t, i, r));
597
+ l && (this.btnDisabledList[t] = !0, this.btnDisabled = !0, b(e[this.rowKey]) ? this.$emit("row-save", e, i, s) : this.$emit("row-update", e, t, i, s));
599
598
  },
600
599
  // 单元格编辑
601
600
  rowCellEdit(e, t) {
@@ -640,60 +639,60 @@ const P = {
640
639
  rowEdit(e, t) {
641
640
  this.tableForm = n(e), this.tableIndex = t, this.setVal(), this.$refs.dialogForm.show("edit");
642
641
  },
643
- //复制
642
+ // 复制
644
643
  rowCopy(e) {
645
644
  this.tableForm = n(e), delete this.tableForm[this.rowKey], this.tableIndex = -1, this.setVal(), this.$refs.dialogForm.show("add");
646
645
  },
647
- //查看
646
+ // 查看
648
647
  rowView(e, t) {
649
648
  this.tableForm = n(e), this.tableIndex = t, this.setVal(), this.$refs.dialogForm.show("view");
650
649
  },
651
650
  // 删除
652
651
  rowDel(e, t) {
653
652
  this.$emit("row-del", e, t, () => {
654
- let { parentList: l, index: i } = this.findData(e[this.rowKey]);
653
+ const { parentList: l, index: i } = this.findData(e[this.rowKey]);
655
654
  l && l.splice(i, 1);
656
655
  });
657
656
  },
658
- //合并行
657
+ // 合并行
659
658
  tableSpanMethod(e) {
660
659
  if (typeof this.spanMethod == "function")
661
660
  return this.spanMethod(e);
662
661
  },
663
- //合集统计逻辑
662
+ // 合集统计逻辑
664
663
  tableSummaryMethod(e) {
665
- let t = {};
664
+ const t = {};
666
665
  if (typeof this.summaryMethod == "function")
667
666
  return this.summaryMethod(e);
668
- const { columns: l, data: i } = e;
669
- let r = [];
670
- return l.length > 0 && l.forEach((s, a) => {
671
- let h = this.sumColumnList.find((u) => u.name === s.property);
667
+ const { columns: l, data: i } = e, s = [];
668
+ return l.length > 0 && l.forEach((r, a) => {
669
+ const h = this.sumColumnList.find((u) => u.name === r.property);
672
670
  if (h) {
673
- let u = h.decimals || 2, m = h.label || "";
671
+ const u = h.decimals || 2, m = h.label || "";
674
672
  switch (h.type) {
675
673
  case "count":
676
- r[a] = m + i.length;
674
+ s[a] = m + i.length;
677
675
  break;
678
676
  case "avg":
679
- let C = i.map((o) => Number(o[s.property])), g = 1;
680
- r[a] = C.reduce((o, c) => {
681
- let p = Number(c);
677
+ const C = i.map((o) => Number(o[r.property]));
678
+ let g = 1;
679
+ s[a] = C.reduce((o, c) => {
680
+ const p = Number(c);
682
681
  return isNaN(p) ? o : (o * (g - 1) + c) / g++;
683
- }, 0), r[a] = m + r[a].toFixed(u);
682
+ }, 0), s[a] = m + s[a].toFixed(u);
684
683
  break;
685
684
  case "sum":
686
- let $ = i.map((o) => Number(o[s.property]));
687
- r[a] = $.reduce((o, c) => {
688
- let p = Number(c);
685
+ const $ = i.map((o) => Number(o[r.property]));
686
+ s[a] = $.reduce((o, c) => {
687
+ const p = Number(c);
689
688
  return isNaN(p) ? o : o + c;
690
- }, 0), r[a] = m + r[a].toFixed(u);
689
+ }, 0), s[a] = m + s[a].toFixed(u);
691
690
  break;
692
691
  }
693
- t[s.property] = r[a];
692
+ t[r.property] = s[a];
694
693
  } else
695
- r[a] = "";
696
- }), this.sumsList = t, r;
694
+ s[a] = "";
695
+ }), this.sumsList = t, s;
697
696
  },
698
697
  tableDrop(e, t, l) {
699
698
  if (this.isSortable !== !0) {
@@ -716,14 +715,14 @@ const P = {
716
715
  },
717
716
  findData(e) {
718
717
  let t = {};
719
- const l = (i, r) => {
720
- i.forEach((s, a) => {
721
- s[this.rowKey] === e && (t = {
722
- item: s,
718
+ const l = (i, s) => {
719
+ i.forEach((r, a) => {
720
+ r[this.rowKey] === e && (t = {
721
+ item: r,
723
722
  index: a,
724
723
  parentList: i,
725
- parent: r
726
- }), s[this.childrenKey] && l(s[this.childrenKey], s);
724
+ parent: s
725
+ }), r[this.childrenKey] && l(r[this.childrenKey], r);
727
726
  });
728
727
  };
729
728
  return l(this.list), t;
@@ -1,4 +1,4 @@
1
- import { p as n, e as o } from "../../chunks/event.43b42228.js";
1
+ import { p as n, e as o } from "../../chunks/event.dd6f522d.js";
2
2
  import { n as i } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
3
  var s = function() {
4
4
  var e = this, a = e.$createElement, t = e._self._c || a;
@@ -1,5 +1,5 @@
1
1
  import { c as a } from "../../chunks/config.46422d7f.js";
2
- import { d as l, o as n, u, j as d } from "../../chunks/util.80e28481.js";
2
+ import { d as l, o as n, u, j as c } from "../../chunks/util.23fe58fb.js";
3
3
  import { isBlank as r } from "@web-utils/core";
4
4
  import { n as h } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
5
5
  var p = function() {
@@ -67,7 +67,7 @@ var p = function() {
67
67
  }
68
68
  }, "FyForm", t.uploadFun({}, t.crud), !1)), i("span", {
69
69
  staticClass: "avue-dialog__footer",
70
- class: "avue-dialog__footer--" + t.dialogMenuPosition
70
+ class: `avue-dialog__footer--${t.dialogMenuPosition}`
71
71
  }, [t.optVal(t.option.submitBtn, !0) && !t.isView ? i("ElButton", {
72
72
  attrs: {
73
73
  loading: t.disabled,
@@ -114,7 +114,7 @@ const m = {
114
114
  },
115
115
  computed: {
116
116
  option() {
117
- let t = l(this.crud.tableOption);
117
+ const t = l(this.crud.tableOption);
118
118
  return t.boxType = this.boxType, t.column = l(this.crud.propOption), t.menuBtn = !1, this.isAdd ? (t.submitBtn = t.saveBtn, t.submitText = this.crud.menuIcon("saveBtn"), t.submitIcon = this.crud.getBtnIcon("saveBtn")) : this.isEdit ? (t.submitBtn = t.updateBtn, t.submitText = this.crud.menuIcon("updateBtn"), t.submitIcon = this.crud.getBtnIcon("updateBtn")) : this.isView && (t.detail = !0), t.emptyBtn = t.cancelBtn, t.emptyText = this.crud.menuIcon("cancelBtn"), t.emptyIcon = this.crud.getBtnIcon("cancelBtn"), this.crud.isGroup || (t.dicFlag = !1, t.dicData = this.crud.DIC), r(t.dicFlag) || t.column.forEach((e) => {
119
119
  e.boxType = this.boxType, e.dicFlag = e.dicFlag || t.dicFlag;
120
120
  }), t;
@@ -132,7 +132,7 @@ const m = {
132
132
  return this.crud.tableOption.dialogDirection;
133
133
  },
134
134
  width() {
135
- return n(this.crud.tableOption.dialogWidth + "", this.crud.isMobile ? "100%" : a.dialogWidth + "");
135
+ return n(`${this.crud.tableOption.dialogWidth}`, this.crud.isMobile ? "100%" : `${a.dialogWidth}`);
136
136
  },
137
137
  dialogType() {
138
138
  return this.isDrawer ? "ElDrawer" : "ElementDialog";
@@ -209,7 +209,7 @@ const m = {
209
209
  rowSave(t) {
210
210
  this.crud.$emit(
211
211
  "row-save",
212
- d(this.crud.tableForm, ["$"]),
212
+ c(this.crud.tableForm, ["$"]),
213
213
  this.closeDialog,
214
214
  t
215
215
  );
@@ -218,7 +218,7 @@ const m = {
218
218
  rowUpdate(t) {
219
219
  this.crud.$emit(
220
220
  "row-update",
221
- d(this.crud.tableForm, ["$"]),
221
+ c(this.crud.tableForm, ["$"]),
222
222
  this.crud.tableIndex,
223
223
  this.closeDialog,
224
224
  t
@@ -227,13 +227,13 @@ const m = {
227
227
  closeDialog(t) {
228
228
  t = l(t), t && (() => {
229
229
  if (this.isEdit) {
230
- let { parentList: i, index: s } = this.crud.findData(t[this.crud.rowKey]);
230
+ const { parentList: i, index: s } = this.crud.findData(t[this.crud.rowKey]);
231
231
  if (i) {
232
232
  const o = i.splice(s, 1)[0];
233
233
  t[this.crud.childrenKey] = o[this.crud.childrenKey], i.splice(s, 0, t);
234
234
  }
235
235
  } else if (this.isAdd) {
236
- let { item: i } = this.crud.findData(t[this.crud.rowParentKey]);
236
+ const { item: i } = this.crud.findData(t[this.crud.rowParentKey]);
237
237
  i ? (i[this.crud.childrenKey] || this.$set(i, this.crud.childrenKey, []), this.crud.tableOption.lazy && this.$set(i, this.crud.hasChildrenKey, !0), i[this.crud.childrenKey].push(t)) : this.crud.list.push(t);
238
238
  }
239
239
  })(), this.hide();
@@ -256,7 +256,7 @@ const m = {
256
256
  typeof this.crud.beforeOpen == "function" ? this.crud.beforeOpen(e, this.boxType) : e();
257
257
  }
258
258
  }
259
- }, c = {};
259
+ }, d = {};
260
260
  var f = /* @__PURE__ */ h(
261
261
  m,
262
262
  p,
@@ -268,8 +268,8 @@ var f = /* @__PURE__ */ h(
268
268
  null
269
269
  );
270
270
  function y(t) {
271
- for (let e in c)
272
- this[e] = c[e];
271
+ for (let e in d)
272
+ this[e] = d[e];
273
273
  }
274
274
  const x = /* @__PURE__ */ function() {
275
275
  return f.exports;
@@ -1,4 +1,4 @@
1
- import { s as l, g as a } from "../../chunks/util.80e28481.js";
1
+ import { s as l, g as a } from "../../chunks/util.23fe58fb.js";
2
2
  import { n as v } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
3
  var g = function() {
4
4
  var e = this, t = e.$createElement, s = e._self._c || t;
@@ -263,8 +263,7 @@ const _ = {
263
263
  this.baseTop = e;
264
264
  },
265
265
  getRangeStyle(e) {
266
- const t = 10 * this.scaleVal / 2;
267
- let s = {};
266
+ const t = 10 * this.scaleVal / 2, s = {};
268
267
  return e.split("-").forEach((h) => {
269
268
  s[h] = l(-t);
270
269
  }), s;
@@ -283,7 +282,7 @@ const _ = {
283
282
  let c = e.clientX, f = e.clientY;
284
283
  document.onmousemove = (d) => {
285
284
  this.moveActive = !0, t === "right" ? (s = !0, i = !1) : t === "left" ? (s = !0, h = !0, o = !0, i = !1) : t === "top" ? (s = !1, i = !0, n = !0, u = !0) : t === "bottom" ? (s = !1, i = !0) : t === "bottom-right" ? (s = !0, i = !0) : t === "bottom-left" ? (s = !0, i = !0, h = !0, o = !0) : t === "top-right" ? (s = !0, i = !0, n = !0, u = !0) : t === "top-left" && (s = !0, i = !0, h = !0, o = !0, n = !0, u = !0);
286
- let m = d.clientX - c, p = d.clientY - f;
285
+ const m = d.clientX - c, p = d.clientY - f;
287
286
  if (c = d.clientX, f = d.clientY, s) {
288
287
  let r = m * this.step;
289
288
  o && (r = -r), h && (this.baseLeft = a(this.baseLeft - r)), this.baseWidth = a(this.baseWidth + r);
@@ -320,7 +319,7 @@ const _ = {
320
319
  }), this.active = !0, this.handleMouseDown();
321
320
  let t = e.clientX, s = e.clientY;
322
321
  document.onmousemove = (i) => {
323
- let h = i.clientX - t, n = i.clientY - s;
322
+ const h = i.clientX - t, n = i.clientY - s;
324
323
  t = i.clientX, s = i.clientY, this.baseLeft = a(this.baseLeft + h * this.step), this.baseTop = a(this.baseTop + n * this.step);
325
324
  }, this.handleClear();
326
325
  },
@@ -331,8 +330,7 @@ const _ = {
331
330
  },
332
331
  handleKeydown() {
333
332
  document.onkeydown = (e) => {
334
- var t = e || window.event || arguments.callee.caller.arguments[0];
335
- let s = 1 * this.step;
333
+ const t = e || window.event || arguments.callee.caller.arguments[0], s = 1 * this.step;
336
334
  this.$refs.input.focused && (t && t.keyCode == 38 ? this.baseTop = a(this.baseTop - s) : t && t.keyCode == 37 ? this.baseLeft = a(this.baseLeft - s) : t && t.keyCode == 40 ? this.baseTop = a(this.baseTop + s) : t && t.keyCode == 39 && (this.baseLeft = a(this.baseLeft + s)), e.stopPropagation(), e.preventDefault(), this.$emit("blur", {
337
335
  index: this.index,
338
336
  width: this.baseWidth,
@@ -1,5 +1,5 @@
1
- import { p as u, e as c } from "../../chunks/event.43b42228.js";
2
- import { o, d as l } from "../../chunks/util.80e28481.js";
1
+ import { p as u, e as c } from "../../chunks/event.dd6f522d.js";
2
+ import { o as l, d as o } from "../../chunks/util.23fe58fb.js";
3
3
  import { n as h } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
4
4
  function f(e) {
5
5
  if (e == null)
@@ -97,6 +97,25 @@ var m = function() {
97
97
  "sortable-change": e.handleSortableChange
98
98
  },
99
99
  scopedSlots: e._u([{
100
+ key: "_indexHeader",
101
+ fn: function() {
102
+ return [!(e.addBtn || e.readonly) && e.maxFlag ? n("ElButton", {
103
+ attrs: {
104
+ type: "primary",
105
+ size: "mini",
106
+ disabled: e.disabled,
107
+ icon: "el-icon-plus",
108
+ circle: ""
109
+ },
110
+ on: {
111
+ click: function(i) {
112
+ return e.addRow();
113
+ }
114
+ }
115
+ }) : e._e()];
116
+ },
117
+ proxy: !0
118
+ }, {
100
119
  key: "_index",
101
120
  fn: function(i) {
102
121
  return [!e.readonly && !e.disabled && !e.delBtn && e.hoverList[i.row.$index] ? n("ElButton", {
@@ -124,22 +143,7 @@ var m = function() {
124
143
  }
125
144
  };
126
145
  })], null, !0)
127
- }, [n("template", {
128
- slot: "_indexHeader"
129
- }, [!(e.addBtn || e.readonly) && e.maxFlag ? n("ElButton", {
130
- attrs: {
131
- type: "primary",
132
- size: "mini",
133
- disabled: e.disabled,
134
- icon: "el-icon-plus",
135
- circle: ""
136
- },
137
- on: {
138
- click: function(i) {
139
- return e.addRow();
140
- }
141
- }
142
- }) : e._e()], 1)], 2) : e._e()], 2);
146
+ }) : e._e()], 2);
143
147
  }, p = [];
144
148
  const v = {
145
149
  name: "FyDynamic",
@@ -169,7 +173,7 @@ const v = {
169
173
  return this.max ? this.text.length !== this.max : !0;
170
174
  },
171
175
  showIndex() {
172
- return o(this.children.index, !0);
176
+ return l(this.children.index, !0);
173
177
  },
174
178
  showType() {
175
179
  return this.children.type || "crud";
@@ -202,13 +206,13 @@ const v = {
202
206
  return this.children.delBtn === !1;
203
207
  },
204
208
  valueOption() {
205
- let e = {};
209
+ const e = {};
206
210
  return this.columnOption.forEach((t) => {
207
211
  t.value && (e[t.prop] = t.value);
208
212
  }), e;
209
213
  },
210
214
  rulesOption() {
211
- let e = {};
215
+ const e = {};
212
216
  return this.columnOption.forEach((t) => {
213
217
  t.rules && (e[t.prop] = t.rules);
214
218
  }), e;
@@ -227,10 +231,10 @@ const v = {
227
231
  emptyBtn: !1,
228
232
  submitBtn: !1
229
233
  }, (() => {
230
- let e = l(this.children);
234
+ const e = o(this.children);
231
235
  return delete e.column, e;
232
236
  })(), (() => {
233
- let e = [{
237
+ const e = [{
234
238
  label: this.children.indexLabel || "#",
235
239
  prop: "_index",
236
240
  display: this.showIndex,
@@ -243,7 +247,7 @@ const v = {
243
247
  }];
244
248
  return this.columnOption.forEach((t) => {
245
249
  e.push(Object.assign(t, {
246
- cell: o(t.cell, this.isCrud)
250
+ cell: l(t.cell, this.isCrud)
247
251
  }));
248
252
  }), {
249
253
  column: e
@@ -260,7 +264,7 @@ const v = {
260
264
  this.initData();
261
265
  },
262
266
  methods: {
263
- deepClone: l,
267
+ deepClone: o,
264
268
  handleSelectionChange(e) {
265
269
  this.selectionChange && this.selectionChange(e);
266
270
  },
@@ -268,11 +272,11 @@ const v = {
268
272
  this.sortableChange && this.sortableChange(e, t, n, i);
269
273
  },
270
274
  cellMouseenter(e) {
271
- let t = e.$index;
275
+ const t = e.$index;
272
276
  this.mouseoverRow(t);
273
277
  },
274
278
  cellMouseLeave(e) {
275
- let t = e.$index;
279
+ const t = e.$index;
276
280
  this.mouseoutRow(t);
277
281
  },
278
282
  initData() {
@@ -296,7 +300,7 @@ const v = {
296
300
  },
297
301
  delRow(e) {
298
302
  const t = () => {
299
- let n = l(this.text);
303
+ const n = o(this.text);
300
304
  n.splice(e, 1), this.text = n, this.reload = Math.random();
301
305
  };
302
306
  typeof this.rowDel == "function" ? this.rowDel(this.text[e], t) : t();
@@ -1,4 +1,4 @@
1
- import { s as N } from "../../chunks/util.80e28481.js";
1
+ import { s as N } from "../../chunks/util.23fe58fb.js";
2
2
  import { n as j } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
3
  var i = function() {
4
4
  var M = this, I = M.$createElement, g = M._self._c || I;