@web-utils/component 4.0.0 → 4.0.2

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/awesome-button/index.mjs +25 -55
  2. package/base.css +1 -1
  3. package/card/style.css +1 -1
  4. package/carousel/style.css +1 -1
  5. package/chat/style.css +1 -1
  6. package/chunks/{ElementForm.8w6UkiuU.mjs → ElementForm.CQ3PN5qj.mjs} +17 -35
  7. package/chunks/{ElementListeners.DOy8wyD2.mjs → ElementListeners.De_PRuIm.mjs} +56 -95
  8. package/chunks/{ElementMultiInstance.3Z28ewuh.mjs → ElementMultiInstance.DQo2wuAQ.mjs} +16 -26
  9. package/chunks/{ElementProperties.B2I48muA.mjs → ElementProperties.CosfDrlW.mjs} +16 -16
  10. package/chunks/{ElementTaskConfig.MBbkLrth.mjs → ElementTaskConfig.Bko0kgTp.mjs} +104 -113
  11. package/chunks/{FlowCondition.BfU9kw6h.mjs → FlowCondition.Y6qEYi1T.mjs} +36 -66
  12. package/chunks/{SignalAndMessage.CH6L7cYu.mjs → SignalAndMessage.Bb5PFX0N.mjs} +11 -22
  13. package/chunks/{UserTaskListeners.XXe5dC5I.mjs → UserTaskListeners.Bv3BDfEI.mjs} +45 -86
  14. package/chunks/configComponents.BDhlZU8F.mjs +23 -0
  15. package/chunks/confirmable-mixin.D9aKzKZ9.mjs +85 -0
  16. package/chunks/core.DJEgjQW6.mjs +54 -0
  17. package/chunks/dictionary.DqiP9x2m.mjs +25 -0
  18. package/chunks/dictionary.DsN-2ukC.mjs +70 -0
  19. package/chunks/form-input.B8z37eqj.mjs +31 -0
  20. package/chunks/form-item.D-H-wCPE.mjs +233 -0
  21. package/chunks/form-validate.CVarNHKX.mjs +12 -0
  22. package/chunks/helper.BiMLcEEk.mjs +41 -0
  23. package/chunks/index.9OxHjTIE.mjs +16 -0
  24. package/chunks/{index.MAFc4eFi.mjs → index.d3MV3Wq2.mjs} +43 -47
  25. package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
  26. package/chunks/{tab-mixin.CVr9bZtn.mjs → tab-mixin.BNK6dxLN.mjs} +1 -1
  27. package/chunks/utilSelf.Csq1766E.mjs +48 -0
  28. package/color-picker/index.mjs +19 -37
  29. package/comment/style.css +1 -1
  30. package/confirm-button/index.mjs +1 -1
  31. package/confirmable/index.mjs +1 -1
  32. package/context-menu/style.css +1 -1
  33. package/count-up/index.mjs +13 -24
  34. package/custom-scrollbar/index.mjs +1 -2
  35. package/data-operatext/style.css +1 -1
  36. package/data-panel/style.css +1 -1
  37. package/data-pay/style.css +1 -1
  38. package/data-price/style.css +1 -1
  39. package/data-rotate/style.css +1 -1
  40. package/data-table-picker/index.mjs +1 -1
  41. package/data-tabs/style.css +1 -1
  42. package/dialog-form/index.mjs +16 -28
  43. package/dynamic-table/style.css +1 -1
  44. package/easy-popup/index.mjs +22 -40
  45. package/easy-popup/style.css +1 -1
  46. package/editable-tree/index.mjs +203 -250
  47. package/editable-tree/style.css +1 -1
  48. package/element-dialog/index.mjs +30 -52
  49. package/element-dialog/style.css +1 -1
  50. package/flex-column/index.mjs +13 -25
  51. package/flex-item/index.mjs +15 -27
  52. package/flex-row/index.mjs +13 -25
  53. package/flow-designer/index.mjs +343 -374
  54. package/flow-designer/style.css +1 -1
  55. package/flow-viewer/index.mjs +64 -91
  56. package/form-block/index.mjs +33 -26
  57. package/form-card/index.mjs +25 -0
  58. package/form-cascader/index.mjs +70 -67
  59. package/form-checkbox/index.mjs +71 -0
  60. package/form-checkbox-group/index.mjs +33 -53
  61. package/form-date-picker/index.mjs +44 -73
  62. package/form-holder/index.mjs +54 -40
  63. package/form-holder/style.css +1 -0
  64. package/form-input/index.mjs +62 -40
  65. package/form-input-cron-expression/index.mjs +77 -0
  66. package/form-input-cron-expression/style.css +1 -0
  67. package/form-input-email/index.mjs +21 -33
  68. package/form-input-id-card/index.mjs +25 -38
  69. package/form-input-number/index.mjs +39 -42
  70. package/form-input-number/style.css +1 -1
  71. package/form-input-phone-number/index.mjs +26 -37
  72. package/form-input-tag/index.mjs +32 -34
  73. package/form-input-time/index.mjs +22 -37
  74. package/form-item/index.mjs +109 -101
  75. package/form-item/style.css +1 -1
  76. package/form-item-config-provider/index.mjs +18 -10
  77. package/form-item-group/index.mjs +73 -69
  78. package/form-item-group/style.css +1 -1
  79. package/form-radio-group/index.mjs +41 -36
  80. package/form-radio-group/style.css +1 -1
  81. package/form-select/index.mjs +142 -75
  82. package/form-select/style.css +1 -0
  83. package/form-switch/index.mjs +29 -34
  84. package/form-table/index.mjs +85 -0
  85. package/form-table-plus/index.mjs +109 -0
  86. package/form-textarea/index.mjs +23 -35
  87. package/form-tree-select/index.mjs +72 -0
  88. package/form-tree-select/style.css +1 -0
  89. package/form-tree-select-multiple/index.mjs +78 -0
  90. package/form-view/index.mjs +37 -69
  91. package/form-view/style.css +1 -1
  92. package/fy-curd/index.mjs +131 -140
  93. package/fy-curd/style.css +1 -1
  94. package/fy-draggable/index.mjs +16 -26
  95. package/fy-draggable/style.css +1 -1
  96. package/fy-dynamic/index.mjs +48 -57
  97. package/fy-empty/style.css +1 -1
  98. package/fy-form/style.css +1 -1
  99. package/fy-form-design/index.mjs +314 -339
  100. package/fy-form-design/style.css +1 -1
  101. package/fy-input-map/index.mjs +40 -50
  102. package/fy-input-map/style.css +1 -1
  103. package/fy-input-table/index.mjs +31 -41
  104. package/fy-u-editor/index.mjs +77 -103
  105. package/fy-upload/style.css +1 -1
  106. package/highlight-j-s/style.css +1 -1
  107. package/image-cropper/index.mjs +14 -65
  108. package/image-preview/index.mjs +17 -45
  109. package/image-preview/style.css +1 -1
  110. package/image-viewer/style.css +1 -1
  111. package/index.mjs +666 -496
  112. package/input-number/index.mjs +64 -9
  113. package/keyboard/style.css +1 -1
  114. package/monaco-editor/index.mjs +43 -71
  115. package/name-avatar/style.css +1 -1
  116. package/package.json +5 -4
  117. package/page-index/index.mjs +30 -54
  118. package/page-index-top/index.mjs +25 -47
  119. package/pageable-table/index.mjs +385 -218
  120. package/pageable-table/style.css +1 -1
  121. package/pageable-view/index.mjs +56 -95
  122. package/photo-swipe/index.mjs +51 -74
  123. package/picker-table-view/index.mjs +117 -0
  124. package/present-view/index.mjs +43 -77
  125. package/present-view/style.css +1 -1
  126. package/resize-observer/index.mjs +1 -1
  127. package/resize-observer/style.css +1 -1
  128. package/search/style.css +1 -1
  129. package/search-popover/index.mjs +28 -48
  130. package/search-popover/style.css +1 -1
  131. package/sign/index.mjs +1 -1
  132. package/sign-panel/style.css +1 -1
  133. package/skeleton-panel/index.mjs +38 -0
  134. package/skeleton-panel/style.css +1 -0
  135. package/split-pane/index.mjs +31 -49
  136. package/split-pane/style.css +1 -1
  137. package/sub-table/index.mjs +206 -0
  138. package/sub-table/style.css +1 -0
  139. package/sub-table-plus/index.mjs +231 -0
  140. package/sub-table-plus/style.css +1 -0
  141. package/swiper/index.mjs +18 -38
  142. package/swiper/style.css +1 -1
  143. package/tab/index.mjs +1 -1
  144. package/tab/style.css +1 -1
  145. package/tab-item/index.mjs +2 -2
  146. package/table-column/index.mjs +166 -37
  147. package/table-column/style.css +1 -0
  148. package/table-view/index.mjs +177 -132
  149. package/table-view/style.css +1 -1
  150. package/tabs-view/index.mjs +104 -0
  151. package/tabs-view/style.css +1 -0
  152. package/tag-render/index.mjs +13 -24
  153. package/toolbar/index.mjs +115 -58
  154. package/toolbar/style.css +1 -1
  155. package/toolbar-button/index.mjs +92 -48
  156. package/vue-cron/index.mjs +47 -65
  157. package/vue-qr-code/index.mjs +14 -32
  158. package/vue-quill-editor/index.mjs +13 -24
  159. package/vue-tags-input/index.mjs +10 -21
  160. package/vue-tree-select/index.mjs +352 -393
  161. package/vue-tree-select/style.css +1 -1
  162. package/vue-video-player/index.mjs +34 -63
  163. package/watermark/index.mjs +21 -31
  164. package/web-types.json +9240 -3840
  165. package/x-input-tag/index.mjs +29 -61
  166. package/chunks/confirmable-mixin.D4LAArE5.mjs +0 -114
  167. package/chunks/form-input-mixin.BkKiqJhi.mjs +0 -24
  168. package/chunks/form-item-mixin.CG4ZwzMC.mjs +0 -140
  169. package/chunks/input-number-mixin.CzjtGf2n.mjs +0 -60
  170. package/chunks/utilSelf.CRqpl0Cz.mjs +0 -56
  171. package/toolbar-button/style.css +0 -1
  172. /package/chunks/{form-pick-mixin.BFTIVn_i.mjs → form-pick.BFTIVn_i.mjs} +0 -0
