vuelidate
絮状 (Vuelidate)
Simple, lightweight model-based validation for Vue.js 2.0
Vue.js 2.0的简单,轻量级基于模型的验证
Features & characteristics:
特点
Model based Decoupled from templates Dependency free, minimalistic library Support for collection validations Support for nested models Contextified valdiators Easy to use with custom validators (e.g. Moment.js) Support for function composition Validates different data sources: Vuex getters, computed values, etc.
基于模型的模板与模板解耦无依赖的简约库支持集合验证支持嵌套模型情境化的valdiators易于与自定义验证程序(例如Moment.js)一起使用支持函数组成验证不同的数据源:Vuex getter,计算值等。