ant design Form必填校验失败自动滚动到第一条 scrollToFirstError scrollIntoView
老规矩,话不多说,直接上实现方式注意:本帅用的版本“antd”:“4.16.13”,前提代码如下constgenerateUUID=()=>{letd=newDate().getTime();constuuid='xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx'.replace(/[xy]/g,(c:any)=>{constr=(d+Math.random()*16)%16|0;