@vunk/form 2.19.1 → 2.19.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 (167) hide show
  1. package/components/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  2. package/components/api-tables-select/index.cjs +1 -1
  3. package/components/api-tables-select/index.mjs +1 -1
  4. package/components/api-tables-select/src/ctx.d.ts +5 -2
  5. package/components/api-tables-select/src/index.vue.d.ts +11 -5
  6. package/components/button/index.cjs +1 -1
  7. package/components/button/index.mjs +1 -1
  8. package/components/button/src/ctx.d.ts +5 -2
  9. package/components/button/src/index.vue.d.ts +22 -10
  10. package/components/card-input-collection/index.cjs +1 -1
  11. package/components/card-input-collection/index.mjs +2 -2
  12. package/components/card-input-collection/src/core.vue.d.ts +11 -5
  13. package/components/card-input-collection/src/ctx.d.ts +5 -2
  14. package/components/card-input-collection/src/index.vue.d.ts +11 -5
  15. package/components/cascader/src/ctx.d.ts +6 -3
  16. package/components/cascader/src/index.vue.d.ts +11 -5
  17. package/components/checkbox/index.cjs +1 -1
  18. package/components/checkbox/index.mjs +1 -1
  19. package/components/checkbox/src/ctx.d.ts +6 -3
  20. package/components/checkbox/src/index.vue.d.ts +22 -10
  21. package/components/cloneDeep-DE0l40hv.mjs +486 -0
  22. package/components/cloneDeep-DaYwfXwD.js +1 -0
  23. package/components/color-picker/src/ctx.d.ts +5 -2
  24. package/components/color-picker/src/index.vue.d.ts +11 -5
  25. package/components/date-picker/src/ctx.d.ts +6 -3
  26. package/components/date-picker/src/index.vue.d.ts +11 -5
  27. package/components/date-picker-range/index.cjs +1 -1
  28. package/components/date-picker-range/index.mjs +1 -1
  29. package/components/date-picker-range/src/ctx.d.ts +5 -2
  30. package/components/date-picker-range/src/index.vue.d.ts +22 -10
  31. package/components/debounce-CliSPkvP.js +1 -0
  32. package/components/debounce-DIph5ENi.mjs +85 -0
  33. package/components/dialog-input-collection/index.cjs +1 -1
  34. package/components/dialog-input-collection/index.mjs +2 -2
  35. package/components/dialog-input-collection/src/ctx.d.ts +5 -2
  36. package/components/dialog-input-collection/src/index.vue.d.ts +11 -5
  37. package/components/download-plus/index.cjs +1 -1
  38. package/components/download-plus/index.mjs +3 -3
  39. package/components/download-plus/src/ctx.d.ts +5 -2
  40. package/components/download-plus/src/index.vue.d.ts +22 -10
  41. package/components/editable-text/index.cjs +1 -1
  42. package/components/editable-text/index.mjs +1 -1
  43. package/components/editable-text/src/ctx.d.ts +5 -2
  44. package/components/editable-text/src/index.vue.d.ts +11 -5
  45. package/components/el-slider/index.cjs +1 -1
  46. package/components/el-slider/index.mjs +1 -1
  47. package/components/el-slider/src/composables/index.cjs +1 -1
  48. package/components/el-slider/src/composables/index.mjs +1 -1
  49. package/components/esri-input-geojson/index.cjs +1 -1
  50. package/components/esri-input-geojson/index.mjs +2 -2
  51. package/components/esri-input-geojson/src/ctx.d.ts +6 -3
  52. package/components/esri-input-geojson/src/index.vue.d.ts +35 -17
  53. package/components/fieldset/index.cjs +1 -1
  54. package/components/fieldset/index.mjs +40 -35
  55. package/components/fieldset/src/ctx.d.ts +1 -1
  56. package/components/fieldset/src/index.vue.d.ts +3 -3
  57. package/components/form/index.cjs +1 -1
  58. package/components/form/index.mjs +83 -72
  59. package/components/form/src/ctx.d.ts +5 -2
  60. package/components/form/src/index.vue.d.ts +13 -7
  61. package/components/form-item/index.cjs +1 -1
  62. package/components/form-item/index.mjs +78 -69
  63. package/components/form-item/src/ctx.d.ts +6 -3
  64. package/components/form-item/src/index.vue.d.ts +11 -5
  65. package/components/index-BCZuzyeO.mjs +317 -0
  66. package/components/index-DJv1MwwH.mjs +14 -0
  67. package/components/information-collection/src/ctx.d.ts +5 -2
  68. package/components/information-collection/src/index.vue.d.ts +11 -5
  69. package/components/input/index.cjs +1 -1
  70. package/components/input/index.mjs +1 -1
  71. package/components/input/src/ctx.d.ts +6 -3
  72. package/components/input/src/index.vue.d.ts +22 -10
  73. package/components/input-array/index.cjs +1 -1
  74. package/components/input-array/index.mjs +2 -2
  75. package/components/input-array/src/ctx.d.ts +5 -2
  76. package/components/input-array/src/index.vue.d.ts +11 -5
  77. package/components/input-collection/index.cjs +1 -1
  78. package/components/input-collection/index.mjs +2 -2
  79. package/components/input-collection/src/core.vue.d.ts +11 -5
  80. package/components/input-collection/src/ctx.d.ts +5 -2
  81. package/components/input-collection/src/index.vue.d.ts +11 -5
  82. package/components/input-file/src/index.vue.d.ts +11 -5
  83. package/components/input-link/index.cjs +1 -1
  84. package/components/input-link/index.mjs +2 -2
  85. package/components/input-link/src/ctx.d.ts +5 -2
  86. package/components/input-link/src/index.vue.d.ts +33 -15
  87. package/components/input-number/index.cjs +1 -1
  88. package/components/input-number/index.mjs +1 -1
  89. package/components/input-number/src/ctx.d.ts +6 -3
  90. package/components/input-number/src/index.vue.d.ts +22 -10
  91. package/components/input-tag/index.cjs +1 -1
  92. package/components/input-tag/index.mjs +1 -1
  93. package/components/input-tag/src/ctx.d.ts +6 -3
  94. package/components/input-tag/src/index.vue.d.ts +22 -10
  95. package/components/isObject-DQpnfMRp.mjs +34 -0
  96. package/components/monaco-editor/index.cjs +1 -1
  97. package/components/monaco-editor/index.mjs +1 -1
  98. package/components/monaco-editor/src/ctx.d.ts +5 -2
  99. package/components/monaco-editor/src/index.vue.d.ts +22 -10
  100. package/components/radio/index.cjs +1 -1
  101. package/components/radio/index.mjs +1 -1
  102. package/components/radio/src/ctx.d.ts +5 -2
  103. package/components/radio/src/index.vue.d.ts +22 -10
  104. package/components/radio/src/wraper.vue.d.ts +11 -5
  105. package/components/select/index.cjs +1 -1
  106. package/components/select/index.mjs +1 -1
  107. package/components/select/src/core.vue.d.ts +22 -10
  108. package/components/select/src/ctx.d.ts +6 -3
  109. package/components/select/src/index.vue.d.ts +11 -5
  110. package/components/slider/src/ctx.d.ts +5 -2
  111. package/components/slider/src/index.vue.d.ts +11 -5
  112. package/components/style.css +1 -1
  113. package/components/switch/src/ctx.d.ts +5 -2
  114. package/components/switch/src/index.vue.d.ts +11 -5
  115. package/components/tables-select/src/ctx.d.ts +6 -3
  116. package/components/tables-select/src/index.vue.d.ts +12 -6
  117. package/components/templates-default/index.cjs +1 -1
  118. package/components/templates-default/index.mjs +1 -1
  119. package/components/templates-default/src/index.vue.d.ts +219 -102
  120. package/components/templates-element-plus/index.cjs +1 -1
  121. package/components/templates-element-plus/index.mjs +1 -1
  122. package/components/templates-esri/index.cjs +1 -1
  123. package/components/templates-esri/index.mjs +1 -1
  124. package/components/templates-esri/src/index.vue.d.ts +35 -17
  125. package/components/templates-layout/index.cjs +1 -1
  126. package/components/templates-layout/index.mjs +1 -1
  127. package/components/templates-layout/src/index.vue.d.ts +3 -3
  128. package/components/templates-variant/index.cjs +1 -1
  129. package/components/templates-variant/index.mjs +1 -1
  130. package/components/templates-variant/src/index.vue.d.ts +22 -10
  131. package/components/time-picker/src/ctx.d.ts +6 -3
  132. package/components/time-picker/src/index.vue.d.ts +11 -5
  133. package/components/upload/index.cjs +1 -1
  134. package/components/upload/index.mjs +2 -2
  135. package/components/upload/src/ctx.d.ts +6 -3
  136. package/components/upload/src/index.vue.d.ts +22 -10
  137. package/components/upload/src/wraper.vue.d.ts +11 -5
  138. package/components/upload-plus/index.cjs +1 -1
  139. package/components/upload-plus/index.mjs +2 -2
  140. package/components/upload-plus/src/ctx.d.ts +5 -2
  141. package/components/upload-plus/src/index.vue.d.ts +11 -5
  142. package/components/use-watch-Bfrz9pv_.js +1 -0
  143. package/components/use-watch-t49wP7jy.mjs +414 -0
  144. package/components/van-cascader/src/ctx.d.ts +5 -2
  145. package/components/van-cascader/src/index.vue.d.ts +11 -5
  146. package/components/var-datetime-picker/index.cjs +1 -1
  147. package/components/var-datetime-picker/index.mjs +1 -1
  148. package/components/var-datetime-picker/src/ctx.d.ts +5 -2
  149. package/components/var-datetime-picker/src/index.vue.d.ts +22 -10
  150. package/components/vditor/index.cjs +1 -1
  151. package/components/vditor/index.mjs +1 -1
  152. package/components/vditor/src/ctx.d.ts +5 -2
  153. package/components/vditor/src/index.vue.d.ts +22 -10
  154. package/composables/index.cjs +1 -1
  155. package/composables/index.d.ts +1 -0
  156. package/composables/index.mjs +69 -60
  157. package/composables/useComputedLabelPosition.d.ts +15 -0
  158. package/index.css +1 -1
  159. package/package.json +1 -1
  160. package/shared/element-plus/ctx.d.ts +2 -2
  161. package/components/cloneDeep.cjs +0 -1
  162. package/components/debounce.cjs +0 -1
  163. package/components/use-watch.cjs +0 -1
  164. /package/components/{_plugin-vue_export-helper.cjs → _plugin-vue_export-helper-BHFhmbuH.js} +0 -0
  165. /package/components/{index2.cjs → index-BNPcMpOO.js} +0 -0
  166. /package/components/{index.cjs → index-DSyxYMB0.js} +0 -0
  167. /package/components/{isObject.cjs → isObject-fAvOGw_H.js} +0 -0
