-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Added vee-validate example #1889
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Added example for vee-validate and fixed example for vuelidate state property
Codecov Report
@@ Coverage Diff @@
## dev #1889 +/- ##
=====================================
Coverage 61.2% 61.2%
=====================================
Files 154 154
Lines 2882 2882
Branches 797 797
=====================================
Hits 1764 1764
Misses 802 802
Partials 316 316 Continue to review full report at Codecov.
|
Of note I'm excluding the steps on the application setup of vee-validate because I felt it was better to leave that with them. I hope that is clear for the example as the vuelidate one skips those steps as well. |
<b-form-select id="exampleInput2" | ||
:options="foods" | ||
v-validate="{required: true}" | ||
:state="validateState('form.foods')" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where this method from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reviewing. I wrote it, but it didn't end up in the patch. I've updated the doc to include it.
</b-form-group> | ||
<b-button type="submit" | ||
variant="primary" | ||
:disabled="$v.form.$invalid"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$v
is Vuelidate
related, so here must be vee-validate
form state check
Added example for vee-validate and fixed example for vuelidate state property