Open liucc1986 opened 8 years ago
一个输入框,比如我想校验为email, var userSchema = new Schema({ email: { required: true }, password: { required: true, minLength: 6, maxLength: 20 } });
使用 pattern 属性,看这个文档: https://github.com/ElemeFE/vue-desktop/tree/master/docs/schema
发现校验只在blur的时候触发,怎样自定义,比如在点击提交按钮的时候。不吝赐教
一个输入框,比如我想校验为email, var userSchema = new Schema({ email: { required: true }, password: { required: true, minLength: 6, maxLength: 20 } });