1+ <p align =" center " ><a href =" https://form.jenesius.com/ " target =" _blank " rel =" noopener noreferrer " ><img height =" 100 " src =" https://form.jenesius.com/images/logo.svg " alt =" Vue logo " ></a ></p >
2+
3+ <p align =" center " >
4+ <a href =" https://img.shields.io/npm/dm/jenesius-vue-form " ><img src =" https://img.shields.io/npm/dm/jenesius-vue-form " alt =" Downloads " ></a >
5+ <a href =" https://img.shields.io/npm/dt/jenesius-vue-form " ><img src =" https://img.shields.io/npm/dt/jenesius-vue-form " alt =" Downloads " ></a >
6+ <a href =" https://github.com/Jenesius/vue-form/actions/workflows/node.js.yml/badge.svg " ><img src =" https://github.com/Jenesius/vue-form/actions/workflows/node.js.yml/badge.svg " ></a >
7+ <a href =" https://img.shields.io/github/issues/Jenesius/vue-form " ><img src =" https://img.shields.io/github/issues/Jenesius/vue-form " alt =" Issue " ></a >
8+ <a href =" https://img.shields.io/github/stars/Jenesius/vue-form " ><img src =" https://img.shields.io/github/stars/Jenesius/vue-form " alt =" Stars " ></a >
9+ </p >
10+
111# Jenesius Vue Form
212Heavy form system for Vue.js ( ** Only 3 Version** ). Library provides a wide range of
313functionality and interaction with form elements.
414
5- ## Links
6- - [ Documentation] ( https://form.jenesius.com/ )
7- - [ Examples] ( https://form.jenesius.com/examples/list.html )
8- - [ GitHub] ( https://github.com/Jenesius/vue-form )
9- ## Reason For Use
15+ ## Documentation
16+
17+ To check out [ live examples] ( https://form.jenesius.com/examples/list.html ) and docs, visit [ form.jenesius.com] ( https://form.jenesius.com/ ) .
1018
11- ![ ] ( https://img.shields.io/npm/dm/jenesius-vue-form )
12- ![ ] ( https://img.shields.io/npm/dt/jenesius-vue-form )
13- ![ Greet everyone] ( https://github.com/Jenesius/vue-form/actions/workflows/node.js.yml/badge.svg )
14- ![ ] ( https://img.shields.io/github/issues/Jenesius/vue-form )
15- ![ ] ( https://img.shields.io/github/stars/Jenesius/vue-form )
19+ ## Questions and Issues
1620
17- - 💪 The functionality of the form allows you to flexibly work with dependent elements.
18- - 🤝 Create complex interfaces with lots of dependencies. One page can contain many
19- forms that will be managed from one place.
20- - ✍ Connect your own input fields to the form. This gives flexibility and
21- independence on the part of the site design.
21+ For questions and support please use [ the GitHub repo] ( https://github.com/Jenesius/vue-form ) .
2222
23- * Where the spirit does not work with the hand there is no art. * @ Leonardo da Vinci
23+ ## Quick Example
2424
2525![ Alt Text] ( ./gif-example.gif )
2626
@@ -29,12 +29,12 @@ This example demonstrates a simple use of this library using the login form as a
2929
3030``` vue
3131<template>
32- <input -field name = "login"/>
33- <input -field name = "password" type = "password"/>
32+ <form -field name = "login"/>
33+ <form -field name = "password" type = "password"/>
3434 <button @click = "handleLogin">Login</button>
3535</template>
3636<script setup>
37- import {InputField , Form} from "jenesius-vue-form";
37+ import {FormField , Form} from "jenesius-vue-form";
3838
3939const form = new Form();
4040function handleLogin() {
@@ -43,56 +43,11 @@ function handleLogin() {
4343</script>
4444```
4545
46- ## Main Form
47- To create a form, you just need to create an instance. JenesiusVueForm will do
48- most of the work for you.
49- ``` ts
50- import {Form } from " jenesius-vue-form"
51- const form = new Form ()
52- ```
53-
54- ### Main Form state
55- The reactive form state can be obtained from the ** useFormState** hook, and reactive values from
56- ** useFormValues** :
57- ``` js
58- import {useFormState , useFormValues } from " jenesius-vue-form"
59- const state = useFormState (form) // disabled changed
60- const state = useFormValues (form) // disabled changed
61- ```
62-
63- ## Proxy Form
64- You can flexibly create complex inputs (compound) using FormProxy.
65- [ More Information] ( https://github.com/Jenesius/vue-form/tree/main/examples/form-proxy )
46+ We connected two fields (login, password), arranged the corresponding types of provided libraries, industrial-level instances.
47+ a form and creating a handler for entering which takes on the value of the form. This is an example of the simplest form of use.
6648
49+ ## License
6750
68- ## Example
69- The current example shows the simplest binding of two fields to a form and working with them
70- ``` vue
71- <template>
72- <input-field name = "username"/>
73- <input-field name = "password" type = "password"/>
74-
75- <button @click = "showValues">values</button>
76- <button @click = "setUsername">set default name</button>
77- </template>
78- <script setup >
79- import {Form, InputField} from "jenesius-vue-form"
80- const form = new Form();
81-
82- // Getting values from Form
83- function showValues() {
84- console.log(form.values);
85- }
86- // Setting username
87- function setUsername() {
88- form.change({
89- username: 'Jack'
90- })
91- }
92- </script>
93- ```
51+ [ MIT] ( https://opensource.org/licenses/MIT )
9452
95- ## Full Functionality
96- I recommend going to the [ documentation site] ( http://form.jenesius.com/ ) ,
97- which provides information on
98- validation, form lock/unlock, and all the states of the form and input fields.
53+ Copyright (c) 2022-present, Jenesius
0 commit comments