{"id":13536230,"url":"https://github.com/MetinSeylan/Vue-Easy-Validator","last_synced_at":"2025-04-02T02:32:49.209Z","repository":{"id":57395709,"uuid":"72347965","full_name":"MetinSeylan/Vue-Easy-Validator","owner":"MetinSeylan","description":"Easy form validation plugin","archived":false,"fork":false,"pushed_at":"2016-10-30T13:11:03.000Z","size":45,"stargazers_count":24,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-09-19T19:51:24.217Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://metinseylan.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MetinSeylan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-30T12:26:26.000Z","updated_at":"2022-10-15T18:52:27.000Z","dependencies_parsed_at":"2022-09-10T00:20:19.069Z","dependency_job_id":null,"html_url":"https://github.com/MetinSeylan/Vue-Easy-Validator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MetinSeylan%2FVue-Easy-Validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MetinSeylan%2FVue-Easy-Validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MetinSeylan%2FVue-Easy-Validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MetinSeylan%2FVue-Easy-Validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MetinSeylan","download_url":"https://codeload.github.com/MetinSeylan/Vue-Easy-Validator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222795273,"owners_count":17038797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T09:00:36.198Z","updated_at":"2024-11-03T01:30:50.403Z","avatar_url":"https://github.com/MetinSeylan.png","language":"JavaScript","funding_links":[],"categories":["实用库","Awesome Vue.js [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)"],"sub_categories":["Libraries \u0026 Plugins"],"readme":"# Vue-Easy-Validator\nEasy form validator, bridge of vee-validate\n\n## Install\n\n  ``` bash\n  npm install vue-easy-validator --save\n  ```\n  \n  ``` js\n  import VueEasyValidator from 'vue-easy-validator'\n  \n  Vue.use(VueEasyValidator)\n  ```\n\n## Usage\n\n### Template\n``` html\n  \u003cinput v-model=\"form.$fields.email\" type=\"text\"\u003e\n  \u003cp v-if=\"form.$errors.has('email')\"\u003e{{form.$errors.first('email')}}\u003c/p\u003e\n  \u003cinput v-model=\"form.$fields.password\" type=\"password\"\u003e\n  \u003cp v-if=\"form.$errors.has('password')\"\u003e{{form.$errors.first('password')}}\u003c/p\u003e\n  ```\n  \n### Script\n\n  ``` js\nnew Vue({\n        data(){\n            return{\n                form: this.$form({\n                    email: {\n                        rule: 'email|required',\n                        value: 'imamhatipler kapatılsın' // =\u003e set default value\n                    },\n                    password: {\n                        rule: 'required|min:3',\n                        value: null\n                    }\n                })\n            }\n        },\n        mounted(){\n            console.log(this.form.$fields); // =\u003e Form values (dynamic)\n            console.log(this.form.$rules); // =\u003e Form rules (dynamic)\n            console.log(this.form.$errors); // Form errors (instance of vee-validate errorBag)\n            console.log(this.$validator); // =\u003e vee-validate instance\n        }\n    })\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMetinSeylan%2FVue-Easy-Validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMetinSeylan%2FVue-Easy-Validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMetinSeylan%2FVue-Easy-Validator/lists"}