@web-utils/component 2.70.0 → 3.0.1

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 (189) hide show
  1. package/address-input/index.mjs +16 -14
  2. package/awesome-button/index.mjs +30 -29
  3. package/card/index.mjs +42 -40
  4. package/carousel/index.mjs +27 -25
  5. package/chat/index.mjs +70 -59
  6. package/chunk-file-uploader/index.mjs +594 -35
  7. package/chunk-file-uploader/style.css +1 -1
  8. package/chunks/CountUp.f1a19f35.mjs +124 -0
  9. package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +8 -0
  10. package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +32 -0
  11. package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +356 -0
  12. package/chunks/ElementDialog.d8f3105c.mjs +211 -0
  13. package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +95 -0
  14. package/chunks/EmptyView.e2430422.mjs +51 -0
  15. package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +23 -0
  16. package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +37 -0
  17. package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +65 -0
  18. package/chunks/FormItem.2920ac0c.mjs +45 -0
  19. package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +258 -0
  20. package/chunks/FormItemGroup.41daddb6.mjs +64 -0
  21. package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +155 -0
  22. package/chunks/FyCurd.8acd2983.mjs +548 -0
  23. package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +2945 -0
  24. package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +47 -0
  25. package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +151 -0
  26. package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +22 -0
  27. package/chunks/FyForm.0294e494.mjs +439 -0
  28. package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +737 -0
  29. package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +93 -0
  30. package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +56 -0
  31. package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +158 -0
  32. package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +39 -0
  33. package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +102 -0
  34. package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +41 -0
  35. package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +15 -0
  36. package/chunks/IconTemp.42c48e1f.mjs +32 -0
  37. package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +23 -0
  38. package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +172 -0
  39. package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +23 -0
  40. package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +21 -0
  41. package/chunks/Page.81f4b8d9.mjs +32 -0
  42. package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +13 -0
  43. package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +26 -0
  44. package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +88 -0
  45. package/chunks/PageableTable.333cbdc1.mjs +335 -0
  46. package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +148 -0
  47. package/chunks/ResizeObserver.60f728f0.mjs +54 -0
  48. package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +13 -0
  49. package/chunks/TableColumn.8503272e.mjs +106 -0
  50. package/chunks/Toolbar.5c539dbb.mjs +24 -0
  51. package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +275 -0
  52. package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +31 -0
  53. package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +74 -0
  54. package/chunks/confirmable-mixin.26e1d0e0.mjs +197 -0
  55. package/chunks/{dataformat.f995e2f9.mjs → dataformat.816df805.mjs} +5 -5
  56. package/chunks/{dic.eaac0823.mjs → dic.3b4ba802.mjs} +40 -40
  57. package/chunks/{event.b5d855dd.mjs → event.4377230d.mjs} +2 -2
  58. package/chunks/{index.57f871af.mjs → index.d91bd77a.mjs} +7 -7
  59. package/chunks/{init.47f219b4.mjs → init.f0a03127.mjs} +2 -2
  60. package/chunks/{util.ae730cde.mjs → util.7844e2c2.mjs} +21 -21
  61. package/color-picker/index.mjs +200 -32
  62. package/confirm-button/index.mjs +1 -1
  63. package/confirmable/index.mjs +1 -1
  64. package/count-up/index.mjs +14 -17
  65. package/data-box/index.mjs +36 -33
  66. package/data-card/index.mjs +35 -33
  67. package/data-cardtext/index.mjs +29 -27
  68. package/data-display/index.mjs +37 -34
  69. package/data-icons/index.mjs +32 -29
  70. package/data-imgtext/index.mjs +30 -27
  71. package/data-operatext/index.mjs +41 -39
  72. package/data-panel/index.mjs +39 -36
  73. package/data-pay/index.mjs +26 -22
  74. package/data-price/index.mjs +34 -32
  75. package/data-progress/index.mjs +32 -28
  76. package/data-rotate/index.mjs +38 -35
  77. package/data-table-picker/index.mjs +25 -22
  78. package/data-tabs/index.mjs +35 -32
  79. package/dialog-form/index.mjs +41 -32
  80. package/dynamic-table/index.mjs +47 -42
  81. package/easy-popup/index.mjs +29 -56
  82. package/editable-progress/index.mjs +16 -14
  83. package/editable-tree/index.mjs +129 -476
  84. package/egd-collapse-item/index.mjs +1 -2
  85. package/element-dialog/index.mjs +37 -126
  86. package/empty-view/index.mjs +13 -31
  87. package/flex-column/index.mjs +1 -1
  88. package/flex-item/index.mjs +1 -1
  89. package/flex-row/index.mjs +1 -1
  90. package/flow/index.mjs +105 -40
  91. package/flow-designer/index.mjs +1190 -1114
  92. package/flow-node/index.mjs +15 -47
  93. package/flow-viewer/index.mjs +167 -78
  94. package/form-block/index.mjs +24 -22
  95. package/form-cascader/index.mjs +29 -29
  96. package/form-checkbox-group/index.mjs +76 -31
  97. package/form-date-picker/index.mjs +21 -20
  98. package/form-holder/index.mjs +16 -15
  99. package/form-input/index.mjs +30 -88
  100. package/form-input-email/index.mjs +28 -28
  101. package/form-input-id-card/index.mjs +37 -37
  102. package/form-input-number/index.mjs +219 -59
  103. package/form-input-phone-number/index.mjs +25 -25
  104. package/form-input-tag/index.mjs +160 -38
  105. package/form-input-time/index.mjs +23 -23
  106. package/form-item/index.mjs +15 -144
  107. package/form-item-group/index.mjs +15 -163
  108. package/form-radio-group/index.mjs +39 -38
  109. package/form-select/index.mjs +33 -32
  110. package/form-switch/index.mjs +26 -26
  111. package/form-textarea/index.mjs +26 -26
  112. package/form-view/index.mjs +46 -42
  113. package/fy-array/index.mjs +65 -61
  114. package/fy-cascader/index.mjs +14 -13
  115. package/fy-checkbox/index.mjs +37 -32
  116. package/fy-code/index.mjs +11 -14
  117. package/fy-curd/index.mjs +206 -2795
  118. package/fy-date/index.mjs +16 -57
  119. package/fy-draggable/index.mjs +21 -20
  120. package/fy-dynamic/index.mjs +64 -207
  121. package/fy-empty/index.mjs +12 -29
  122. package/fy-form/index.mjs +178 -732
  123. package/fy-form-design/index.mjs +1738 -1179
  124. package/fy-input/index.mjs +15 -101
  125. package/fy-input-color/index.mjs +17 -66
  126. package/fy-input-icon/index.mjs +21 -116
  127. package/fy-input-map/index.mjs +27 -24
  128. package/fy-input-number/index.mjs +23 -22
  129. package/fy-input-table/index.mjs +22 -18
  130. package/fy-input-tree/index.mjs +32 -28
  131. package/fy-progress/index.mjs +24 -23
  132. package/fy-radio/index.mjs +23 -18
  133. package/fy-rate/index.mjs +16 -49
  134. package/fy-select/index.mjs +29 -122
  135. package/fy-slider/index.mjs +18 -17
  136. package/fy-switch/index.mjs +21 -20
  137. package/fy-tabs/index.mjs +14 -48
  138. package/fy-time/index.mjs +20 -14
  139. package/fy-title/index.mjs +1 -1
  140. package/fy-tree/index.mjs +26 -20
  141. package/fy-u-editor/index.mjs +1 -1
  142. package/fy-upload/index.mjs +76 -74
  143. package/guide-steps/index.mjs +24 -22
  144. package/highlight-j-s/index.mjs +19 -29
  145. package/icon-temp/index.mjs +12 -30
  146. package/iframe-window/index.mjs +19 -18
  147. package/image-cropper/index.mjs +53 -51
  148. package/image-preview/index.mjs +27 -25
  149. package/input-number/index.mjs +63 -172
  150. package/input-number-range/index.mjs +24 -23
  151. package/license/index.mjs +1 -1
  152. package/loading-view/index.mjs +15 -33
  153. package/login/index.mjs +40 -35
  154. package/nav-bar/index.mjs +15 -30
  155. package/notice/index.mjs +19 -18
  156. package/package.json +1 -1
  157. package/page/index.mjs +12 -20
  158. package/page-header/index.mjs +13 -34
  159. package/page-index/index.mjs +34 -33
  160. package/page-index-top/index.mjs +100 -51
  161. package/page-skeleton/index.mjs +18 -35
  162. package/page-skeleton-new/index.mjs +16 -15
  163. package/pageable-table/index.mjs +85 -223
  164. package/pageable-view/index.mjs +34 -33
  165. package/present-view/index.mjs +75 -71
  166. package/record-video/index.mjs +1 -1
  167. package/resize-observer/index.mjs +21 -29
  168. package/search/index.mjs +29 -27
  169. package/search-popover/index.mjs +1 -1
  170. package/sign/index.mjs +1 -1
  171. package/split-pane/index.mjs +40 -45
  172. package/static-pageable-table/index.mjs +20 -18
  173. package/swiper/index.mjs +27 -25
  174. package/table-view/index.mjs +627 -89
  175. package/tag-render/index.mjs +21 -19
  176. package/text-ellipsis/index.mjs +13 -12
  177. package/tinymce-editor/index.mjs +73 -72
  178. package/toolbar/index.mjs +15 -208
  179. package/toolbar-button/index.mjs +32 -57
  180. package/verify/index.mjs +1 -1
  181. package/vue-cron/index.mjs +112 -104
  182. package/watermark/index.mjs +1 -1
  183. package/web-types.json +1 -1
  184. package/x-input-tag/index.mjs +51 -117
  185. package/chunks/FormTemp.7f91629d.mjs +0 -165
  186. package/chunks/confirmable-mixin.817b542f.mjs +0 -116
  187. package/chunks/form-input-mixin.4632ad36.mjs +0 -24
  188. package/chunks/form-item-mixin.ad148e7b.mjs +0 -140
  189. package/chunks/input-number-mixin.41a066be.mjs +0 -60
