time-picker.d.ts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. import { ElementUIComponent, ElementUIComponentSize, ElementUIHorizontalAlignment } from './component'
  2. /** Options when el-time-picker acts like a Time Picker */
  3. export interface TimePickerOptions {
  4. /**
  5. * Available time range.
  6. * e.g. `'18:30:00 - 20:30:00'`
  7. * or `['09:30:00 - 12:00:00', '14:30:00 - 18:30:00']`
  8. */
  9. selectableRange?: string | string[],
  10. /** Format of the picker */
  11. format?: string
  12. }
  13. /** Options when el-time-picker acts like a Time Select */
  14. export interface TimeSelectOptions {
  15. /** Start time */
  16. start?: string,
  17. /** End time */
  18. end?: string,
  19. /** Time step */
  20. step?: string,
  21. /** Minimum time, any time before this time will be disabled */
  22. minTime?: string,
  23. /** Maximum time, any time after this time will be disabled */
  24. maxTime?: string
  25. }
  26. /** TimePicker and Time Select Component */
  27. export declare class ElTimePicker extends ElementUIComponent {
  28. /** Whether DatePicker is read only */
  29. readonly: boolean
  30. /** Whether DatePicker is disabled */
  31. disabled: boolean
  32. /** Whether the input is editable */
  33. editable: boolean
  34. /** Whether to show clear button */
  35. clearable: boolean
  36. /** Size of Input */
  37. size: ElementUIComponentSize
  38. /** Placeholder */
  39. placeholder: string
  40. /** Value of the picker */
  41. value: string | Date
  42. /** Alignment */
  43. align: ElementUIHorizontalAlignment
  44. /** Custom class name for TimePicker's dropdown */
  45. popperClass: string
  46. /** Additional options, check the table below */
  47. pickerOptions: object
  48. }