time-select.d.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import { ElementUIComponent, ElementUIComponentSize, ElementUIHorizontalAlignment } from './component'
  2. export interface TimeSelectOptions {
  3. /** Start time */
  4. start?: string,
  5. /** End time */
  6. end?: string,
  7. /** Time step */
  8. step?: string,
  9. /** Minimum time, any time before this time will be disabled */
  10. minTime?: string,
  11. /** Maximum time, any time after this time will be disabled */
  12. maxTime?: string
  13. }
  14. /** TimeSelect Component */
  15. export declare class ElTimeSelect extends ElementUIComponent {
  16. /** Whether DatePicker is read only */
  17. readonly: boolean
  18. /** Whether DatePicker is disabled */
  19. disabled: boolean
  20. /** Whether the input is editable */
  21. editable: boolean
  22. /** Whether to show clear button */
  23. clearable: boolean
  24. /** Size of Input */
  25. size: ElementUIComponentSize
  26. /** Placeholder */
  27. placeholder: string
  28. /** Value of the picker */
  29. value: string | Date
  30. /** Alignment */
  31. align: ElementUIHorizontalAlignment
  32. /** Custom class name for TimePicker's dropdown */
  33. popperClass: string
  34. /** Additional options, check the table below */
  35. pickerOptions: TimeSelectOptions
  36. /**
  37. * Focus the Input component
  38. */
  39. focus (): void
  40. }