The element component verifies that the input box is not only a numeric type, but also ensures that the minimum number of digits is 6 digits. How should it be implemented?

rules: [{required: true, message: "cannot be empty", trigger: "blur"}, {min: 6, message:" at least 6 digits", trigger: "blur"}, {type:" number", message: "Please enter numbers", trigger: "blur"}]
< el-input vMutel model.number = "model" > < / el-input >
Why is it incorrect?

Mar.09,2021

element form components
see Custom check rules to meet your needs

Menu