docs(Field): add required demo

This commit is contained in:
陈嘉涵
2020-01-09 14:38:39 +08:00
committed by neverland
parent 6d3d976b50
commit 47e326fb2a
4 changed files with 40 additions and 5 deletions
+2
View File
@@ -67,12 +67,14 @@
<van-cell-group>
<van-field
v-model="username"
required
:label="$t('username')"
:placeholder="$t('usernamePlaceholder')"
error
/>
<van-field
v-model="phone2"
required
:label="$t('phone')"
:placeholder="$t('phonePlaceholder')"
:error-message="$t('phoneError')"