diff --git a/project/pages/test/App.vue b/project/pages/test/App.vue index 6d27170..c78b3f6 100644 --- a/project/pages/test/App.vue +++ b/project/pages/test/App.vue @@ -9,7 +9,7 @@ -
{{values}}
+
{{count}}
@@ -19,6 +19,7 @@ import FormField from "./../../../src/widgets/form-field.vue"; import {ref} from "vue"; import WidgetComposite from "./widget-composite.vue"; import WidgetAddress from "./widget-address.vue" +import copyObject from "./../../../src/utils/copy-object"; const form = new Form({ name: "main" @@ -27,8 +28,9 @@ const form = new Form({ window.form = form const count = ref(0); -setInterval(() => count.value++, 50); -const values = ref(form.values); +setInterval(() => { + count.value = copyObject(form.values); +}, 50); const name = ref('username'); @@ -41,6 +43,7 @@ function clean() { function setDefaultValues() { return form.cleanValues({ username: "Jenesius", + "coordinate.x": "123" }) } diff --git a/project/pages/test/input-coord.vue b/project/pages/test/input-coord.vue index 89666f5..b32c4a0 100644 --- a/project/pages/test/input-coord.vue +++ b/project/pages/test/input-coord.vue @@ -1,5 +1,6 @@