element-ui中Form表单加红色*的方法

60 阅读1分钟

image.png

只需要在el-form-item标签中,加上:require="true"就可以了 image.png