An open API service indexing awesome lists of open source software.

https://github.com/alaa-aqeel/veebuilder

Builder Form with Vue3+VeeValidate
https://github.com/alaa-aqeel/veebuilder

formbuilder scheama vee-validate vite vitejs vue vue3 vuejs

Last synced: about 2 months ago
JSON representation

Builder Form with Vue3+VeeValidate

Awesome Lists containing this project

README

          

# Form Builder with Vite+Vue3+VeeValidate
VeeBuilder is form builder for `Vue3` with `VeeValidate` that makes form development a breeze.

## Download ^^
#### `$ git clone https://github.com/AlaaProg/VeeBuilder.git `
#### `$ cd ./VeeBuilder `
#### `$ npm install`
#### `$ npm run dev`

# Usage

### Init
[i18n](https://vee-validate.logaretm.com/v4/guide/i18n#using-vee-validatei18n)
```js
import VeeBuilder from "./plugins/FormBuilder"
import en from '@vee-validate/i18n/dist/locale/en.json';

app.use(VeeBuilder, locale={
en: {
...en
},
})

```

### Simple
```html





```

### Define component
```html

import { defineAsyncComponent } from 'vue';
import { FormBuilder } from './plugins/FormBuilder';

// import schema form
import schema from './form.json';

```

### schema: from.js

[Available Rules](https://vee-validate.logaretm.com/v4/guide/global-validators#available-rules)

```json
[
{
"placeholder": "Enter Email",
"class": "w-full",
"name": "email",
"rules": "required|email"
},
{
"placeholder": "Full Name",
"class": "w-full",
"name": "fullname",
"rules": "required",
"label": "Full Name"
},
{
"placeholder": "Select Avtar",
"class": "w-full",
"name": "avtar",
"rules": "required|image",
"type": "file"
}
]
```

### Slot Field
[Field Props](https://vee-validate.logaretm.com/v4/api/field#props)
```html












```

### Slot label and message error for field
```html







{{ message }}





{{ field.label }}






```

### Slot label and message error for all field
```html






{{ message }}





{{ field.label }}




```