@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,82 +1,26 @@
1
- var u = Object.defineProperty;
1
+ var i = Object.defineProperty;
2
2
  var n = Object.getOwnPropertySymbols;
3
- var c = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
4
- var o = (e, t, r) => t in e ? u(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, l = (e, t) => {
5
- for (var r in t || (t = {}))
6
- c.call(t, r) && o(e, r, t[r]);
3
+ var p = Object.prototype.hasOwnProperty, u = Object.prototype.propertyIsEnumerable;
4
+ var o = (t, e, r) => e in t ? i(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, l = (t, e) => {
5
+ for (var r in e || (e = {}))
6
+ p.call(e, r) && o(t, r, e[r]);
7
7
  if (n)
8
- for (var r of n(t))
9
- d.call(t, r) && o(e, r, t[r]);
10
- return e;
8
+ for (var r of n(e))
9
+ u.call(e, r) && o(t, r, e[r]);
10
+ return t;
11
11
  };
12
- import { f as m } from "../chunks/form-input-mixin.4632ad36.mjs";
13
- import { f } from "../chunks/form-pick-mixin.61ad06b2.mjs";
12
+ import { f as c } from "../chunks/form-input-mixin.4632ad36.mjs";
13
+ import { f as d } from "../chunks/form-pick-mixin.61ad06b2.mjs";
14
14
  import s from "element-ui/lib/cascader";
15
- import { d as h, n as y } from "../chunks/index.57f871af.mjs";
16
- import { findTreeChildren as v, setParent as _ } from "@web-utils/core";
17
- import { cloneDeep as b } from "@web-utils/integrations/lodash";
18
- import { n as S } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
19
- var k = function() {
20
- var e = this, t = e.$createElement, r = e._self._c || t;
21
- return r("FormItem", e._b({
22
- attrs: {
23
- rules: e.computeRules,
24
- disabled: e.inputDisabled
25
- },
26
- scopedSlots: e._u([{
27
- key: "default",
28
- fn: function() {
29
- return [e._t("default", function() {
30
- return [r("ElCascader", e._g(e._b({
31
- class: {
32
- "is-readonly": e.readonly
33
- },
34
- staticStyle: {
35
- width: "100%"
36
- },
37
- attrs: {
38
- value: e.inputVal,
39
- "show-all-levels": e.showAllLevels,
40
- separator: e.separator,
41
- readonly: e.readonly,
42
- options: e.innerOptions,
43
- props: {
44
- checkStrictly: e.checkStrictly,
45
- label: e.labelKey,
46
- value: e.valueKey
47
- },
48
- disabled: e.inputDisabled,
49
- placeholder: e.computePlaceholder
50
- },
51
- on: {
52
- input: e.emitInput
53
- }
54
- }, "ElCascader", e.inputProps, !1), e.listeners))];
55
- })];
56
- },
57
- proxy: !0
58
- }, {
59
- key: "error",
60
- fn: function(i) {
61
- var p = i.error;
62
- return [e._t("error", null, {
63
- error: p
64
- })];
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
- }, x = [];
75
- const P = Object.keys(s.props || s.default.props).filter(
76
- (e) => !["value", "placeholder", "disabled", "options", "showAllLevels", "show-all-levels", "separator"].includes(e)
77
- ), w = {
15
+ import { d as m, n as f } from "../chunks/index.57f871af.mjs";
16
+ import { findTreeChildren as h, setParent as y } from "@web-utils/core";
17
+ import { cloneDeep as v } from "@web-utils/integrations/lodash";
18
+ import { n as _ } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
19
+ const b = Object.keys(s.props || s.default.props).filter(
20
+ (t) => !["value", "placeholder", "disabled", "options", "showAllLevels", "show-all-levels", "separator"].includes(t)
21
+ ), S = {
78
22
  name: "FormCascader",
79
- mixins: [m, f],
23
+ mixins: [c, d],
80
24
  props: {
81
25
  value: {
82
26
  type: [String, Number]
@@ -114,52 +58,57 @@ const P = Object.keys(s.props || s.default.props).filter(
114
58
  },
115
59
  computed: {
116
60
  inputProps() {
117
- return h(l(l({}, y(this.$attrs)), this.$props), P);
61
+ return m(l(l({}, f(this.$attrs)), this.$props), b);
118
62
  },
119
63
  inputVal() {
120
- let [e] = v(this.innerOptions, (r) => r[this.valueKey] === this.value);
121
- const t = [];
122
- for (; e; )
123
- t.push(e[this.valueKey]), e = e.parent;
124
- return t.reverse();
64
+ let [t] = h(this.innerOptions, (r) => r[this.valueKey] === this.value);
65
+ const e = [];
66
+ for (; t; )
67
+ e.push(t[this.valueKey]), t = t.parent;
68
+ return e.reverse();
125
69
  }
126
70
  },
127
71
  watch: {
128
72
  options: {
129
73
  immediate: !0,
130
- handler(e) {
131
- if (e) {
132
- const t = b(e);
133
- _(t), this.innerOptions = t;
74
+ handler(t) {
75
+ if (t) {
76
+ const e = v(t);
77
+ y(e), this.innerOptions = e;
134
78
  } else
135
79
  this.innerOptions = [];
136
80
  }
137
81
  }
138
82
  },
139
83
  methods: {
140
- emitInput(e) {
141
- const t = this.last ? e[e.length - 1] : e;
142
- this.$emit("input", t);
84
+ emitInput(t) {
85
+ const e = this.last ? t[t.length - 1] : t;
86
+ this.$emit("input", e);
143
87
  }
144
88
  }
145
- }, a = {};
146
- var C = /* @__PURE__ */ S(
147
- w,
89
+ };
90
+ var k = function() {
91
+ var e = this, r = e._self._c;
92
+ return r("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
93
+ return [e._t("default", function() {
94
+ return [r("ElCascader", e._g(e._b({ class: { "is-readonly": e.readonly }, staticStyle: { width: "100%" }, attrs: { value: e.inputVal, "show-all-levels": e.showAllLevels, separator: e.separator, readonly: e.readonly, options: e.innerOptions, props: { checkStrictly: e.checkStrictly, label: e.labelKey, value: e.valueKey }, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: e.emitInput } }, "ElCascader", e.inputProps, !1), e.listeners))];
95
+ })];
96
+ }, proxy: !0 }, { key: "error", fn: function({ error: a }) {
97
+ return [e._t("error", null, { error: a })];
98
+ } }, { key: "label", fn: function() {
99
+ return [e._t("label")];
100
+ }, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
101
+ }, P = [], w = /* @__PURE__ */ _(
102
+ S,
148
103
  k,
149
- x,
104
+ P,
150
105
  !1,
151
- K,
106
+ null,
152
107
  null,
153
108
  null,
154
109
  null
155
110
  );
156
- function K(e) {
157
- for (let t in a)
158
- this[t] = a[t];
159
- }
160
- const E = /* @__PURE__ */ function() {
161
- return C.exports;
162
- }();
111
+ const B = w.exports;
163
112
  export {
164
- E as default
113
+ B as default
165
114
  };
@@ -1,102 +1,24 @@
1
- var p = Object.defineProperty;
1
+ var a = 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) => {
5
- for (var r in t || (t = {}))
6
- h.call(t, r) && n(e, r, t[r]);
3
+ var u = Object.prototype.hasOwnProperty, p = Object.prototype.propertyIsEnumerable;
4
+ var s = (r, e, t) => e in r ? a(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, l = (r, e) => {
5
+ for (var t in e || (e = {}))
6
+ u.call(e, t) && s(r, t, e[t]);
7
7
  if (i)
8
- for (var r of i(t))
9
- c.call(t, r) && n(e, r, t[r]);
10
- return e;
8
+ for (var t of i(e))
9
+ p.call(e, t) && s(r, t, e[t]);
10
+ return r;
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() {
18
- var e = this, t = e.$createElement, r = e._self._c || t;
19
- return r("FormItem", e._b({
20
- class: ["form-checkbox-group", {
21
- "form-checkbox-group-row": e.fillRow
22
- }, e.ellipsis ? "form-checkbox-group-row-ellipsis" : e.fillRow ? "form-checkbox-group-row-break-word" : ""],
23
- attrs: {
24
- rules: e.computeRules,
25
- disabled: e.inputDisabled
26
- },
27
- scopedSlots: e._u([{
28
- key: "default",
29
- fn: function() {
30
- return [r("ElCheckboxGroup", e._g(e._b({
31
- attrs: {
32
- disabled: e.inputDisabled,
33
- value: e.computeVal,
34
- placeholder: e.computePlaceholder
35
- },
36
- on: {
37
- input: e.emitInput
38
- }
39
- }, "ElCheckboxGroup", e.inputProps, !1), e.listeners), e._l(e.innerOptions, function(o) {
40
- return r("ElCheckbox", {
41
- key: o[e.valueKey],
42
- attrs: {
43
- label: o[e.valueKey]
44
- }
45
- }, [e._v(" " + e._s(o[e.labelKey]) + " ")]);
46
- }), 1), e.computeVal.includes(e.otherVal) ? r("FormInput", {
47
- staticClass: "form-checkbox-group-other",
48
- style: e.otherLabel ? {
49
- width: e.otherWidth
50
- } : {
51
- marginBottom: 0,
52
- width: e.otherWidth
53
- },
54
- attrs: {
55
- "wrap-col": !1,
56
- "label-width": "0",
57
- prop: e.otherProp,
58
- required: !!e.otherProp,
59
- placeholder: e.otherPlaceholder,
60
- label: e.otherLabel,
61
- "show-message": !!e.otherLabel,
62
- value: e.other
63
- },
64
- on: {
65
- input: function(o) {
66
- return e.$emit("update:other", o);
67
- }
68
- }
69
- }) : e._e()];
70
- },
71
- proxy: !0
72
- }, {
73
- key: "error",
74
- fn: function(o) {
75
- var u = o.error;
76
- return [e._t("error", null, {
77
- error: u
78
- })];
79
- }
80
- }, {
81
- key: "label",
82
- fn: function() {
83
- return [e._t("label")];
84
- },
85
- proxy: !0
86
- }, {
87
- key: "below",
88
- fn: function() {
89
- return [e._t("below")];
90
- },
91
- proxy: !0
92
- }], null, !0)
93
- }, "FormItem", e.formItemProps, !1));
94
- }, v = [];
95
- const x = Object.keys(s.props || s.default.props).filter(
96
- (e) => !["value", "placeholder", "disabled"].includes(e)
97
- ), g = {
12
+ import { f as h } from "../chunks/form-input-mixin.4632ad36.mjs";
13
+ import { f as c } from "../chunks/form-pick-mixin.61ad06b2.mjs";
14
+ import { d as f, n as m } from "../chunks/index.57f871af.mjs";
15
+ import n from "element-ui/lib/checkbox-group";
16
+ import { n as d } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
17
+ const b = Object.keys(n.props || n.default.props).filter(
18
+ (r) => !["value", "placeholder", "disabled"].includes(r)
19
+ ), y = {
98
20
  name: "FormCheckboxGroup",
99
- mixins: [f, m],
21
+ mixins: [h, c],
100
22
  props: {
101
23
  options: {
102
24
  type: Array,
@@ -150,7 +72,7 @@ const x = Object.keys(s.props || s.default.props).filter(
150
72
  return this.classic ? "value" : this.valueProp;
151
73
  },
152
74
  inputProps() {
153
- return d(l(l({}, b(this.$attrs)), this.$props), x);
75
+ return f(l(l({}, m(this.$attrs)), this.$props), b);
154
76
  },
155
77
  innerOptions() {
156
78
  return this.gender ? [
@@ -178,28 +100,39 @@ const x = Object.keys(s.props || s.default.props).filter(
178
100
  }
179
101
  },
180
102
  methods: {
181
- emitInput(e) {
182
- this.split ? this.$emit("input", e.join(",")) : this.$emit("input", e);
103
+ emitInput(r) {
104
+ this.split ? this.$emit("input", r.join(",")) : this.$emit("input", r);
183
105
  }
184
106
  }
185
- }, a = {};
186
- var k = /* @__PURE__ */ y(
187
- g,
107
+ };
108
+ var _ = function() {
109
+ var e = this, t = e._self._c;
110
+ return t("FormItem", e._b({ class: [
111
+ "form-checkbox-group",
112
+ { "form-checkbox-group-row": e.fillRow },
113
+ e.ellipsis ? "form-checkbox-group-row-ellipsis" : e.fillRow ? "form-checkbox-group-row-break-word" : ""
114
+ ], attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
115
+ return [t("ElCheckboxGroup", e._g(e._b({ attrs: { disabled: e.inputDisabled, value: e.computeVal, placeholder: e.computePlaceholder }, on: { input: e.emitInput } }, "ElCheckboxGroup", e.inputProps, !1), e.listeners), e._l(e.innerOptions, function(o) {
116
+ return t("ElCheckbox", { key: o[e.valueKey], attrs: { label: o[e.valueKey] } }, [e._v(" " + e._s(o[e.labelKey]) + " ")]);
117
+ }), 1), e.computeVal.includes(e.otherVal) ? t("FormInput", { staticClass: "form-checkbox-group-other", style: e.otherLabel ? { width: e.otherWidth } : { marginBottom: 0, width: e.otherWidth }, attrs: { "wrap-col": !1, "label-width": "0", prop: e.otherProp, required: !!e.otherProp, placeholder: e.otherPlaceholder, label: e.otherLabel, "show-message": !!e.otherLabel, value: e.other }, on: { input: (o) => e.$emit("update:other", o) } }) : e._e()];
118
+ }, proxy: !0 }, { key: "error", fn: function({ error: o }) {
119
+ return [e._t("error", null, { error: o })];
120
+ } }, { key: "label", fn: function() {
121
+ return [e._t("label")];
122
+ }, proxy: !0 }, { key: "below", fn: function() {
123
+ return [e._t("below")];
124
+ }, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
125
+ }, v = [], x = /* @__PURE__ */ d(
126
+ y,
188
127
  _,
189
128
  v,
190
129
  !1,
191
- P,
130
+ null,
192
131
  null,
193
132
  null,
194
133
  null
195
134
  );
196
- function P(e) {
197
- for (let t in a)
198
- this[t] = a[t];
199
- }
200
- const I = /* @__PURE__ */ function() {
201
- return k.exports;
202
- }();
135
+ const C = x.exports;
203
136
  export {
204
- I as default
137
+ C as default
205
138
  };
@@ -1,72 +1,21 @@
1
- var p = Object.defineProperty, h = Object.defineProperties;
2
- var d = Object.getOwnPropertyDescriptors;
3
- var a = Object.getOwnPropertySymbols;
4
- var f = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
5
- var s = (e, t, r) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, i = (e, t) => {
6
- for (var r in t || (t = {}))
7
- f.call(t, r) && s(e, r, t[r]);
8
- if (a)
9
- for (var r of a(t))
10
- c.call(t, r) && s(e, r, t[r]);
11
- return e;
12
- }, o = (e, t) => h(e, d(t));
13
- import { f as y } from "../chunks/form-input-mixin.4632ad36.mjs";
14
- import { f as g } from "../chunks/form-pick-mixin.61ad06b2.mjs";
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() {
19
- var e = this, t = e.$createElement, r = e._self._c || t;
20
- return r("FormItem", e._b({
21
- attrs: {
22
- rules: e.computeRules,
23
- disabled: e.inputDisabled
24
- },
25
- scopedSlots: e._u([{
26
- key: "default",
27
- fn: function() {
28
- return [r("ElDatePicker", e._g(e._b({
29
- staticStyle: {
30
- width: "100%"
31
- },
32
- attrs: {
33
- "picker-options": e.pickerOption,
34
- value: e.innerVal,
35
- size: "mini",
36
- placeholder: e.computePlaceholder,
37
- type: e.type,
38
- disabled: e.inputDisabled
39
- },
40
- on: {
41
- input: e.emitInput
42
- }
43
- }, "ElDatePicker", e.inputProps, !1), e.listeners)), e.$slots.warn ? r("div", {
44
- staticClass: "el-form-item__warn"
45
- }, [e._t("warn")], 2) : e._e()];
46
- },
47
- proxy: !0
48
- }, {
49
- key: "error",
50
- fn: function(u) {
51
- var n = u.error;
52
- return [e.$scopedSlots.error && e.$scopedSlots.error(n) ? r("div", {
53
- staticClass: "el-form-item__error"
54
- }, [e._t("error", function() {
55
- return [e._v(" " + e._s(n) + " ")];
56
- }, {
57
- error: n
58
- })], 2) : e._e()];
59
- }
60
- }, {
61
- key: "label",
62
- fn: function() {
63
- return [e._t("label")];
64
- },
65
- proxy: !0
66
- }], null, !0)
67
- }, "FormItem", e.formItemProps, !1));
68
- }, P = [];
69
- const S = [
1
+ var m = Object.defineProperty, u = Object.defineProperties;
2
+ var p = Object.getOwnPropertyDescriptors;
3
+ var n = Object.getOwnPropertySymbols;
4
+ var d = Object.prototype.hasOwnProperty, h = Object.prototype.propertyIsEnumerable;
5
+ var s = (t, e, r) => e in t ? m(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, i = (t, e) => {
6
+ for (var r in e || (e = {}))
7
+ d.call(e, r) && s(t, r, e[r]);
8
+ if (n)
9
+ for (var r of n(e))
10
+ h.call(e, r) && s(t, r, e[r]);
11
+ return t;
12
+ }, l = (t, e) => u(t, p(e));
13
+ import { f } from "../chunks/form-input-mixin.4632ad36.mjs";
14
+ import { f as c } from "../chunks/form-pick-mixin.61ad06b2.mjs";
15
+ import { toDate as o } from "@web-utils/integrations/dayjs";
16
+ import { d as y, n as g } from "../chunks/index.57f871af.mjs";
17
+ import { n as _ } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
18
+ const k = [
70
19
  "type",
71
20
  "timeArrowControl",
72
21
  "size",
@@ -92,9 +41,9 @@ const S = [
92
41
  "pickerOptions",
93
42
  "unlinkPanels",
94
43
  "validateEvent"
95
- ].filter((e) => !["value", "placeholder", "disabled", "type", "pickerOptions"].includes(e)), D = {
44
+ ].filter((t) => !["value", "placeholder", "disabled", "type", "pickerOptions"].includes(t)), P = {
96
45
  name: "FormDatePicker",
97
- mixins: [y, g],
46
+ mixins: [f, c],
98
47
  props: {
99
48
  format: {
100
49
  type: String
@@ -145,28 +94,28 @@ const S = [
145
94
  },
146
95
  mini() {
147
96
  if (this.miniDate) {
148
- const e = l(this.miniDate);
149
- return e.setDate(e.getDate() - 1), e;
97
+ const t = o(this.miniDate);
98
+ return t.setDate(t.getDate() - 1), t;
150
99
  } else
151
100
  return null;
152
101
  },
153
102
  max() {
154
- return this.maxDate ? l(this.maxDate) : null;
103
+ return this.maxDate ? o(this.maxDate) : null;
155
104
  },
156
105
  pickerOption() {
157
106
  return i({
158
- disabledDate: (e) => {
107
+ disabledDate: (t) => {
159
108
  if (!this.mini && !this.max)
160
109
  return !1;
161
- const t = e.getTime();
162
- return this.mini && !this.max ? t <= this.mini.getTime() : !this.mini && this.max ? t >= this.max.getTime() : this.mini && this.max ? t <= this.mini.getTime() && t >= this.max.getTime() : !1;
110
+ const e = t.getTime();
111
+ return this.mini && !this.max ? e <= this.mini.getTime() : !this.mini && this.max ? e >= this.max.getTime() : this.mini && this.max ? e <= this.mini.getTime() && e >= this.max.getTime() : !1;
163
112
  }
164
113
  }, this.pickerOptions);
165
114
  },
166
115
  innerVal() {
167
116
  if (this.range && this.split) {
168
- const e = [];
169
- return e.push(this.start || ""), e.push(this.end || ""), e;
117
+ const t = [];
118
+ return t.push(this.start || ""), t.push(this.end || ""), t;
170
119
  } else
171
120
  return this.value;
172
121
  },
@@ -174,15 +123,15 @@ const S = [
174
123
  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
124
  },
176
125
  inputProps() {
177
- return _(
178
- o(i(i({}, k(this.$attrs)), this.$props), {
126
+ return y(
127
+ l(i(i({}, g(this.$attrs)), this.$props), {
179
128
  valueFormat: this.week ? "yyyy-MM-dd" : this.valueFormat || this.fat,
180
129
  format: this.format || this.fat,
181
130
  rangeSeparator: this.rangeSeparator || "至",
182
131
  startPlaceholder: this.startPlaceholder || "开始日期",
183
132
  endPlaceholder: this.endPlaceholder || "结束日期"
184
133
  }),
185
- S
134
+ k
186
135
  );
187
136
  },
188
137
  range() {
@@ -193,28 +142,33 @@ const S = [
193
142
  }
194
143
  },
195
144
  methods: {
196
- emitInput(e) {
197
- this.range && this.split ? e ? (this.$emit("update:start", e[0]), this.$emit("update:end", e[1])) : (this.$emit("update:start", null), this.$emit("update:end", null)) : this.$emit("input", e);
145
+ emitInput(t) {
146
+ this.range && this.split ? t ? (this.$emit("update:start", t[0]), this.$emit("update:end", t[1])) : (this.$emit("update:start", null), this.$emit("update:end", null)) : this.$emit("input", t);
198
147
  }
199
148
  }
200
- }, m = {};
201
- var b = /* @__PURE__ */ v(
202
- D,
203
- x,
149
+ };
150
+ var x = function() {
151
+ var e = this, r = e._self._c;
152
+ return r("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
153
+ return [r("ElDatePicker", e._g(e._b({ staticStyle: { width: "100%" }, attrs: { "picker-options": e.pickerOption, value: e.innerVal, size: "mini", placeholder: e.computePlaceholder, type: e.type, disabled: e.inputDisabled }, on: { input: e.emitInput } }, "ElDatePicker", e.inputProps, !1), e.listeners)), e.$slots.warn ? r("div", { staticClass: "el-form-item__warn" }, [e._t("warn")], 2) : e._e()];
154
+ }, proxy: !0 }, { key: "error", fn: function({ error: a }) {
155
+ return [e.$scopedSlots.error && e.$scopedSlots.error(a) ? r("div", { staticClass: "el-form-item__error" }, [e._t("error", function() {
156
+ return [e._v(" " + e._s(a) + " ")];
157
+ }, { error: a })], 2) : e._e()];
158
+ } }, { key: "label", fn: function() {
159
+ return [e._t("label")];
160
+ }, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
161
+ }, S = [], v = /* @__PURE__ */ _(
204
162
  P,
163
+ x,
164
+ S,
205
165
  !1,
206
- T,
166
+ null,
207
167
  null,
208
168
  null,
209
169
  null
210
170
  );
211
- function T(e) {
212
- for (let t in m)
213
- this[t] = m[t];
214
- }
215
- const I = /* @__PURE__ */ function() {
216
- return b.exports;
217
- }();
171
+ const M = v.exports;
218
172
  export {
219
- I as default
173
+ M as default
220
174
  };