Skip to content
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

vuerify如何验证select? #15

Open
zhangangs opened this issue Feb 9, 2017 · 1 comment
Open

vuerify如何验证select? #15

zhangangs opened this issue Feb 9, 2017 · 1 comment

Comments

@zhangangs
Copy link

zhangangs commented Feb 9, 2017

js:
export default { data(){ return { loan_term:"", //借款期限 } }, vuerify:{ loan_term:['required'] }, }
html:
<select class="form-control" v-model="loan_term"> <option value="">请选择借款期限</option> <option value="1">1个月</option> <option value="2">2个月</option> <option value="3">3个月</option> <option value="4">4个月</option> <option value="5">5个月</option> </select>

@QingWei-Li
Copy link
Owner

vuerify 校验的只是数据,和组件无关

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants