vue表单验证不通过给页面元素标红色
设置元素ref
<van-col ref="aaa" span="24" >这是内容</van-col>
修改绑定ref元素的样式
$this.$refs'aaa'.$el.style.color='red'; //此处refs可能是多个 选第一个
return false;
<van-col ref="aaa" span="24" >这是内容</van-col>
$this.$refs'aaa'.$el.style.color='red'; //此处refs可能是多个 选第一个
return false;