@@ -0,0 +1,77 @@
1
+ import { f as n } from "../chunks/form-input.B8z37eqj.mjs";
2
+ import s from "element-ui/lib/input";
3
+ import { v as a, c as l, n as u } from "../chunks/index.d3MV3Wq2.mjs";
4
+ import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
+ const p = Object.keys(s.props).filter((o) => !["value", "placeholder", "disabled"].includes(o)), c = {
6
+ name: "FormInputCronExpression",
7
+ mixins: [n],
8
+ props: {
9
+ value: [String, Number],
10
+ readonlyGrey: {
11
+ type: Boolean,
12
+ default: !0
13
+ },
14
+ maxLength: {
15
+ type: String,
16
+ default: "255"
17
+ }
18
+ },
19
+ data() {
20
+ return {
21
+ cronPopover: !1,
22
+ isValidValue: !1
23
+ };
24
+ },
25
+ computed: {
26
+ inputProps() {
27
+ return l({ ...u(this.$attrs), ...this.$props }, p);
28
+ }
29
+ },
30
+ watch: {
31
+ async value(o) {
32
+ this.isValidValue = await a(this.prop, o, this.computeRules);
33
+ }
34
+ },
35
+ methods: {
36
+ emitInput(o) {
37
+ this.$emit("input", o);
38
+ }
39
+ }
40
+ };
41
+ var d = function() {
42
+ var e = this, r = e._self._c;
43
+ return r("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled, "validate-status": "" }, scopedSlots: e._u([{ key: "default", fn: function() {
44
+ return [e._t("default", function() {
45
+ return [r("div", { staticClass: "cron" }, [r("ElPopover", { attrs: { "popper-class": "cron-popover" }, scopedSlots: e._u([{ key: "reference", fn: function() {
46
+ return [r("ElInput", e._g(e._b({ class: { "is-readonly": e.readonlyGrey && e.readonly }, attrs: { value: e.value, readonly: e.readonly, maxlength: e.maxLength, disabled: e.inputDisabled, placeholder: e.inputDisabled ? "" : e.computePlaceholder }, on: { click: function(t) {
47
+ e.cronPopover = !0;
48
+ } }, scopedSlots: e._u([{ key: "append", fn: function() {
49
+ return [e._t("append")];
50
+ }, proxy: !0 }], null, !0) }, "ElInput", e.inputProps, !1), e.listeners))];
51
+ }, proxy: !0 }]), model: { value: e.cronPopover, callback: function(t) {
52
+ e.cronPopover = t;
53
+ }, expression: "cronPopover" } }, [e.cronPopover ? r("VueCron", { attrs: { i18n: "cn", expression: e.value }, on: { change: e.emitInput, close: function(t) {
54
+ e.cronPopover = !1;
55
+ } } }) : e._e()], 1)], 1), e.isValidValue && e.$slots.warn ? r("div", { staticClass: "el-form-item__warn" }, [e._t("warn")], 2) : e._e()];
56
+ })];
57
+ }, proxy: !0 }, { key: "error", fn: function({ error: t }) {
58
+ return [e.$scopedSlots.error && e.$scopedSlots.error(t) ? r("div", { staticClass: "el-form-item__error" }, [e._t("error", function() {
59
+ return [e._v(e._s(t))];
60
+ }, { error: t })], 2) : e._e()];
61
+ } }, { key: "label", fn: function() {
62
+ return [e._t("label")];
63
+ }, proxy: !0 }, { key: "tips", fn: function() {
64
+ return [e._t("tips")];
65
+ }, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
66
+ }, f = [], m = /* @__PURE__ */ i(
67
+ c,
68
+ d,
69
+ f,
70
+ !1,
71
+ null,
72
+ null
73
+ );
74
+ const x = m.exports;
75
+ export {
76
+ x as default
77
+ };
@@ -0,0 +1 @@
1
+ .cron-popover{max-height:590px;overflow-y:auto}.cron-popover .el-input__icon.el-input__validateIcon{display:none}
@@ -1,25 +1,13 @@
1
- var u = Object.defineProperty;
2
- var l = 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, o = (t, e) => {
5
- for (var r in e || (e = {}))
6
- i.call(e, r) && s(t, r, e[r]);
7
- if (l)
8
- for (var r of l(e))
9
- p.call(e, r) && s(t, r, e[r]);
10
- return t;
11
- };
12
- import { f as m } from "../chunks/form-input-mixin.BkKiqJhi.mjs";
1
+ import { f as o } from "../chunks/form-input.B8z37eqj.mjs";
2
+ import { v as l } from "../chunks/form-validate.CVarNHKX.mjs";
13
3
  import a from "element-ui/lib/input";
