form-item.d.ts 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import { ElementUIComponent, ElementUIComponentSize } from './component'
  2. /** FormItem Component */
  3. export declare class ElFormItem extends ElementUIComponent {
  4. /** A key of `model` of the enclosing `el-form` component */
  5. prop: string
  6. /** Label */
  7. label: string
  8. /** Width of label, e.g. '50px' */
  9. labelWidth: string
  10. /** Whether the field is required or not, will be determined by validation rules if omitted */
  11. required: boolean
  12. /** Validation rules of form */
  13. rules: object
  14. /** Field error message, set its value and the field will validate error and show this message immediately */
  15. error: string
  16. /** Whether to show the error message */
  17. showMessage: boolean
  18. /** Whether to display the error message inline with the form item */
  19. inlineMessage: boolean
  20. /** Controls the size of components in this form */
  21. size: ElementUIComponentSize
  22. /** Reset current field and remove validation result */
  23. resetField (): void
  24. /** Remove validation status of the field */
  25. clearValidate (): void
  26. }