time-picker.d.ts 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. /** Placeholder for the start time in range mode */
  41. startPlaceholder: string
  42. /** Placeholder for the end time in range mode */
  43. endPlaceholder: string
  44. /** Whether to pick a time range, only works with <el-time-picker> */
  45. isRange: boolean
  46. /** Value of the picker */
  47. value: string | Date
  48. /** Alignment */
  49. align: ElementUIHorizontalAlignment
  50. /** Custom class name for TimePicker's dropdown */
  51. popperClass: string
  52. /** Additional options, check the table below */
  53. pickerOptions: object
  54. /** Range separator */
  55. rangeSeparator: string
  56. }