Skip to content

Commit

Permalink
Vee-validate as peer dependency and initial value example
Browse files Browse the repository at this point in the history
  • Loading branch information
kilobyte2007 committed Jun 6, 2024
1 parent a2e98db commit 3d569f3
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 12 deletions.
6 changes: 5 additions & 1 deletion docs/.vitepress/components/examples/form/Basic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ defineRule('required', required)
defineRule('email', email)
defineRule('min', min)
const { handleSubmit } = useForm()
const { handleSubmit } = useForm({
initialValues: {
name: 'Sergiu'
}
})
const submit = handleSubmit((values) => {
console.log('Form submitted!', values)
Expand Down
21 changes: 15 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "personizely-ui",
"version": "0.0.10",
"version": "0.0.11",
"description": "Personizely UI is a Vue.js UI library with a simple API, based on Radix Vue, inspired by shadcn-vue and Keen UI.",
"type": "module",
"main": "./dist/personizely-ui.js",
Expand Down Expand Up @@ -53,8 +53,6 @@
"dependencies": {
"@ctrl/tinycolor": "^4.1.0",
"@types/lodash": "^4.17.0",
"@vee-validate/rules": "^4.12.6",
"@vee-validate/zod": "^4.12.6",
"@vueuse/core": "^10.9.0",
"autosize": "^3.0.20",
"class-variance-authority": "^0.7.0",
Expand All @@ -69,7 +67,6 @@
"tailwind-merge": "^2.2.2",
"tailwindcss-animate": "^1.0.7",
"tippy.js": "^6.3.7",
"vee-validate": "^4.12.6",
"zod": "^3.23.5"
},
"devDependencies": {
Expand Down Expand Up @@ -97,7 +94,10 @@
"vite-plugin-banner": "^0.7.0",
"vitepress": "^1.0.2",
"vue": "^3.4.23",
"vue-tsc": "^1.8.27"
"vue-tsc": "^1.8.27",
"vee-validate": "^4.12.6",
"@vee-validate/rules": "^4.12.6",
"@vee-validate/zod": "^4.12.6"
},
"peerDependencies": {
"vee-validate": "^4.12.6"
Expand Down

0 comments on commit 3d569f3

Please sign in to comment.