ElemeFE / ElemeFE/element

[Feature Request] Suggestion for optimizing form validation

Open
#21,861 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Existing Component
Yes

### Component Name
Form

### Description
It must set the `prop` attribute to `el-form-item` component to make validation work. Like this:
```



```
I think `prop` attribute and `model` attribute are needless. It's more intuitive if we make this work.
```





export default {
data () {
return {
rules: { name: { required: true, message: 'name is required' } }
}
}
}

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.