@@ -1,22 +1,67 @@
1
- var p = Object.defineProperty;
1
+ var d = Object.defineProperty;
2
2
  var i = Object.getOwnPropertySymbols;
3
- var h = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
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) => {
3
+ var y = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
4
+ var s = (e, t, r) => t in e ? d(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) && n(e, r, t[r]);
6
+ y.call(t, r) && s(e, r, t[r]);
7
7
  if (i)
8
8
  for (var r of i(t))
9
- c.call(t, r) && n(e, r, t[r]);
9
+ b.call(t, r) && s(e, r, t[r]);
10
10
  return e;
11
11
  };
12
- import { f } from "../chunks/form-input-mixin.4632ad36.mjs";
13
- import { f as m } from "../chunks/form-pick-mixin.61ad06b2.mjs";
14
- import { d, n as b } from "../chunks/index.57f871af.mjs";
15
- import s from "element-ui/lib/checkbox-group";
16
- import { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
17
- var _ = function() {
12
+ import { f as c, _ as v } from "../chunks/FormItem.2920ac0c.mjs";
13
+ import { f as g } from "../chunks/form-pick-mixin.61ad06b2.mjs";
14
+ import { h, n as m } from "../chunks/index.d91bd77a.mjs";
15
+ import n from "element-ui/lib/checkbox-group";
16
+ import u from "element-ui/lib/input";
17
+ import { s as x, r as k } from "../chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs";
18
+ import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
19
+ import P from "element-ui/lib/checkbox";
20
+ const $ = Object.keys(u.props || u.default.props).filter(
21
+ (e) => !["value", "placeholder", "disabled"].includes(e)
22
+ ), K = {
23
+ name: "FormInput",
24
+ mixins: [c],
25
+ props: {
26
+ value: {
27
+ type: [String, Number]
28
+ },
29
+ maxLength: {
30
+ type: String,
31
+ default: "200"
32
+ }
33
+ },
34
+ computed: {
35
+ inputProps() {
36
+ return h(l(l({}, m(this.$attrs)), this.$props), $);
37
+ }
38
+ },
39
+ methods: {
40
+ emitInput(e) {
41
+ this.$emit("input", e);
42
+ }
43
+ }
44
+ }, p = {};
45
+ var w = /* @__PURE__ */ f(
46
+ K,
47
+ k,
48
+ x,
49
+ !1,
50
+ S,
51
+ null,
52
+ null,
53
+ null
54
+ );
55
+ function S(e) {
56
+ for (let t in p)
57
+ this[t] = p[t];
58
+ }
59
+ const B = /* @__PURE__ */ function() {
60
+ return w.exports;
61
+ }();
62
+ var C = function() {
18
63
  var e = this, t = e.$createElement, r = e._self._c || t;
19
- return r("FormItem", e._b({
64
+ return r(v, e._b({
20
65
  class: ["form-checkbox-group", {
21
66
  "form-checkbox-group-row": e.fillRow
22
67
  }, e.ellipsis ? "form-checkbox-group-row-ellipsis" : e.fillRow ? "form-checkbox-group-row-break-word" : ""],
@@ -27,7 +72,7 @@ var _ = function() {
27
72
  scopedSlots: e._u([{
28
73
  key: "default",
29
74
  fn: function() {
30
- return [r("ElCheckboxGroup", e._g(e._b({
75
+ return [r(n, e._g(e._b({
31
76
  attrs: {
32
77
  disabled: e.inputDisabled,
33
78
  value: e.computeVal,
@@ -37,13 +82,13 @@ var _ = function() {
37
82
  input: e.emitInput
38
83
  }
39
84
  }, "ElCheckboxGroup", e.inputProps, !1), e.listeners), e._l(e.innerOptions, function(o) {
40
- return r("ElCheckbox", {
85
+ return r(P, {
41
86
  key: o[e.valueKey],
42
87
  attrs: {
43
88
  label: o[e.valueKey]
44
89
  }
45
90
  }, [e._v(" " + e._s(o[e.labelKey]) + " ")]);
46
- }), 1), e.computeVal.includes(e.otherVal) ? r("FormInput", {
91
+ }), 1), e.computeVal.includes(e.otherVal) ? r(B, {
47
92
  staticClass: "form-checkbox-group-other",
48
93
  style: e.otherLabel ? {
49
94
  width: e.otherWidth
@@ -72,9 +117,9 @@ var _ = function() {
72
117
  }, {
73
118
  key: "error",
74
119
  fn: function(o) {
75
- var u = o.error;
120
+ var _ = o.error;
76
121
  return [e._t("error", null, {
77
- error: u
122
+ error: _
78
123
  })];
79
124
  }
80
125
  }, {
@@ -91,12 +136,12 @@ var _ = function() {
91
136
  proxy: !0
92
137
  }], null, !0)
93
138
  }, "FormItem", e.formItemProps, !1));
94
- }, v = [];
95
- const x = Object.keys(s.props || s.default.props).filter(
139
+ }, F = [];
140
+ const I = Object.keys(n.props || n.default.props).filter(
96
141
  (e) => !["value", "placeholder", "disabled"].includes(e)
97
- ), g = {
142
+ ), R = {
98
143
  name: "FormCheckboxGroup",
99
- mixins: [f, m],
144
+ mixins: [c, g],
100
145
  props: {
101
146
  options: {
102
147
  type: Array,
@@ -150,7 +195,7 @@ const x = Object.keys(s.props || s.default.props).filter(
150
195
  return this.classic ? "value" : this.valueProp;
151
196
  },
152
197
  inputProps() {
153
- return d(l(l({}, b(this.$attrs)), this.$props), x);
198
+ return h(l(l({}, m(this.$attrs)), this.$props), I);
154
199
  },
155
200
  innerOptions() {
156
201
  return this.gender ? [
@@ -183,23 +228,23 @@ const x = Object.keys(s.props || s.default.props).filter(
183
228
  }
184
229
  }
185
230
  }, a = {};
186
- var k = /* @__PURE__ */ y(
187
- g,
188
- _,
189
- v,
231
+ var j = /* @__PURE__ */ f(
232
+ R,
233
+ C,
234
+ F,
190
235
  !1,
191
- P,
236
+ G,
192
237
  null,
193
238
  null,
194
239
  null
195
240
  );
196
- function P(e) {
241
+ function G(e) {
197
242
  for (let t in a)
198
243
  this[t] = a[t];
199
244
  }
200
- const I = /* @__PURE__ */ function() {
201
- return k.exports;
245
+ const q = /* @__PURE__ */ function() {
246
+ return j.exports;
202
247
  }();
203
248
  export {
204
- I as default
249
+ q as default
205
250
  };
@@ -10,14 +10,15 @@ 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.4632ad36.mjs";
13
+ import { _ as y, f as _ } from "../chunks/FormItem.2920ac0c.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 k } from "../chunks/index.57f871af.mjs";
17
- import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
18
- var x = function() {
16
+ import { h as v, n as k } from "../chunks/index.d91bd77a.mjs";
17
+ import x from "element-ui/lib/date-picker";
18
+ import { n as P } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
19
+ var S = function() {
19
20
  var e = this, t = e.$createElement, r = e._self._c || t;
20
- return r("FormItem", e._b({
21
+ return r(y, e._b({
21
22
  attrs: {
22
23
  rules: e.computeRules,
23
24
  disabled: e.inputDisabled
@@ -25,7 +26,7 @@ var x = function() {
25
26
  scopedSlots: e._u([{
26
27
  key: "default",
27
28
  fn: function() {
28
- return [r("ElDatePicker", e._g(e._b({
29
+ return [r(x, e._g(e._b({
29
30
  staticStyle: {
30
31
  width: "100%"
31
32
  },
@@ -65,8 +66,8 @@ var x = function() {
65
66
  proxy: !0
66
67
  }], null, !0)
67
68
  }, "FormItem", e.formItemProps, !1));
68
- }, P = [];
69
- const S = [
69
+ }, D = [];
70
+ const b = [
70
71
  "type",
71
72
  "timeArrowControl",
72
73
  "size",
@@ -92,9 +93,9 @@ const S = [
92
93
  "pickerOptions",
93
94
  "unlinkPanels",
94
95
  "validateEvent"
95
- ].filter((e) => !["value", "placeholder", "disabled", "type", "pickerOptions"].includes(e)), D = {
96
+ ].filter((e) => !["value", "placeholder", "disabled", "type", "pickerOptions"].includes(e)), T = {
96
97
  name: "FormDatePicker",
97
- mixins: [y, g],
98
+ mixins: [_, g],
98
99
  props: {
99
100
  format: {
100
101
  type: String
@@ -174,7 +175,7 @@ const S = [
174
175
  return this.year ? "yyyy" : this.month || this.monthRange ? "yyyy-MM" : this.week ? "yyyy 第 WW 周" : this.dateTime || this.dateTimeRange ? "yyyy-MM-dd HH:mm" : "yyyy-MM-dd";
175
176
  },
176
177
  inputProps() {
177
- return _(
178
+ return v(
178
179
  o(i(i({}, k(this.$attrs)), this.$props), {
179
180
  valueFormat: this.week ? "yyyy-MM-dd" : this.valueFormat || this.fat,
180
181
  format: this.format || this.fat,
@@ -182,7 +183,7 @@ const S = [
182
183
  startPlaceholder: this.startPlaceholder || "开始日期",
183
184
  endPlaceholder: this.endPlaceholder || "结束日期"
184
185
  }),
185
- S
186
+ b
186
187
  );
187
188
  },
188
189
  range() {
@@ -198,23 +199,23 @@ const S = [
198
199
  }
199
200
  }
200
201
  }, m = {};
201
- var b = /* @__PURE__ */ v(
202
+ var R = /* @__PURE__ */ P(
203
+ T,
204
+ S,
202
205
  D,
203
- x,
204
- P,
205
206
  !1,
206
- T,
207
+ M,
207
208
  null,
208
209
  null,
209
210
  null
210
211
  );
211
- function T(e) {
212
+ function M(e) {
212
213
  for (let t in m)
213
214
  this[t] = m[t];
214
215
  }
215
- const I = /* @__PURE__ */ function() {
216
- return b.exports;
216
+ const z = /* @__PURE__ */ function() {
217
+ return R.exports;
217
218
  }();
218
219
  export {
219
- I as default
220
+ z as default
220
221
  };
@@ -1,25 +1,26 @@
1
- var o = (e, r, i) => new Promise((d, s) => {
1
+ var s = (e, r, i) => new Promise((d, o) => {
2
2
  var f = (t) => {
3
3
  try {
4
4
  l(i.next(t));
5
5
  } catch (a) {
6
- s(a);
6
+ o(a);
7
7
  }
8
8
  }, m = (t) => {
9
9
  try {
10
10
  l(i.throw(t));
11
11
  } catch (a) {
12
- s(a);
12
+ o(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
- import { e as c } from "../chunks/index.57f871af.mjs";
18
+ import { i as c } from "../chunks/index.d91bd77a.mjs";
19
+ import _ from "element-ui/lib/form";
19
20
  import { n as p } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
20
- var _ = function() {
21
+ var h = function() {
21
22
  var e = this, r = e.$createElement, i = e._self._c || r;
22
- return i("ElForm", e._g(e._b({
23
+ return i(_, e._g(e._b({
23
24
  ref: "form",
24
25
  staticClass: "clear-fix",
25
26
  attrs: {
@@ -30,8 +31,8 @@ var _ = function() {
30
31
  "label-position": e.labelPosition
31
32
  }
32
33
  }, "ElForm", e.$attrs, !1), e.$listeners), [e._t("default")], 2);
33
- }, h = [];
34
- const v = {
34
+ }, v = [];
35
+ const b = {
35
36
  name: "FormHolder",
36
37
  provide() {
37
38
  return {
@@ -101,7 +102,7 @@ const v = {
101
102
  (r = this.$refs.form) == null || r.clearValidate(e);
102
103
  },
103
104
  validate() {
104
- return o(this, null, function* () {
105
+ return s(this, null, function* () {
105
106
  return this.$refs.form.validate();
106
107
  });
107
108
  },
@@ -110,10 +111,10 @@ const v = {
110
111
  }
111
112
  }
112
113
  }, n = {};
113
- var b = /* @__PURE__ */ p(
114
- v,
115
- _,
114
+ var y = /* @__PURE__ */ p(
115
+ b,
116
116
  h,
117
+ v,
117
118
  !1,
118
119
  F,
119
120
  null,
@@ -124,9 +125,9 @@ function F(e) {
124
125
  for (let r in n)
125
126
  this[r] = n[r];
126
127
  }
127
- const x = /* @__PURE__ */ function() {
128
- return b.exports;
128
+ const z = /* @__PURE__ */ function() {
129
+ return y.exports;
129
130
  }();
130
131
  export {
131
- x as default
132
+ z as default
132
133
  };
@@ -1,82 +1,24 @@
1
- var p = Object.defineProperty;
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]);
1
+ var u = Object.defineProperty;
2
+ var r = Object.getOwnPropertySymbols;
3
+ var m = Object.prototype.hasOwnProperty, l = Object.prototype.propertyIsEnumerable;
4
+ var s = (e, t, n) => t in e ? u(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, o = (e, t) => {
5
+ for (var n in t || (t = {}))
6
+ m.call(t, n) && s(e, n, t[n]);
7
+ if (r)
8
+ for (var n of r(t))
9
+ l.call(t, n) && s(e, n, t[n]);
10
10
  return e;
11
11
  };
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
- import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
16
- var y = function() {
17
- var e = this, t = e.$createElement, r = e._self._c || t;
18
- return r("FormItem", e._b({
19
- attrs: {
20
- rules: e.computeRules,
21
- disabled: e.inputDisabled
22
- },
23
- scopedSlots: e._u([{
24
- key: "default",
25
- fn: function() {
26
- return [e._t("default", function() {
27
- return [r("ElInput", e._g(e._b({
28
- class: {
29
- "is-readonly": e.readonly
30
- },
31
- attrs: {
32
- value: e.value,
33
- readonly: e.readonly,
34
- maxlength: e.maxLength,
35
- disabled: e.inputDisabled,
36
- placeholder: e.computePlaceholder
37
- },
38
- on: {
39
- input: e.emitInput
40
- },
41
- scopedSlots: e._u([{
42
- key: "append",
43
- fn: function() {
44
- return [e._t("append")];
45
- },
46
- proxy: !0
47
- }], null, !0)
48
- }, "ElInput", e.inputProps, !1), e.listeners)), e.$slots.warn ? r("div", {
49
- staticClass: "el-form-item__warn"
50
- }, [e._t("warn")], 2) : e._e()];
51
- })];
52
- },
53
- proxy: !0
54
- }, {
55
- key: "error",
56
- fn: function(i) {
57
- var n = i.error;
58
- return [e.$scopedSlots.error && e.$scopedSlots.error(n) ? r("div", {
59
- staticClass: "el-form-item__error"
60
- }, [e._t("error", function() {
61
- return [e._v(" " + e._s(n) + " ")];
62
- }, {
63
- error: n
64
- })], 2) : e._e()];
65
- }
66
- }, {
67
- key: "label",
68
- fn: function() {
69
- return [e._t("label")];
70
- },
71
- proxy: !0
72
- }], null, !0)
73
- }, "FormItem", e.formItemProps, !1));
74
- }, h = [];
75
- const b = Object.keys(u.props || u.default.props).filter(
12
+ import { f as a } from "../chunks/FormItem.2920ac0c.mjs";
13
+ import i from "element-ui/lib/input";
14
+ import { h as c, n as f } from "../chunks/index.d91bd77a.mjs";
15
+ import { s as _, r as d } from "../chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs";
16
+ import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
17
+ const x = Object.keys(i.props || i.default.props).filter(
76
18
  (e) => !["value", "placeholder", "disabled"].includes(e)
77
- ), x = {
19
+ ), v = {
78
20
  name: "FormInput",
79
- mixins: [d],
21
+ mixins: [a],
80
22
  props: {
81
23
  value: {
82
24
  type: [String, Number]
@@ -88,7 +30,7 @@ const b = Object.keys(u.props || u.default.props).filter(
88
30
  },
89
31
  computed: {
90
32
  inputProps() {
91
- return _(o(o({}, f(this.$attrs)), this.$props), b);
33
+ return c(o(o({}, f(this.$attrs)), this.$props), x);
92
34
  }
93
35
  },
94
36
  methods: {
@@ -96,24 +38,24 @@ const b = Object.keys(u.props || u.default.props).filter(
96
38
  this.$emit("input", e);
97
39
  }
98
40
  }
99
- }, a = {};
100
- var I = /* @__PURE__ */ v(
101
- x,
102
- y,
103
- h,
41
+ }, p = {};
42
+ var y = /* @__PURE__ */ h(
43
+ v,
44
+ d,
45
+ _,
104
46
  !1,
105
- S,
47
+ g,
106
48
  null,
107
49
  null,
108
50
  null
109
51
  );
110
- function S(e) {
111
- for (let t in a)
112
- this[t] = a[t];
52
+ function g(e) {
53
+ for (let t in p)
54
+ this[t] = p[t];
113
55
  }
114
- const w = /* @__PURE__ */ function() {
115
- return I.exports;
56
+ const j = /* @__PURE__ */ function() {
57
+ return y.exports;
116
58
  }();
117
59
  export {
118
- w as default
60
+ j as default
119
61
  };
@@ -1,22 +1,22 @@
1
1
  var p = Object.defineProperty;
2
- var l = Object.getOwnPropertySymbols;
3
- var m = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
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) => {
2
+ var s = Object.getOwnPropertySymbols;
3
+ var m = Object.prototype.hasOwnProperty, _ = 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) => {
5
5
  for (var t in r || (r = {}))
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]);
6
+ m.call(r, t) && a(e, t, r[t]);
7
+ if (s)
8
+ for (var t of s(r))
9
+ _.call(r, t) && a(e, t, r[t]);
10
10
  return e;
11
11
  };
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
- import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
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
- var h = function() {
12
+ import { _ as c, f as d } from "../chunks/FormItem.2920ac0c.mjs";
13
+ import l from "element-ui/lib/input";
14
+ import { h as f, n as v } from "../chunks/index.d91bd77a.mjs";
15
+ import { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
16
+ const h = (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
+ var g = function() {
18
18
  var e = this, r = e.$createElement, t = e._self._c || r;
19
- return t("FormItem", e._b({
19
+ return t(c, e._b({
20
20
  attrs: {
21
21
  rules: e.computeRules,
22
22
  disabled: e.inputDisabled
@@ -24,7 +24,7 @@ var h = function() {
24
24
  scopedSlots: e._u([{
25
25
  key: "default",
26
26
  fn: function() {
27
- return [t("ElInput", e._g(e._b({
27
+ return [t(l, 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(a.props || a.default.props).filter(
63
+ const b = Object.keys(l.props || l.default.props).filter(
64
64
  (e) => !["value", "placeholder", "disabled"].includes(e)
65
- ), I = {
65
+ ), E = {
66
66
  name: "FormInputEmail",
67
- mixins: [f],
67
+ mixins: [d],
68
68
  props: {
69
69
  value: {
70
70
  type: String
@@ -76,37 +76,37 @@ const b = Object.keys(a.props || a.default.props).filter(
76
76
  },
77
77
  computed: {
78
78
  inputProps() {
79
- return c(o(o({}, _(this.$attrs)), this.$props), b);
79
+ return f(o(o({}, v(this.$attrs)), this.$props), b);
80
80
  }
81
81
  },
82
82
  methods: {
83
83
  getRules() {
84
84
  return [
85
85
  {
86
- validator: y,
86
+ validator: h,
87
87
  message: "请输入正确的邮箱!"
88
88
  }
89
89
  ];
90
90
  }
91
91
  }
92
92
  }, u = {};
93
- var g = /* @__PURE__ */ v(
94
- I,
95
- h,
93
+ var I = /* @__PURE__ */ y(
94
+ E,
95
+ g,
96
96
  x,
97
97
  !1,
98
- E,
98
+ P,
99
99
  null,
100
100
  null,
101
101
  null
102
102
  );
103
- function E(e) {
103
+ function P(e) {
104
104
  for (let r in u)
105
105
  this[r] = u[r];
106
106
  }
107
- const k = /* @__PURE__ */ function() {
108
- return g.exports;
107
+ const A = /* @__PURE__ */ function() {
108
+ return I.exports;
109
109
  }();
110
110
  export {
111
- k as default
111
+ A as default
112
112
  };