phecda-vue 1.2.8 → 1.2.10
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/dist/index.d.ts +1 -1
- package/dist/index.js +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -77,7 +77,7 @@ declare function createForm<P extends {
|
|
|
77
77
|
$props: any;
|
|
78
78
|
}>(compSet: Record<string, Component> | any, form: Component<P>, formItem: Component | false, options?: {
|
|
79
79
|
modelKey?: string;
|
|
80
|
-
onUpdate?: (key: string) => void;
|
|
80
|
+
onUpdate?: (key: string, v: any) => void;
|
|
81
81
|
}): DefineComponent<{
|
|
82
82
|
config: Object;
|
|
83
83
|
data: Object;
|
package/dist/index.js
CHANGED
|
@@ -439,8 +439,10 @@ function createForm(compSet, form, formItem, options = {}) {
|
|
|
439
439
|
...props.config[property],
|
|
440
440
|
[`${modelKey}`]: props.data[property],
|
|
441
441
|
[`onUpdate:${modelKey}`]: (v) => {
|
|
442
|
-
|
|
443
|
-
|
|
442
|
+
if (onUpdate)
|
|
443
|
+
onUpdate(property, v);
|
|
444
|
+
else
|
|
445
|
+
props.data[property] = v;
|
|
444
446
|
}
|
|
445
447
|
}, {
|
|
446
448
|
default: () => generateChildVNode(props.config[props.property])
|
package/dist/index.mjs
CHANGED
|
@@ -380,8 +380,10 @@ function createForm(compSet, form, formItem, options = {}) {
|
|
|
380
380
|
...props.config[property],
|
|
381
381
|
[`${modelKey}`]: props.data[property],
|
|
382
382
|
[`onUpdate:${modelKey}`]: (v) => {
|
|
383
|
-
|
|
384
|
-
|
|
383
|
+
if (onUpdate)
|
|
384
|
+
onUpdate(property, v);
|
|
385
|
+
else
|
|
386
|
+
props.data[property] = v;
|
|
385
387
|
}
|
|
386
388
|
}, {
|
|
387
389
|
default: () => generateChildVNode(props.config[props.property])
|