dynamicformdjx 0.3.0 → 0.3.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.
- package/README.md +156 -8
- package/dist/hooks/useDyForm.d.ts +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.mjs +149 -145
- package/dist/naiveUi/index.cjs +1 -1
- package/dist/naiveUi/index.mjs +86 -86
- package/package.json +1 -1
- /package/dist/{naiveUi/hooks → components/old}/rOld.d.ts +0 -0
package/dist/naiveUi/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as V, ref as R, watch as O, toRaw as S, createVNode as r, createTextVNode as C, Fragment as F, nextTick as
|
|
2
|
-
import { NInput as N, NButton as b, NForm as
|
|
1
|
+
import { defineComponent as V, ref as R, watch as O, toRaw as S, createVNode as r, createTextVNode as C, Fragment as F, nextTick as $, isVNode as D, computed as I, mergeProps as M, h as p } from "vue";
|
|
2
|
+
import { NInput as N, NButton as b, NForm as U, NGrid as G, NFormItemGridItem as B, NFormItem as H, NSelect as q, NPopselect as _, NTreeSelect as E, NRadioGroup as z, NRadio as K, NRadioButton as J, NCheckboxGroup as Q, NSpace as W, NCheckbox as X, NSwitch as Y, NDatePicker as Z, NTimePicker as ee } from "naive-ui";
|
|
3
3
|
import { t as A, r as j, f as P, p as le, s as te } from "../index-BqKRE4oH.js";
|
|
4
4
|
const oe = /* @__PURE__ */ V({
|
|
5
5
|
name: "NaiDynamicInput",
|
|
@@ -38,7 +38,7 @@ const oe = /* @__PURE__ */ V({
|
|
|
38
38
|
},
|
|
39
39
|
setup(e, {
|
|
40
40
|
emit: o,
|
|
41
|
-
expose:
|
|
41
|
+
expose: d
|
|
42
42
|
}) {
|
|
43
43
|
const t = {
|
|
44
44
|
resetTxt: "重置",
|
|
@@ -51,30 +51,30 @@ const oe = /* @__PURE__ */ V({
|
|
|
51
51
|
autoScroll: !0,
|
|
52
52
|
allowFilter: !0,
|
|
53
53
|
...e.configs
|
|
54
|
-
},
|
|
54
|
+
}, c = {
|
|
55
55
|
arraySplitSymbol: ",",
|
|
56
56
|
...e.dyListConfigs
|
|
57
|
-
}, y = e.size,
|
|
58
|
-
return O(
|
|
57
|
+
}, y = e.size, i = R(A(e.modelValue, e.randomFun, c.arraySplitSymbol)), m = R(null);
|
|
58
|
+
return O(i, (u) => {
|
|
59
59
|
if (!e.isController) return;
|
|
60
|
-
const v = j(u,
|
|
61
|
-
o("update:modelValue", v), o("onMerge", v, S(
|
|
60
|
+
const v = j(u, c.arraySplitSymbol);
|
|
61
|
+
o("update:modelValue", v), o("onMerge", v, S(i.value));
|
|
62
62
|
}, {
|
|
63
63
|
deep: !0
|
|
64
|
-
}),
|
|
64
|
+
}), d({
|
|
65
65
|
onSet: (u) => {
|
|
66
|
-
|
|
66
|
+
i.value = A(u ?? e.modelValue, e.randomFun, c.arraySplitSymbol);
|
|
67
67
|
},
|
|
68
|
-
getResult: (u = "res") => u === "ori" ? S(
|
|
68
|
+
getResult: (u = "res") => u === "ori" ? S(i.value) : j(i.value, c.arraySplitSymbol)
|
|
69
69
|
}), () => r("div", {
|
|
70
70
|
class: e.dyCls ?? `dynamicForm ${y}`
|
|
71
71
|
}, [r("div", {
|
|
72
|
-
class:
|
|
72
|
+
class: `dyFormList ${i.value.length ? "" : "noList"}`,
|
|
73
73
|
ref: m,
|
|
74
74
|
style: {
|
|
75
75
|
maxHeight: s.maxHeight
|
|
76
76
|
}
|
|
77
|
-
}, [
|
|
77
|
+
}, [i.value.map((u, v, l) => r("div", {
|
|
78
78
|
class: "dItem",
|
|
79
79
|
key: u.rId
|
|
80
80
|
}, [r("div", {
|
|
@@ -91,7 +91,7 @@ const oe = /* @__PURE__ */ V({
|
|
|
91
91
|
value: u.value,
|
|
92
92
|
class: "value",
|
|
93
93
|
onInput: (a) => {
|
|
94
|
-
s.allowFilter && u.isNumber ? u.value = P(a, u.isArray,
|
|
94
|
+
s.allowFilter && u.isNumber ? u.value = P(a, u.isArray, c.arraySplitSymbol) : u.value = a;
|
|
95
95
|
}
|
|
96
96
|
}, {
|
|
97
97
|
prefix: () => r(F, null, [r(b, {
|
|
@@ -118,11 +118,11 @@ const oe = /* @__PURE__ */ V({
|
|
|
118
118
|
size: y,
|
|
119
119
|
disabled: v !== l.length - 1,
|
|
120
120
|
onClick: () => {
|
|
121
|
-
|
|
121
|
+
i.value.push({
|
|
122
122
|
rId: e.randomFun(),
|
|
123
123
|
key: "",
|
|
124
124
|
value: ""
|
|
125
|
-
}), s.autoScroll &&
|
|
125
|
+
}), s.autoScroll && $(() => {
|
|
126
126
|
const a = m.value;
|
|
127
127
|
a?.scrollTo({
|
|
128
128
|
top: a.scrollHeight,
|
|
@@ -136,17 +136,17 @@ const oe = /* @__PURE__ */ V({
|
|
|
136
136
|
size: y,
|
|
137
137
|
type: "error",
|
|
138
138
|
onClick: () => {
|
|
139
|
-
|
|
139
|
+
i.value = i.value.filter((a) => a.rId !== u.rId);
|
|
140
140
|
}
|
|
141
141
|
}, {
|
|
142
142
|
default: () => [C("-")]
|
|
143
143
|
})])]))]), r("div", {
|
|
144
|
-
class:
|
|
145
|
-
}, [!
|
|
144
|
+
class: `control ${i.value.length ? "" : "noList"}`
|
|
145
|
+
}, [!i.value.length && r(b, {
|
|
146
146
|
size: y,
|
|
147
147
|
type: "success",
|
|
148
148
|
onClick: () => {
|
|
149
|
-
|
|
149
|
+
i.value.push({
|
|
150
150
|
rId: e.randomFun(),
|
|
151
151
|
key: "",
|
|
152
152
|
value: ""
|
|
@@ -158,7 +158,7 @@ const oe = /* @__PURE__ */ V({
|
|
|
158
158
|
size: y,
|
|
159
159
|
type: "default",
|
|
160
160
|
onClick: () => {
|
|
161
|
-
|
|
161
|
+
i.value = A(e.modelValue, e.randomFun, c.arraySplitSymbol), o("onReset");
|
|
162
162
|
}
|
|
163
163
|
}, {
|
|
164
164
|
default: () => [t.resetTxt]
|
|
@@ -166,9 +166,9 @@ const oe = /* @__PURE__ */ V({
|
|
|
166
166
|
size: y,
|
|
167
167
|
type: "info",
|
|
168
168
|
onClick: () => {
|
|
169
|
-
|
|
170
|
-
const u = j(
|
|
171
|
-
o("update:modelValue", u), o("onMerge", u, S(
|
|
169
|
+
i.value.sort((v, l) => +v.rId - +l.rId);
|
|
170
|
+
const u = j(i.value, c.arraySplitSymbol);
|
|
171
|
+
o("update:modelValue", u), o("onMerge", u, S(i.value)), i.value = A(u, e.randomFun, c.arraySplitSymbol);
|
|
172
172
|
}
|
|
173
173
|
}, {
|
|
174
174
|
default: () => [t.mergeTxt]
|
|
@@ -176,7 +176,7 @@ const oe = /* @__PURE__ */ V({
|
|
|
176
176
|
}
|
|
177
177
|
});
|
|
178
178
|
function ae(e) {
|
|
179
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
179
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !D(e);
|
|
180
180
|
}
|
|
181
181
|
const se = /* @__PURE__ */ V({
|
|
182
182
|
name: "NaiveUiDynamicCascadeInput",
|
|
@@ -221,7 +221,7 @@ const se = /* @__PURE__ */ V({
|
|
|
221
221
|
},
|
|
222
222
|
setup(e, {
|
|
223
223
|
emit: o,
|
|
224
|
-
expose:
|
|
224
|
+
expose: d
|
|
225
225
|
}) {
|
|
226
226
|
const t = {
|
|
227
227
|
resetTxt: "重置",
|
|
@@ -237,23 +237,23 @@ const se = /* @__PURE__ */ V({
|
|
|
237
237
|
retractLen: 0,
|
|
238
238
|
borderColors: [],
|
|
239
239
|
...e.configs
|
|
240
|
-
},
|
|
240
|
+
}, c = {
|
|
241
241
|
arraySplitSymbol: ",",
|
|
242
242
|
...e.dyListConfigs
|
|
243
|
-
}, y = (l) => ["string", "number"].includes(l),
|
|
243
|
+
}, y = (l) => ["string", "number"].includes(l), i = (l) => Object.keys(l).map((a, f) => {
|
|
244
244
|
let n = l[a];
|
|
245
245
|
const h = Array.isArray(n), T = h ? n.every((x) => typeof x == "number") : typeof n == "number", k = n === null;
|
|
246
246
|
return y(typeof n) && (n = l[a]), k && (n = ""), {
|
|
247
247
|
rId: e.randomFun(f),
|
|
248
248
|
key: a,
|
|
249
|
-
value: Object.prototype.toString.call(n) === "[object Object]" ?
|
|
249
|
+
value: Object.prototype.toString.call(n) === "[object Object]" ? i(l[a]) : h ? n.join(c.arraySplitSymbol) : n,
|
|
250
250
|
isArray: h || void 0,
|
|
251
251
|
isNumber: T || void 0
|
|
252
252
|
};
|
|
253
253
|
}), m = (l) => l.reduce((a, f) => {
|
|
254
254
|
const n = f.value;
|
|
255
|
-
return f.key.trim().length && (a[f.key] = Array.isArray(n) ? m(n) : le(f.value, f.isArray, f.isNumber,
|
|
256
|
-
}, {}), u = R(
|
|
255
|
+
return f.key.trim().length && (a[f.key] = Array.isArray(n) ? m(n) : le(f.value, f.isArray, f.isNumber, c.arraySplitSymbol)), a;
|
|
256
|
+
}, {}), u = R(i(e.modelValue)), v = (l, a = 1, f) => r("div", {
|
|
257
257
|
class: [`depth-${a}`, s.showBorder ? "" : "no-border", s.showPad ? "" : "no-pad"],
|
|
258
258
|
style: {
|
|
259
259
|
"--depth": a,
|
|
@@ -281,7 +281,7 @@ const se = /* @__PURE__ */ V({
|
|
|
281
281
|
n.key = g;
|
|
282
282
|
return;
|
|
283
283
|
}
|
|
284
|
-
s.allowFilter && n.isNumber ? n.value = P(g, n.isArray,
|
|
284
|
+
s.allowFilter && n.isNumber ? n.value = P(g, n.isArray, c.arraySplitSymbol) : n.value = g;
|
|
285
285
|
}
|
|
286
286
|
}, {
|
|
287
287
|
prefix: Array.isArray(n.value) ? void 0 : () => r(F, null, [r(b, {
|
|
@@ -336,7 +336,7 @@ const se = /* @__PURE__ */ V({
|
|
|
336
336
|
onClick: () => {
|
|
337
337
|
if (l.splice(h, 1), l.length < 1) {
|
|
338
338
|
if (f === void 0) return m([]);
|
|
339
|
-
const g = u.value.findIndex((
|
|
339
|
+
const g = u.value.findIndex((L) => L.rId === f?.rId);
|
|
340
340
|
a < 1 ? u.value.splice(g, 1, {
|
|
341
341
|
...f,
|
|
342
342
|
value: ""
|
|
@@ -353,9 +353,9 @@ const se = /* @__PURE__ */ V({
|
|
|
353
353
|
o("update:modelValue", a), o("onMerge", a, S(u.value));
|
|
354
354
|
}, {
|
|
355
355
|
deep: !0
|
|
356
|
-
}),
|
|
356
|
+
}), d({
|
|
357
357
|
onSet: (l) => {
|
|
358
|
-
u.value =
|
|
358
|
+
u.value = i(l ?? e.modelValue);
|
|
359
359
|
},
|
|
360
360
|
getResult: (l = "res") => l === "ori" ? S(u.value) : m(u.value)
|
|
361
361
|
}), () => r("div", {
|
|
@@ -381,7 +381,7 @@ const se = /* @__PURE__ */ V({
|
|
|
381
381
|
}), !e.isController && r(F, null, [!s.hideReset && r(b, {
|
|
382
382
|
type: "default",
|
|
383
383
|
onClick: () => {
|
|
384
|
-
u.value =
|
|
384
|
+
u.value = i(e.modelValue), o("onReset");
|
|
385
385
|
}
|
|
386
386
|
}, {
|
|
387
387
|
default: () => [t.resetTxt]
|
|
@@ -389,7 +389,7 @@ const se = /* @__PURE__ */ V({
|
|
|
389
389
|
type: "info",
|
|
390
390
|
onClick: () => {
|
|
391
391
|
const l = m(u.value);
|
|
392
|
-
o("update:modelValue", l), o("onMerge", l, S(u.value)), u.value =
|
|
392
|
+
o("update:modelValue", l), o("onMerge", l, S(u.value)), u.value = i(l);
|
|
393
393
|
}
|
|
394
394
|
}, {
|
|
395
395
|
default: () => [t.mergeTxt]
|
|
@@ -428,9 +428,9 @@ const se = /* @__PURE__ */ V({
|
|
|
428
428
|
},
|
|
429
429
|
setup(e, {
|
|
430
430
|
emit: o,
|
|
431
|
-
expose:
|
|
431
|
+
expose: d
|
|
432
432
|
}) {
|
|
433
|
-
const t = R(null), s = I(() => (e.items ?? []).filter((v) => !v.hidden)),
|
|
433
|
+
const t = R(null), s = I(() => (e.items ?? []).filter((v) => !v.hidden)), c = I(() => s.value ? s.value.reduce((v, l) => (v[l.key] = l.value.value, v), {}) : {}), y = I(() => ({
|
|
434
434
|
...s.value?.reduce((l, a) => {
|
|
435
435
|
let f = a.rule;
|
|
436
436
|
return a.required && !a.rule && (f = {
|
|
@@ -440,7 +440,7 @@ const se = /* @__PURE__ */ V({
|
|
|
440
440
|
}), l[a.key] = f, l;
|
|
441
441
|
}, {}),
|
|
442
442
|
...e.rules
|
|
443
|
-
})),
|
|
443
|
+
})), i = I(() => [...s.value].sort((l, a) => {
|
|
444
444
|
const f = l.sort ?? 1 / 0, n = a.sort ?? 1 / 0;
|
|
445
445
|
return Number(f) - Number(n);
|
|
446
446
|
}));
|
|
@@ -452,25 +452,25 @@ const se = /* @__PURE__ */ V({
|
|
|
452
452
|
function u() {
|
|
453
453
|
return new Promise((v, l) => {
|
|
454
454
|
t.value?.validate((a) => {
|
|
455
|
-
a ? l(a) : v(
|
|
455
|
+
a ? l(a) : v(c.value);
|
|
456
456
|
});
|
|
457
457
|
});
|
|
458
458
|
}
|
|
459
|
-
if (
|
|
459
|
+
if (d({
|
|
460
460
|
reset: m,
|
|
461
461
|
validator: u,
|
|
462
|
-
getResult: (v = "res") => v === "ori" ? s.value :
|
|
462
|
+
getResult: (v = "res") => v === "ori" ? s.value : c.value
|
|
463
463
|
}), !e.items) throw new Error("prop items must be not null");
|
|
464
464
|
return () => r("div", {
|
|
465
465
|
class: "naiDynamicForm"
|
|
466
|
-
}, [r(
|
|
466
|
+
}, [r(U, M({
|
|
467
467
|
ref: t
|
|
468
468
|
}, e.formConfig, {
|
|
469
|
-
model:
|
|
469
|
+
model: c.value,
|
|
470
470
|
rules: y.value
|
|
471
471
|
}), {
|
|
472
472
|
default() {
|
|
473
|
-
const v =
|
|
473
|
+
const v = i.value;
|
|
474
474
|
return e.preset === "grid" ? p(G, {
|
|
475
475
|
...e.gridConfig
|
|
476
476
|
}, {
|
|
@@ -495,17 +495,17 @@ function w(e) {
|
|
|
495
495
|
return e.render2 ? e.render2(e) : null;
|
|
496
496
|
};
|
|
497
497
|
}
|
|
498
|
-
function de(e, o = {},
|
|
498
|
+
function de(e, o = {}, d) {
|
|
499
499
|
return p(N, {
|
|
500
|
-
...
|
|
500
|
+
...d,
|
|
501
501
|
value: e.value,
|
|
502
502
|
onUpdateValue: (t) => {
|
|
503
|
-
e.value = t,
|
|
503
|
+
e.value = t, d?.onChange?.(t, d);
|
|
504
504
|
},
|
|
505
505
|
...o
|
|
506
506
|
});
|
|
507
507
|
}
|
|
508
|
-
function ce(e, o,
|
|
508
|
+
function ce(e, o, d = {}, t) {
|
|
509
509
|
return p(q, {
|
|
510
510
|
...t,
|
|
511
511
|
value: e.value,
|
|
@@ -513,11 +513,11 @@ function ce(e, o, i = {}, t) {
|
|
|
513
513
|
onUpdateValue: (s) => {
|
|
514
514
|
e.value = s, t?.onChange?.(s, t, o);
|
|
515
515
|
},
|
|
516
|
-
...
|
|
516
|
+
...d
|
|
517
517
|
});
|
|
518
518
|
}
|
|
519
|
-
function ye(e, o,
|
|
520
|
-
const { value:
|
|
519
|
+
function ye(e, o, d = {}, t, s) {
|
|
520
|
+
const { value: c, labelField: y, valueField: i, ...m } = t, u = y ?? "label", v = i ?? "value", l = m.options ?? o;
|
|
521
521
|
return r(
|
|
522
522
|
_,
|
|
523
523
|
{
|
|
@@ -527,7 +527,7 @@ function ye(e, o, i = {}, t, s) {
|
|
|
527
527
|
e.value = a, t?.onChange?.(a, t, l);
|
|
528
528
|
},
|
|
529
529
|
options: l.map((a) => ({ ...a, label: a[u], value: a[v] })),
|
|
530
|
-
...
|
|
530
|
+
...d
|
|
531
531
|
},
|
|
532
532
|
{
|
|
533
533
|
default: () => s ?? r(b, null, {
|
|
@@ -536,20 +536,20 @@ function ye(e, o, i = {}, t, s) {
|
|
|
536
536
|
}
|
|
537
537
|
);
|
|
538
538
|
}
|
|
539
|
-
function ve(e, o,
|
|
540
|
-
const { valueField: s = "value", ...
|
|
539
|
+
function ve(e, o, d = {}, t) {
|
|
540
|
+
const { valueField: s = "value", ...c } = t;
|
|
541
541
|
return p(E, {
|
|
542
|
-
...
|
|
542
|
+
...c,
|
|
543
543
|
value: e.value,
|
|
544
544
|
options: o,
|
|
545
545
|
onUpdateValue: (y) => {
|
|
546
546
|
e.value = y, t?.onChange?.(y, t, o);
|
|
547
547
|
},
|
|
548
548
|
keyField: s,
|
|
549
|
-
...
|
|
549
|
+
...d
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
|
-
function me(e, o,
|
|
552
|
+
function me(e, o, d = {}, t) {
|
|
553
553
|
return p(
|
|
554
554
|
z,
|
|
555
555
|
{
|
|
@@ -558,27 +558,27 @@ function me(e, o, i = {}, t) {
|
|
|
558
558
|
onUpdateValue: (s) => {
|
|
559
559
|
e.value = s, t?.onChange?.(s, t, o);
|
|
560
560
|
},
|
|
561
|
-
...
|
|
561
|
+
...d
|
|
562
562
|
},
|
|
563
563
|
{
|
|
564
|
-
default: () => (t?.options ?? o).map((
|
|
565
|
-
const y = t,
|
|
564
|
+
default: () => (t?.options ?? o).map((c) => {
|
|
565
|
+
const y = t, i = c[y?.labelField ?? "label"], m = c[y?.valueField ?? "value"];
|
|
566
566
|
return p(
|
|
567
567
|
K,
|
|
568
568
|
{
|
|
569
|
-
...
|
|
570
|
-
label:
|
|
569
|
+
...c,
|
|
570
|
+
label: i,
|
|
571
571
|
value: m
|
|
572
572
|
},
|
|
573
573
|
{
|
|
574
|
-
default: () =>
|
|
574
|
+
default: () => c.label
|
|
575
575
|
}
|
|
576
576
|
);
|
|
577
577
|
})
|
|
578
578
|
}
|
|
579
579
|
);
|
|
580
580
|
}
|
|
581
|
-
function fe(e, o,
|
|
581
|
+
function fe(e, o, d = {}, t) {
|
|
582
582
|
return r(
|
|
583
583
|
z,
|
|
584
584
|
{
|
|
@@ -587,27 +587,27 @@ function fe(e, o, i = {}, t) {
|
|
|
587
587
|
onUpdateValue: (s) => {
|
|
588
588
|
e.value = s, t?.onChange?.(s, t, o);
|
|
589
589
|
},
|
|
590
|
-
...
|
|
590
|
+
...d
|
|
591
591
|
},
|
|
592
592
|
{
|
|
593
|
-
default: () => (t?.options ?? o).map((
|
|
594
|
-
const y = t,
|
|
593
|
+
default: () => (t?.options ?? o).map((c) => {
|
|
594
|
+
const y = t, i = c[y?.labelField ?? "label"], m = c[y?.valueField ?? "value"];
|
|
595
595
|
return r(
|
|
596
596
|
J,
|
|
597
597
|
{
|
|
598
|
-
...
|
|
599
|
-
label:
|
|
598
|
+
...c,
|
|
599
|
+
label: i,
|
|
600
600
|
value: m
|
|
601
601
|
},
|
|
602
602
|
{
|
|
603
|
-
default: () =>
|
|
603
|
+
default: () => c.label
|
|
604
604
|
}
|
|
605
605
|
);
|
|
606
606
|
})
|
|
607
607
|
}
|
|
608
608
|
);
|
|
609
609
|
}
|
|
610
|
-
function be(e, o,
|
|
610
|
+
function be(e, o, d = {}, t) {
|
|
611
611
|
return p(
|
|
612
612
|
Q,
|
|
613
613
|
{
|
|
@@ -616,7 +616,7 @@ function be(e, o, i = {}, t) {
|
|
|
616
616
|
onUpdateValue: (s) => {
|
|
617
617
|
e.value = s, t?.onChange?.(s, t, o);
|
|
618
618
|
},
|
|
619
|
-
...
|
|
619
|
+
...d
|
|
620
620
|
},
|
|
621
621
|
{
|
|
622
622
|
default: () => p(
|
|
@@ -625,11 +625,11 @@ function be(e, o, i = {}, t) {
|
|
|
625
625
|
itemStyle: "display: flex"
|
|
626
626
|
},
|
|
627
627
|
{
|
|
628
|
-
default: () => (t?.options ?? o).map((
|
|
629
|
-
const y = t,
|
|
628
|
+
default: () => (t?.options ?? o).map((c) => {
|
|
629
|
+
const y = t, i = c[y?.labelField ?? "label"], m = c[y?.valueField ?? "value"];
|
|
630
630
|
return p(X, {
|
|
631
631
|
value: m,
|
|
632
|
-
label:
|
|
632
|
+
label: i
|
|
633
633
|
});
|
|
634
634
|
})
|
|
635
635
|
}
|
|
@@ -637,32 +637,32 @@ function be(e, o, i = {}, t) {
|
|
|
637
637
|
}
|
|
638
638
|
);
|
|
639
639
|
}
|
|
640
|
-
function pe(e, o = {},
|
|
640
|
+
function pe(e, o = {}, d) {
|
|
641
641
|
return p(Y, {
|
|
642
|
-
...
|
|
642
|
+
...d,
|
|
643
643
|
value: e.value,
|
|
644
644
|
onUpdateValue: (t) => {
|
|
645
|
-
e.value = t,
|
|
645
|
+
e.value = t, d?.onChange?.(t, d);
|
|
646
646
|
},
|
|
647
647
|
...o
|
|
648
648
|
});
|
|
649
649
|
}
|
|
650
|
-
function ge(e, o = {},
|
|
650
|
+
function ge(e, o = {}, d) {
|
|
651
651
|
return p(Z, {
|
|
652
|
-
...
|
|
652
|
+
...d,
|
|
653
653
|
value: e.value,
|
|
654
654
|
onUpdateValue: (t) => {
|
|
655
|
-
e.value = t,
|
|
655
|
+
e.value = t, d?.onChange?.(t, d);
|
|
656
656
|
},
|
|
657
657
|
...o
|
|
658
658
|
});
|
|
659
659
|
}
|
|
660
|
-
function Ce(e, o = {},
|
|
660
|
+
function Ce(e, o = {}, d) {
|
|
661
661
|
return p(ee, {
|
|
662
|
-
...
|
|
662
|
+
...d,
|
|
663
663
|
value: e.value,
|
|
664
664
|
onUpdateValue: (t) => {
|
|
665
|
-
e.value = t,
|
|
665
|
+
e.value = t, d?.onChange?.(t, d);
|
|
666
666
|
},
|
|
667
667
|
...o
|
|
668
668
|
});
|
package/package.json
CHANGED
|
File without changes
|