@web-utils/component 2.7.5 → 2.7.7

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 (69) hide show
  1. package/dist/chunks/{ConfigDate.vue_vue_type_template_lang.420fa897.js → ConfigDate.vue_vue_type_template_lang.116fbad4.js} +1 -1
  2. package/dist/chunks/{ConfigDynamic.vue_vue_type_template_lang.82d24ab0.js → ConfigDynamic.vue_vue_type_template_lang.99082e47.js} +1 -1
  3. package/dist/chunks/{ConfigSelect.vue_vue_type_template_lang.7db7e57f.js → ConfigSelect.vue_vue_type_template_lang.e7a9d5b7.js} +6 -6
  4. package/dist/chunks/{ConfigTable.vue_vue_type_template_lang.3e8136d9.js → ConfigTable.vue_vue_type_template_lang.e9060616.js} +4 -1
  5. package/dist/chunks/{ConfigTree.vue_vue_type_style_index_0_scoped_true_lang.3770c37e.js → ConfigTree.vue_vue_type_style_index_0_scoped_true_lang.89ec5376.js} +127 -126
  6. package/dist/chunks/{ConfigUpload.vue_vue_type_template_lang.531a9b2a.js → ConfigUpload.vue_vue_type_template_lang.48dd814b.js} +3 -3
  7. package/dist/chunks/{WidgetConfig.vue_vue_type_template_lang.fbbbff76.js → WidgetConfig.vue_vue_type_template_lang.24a87d72.js} +74 -33
  8. package/dist/chunks/{WidgetForm.vue_vue_type_template_lang.82248338.js → WidgetForm.vue_vue_type_template_lang.fbb7d6b7.js} +12 -7
  9. package/dist/chunks/{WidgetFormGroup.vue_vue_type_template_lang.c636aabd.js → WidgetFormGroup.vue_vue_type_template_lang.47789aae.js} +8 -3
  10. package/dist/components/afd-column/index.js +8 -5
  11. package/dist/components/chat/index.js +14 -14
  12. package/dist/components/column-slot/index.js +25 -26
  13. package/dist/components/config-array/index.js +13 -11
  14. package/dist/components/config-color/index.js +4 -2
  15. package/dist/components/config-custom/index.js +3 -1
  16. package/dist/components/config-date/index.js +7 -5
  17. package/dist/components/config-dynamic/index.js +10 -8
  18. package/dist/components/config-event/index.js +3 -1
  19. package/dist/components/config-group/index.js +8 -6
  20. package/dist/components/config-input/index.js +8 -5
  21. package/dist/components/config-map/index.js +10 -8
  22. package/dist/components/config-number/index.js +12 -10
  23. package/dist/components/config-rate/index.js +4 -2
  24. package/dist/components/config-rate/style.css +1 -1
  25. package/dist/components/config-select/index.js +4 -2
  26. package/dist/components/config-slider/index.js +8 -6
  27. package/dist/components/config-switch/index.js +4 -2
  28. package/dist/components/config-switch/style.css +1 -1
  29. package/dist/components/config-table/index.js +4 -2
  30. package/dist/components/config-textarea/index.js +5 -3
  31. package/dist/components/config-title/index.js +5 -3
  32. package/dist/components/config-tree/index.js +5 -3
  33. package/dist/components/config-tree/style.css +1 -1
  34. package/dist/components/config-u-editor/index.js +6 -4
  35. package/dist/components/config-upload/index.js +5 -3
  36. package/dist/components/dialog-excel/index.js +3 -3
  37. package/dist/components/dialog-filter/index.js +1 -1
  38. package/dist/components/flow/index.js +4 -4
  39. package/dist/components/form-config/index.js +5 -3
  40. package/dist/components/form-temp/index.js +1 -1
  41. package/dist/components/fy-array/index.js +20 -20
  42. package/dist/components/{article → fy-article}/index.js +1 -1
  43. package/dist/components/{article → fy-article}/style.css +0 -0
  44. package/dist/components/fy-checkbox/index.js +1 -1
  45. package/dist/components/{code → fy-code}/index.js +1 -1
  46. package/dist/components/fy-curd/index.js +4 -4
  47. package/dist/components/fy-draggable/index.js +1 -1
  48. package/dist/components/fy-dynamic/index.js +42 -44
  49. package/dist/components/fy-form/index.js +88 -87
  50. package/dist/components/fy-form-design/index.js +17 -9
  51. package/dist/components/fy-input-tree/index.js +1 -1
  52. package/dist/components/{progress → fy-progress}/index.js +1 -1
  53. package/dist/components/fy-radio/index.js +4 -4
  54. package/dist/components/fy-switch/index.js +3 -3
  55. package/dist/components/fy-tree/index.js +1 -1
  56. package/dist/components/fy-u-editor/index.js +374 -0
  57. package/dist/components/fy-u-editor/style.css +1 -0
  58. package/dist/components/fy-upload/index.js +6 -6
  59. package/dist/components/header-search/index.js +9 -3
  60. package/dist/components/search/index.js +1 -1
  61. package/dist/components/table-page/index.js +5 -5
  62. package/dist/components/widget-config/index.js +24 -21
  63. package/dist/components/widget-form/index.js +8 -5
  64. package/dist/components/widget-form-group/index.js +13 -8
  65. package/dist/components/widget-form-table/index.js +17 -12
  66. package/dist/index.css +71 -62
  67. package/dist/index.es.js +2781 -2345
  68. package/package.json +4 -2
  69. package/web-types.json +234 -110
