记录下antd两个标签输入时字数限制 1.Input maxLength={20},注意maxLength是number类型 <Input placeholder="张三 2019-05-17" maxLength={20} /> 2.TextArea <TextArea placeholder="请输入说明" autosize={{ minRows: 2, maxRows: 4 }} maxLength="200" />