首页 > 其他分享 >Ant Design Vue 表单之a-input属性

Ant Design Vue 表单之a-input属性

时间:2022-08-31 13:12:22浏览次数:69  
标签:case use Vue Ant Design maxLength input

<a-form-item label="姓名">
<a-input v-model.trim="name" placeholder="" :max-length='10'  :read-only='true' />
</a-form-item>

注意1:在官网中关于a-input的属性的说明是

参数                      说明                              类型

----------------------------------------------------------------------------

maxlength            最大长度                       number

 

使用方法如上所示。否则报错

Prop "maxlength" is passed to component <Anonymous>, but the declared prop name is "maxLength". Note that HTML attributes are case-insensitive and camelCased props need to use their kebab-case equivalents when using in-DOM templates. You should probably use "max-length" instead of "maxLength".

 

    

 

标签:case,use,Vue,Ant,Design,maxLength,input
From: https://www.cnblogs.com/javaeye235/p/16642725.html

相关文章