@web-utils/component 3.0.3 → 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 +31 -39
  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 -663
  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,7 +1,5 @@
1
- import s from "element-ui/lib/transitions/collapse-transition";
2
- import d from "element-ui/lib/row";
3
- import { n as c } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
- const n = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], m = ["$emit", "validate", "clearValidate"], u = {
1
+ import { n } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
+ const l = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], d = ["$emit", "validate", "clearValidate"], c = {
5
3
  name: "FormBlock",
6
4
  inject: {
7
5
  elForm: {
@@ -30,7 +28,7 @@ const n = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
30
28
  },
31
29
  data() {
32
30
  const e = {};
33
- return n.forEach((t) => {
31
+ return l.forEach((t) => {
34
32
  e[t] = null;
35
33
  }), {
36
34
  expand: !0,
@@ -43,7 +41,7 @@ const n = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
43
41
  enabled: this.enabled,
44
42
  forbidden: this.disabled
45
43
  };
46
- return n.forEach((t) => {
44
+ return l.forEach((t) => {
47
45
  e[t] = this.elForm[t];
48
46
  }), e;
49
47
  }
@@ -58,9 +56,9 @@ const n = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
58
56
  formCfg: {
59
57
  immediate: !0,
60
58
  handler() {
61
- this.formConfig.disabled = this.available(), n.forEach((e) => {
59
+ this.formConfig.disabled = this.available(), l.forEach((e) => {
62
60
  var t;
63
- e !== "disabled" && (m.includes(e) ? this.formConfig[e] = (t = this.elForm[e]) == null ? void 0 : t.bind(this.elForm) : this.formConfig[e] = this.elForm[e]);
61
+ e !== "disabled" && (d.includes(e) ? this.formConfig[e] = (t = this.elForm[e]) == null ? void 0 : t.bind(this.elForm) : this.formConfig[e] = this.elForm[e]);
64
62
  });
65
63
  }
66
64
  }
@@ -90,7 +88,7 @@ const n = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
90
88
  } = this;
91
89
  return t ? (
92
90
  // eslint-disable-next-line no-undef
93
- e(d, {
91
+ e("ElRow", {
94
92
  attrs: {
95
93
  gutter: a
96
94
  }
@@ -114,7 +112,7 @@ const n = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
114
112
  blockTitle: a,
115
113
  active: o,
116
114
  expand: i,
117
- toggle: l
115
+ toggle: r
118
116
  } = this;
119
117
  return e("div", {
120
118
  class: ["form-block", {
@@ -123,13 +121,13 @@ const n = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
123
121
  }, [e("div", {
124
122
  class: "form-block-title",
125
123
  on: {
126
- click: l
124
+ click: r
127
125
  }
128
126
  }, [e("span", {
129
127
  class: "flex-item"
130
128
  }, [a]), " ", e("i", {
131
129
  class: i ? "el-icon-arrow-down" : "el-icon-arrow-right"
132
- })]), e(s, [e("div", {
130
+ })]), e("ElCollapseTransition", [e("div", {
133
131
  directives: [{
134
132
  name: "show",
135
133
  value: i
@@ -137,25 +135,25 @@ const n = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
137
135
  }, [t()])])]);
138
136
  }
139
137
  };
140
- let f, h;
141
- const r = {};
142
- var p = /* @__PURE__ */ c(
143
- u,
144
- f,
138
+ let m, h;
139
+ const s = {};
140
+ var f = /* @__PURE__ */ n(
141
+ c,
142
+ m,
145
143
  h,
146
144
  !1,
147
- _,
145
+ u,
148
146
  null,
149
147
  null,
150
148
  null
151
149
  );
152
- function _(e) {
153
- for (let t in r)
154
- this[t] = r[t];
150
+ function u(e) {
151
+ for (let t in s)
152
+ this[t] = s[t];
155
153
  }
156
- const F = /* @__PURE__ */ function() {
157
- return p.exports;
154
+ const b = /* @__PURE__ */ function() {
155
+ return f.exports;
158
156
  }();
159
157
  export {
160
- F as default
158
+ b as default
161
159
  };
@@ -1,19 +1,19 @@
1
1
  var u = Object.defineProperty;
2
- var l = Object.getOwnPropertySymbols;
2
+ var n = Object.getOwnPropertySymbols;
3
3
  var c = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
4
- var s = (e, t, r) => t in e ? u(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, n = (e, t) => {
4
+ var o = (e, t, r) => t in e ? u(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, l = (e, t) => {
5
5
  for (var r in t || (t = {}))
6
- c.call(t, r) && s(e, r, t[r]);
7
- if (l)
8
- for (var r of l(t))
9
- d.call(t, r) && s(e, r, t[r]);
6
+ c.call(t, r) && o(e, r, t[r]);
7
+ if (n)
8
+ for (var r of n(t))
9
+ d.call(t, r) && o(e, r, t[r]);
10
10
  return e;
11
11
  };
12
- import { f as m } from "../chunks/form-input-mixin.78a567bc.mjs";
12
+ import { f as m } from "../chunks/form-input-mixin.4632ad36.mjs";
13
13
  import { f } from "../chunks/form-pick-mixin.61ad06b2.mjs";
14
- import o from "element-ui/lib/cascader";
14
+ import s from "element-ui/lib/cascader";
15
15
  import { d as h, n as y } from "../chunks/index.57f871af.mjs";
16
- import { findTreeChildren as _, setParent as v } from "@web-utils/core";
16
+ import { findTreeChildren as v, setParent as _ } from "@web-utils/core";
17
17
  import { cloneDeep as b } from "@web-utils/integrations/lodash";
18
18
  import { n as S } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
19
19
  var k = function() {
@@ -27,7 +27,7 @@ var k = function() {
27
27
  key: "default",
28
28
  fn: function() {
29
29
  return [e._t("default", function() {
30
- return [r(o, e._g(e._b({
30
+ return [r("ElCascader", e._g(e._b({
31
31
  class: {
32
32
  "is-readonly": e.readonly
33
33
  },
@@ -72,9 +72,9 @@ var k = function() {
72
72
  }], null, !0)
73
73
  }, "FormItem", e.formItemProps, !1));
74
74
  }, x = [];
75
- const P = Object.keys(o.props || o.default.props).filter(
75
+ const P = Object.keys(s.props || s.default.props).filter(
76
76
  (e) => !["value", "placeholder", "disabled", "options", "showAllLevels", "show-all-levels", "separator"].includes(e)
77
- ), g = {
77
+ ), w = {
78
78
  name: "FormCascader",
79
79
  mixins: [m, f],
80
80
  props: {
@@ -114,10 +114,10 @@ const P = Object.keys(o.props || o.default.props).filter(
114
114
  },
115
115
  computed: {
116
116
  inputProps() {
117
- return h(n(n({}, y(this.$attrs)), this.$props), P);
117
+ return h(l(l({}, y(this.$attrs)), this.$props), P);
118
118
  },
119
119
  inputVal() {
120
- let [e] = _(this.innerOptions, (r) => r[this.valueKey] === this.value);
120
+ let [e] = v(this.innerOptions, (r) => r[this.valueKey] === this.value);
121
121
  const t = [];
122
122
  for (; e; )
123
123
  t.push(e[this.valueKey]), e = e.parent;
@@ -130,7 +130,7 @@ const P = Object.keys(o.props || o.default.props).filter(
130
130
  handler(e) {
131
131
  if (e) {
132
132
  const t = b(e);
133
- v(t), this.innerOptions = t;
133
+ _(t), this.innerOptions = t;
134
134
  } else
135
135
  this.innerOptions = [];
136
136
  }
@@ -143,8 +143,8 @@ const P = Object.keys(o.props || o.default.props).filter(
143
143
  }
144
144
  }
145
145
  }, a = {};
146
- var w = /* @__PURE__ */ S(
147
- g,
146
+ var C = /* @__PURE__ */ S(
147
+ w,
148
148
  k,
149
149
  x,
150
150
  !1,
@@ -157,9 +157,9 @@ function K(e) {
157
157
  for (let t in a)
158
158
  this[t] = a[t];
159
159
  }
160
- const L = /* @__PURE__ */ function() {
161
- return w.exports;
160
+ const E = /* @__PURE__ */ function() {
161
+ return C.exports;
162
162
  }();
163
163
  export {
164
- L as default
164
+ E as default
165
165
  };
@@ -1,21 +1,20 @@
1
1
  var p = Object.defineProperty;
2
- var n = Object.getOwnPropertySymbols;
2
+ var i = Object.getOwnPropertySymbols;
3
3
  var h = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
4
- var s = (e, t, r) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, l = (e, t) => {
4
+ var n = (e, t, r) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, l = (e, t) => {
5
5
  for (var r in t || (t = {}))
6
- h.call(t, r) && s(e, r, t[r]);
7
- if (n)
8
- for (var r of n(t))
9
- c.call(t, r) && s(e, r, t[r]);
6
+ h.call(t, r) && n(e, r, t[r]);
7
+ if (i)
8
+ for (var r of i(t))
9
+ c.call(t, r) && n(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 { f as m } from "../chunks/form-pick-mixin.61ad06b2.mjs";
14
14
  import { d, n as b } from "../chunks/index.57f871af.mjs";
15
- import i from "element-ui/lib/checkbox-group";
16
- import y from "element-ui/lib/checkbox";
17
- import { n as _ } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
18
- var v = function() {
15
+ import s from "element-ui/lib/checkbox-group";
16
+ import { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
17
+ var _ = function() {
19
18
  var e = this, t = e.$createElement, r = e._self._c || t;
20
19
  return r("FormItem", e._b({
21
20
  class: ["form-checkbox-group", {
@@ -28,7 +27,7 @@ var v = function() {
28
27
  scopedSlots: e._u([{
29
28
  key: "default",
30
29
  fn: function() {
31
- return [r(i, e._g(e._b({
30
+ return [r("ElCheckboxGroup", e._g(e._b({
32
31
  attrs: {
33
32
  disabled: e.inputDisabled,
34
33
  value: e.computeVal,
@@ -38,7 +37,7 @@ var v = function() {
38
37
  input: e.emitInput
39
38
  }
40
39
  }, "ElCheckboxGroup", e.inputProps, !1), e.listeners), e._l(e.innerOptions, function(o) {
41
- return r(y, {
40
+ return r("ElCheckbox", {
42
41
  key: o[e.valueKey],
43
42
  attrs: {
44
43
  label: o[e.valueKey]
@@ -92,10 +91,10 @@ var v = function() {
92
91
  proxy: !0
93
92
  }], null, !0)
94
93
  }, "FormItem", e.formItemProps, !1));
95
- }, x = [];
96
- const g = Object.keys(i.props || i.default.props).filter(
94
+ }, v = [];
95
+ const x = Object.keys(s.props || s.default.props).filter(
97
96
  (e) => !["value", "placeholder", "disabled"].includes(e)
98
- ), k = {
97
+ ), g = {
99
98
  name: "FormCheckboxGroup",
100
99
  mixins: [f, m],
101
100
  props: {
@@ -151,7 +150,7 @@ const g = Object.keys(i.props || i.default.props).filter(
151
150
  return this.classic ? "value" : this.valueProp;
152
151
  },
153
152
  inputProps() {
154
- return d(l(l({}, b(this.$attrs)), this.$props), g);
153
+ return d(l(l({}, b(this.$attrs)), this.$props), x);
155
154
  },
156
155
  innerOptions() {
157
156
  return this.gender ? [
@@ -184,23 +183,23 @@ const g = Object.keys(i.props || i.default.props).filter(
184
183
  }
185
184
  }
186
185
  }, a = {};
187
- var P = /* @__PURE__ */ _(
188
- k,
186
+ var k = /* @__PURE__ */ y(
187
+ g,
188
+ _,
189
189
  v,
190
- x,
191
190
  !1,
192
- w,
191
+ P,
193
192
  null,
194
193
  null,
195
194
  null
196
195
  );
197
- function w(e) {
196
+ function P(e) {
198
197
  for (let t in a)
199
198
  this[t] = a[t];
200
199
  }
201
- const G = /* @__PURE__ */ function() {
202
- return P.exports;
200
+ const I = /* @__PURE__ */ function() {
201
+ return k.exports;
203
202
  }();
204
203
  export {
205
- G as default
204
+ I as default
206
205
  };
@@ -10,13 +10,12 @@ var s = (e, t, r) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writab
10
10
  c.call(t, r) && s(e, r, t[r]);
11
11
  return e;
12
12
  }, o = (e, t) => h(e, d(t));
13
- import { f as y } from "../chunks/form-input-mixin.78a567bc.mjs";
13
+ import { f as y } from "../chunks/form-input-mixin.4632ad36.mjs";
14
14
  import { f as g } from "../chunks/form-pick-mixin.61ad06b2.mjs";
15
15
  import { toDate as l } from "@web-utils/integrations/dayjs";
16
- import { d as _, n as v } from "../chunks/index.57f871af.mjs";
17
- import k from "element-ui/lib/date-picker";
18
- import { n as x } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
19
- var P = function() {
16
+ import { d as _, n as k } from "../chunks/index.57f871af.mjs";
17
+ import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
18
+ var x = function() {
20
19
  var e = this, t = e.$createElement, r = e._self._c || t;
21
20
  return r("FormItem", e._b({
22
21
  attrs: {
@@ -26,7 +25,7 @@ var P = function() {
26
25
  scopedSlots: e._u([{
27
26
  key: "default",
28
27
  fn: function() {
29
- return [r(k, e._g(e._b({
28
+ return [r("ElDatePicker", e._g(e._b({
30
29
  staticStyle: {
31
30
  width: "100%"
32
31
  },
@@ -66,8 +65,8 @@ var P = function() {
66
65
  proxy: !0
67
66
  }], null, !0)
68
67
  }, "FormItem", e.formItemProps, !1));
69
- }, S = [];
70
- const D = [
68
+ }, P = [];
69
+ const S = [
71
70
  "type",
72
71
  "timeArrowControl",
73
72
  "size",
@@ -93,7 +92,7 @@ const D = [
93
92
  "pickerOptions",
94
93
  "unlinkPanels",
95
94
  "validateEvent"
96
- ].filter((e) => !["value", "placeholder", "disabled", "type", "pickerOptions"].includes(e)), b = {
95
+ ].filter((e) => !["value", "placeholder", "disabled", "type", "pickerOptions"].includes(e)), D = {
97
96
  name: "FormDatePicker",
98
97
  mixins: [y, g],
99
98
  props: {
@@ -176,14 +175,14 @@ const D = [
176
175
  },
177
176
  inputProps() {
178
177
  return _(
179
- o(i(i({}, v(this.$attrs)), this.$props), {
178
+ o(i(i({}, k(this.$attrs)), this.$props), {
180
179
  valueFormat: this.week ? "yyyy-MM-dd" : this.valueFormat || this.fat,
181
180
  format: this.format || this.fat,
182
181
  rangeSeparator: this.rangeSeparator || "至",
183
182
  startPlaceholder: this.startPlaceholder || "开始日期",
184
183
  endPlaceholder: this.endPlaceholder || "结束日期"
185
184
  }),
186
- D
185
+ S
187
186
  );
188
187
  },
189
188
  range() {
@@ -199,23 +198,23 @@ const D = [
199
198
  }
200
199
  }
201
200
  }, m = {};
202
- var T = /* @__PURE__ */ x(
203
- b,
201
+ var b = /* @__PURE__ */ v(
202
+ D,
203
+ x,
204
204
  P,
205
- S,
206
205
  !1,
207
- R,
206
+ T,
208
207
  null,
209
208
  null,
210
209
  null
211
210
  );
212
- function R(e) {
211
+ function T(e) {
213
212
  for (let t in m)
214
213
  this[t] = m[t];
215
214
  }
216
- const C = /* @__PURE__ */ function() {
217
- return T.exports;
215
+ const I = /* @__PURE__ */ function() {
216
+ return b.exports;
218
217
  }();
219
218
  export {
220
- C as default
219
+ I as default
221
220
  };
@@ -1,26 +1,25 @@
1
- var s = (e, r, i) => new Promise((d, o) => {
1
+ var o = (e, r, i) => new Promise((d, s) => {
2
2
  var f = (t) => {
3
3
  try {
4
4
  l(i.next(t));
5
5
  } catch (a) {
6
- o(a);
6
+ s(a);
7
7
  }
8
8
  }, m = (t) => {
9
9
  try {
10
10
  l(i.throw(t));
11
11
  } catch (a) {
12
- o(a);
12
+ s(a);
13
13
  }
14
14
  }, l = (t) => t.done ? d(t.value) : Promise.resolve(t.value).then(f, m);
15
15
  l((i = i.apply(e, r)).next());
16
16
  });
17
17
  import { warning as u } from "@web-utils/core";
18
18
  import { e as c } from "../chunks/index.57f871af.mjs";
19
- import _ from "element-ui/lib/form";
20
19
  import { n as p } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
21
- var h = function() {
20
+ var _ = function() {
22
21
  var e = this, r = e.$createElement, i = e._self._c || r;
23
- return i(_, e._g(e._b({
22
+ return i("ElForm", e._g(e._b({
24
23
  ref: "form",
25
24
  staticClass: "clear-fix",
26
25
  attrs: {
@@ -31,8 +30,8 @@ var h = function() {
31
30
  "label-position": e.labelPosition
32
31
  }
33
32
  }, "ElForm", e.$attrs, !1), e.$listeners), [e._t("default")], 2);
34
- }, v = [];
35
- const b = {
33
+ }, h = [];
34
+ const v = {
36
35
  name: "FormHolder",
37
36
  provide() {
38
37
  return {
@@ -102,7 +101,7 @@ const b = {
102
101
  (r = this.$refs.form) == null || r.clearValidate(e);
103
102
  },
104
103
  validate() {
105
- return s(this, null, function* () {
104
+ return o(this, null, function* () {
106
105
  return this.$refs.form.validate();
107
106
  });
108
107
  },
@@ -111,10 +110,10 @@ const b = {
111
110
  }
112
111
  }
113
112
  }, n = {};
114
- var y = /* @__PURE__ */ p(
115
- b,
116
- h,
113
+ var b = /* @__PURE__ */ p(
117
114
  v,
115
+ _,
116
+ h,
118
117
  !1,
119
118
  F,
120
119
  null,
@@ -125,9 +124,9 @@ function F(e) {
125
124
  for (let r in n)
126
125
  this[r] = n[r];
127
126
  }
128
- const z = /* @__PURE__ */ function() {
129
- return y.exports;
127
+ const x = /* @__PURE__ */ function() {
128
+ return b.exports;
130
129
  }();
131
130
  export {
132
- z as default
131
+ x as default
133
132
  };
@@ -1,21 +1,21 @@
1
1
  var p = Object.defineProperty;
2
- var l = Object.getOwnPropertySymbols;
3
- var m = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
4
- var u = (e, r, t) => r in e ? p(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, o = (e, r) => {
5
- for (var t in r || (r = {}))
6
- m.call(r, t) && u(e, t, r[t]);
7
- if (l)
8
- for (var t of l(r))
9
- _.call(r, t) && u(e, t, r[t]);
2
+ var s = Object.getOwnPropertySymbols;
3
+ var m = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
4
+ var l = (e, t, r) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, o = (e, t) => {
5
+ for (var r in t || (t = {}))
6
+ m.call(t, r) && l(e, r, t[r]);
7
+ if (s)
8
+ for (var r of s(t))
9
+ c.call(t, r) && l(e, r, t[r]);
10
10
  return e;
11
11
  };
12
- import { f as c } from "../chunks/form-input-mixin.78a567bc.mjs";
13
- import s from "element-ui/lib/input";
14
- import { d, n as f } from "../chunks/index.57f871af.mjs";
12
+ import { f as d } from "../chunks/form-input-mixin.4632ad36.mjs";
13
+ import u from "element-ui/lib/input";
14
+ import { d as _, n as f } from "../chunks/index.57f871af.mjs";
15
15
  import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
16
16
  var y = 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
  rules: e.computeRules,
21
21
  disabled: e.inputDisabled
@@ -24,7 +24,7 @@ var y = function() {
24
24
  key: "default",
25
25
  fn: function() {
26
26
  return [e._t("default", function() {
27
- return [t(s, e._g(e._b({
27
+ return [r("ElInput", e._g(e._b({
28
28
  class: {
29
29
  "is-readonly": e.readonly
30
30
  },
@@ -45,7 +45,7 @@ var y = function() {
45
45
  },
46
46
  proxy: !0
47
47
  }], null, !0)
48
- }, "ElInput", e.inputProps, !1), e.listeners)), e.$slots.warn ? t("div", {
48
+ }, "ElInput", e.inputProps, !1), e.listeners)), e.$slots.warn ? r("div", {
49
49
  staticClass: "el-form-item__warn"
50
50
  }, [e._t("warn")], 2) : e._e()];
51
51
  })];
@@ -55,7 +55,7 @@ var y = function() {
55
55
  key: "error",
56
56
  fn: function(i) {
57
57
  var n = i.error;
58
- return [e.$scopedSlots.error && e.$scopedSlots.error(n) ? t("div", {
58
+ return [e.$scopedSlots.error && e.$scopedSlots.error(n) ? r("div", {
59
59
  staticClass: "el-form-item__error"
60
60
  }, [e._t("error", function() {
61
61
  return [e._v(" " + e._s(n) + " ")];
@@ -72,11 +72,11 @@ var y = function() {
72
72
  }], null, !0)
73
73
  }, "FormItem", e.formItemProps, !1));
74
74
  }, h = [];
75
- const b = Object.keys(s.props || s.default.props).filter(
75
+ const b = Object.keys(u.props || u.default.props).filter(
76
76
  (e) => !["value", "placeholder", "disabled"].includes(e)
77
77
  ), x = {
78
78
  name: "FormInput",
79
- mixins: [c],
79
+ mixins: [d],
80
80
  props: {
81
81
  value: {
82
82
  type: [String, Number]
@@ -88,7 +88,7 @@ const b = Object.keys(s.props || s.default.props).filter(
88
88
  },
89
89
  computed: {
90
90
  inputProps() {
91
- return d(o(o({}, f(this.$attrs)), this.$props), b);
91
+ return _(o(o({}, f(this.$attrs)), this.$props), b);
92
92
  }
93
93
  },
94
94
  methods: {
@@ -102,14 +102,14 @@ var I = /* @__PURE__ */ v(
102
102
  y,
103
103
  h,
104
104
  !1,
105
- g,
105
+ S,
106
106
  null,
107
107
  null,
108
108
  null
109
109
  );
110
- function g(e) {
111
- for (let r in a)
112
- this[r] = a[r];
110
+ function S(e) {
111
+ for (let t in a)
112
+ this[t] = a[t];
113
113
  }
114
114
  const w = /* @__PURE__ */ function() {
115
115
  return I.exports;
@@ -1,17 +1,17 @@
1
1
  var p = Object.defineProperty;
2
- var s = Object.getOwnPropertySymbols;
2
+ var l = Object.getOwnPropertySymbols;
3
3
  var m = Object.prototype.hasOwnProperty, d = 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, o = (e, r) => {
4
+ var s = (e, r, t) => r in e ? p(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, o = (e, r) => {
5
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
- d.call(r, t) && a(e, t, r[t]);
6
+ m.call(r, t) && s(e, t, r[t]);
7
+ if (l)
8
+ for (var t of l(r))
9
+ d.call(r, t) && s(e, t, r[t]);
10
10
  return e;
11
11
  };
12
- import { f as c } from "../chunks/form-input-mixin.78a567bc.mjs";
13
- import l from "element-ui/lib/input";
14
- import { d as f, n as _ } from "../chunks/index.57f871af.mjs";
12
+ import { f } from "../chunks/form-input-mixin.4632ad36.mjs";
13
+ import a from "element-ui/lib/input";
14
+ import { d as c, n as _ } from "../chunks/index.57f871af.mjs";
15
15
  import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
16
16
  const y = (e, r, t) => r && !/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(r) ? t(new Error("invalid")) : t();
17
17
  var h = function() {
@@ -24,7 +24,7 @@ var h = function() {
24
24
  scopedSlots: e._u([{
25
25
  key: "default",
26
26
  fn: function() {
27
- return [t(l, e._g(e._b({
27
+ return [t("ElInput", e._g(e._b({
28
28
  class: {
29
29
  "is-readonly": e.readonly
30
30
  },
@@ -60,11 +60,11 @@ var h = function() {
60
60
  }], null, !0)
61
61
  }, "FormItem", e.formItemProps, !1));
62
62
  }, x = [];
63
- const b = Object.keys(l.props || l.default.props).filter(
63
+ const b = Object.keys(a.props || a.default.props).filter(
64
64
  (e) => !["value", "placeholder", "disabled"].includes(e)
65
- ), g = {
65
+ ), I = {
66
66
  name: "FormInputEmail",
67
- mixins: [c],
67
+ mixins: [f],
68
68
  props: {
69
69
  value: {
70
70
  type: String
@@ -76,7 +76,7 @@ const b = Object.keys(l.props || l.default.props).filter(
76
76
  },
77
77
  computed: {
78
78
  inputProps() {
79
- return f(o(o({}, _(this.$attrs)), this.$props), b);
79
+ return c(o(o({}, _(this.$attrs)), this.$props), b);
80
80
  }
81
81
  },
82
82
  methods: {
@@ -90,8 +90,8 @@ const b = Object.keys(l.props || l.default.props).filter(
90
90
  }
91
91
  }
92
92
  }, u = {};
93
- var I = /* @__PURE__ */ v(
94
- g,
93
+ var g = /* @__PURE__ */ v(
94
+ I,
95
95
  h,
96
96
  x,
97
97
  !1,
@@ -105,7 +105,7 @@ function E(e) {
105
105
  this[r] = u[r];
106
106
  }
107
107
  const k = /* @__PURE__ */ function() {
108
- return I.exports;
108
+ return g.exports;
109
109
  }();
110
110
  export {
111
111
  k as default