Dynamic setting field, how to set up validator #46
Comments
Hi @lynzz !! Thank you for your reporting. If anything, this issue is a topic of vuejs/discussion. Maybe, you will probably helpful the following
But In Currently, you need to implement validation with the I think that will support the v2.0 later. |
Thanks! 😄 |
@kazupon So are dynamic directives supported in Vue 1.x ? I'd love to use vue-validator, but if I can't apply or register directives programmatically within a component, it wouldn't fit my needs. |
Are there any updates on this?
|
Sorry, In current version (2.0-alpha.9), We don't support the dynamic validator (dynamic component). I'll plan to support. |
@lynzz @kazupon How about this? http://jsfiddle.net/6f9g2a5p/4/ Probably not the ideal way, but I can't think of another workaround. Let me know what you think. |
Please see #131 |
@kazupon thanks! Looking good. I can finally get rid of those many validator instances and use fields. |
code:
http://jsfiddle.net/lynzz/8zx3cnh6/
Business scene , think through the following settings, create a form with validation:
Encountered do not know how to set v-model and validate issues.
PS: forgive my poor English
The text was updated successfully, but these errors were encountered: