ant-vue input type=number时,max-length长度设置失效

 <a-input
              v-decorator="['customerPhone',{rules: [{required: true, message: '请输入正确的客户电话', pattern: '^[0-9]*$'}]}]"
              placeholder="请输入"
              :maxLength="12"
              />

input类型默认为text的时候 maxlength才有效,然后在加下数字校验

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章