feat: add reactivity to formkit

This commit is contained in:
2025-12-02 18:22:27 +03:00
parent b1d072b35a
commit fdcfce0a79
2 changed files with 10 additions and 2 deletions

View File

@@ -13,8 +13,9 @@
@submit="handleSubmit"
:submit-label="submitLabel"
outer-class="tw:space-y-4"
v-model="form"
>
<FormKitSchema :schema="schema" />
<FormKitSchema :schema="schema" :data="data"/>
</FormKit>
</div>
</div>
@@ -24,6 +25,10 @@
<script setup>
import { FormKit, FormKitSchema } from '@formkit/vue';
import {reactive, ref} from "vue";
const form = ref({});
const data = reactive(form);
const props = defineProps({
schema: {