Comparing version 4.0.0 to 4.0.1
{ | ||
"name": "vue-form", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Form validation for Vue.js", | ||
@@ -5,0 +5,0 @@ "main": "dist/vue-form.js", |
@@ -140,9 +140,7 @@ # vue-form | ||
```html | ||
<form-error field="fieldName" error="errorKey" show="$dirty">Error message</form-error> | ||
<form-errors field="fieldName" show="$dirty && $touched"> | ||
```html | ||
<field-messages name="name" show="$dirty && $touched"> | ||
<div slot="errorKeyA">Error message A</div> | ||
<div slot="errorKeyB">Error message B</div> | ||
</form-errors> | ||
</field-messages> | ||
``` | ||
@@ -155,4 +153,7 @@ | ||
<template slot="required" scope="state"> | ||
<span v-if="state.$touched || state.$submitted">Name is a required field</span> | ||
<span v-if="state.$touched || state.$submitted">Name is a required field</span> | ||
</template> | ||
<template slot="errorKeyB" scope="state"> | ||
<span v-if="state.$touched || state.$dirty">Error message B</span> | ||
</template> | ||
</field-messages> | ||
@@ -159,0 +160,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
115981
366