@web-utils/component 3.0.6 → 3.1.0

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 (172) hide show
  1. package/address-input/index.mjs +20 -57
  2. package/affix/index.mjs +26 -47
  3. package/aside-menu/index.mjs +18 -43
  4. package/avatar/index.mjs +27 -49
  5. package/awesome-button/index.mjs +35 -43
  6. package/capsule-tab/index.mjs +16 -34
  7. package/card/index.mjs +21 -76
  8. package/carousel/index.mjs +14 -49
  9. package/chat/index.mjs +104 -414
  10. package/chunk-file-uploader/index.mjs +21 -38
  11. package/chunks/FormTemp.aa57efb4.mjs +125 -0
  12. package/code-mirror-editor/index.mjs +69 -79
  13. package/color-picker/index.mjs +29 -60
  14. package/comment/index.mjs +17 -48
  15. package/confirm-button/index.mjs +11 -19
  16. package/confirmable/index.mjs +12 -20
  17. package/context-menu/index.mjs +42 -144
  18. package/count-up/index.mjs +18 -25
  19. package/custom-scrollbar/index.mjs +13 -22
  20. package/data-box/index.mjs +15 -66
  21. package/data-card/index.mjs +16 -65
  22. package/data-cardtext/index.mjs +16 -52
  23. package/data-display/index.mjs +18 -62
  24. package/data-icons/index.mjs +16 -68
  25. package/data-imgtext/index.mjs +18 -79
  26. package/data-operatext/index.mjs +18 -75
  27. package/data-panel/index.mjs +16 -63
  28. package/data-pay/index.mjs +20 -122
  29. package/data-price/index.mjs +18 -60
  30. package/data-progress/index.mjs +16 -67
  31. package/data-rotate/index.mjs +16 -66
  32. package/data-table-picker/index.mjs +25 -88
  33. package/data-tabs/index.mjs +16 -64
  34. package/dialog-form/index.mjs +48 -94
  35. package/dynamic-table/index.mjs +43 -127
  36. package/e-charts/index.mjs +21 -34
  37. package/easy-popup/index.mjs +35 -61
  38. package/editable-progress/index.mjs +22 -77
  39. package/editable-tree/index.mjs +235 -546
  40. package/egd-collapse/index.mjs +13 -26
  41. package/egd-collapse-item/index.mjs +27 -87
  42. package/element-dialog/index.mjs +69 -133
  43. package/empty-view/index.mjs +13 -33
  44. package/error-view/index.mjs +14 -34
  45. package/flex-column/index.mjs +15 -23
  46. package/flex-item/index.mjs +18 -26
  47. package/flex-row/index.mjs +23 -31
  48. package/flex-scroller/index.mjs +16 -27
  49. package/flow/index.mjs +70 -110
  50. package/flow-designer/index.mjs +1215 -4804
  51. package/flow-node/index.mjs +15 -51
  52. package/flow-viewer/index.mjs +64 -89
  53. package/form-block/index.mjs +43 -62
  54. package/form-button/index.mjs +10 -18
  55. package/form-cascader/index.mjs +49 -100
  56. package/form-checkbox-group/index.mjs +43 -110
  57. package/form-date-picker/index.mjs +51 -97
  58. package/form-holder/index.mjs +25 -42
  59. package/form-input/index.mjs +40 -90
  60. package/form-input-email/index.mjs +35 -79
  61. package/form-input-id-card/index.mjs +40 -87
  62. package/form-input-number/index.mjs +42 -102
  63. package/form-input-phone-number/index.mjs +34 -75
  64. package/form-input-tag/index.mjs +31 -73
  65. package/form-input-time/index.mjs +42 -87
  66. package/form-item/index.mjs +70 -89
  67. package/form-item-config-provider/index.mjs +12 -20
  68. package/form-item-group/index.mjs +46 -65
  69. package/form-radio-group/index.mjs +50 -108
  70. package/form-select/index.mjs +44 -95
  71. package/form-switch/index.mjs +38 -85
  72. package/form-textarea/index.mjs +31 -75
  73. package/form-view/index.mjs +112 -260
  74. package/fy-array/index.mjs +35 -121
  75. package/fy-article/index.mjs +12 -43
  76. package/fy-cascader/index.mjs +26 -67
  77. package/fy-checkbox/index.mjs +27 -77
  78. package/fy-code/index.mjs +19 -33
  79. package/fy-curd/index.mjs +810 -2017
  80. package/fy-date/index.mjs +18 -59
  81. package/fy-draggable/index.mjs +81 -140
  82. package/fy-dynamic/index.mjs +85 -204
  83. package/fy-empty/index.mjs +14 -35
  84. package/fy-form/index.mjs +254 -571
  85. package/fy-form-design/index.mjs +1489 -6084
  86. package/fy-form-design/style.css +1 -1
  87. package/fy-input/index.mjs +34 -104
  88. package/fy-input-color/index.mjs +22 -67
  89. package/fy-input-icon/index.mjs +37 -122
  90. package/fy-input-map/index.mjs +57 -149
  91. package/fy-input-number/index.mjs +18 -53
  92. package/fy-input-table/index.mjs +36 -102
  93. package/fy-input-tree/index.mjs +51 -138
  94. package/fy-progress/index.mjs +12 -31
  95. package/fy-radio/index.mjs +20 -51
  96. package/fy-rate/index.mjs +18 -51
  97. package/fy-select/index.mjs +49 -134
  98. package/fy-slider/index.mjs +19 -52
  99. package/fy-switch/index.mjs +18 -48
  100. package/fy-tabs/index.mjs +19 -51
  101. package/fy-time/index.mjs +22 -62
  102. package/fy-title/index.mjs +14 -25
  103. package/fy-tree/index.mjs +74 -216
  104. package/fy-u-editor/index.mjs +50 -64
  105. package/fy-upload/index.mjs +167 -338
  106. package/guide-steps/index.mjs +33 -53
  107. package/highlight-j-s/index.mjs +13 -27
  108. package/icon-card/index.mjs +12 -36
  109. package/icon-temp/index.mjs +12 -34
  110. package/iframe-window/index.mjs +13 -40
  111. package/image-cropper/index.mjs +46 -171
  112. package/image-preview/index.mjs +54 -168
  113. package/image-viewer/index.mjs +24 -50
  114. package/index.css +1 -0
  115. package/index.mjs +3973 -501
  116. package/input-number/index.mjs +84 -173
  117. package/input-number-range/index.mjs +20 -70
  118. package/j-s-x-component/index.mjs +3 -3
  119. package/keep-view-alive/index.mjs +47 -55
  120. package/keyboard/index.mjs +100 -113
  121. package/license/index.mjs +34 -51
  122. package/loading-view/index.mjs +14 -34
  123. package/login/index.mjs +33 -161
  124. package/monaco-editor/index.mjs +13 -21
  125. package/name-avatar/index.mjs +13 -32
  126. package/nav-bar/index.mjs +12 -31
  127. package/not-implement/index.mjs +14 -25
  128. package/notice/index.mjs +32 -80
  129. package/package.json +1 -1
  130. package/page/index.mjs +11 -23
  131. package/page-header/index.mjs +16 -37
  132. package/page-index/index.mjs +42 -93
  133. package/page-index-top/index.mjs +42 -84
  134. package/page-skeleton/index.mjs +24 -39
  135. package/page-skeleton-new/index.mjs +21 -68
  136. package/pageable-table/index.mjs +105 -227
  137. package/pageable-view/index.mjs +30 -83
  138. package/photo-swipe/index.mjs +62 -87
  139. package/present-view/index.mjs +114 -267
  140. package/queue/index.mjs +14 -29
  141. package/record-video/index.mjs +29 -66
  142. package/resize-observer/index.mjs +18 -30
  143. package/search/index.mjs +47 -81
  144. package/search-popover/index.mjs +57 -329
  145. package/sign/index.mjs +43 -60
  146. package/sign-panel/index.mjs +40 -151
  147. package/skeleton/index.mjs +18 -44
  148. package/split-pane/index.mjs +45 -129
  149. package/stateful/index.mjs +18 -26
  150. package/static-pageable-table/index.mjs +18 -44
  151. package/swiper/index.mjs +53 -94
  152. package/tab/index.mjs +13 -39
  153. package/tab-item/index.mjs +23 -37
  154. package/table-column/index.mjs +27 -35
  155. package/table-view/index.mjs +89 -209
  156. package/tag-render/index.mjs +34 -69
  157. package/text-ellipsis/index.mjs +22 -47
  158. package/tinymce-editor/index.mjs +174 -285
  159. package/toolbar/index.mjs +21 -42
  160. package/toolbar-button/index.mjs +25 -54
  161. package/verify/index.mjs +16 -29
  162. package/vue-cron/index.mjs +272 -1089
  163. package/vue-qr-code/index.mjs +19 -27
  164. package/vue-quill-editor/index.mjs +15 -27
  165. package/vue-tags-input/index.mjs +104 -224
  166. package/vue-tree-select/index.mjs +595 -742
  167. package/vue-video-player/index.mjs +42 -57
  168. package/watermark/index.mjs +27 -35
  169. package/web-types.json +1 -1
  170. package/x-input-tag/index.mjs +50 -112
  171. package/chunks/FormTemp.7f91629d.mjs +0 -165
  172. /package/chunks/{vueComponentNormalizer.446f5dc4.mjs → _plugin-vue2_normalizer.446f5dc4.mjs} +0 -0
