不知道为啥,官方文档里竟然没写...
直接上代码
template里
<a-form-item field="repeatPassword" :rules="[{ validator: validateRepeatPassword, trigger: 'change' }]">
script里
function validateRepeatPassword(v,e){
if(v!==form.value.password) e("Repeat password do not match.")
}
具体自己理解..
标签:vue,自定义,表单,design,password,arco From: https://www.cnblogs.com/alpiny/p/16948848.html