2.2.0 • Published 10 months ago

el-form-validator v2.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
10 months ago

form-validator

use (element-ui)

import validator from 'el-form-validator';

export default {
    data () {
        return {
            rules: {
                column: {
                    rules: 'required|min:11|max:11',
                    validator: validator.verification,
                    trigger: 'blur'
                }            
            }
        }
    }
}

or

import validator from 'el-form-validator';

validator.valid(rules, value)

validator.valid('required|max:10|min:6', '123456'); // return true

validator.valid('required|max:10|min:6', '12'); // return error message

make

let data = {
    name: '',
    ...
}

let rules = {
    name: 'required|max:10|min:6',
    ...
}
// return Validator
validator.make(data, rules);

validator rule

laravel 5.8#validation

2.2.0

10 months ago

2.1.6

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago