@web-utils/component 3.0.2 → 3.0.3

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