Skip to content

Commit

Permalink
feat(Validation): FormKit / formkit-primevue
Browse files Browse the repository at this point in the history
  • Loading branch information
sfxcode committed May 24, 2022
1 parent 7b9bb1b commit d6806f5
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions pages/prime/validation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,25 +99,22 @@ const submitHandler = async () => {
</script>

<template>
<div class="myFormkit">
<FormKit
id="form"
v-model="data"
type="form"
:submit-attrs="{
inputClass: 'p-button p-component',
}"
@submit="submitHandler"
>
<FormKitSchema :schema="schema" :data="data" />
</FormKit>
<div>
<div class="myFormkit">
<FormKit
id="form"
v-model="data"
type="form"
:submit-attrs="{
inputClass: 'p-button p-component',
}"
@submit="submitHandler"
>
<FormKitSchema :schema="schema" :data="data" />
</FormKit>
</div>
<h4>Data</h4>
<pre>{{ data }}</pre>
</div>
<h4>Data</h4>
<pre>{{ data }}</pre>
</template>

<style lang='scss' scoped>
.p-inputtext {
width: 500px;
}
</style>

0 comments on commit d6806f5

Please sign in to comment.