Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

🔗 Add necessary config and links #21

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ const successFn = (form: Record<string,any>) => {console.log({form})}

### For a more advanced usage visit the [Docs](https://vue-form-handler.com)

## 📈 Project activity
---
![Alt](https://repobeats.axiom.co/api/embed/d0da4b79bde282068c5f3da3505091b1447a1f6c.svg "Repobeats analytics image")

## 💜 Thanks
---
This project is heavily inspired by other awesome projects like:
Expand Down
7 changes: 7 additions & 0 deletions docs/.vitepress/config.cts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ export default defineConfig({
pattern: 'https://github.com/dbssman/vue-form-handler/edit/master/docs/:path',
text: 'Edit this page on GitHub',
},
socialLinks: [
{ icon: 'github', link: 'https://github.com/dbssman/vue-form-handler' }
],
footer: {
message: 'Released under the MIT License.',
copyright: 'Copyright © 2022-present Dennis R. Bosmans',
},
nav: [
{ text: 'Home', link: '/' },
{ text: 'Get started', link: '/get-started/introduction' },
Expand Down
6 changes: 5 additions & 1 deletion docs/guides/custom-components.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Custom components
# Custom components

## Utilities

## Examples
1 change: 0 additions & 1 deletion docs/guides/form-submission.md

This file was deleted.

7 changes: 7 additions & 0 deletions docs/guides/material-libraries.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Material libraries

## Support

## How it works

## Examples
6 changes: 5 additions & 1 deletion docs/guides/native-support.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Native support
# Native support

## Why ?

## Supported features
6 changes: 5 additions & 1 deletion docs/guides/typescript.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Typescript
# Typescript

## Type support

## Examples
12 changes: 11 additions & 1 deletion docs/guides/validation.md
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
# Validation
# Validation

## Form-level Validation

## Field-level Validation

## Manually Trigger Validation

## When do Validations run?

## Display error messages
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
"author": "Dennis R. Bosmans",
"name": "vue-form-handler",
"description": "Vue 3 form handler, with validation, error handling, and more.",
"repository": {
"type":"git",
"url":"https://github.com/dbssman/vue-form-handler"
},
"homepage": "https://www.vue-form-handler.com/",
"license": "MIT",
"private": false,
"version": "0.0.2",
Expand Down
3 changes: 2 additions & 1 deletion src/core/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export const BaseInputProps = {
name: { type: String, required: true },
isDirty: { type: Boolean, default: () => false },
isTouched: { type: Boolean, default: () => false },
errors: { type: Object, default: () => { } },
disabled: { type: Boolean, default: () => false },
error: { type: String, default: () => '' },
onBlur: { type: Function, required: true },
onClear: { type: Function, default: () => null },
modelValue: { type: [String, Object, Array, Number, Boolean, null], required: true },
Expand Down