Ant Design Vue 表单之a-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".

 

    

 

posted @ 2022-08-31 13:00  letmedown  阅读(4761)  评论(0编辑  收藏  举报