14
- import { d, n as f } from "../chunks/index.MAFc4eFi.mjs";
15
- import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.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((t) => !["value", "placeholder", "disabled"].includes(t)), v = {
4
+ import { c as s, n as u } from "../chunks/index.d3MV3Wq2.mjs";
5
+ import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
6
+ const p = Object.keys(a.props).filter((t) => !["value", "placeholder", "disabled"].includes(t)), m = {
17
7
  name: "FormInputEmail",
18
- mixins: [m],
8
+ mixins: [o],
19
9
  props: {
20
- value: {
21
- type: String
22
- },
10
+ value: String,
23
11
  maxLength: {
24
12
  type: String,
25
13
  default: "200"
@@ -27,38 +15,38 @@ const _ = (t, e, r) => e && !/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-
27
15
  },
28
16
  computed: {
29
17
  inputProps() {
30
- return d(o(o({}, f(this.$attrs)), this.$props), y);
18
+ return s({ ...u(this.$attrs), ...this.$props }, p);
31
19
  }
32
20
  },
33
21
  methods: {
34
22
  getRules() {
35
23
  return [
36
24
  {
37
- validator: _,
25
+ validator: l,
38
26
  message: "请输入正确的邮箱!"
39
27
  }
40
28
  ];
41
29
  }
42
30
  }
43
31
  };
44
- var h = function() {
45
- var e = this, r = e._self._c;
46
- return r("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
47
- 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))];
48
- }, proxy: !0 }, { key: "error", fn: function({ error: n }) {
49
- return [e._t("error", null, { error: n })];
32
+ var d = function() {
33
+ var e = this, n = e._self._c;
34
+ return n("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
35
+ return [n("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: (r) => e.$emit("input", r) } }, "ElInput", e.inputProps, !1), e.listeners))];
36
+ }, proxy: !0 }, { key: "error", fn: function({ error: r }) {
37
+ return [e._t("error", null, { error: r })];
50
38
  } }, { key: "label", fn: function() {
51
39
  return [e._t("label")];
52
40
  }, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
53
- }, b = [], x = /* @__PURE__ */ c(
54
- v,
55
- h,
56
- b,
41
+ }, f = [], c = /* @__PURE__ */ i(
42
+ m,
43
+ d,
44
+ f,
57
45
  !1,
58
46
  null,
59
47
  null
60
48
  );
61
- const F = x.exports;
49
+ const I = c.exports;
62
50
  export {
63
- F as default
51
+ I as default
64
52
  };
@@ -1,26 +1,13 @@
1
- var u = Object.defineProperty;
2
- var s = Object.getOwnPropertySymbols;
3
- var p = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
4
- var a = (t, e, r) => e in t ? u(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, n = (t, e) => {
5
- for (var r in e || (e = {}))
6
- p.call(e, r) && a(t, r, e[r]);
7
- if (s)
8
- for (var r of s(e))
9
- d.call(e, r) && a(t, r, e[r]);
10
- return t;
11
- };
12
- import { f as m } from "../chunks/form-input-mixin.BkKiqJhi.mjs";
13
- import { validateIdCard as l } from "@web-utils/core";
14
- import i from "element-ui/lib/input";
15
- import { d as f, n as c } from "../chunks/index.MAFc4eFi.mjs";
16
- import { n as _ } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
17
- const v = Object.keys(i.props || i.default.props).filter((t) => !["value", "placeholder", "disabled"].includes(t)), y = {
1
+ import { f as s } from "../chunks/form-input.B8z37eqj.mjs";
2
+ import { validateIdCard as n } from "@web-utils/core";
3
+ import a from "element-ui/lib/input";
4
+ import { c as l, n as i } from "../chunks/index.d3MV3Wq2.mjs";
5
+ import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
6
+ const p = Object.keys(a.props).filter((o) => !["value", "placeholder", "disabled"].includes(o)), m = {
18
7
  name: "FormInputIdCard",
19
- mixins: [m],
8
+ mixins: [s],
20
9
  props: {
21
- value: {
22
- type: String
23
- },
10
+ value: String,
24
11
  maxLength: {
25
12
  type: String,
26
13
  default: "200"
@@ -28,41 +15,41 @@ const v = Object.keys(i.props || i.default.props).filter((t) => !["value", "plac
28
15
  },
29
16
  computed: {
30
17
  inputProps() {
31
- return f(n(n({}, c(this.$attrs)), this.$props), v);
18
+ return l({ ...i(this.$attrs), ...this.$props }, p);
32
19
  }
33
20
  },
34
21
  methods: {
35
- validateIdCard: l,
22
+ validateIdCard: n,
36
23
  getRules() {
37
24
  return [
38
25
  {
39
- validator: l,
26
+ validator: n,
40
27
  message: "请输入正确的身份证号码!"
41
28
  }
42
29
  ];
43
30
  }
44
31
  }
45
32
  };
46
- var I = 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: (o) => e.$emit("input", o) } }, "ElInput", e.inputProps, !1), e.listeners)), e.$slots.warn ? r("div", { staticClass: "el-form-item__error" }, [e._t("warn")], 2) : e._e()];
50
- }, proxy: !0 }, { key: "error", fn: function({ error: o }) {
51
- return [e.$scopedSlots.error && e.$scopedSlots.error(o) ? r("div", { staticClass: "el-form-item__error" }, [e._t("error", function() {
52
- return [e._v(" " + e._s(o) + " ")];
53
- }, { error: o })], 2) : e._e()];
33
+ var d = function() {
34
+ var e = this, t = e._self._c;
35
+ return t("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
36
+ 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: (r) => e.$emit("input", r) } }, "ElInput", e.inputProps, !1), e.listeners)), e.$slots.warn ? t("div", { staticClass: "el-form-item__error" }, [e._t("warn")], 2) : e._e()];
37
+ }, proxy: !0 }, { key: "error", fn: function({ error: r }) {
38
+ return [e.$scopedSlots.error && e.$scopedSlots.error(r) ? t("div", { staticClass: "el-form-item__error" }, [e._t("error", function() {
39
+ return [e._v(e._s(r))];
40
+ }, { error: r })], 2) : e._e()];
54
41
  } }, { key: "label", fn: function() {
55
42
  return [e._t("label")];
56
43
  }, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
57
- }, b = [], h = /* @__PURE__ */ _(
58
- y,
59
- I,
60
- b,
44
+ }, c = [], f = /* @__PURE__ */ u(
45
+ m,
46
+ d,
47
+ c,
61
48
  !1,
62
49
  null,
63
50
  null
64
51
  );
