col.d.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import { ElementUIComponent } from './component'
  2. /** Responsive column props */
  3. export interface ResponsiveColumnProperties {
  4. /** Number of column the grid spans */
  5. span: number,
  6. /** Number of spacing on the left side of the grid */
  7. offset: number
  8. }
  9. /** Responsive column property */
  10. export type ResponsiveColumn = number | ResponsiveColumnProperties
  11. /** Colunm Layout Component */
  12. export declare class ElCol extends ElementUIComponent {
  13. /** Number of column the grid spans */
  14. span: number
  15. /** Number of spacing on the left side of the grid */
  16. offset: number
  17. /** Number of columns that grid moves to the right */
  18. push: number
  19. /** Number of columns that grid moves to the left */
  20. pull: number
  21. /** <768px Responsive columns or column props object */
  22. xs: ResponsiveColumn
  23. /** ≥768px Responsive columns or column props object */
  24. sm: ResponsiveColumn
  25. /** ≥992px Responsive columns or column props object */
  26. md: ResponsiveColumn
  27. /** ≥1200px Responsive columns or column props object */
  28. lg: ResponsiveColumn
  29. /** ≥1920px Responsive columns or column props object */
  30. xl: ResponsiveColumn
  31. /** custom element tag */
  32. tag: string
  33. }