descriptions.d.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import { ElementUIComponent } from './component'
  2. import { VNode } from 'vue'
  3. interface ElDescriptionsSlots {
  4. /* title slot: custom title, display on the top left */
  5. title: VNode[]
  6. /* title slot: custom extra area, display on the top right */
  7. extra: VNode[]
  8. [key: string]: VNode[]
  9. }
  10. /** Display multiple fields in list form. **/
  11. export declare class ElDescriptions extends ElementUIComponent {
  12. /* with or without border */
  13. border: boolean
  14. /* numbers of Descriptions Item in one line */
  15. column: number
  16. /* direction of list */
  17. direction: 'vertical' | 'horizontal'
  18. /* size of list */
  19. size: 'medium' | 'small' | 'mini'
  20. /* title text, display on the top left */
  21. title: string
  22. /* extra text, display on the top right */
  23. extra: string
  24. /* change default props colon value of Descriptions Item */
  25. colon: boolean
  26. /* custom label class name */
  27. labelClassName: string
  28. /* custom content class name */
  29. contentClassName: string
  30. /* custom label style */
  31. labelStyle: object
  32. /* custom content style */
  33. contentStyle: object
  34. $slots: ElDescriptionsSlots
  35. }