@@ -2,7 +2,7 @@ import { p as a, e as o } from "../../chunks/event.43b42228.js";
2
2
  import { x as c } from "../../chunks/util.80e28481.js";
3
3
  import { n as p } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
4
4
  var u = function() {
5
- var t = this, i = t.$createElement, e = t._self._c || i;
5
+ var t = this, s = t.$createElement, e = t._self._c || s;
6
6
  return e("div", {
7
7
  staticClass: "avue-array"
8
8
  }, [t.text ? e("ElButton", {
@@ -14,56 +14,56 @@ var u = function() {
14
14
  disabled: t.disabled
15
15
  },
16
16
  on: {
17
- click: function(r) {
17
+ click: function(i) {
18
18
  return t.add();
19
19
  }
20
20
  }
21
- }) : t._e(), t._l(t.text, function(r, s) {
21
+ }) : t._e(), t._l(t.text, function(i, r) {
22
22
  return e("div", {
23
- key: s,
23
+ key: r,
24
24
  staticClass: "avue-array__item"
25
25
  }, [e("div", {
26
26
  staticClass: "avue-array__input"
27
27
  }, [e("ElTooltip", {
28
28
  attrs: {
29
29
  placement: "bottom",
30
- disabled: !t.isImg && !t.isUrl || !!r
30
+ disabled: !t.isImg && !t.isUrl || !!i
31
31
  }
32
32
  }, [e("div", {
33
33
  attrs: {
34
34
  slot: "content"
35
35
  },
36
36
  slot: "content"
37
- }, [t.isImg ? e(t.isMediaType(r), {
37
+ }, [t.isImg ? e(t.isMediaType(i), {
38
38
  tag: "Component",
39
39
  staticStyle: {
40
40
  width: "200px"
41
41
  },
42
42
  attrs: {
43
- src: r,
43
+ src: i,
44
44
  controls: "controls"
45
45
  },
46
46
  on: {
47
47
  click: function(n) {
48
- return t.openImg(s);
48
+ return t.openImg(r);
49
49
  }
50
50
  }
51
51
  }) : t.isUrl ? e("ElLink", {
52
52
  attrs: {
53
53
  type: "primary",
54
- href: r,
54
+ href: i,
55
55
  target: t.target
56
56
  }
57
- }, [t._v(" " + t._s(r) + " ")]) : t._e()], 1), e("ElInput", {
57
+ }, [t._v(" " + t._s(i) + " ")]) : t._e()], 1), e("ElInput", {
58
58
  attrs: {
59
59
  size: t.size,
60
60
  placeholder: t.placeholder,
61
61
  disabled: t.disabled
62
62
  },
63
63
  model: {
64
- value: t.text[s],
64
+ value: t.text[r],
65
65
  callback: function(n) {
66
- t.$set(t.text, s, n);
66
+ t.$set(t.text, r, n);
67
67
  },
68
68
  expression: "text[index]"
69
69
  }
@@ -77,7 +77,7 @@ var u = function() {
77
77
  },
78
78
  on: {
79
79
  click: function(n) {
80
- return t.add(s);
80
+ return t.add(r);
81
81
  }
82
82
  }
83
83
  }), e("ElButton", {
@@ -90,7 +90,7 @@ var u = function() {
90
90
  },
91
91
  on: {
92
92
  click: function(n) {
93
- return t.remove(s);
93
+ return t.remove(r);
94
94
  }
95
95
  }
96
96
  })]], 2)]);
@@ -129,8 +129,8 @@ const m = {
129
129
  remove(t) {
130
130
  this.text.splice(t, 1);
131
131
  },
132
- openImg(t) {
133
- this.text.map((i) => ({ thumbUrl: i, url: i, type: this.fileType }));
132
+ openImg() {
133
+ this.text.map((t) => ({ thumbUrl: t, url: t, type: this.fileType }));
134
134
  }
135
135
  }
136
136
  }, l = {};
@@ -145,12 +145,12 @@ var _ = /* @__PURE__ */ p(
145
145
  null
146
146
  );
147
147
  function y(t) {
148
- for (let i in l)
149
- this[i] = l[i];
148
+ for (let s in l)
149
+ this[s] = l[s];
150
150
  }
151
- const x = /* @__PURE__ */ function() {
151
+ const b = /* @__PURE__ */ function() {
152
152
  return _.exports;
153
153
  }();
154
154
  export {
155
- x as default
155
+ b as default
156
156
  };
@@ -33,7 +33,7 @@ const a = {
33
33
  lead: "lead",
34
34
  body: "body"
35
35
  }, o = {
36
- name: "Article",
36
+ name: "FyArticle",
37
37
  props: {
38
38
  data: {
39
39
  type: Object,
@@ -76,7 +76,7 @@ const d = {
76
76
  this.handleCheckChange();
77
77
  },
78
78
  text: {
79
- handler(e) {
79
+ handler() {
80
80
  this.handleCheckChange();
81
81
  }
82
82
  }
@@ -16,7 +16,7 @@ var i = function() {
16
16
  `)])])], 1);
17
17
  }, a = [];
18
18
  const c = {
19
- name: "Code",
19
+ name: "FyCode",
20
20
  components: {
21
21
  ElScrollbar: s
22
22
  },
@@ -602,10 +602,10 @@ const P = {
602
602
  e.$cellEdit = !0, this.cascaderFormList[t] = n(e), this.cascaderDicList[t] = n(this.cascaderDIC[t]);
603
603
  },
604
604
  // 对部分表单字段进行校验
605
- validateCellForm(e) {
606
- return new Promise((t) => {
607
- this.$refs.cellForm.validate((l, i) => {
608
- t(i);
605
+ validateCellForm() {
606
+ return new Promise((e) => {
607
+ this.$refs.cellForm.validate((t, l) => {
608
+ e(l);
609
609
  });
610
610
  });
611
611
  },
@@ -342,7 +342,7 @@ const _ = {
342
342
  }), this.keyDown && this.keyDown(e));
343
343
  };
344
344
  },
345
- handleMouseDown(e) {
345
+ handleMouseDown() {
346
346
  this.moveActive = !0, this.$emit("focus", {
347
347
  index: this.index,
348
348
  width: this.baseWidth,
@@ -23,23 +23,23 @@ var m = function() {
23
23
  on: {
24
24
  click: e.addRow
25
25
  }
26
- }) : e._e()], 1), n("div", e._l(e.text, function(r, i) {
26
+ }) : e._e()], 1), n("div", e._l(e.text, function(i, r) {
27
27
  return n("div", {
28
- key: i,
28
+ key: r,
29
29
  staticClass: "avue-dynamic__row",
30
30
  on: {
31
31
  mouseenter: function(s) {
32
32
  return e.cellMouseenter({
33
- $index: i
33
+ $index: r
34
34
  });
35
35
  },
36
36
  mouseleave: function(s) {
37
37
  return e.cellMouseLeave({
38
- $index: i
38
+ $index: r
39
39
  });
40
40
  }
41
41
  }
42
- }, [!e.readonly && !e.disabled && !e.delBtn && e.hoverList[i] ? n("ElButton", {
42
+ }, [!e.readonly && !e.disabled && !e.delBtn && e.hoverList[r] ? n("ElButton", {
43
43
  staticClass: "avue-dynamic__menu",
44
44
  attrs: {
45
45
  type: "danger",
@@ -50,11 +50,11 @@ var m = function() {
50
50
  },
51
51
  on: {
52
52
  click: function(s) {
53
- return e.delRow(r.$index);
53
+ return e.delRow(i.$index);
54
54
  }
55
55
  }
56
56
  }) : e._e(), n("FyForm", {
57
- key: i,
57
+ key: r,
58
58
  ref: "main",
59
59
  refInFor: !0,
60
60
  attrs: {
@@ -63,22 +63,22 @@ var m = function() {
63
63
  scopedSlots: e._u([{
64
64
  key: "_index",
65
65
  fn: function(s) {
66
- return f(s), n("div", {}, [n("span", [e._v(e._s(r.$index + 1))])]);
66
+ return f(s), n("div", {}, [n("span", [e._v(e._s(i.$index + 1))])]);
67
67
  }
68
68
  }, e._l(e.columnSlot, function(s) {
69
69
  return {
70
70
  key: s,
71
71
  fn: function(d) {
72
72
  return [e._t(s, null, null, Object.assign(d, {
73
- row: e.text[i]
73
+ row: e.text[r]
74
74
  }))];
75
75
  }
76
76
  };
77
77
  })], null, !0),
78
78
  model: {
79
- value: e.text[i],
79
+ value: e.text[r],
80
80
  callback: function(s) {
81
- e.$set(e.text, i, s);
81
+ e.$set(e.text, r, s);
82
82
  },
83
83
  expression: "text[index]"
84
84
  }
@@ -97,27 +97,9 @@ var m = function() {
97
97
  "sortable-change": e.handleSortableChange
98
98
  },
99
99
  scopedSlots: e._u([{
100
- key: "_indexHeader",
101
- fn: function(r) {
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
- }, {
118
100
  key: "_index",
119
- fn: function(r) {
120
- return [!e.readonly && !e.disabled && !e.delBtn && e.hoverList[r.row.$index] ? n("ElButton", {
101
+ fn: function(i) {
102
+ return [!e.readonly && !e.disabled && !e.delBtn && e.hoverList[i.row.$index] ? n("ElButton", {
121
103
  attrs: {
122
104
  type: "danger",
123
105
  size: "mini",
@@ -126,23 +108,38 @@ var m = function() {
126
108
  circle: ""
127
109
  },
128
110
  on: {
129
- click: function(i) {
130
- return e.delRow(r.row.$index);
111
+ click: function(r) {
112
+ return e.delRow(i.row.$index);
131
113
  }
132
114
  }
133
- }) : n("div", [e._v(" " + e._s(r.row.$index + 1) + " ")])];
115
+ }) : n("div", [e._v(" " + e._s(i.row.$index + 1) + " ")])];
134
116
  }
135
- }, e._l(e.columnSlot, function(r) {
117
+ }, e._l(e.columnSlot, function(i) {
136
118
  return {
137
119
  key: e.getSlotName({
138
- prop: r
120
+ prop: i
139
121
  }, "F"),
140
- fn: function(i) {
141
- return [e._t(r, null, null, i)];
122
+ fn: function(r) {
123
+ return [e._t(i, null, null, r)];
142
124
  }
143
125
  };
144
126
  })], null, !0)
145
- }) : e._e()], 2);
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
143
  }, p = [];
147
144
  const v = {
148
145
  name: "FyDynamic",
@@ -267,16 +264,16 @@ const v = {
267
264
  handleSelectionChange(e) {
268
265
  this.selectionChange && this.selectionChange(e);
269
266
  },
270
- handleSortableChange(e, t, n, r) {
271
- this.sortableChange && this.sortableChange(e, t, n, r);
267
+ handleSortableChange(e, t, n, i) {
268
+ this.sortableChange && this.sortableChange(e, t, n, i);
272
269
  },
273
270
  cellMouseenter(e) {
274
271
  let t = e.$index;
275
272
  this.mouseoverRow(t);
276
273
  },
277
- cellMouseLeave(e, t, n, r) {
278
- let i = e.$index;
279
- this.mouseoutRow(i);
274
+ cellMouseLeave(e) {
275
+ let t = e.$index;
276
+ this.mouseoutRow(t);
280
277
  },
281
278
  initData() {
282
279
  this.text.forEach((e, t) => {
@@ -294,6 +291,7 @@ const v = {
294
291
  },
295
292
  flagList() {
296
293
  this.hoverList.forEach((e, t) => {
294
+ this.hoverList[t] = !1;
297
295
  });
298
296
  },
299
297
  delRow(e) {