<a-input
v-decorator="['customerPhone',{rules: [{required: true, message: '请输入正确的客户电话', pattern: '^[0-9]*$'}]}]"
placeholder="请输入"
:maxLength="12"
/>
input类型默认为text的时候 maxlength才有效,然后在加下数字校验