@@ -0,0 +1,414 @@
1
+ import { watch as j, getCurrentScope as re, onScopeDispose as ce, computed as b, toValue as q, unref as fe, ref as R, onMounted as de, nextTick as J, watchEffect as ve, shallowRef as me, inject as ge } from "vue";
2
+ import { useFormItem as he, useFormDisabled as Ve, CHANGE_EVENT as be, UPDATE_MODEL_EVENT as I, INPUT_EVENT as ue, EVENT_CODE as N } from "element-plus";
3
+ import { t as Z, d as ne } from "./debounce-DIph5ENi.mjs";
4
+ import { noop as le } from "@vunk/shared/function";
5
+ function ye(e, t, l) {
6
+ return e === e && (l !== void 0 && (e = e <= l ? e : l), t !== void 0 && (e = e >= t ? e : t)), e;
7
+ }
8
+ function we(e, t, l) {
9
+ return l === void 0 && (l = t, t = void 0), l !== void 0 && (l = Z(l), l = l === l ? l : 0), t !== void 0 && (t = Z(t), t = t === t ? t : 0), ye(Z(e), t, l);
10
+ }
11
+ function ke(e) {
12
+ return re() ? (ce(e), !0) : !1;
13
+ }
14
+ const Se = typeof window < "u" && typeof document < "u";
15
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
16
+ const xe = Object.prototype.toString, Ee = (e) => xe.call(e) === "[object Object]";
17
+ function F(e) {
18
+ return Array.isArray(e) ? e : [e];
19
+ }
20
+ function Me(e, t, l) {
21
+ return j(
22
+ e,
23
+ t,
24
+ {
25
+ ...l,
26
+ immediate: !0
27
+ }
28
+ );
29
+ }
30
+ const Ne = Se ? window : void 0;
31
+ function Pe(e) {
32
+ var t;
33
+ const l = q(e);
34
+ return (t = l == null ? void 0 : l.$el) != null ? t : l;
35
+ }
36
+ function ae(...e) {
37
+ const t = [], l = () => {
38
+ t.forEach((r) => r()), t.length = 0;
39
+ }, f = (r, d, n, c) => (r.addEventListener(d, n, c), () => r.removeEventListener(d, n, c)), i = b(() => {
40
+ const r = F(q(e[0])).filter((d) => d != null);
41
+ return r.every((d) => typeof d != "string") ? r : void 0;
42
+ }), u = Me(
43
+ () => {
44
+ var r, d;
45
+ return [
46
+ (d = (r = i.value) == null ? void 0 : r.map((n) => Pe(n))) != null ? d : [Ne].filter((n) => n != null),
47
+ F(q(i.value ? e[1] : e[0])),
48
+ F(fe(i.value ? e[2] : e[1])),
49
+ // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
50
+ q(i.value ? e[3] : e[2])
51
+ ];
52
+ },
53
+ ([r, d, n, c]) => {
54
+ if (l(), !(r != null && r.length) || !(d != null && d.length) || !(n != null && n.length))
55
+ return;
56
+ const h = Ee(c) ? { ...c } : c;
57
+ t.push(
58
+ ...r.flatMap(
59
+ (y) => d.flatMap(
60
+ (P) => n.map((A) => f(y, P, A, h))
61
+ )
62
+ )
63
+ );
64
+ },
65
+ { flush: "post" }
66
+ ), a = () => {
67
+ u(), l();
68
+ };
69
+ return ke(l), a;
70
+ }
71
+ const Ce = Symbol("sliderContextKey"), Ye = (e, t, l) => {
72
+ const f = R();
73
+ return de(async () => {
74
+ e.range ? (Array.isArray(e.modelValue) ? (t.firstValue = Math.max(e.min, e.modelValue[0]), t.secondValue = Math.min(e.max, e.modelValue[1])) : (t.firstValue = e.min, t.secondValue = e.max), t.oldValue = [t.firstValue, t.secondValue]) : (typeof e.modelValue != "number" || Number.isNaN(e.modelValue) ? t.firstValue = e.min : t.firstValue = Math.min(
75
+ e.max,
76
+ Math.max(e.min, e.modelValue)
77
+ ), t.oldValue = t.firstValue), ae(window, "resize", l), await J(), l();
78
+ }), {
79
+ sliderWrapper: f
80
+ };
81
+ }, Ke = (e) => {
82
+ const t = b(() => e.marks ? Object.keys(e.marks).map(Number.parseFloat).sort((f, i) => f - i).filter((f) => f <= e.max && f >= e.min).map(
83
+ (f) => ({
84
+ point: f,
85
+ position: (f - e.min) * 100 / (e.max - e.min),
86
+ mark: e.marks[f]
87
+ })
88
+ ) : []);
89
+ return ve(() => {
90
+ if (e.step === "mark" && !e.marks && console.warn("[ElSlider] marks prop must be provided when step is mark"), e.marks) {
91
+ const l = Object.keys(e.marks), f = t.value.map((u) => u.point), i = l.filter((u) => {
92
+ const a = Number.parseFloat(u);
93
+ return Number.isNaN(a) || !f.includes(a);
94
+ });
95
+ i.length > 0 && console.warn(
96
+ `[ElSlider] Some marks keys are invalid (not a number or out of [min, max]): [${i.map((u) => `'${u}'`).join(", ")}] and will be ignored.`
97
+ );
98
+ }
99
+ }), t;
100
+ }, Oe = (e, t, l, f) => {
101
+ const { formItem: i } = he(), u = me(), a = R(), r = R(), d = {
102
+ firstButton: a,
103
+ secondButton: r
104
+ }, n = Ve(), c = b(() => Math.min(t.firstValue, t.secondValue)), h = b(() => Math.max(t.firstValue, t.secondValue)), y = b(() => e.range ? `${100 * (h.value - c.value) / (e.max - e.min)}%` : `${100 * (t.firstValue - e.min) / (e.max - e.min)}%`), P = b(() => e.range ? `${100 * (c.value - e.min) / (e.max - e.min)}%` : "0%"), A = b(() => e.vertical ? { height: e.height } : {}), k = b(() => e.vertical ? {
105
+ height: y.value,
106
+ bottom: P.value
107
+ } : f.value ? {
108
+ width: y.value,
109
+ left: "auto",
110
+ right: P.value
111
+ } : {
112
+ width: y.value,
113
+ left: P.value
114
+ }), X = () => {
115
+ if (u.value) {
116
+ const s = u.value.getBoundingClientRect();
117
+ t.sliderSize = s[e.vertical ? "height" : "width"];
118
+ }
119
+ }, z = (s) => {
120
+ const v = e.min + s * (e.max - e.min) / 100;
121
+ if (!e.range)
122
+ return a;
123
+ let V;
124
+ return Math.abs(c.value - v) < Math.abs(h.value - v) ? V = t.firstValue < t.secondValue ? "firstButton" : "secondButton" : V = t.firstValue > t.secondValue ? "firstButton" : "secondButton", d[V];
125
+ }, Y = (s) => {
126
+ const v = z(s);
127
+ return v.value.setPosition(s), v;
128
+ }, Q = (s) => {
129
+ t.firstValue = s ?? e.min;
130
+ const v = e.range ? [c.value, h.value] : s ?? e.min;
131
+ O(v);
132
+ }, K = (s) => {
133
+ t.secondValue = s, e.range && O([c.value, h.value]);
134
+ }, O = (s) => {
135
+ l(I, s), l(ue, s);
136
+ }, C = async () => {
137
+ await J(), l(
138
+ be,
139
+ e.range ? [c.value, h.value] : e.modelValue
140
+ );
141
+ }, M = (s) => {
142
+ var V, U, G, _;
143
+ if (n.value || t.dragging) return;
144
+ X();
145
+ let v = 0;
146
+ if (e.vertical) {
147
+ const B = ((U = (V = s.touches) == null ? void 0 : V.item(0)) == null ? void 0 : U.clientY) ?? s.clientY;
148
+ v = (u.value.getBoundingClientRect().bottom - B) / t.sliderSize * 100;
149
+ } else {
150
+ const B = ((_ = (G = s.touches) == null ? void 0 : G.item(0)) == null ? void 0 : _.clientX) ?? s.clientX, $ = u.value.getBoundingClientRect();
151
+ f.value ? v = ($.right - B) / t.sliderSize * 100 : v = (B - $.left) / t.sliderSize * 100;
152
+ }
153
+ if (!(v < 0 || v > 100))
154
+ return Y(v);
155
+ };
156
+ return {
157
+ elFormItem: i,
158
+ slider: u,
159
+ firstButton: a,
160
+ secondButton: r,
161
+ sliderDisabled: n,
162
+ minValue: c,
163
+ maxValue: h,
164
+ runwayStyle: A,
165
+ barStyle: k,
166
+ resetSize: X,
167
+ setPosition: Y,
168
+ emitChange: C,
169
+ onSliderWrapperPrevent: (s) => {
170
+ var v, V;
171
+ ((v = d.firstButton.value) != null && v.dragging || (V = d.secondButton.value) != null && V.dragging) && s.preventDefault();
172
+ },
173
+ onSliderClick: (s) => {
174
+ M(s) && C();
175
+ },
176
+ onSliderDown: async (s) => {
177
+ const v = M(s);
178
+ v && (await J(), v.value.onButtonDown(s));
179
+ },
180
+ onSliderMarkerDown: (s) => {
181
+ if (n.value || t.dragging) return;
182
+ Y(s) && C();
183
+ },
184
+ setFirstValue: Q,
185
+ setSecondValue: K
186
+ };
187
+ }, Le = (e) => e.code || e.key, Be = (e, t, l) => {
188
+ const f = R(), i = R(!1), u = b(() => t.value instanceof Function), a = b(() => u.value && t.value(e.modelValue) || e.modelValue), r = ne(() => {
189
+ l.value && (i.value = !0);
190
+ }, 50), d = ne(() => {
191
+ l.value && (i.value = !1);
192
+ }, 50);
193
+ return {
194
+ tooltip: f,
195
+ tooltipVisible: i,
196
+ formatValue: a,
197
+ displayTooltip: r,
198
+ hideTooltip: d
199
+ };
200
+ }, We = (e, t, l) => {
201
+ const {
202
+ disabled: f,
203
+ min: i,
204
+ max: u,
205
+ step: a,
206
+ showTooltip: r,
207
+ persistent: d,
208
+ precision: n,
209
+ sliderSize: c,
210
+ formatTooltip: h,
211
+ emitChange: y,
212
+ resetSize: P,
213
+ updateDragging: A,
214
+ markList: k,
215
+ isRtl: X
216
+ } = ge(Ce), { tooltip: z, tooltipVisible: Y, formatValue: Q, displayTooltip: K, hideTooltip: O } = Be(e, h, r), C = R(), M = b(() => `${(e.modelValue - i.value) / (u.value - i.value) * 100}%`), D = b(() => e.vertical ? { bottom: M.value } : X.value ? { right: M.value } : { left: M.value }), W = b(() => a.value === "mark" && k.value.length > 0), p = () => {
217
+ t.hovering = !0, K();
218
+ }, ee = () => {
219
+ t.hovering = !1, t.dragging || O();
220
+ }, s = (o) => {
221
+ f.value || (o.preventDefault(), ie(o), window.addEventListener("mousemove", H), window.addEventListener("touchmove", H), window.addEventListener("mouseup", T), window.addEventListener("touchend", T), window.addEventListener("contextmenu", T), C.value.focus());
222
+ }, v = (o) => {
223
+ f.value || (t.newPosition = Number.parseFloat(M.value) + o / (u.value - i.value) * 100, L(t.newPosition), y());
224
+ }, V = (o) => {
225
+ if (f.value || !k.value.length) return;
226
+ const m = e.modelValue, g = Number.EPSILON, S = Math.abs(o);
227
+ let w;
228
+ if (o > 0) {
229
+ const E = k.value.findIndex(
230
+ (x) => x.point > m + g
231
+ );
232
+ if (E !== -1) {
233
+ const x = Math.min(
234
+ E + S - 1,
235
+ k.value.length - 1
236
+ );
237
+ w = k.value[x].point;
238
+ }
239
+ } else {
240
+ let E = -1;
241
+ for (let x = k.value.length - 1; x >= 0; x--)
242
+ if (k.value[x].point < m - g) {
243
+ E = x;
244
+ break;
245
+ }
246
+ if (E !== -1) {
247
+ const x = Math.max(E - (S - 1), 0);
248
+ w = k.value[x].point;
249
+ }
250
+ }
251
+ if (w !== void 0 && w !== m) {
252
+ const E = (w - i.value) / (u.value - i.value) * 100;
253
+ L(E), y();
254
+ }
255
+ }, U = () => {
256
+ W.value ? V(-1) : typeof a.value == "number" && v(-a.value);
257
+ }, G = () => {
258
+ W.value ? V(1) : typeof a.value == "number" && v(a.value);
259
+ }, _ = () => {
260
+ W.value ? V(-4) : typeof a.value == "number" && v(-a.value * 4);
261
+ }, B = () => {
262
+ W.value ? V(4) : typeof a.value == "number" && v(a.value * 4);
263
+ }, $ = () => {
264
+ f.value || (L(0), y());
265
+ }, oe = () => {
266
+ f.value || (L(100), y());
267
+ }, se = (o) => {
268
+ const m = Le(o);
269
+ let g = !0;
270
+ switch (m) {
271
+ case N.left:
272
+ case N.down:
273
+ U();
274
+ break;
275
+ case N.right:
276
+ case N.up:
277
+ G();
278
+ break;
279
+ case N.home:
280
+ $();
281
+ break;
282
+ case N.end:
283
+ oe();
284
+ break;
285
+ case N.pageDown:
286
+ _();
287
+ break;
288
+ case N.pageUp:
289
+ B();
290
+ break;
291
+ default:
292
+ g = !1;
293
+ break;
294
+ }
295
+ g && o.preventDefault();
296
+ }, te = (o) => {
297
+ let m, g;
298
+ return o.type.startsWith("touch") ? (g = o.touches[0].clientY, m = o.touches[0].clientX) : (g = o.clientY, m = o.clientX), {
299
+ clientX: m,
300
+ clientY: g
301
+ };
302
+ }, ie = (o) => {
303
+ t.dragging = !0, t.isClick = !0;
304
+ const { clientX: m, clientY: g } = te(o);
305
+ e.vertical ? t.startY = g : t.startX = m, t.startPosition = Number.parseFloat(M.value), t.newPosition = t.startPosition;
306
+ }, H = (o) => {
307
+ if (t.dragging) {
308
+ t.isClick = !1, K(), P();
309
+ let m;
310
+ const { clientX: g, clientY: S } = te(o);
311
+ if (e.vertical)
312
+ t.currentY = S, m = (t.startY - t.currentY) / c.value * 100;
313
+ else {
314
+ t.currentX = g;
315
+ const w = (t.currentX - t.startX) / c.value * 100;
316
+ m = X.value ? -w : w;
317
+ }
318
+ t.newPosition = t.startPosition + m, L(t.newPosition);
319
+ }
320
+ }, T = () => {
321
+ t.dragging && (setTimeout(() => {
322
+ t.dragging = !1, t.hovering || O(), t.isClick || L(t.newPosition), y();
323
+ }, 0), window.removeEventListener("mousemove", H), window.removeEventListener("touchmove", H), window.removeEventListener("mouseup", T), window.removeEventListener("touchend", T), window.removeEventListener("contextmenu", T));
324
+ }, L = async (o) => {
325
+ if (o === null || Number.isNaN(+o)) return;
326
+ o = we(o, 0, 100);
327
+ let m;
328
+ if (a.value === "mark")
329
+ k.value.length === 0 ? m = o <= 50 ? i.value : u.value : m = k.value.reduce((S, w) => Math.abs(w.position - o) < Math.abs(S.position - o) ? w : S).point;
330
+ else {
331
+ const g = Math.floor((u.value - i.value) / a.value), S = g * a.value / (u.value - i.value) * 100, w = S + (100 - S) / 2;
332
+ if (o < S) {
333
+ const E = S / g, x = Math.round(o / E);
334
+ m = i.value + x * a.value;
335
+ } else o < w ? m = i.value + g * a.value : m = u.value;
336
+ m = Number.parseFloat(m.toFixed(n.value));
337
+ }
338
+ m !== e.modelValue && l(I, m), !t.dragging && e.modelValue !== t.oldValue && (t.oldValue = e.modelValue), await J(), t.dragging && K(), z.value.updatePopper();
339
+ };
340
+ return j(
341
+ () => t.dragging,
342
+ (o) => {
343
+ A(o);
344
+ }
345
+ ), ae(C, "touchstart", s, { passive: !1 }), {
346
+ disabled: f,
347
+ button: C,
348
+ tooltip: z,
349
+ tooltipVisible: Y,
350
+ showTooltip: r,
351
+ persistent: d,
352
+ wrapperStyle: D,
353
+ formatValue: Q,
354
+ handleMouseEnter: p,
355
+ handleMouseLeave: ee,
356
+ onButtonDown: s,
357
+ onKeyDown: se,
358
+ setPosition: L
359
+ };
360
+ }, $e = (e, t, l, f, i) => ({
361
+ stops: b(() => {
362
+ if (!e.showStops || e.min > e.max) return [];
363
+ if (e.step === "mark" || e.step === 0)
364
+ return e.step === 0 && console.warn("[ElSlider] step should not be 0."), [];
365
+ const r = Math.ceil((e.max - e.min) / e.step), d = 100 * e.step / (e.max - e.min), n = Array.from({ length: r - 1 }).map(
366
+ (c, h) => (h + 1) * d
367
+ );
368
+ return e.range ? n.filter((c) => c < 100 * (l.value - e.min) / (e.max - e.min) || c > 100 * (f.value - e.min) / (e.max - e.min)) : n.filter(
369
+ (c) => c > 100 * (t.firstValue - e.min) / (e.max - e.min)
370
+ );
371
+ }),
372
+ getStopStyle: (r) => e.vertical ? { bottom: `${r}%` } : i.value ? { right: `${r}%` } : { left: `${r}%` }
373
+ }), je = (e, t, l, f, i, u) => {
374
+ const a = (n) => {
375
+ i(I, n), i(ue, n);
376
+ }, r = () => e.range ? ![l.value, f.value].every(
377
+ (n, c) => n === t.oldValue[c]
378
+ ) : e.modelValue !== t.oldValue, d = () => {
379
+ var c, h;
380
+ if (e.min > e.max)
381
+ throw new Error("[Element Plus Slider] props.min should not be greater than props.max.");
382
+ const n = e.modelValue;
383
+ e.range && Array.isArray(n) ? n[1] < e.min ? a([e.min, e.min]) : n[0] > e.max ? a([e.max, e.max]) : n[0] < e.min ? a([e.min, n[1]]) : n[1] > e.max ? a([n[0], e.max]) : (t.firstValue = n[0], t.secondValue = n[1], r() && (e.validateEvent && ((c = u == null ? void 0 : u.validate) == null || c.call(u, "change").catch(le)), t.oldValue = n.slice())) : !e.range && typeof n == "number" && !Number.isNaN(n) && (n < e.min ? a(e.min) : n > e.max ? a(e.max) : (t.firstValue = n, r() && (e.validateEvent && ((h = u == null ? void 0 : u.validate) == null || h.call(u, "change").catch(le)), t.oldValue = n)));
384
+ };
385
+ d(), j(
386
+ () => t.dragging,
387
+ (n) => {
388
+ n || d();
389
+ }
390
+ ), j(
391
+ () => e.modelValue,
392
+ (n, c) => {
393
+ t.dragging || Array.isArray(n) && Array.isArray(c) && n.every((h, y) => h === c[y]) && t.firstValue === n[0] && t.secondValue === n[1] || d();
394
+ },
395
+ {
396
+ deep: !0
397
+ }
398
+ ), j(
399
+ () => [e.min, e.max],
400
+ () => {
401
+ d();
402
+ }
403
+ );
404
+ };
405
+ export {
406
+ Ke as a,
407
+ Oe as b,
408
+ We as c,
409
+ $e as d,
410
+ je as e,
411
+ ae as f,
412
+ Ce as s,
413
+ Ye as u
414
+ };
@@ -23,9 +23,13 @@ export declare const props: {
23
23
  required: boolean;
24
24
  };
