mirror of https://github.com/ElemeFE/element
Types: add missing definition for TimeSelect
parent
f7c63d993e
commit
b3a5981461
|
@ -61,6 +61,7 @@ import { ElTag } from './tag'
|
||||||
import { ElTabs } from './tabs'
|
import { ElTabs } from './tabs'
|
||||||
import { ElTabPane } from './tab-pane'
|
import { ElTabPane } from './tab-pane'
|
||||||
import { ElTimePicker } from './time-picker'
|
import { ElTimePicker } from './time-picker'
|
||||||
|
import { ElTimeSelect } from './time-select'
|
||||||
import { ElTooltip } from './tooltip'
|
import { ElTooltip } from './tooltip'
|
||||||
import { ElTransfer } from './transfer'
|
import { ElTransfer } from './transfer'
|
||||||
import { ElTree } from './tree'
|
import { ElTree } from './tree'
|
||||||
|
@ -270,9 +271,12 @@ export class TabPane extends ElTabPane {}
|
||||||
/** Tag Component */
|
/** Tag Component */
|
||||||
export class Tag extends ElTag {}
|
export class Tag extends ElTag {}
|
||||||
|
|
||||||
/** Time Picker and Time Select Component */
|
/** TimePicker Component */
|
||||||
export class TimePicker extends ElTimePicker {}
|
export class TimePicker extends ElTimePicker {}
|
||||||
|
|
||||||
|
/** TimeSelect Component */
|
||||||
|
export class TimeSelect extends ElTimeSelect {}
|
||||||
|
|
||||||
/** Tooltip Component */
|
/** Tooltip Component */
|
||||||
export class Tooltip extends ElTooltip {}
|
export class Tooltip extends ElTooltip {}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import { ElementUIComponent, ElementUIComponentSize, ElementUIHorizontalAlignment } from './component'
|
import { ElementUIComponent, ElementUIComponentSize, ElementUIHorizontalAlignment } from './component'
|
||||||
|
|
||||||
/** Options when el-time-picker acts like a Time Picker */
|
|
||||||
export interface TimePickerOptions {
|
export interface TimePickerOptions {
|
||||||
/**
|
/**
|
||||||
* Available time range.
|
* Available time range.
|
||||||
|
@ -13,25 +12,7 @@ export interface TimePickerOptions {
|
||||||
format?: string
|
format?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Options when el-time-picker acts like a Time Select */
|
/** TimePicker 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
|
|
||||||
}
|
|
||||||
|
|
||||||
/** TimePicker and Time Select Component */
|
|
||||||
export declare class ElTimePicker extends ElementUIComponent {
|
export declare class ElTimePicker extends ElementUIComponent {
|
||||||
/** Whether DatePicker is read only */
|
/** Whether DatePicker is read only */
|
||||||
readonly: boolean
|
readonly: boolean
|
||||||
|
@ -57,7 +38,7 @@ export declare class ElTimePicker extends ElementUIComponent {
|
||||||
/** Placeholder for the end time in range mode */
|
/** Placeholder for the end time in range mode */
|
||||||
endPlaceholder: string
|
endPlaceholder: string
|
||||||
|
|
||||||
/** Whether to pick a time range, only works with <el-time-picker> */
|
/** Whether to pick a time range */
|
||||||
isRange: boolean
|
isRange: boolean
|
||||||
|
|
||||||
/** Value of the picker */
|
/** Value of the picker */
|
||||||
|
@ -70,7 +51,7 @@ export declare class ElTimePicker extends ElementUIComponent {
|
||||||
popperClass: string
|
popperClass: string
|
||||||
|
|
||||||
/** Additional options, check the table below */
|
/** Additional options, check the table below */
|
||||||
pickerOptions: object
|
pickerOptions: TimePickerOptions
|
||||||
|
|
||||||
/** Range separator */
|
/** Range separator */
|
||||||
rangeSeparator: string
|
rangeSeparator: string
|
||||||
|
|
|
@ -0,0 +1,51 @@
|
||||||
|
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
|
||||||
|
}
|
Loading…
Reference in New Issue