time-picker.d.ts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import { ElementUIComponent, ElementUIComponentSize, ElementUIHorizontalAlignment } from './component'
  2. export interface TimePickerOptions {
  3. /**
  4. * Available time range.
  5. * e.g. `'18:30:00 - 20:30:00'`
  6. * or `['09:30:00 - 12:00:00', '14:30:00 - 18:30:00']`
  7. */
  8. selectableRange?: string | string[],
  9. /** Format of the picker */
  10. format?: string
  11. }
  12. /** TimePicker Component */
  13. export declare class ElTimePicker extends ElementUIComponent {
  14. /** Whether DatePicker is read only */
  15. readonly: boolean
  16. /** Whether DatePicker is disabled */
  17. disabled: boolean
  18. /** Whether the input is editable */
  19. editable: boolean
  20. /** Whether to show clear button */
  21. clearable: boolean
  22. /** Size of Input */
  23. size: ElementUIComponentSize
  24. /** Placeholder */
  25. placeholder: string
  26. /** Placeholder for the start time in range mode */
  27. startPlaceholder: string
  28. /** Placeholder for the end time in range mode */
  29. endPlaceholder: string
  30. /** Whether to pick a time range */
  31. isRange: boolean
  32. /** Value of the picker */
  33. value: string | Date
  34. /** Alignment */
  35. align: ElementUIHorizontalAlignment
  36. /** Custom class name for TimePicker's dropdown */
  37. popperClass: string
  38. /** Additional options, check the table below */
  39. pickerOptions: TimePickerOptions
  40. /** Range separator */
  41. rangeSeparator: string
  42. /**
  43. * Focus the Input component
  44. */
  45. focus (): void
  46. }