antd的form自定义校验validator

518 阅读1分钟

由于业务需求,要实现多选只能选两个。利用form的validator方法,配合validateTrigger实现

image.png

image.png