25
25
  required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
26
+ labelPosition: {
27
+ type: import("vue").PropType<"left" | "right" | "top" | "start" | "end">;
28
+ default: undefined;
29
+ };
26
30
  formItemSize: {
27
31
  type: import("vue").PropType<"default" | "small" | "large">;
28
- default: "default" | "small" | "large";
32
+ default: undefined;
29
33
  };
30
34
  formItemSlots: {
31
35
  type: import("vue").PropType<import("../../form-item/src/types").FormItemSlots>;
@@ -61,7 +65,6 @@ export declare const props: {
61
65
  readonly validator: ((val: unknown) => boolean) | undefined;
62
66
  __epPropKey: true;
63
67
  };
64
- labelPosition: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, "" | "left" | "right" | "top", unknown, "", boolean>;
65
68
  rules: {
66
69
  readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>) | (((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>)) | null)[], unknown, unknown>>;
67
70
  readonly required: false;
@@ -25,9 +25,13 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
25
25
  required: boolean;
26
26
  };
27
27
  required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
28
+ labelPosition: {
29
+ type: import("vue").PropType<"left" | "right" | "top" | "start" | "end">;
30
+ default: undefined;
31
+ };
28
32
  formItemSize: {
29
33
  type: import("vue").PropType<"default" | "small" | "large">;
30
- default: "default" | "small" | "large";
34
+ default: undefined;
31
35
  };