65
- const S = h.exports;
52
+ const h = f.exports;
66
53
  export {
67
- S as default
54
+ h as default
68
55
  };
@@ -1,25 +1,17 @@
1
- var p = Object.defineProperty;
2
- var o = Object.getOwnPropertySymbols;
3
- var s = Object.prototype.hasOwnProperty, a = Object.prototype.propertyIsEnumerable;
4
- var i = (r, e, t) => e in r ? p(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, u = (r, e) => {
5
- for (var t in e || (e = {}))
6
- s.call(e, t) && i(r, t, e[t]);
7
- if (o)
8
- for (var t of o(e))
9
- a.call(e, t) && i(r, t, e[t]);
10
- return r;
11
- };
12
- import { f as l } from "../chunks/form-input-mixin.BkKiqJhi.mjs";
13
- import { d as m, n as f } from "../chunks/index.MAFc4eFi.mjs";
14
- import { i as c } from "../chunks/input-number-mixin.CzjtGf2n.mjs";
15
- import { n as d } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
16
- const _ = Object.keys(c.props).filter((r) => !["value", "placeholder", "disabled", "precision", "max", "min"].includes(r)), y = {
1
+ import { f as p } from "../chunks/form-input.B8z37eqj.mjs";
2
+ import u from "../input-number/index.mjs";
3
+ import { c as s, n as l } from "../chunks/index.d3MV3Wq2.mjs";
4
+ import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
+ let t = {};
6
+ const i = u.mixins;
7
+ i && [...i, u].forEach((e) => {
8
+ e.props && (t = { ...t, ...e.props });
9
+ });
10
+ const m = Object.keys(t).filter((e) => !["value", "placeholder", "disabled", "precision", "max", "min"].includes(e)), f = {
17
11
  name: "FormInputNumber",
18
- mixins: [l],
12
+ mixins: [p],
19
13
  props: {
20
- value: {
21
- type: [String, Number]
22
- },
14
+ value: [Number, String],
23
15
  max: {
24
16
  type: Number,
25
17
  default: 1 / 0
@@ -30,43 +22,48 @@ const _ = Object.keys(c.props).filter((r) => !["value", "placeholder", "disabled
30
22
  },
31
23
  precision: {
32
24
  type: Number,
33
- validator(r) {
34
- return r >= 0 && r === parseInt(r, 10);
25
+ validator(e) {
26
+ return e >= 0 && e === parseInt(e, 10);
35
27
  }
36
- }
28
+ },
29
+ controls: Boolean,
30
+ controlsPosition: String,
31
+ append: String
37
32
  },
38
33
  computed: {
39
34
  inputProps() {
40
- return m(u(u({}, f(this.$attrs)), this.$props), _);
35
+ return s({ ...l(this.$attrs), ...this.$props }, m);
41
36
  }
42
37
  }
43
38
  };
44
- var b = function() {
45
- var e = this, t = e._self._c;
46
- return t("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
47
- return [t("InputNumber", e._g(e._b({ staticClass: "form-input-number", attrs: { value: e.value, controls: !1, precision: e.precision, max: e.max, min: e.min, placeholder: e.computePlaceholder, disabled: e.inputDisabled }, on: { input: (n) => e.$emit("input", n) }, scopedSlots: e._u([{ key: "append", fn: function() {
48
- return [e._t("append")];
39
+ var c = function() {
40
+ var r = this, o = r._self._c;
41
+ return o("FormItem", r._b({ attrs: { rules: r.computeRules, disabled: r.inputDisabled }, scopedSlots: r._u([{ key: "default", fn: function() {
42
+ return [o("InputNumber", r._g(r._b({ staticClass: "form-input-number", attrs: { value: r.value !== null && r.value !== "" ? r.value : void 0, controls: r.controls, precision: r.precision, max: r.max, "controls-position": r.controlsPosition, min: r.min, placeholder: r.computePlaceholder, disabled: r.inputDisabled }, on: { input: (n) => r.$emit("input", n) }, scopedSlots: r._u([{ key: "append", fn: function() {
43
+ return [r._t("append", function() {
44
+ return [r.append ? [r._v(" " + r._s(r.append) + " ")] : r._e()];
45
+ })];
49
46
  }, proxy: !0 }, { key: "prefix", fn: function() {
50
- return [e._t("prefix")];
47
+ return [r._t("prefix")];
51
48
  }, proxy: !0 }, { key: "prepend", fn: function() {
52
- return [e._t("prepend")];
49
+ return [r._t("prepend")];
53
50
  }, proxy: !0 }, { key: "suffix", fn: function() {
54
- return [e._t("suffix")];
55
- }, proxy: !0 }], null, !0) }, "InputNumber", e.inputProps, !1), e.listeners))];
51
+ return [r._t("suffix")];
52
+ }, proxy: !0 }], null, !0) }, "InputNumber", r.inputProps, !1), r.listeners))];
56
53
  }, proxy: !0 }, { key: "error", fn: function({ error: n }) {
57
- return [e._t("error", null, { error: n })];
54
+ return [r._t("error", null, { error: n })];
58
55
  } }, { key: "label", fn: function() {
59
- return [e._t("label")];
60
- }, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
61
- }, x = [], I = /* @__PURE__ */ d(
62
- y,
63
- b,
64
- x,
56
+ return [r._t("label")];
57
+ }, proxy: !0 }], null, !0) }, "FormItem", r.formItemProps, !1));
58
+ }, d = [], _ = /* @__PURE__ */ a(
59
+ f,
60
+ c,
61
+ d,
65
62
  !1,
66
63
  null,
67
64
  null
68
65
  );
69
- const F = I.exports;
66
+ const v = _.exports;
70
67
  export {
71
- F as default
68
+ v as default
72
69
  };
@@ -1 +1 @@
1
- .form-input-number.el-input-number{width:100%}.form-input-number.el-input-number .el-input__inner{text-align:left}
1
+ .form-input-number.el-input-number--mini{line-height:28px}.form-input-number.el-input-number{width:100%}.form-input-number.el-input-number .el-input__inner{text-align:left}
@@ -1,26 +1,13 @@
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, n = (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
- };
12
- import { f as m } from "../chunks/form-input-mixin.BkKiqJhi.mjs";
13
- import { validatePhoneNum as d } from "@web-utils/core";
14
- import { d as f, n as c } from "../chunks/index.MAFc4eFi.mjs";
15
- import l from "element-ui/lib/input";
16
- import { n as _ } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
17
- const h = Object.keys(l.props || l.default.props).filter((t) => !["value", "placeholder", "disabled"].includes(t)), y = {
1
+ import { f as o } from "../chunks/form-input.B8z37eqj.mjs";
2
+ import { validatePhoneNum as s } from "@web-utils/core";
3
+ import { c as l, n as u } from "../chunks/index.d3MV3Wq2.mjs";
4
+ import a from "element-ui/lib/input";
5
+ import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
6
+ const p = Object.keys(a.props).filter((r) => !["value", "placeholder", "disabled"].includes(r)), m = {
18
7
  name: "FormInputPhoneNumber",
19
- mixins: [m],
8
+ mixins: [o],
20
9
  props: {
21
- value: {
22
- type: String
23
- },
10
+ value: String,
24
11
  maxLength: {
25
12
  type: String,
26
13
  default: "200"
@@ -28,41 +15,43 @@ const h = Object.keys(l.props || l.default.props).filter((t) => !["value", "plac
28
15
  },
29
16
  computed: {
30
17
  inputProps() {
31
- return f(n(n({}, c(this.$attrs)), this.$props), h);
18
+ return l({ ...u(this.$attrs), ...this.$props }, p);
32
19
  }
33
20
  },
34
21
  methods: {
35
22
  getRules() {
36
23
  return [
37
24
  {
38
- validator: d,
25
+ validator: (r, e, t) => {
26
+ e && e.indexOf("*") > -1 && e.length === 11 ? t() : s(r, e, t);
27
+ },
39
28
  message: "请输入正确的手机号码!"
40
29
  }
41
30
  ];
42
31
  },
43
- emitInput(t) {
44
- this.$emit("input", t);
32
+ emitInput(r) {
33
+ this.$emit("input", r);
45
34
  }
46
35
  }
47
36
  };
48
- var b = 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: e.emitInput } }, "ElInput", e.inputProps, !1), e.listeners))];
52
- }, proxy: !0 }, { key: "error", fn: function({ error: a }) {
53
- return [e._t("error", null, { error: a })];
37
+ var d = function() {
38
+ var e = this, t = e._self._c;
39
+ return t("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
40
+ 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 } }, "ElInput", e.inputProps, !1), e.listeners))];
41
+ }, proxy: !0 }, { key: "error", fn: function({ error: n }) {
42
+ return [e._t("error", null, { error: n })];
54
43
  } }, { key: "label", fn: function() {
55
44
  return [e._t("label")];
56
45
  }, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
57
- }, v = [], I = /* @__PURE__ */ _(
58
- y,
59
- b,
60
- v,
46
+ }, f = [], c = /* @__PURE__ */ i(
47
+ m,
48
+ d,
49
+ f,
61
50
  !1,
62
51
  null,
63
52
  null
64
53
  );
