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 @   letmedown  阅读(5308)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
· Pantheons:用 TypeScript 打造主流大模型对话的一站式集成库
点击右上角即可分享
微信分享提示