32
36
  formItemSlots: {
33
37
  type: import("vue").PropType<import("../../form-item/src/types").FormItemSlots>;
@@ -63,7 +67,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
63
67
  readonly validator: ((val: unknown) => boolean) | undefined;
64
68
  __epPropKey: true;
65
69
  };
66
- labelPosition: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, "" | "left" | "right" | "top", unknown, "", boolean>;
67
70
  rules: {
68
71
  readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>) | (((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>)) | null)[], unknown, unknown>>;
69
72
  readonly required: false;
@@ -293,9 +296,13 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
293
296
  required: boolean;
294
297
  };
295
298
  required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
299
+ labelPosition: {
300
+ type: import("vue").PropType<"left" | "right" | "top" | "start" | "end">;
301
+ default: undefined;
302
+ };
296
303
  formItemSize: {
297
304
  type: import("vue").PropType<"default" | "small" | "large">;
298
- default: "default" | "small" | "large";
305
+ default: undefined;
299
306
  };
300
307
  formItemSlots: {
301
308
  type: import("vue").PropType<import("../../form-item/src/types").FormItemSlots>;
@@ -331,7 +338,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
331
338
  readonly validator: ((val: unknown) => boolean) | undefined;
332
339
  __epPropKey: true;
333
340
  };
334
- labelPosition: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, "" | "left" | "right" | "top", unknown, "", boolean>;
335
341
  rules: {
336
342
  readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>) | (((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>)) | null)[], unknown, unknown>>;