65
- const R = I.exports;
54
+ const g = c.exports;
66
55
  export {
67
- R as default
56
+ g as default
68
57
  };
@@ -1,25 +1,10 @@
1
- var u = Object.defineProperty;
2
- var a = Object.getOwnPropertySymbols;
3
- var p = Object.prototype.hasOwnProperty, i = 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, n = (t, e) => {
5
- for (var r in e || (e = {}))
6
- p.call(e, r) && l(t, r, e[r]);
7
- if (a)
8
- for (var r of a(e))
9
- i.call(e, r) && l(t, r, e[r]);
10
- return t;
11
- };
12
- import { f as m } from "../chunks/form-input-mixin.BkKiqJhi.mjs";
13
- import { d, n as c } from "../chunks/index.MAFc4eFi.mjs";
14
- import s from "../x-input-tag/index.mjs";
15
- import "../x-input-tag/style.css";
16
- import { n as f } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
17
- const _ = Object.keys(s.props).filter((t) => !["value", "placeholder", "disabled"].includes(t)), b = {
1
+ import { f as a } from "../chunks/form-input.B8z37eqj.mjs";
2
+ import { c as n, n as l } from "../chunks/index.d3MV3Wq2.mjs";
3
+ import u from "../x-input-tag/index.mjs";
4
+ import { n as s } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
+ const p = Object.keys(u.props).filter((t) => !["value", "placeholder", "disabled"].includes(t)), i = {
18
6
  name: "FormInputTag",
19
- components: {
20
- XInputTag: s
21
- },
22
- mixins: [m],
7
+ mixins: [a],
23
8
  props: {
24
9
  value: [Array, String],
25
10
  block: {
@@ -33,32 +18,45 @@ const _ = Object.keys(s.props).filter((t) => !["value", "placeholder", "disabled
33
18
  objectMode: {
34
19
  type: Boolean,
35
20
  default: !0
21
+ },
22
+ separator: {
23
+ type: String,
24
+ default: ","
25
+ },
26
+ boundarySelector: {
27
+ type: String,
28
+ default: ".form-scroller"
29
+ },
30
+ query: Function,
31
+ type: {
32
+ type: String,
33
+ default: "标签"
36
34
  }
37
35
  },
38
36
  computed: {
39
37
  inputProps() {
40
- return d(n(n({}, c(this.$attrs)), this.$props), _);
38
+ return n({ ...l(this.$attrs), ...this.$props }, p);
41
39
  }
42
40
  }
43
41
  };
44
- var y = function() {
45
- var e = this, r = e._self._c;
46
- return r("FormItem", e._b({ attrs: { block: e.block, rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
47
- return [r("XInputTag", e._g(e._b({ attrs: { value: e.value, readonly: e.readonly, disabled: e.inputDisabled, placeholder: e.computePlaceholder, "array-mode": e.arrayMode, "object-mode": e.objectMode }, on: { input: (o) => e.$emit("input", o) } }, "XInputTag", e.inputProps, !1), e.listeners))];
48
- }, proxy: !0 }, { key: "error", fn: function({ error: o }) {
49
- return [e._t("error", null, { error: o })];
42
+ var d = function() {
43
+ var e = this, o = e._self._c;
44
+ return o("FormItem", e._b({ attrs: { block: e.block, rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
45
+ return [o("XInputTag", e._g(e._b({ attrs: { value: e.value, query: e.query, type: e.type, readonly: e.readonly, disabled: e.inputDisabled, "object-mode": e.objectMode, "boundary-selector": e.boundarySelector, placeholder: e.computePlaceholder, "array-mode": e.arrayMode, separator: e.separator }, on: { input: (r) => e.$emit("input", r) } }, "XInputTag", e.inputProps, !1), e.listeners))];
46
+ }, proxy: !0 }, { key: "error", fn: function({ error: r }) {
47
+ return [e._t("error", null, { error: r })];
50
48
  } }, { key: "label", fn: function() {
51
49
  return [e._t("label")];
52
50
  }, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
53
- }, v = [], I = /* @__PURE__ */ f(
54
- b,
55
- y,
56
- v,
51
+ }, c = [], f = /* @__PURE__ */ s(
52
+ i,
53
+ d,
54
+ c,
57
55
  !1,
58
56
  null,
59
57
  null
60
58
  );
61
- const M = I.exports;
59
+ const g = f.exports;
62
60
  export {
63
- M as default
61
+ g as default
64
62
  };