@web-utils/component 2.7.13 → 2.7.15

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.7928c468.js → WidgetConfig.vue_vue_type_template_lang.3cc74fe8.js} +16 -16
  5. package/dist/chunks/{WidgetForm.vue_vue_type_template_lang.e3e800a6.js → WidgetForm.vue_vue_type_template_lang.d4b05679.js} +10 -10
  6. package/dist/chunks/{WidgetFormGroup.vue_vue_type_template_lang.6a693e5e.js → WidgetFormGroup.vue_vue_type_template_lang.bdcb6d37.js} +13 -13
  7. package/dist/chunks/{WidgetFormTable.vue_vue_type_template_lang.291bf39a.js → WidgetFormTable.vue_vue_type_template_lang.e2b788ba.js} +3 -2
  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 +146 -282
  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 +72 -165
  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 +4049 -3731
  104. package/package.json +5 -56
  105. package/web-types.json +33 -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 { s } from "../../chunks/util.80e28481.js";
1
+ import { s as r } from "../../chunks/util.23fe58fb.js";
2
2
  import { n as o } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
3
  let n = class {
4
4
  /**
@@ -23,14 +23,14 @@ let n = class {
23
23
  // width: this.videoWidth,
24
24
  // height: this.videoHeight
25
25
  // }
26
- }).then((r) => {
27
- "srcObject" in this.video ? this.video.srcObject = r : this.video.src = window.URL.createObjectURL(r), this.video.addEventListener("loadmetadata", () => {
26
+ }).then((s) => {
27
+ "srcObject" in this.video ? this.video.srcObject = s : this.video.src = window.URL.createObjectURL(s), this.video.addEventListener("loadmetadata", () => {
28
28
  this.video.play();
29
- }), this.mediaRecorder = new MediaRecorder(r), this.mediaRecorder.addEventListener("dataavailable", (d) => {
29
+ }), this.mediaRecorder = new MediaRecorder(s), this.mediaRecorder.addEventListener("dataavailable", (d) => {
30
30
  this.chunks.push(d.data);
31
31
  }), t();
32
- }).catch((r) => {
33
- i(r);
32
+ }).catch((s) => {
33
+ i(s);
34
34
  });
35
35
  });
36
36
  }
@@ -90,7 +90,7 @@ var c = function() {
90
90
  }
91
91
  })]);
92
92
  }, l = [];
93
- const v = {
93
+ const h = {
94
94
  name: "RecordVideo",
95
95
  props: {
96
96
  background: {
@@ -109,19 +109,19 @@ const v = {
109
109
  computed: {
110
110
  styleName() {
111
111
  return {
112
- width: s(this.width)
112
+ width: r(this.width)
113
113
  };
114
114
  },
115
115
  imgStyleName() {
116
116
  return {
117
- width: s(this.width / 2)
117
+ width: r(this.width / 2)
118
118
  };
119
119
  },
120
120
  borderStyleName() {
121
121
  return {
122
- width: s(this.width / 15),
123
- height: s(this.width / 15),
124
- borderWidth: s(5)
122
+ width: r(this.width / 15),
123
+ height: r(this.width / 15),
124
+ borderWidth: r(5)
125
125
  };
126
126
  }
127
127
  },
@@ -145,14 +145,14 @@ const v = {
145
145
  type: "video/mp4"
146
146
  }), t = new FileReader();
147
147
  t.readAsDataURL(e), t.addEventListener("loadend", () => {
148
- var i = t.result;
148
+ const i = t.result;
149
149
  this.$emit("data-change", i);
150
150
  });
151
151
  }
152
152
  }
153
153
  }, a = {};
154
- var h = /* @__PURE__ */ o(
155
- v,
154
+ var v = /* @__PURE__ */ o(
155
+ h,
156
156
  c,
157
157
  l,
158
158
  !1,
@@ -165,9 +165,9 @@ function m(e) {
165
165
  for (let t in a)
166
166
  this[t] = a[t];
167
167
  }
168
- const b = /* @__PURE__ */ function() {
169
- return h.exports;
168
+ const R = /* @__PURE__ */ function() {
169
+ return v.exports;
170
170
  }();
171
171
  export {
172
- b as default
172
+ R as default
173
173
  };
@@ -1,5 +1,5 @@
1
- import { k as i } from "../../chunks/util.80e28481.js";
2
- import { i as n } from "../../chunks/init.3b47bb80.js";
1
+ import { k as i } from "../../chunks/util.23fe58fb.js";
2
+ import { i as n } from "../../chunks/init.7c58eb34.js";
3
3
  import { isBlank as o } from "@web-utils/core";
4
4
  import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
5
5
  var h = function() {
@@ -64,7 +64,7 @@ const c = {
64
64
  return i.value;
65
65
  },
66
66
  mainSlot() {
67
- let t = [];
67
+ const t = [];
68
68
  return this.propOption.forEach((e) => {
69
69
  this.$scopedSlots[e.prop] && t.push(e.prop);
70
70
  }), t;
@@ -1,27 +1,29 @@
1
- import { s as g } from "../../chunks/util.80e28481.js";
2
- import { n as p } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
- var m = function() {
4
- var e = this, a = e.$createElement, n = e._self._c || a;
5
- return n("div", {
1
+ import { s as g } from "../../chunks/util.23fe58fb.js";
2
+ import { n as m } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
+ var x = function() {
4
+ var t = this, n = t.$createElement, s = t._self._c || n;
5
+ return s("div", {
6
6
  staticClass: "avue-sige"
7
- }, [n("canvas", {
7
+ }, [s("canvas", {
8
8
  ref: "canvas",
9
9
  staticClass: "avue-sige__canvas",
10
10
  attrs: {
11
- width: e.width,
12
- height: e.height
11
+ width: t.width,
12
+ height: t.height
13
13
  }
14
14
  })]);
15
- }, x = [];
16
- function _(e, a, n, o, t, l) {
17
- e.save(), e.fillStyle = t, e.translate(a, n), e.rotate(Math.PI + l), e.beginPath();
18
- for (var i = Math.sin(0), v = Math.cos(0), c = Math.PI / 5 * 4, h = 0; h < 5; h++) {
19
- var i = Math.sin(h * c), v = Math.cos(h * c);
20
- e.lineTo(i * o, v * o);
15
+ }, _ = [];
16
+ function y(t, n, s, h, e, o) {
17
+ t.save(), t.fillStyle = e, t.translate(n, s), t.rotate(Math.PI + o), t.beginPath();
18
+ var a = Math.sin(0), d = Math.cos(0);
19
+ const f = Math.PI / 5 * 4;
20
+ for (let r = 0; r < 5; r++) {
21
+ var a = Math.sin(r * f), d = Math.cos(r * f);
22
+ t.lineTo(a * h, d * h);
21
23
  }
22
- e.closePath(), e.stroke(), e.fill(), e.restore();
24
+ t.closePath(), t.stroke(), t.fill(), t.restore();
23
25
  }
24
- const w = {
26
+ const M = {
25
27
  name: "Sign",
26
28
  props: {
27
29
  width: {
@@ -55,73 +57,76 @@ const w = {
55
57
  this.init();
56
58
  },
57
59
  methods: {
58
- getStar(e, a, n) {
59
- var o = this.canvas, t = this.context, l = o.width / 2, i = o.height / 2;
60
- t.lineWidth = 7, t.strokeStyle = "#f00", t.beginPath(), t.arc(l, i, 110, 0, Math.PI * 2), t.stroke(), _(t, l, i, 20, "#f00", 0), t.font = "18px 黑体", t.textBaseline = "middle", t.textAlign = "center", t.lineWidth = 1, t.strokeStyle = "#f00", t.strokeText(e, l, i + 50), t.font = "14px 黑体", t.textBaseline = "middle", t.textAlign = "center", t.lineWidth = 1, t.strokeStyle = "#f00", t.strokeText(n, l, i + 80), t.translate(l, i), t.font = "22px 黑体";
61
- for (var v = a.length, c = 4 * Math.PI / (3 * (v - 1)), h = a.split(""), r, s = 0; s < v; s++)
62
- r = h[s], s == 0 ? t.rotate(5 * Math.PI / 6) : t.rotate(c), t.save(), t.translate(90, 0), t.rotate(Math.PI / 2), t.strokeText(r, 0, 0), t.restore(), t.save();
60
+ getStar(t, n, s) {
61
+ const h = this.canvas, e = this.context, o = h.width / 2, a = h.height / 2;
62
+ e.lineWidth = 7, e.strokeStyle = "#f00", e.beginPath(), e.arc(o, a, 110, 0, Math.PI * 2), e.stroke(), y(e, o, a, 20, "#f00", 0), e.font = "18px 黑体", e.textBaseline = "middle", e.textAlign = "center", e.lineWidth = 1, e.strokeStyle = "#f00", e.strokeText(t, o, a + 50), e.font = "14px 黑体", e.textBaseline = "middle", e.textAlign = "center", e.lineWidth = 1, e.strokeStyle = "#f00", e.strokeText(s, o, a + 80), e.translate(o, a), e.font = "22px 黑体";
63
+ const d = n.length, f = 4 * Math.PI / (3 * (d - 1)), r = n.split("");
64
+ let l;
65
+ for (let i = 0; i < d; i++)
66
+ l = r[i], i == 0 ? e.rotate(5 * Math.PI / 6) : e.rotate(f), e.save(), e.translate(90, 0), e.rotate(Math.PI / 2), e.strokeText(l, 0, 0), e.restore(), e.save();
63
67
  this.disabled = !0;
64
68
  },
65
- submit(e, a) {
66
- return e || (e = this.width), a || (a = this.height), this.canvas.toDataURL("i/png");
69
+ submit(t, n) {
70
+ return t || (t = this.width), n || (n = this.height), this.canvas.toDataURL("i/png");
67
71
  },
68
72
  clear() {
69
- this.linex = new Array(), this.liney = new Array(), this.linen = new Array(), this.disabled = !1, this.canvas.width = this.canvas.width;
73
+ this.linex = [], this.liney = [], this.linen = [], this.disabled = !1;
70
74
  },
71
75
  init() {
72
76
  this.canvas = this.$refs.canvas;
73
- var e = this.canvas, a = this;
74
- typeof document.ontouchstart < "u" ? (e.addEventListener("touchmove", v, !1), e.addEventListener("touchstart", c, !1), e.addEventListener("touchend", h, !1)) : (e.addEventListener("mousemove", v, !1), e.addEventListener("mousedown", c, !1), e.addEventListener("mouseup", h, !1), e.addEventListener("mouseleave", h, !1)), this.context = e.getContext("2d");
75
- var n = this.context;
76
- this.linex = new Array(), this.liney = new Array(), this.linen = new Array();
77
- var o = 1, t = 30, l = 0;
78
- function i(r, s) {
79
- var u = r.getBoundingClientRect(), d, f;
80
- return s.targetTouches ? (d = s.targetTouches[0].clientX, f = s.targetTouches[0].clientY) : (d = s.clientX, f = s.clientY), {
81
- x: (d - u.left) * (r.width / u.width),
82
- y: (f - u.top) * (r.height / u.height)
77
+ const t = this.canvas, n = this;
78
+ typeof document.ontouchstart < "u" ? (t.addEventListener("touchmove", d, !1), t.addEventListener("touchstart", f, !1), t.addEventListener("touchend", r, !1)) : (t.addEventListener("mousemove", d, !1), t.addEventListener("mousedown", f, !1), t.addEventListener("mouseup", r, !1), t.addEventListener("mouseleave", r, !1)), this.context = t.getContext("2d");
79
+ const s = this.context;
80
+ this.linex = [], this.liney = [], this.linen = [];
81
+ let h = 1, e = 30, o = 0;
82
+ function a(l, i) {
83
+ const u = l.getBoundingClientRect();
84
+ let c, v;
85
+ return i.targetTouches ? (c = i.targetTouches[0].clientX, v = i.targetTouches[0].clientY) : (c = i.clientX, v = i.clientY), {
86
+ x: (c - u.left) * (l.width / u.width),
87
+ y: (v - u.top) * (l.height / u.height)
83
88
  };
84
89
  }
85
- function v(r) {
86
- if (!a.disabled) {
87
- var s = i(e, r).x, u = i(e, r).y;
88
- if (l == 1) {
89
- a.linex.push(s), a.liney.push(u), a.linen.push(1), n.save(), n.translate(n.canvas.width / 2, n.canvas.height / 2), n.translate(-n.canvas.width / 2, -n.canvas.height / 2), n.beginPath(), n.lineWidth = 2;
90
- for (var d = 1; d < a.linex.length; d++)
91
- o = a.linex[d], t = a.liney[d], a.linen[d] == 0 ? n.moveTo(o, t) : n.lineTo(o, t);
92
- n.shadowBlur = 10, n.stroke(), n.restore();
93
- }
94
- r.preventDefault();
90
+ function d(l) {
91
+ if (n.disabled)
92
+ return;
93
+ const i = a(t, l).x, u = a(t, l).y;
94
+ if (o === 1) {
95
+ n.linex.push(i), n.liney.push(u), n.linen.push(1), s.save(), s.translate(s.canvas.width / 2, s.canvas.height / 2), s.translate(-s.canvas.width / 2, -s.canvas.height / 2), s.beginPath(), s.lineWidth = 2;
96
+ for (let c = 1; c < n.linex.length; c++)
97
+ h = n.linex[c], e = n.liney[c], n.linen[c] === 0 ? s.moveTo(h, e) : s.lineTo(h, e);
98
+ s.shadowBlur = 10, s.stroke(), s.restore();
95
99
  }
100
+ l.preventDefault();
96
101
  }
97
- function c(r) {
98
- if (!a.disabled) {
99
- var s = i(e, r).x, u = i(e, r).y;
100
- l = 1, a.linex.push(s), a.liney.push(u), a.linen.push(0);
101
- }
102
+ function f(l) {
103
+ if (n.disabled)
104
+ return;
105
+ const i = a(t, l).x, u = a(t, l).y;
106
+ o = 1, n.linex.push(i), n.liney.push(u), n.linen.push(0);
102
107
  }
103
- function h() {
104
- a.disabled || (l = 0);
108
+ function r() {
109
+ n.disabled || (o = 0);
105
110
  }
106
111
  }
107
112
  }
108
- }, y = {};
109
- var M = /* @__PURE__ */ p(
110
- w,
111
- m,
113
+ }, p = {};
114
+ var w = /* @__PURE__ */ m(
115
+ M,
112
116
  x,
117
+ _,
113
118
  !1,
114
119
  b,
115
120
  null,
116
121
  null,
117
122
  null
118
123
  );
119
- function b(e) {
120
- for (let a in y)
121
- this[a] = y[a];
124
+ function b(t) {
125
+ for (let n in p)
126
+ this[n] = p[n];
122
127
  }
123
128
  const S = /* @__PURE__ */ function() {
124
- return M.exports;
129
+ return w.exports;
125
130
  }();
126
131
  export {
127
132
  S as default
@@ -55,7 +55,7 @@ const i = "avue-skeleton", u = {
55
55
  } : {};
56
56
  },
57
57
  className() {
58
- let { active: e } = this;
58
+ const { active: e } = this;
59
59
  return { [`${i}__loading`]: e };
60
60
  }
61
61
  }
@@ -1,5 +1,5 @@
1
1
  import { c as u } from "../../chunks/config.46422d7f.js";
2
- import { o as n } from "../../chunks/util.80e28481.js";
2
+ import { o as n } from "../../chunks/util.23fe58fb.js";
3
3
  import { n as g } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
4
4
  var l = function() {
5
5
  var e = this, t = e.$createElement, i = e._self._c || t;
@@ -49,7 +49,7 @@ const c = {
49
49
  total: 0,
50
50
  // 总页数
51
51
  pagerCount: 7,
52
- //超过多少条隐藏
52
+ // 超过多少条隐藏
53
53
  currentPage: 1,
54
54
  // 当前页数
55
55
  pageSize: 10,
@@ -76,7 +76,7 @@ const c = {
76
76
  pageFlag() {
77
77
  this.crud.getTableHeight();
78
78
  },
79
- //如果当前页面删除没数据了调用第一页
79
+ // 如果当前页面删除没数据了调用第一页
80
80
  "defaultPage.total"() {
81
81
  this.defaultPage.total === (this.defaultPage.currentPage - 1) * this.defaultPage.pageSize && this.defaultPage.total != 0 && (this.defaultPage.currentPage = this.defaultPage.currentPage - 1, this.currentChange(this.defaultPage.currentPage));
82
82
  }
@@ -92,11 +92,11 @@ const c = {
92
92
  updateValue() {
93
93
  this.crud.$emit("update:page", this.defaultPage);
94
94
  },
95
- //下一页事件
95
+ // 下一页事件
96
96
  nextClick(e) {
97
97
  this.crud.$emit("next-click", e);
98
98
  },
99
- //上一页事件
99
+ // 上一页事件
100
100
  prevClick(e) {
101
101
  this.crud.$emit("prev-click", e);
102
102
  },
@@ -1,4 +1,4 @@
1
- import { s as o } from "../../chunks/util.80e28481.js";
1
+ import { s as o } from "../../chunks/util.23fe58fb.js";
2
2
  import { n as r } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
3
  var h = function() {
4
4
  var t = this, e = t.$createElement, i = t._self._c || e;
@@ -63,28 +63,29 @@ const f = {
63
63
  setPx: o,
64
64
  init() {
65
65
  this.oversize = !1, this.keyIndex += 1;
66
- let t = this.$refs.more;
66
+ const t = this.$refs.more;
67
67
  t.style.display = "none", this.isLimitHeight && this.limitShow();
68
68
  },
69
69
  limitShow() {
70
70
  this.$nextTick(() => {
71
- let t = this.$refs.text, e = this.$el, i = this.$refs.more, l = 1e3;
71
+ const t = this.$refs.text, e = this.$el, i = this.$refs.more;
72
+ let n = 1e3;
72
73
  if (t)
73
74
  if (e.offsetHeight > this.height) {
74
75
  i.style.display = "inline-block";
75
76
  let s = this.text;
76
- for (; e.offsetHeight > this.height && l > 0; )
77
+ for (; e.offsetHeight > this.height && n > 0; )
77
78
  e.offsetHeight > this.height * 3 ? t.innerText = s = s.substring(
78
79
  0,
79
80
  Math.floor(s.length / 2)
80
- ) : t.innerText = s = s.substring(0, s.length - 1), l--;
81
+ ) : t.innerText = s = s.substring(0, s.length - 1), n--;
81
82
  this.$emit("hide"), this.isHide = !0;
82
83
  } else
83
84
  this.$emit("show"), this.isHide = !1;
84
85
  });
85
86
  }
86
87
  }
87
- }, n = {};
88
+ }, l = {};
88
89
  var _ = /* @__PURE__ */ r(
89
90
  f,
90
91
  h,
@@ -96,12 +97,12 @@ var _ = /* @__PURE__ */ r(
96
97
  null
97
98
  );
98
99
  function m(t) {
99
- for (let e in n)
100
- this[e] = n[e];
100
+ for (let e in l)
101
+ this[e] = l[e];
101
102
  }
102
- const x = /* @__PURE__ */ function() {
103
+ const u = /* @__PURE__ */ function() {
103
104
  return _.exports;
104
105
  }();
105
106
  export {
106
- x as default
107
+ u as default
107
108
  };
@@ -1,17 +1,17 @@
1
- import { s as n } from "../../chunks/util.80e28481.js";
2
- import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
- var u = function() {
4
- var e = this, t = e.$createElement, r = e._self._c || t;
5
- return r("div", {
1
+ import { s as n } from "../../chunks/util.23fe58fb.js";
2
+ import { n as o } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
+ var l = function() {
4
+ var t = this, e = t.$createElement, s = t._self._c || e;
5
+ return s("div", {
6
6
  staticClass: "avue-verify"
7
- }, e._l(e.list, function(i, a) {
8
- return r("span", {
7
+ }, t._l(t.list, function(i, a) {
8
+ return s("span", {
9
9
  key: a,
10
10
  staticClass: "avue-verify__item",
11
- style: e.styleName
12
- }, [e._v(" " + e._s(i) + " ")]);
11
+ style: t.styleName
12
+ }, [t._v(" " + t._s(i) + " ")]);
13
13
  }), 0);
14
- }, o = [];
14
+ }, u = [];
15
15
  const _ = {
16
16
  name: "Verify",
17
17
  props: {
@@ -30,9 +30,9 @@ const _ = {
30
30
  get() {
31
31
  return this.value || "";
32
32
  },
33
- set(e) {
34
- let t = e + "";
35
- this.$emit("input", t), this.$emit("change", t);
33
+ set(t) {
34
+ const e = `${t}`;
35
+ this.$emit("input", e), this.$emit("change", e);
36
36
  }
37
37
  },
38
38
  styleName() {
@@ -50,30 +50,30 @@ const _ = {
50
50
  },
51
51
  methods: {
52
52
  random() {
53
- var e = this.len;
54
- if (e > 21)
53
+ const t = this.len;
54
+ if (t > 21)
55
55
  return null;
56
- var t = new RegExp("(\\d{" + e + "})(\\.|$)");
57
- this.data = (Array(e - 1).join(0) + Math.pow(10, e) * Math.random()).match(t)[1];
56
+ const e = new RegExp(`(\\d{${t}})(\\.|$)`);
57
+ this.data = (Array(t - 1).join(0) + Math.pow(10, t) * Math.random()).match(e)[1];
58
58
  }
59
59
  }
60
- }, s = {};
61
- var m = /* @__PURE__ */ l(
60
+ }, r = {};
61
+ var c = /* @__PURE__ */ o(
62
62
  _,
63
+ l,
63
64
  u,
64
- o,
65
65
  !1,
66
- c,
66
+ m,
67
67
  null,
68
68
  null,
69
69
  null
70
70
  );
71
- function c(e) {
72
- for (let t in s)
73
- this[t] = s[t];
71
+ function m(t) {
72
+ for (let e in r)
73
+ this[e] = r[e];
74
74
  }
75
75
  const f = /* @__PURE__ */ function() {
76
- return m.exports;
76
+ return c.exports;
77
77
  }();
78
78
  export {
79
79
  f as default
@@ -1,4 +1,4 @@
1
- import { s, r, C as o, a as l, b as d, c as f, d as u, e as c, f as g, g as p, h, i as C, j as m, k as b, l as v, m as y, n as _, o as x, p as j, q, t as w, u as R, v as k } from "../../chunks/WidgetConfig.vue_vue_type_template_lang.7928c468.js";
1
+ import { s, r, C as o, a as l, b as d, c as f, d as u, e as c, f as g, g as p, h, i as C, j as m, k as b, l as v, m as y, n as _, o as x, p as j, q, t as w, u as R, v as k } from "../../chunks/WidgetConfig.vue_vue_type_template_lang.3cc74fe8.js";
2
2
  import { n as O } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
3
  const T = [
4
4
  "year",
@@ -55,7 +55,7 @@ const T = [
55
55
  getComponent() {
56
56
  const t = "config-", { type: e, component: i } = this.data;
57
57
  if ((!e || i) && e !== "u-editor")
58
- return t + "custom";
58
+ return `${t}custom`;
59
59
  let a = "input";
60
60
  return [void 0, "input", "password", "url"].includes(e) ? a = "input" : T.includes(e) ? a = "date" : ["array", "img"].includes(e) ? a = "array" : ["tree", "cascader"].includes(e) ? a = "tree" : ["radio", "checkbox", "select"].includes(e) ? a = "select" : a = e, t + a;
61
61
  }
@@ -73,11 +73,11 @@ const T = [
73
73
  if (!t)
74
74
  return;
75
75
  let e;
76
- for (let i of this.fields)
76
+ for (const i of this.fields)
77
77
  if (e = i.list.find((a) => a.type === t), e)
78
78
  break;
79
79
  if (e)
80
- for (let i in e)
80
+ for (const i in e)
81
81
  e && Object.prototype.hasOwnProperty.call(e, i) && !["icon", "label", "span"].includes(i) && (this.data[i] = e[i]);
82
82
  },
83
83
  generateRule() {
@@ -93,18 +93,18 @@ var S = /* @__PURE__ */ O(
93
93
  r,
94
94
  s,
95
95
  !1,
96
- A,
96
+ $,
97
97
  null,
98
98
  null,
99
99
  null
100
100
  );
101
- function A(t) {
101
+ function $(t) {
102
102
  for (let e in n)
103
103
  this[e] = n[e];
104
104
  }
105
- const U = /* @__PURE__ */ function() {
105
+ const M = /* @__PURE__ */ function() {
106
106
  return S.exports;
107
107
  }();
108
108
  export {
109
- U as default
109
+ M as default
110
110
  };
@@ -1,8 +1,8 @@
1
- import { W as l } from "../../chunks/WidgetFormTable.vue_vue_type_template_lang.291bf39a.js";
2
- import { W as o } from "../../chunks/WidgetFormGroup.vue_vue_type_template_lang.6a693e5e.js";
3
- import { s as n, r as d, W as c } from "../../chunks/WidgetForm.vue_vue_type_template_lang.e3e800a6.js";
1
+ import { W as l } from "../../chunks/WidgetFormTable.vue_vue_type_template_lang.e2b788ba.js";
2
+ import { W as o } from "../../chunks/WidgetFormGroup.vue_vue_type_template_lang.bdcb6d37.js";
3
+ import { s as n, r as d, W as c } from "../../chunks/WidgetForm.vue_vue_type_template_lang.d4b05679.js";
4
4
  import h from "vuedraggable";
5
- import { d as a } from "../../chunks/util.80e28481.js";
5
+ import { d as a } from "../../chunks/util.23fe58fb.js";
6
6
  import { n as r } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
7
7
  const m = {
8
8
  name: "WidgetForm",
@@ -34,7 +34,7 @@ const m = {
34
34
  },
35
35
  handleWidgetAdd(e) {
36
36
  const t = e.newIndex, i = a(this.data.column[t]);
37
- i.prop || (i.prop = "a" + Date.now() + Math.ceil(Math.random() * 99999)), delete i.icon, delete i.subfield, i.type === "title" && (delete i.label, this.form[i.prop] = i.value), this.$set(this.data.column, t, i), this.handleSelectWidget(t), this.$emit("change");
37
+ i.prop || (i.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`), delete i.icon, delete i.subfield, i.type === "title" && (delete i.label, this.form[i.prop] = i.value), this.$set(this.data.column, t, i), this.handleSelectWidget(t), this.$emit("change");
38
38
  },
39
39
  handleWidgetDelete(e) {
40
40
  this.data.column.length - 1 === e ? e === 0 ? this.selectWidget = {} : this.handleSelectWidget(e - 1) : this.handleSelectWidget(e + 1), this.$nextTick(() => {
@@ -42,8 +42,8 @@ const m = {
42
42
  });
43
43
  },
44
44
  handleWidgetClone(e) {
45
- let t = a(this.data.column[e]);
46
- t.prop = "a" + Date.now() + Math.ceil(Math.random() * 99999), this.data.column.push(t), this.$nextTick(() => {
45
+ const t = a(this.data.column[e]);
46
+ t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, this.data.column.push(t), this.$nextTick(() => {
47
47
  this.handleSelectWidget(this.data.column.length - 1), this.$emit("change");
48
48
  });
49
49
  }
@@ -1,7 +1,7 @@
1
- import { W as a } from "../../chunks/WidgetFormTable.vue_vue_type_template_lang.291bf39a.js";
2
- import { s as h, r as d, W as o } from "../../chunks/WidgetFormGroup.vue_vue_type_template_lang.6a693e5e.js";
1
+ import { W as a } from "../../chunks/WidgetFormTable.vue_vue_type_template_lang.e2b788ba.js";
2
+ import { s as h, r as d, W as o } from "../../chunks/WidgetFormGroup.vue_vue_type_template_lang.bdcb6d37.js";
3
3
  import r from "vuedraggable";
4
- import { d as n } from "../../chunks/util.80e28481.js";
4
+ import { d as n } from "../../chunks/util.23fe58fb.js";
5
5
  import { n as m } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
6
6
  const g = {
7
7
  name: "WidgetFormGroup",
@@ -41,9 +41,9 @@ const g = {
41
41
  });
42
42
  },
43
43
  handleWidgetCloneTable(e) {
44
- let t = n(this.data.column[e]);
45
- t.prop = "a" + Date.now() + Math.ceil(Math.random() * 99999), t.children.column.forEach((i) => {
46
- i.prop = "a" + Date.now() + Math.ceil(Math.random() * 99999);
44
+ const t = n(this.data.column[e]);
45
+ t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, t.children.column.forEach((i) => {
46
+ i.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`;
47
47
  }), this.data.column.splice(e, 0, t), this.$nextTick(() => {
48
48
  this.handleSelectWidget(e + 1), this.$emit("change");
49
49
  });
@@ -53,7 +53,7 @@ const g = {
53
53
  },
54
54
  handleWidgetTableClone(e, t) {
55
55
  const i = n(t);
56
- i.prop = "a" + Date.now() + Math.ceil(Math.random() * 99999), this.$set(e.children.column, e.children.column.length, { ...i }), this.$nextTick(() => {
56
+ i.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, this.$set(e.children.column, e.children.column.length, { ...i }), this.$nextTick(() => {
57
57
  this.selectWidget = e.children.column[e.children.column.length - 1], this.$emit("change");
58
58
  });
59
59
  },
@@ -70,7 +70,7 @@ const g = {
70
70
  return;
71
71
  }
72
72
  const l = n(t.children.column[i]);
73
- l.prop || (l.prop = "a" + Date.now() + Math.ceil(Math.random() * 99999)), delete l.icon, l.type === "dynamic" ? l.span = 24 : l.span = 12, this.$set(t.children.column, i, { ...l }), this.selectWidget = t.children.column[i], this.$emit("change");
73
+ l.prop || (l.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`), delete l.icon, l.type === "dynamic" ? l.span = 24 : l.span = 12, this.$set(t.children.column, i, { ...l }), this.selectWidget = t.children.column[i], this.$emit("change");
74
74
  }
75
75
  }
76
76
  }, s = {};