337
343
  readonly required: false;
@@ -538,6 +544,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
538
544
  onRemoveTag?: ((val: import("element-plus").CascaderNodeValue | import("element-plus").CascaderNodePathValue) => any) | undefined;
539
545
  }>, {
540
546
  required: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
547
+ labelPosition: "left" | "right" | "top" | "start" | "end";
541
548
  formItemSize: "default" | "small" | "large";
542
549
  formItemSlots: import("../../form-item/src/types").FormItemSlots;
543
550
  inline: boolean;
@@ -545,7 +552,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
545
552
  formItemTip: string;
546
553
  labelTip: string;
547
554
  information: boolean;
548
- labelPosition: import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "left" | "right" | "top", unknown>;
549
555
  inlineMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
550
556
  showMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
551
557
  disabled: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const V=require("@vunk/form/components/form-item"),t=require("vue"),C=require("@vunk/form/composables"),F=require("@vunk/form/composables/element-plus"),w=require("vant"),b=require("@varlet/ui"),n=require("element-plus");require("vant/es/popup/style");require("@varlet/ui/es/date-picker/date-picker.css");require("@varlet/ui/es/time-picker/timePicker.css");const R=require("../_plugin-vue_export-helper.cjs"),Y={...V._VkfFormItemCtx.props,modelValue:null,readonly:Boolean,type:{type:String,default:"month"},allowedDates:{type:Function,default:void 0},useSeconds:Boolean,valueFormat:{type:String,default:"YYYY-MM-DD HH:mm"}},E={"update:modelValue":null},M=[{label:"日期",value:"date",format:"YYYY-MM-DD"},{label:"年",value:"year",format:"YYYY"},{label:"月",value:"month",format:"YYYY-MM"}],B=M.reduce((e,a)=>(e[a.value]=a,e),{}),I=[{label:"日期",value:"date",varDatePickerType:"date",isRange:!1},{label:"年",value:"year",varDatePickerType:"year",isRange:!1},{label:"月",value:"month",varDatePickerType:"month",isRange:!1},{value:"dates",label:"多选日期",varDatePickerType:"date",isRange:!1},{value:"week",label:"周",varDatePickerType:"date",isRange:!1},{value:"datetime",label:"日期时间",varDatePickerType:"date",isRange:!1,hasTime:!0},{value:"datetimerange",label:"日期时间范围",varDatePickerType:"date",isRange:!1,hasTime:!0},{value:"daterange",label:"日期范围",varDatePickerType:"date",isRange:!0},{value:"monthrange",label:"月范围",varDatePickerType:"month",isRange:!0}],k=I.reduce((e,a)=>(e[a.value]=a,e),{}),S=t.defineComponent({name:"VkfVarDatetimePicker",components:{VkfFormItem:V.VkfFormItem,ElDatePicker:n.ElDatePicker,DatePicker:b.DatePicker,TimePicker:b.TimePicker,Popup:w.Popup,ElTabPane:n.ElTabPane,ElTabs:n.ElTabs},props:Y,emits:E,setup(e,{emit:a}){const y=V._VkfFormItemCtx.createBindProps(e),{tr:P}=F.useLocale(),s=t.computed(()=>k[e.type].varDatePickerType),i=t.computed(()=>B[s.value].format),d=t.computed(()=>!!k[e.type].isRange),u=t.computed(()=>!!k[e.type].hasTime),m=()=>e.modelValue?n.dayjs(e.modelValue).format(i.value):"",c=()=>e.modelValue?n.dayjs(e.modelValue).format(e.useSeconds?"HH:mm:ss":"HH:mm"):"",p=r=>{if(!r)return"";const o=n.dayjs(r,i.value);return e.modelValue?n.dayjs(e.modelValue).year(o.year()).month(o.month()).date(o.date()).format(e.valueFormat):o.format(e.valueFormat)},v=r=>{if(!r)return"";const o=n.dayjs(r,e.useSeconds?"HH:mm:ss":"HH:mm");return e.modelValue?n.dayjs(e.modelValue).hour(o.hour()).minute(o.minute()).second(o.second()).format(e.valueFormat):o.format(e.valueFormat)},f=t.computed({get(){return m()},set(r){const o=p(r);a("update:modelValue",o)}}),l=t.computed({get(){return c()},set(r){const o=v(r);a("update:modelValue",o)}}),h=C.useComputedReadonly(e),T=t.ref(!1),D=t.ref("date");return{preInput:()=>{h.value||(e.modelValue&&u.value&&(D.value="time"),T.value=!0)},inputBlur:r=>{r.target.blur()},popupShow:T,formItemBindProps:y,varDatePickerType:s,isRange:d,hasTime:u,currentTab:D,valueTime:l,valueDate:f,tr:P}}});function q(e,a,y,P,s,i){const d=t.resolveComponent("ElDatePicker"),u=t.resolveComponent("DatePicker"),m=t.resolveComponent("ElTabPane"),c=t.resolveComponent("TimePicker"),p=t.resolveComponent("ElTabs"),v=t.resolveComponent("Popup"),f=t.resolveComponent("VkfFormItem");return t.openBlock(),t.createBlock(f,t.normalizeProps(t.guardReactiveProps(e.formItemBindProps)),{default:t.withCtx(()=>[t.createElementVNode("div",{onClickCapture:a[0]||(a[0]=(...l)=>e.preInput&&e.preInput(...l))},[t.createVNode(d,{"popper-class":"var-datetime-picker-el-popover","model-value":e.modelValue,type:e.type,readonly:!0,"value-format":e.valueFormat,onFocus:e.inputBlur},null,8,["model-value","type","value-format","onFocus"])],32),t.createVNode(v,{show:e.popupShow,"onUpdate:show":a[4]||(a[4]=l=>e.popupShow=l),position:"bottom",round:""},{default:t.withCtx(()=>[t.createVNode(p,{modelValue:e.currentTab,"onUpdate:modelValue":a[3]||(a[3]=l=>e.currentTab=l),class:t.normalizeClass(["var-datetime-picker-el-tabs",{"is-hidden":!e.hasTime}])},{default:t.withCtx(()=>[t.createVNode(m,{label:e.valueDate||e.tr("el.datepicker.selectDate","选择日期"),name:"date"},{default:t.withCtx(()=>[t.createVNode(u,{modelValue:e.valueDate,"onUpdate:modelValue":a[1]||(a[1]=l=>e.valueDate=l),type:e.varDatePickerType,range:e.isRange,"allowed-dates":e.allowedDates},null,8,["modelValue","type","range","allowed-dates"])]),_:1},8,["label"]),e.hasTime?(t.openBlock(),t.createBlock(m,{key:0,label:e.valueTime||e.tr("el.datepicker.selectTime","选择时间"),name:"time"},{default:t.withCtx(()=>[t.createVNode(c,{modelValue:e.valueTime,"onUpdate:modelValue":a[2]||(a[2]=l=>e.valueTime=l),format:"24hr"},null,8,["modelValue"])]),_:1},8,["label"])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","class"])]),_:1},8,["show"])]),_:1},16)}const g=R._export_sfc(S,[["render",q]]),H=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.VkfVarDatetimePicker=g;exports.__VkfVarDatetimePicker=H;exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const V=require("@vunk/form/components/form-item"),t=require("vue"),C=require("@vunk/form/composables"),F=require("@vunk/form/composables/element-plus"),w=require("vant"),b=require("@varlet/ui"),n=require("element-plus");require("vant/es/popup/style");require("@varlet/ui/es/date-picker/date-picker.css");require("@varlet/ui/es/time-picker/timePicker.css");const R=require("../_plugin-vue_export-helper-BHFhmbuH.js"),Y={...V._VkfFormItemCtx.props,modelValue:null,readonly:Boolean,type:{type:String,default:"month"},allowedDates:{type:Function,default:void 0},useSeconds:Boolean,valueFormat:{type:String,default:"YYYY-MM-DD HH:mm"}},E={"update:modelValue":null},M=[{label:"日期",value:"date",format:"YYYY-MM-DD"},{label:"年",value:"year",format:"YYYY"},{label:"月",value:"month",format:"YYYY-MM"}],B=M.reduce((e,a)=>(e[a.value]=a,e),{}),I=[{label:"日期",value:"date",varDatePickerType:"date",isRange:!1},{label:"年",value:"year",varDatePickerType:"year",isRange:!1},{label:"月",value:"month",varDatePickerType:"month",isRange:!1},{value:"dates",label:"多选日期",varDatePickerType:"date",isRange:!1},{value:"week",label:"周",varDatePickerType:"date",isRange:!1},{value:"datetime",label:"日期时间",varDatePickerType:"date",isRange:!1,hasTime:!0},{value:"datetimerange",label:"日期时间范围",varDatePickerType:"date",isRange:!1,hasTime:!0},{value:"daterange",label:"日期范围",varDatePickerType:"date",isRange:!0},{value:"monthrange",label:"月范围",varDatePickerType:"month",isRange:!0}],k=I.reduce((e,a)=>(e[a.value]=a,e),{}),S=t.defineComponent({name:"VkfVarDatetimePicker",components:{VkfFormItem:V.VkfFormItem,ElDatePicker:n.ElDatePicker,DatePicker:b.DatePicker,TimePicker:b.TimePicker,Popup:w.Popup,ElTabPane:n.ElTabPane,ElTabs:n.ElTabs},props:Y,emits:E,setup(e,{emit:a}){const y=V._VkfFormItemCtx.createBindProps(e),{tr:P}=F.useLocale(),s=t.computed(()=>k[e.type].varDatePickerType),i=t.computed(()=>B[s.value].format),d=t.computed(()=>!!k[e.type].isRange),u=t.computed(()=>!!k[e.type].hasTime),m=()=>e.modelValue?n.dayjs(e.modelValue).format(i.value):"",c=()=>e.modelValue?n.dayjs(e.modelValue).format(e.useSeconds?"HH:mm:ss":"HH:mm"):"",p=r=>{if(!r)return"";const o=n.dayjs(r,i.value);return e.modelValue?n.dayjs(e.modelValue).year(o.year()).month(o.month()).date(o.date()).format(e.valueFormat):o.format(e.valueFormat)},v=r=>{if(!r)return"";const o=n.dayjs(r,e.useSeconds?"HH:mm:ss":"HH:mm");return e.modelValue?n.dayjs(e.modelValue).hour(o.hour()).minute(o.minute()).second(o.second()).format(e.valueFormat):o.format(e.valueFormat)},f=t.computed({get(){return m()},set(r){const o=p(r);a("update:modelValue",o)}}),l=t.computed({get(){return c()},set(r){const o=v(r);a("update:modelValue",o)}}),h=C.useComputedReadonly(e),T=t.ref(!1),D=t.ref("date");return{preInput:()=>{h.value||(e.modelValue&&u.value&&(D.value="time"),T.value=!0)},inputBlur:r=>{r.target.blur()},popupShow:T,formItemBindProps:y,varDatePickerType:s,isRange:d,hasTime:u,currentTab:D,valueTime:l,valueDate:f,tr:P}}});function q(e,a,y,P,s,i){const d=t.resolveComponent("ElDatePicker"),u=t.resolveComponent("DatePicker"),m=t.resolveComponent("ElTabPane"),c=t.resolveComponent("TimePicker"),p=t.resolveComponent("ElTabs"),v=t.resolveComponent("Popup"),f=t.resolveComponent("VkfFormItem");return t.openBlock(),t.createBlock(f,t.normalizeProps(t.guardReactiveProps(e.formItemBindProps)),{default:t.withCtx(()=>[t.createElementVNode("div",{onClickCapture:a[0]||(a[0]=(...l)=>e.preInput&&e.preInput(...l))},[t.createVNode(d,{"popper-class":"var-datetime-picker-el-popover","model-value":e.modelValue,type:e.type,readonly:!0,"value-format":e.valueFormat,onFocus:e.inputBlur},null,8,["model-value","type","value-format","onFocus"])],32),t.createVNode(v,{show:e.popupShow,"onUpdate:show":a[4]||(a[4]=l=>e.popupShow=l),position:"bottom",round:""},{default:t.withCtx(()=>[t.createVNode(p,{modelValue:e.currentTab,"onUpdate:modelValue":a[3]||(a[3]=l=>e.currentTab=l),class:t.normalizeClass(["var-datetime-picker-el-tabs",{"is-hidden":!e.hasTime}])},{default:t.withCtx(()=>[t.createVNode(m,{label:e.valueDate||e.tr("el.datepicker.selectDate","选择日期"),name:"date"},{default:t.withCtx(()=>[t.createVNode(u,{modelValue:e.valueDate,"onUpdate:modelValue":a[1]||(a[1]=l=>e.valueDate=l),type:e.varDatePickerType,range:e.isRange,"allowed-dates":e.allowedDates},null,8,["modelValue","type","range","allowed-dates"])]),_:1},8,["label"]),e.hasTime?(t.openBlock(),t.createBlock(m,{key:0,label:e.valueTime||e.tr("el.datepicker.selectTime","选择时间"),name:"time"},{default:t.withCtx(()=>[t.createVNode(c,{modelValue:e.valueTime,"onUpdate:modelValue":a[2]||(a[2]=l=>e.valueTime=l),format:"24hr"},null,8,["modelValue"])]),_:1},8,["label"])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","class"])]),_:1},8,["show"])]),_:1},16)}const g=R._export_sfc(S,[["render",q]]),H=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.VkfVarDatetimePicker=g;exports.__VkfVarDatetimePicker=H;exports.default=g;
@@ -8,7 +8,7 @@ import { ElTabs as N, ElTabPane as L, ElDatePicker as _, dayjs as m } from "elem
8
8
  import "vant/es/popup/style";
9
9
  import "@varlet/ui/es/date-picker/date-picker.css";
10
10
  import "@varlet/ui/es/time-picker/timePicker.css";
11
- import { _ as q } from "../_plugin-vue_export-helper.cjs";
11
+ import { _ as q } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
12
12
  const A = {
13
13
  ...Y.props,
14
14
  modelValue: null,
@@ -17,9 +17,13 @@ export declare const props: {
17
17
  default: string;
18
18
  };
19
19
  required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
20
+ labelPosition: {
21
+ type: PropType<"left" | "right" | "top" | "start" | "end">;
22
+ default: undefined;
23
+ };
20
24
  formItemSize: {
21
25
  type: PropType<"default" | "small" | "large">;
22
- default: "default" | "small" | "large";
26
+ default: undefined;
23
27
  };
24
28
  formItemSlots: {
25
29
  type: PropType<import("../../form-item/src/types").FormItemSlots>;
@@ -55,7 +59,6 @@ export declare const props: {
55
59
  readonly validator: ((val: unknown) => boolean) | undefined;
56
60
  __epPropKey: true;
57
61
  };
58
- labelPosition: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, "" | "left" | "right" | "top", unknown, "", boolean>;
59
62
  rules: {
60
63
  readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>) | (((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>)) | null)[], unknown, unknown>>;
61
64
  readonly required: false;