x-form
x-form
Props
| name | type | default | description | required version |
| model | object | {} | form data model | -- |
Functions
| name | params | description | required version |
| validate | (valid, invalidFields) | form validate method, will return a function which has params is valid & invalidFields | |
| resetFields | form reset method, reset all fields to initial value & clear form validation | ||
| clearValidate | form clear validation method, which can pass field's prop or Array props as params |
x-form-field
Variables
x-form-field
Props
| name | type | default | description | required version |
| prop | string | form field key, required to bind key into form model | -- | |
| rules | array object | validator rules for form field, [async-validator](https://github.com/yiminghe/async-validator) | -- | |
| required | boolean | validate for required alias | -- | |
| message | string | validate for required message | -- |
Variables
| name | default | description | inherited name |
| @form-preview-button-primary-color | #0BB20C | -- |