|
2 | 2 |
|
3 | 3 | ### Form
|
4 | 4 |
|
5 |
| -| Property | Description | Type | Default Value | |
6 |
| -| --- | --- | --- | --- | |
7 |
| -| form | Decorated by `Form.create()` will be automatically set `this.form` property, so just pass to form. If you use the template syntax, you can use `this.$form.createForm(this, options)` | object | n/a | |
8 |
| -| hideRequiredMark | Hide required mark of all form items | Boolean | false | |
9 |
| -| layout | Define form layout | 'horizontal'\|'vertical'\|'inline' | 'horizontal' | |
10 |
| -| labelCol | The layout of label. You can set `span` `offset` to something like `{span: 3, offset: 12}` or `sm: {span: 3, offset: 12}` same as with `<Col>` | [object](/components/grid/#Col) | | |
11 |
| -| wrapperCol | The layout for input controls, same as `labelCol` | [object](/components/grid/#Col) | | |
12 |
| -| autoFormCreate(deprecated) | Automate Form.create, Recommended for use under the `template` component, and cannot be used with `Form.create()`. You should use `$form.createForm` to instead it after 1.1.9. | Function(form) | | |
13 |
| -| options(deprecated) | The `options` corresponding to `Form.create(options)`. You should use `$form.createForm` to instead it after 1.1.9. | Object | {} | |
| 5 | +| Property | Description | Type | Default Value | Version | |
| 6 | +| --- | --- | --- | --- | --- | |
| 7 | +| form | Decorated by `Form.create()` will be automatically set `this.form` property, so just pass to form. If you use the template syntax, you can use `this.$form.createForm(this, options)` | object | n/a | | |
| 8 | +| hideRequiredMark | Hide required mark of all form items | Boolean | false | | |
| 9 | +| layout | Define form layout | 'horizontal'\|'vertical'\|'inline' | 'horizontal' | | |
| 10 | +| labelAlign | text align of label of all items | 'left' \| 'right' | 'right' | 1.5.0 | |
| 11 | +| labelCol | The layout of label. You can set `span` `offset` to something like `{span: 3, offset: 12}` or `sm: {span: 3, offset: 12}` same as with `<Col>` | [object](/components/grid/#Col) | | | |
| 12 | +| wrapperCol | The layout for input controls, same as `labelCol` | [object](/components/grid/#Col) | | | |
| 13 | +| autoFormCreate(deprecated) | Automate Form.create, Recommended for use under the `template` component, and cannot be used with `Form.create()`. You should use `$form.createForm` to instead it after 1.1.9. | Function(form) | | | |
| 14 | +| options(deprecated) | The `options` corresponding to `Form.create(options)`. You should use `$form.createForm` to instead it after 1.1.9. | Object | {} | 1.1.9 | |
| 15 | +| colon | change default props colon value of Form.Item (only effective when prop layout is horizontal) | boolean | true | 1.5.0 | |
14 | 16 |
|
15 | 17 | ### Events
|
16 | 18 |
|
@@ -173,17 +175,19 @@ After wrapped by `getFieldDecorator` or `v-decorator`, `value`(or other property
|
173 | 175 |
|
174 | 176 | Note: If Form.Item has multiple children that had been decorated by `getFieldDecorator` or `v-decorator`, `help` and `required` and `validateStatus` can't be generated automatically.
|
175 | 177 |
|
176 |
| -| Property | Description | Type | Default Value | |
177 |
| -| --- | --- | --- | --- | |
178 |
| -| colon | Used with `label`, whether to display `:` after label text. | boolean | true | |
179 |
| -| extra | The extra prompt message. It is similar to help. Usage example: to display error message and prompt message at the same time. | string\|slot | | |
180 |
| -| hasFeedback | Used with `validateStatus`, this option specifies the validation status icon. Recommended to be used only with `Input`. | boolean | false | |
181 |
| -| help | The prompt message. If not provided, the prompt message will be generated by the validation rule. | string\|slot | | |
182 |
| -| label | Label text | string\|slot | | |
183 |
| -| labelCol | The layout of label. You can set `span` `offset` to something like `{span: 3, offset: 12}` or `sm: {span: 3, offset: 12}` same as with `<Col>` | [object](/components/grid/#Col) | | |
184 |
| -| required | Whether provided or not, it will be generated by the validation rule. | boolean | false | |
185 |
| -| validateStatus | The validation status. If not provided, it will be generated by validation rule. options: 'success' 'warning' 'error' 'validating' | string | | |
186 |
| -| wrapperCol | The layout for input controls, same as `labelCol` | [object](/components/grid/#Col) | | |
| 178 | +| Property | Description | Type | Default Value | Version | |
| 179 | +| --- | --- | --- | --- | --- | |
| 180 | +| colon | Used with `label`, whether to display `:` after label text. | boolean | true | | |
| 181 | +| extra | The extra prompt message. It is similar to help. Usage example: to display error message and prompt message at the same time. | string\|slot | | | |
| 182 | +| hasFeedback | Used with `validateStatus`, this option specifies the validation status icon. Recommended to be used only with `Input`. | boolean | false | | |
| 183 | +| help | The prompt message. If not provided, the prompt message will be generated by the validation rule. | string\|slot | | | |
| 184 | +| htmlFor | Set sub label `htmlFor`. | string | | 1.5.0 | |
| 185 | +| label | Label text | string\|slot | | | |
| 186 | +| labelCol | The layout of label. You can set `span` `offset` to something like `{span: 3, offset: 12}` or `sm: {span: 3, offset: 12}` same as with `<Col>` | [object](/components/grid/#Col) | | | |
| 187 | +| labelAlign | text align of label | 'left' \| 'right' | 'right' | 1.5.0 | |
| 188 | +| required | Whether provided or not, it will be generated by the validation rule. | boolean | false | | |
| 189 | +| validateStatus | The validation status. If not provided, it will be generated by validation rule. options: 'success' 'warning' 'error' 'validating' | string | | | |
| 190 | +| wrapperCol | The layout for input controls, same as `labelCol` | [object](/components/grid/#Col) | | | |
187 | 191 |
|
188 | 192 | ### Validation Rules
|
189 | 193 |
|
|
0 commit comments