@web-utils/component 3.0.4 → 3.0.5

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 (109) hide show
  1. package/address-input/index.mjs +22 -24
  2. package/awesome-button/index.mjs +29 -30
  3. package/card/index.mjs +40 -42
  4. package/carousel/index.mjs +25 -27
  5. package/chat/index.mjs +57 -67
  6. package/chunks/FormTemp.7f91629d.mjs +165 -0
  7. package/chunks/confirmable-mixin.817b542f.mjs +116 -0
  8. package/chunks/{dataformat.e655611c.mjs → dataformat.f995e2f9.mjs} +3 -3
  9. package/chunks/{event.10295951.mjs → event.b5d855dd.mjs} +1 -1
  10. package/chunks/{form-input-mixin.78a567bc.mjs → form-input-mixin.4632ad36.mjs} +1 -1
  11. package/chunks/{form-item-mixin.57cb2019.mjs → form-item-mixin.ad148e7b.mjs} +13 -13
  12. package/color-picker/index.mjs +128 -0
  13. package/confirm-button/index.mjs +1 -1
  14. package/confirmable/index.mjs +1 -1
  15. package/data-box/index.mjs +32 -34
  16. package/data-card/index.mjs +33 -35
  17. package/data-cardtext/index.mjs +27 -29
  18. package/data-display/index.mjs +33 -35
  19. package/data-icons/index.mjs +28 -30
  20. package/data-imgtext/index.mjs +27 -30
  21. package/data-operatext/index.mjs +39 -41
  22. package/data-panel/index.mjs +36 -38
  23. package/data-pay/index.mjs +20 -23
  24. package/data-price/index.mjs +32 -34
  25. package/data-progress/index.mjs +27 -30
  26. package/data-rotate/index.mjs +17 -19
  27. package/data-table-picker/index.mjs +22 -23
  28. package/data-tabs/index.mjs +31 -33
  29. package/dialog-form/index.mjs +22 -27
  30. package/dynamic-table/index.mjs +36 -40
  31. package/editable-progress/index.mjs +14 -16
  32. package/editable-tree/index.mjs +139 -143
  33. package/egd-collapse-item/index.mjs +2 -1
  34. package/element-dialog/index.mjs +24 -25
  35. package/flow-designer/index.mjs +1095 -1111
  36. package/form-block/index.mjs +22 -24
  37. package/form-cascader/index.mjs +20 -20
  38. package/form-checkbox-group/index.mjs +24 -25
  39. package/form-date-picker/index.mjs +18 -19
  40. package/form-holder/index.mjs +14 -15
  41. package/form-input/index.mjs +23 -23
  42. package/form-input-email/index.mjs +17 -17
  43. package/form-input-id-card/index.mjs +24 -24
  44. package/form-input-number/index.mjs +1 -1
  45. package/form-input-phone-number/index.mjs +26 -26
  46. package/form-input-tag/index.mjs +1 -1
  47. package/form-input-time/index.mjs +17 -17
  48. package/form-item/index.mjs +54 -56
  49. package/form-item-group/index.mjs +31 -33
  50. package/form-radio-group/index.mjs +51 -52
  51. package/form-select/index.mjs +31 -32
  52. package/form-switch/index.mjs +22 -22
  53. package/form-textarea/index.mjs +20 -20
  54. package/fy-array/index.mjs +61 -65
  55. package/fy-cascader/index.mjs +19 -20
  56. package/fy-checkbox/index.mjs +32 -37
  57. package/fy-code/index.mjs +13 -10
  58. package/fy-curd/index.mjs +638 -660
  59. package/fy-date/index.mjs +20 -21
  60. package/fy-draggable/index.mjs +19 -20
  61. package/fy-dynamic/index.mjs +26 -27
  62. package/fy-form/index.mjs +111 -122
  63. package/fy-form-design/index.mjs +1238 -1270
  64. package/fy-input/index.mjs +15 -17
  65. package/fy-input-color/index.mjs +25 -27
  66. package/fy-input-icon/index.mjs +20 -21
  67. package/fy-input-map/index.mjs +22 -24
  68. package/fy-input-number/index.mjs +22 -23
  69. package/fy-input-table/index.mjs +15 -17
  70. package/fy-input-tree/index.mjs +28 -32
  71. package/fy-progress/index.mjs +23 -24
  72. package/fy-radio/index.mjs +18 -23
  73. package/fy-rate/index.mjs +12 -13
  74. package/fy-select/index.mjs +40 -44
  75. package/fy-slider/index.mjs +17 -18
  76. package/fy-switch/index.mjs +20 -21
  77. package/fy-tabs/index.mjs +19 -21
  78. package/fy-time/index.mjs +14 -20
  79. package/fy-title/index.mjs +1 -1
  80. package/fy-tree/index.mjs +17 -21
  81. package/fy-upload/index.mjs +74 -76
  82. package/guide-steps/index.mjs +22 -24
  83. package/image-cropper/index.mjs +50 -51
  84. package/image-preview/index.mjs +24 -26
  85. package/index.mjs +480 -477
  86. package/input-number/index.mjs +13 -14
  87. package/input-number-range/index.mjs +23 -24
  88. package/login/index.mjs +35 -40
  89. package/nav-bar/index.mjs +13 -14
  90. package/notice/index.mjs +18 -19
  91. package/package.json +3 -3
  92. package/page-index/index.mjs +33 -34
  93. package/page-index-top/index.mjs +22 -24
  94. package/pageable-table/index.mjs +92 -96
  95. package/pageable-view/index.mjs +33 -34
  96. package/search/index.mjs +21 -23
  97. package/static-pageable-table/index.mjs +18 -20
  98. package/swiper/index.mjs +22 -23
  99. package/table-view/index.mjs +49 -53
  100. package/tag-render/index.mjs +19 -21
  101. package/text-ellipsis/index.mjs +11 -12
  102. package/tinymce-editor/index.mjs +50 -51
  103. package/toolbar-button/index.mjs +18 -19
  104. package/vue-cron/index.mjs +104 -112
  105. package/web-types.json +85 -1
  106. package/x-input-tag/index.mjs +47 -50
  107. package/chunks/FormTemp.d079292b.mjs +0 -139
  108. package/chunks/confirmable-mixin.26e1d0e0.mjs +0 -197
  109. package/chunks/detail.d6f8e347.mjs +0 -29
