mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-02 20:28:52 +08:00
57 lines
1.2 KiB
TypeScript
57 lines
1.2 KiB
TypeScript
import { ElementUIComponent, ElementUIComponentSize, ElementUIHorizontalAlignment } from './component'
|
|
|
|
export interface TimeSelectOptions {
|
|
/** Start time */
|
|
start?: string,
|
|
|
|
/** End time */
|
|
end?: string,
|
|
|
|
/** Time step */
|
|
step?: string,
|
|
|
|
/** Minimum time, any time before this time will be disabled */
|
|
minTime?: string,
|
|
|
|
/** Maximum time, any time after this time will be disabled */
|
|
maxTime?: string
|
|
}
|
|
|
|
/** TimeSelect Component */
|
|
export declare class ElTimeSelect extends ElementUIComponent {
|
|
/** Whether DatePicker is read only */
|
|
readonly: boolean
|
|
|
|
/** Whether DatePicker is disabled */
|
|
disabled: boolean
|
|
|
|
/** Whether the input is editable */
|
|
editable: boolean
|
|
|
|
/** Whether to show clear button */
|
|
clearable: boolean
|
|
|
|
/** Size of Input */
|
|
size: ElementUIComponentSize
|
|
|
|
/** Placeholder */
|
|
placeholder: string
|
|
|
|
/** Value of the picker */
|
|
value: string | Date
|
|
|
|
/** Alignment */
|
|
align: ElementUIHorizontalAlignment
|
|
|
|
/** Custom class name for TimePicker's dropdown */
|
|
popperClass: string
|
|
|
|
/** Additional options, check the table below */
|
|
pickerOptions: TimeSelectOptions
|
|
|
|
/**
|
|
* Focus the Input component
|
|
*/
|
|
focus (): void
|
|
}
|