@@ -1,37 +1,23 @@
1
- var o = (e, r, i) => new Promise((d, s) => {
2
- var f = (t) => {
1
+ var o = (t, e, l) => new Promise((d, s) => {
2
+ var n = (r) => {
3
3
  try {
4
- l(i.next(t));
4
+ i(l.next(r));
5
5
  } catch (a) {
6
6
  s(a);
7
7
  }
8
- }, m = (t) => {
8
+ }, f = (r) => {
9
9
  try {
10
- l(i.throw(t));
10
+ i(l.throw(r));
11
11
  } catch (a) {
12
12
  s(a);
13
13
  }
14
- }, l = (t) => t.done ? d(t.value) : Promise.resolve(t.value).then(f, m);
15
- l((i = i.apply(e, r)).next());
14
+ }, i = (r) => r.done ? d(r.value) : Promise.resolve(r.value).then(n, f);
15
+ i((l = l.apply(t, e)).next());
16
16
  });
17
- import { warning as u } from "@web-utils/core";
18
- import { e as c } from "../chunks/index.57f871af.mjs";
19
- import { n as p } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
20
- var _ = function() {
21
- var e = this, r = e.$createElement, i = e._self._c || r;
22
- return i("ElForm", e._g(e._b({
23
- ref: "form",
24
- staticClass: "clear-fix",
25
- attrs: {
26
- model: e.model,
27
- size: e.size,
28
- disabled: e.disabled,
29
- "label-width": e.labelWidth,
30
- "label-position": e.labelPosition
31
- }
32
- }, "ElForm", e.$attrs, !1), e.$listeners), [e._t("default")], 2);
33
- }, h = [];
34
- const v = {
17
+ import { warning as m } from "@web-utils/core";
18
+ import { e as u } from "../chunks/index.57f871af.mjs";
19
+ import { n as c } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
20
+ const p = {
35
21
  name: "FormHolder",
36
22
  provide() {
37
23
  return {
@@ -90,15 +76,15 @@ const v = {
90
76
  }
91
77
  },
92
78
  created() {
93
- this.required || u.call(
94
- c(this, (e) => ["FormView", "FormHolder"].includes(e.$options.name)),
79
+ this.required || m.call(
80
+ u(this, (t) => ["FormView", "FormHolder"].includes(t.$options.name)),
95
81
  "一般情况下不建议设置 required=false,因为 required 设置为 false 后必填字段要自行维护,在处理表格时会比较复杂,请自行权衡利弊"
96
82
  );
97
83
  },
98
84
  methods: {
99
- clearValidate(e) {
100
- var r;
101
- (r = this.$refs.form) == null || r.clearValidate(e);
85
+ clearValidate(t) {
86
+ var e;
87
+ (e = this.$refs.form) == null || e.clearValidate(t);
102
88
  },
103
89
  validate() {
104
90
  return o(this, null, function* () {
@@ -109,24 +95,21 @@ const v = {
109
95
  return this.$refs.form.resetFields();
110
96
  }
111
97
  }
112
- }, n = {};
113
- var b = /* @__PURE__ */ p(
114
- v,
98
+ };
99
+ var _ = function() {
100
+ var e = this, l = e._self._c;
101
+ return l("ElForm", e._g(e._b({ ref: "form", staticClass: "clear-fix", attrs: { model: e.model, size: e.size, disabled: e.disabled, "label-width": e.labelWidth, "label-position": e.labelPosition } }, "ElForm", e.$attrs, !1), e.$listeners), [e._t("default")], 2);
102
+ }, h = [], b = /* @__PURE__ */ c(
103
+ p,
115
104
  _,
116
105
  h,
117
106
  !1,
118
- F,
107
+ null,
119
108
  null,
120
109
  null,
121
110
  null
122
111
  );
123
- function F(e) {
124
- for (let r in n)
125
- this[r] = n[r];
126
- }
127
- const x = /* @__PURE__ */ function() {
128
- return b.exports;
129
- }();
112
+ const q = b.exports;
130
113
  export {
131
- x as default
114
+ q as default
132
115
  };
@@ -1,82 +1,23 @@
1
- var p = Object.defineProperty;
1
+ var a = Object.defineProperty;
2
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]);
3
+ var p = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
4
+ var l = (r, e, t) => e in r ? a(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, o = (r, e) => {
5
+ for (var t in e || (e = {}))
6
+ p.call(e, t) && l(r, t, e[t]);
7
7
  if (s)
8
- for (var r of s(t))
9
- c.call(t, r) && l(e, r, t[r]);
10
- return e;
8
+ for (var t of s(e))
9
+ i.call(e, t) && l(r, t, e[t]);
10
+ return r;
11
11
  };
12
- import { f as d } from "../chunks/form-input-mixin.4632ad36.mjs";
12
+ import { f as m } from "../chunks/form-input-mixin.4632ad36.mjs";
13
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(
76
- (e) => !["value", "placeholder", "disabled"].includes(e)
77
- ), x = {
14
+ import { d, n as f } from "../chunks/index.57f871af.mjs";
15
+ import { n as c } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
16
+ const _ = Object.keys(u.props || u.default.props).filter(
17
+ (r) => !["value", "placeholder", "disabled"].includes(r)
18
+ ), y = {
78
19
  name: "FormInput",
79
- mixins: [d],
20
+ mixins: [m],
80
21
  props: {
81
22
  value: {
82
23
  type: [String, Number]
@@ -88,32 +29,41 @@ const b = Object.keys(u.props || u.default.props).filter(
88
29
  },
89
30
  computed: {
90
31
  inputProps() {
91
- return _(o(o({}, f(this.$attrs)), this.$props), b);
32
+ return d(o(o({}, f(this.$attrs)), this.$props), _);
92
33
  }
93
34
  },
94
35
  methods: {
95
- emitInput(e) {
96
- this.$emit("input", e);
36
+ emitInput(r) {
37
+ this.$emit("input", r);
97
38
  }
98
39
  }
99
- }, a = {};
100
- var I = /* @__PURE__ */ v(
101
- x,
40
+ };
41
+ var v = function() {
42
+ var e = this, t = e._self._c;
43
+ return t("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
44
+ return [e._t("default", function() {
45
+ return [t("ElInput", e._g(e._b({ class: { "is-readonly": e.readonly }, attrs: { value: e.value, readonly: e.readonly, maxlength: e.maxLength, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: e.emitInput }, scopedSlots: e._u([{ key: "append", fn: function() {
46
+ return [e._t("append")];
47
+ }, proxy: !0 }], null, !0) }, "ElInput", e.inputProps, !1), e.listeners)), e.$slots.warn ? t("div", { staticClass: "el-form-item__warn" }, [e._t("warn")], 2) : e._e()];
48
+ })];
49
+ }, proxy: !0 }, { key: "error", fn: function({ error: n }) {
50
+ return [e.$scopedSlots.error && e.$scopedSlots.error(n) ? t("div", { staticClass: "el-form-item__error" }, [e._t("error", function() {
51
+ return [e._v(" " + e._s(n) + " ")];
52
+ }, { error: n })], 2) : e._e()];
53
+ } }, { key: "label", fn: function() {
54
+ return [e._t("label")];
55
+ }, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
56
+ }, b = [], h = /* @__PURE__ */ c(
102
57
  y,
103
- h,
58
+ v,
59
+ b,
104
60
  !1,
105
- S,
61
+ null,
106
62
  null,
107
63
  null,
108
64
  null
109
65
  );
110
- function S(e) {
111
- for (let t in a)
112
- this[t] = a[t];
113
- }
114
- const w = /* @__PURE__ */ function() {
115
- return I.exports;
116
- }();
66
+ const $ = h.exports;
117
67
  export {
118
- w as default
68
+ $ as default
119
69
  };
@@ -1,70 +1,23 @@
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) => {
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]);
10
- return e;
1
+ var u = Object.defineProperty;
2
+ var o = Object.getOwnPropertySymbols;
3
+ var i = Object.prototype.hasOwnProperty, p = Object.prototype.propertyIsEnumerable;
4
+ var s = (t, e, r) => e in t ? u(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, l = (t, e) => {
5
+ for (var r in e || (e = {}))
6
+ i.call(e, r) && s(t, r, e[r]);
7
+ if (o)
8
+ for (var r of o(e))
9
+ p.call(e, r) && s(t, r, e[r]);
10
+ return t;
11
11
  };
12
- import { f } from "../chunks/form-input-mixin.4632ad36.mjs";
12
+ import { f as m } from "../chunks/form-input-mixin.4632ad36.mjs";
13
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() {
18
- var e = this, r = e.$createElement, t = e._self._c || r;
19
- return t("FormItem", e._b({
20
- attrs: {
21
- rules: e.computeRules,
22
- disabled: e.inputDisabled
23
- },
24
- scopedSlots: e._u([{
25
- key: "default",
26
- fn: function() {
27
- return [t("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: function(n) {
40
- return e.$emit("input", n);
41
- }
42
- }
43
- }, "ElInput", e.inputProps, !1), e.listeners))];
44
- },
45
- proxy: !0
46
- }, {
47
- key: "error",
48
- fn: function(n) {
49
- var i = n.error;
50
- return [e._t("error", null, {
51
- error: i
52
- })];
53
- }
54
- }, {
55
- key: "label",
56
- fn: function() {
57
- return [e._t("label")];
58
- },
59
- proxy: !0
60
- }], null, !0)
61
- }, "FormItem", e.formItemProps, !1));
62
- }, x = [];
63
- const b = Object.keys(a.props || a.default.props).filter(
64
- (e) => !["value", "placeholder", "disabled"].includes(e)
65
- ), I = {
14
+ import { d, n as f } from "../chunks/index.57f871af.mjs";
15
+ import { n as c } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
16
+ const _ = (t, e, r) => e && !/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(e) ? r(new Error("invalid")) : r(), y = Object.keys(a.props || a.default.props).filter(
17
+ (t) => !["value", "placeholder", "disabled"].includes(t)
18
+ ), v = {
66
19
  name: "FormInputEmail",
67
- mixins: [f],
20
+ mixins: [m],
68
21
  props: {
69
22
  value: {
70
23
  type: String
@@ -76,37 +29,40 @@ const b = Object.keys(a.props || a.default.props).filter(
76
29
  },
77
30
  computed: {
78
31
  inputProps() {
79
- return c(o(o({}, _(this.$attrs)), this.$props), b);
32
+ return d(l(l({}, f(this.$attrs)), this.$props), y);
80
33
  }
81
34
  },
82
35
  methods: {
83
36
  getRules() {
84
37
  return [
85
38
  {
86
- validator: y,
39
+ validator: _,
87
40
  message: "请输入正确的邮箱!"
88
41
  }
89
42
  ];
90
43
  }
91
44
  }
92
- }, u = {};
93
- var g = /* @__PURE__ */ v(
94
- I,
45
+ };
46
+ var h = function() {
47
+ var e = this, r = e._self._c;
48
+ return r("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
49
+ return [r("ElInput", e._g(e._b({ class: { "is-readonly": e.readonly }, attrs: { value: e.value, readonly: e.readonly, maxlength: e.maxLength, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: (n) => e.$emit("input", n) } }, "ElInput", e.inputProps, !1), e.listeners))];
50
+ }, proxy: !0 }, { key: "error", fn: function({ error: n }) {
51
+ return [e._t("error", null, { error: n })];
52
+ } }, { key: "label", fn: function() {
53
+ return [e._t("label")];
54
+ }, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
55
+ }, b = [], x = /* @__PURE__ */ c(
56
+ v,
95
57
  h,
96
- x,
58
+ b,
97
59
  !1,
98
- E,
60
+ null,
99
61
  null,
100
62
  null,
101
63
  null
102
64
  );
103
- function E(e) {
104
- for (let r in u)
105
- this[r] = u[r];
106
- }
107
- const k = /* @__PURE__ */ function() {
108
- return g.exports;
109
- }();
65
+ const F = x.exports;
110
66
  export {
111
- k as default
67
+ F as default
112
68
  };
@@ -1,76 +1,24 @@
1
- var d = Object.defineProperty;
2
- var l = Object.getOwnPropertySymbols;
3
- var m = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
4
- var a = (r, e, t) => e in r ? d(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, s = (r, e) => {
5
- for (var t in e || (e = {}))
6
- m.call(e, t) && a(r, t, e[t]);
7
- if (l)
8
- for (var t of l(e))
9
- c.call(e, t) && a(r, t, e[t]);
10
- return r;
1
+ var u = Object.defineProperty;
2
+ var s = Object.getOwnPropertySymbols;
3
+ var p = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
4
+ var l = (t, e, r) => e in t ? u(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, o = (t, e) => {
5
+ for (var r in e || (e = {}))
6
+ p.call(e, r) && l(t, r, e[r]);
7
+ if (s)
8
+ for (var r of s(e))
9
+ d.call(e, r) && l(t, r, e[r]);
10
+ return t;
11
11
  };
12
- import { f } from "../chunks/form-input-mixin.4632ad36.mjs";
13
- import { validateIdCard as i } from "@web-utils/core";
14
- import u from "element-ui/lib/input";
15
- import { d as _, n as v } from "../chunks/index.57f871af.mjs";
16
- import { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
17
- var h = function() {
18
- var r = this, e = r.$createElement, t = r._self._c || e;
19
- return t("FormItem", r._b({
20
- attrs: {
21
- rules: r.computeRules,
22
- disabled: r.inputDisabled
23
- },
24
- scopedSlots: r._u([{
25
- key: "default",
26
- fn: function() {
27
- return [t("ElInput", r._g(r._b({
28
- class: {
29
- "is-readonly": r.readonly
30
- },
31
- attrs: {
32
- value: r.value,
33
- readonly: r.readonly,
34
- maxlength: r.maxLength,
35
- disabled: r.inputDisabled,
36
- placeholder: r.computePlaceholder
37
- },
38
- on: {
39
- input: function(o) {
40
- return r.$emit("input", o);
41
- }
42
- }
43
- }, "ElInput", r.inputProps, !1), r.listeners)), r.$slots.warn ? t("div", {
44
- staticClass: "el-form-item__error"
45
- }, [r._t("warn")], 2) : r._e()];
46
- },
47
- proxy: !0
48
- }, {
49
- key: "error",
50
- fn: function(o) {
51
- var n = o.error;
52
- return [r.$scopedSlots.error && r.$scopedSlots.error(n) ? t("div", {
53
- staticClass: "el-form-item__error"
54
- }, [r._t("error", function() {
55
- return [r._v(" " + r._s(n) + " ")];
56
- }, {
57
- error: n
58
- })], 2) : r._e()];
59
- }
60
- }, {
61
- key: "label",
62
- fn: function() {
63
- return [r._t("label")];
64
- },
65
- proxy: !0
66
- }], null, !0)
67
- }, "FormItem", r.formItemProps, !1));
68
- }, I = [];
69
- const b = Object.keys(u.props || u.default.props).filter(
70
- (r) => !["value", "placeholder", "disabled"].includes(r)
71
- ), x = {
12
+ import { f as m } from "../chunks/form-input-mixin.4632ad36.mjs";
13
+ import { validateIdCard as a } from "@web-utils/core";
14
+ import i from "element-ui/lib/input";
15
+ import { d as f, n as c } from "../chunks/index.57f871af.mjs";
16
+ import { n as _ } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
17
+ const v = Object.keys(i.props || i.default.props).filter(
18
+ (t) => !["value", "placeholder", "disabled"].includes(t)
19
+ ), y = {
72
20
  name: "FormInputIdCard",
73
- mixins: [f],
21
+ mixins: [m],
74
22
  props: {
75
23
  value: {
76
24
  type: String
@@ -82,38 +30,43 @@ const b = Object.keys(u.props || u.default.props).filter(
82
30
  },
83
31
  computed: {
84
32
  inputProps() {
85
- return _(s(s({}, v(this.$attrs)), this.$props), b);
33
+ return f(o(o({}, c(this.$attrs)), this.$props), v);
86
34
  }
87
35
  },
88
36
  methods: {
89
- validateIdCard: i,
37
+ validateIdCard: a,
90
38
  getRules() {
91
39
  return [
92
40
  {
93
- validator: i,
41
+ validator: a,
94
42
  message: "请输入正确的身份证号码!"
95
43
  }
96
44
  ];
97
45
  }
98
46
  }
99
- }, p = {};
100
- var g = /* @__PURE__ */ y(
101
- x,
102
- h,
47
+ };
48
+ var I = function() {
49
+ var e = this, r = e._self._c;
50
+ return r("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
51
+ return [r("ElInput", e._g(e._b({ class: { "is-readonly": e.readonly }, attrs: { value: e.value, readonly: e.readonly, maxlength: e.maxLength, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: (n) => e.$emit("input", n) } }, "ElInput", e.inputProps, !1), e.listeners)), e.$slots.warn ? r("div", { staticClass: "el-form-item__error" }, [e._t("warn")], 2) : e._e()];
52
+ }, proxy: !0 }, { key: "error", fn: function({ error: n }) {
53
+ return [e.$scopedSlots.error && e.$scopedSlots.error(n) ? r("div", { staticClass: "el-form-item__error" }, [e._t("error", function() {
54
+ return [e._v(" " + e._s(n) + " ")];
55
+ }, { error: n })], 2) : e._e()];
56
+ } }, { key: "label", fn: function() {
57
+ return [e._t("label")];
58
+ }, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
59
+ }, b = [], h = /* @__PURE__ */ _(
60
+ y,
103
61
  I,
62
+ b,
104
63
  !1,
105
- $,
64
+ null,
106
65
  null,
107
66
  null,
108
67
  null
109
68
  );
110
- function $(r) {
111
- for (let e in p)
112
- this[e] = p[e];
113
- }
114
- const R = /* @__PURE__ */ function() {
115
- return g.exports;
116
- }();
69
+ const S = h.exports;
117
70
  export {
118
- R as default
71
+ S as default
119
72
  };