@@ -1,23 +1,22 @@
1
- var c = Object.defineProperty;
2
- var s = Object.getOwnPropertySymbols;
3
- var f = Object.prototype.hasOwnProperty, h = Object.prototype.propertyIsEnumerable;
4
- var a = (e, t, r) => t in e ? c(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, l = (e, t) => {
5
- for (var r in t || (t = {}))
6
- f.call(t, r) && a(e, r, t[r]);
7
- if (s)
8
- for (var r of s(t))
9
- h.call(t, r) && a(e, r, t[r]);
1
+ var p = Object.defineProperty;
2
+ var i = Object.getOwnPropertySymbols;
3
+ var c = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
4
+ var s = (e, t, o) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, n = (e, t) => {
5
+ for (var o in t || (t = {}))
6
+ c.call(t, o) && s(e, o, t[o]);
7
+ if (i)
8
+ for (var o of i(t))
9
+ f.call(t, o) && s(e, o, t[o]);
10
10
  return e;
11
11
  };
12
- import { f as m } from "../chunks/form-input-mixin.78a567bc.mjs";
13
- import { f as _ } from "../chunks/form-pick-mixin.61ad06b2.mjs";
14
- import i from "element-ui/lib/radio-group";
15
- import { d, n as y } from "../chunks/index.57f871af.mjs";
16
- import u from "element-ui/lib/radio";
17
- import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
18
- var b = function() {
19
- var e = this, t = e.$createElement, r = e._self._c || t;
20
- return r("FormItem", e._b({
12
+ import { f as h } from "../chunks/form-input-mixin.4632ad36.mjs";
13
+ import { f as d } from "../chunks/form-pick-mixin.61ad06b2.mjs";
14
+ import a from "element-ui/lib/radio-group";
15
+ import { d as y, n as m } from "../chunks/index.57f871af.mjs";
16
+ import { n as _ } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
17
+ var v = function() {
18
+ var e = this, t = e.$createElement, o = e._self._c || t;
19
+ return o("FormItem", e._b({
21
20
  class: ["form-radio-group", {
22
21
  "form-radio-group-row": e.fillRow,
23
22
  inline: e.inline
@@ -29,7 +28,7 @@ var b = function() {
29
28
  scopedSlots: e._u([{
30
29
  key: "default",
31
30
  fn: function() {
32
- return [r(i, e._g(e._b({
31
+ return [o("ElRadioGroup", e._g(e._b({
33
32
  class: {
34
33
  "over-flow": e.overFlow
35
34
  },
@@ -39,38 +38,38 @@ var b = function() {
39
38
  placeholder: e.computePlaceholder
40
39
  },
41
40
  on: {
42
- input: function(o) {
43
- return e.$emit("input", o);
41
+ input: function(r) {
42
+ return e.$emit("input", r);
44
43
  }
45
44
  }
46
- }, "ElRadioGroup", e.inputProps, !1), e.listeners), [e.allowCancel ? e._l(e.innerOptions, function(o) {
47
- return r(u, {
48
- key: o[e.valueKey],
45
+ }, "ElRadioGroup", e.inputProps, !1), e.listeners), [e.allowCancel ? e._l(e.innerOptions, function(r) {
46
+ return o("ElRadio", {
47
+ key: r[e.valueKey],
49
48
  attrs: {
50
- label: o[e.valueKey]
49
+ label: r[e.valueKey]
51
50
  },
52
51
  nativeOn: {
53
- click: function(n) {
54
- return n.preventDefault(), n.stopPropagation(), e.toggle(o);
52
+ click: function(l) {
53
+ return l.preventDefault(), l.stopPropagation(), e.toggle(r);
55
54
  }
56
55
  }
57
- }, [e._v(" " + e._s(o[e.labelKey]) + " ")]);
58
- }) : e._l(e.innerOptions, function(o) {
59
- return r(u, {
60
- key: o[e.valueKey],
56
+ }, [e._v(" " + e._s(r[e.labelKey]) + " ")]);
57
+ }) : e._l(e.innerOptions, function(r) {
58
+ return o("ElRadio", {
59
+ key: r[e.valueKey],
61
60
  attrs: {
62
- label: o[e.valueKey]
61
+ label: r[e.valueKey]
63
62
  }
64
- }, [e._v(" " + e._s(o[e.labelKey]) + " ")]);
63
+ }, [e._v(" " + e._s(r[e.labelKey]) + " ")]);
65
64
  })], 2), e._t("append")];
66
65
  },
67
66
  proxy: !0
68
67
  }, {
69
68
  key: "error",
70
- fn: function(o) {
71
- var n = o.error;
69
+ fn: function(r) {
70
+ var l = r.error;
72
71
  return [e._t("error", null, {
73
- error: n
72
+ error: l
74
73
  })];
75
74
  }
76
75
  }, {
@@ -87,12 +86,12 @@ var b = function() {
87
86
  proxy: !0
88
87
  }], null, !0)
89
88
  }, "FormItem", e.formItemProps, !1));
90
- }, g = [];
91
- const K = Object.keys(i.props || i.default.props).filter(
89
+ }, b = [];
90
+ const g = Object.keys(a.props || a.default.props).filter(
92
91
  (e) => !["value", "placeholder", "disabled"].includes(e)
93
- ), w = {
92
+ ), K = {
94
93
  name: "FormRadioGroup",
95
- mixins: [m, _],
94
+ mixins: [h, d],
96
95
  props: {
97
96
  options: {
98
97
  type: Array,
@@ -123,7 +122,7 @@ const K = Object.keys(i.props || i.default.props).filter(
123
122
  return "请选择";
124
123
  },
125
124
  inputProps() {
126
- return d(l(l({}, y(this.$attrs)), this.$props), K);
125
+ return y(n(n({}, m(this.$attrs)), this.$props), g);
127
126
  },
128
127
  labelKey() {
129
128
  return this.classic ? "label" : this.labelProp;
@@ -161,24 +160,24 @@ const K = Object.keys(i.props || i.default.props).filter(
161
160
  this.value === e[this.valueKey] ? this.emitInput(null) : this.emitInput(e[this.valueKey]);
162
161
  }
163
162
  }
164
- }, p = {};
165
- var B = /* @__PURE__ */ v(
166
- w,
163
+ }, u = {};
164
+ var w = /* @__PURE__ */ _(
165
+ K,
166
+ v,
167
167
  b,
168
- g,
169
168
  !1,
170
- P,
169
+ B,
171
170
  null,
172
171
  null,
173
172
  null
174
173
  );
175
- function P(e) {
176
- for (let t in p)
177
- this[t] = p[t];
174
+ function B(e) {
175
+ for (let t in u)
176
+ this[t] = u[t];
178
177
  }
179
- const S = /* @__PURE__ */ function() {
180
- return B.exports;
178
+ const G = /* @__PURE__ */ function() {
179
+ return w.exports;
181
180
  }();
182
181
  export {
183
- S as default
182
+ G as default
184
183
  };
@@ -1,21 +1,20 @@
1
1
  var p = Object.defineProperty;
2
- var o = Object.getOwnPropertySymbols;
2
+ var s = Object.getOwnPropertySymbols;
3
3
  var c = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
4
- var a = (e, r, t) => r in e ? p(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, l = (e, r) => {
4
+ var o = (e, r, t) => r in e ? p(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, n = (e, r) => {
5
5
  for (var t in r || (r = {}))
6
- c.call(r, t) && a(e, t, r[t]);
7
- if (o)
8
- for (var t of o(r))
9
- f.call(r, t) && a(e, t, r[t]);
6
+ c.call(r, t) && o(e, t, r[t]);
7
+ if (s)
8
+ for (var t of s(r))
9
+ f.call(r, t) && o(e, t, r[t]);
10
10
  return e;
11
11
  };
12
- import { f as h } from "../chunks/form-input-mixin.78a567bc.mjs";
12
+ import { f as h } from "../chunks/form-input-mixin.4632ad36.mjs";
13
13
  import { f as m } from "../chunks/form-pick-mixin.61ad06b2.mjs";
14
- import s from "element-ui/lib/select";
15
- import { d as _, n as y } from "../chunks/index.57f871af.mjs";
16
- import d from "element-ui/lib/option";
17
- import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
18
- var b = function() {
14
+ import a from "element-ui/lib/select";
15
+ import { d as y, n as d } from "../chunks/index.57f871af.mjs";
16
+ import { n as _ } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
17
+ var v = function() {
19
18
  var e = this, r = e.$createElement, t = e._self._c || r;
20
19
  return t("FormItem", e._b({
21
20
  attrs: {
@@ -25,7 +24,7 @@ var b = function() {
25
24
  scopedSlots: e._u([{
26
25
  key: "default",
27
26
  fn: function() {
28
- return [t(s, e._g(e._b({
27
+ return [t("ElSelect", e._g(e._b({
29
28
  attrs: {
30
29
  value: e.value,
31
30
  filterable: e.filterable,
@@ -35,12 +34,12 @@ var b = function() {
35
34
  on: {
36
35
  input: e.emitInput
37
36
  }
38
- }, "ElSelect", e.inputProps, !1), e.listeners), e._l(e.innerOptions, function(n) {
39
- return t(d, {
40
- key: n[e.valueKey],
37
+ }, "ElSelect", e.inputProps, !1), e.listeners), e._l(e.innerOptions, function(l) {
38
+ return t("ElOption", {
39
+ key: l[e.valueKey],
41
40
  attrs: {
42
- value: n[e.valueKey],
43
- label: n[e.labelKey]
41
+ value: l[e.valueKey],
42
+ label: l[e.labelKey]
44
43
  }
45
44
  });
46
45
  }), 1), e.$slots.warn ? t("div", {
@@ -50,8 +49,8 @@ var b = function() {
50
49
  proxy: !0
51
50
  }, {
52
51
  key: "error",
53
- fn: function(n) {
54
- var i = n.error;
52
+ fn: function(l) {
53
+ var i = l.error;
55
54
  return [e.$scopedSlots.error && e.$scopedSlots.error(i) ? t("div", {
56
55
  staticClass: "el-form-item__error"
57
56
  }, [e._t("error", function() {
@@ -74,10 +73,10 @@ var b = function() {
74
73
  proxy: !0
75
74
  }], null, !0)
76
75
  }, "FormItem", e.formItemProps, !1));
77
- }, g = [];
78
- const K = Object.keys(s.props || s.default.props).filter(
76
+ }, b = [];
77
+ const K = Object.keys(a.props || a.default.props).filter(
79
78
  (e) => !["value", "placeholder", "disabled"].includes(e)
80
- ), P = {
79
+ ), g = {
81
80
  name: "FormSelect",
82
81
  mixins: [h, m],
83
82
  props: {
@@ -116,7 +115,7 @@ const K = Object.keys(s.props || s.default.props).filter(
116
115
  return this.classic ? "value" : this.valueProp;
117
116
  },
118
117
  inputProps() {
119
- return _(l(l({}, y(this.$attrs)), this.$props), K);
118
+ return y(n(n({}, d(this.$attrs)), this.$props), K);
120
119
  },
121
120
  innerOptions() {
122
121
  return this.gender ? [
@@ -146,23 +145,23 @@ const K = Object.keys(s.props || s.default.props).filter(
146
145
  }
147
146
  }
148
147
  }, u = {};
149
- var x = /* @__PURE__ */ v(
150
- P,
151
- b,
148
+ var S = /* @__PURE__ */ _(
152
149
  g,
150
+ v,
151
+ b,
153
152
  !1,
154
- S,
153
+ P,
155
154
  null,
156
155
  null,
157
156
  null
158
157
  );
159
- function S(e) {
158
+ function P(e) {
160
159
  for (let r in u)
161
160
  this[r] = u[r];
162
161
  }
163
- const D = /* @__PURE__ */ function() {
164
- return x.exports;
162
+ const F = /* @__PURE__ */ function() {
163
+ return S.exports;
165
164
  }();
166
165
  export {
167
- D as default
166
+ F as default
168
167
  };
@@ -1,19 +1,19 @@
1
1
  var p = Object.defineProperty;
2
- var l = Object.getOwnPropertySymbols;
2
+ var o = Object.getOwnPropertySymbols;
3
3
  var c = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
4
- var u = (e, t, r) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, n = (e, t) => {
4
+ var l = (e, t, r) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, n = (e, t) => {
5
5
  for (var r in t || (t = {}))
6
- c.call(t, r) && u(e, r, t[r]);
7
- if (l)
8
- for (var r of l(t))
9
- m.call(t, r) && u(e, r, t[r]);
6
+ c.call(t, r) && l(e, r, t[r]);
7
+ if (o)
8
+ for (var r of o(t))
9
+ m.call(t, r) && l(e, r, t[r]);
10
10
  return e;
11
11
  };
12
- import { f as d } from "../chunks/form-input-mixin.78a567bc.mjs";
13
- import o from "element-ui/lib/switch";
12
+ import { f as d } from "../chunks/form-input-mixin.4632ad36.mjs";
13
+ import s from "element-ui/lib/switch";
14
14
  import { d as f, n as _ } from "../chunks/index.57f871af.mjs";
15
15
  import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
16
- var y = function() {
16
+ var h = function() {
17
17
  var e = this, t = e.$createElement, r = e._self._c || t;
18
18
  return r("FormItem", e._b({
19
19
  attrs: {
@@ -24,7 +24,7 @@ var y = function() {
24
24
  key: "default",
25
25
  fn: function() {
26
26
  return [e._t("default", function() {
27
- return [r(o, e._g(e._b({
27
+ return [r("ElSwitch", e._g(e._b({
28
28
  class: {
29
29
  "is-readonly": e.readonly
30
30
  },
@@ -66,10 +66,10 @@ var y = function() {
66
66
  proxy: !0
67
67
  }], null, !0)
68
68
  }, "FormItem", e.formItemProps, !1));
69
- }, h = [];
70
- const b = Object.keys(o.props || o.default.props).filter(
69
+ }, y = [];
70
+ const b = Object.keys(s.props || s.default.props).filter(
71
71
  (e) => !["value", "placeholder", "disabled"].includes(e)
72
- ), x = {
72
+ ), S = {
73
73
  name: "FormSwitch",
74
74
  mixins: [d],
75
75
  props: {
@@ -87,11 +87,11 @@ const b = Object.keys(o.props || o.default.props).filter(
87
87
  this.$emit("input", e);
88
88
  }
89
89
  }
90
- }, s = {};
91
- var S = /* @__PURE__ */ v(
92
- x,
93
- y,
90
+ }, u = {};
91
+ var x = /* @__PURE__ */ v(
92
+ S,
94
93
  h,
94
+ y,
95
95
  !1,
96
96
  I,
97
97
  null,
@@ -99,12 +99,12 @@ var S = /* @__PURE__ */ v(
99
99
  null
100
100
  );
101
101
  function I(e) {
102
- for (let t in s)
103
- this[t] = s[t];
102
+ for (let t in u)
103
+ this[t] = u[t];
104
104
  }
105
- const w = /* @__PURE__ */ function() {
106
- return S.exports;
105
+ const E = /* @__PURE__ */ function() {
106
+ return x.exports;
107
107
  }();
108
108
  export {
109
- w as default
109
+ E as default
110
110
  };
@@ -1,21 +1,21 @@
1
1
  var p = Object.defineProperty;
2
- var s = Object.getOwnPropertySymbols;
2
+ var l = Object.getOwnPropertySymbols;
3
3
  var m = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
4
- var a = (e, r, t) => r in e ? p(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, n = (e, r) => {
5
- for (var t in r || (r = {}))
6
- m.call(r, t) && a(e, t, r[t]);
7
- if (s)
8
- for (var t of s(r))
9
- c.call(r, t) && a(e, t, r[t]);
4
+ var s = (e, t, r) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, n = (e, t) => {
5
+ for (var r in t || (t = {}))
6
+ m.call(t, r) && s(e, r, t[r]);
7
+ if (l)
8
+ for (var r of l(t))
9
+ c.call(t, r) && s(e, r, t[r]);
10
10
  return e;
11
11
  };
12
- import { f } from "../chunks/form-input-mixin.78a567bc.mjs";
12
+ import { f } from "../chunks/form-input-mixin.4632ad36.mjs";
13
13
  import { d, n as _ } from "../chunks/index.57f871af.mjs";
14
- import l from "element-ui/lib/input";
14
+ import a from "element-ui/lib/input";
15
15
  import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
16
16
  var x = function() {
17
- var e = this, r = e.$createElement, t = e._self._c || r;
18
- return t("FormItem", e._b({
17
+ var e = this, t = e.$createElement, r = e._self._c || t;
18
+ return r("FormItem", e._b({
19
19
  attrs: {
20
20
  block: e.block,
21
21
  rules: e.computeRules,
@@ -24,7 +24,7 @@ var x = function() {
24
24
  scopedSlots: e._u([{
25
25
  key: "default",
26
26
  fn: function() {
27
- return [t(l, e._g(e._b({
27
+ return [r("ElInput", e._g(e._b({
28
28
  attrs: {
29
29
  value: e.value,
30
30
  type: "textarea",
@@ -46,9 +46,9 @@ var x = function() {
46
46
  }, {
47
47
  key: "error",
48
48
  fn: function(o) {
49
- var u = o.error;
49
+ var i = o.error;
50
50
  return [e._t("error", null, {
51
- error: u
51
+ error: i
52
52
  })];
53
53
  }
54
54
  }, {
@@ -60,7 +60,7 @@ var x = function() {
60
60
  }], null, !0)
61
61
  }, "FormItem", e.formItemProps, !1));
62
62
  }, y = [];
63
- const v = Object.keys(l.props || l.default.props).filter(
63
+ const v = Object.keys(a.props || a.default.props).filter(
64
64
  (e) => !["value", "placeholder", "type", "rows", "resize", "showWordLimit", "maxLength", "maxlength"].includes(e)
65
65
  ), b = {
66
66
  name: "FormTextarea",
@@ -92,7 +92,7 @@ const v = Object.keys(l.props || l.default.props).filter(
92
92
  return d(n(n({}, _(this.$attrs)), this.$props), v);
93
93
  }
94
94
  }
95
- }, i = {};
95
+ }, u = {};
96
96
  var g = /* @__PURE__ */ h(
97
97
  b,
98
98
  x,
@@ -104,12 +104,12 @@ var g = /* @__PURE__ */ h(
104
104
  null
105
105
  );
106
106
  function w(e) {
107
- for (let r in i)
108
- this[r] = i[r];
107
+ for (let t in u)
108
+ this[t] = u[t];
109
109
  }
110
- const I = /* @__PURE__ */ function() {
110
+ const F = /* @__PURE__ */ function() {
111
111
  return g.exports;
112
112
  }();
113
113
  export {
114
- I as default
114
+ F as default
115
115
  };
@@ -1,110 +1,106 @@
1
- import { p as l, e as c } from "../chunks/event.10295951.mjs";
2
- import { i as p } from "../chunks/util.ae730cde.mjs";
3
- import o from "element-ui/lib/button";
4
- import u from "element-ui/lib/input";
5
- import _ from "element-ui/lib/link";
6
- import m from "element-ui/lib/tooltip";
7
- import { n as d } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
8
- var y = function() {
9
- var e = this, n = e.$createElement, t = e._self._c || n;
10
- return t("div", {
1
+ import { p as a, e as o } from "../chunks/event.b5d855dd.mjs";
2
+ import { i as c } from "../chunks/util.ae730cde.mjs";
3
+ import { n as u } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
+ var p = function() {
5
+ var t = this, n = t.$createElement, e = t._self._c || n;
6
+ return e("div", {
11
7
  staticClass: "avue-array"
12
- }, [e.text ? t(o, {
8
+ }, [t.text ? e("ElButton", {
13
9
  attrs: {
14
10
  type: "primary",
15
11
  icon: "el-icon-plus",
16
12
  circle: "",
17
- size: e.size,
18
- disabled: e.disabled
13
+ size: t.size,
14
+ disabled: t.disabled
19
15
  },
20
16
  on: {
21
- click: function(r) {
22
- return e.add();
17
+ click: function(i) {
18
+ return t.add();
23
19
  }
24
20
  }
25
- }) : e._e(), e._l(e.text, function(r, i) {
26
- return t("div", {
27
- key: i,
21
+ }) : t._e(), t._l(t.text, function(i, r) {
22
+ return e("div", {
23
+ key: r,
28
24
  staticClass: "avue-array__item"
29
- }, [t("div", {
25
+ }, [e("div", {
30
26
  staticClass: "avue-array__input"
31
- }, [t(m, {
27
+ }, [e("ElTooltip", {
32
28
  attrs: {
33
29
  placement: "bottom",
34
- disabled: !e.isImg && !e.isUrl || !!r
30
+ disabled: !t.isImg && !t.isUrl || !!i
35
31
  },
36
- scopedSlots: e._u([{
32
+ scopedSlots: t._u([{
37
33
  key: "content",
38
34
  fn: function() {
39
- return [t("div", [e.isImg ? t(e.isMediaType(r), {
35
+ return [e("div", [t.isImg ? e(t.isMediaType(i), {
40
36
  tag: "Component",
41
37
  staticStyle: {
42
38
  width: "200px"
43
39
  },
44
40
  attrs: {
45
- src: r,
41
+ src: i,
46
42
  controls: "controls"
47
43
  },
48
44
  on: {
49
45
  click: function(s) {
50
- return e.openImg(i);
46
+ return t.openImg(r);
51
47
  }
52
48
  }
53
- }) : e.isUrl ? t(_, {
49
+ }) : t.isUrl ? e("ElLink", {
54
50
  attrs: {
55
51
  type: "primary",
56
- href: r,
57
- target: e.target
52
+ href: i,
53
+ target: t.target
58
54
  }
59
- }, [e._v(" " + e._s(r) + " ")]) : e._e()], 1)];
55
+ }, [t._v(" " + t._s(i) + " ")]) : t._e()], 1)];
60
56
  },
61
57
  proxy: !0
62
58
  }], null, !0)
63
- }, [t(u, {
59
+ }, [e("ElInput", {
64
60
  attrs: {
65
- size: e.size,
66
- placeholder: e.placeholder,
67
- disabled: e.disabled
61
+ size: t.size,
62
+ placeholder: t.placeholder,
63
+ disabled: t.disabled
68
64
  },
69
65
  model: {
70
- value: e.text[i],
66
+ value: t.text[r],
71
67
  callback: function(s) {
72
- e.$set(e.text, i, s);
68
+ t.$set(t.text, r, s);
73
69
  },
74
70
  expression: "text[index]"
75
71
  }
76
- })], 1), e.disabled || e.readonly || e.alone ? e._e() : [e.isLimit ? e._e() : t(o, {
72
+ })], 1), t.disabled || t.readonly || t.alone ? t._e() : [t.isLimit ? t._e() : e("ElButton", {
77
73
  attrs: {
78
74
  type: "primary",
79
75
  icon: "el-icon-plus",
80
76
  circle: "",
81
- size: e.size,
82
- disabled: e.disabled
77
+ size: t.size,
78
+ disabled: t.disabled
83
79
  },
84
80
  on: {
85
81
  click: function(s) {
86
- return e.add(i);
82
+ return t.add(r);
87
83
  }
88
84
  }
89
- }), t(o, {
85
+ }), e("ElButton", {
90
86
  attrs: {
91
87
  type: "danger",
92
88
  icon: "el-icon-minus",
93
89
  circle: "",
94
- size: e.size,
95
- disabled: e.disabled
90
+ size: t.size,
91
+ disabled: t.disabled
96
92
  },
97
93
  on: {
98
94
  click: function(s) {
99
- return e.remove(i);
95
+ return t.remove(r);
100
96
  }
101
97
  }
102
98
  })]], 2)]);
103
99
  })], 2);
104
- }, v = [];
105
- const f = {
100
+ }, d = [];
101
+ const _ = {
106
102
  name: "FyArray",
107
- mixins: [l, c],
103
+ mixins: [a, o],
108
104
  props: {
109
105
  fileType: String,
110
106
  alone: Boolean,
@@ -126,37 +122,37 @@ const f = {
126
122
  }
127
123
  },
128
124
  methods: {
129
- isMediaType(e) {
130
- return p(e, this.fileType);
125
+ isMediaType(t) {
126
+ return c(t, this.fileType);
131
127
  },
132
- add(e) {
133
- this.text.splice(e + 1, 0, "");
128
+ add(t) {
129
+ this.text.splice(t + 1, 0, "");
134
130
  },
135
- remove(e) {
136
- this.text.splice(e, 1);
131
+ remove(t) {
132
+ this.text.splice(t, 1);
137
133
  },
138
134
  openImg() {
139
- this.text.map((e) => ({ thumbUrl: e, url: e, type: this.fileType }));
135
+ this.text.map((t) => ({ thumbUrl: t, url: t, type: this.fileType }));
140
136
  }
141
137
  }
142
- }, a = {};
143
- var h = /* @__PURE__ */ d(
144
- f,
145
- y,
146
- v,
138
+ }, l = {};
139
+ var m = /* @__PURE__ */ u(
140
+ _,
141
+ p,
142
+ d,
147
143
  !1,
148
- g,
144
+ y,
149
145
  null,
150
146
  null,
151
147
  null
152
148
  );
153
- function g(e) {
154
- for (let n in a)
155
- this[n] = a[n];
149
+ function y(t) {
150
+ for (let n in l)
151
+ this[n] = l[n];
156
152
  }
157
- const I = /* @__PURE__ */ function() {
158
- return h.exports;
153
+ const b = /* @__PURE__ */ function() {
154
+ return m.exports;
159
155
  }();
160
156
  export {
161
- I as default
157
+ b as default
162
158
  };