<van-field
:required="true"
v-model="form.phone"
maxlength="11"
type="tel"
label="手机号"
placeholder="请输入手机号用于接收短信"
:rules="[{ required: true, message: '请输入手机号用于接收短信' },{ pattern: /^1[3456789]\d{9}$/, message: '手机号码格式错误!'}]"
/>
vant手机号校验
最新推荐文章于 2024-07-03 17:20:22 发布