Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
b3a59814
Commit
b3a59814
authored
Dec 19, 2017
by
Leopoldthecoder
Committed by
杨奕
Dec 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Types: add missing definition for TimeSelect
parent
f7c63d99
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
23 deletions
+59
-23
types/element-ui.d.ts
types/element-ui.d.ts
+5
-1
types/time-picker.d.ts
types/time-picker.d.ts
+3
-22
types/time-select.d.ts
types/time-select.d.ts
+51
-0
No files found.
types/element-ui.d.ts
View file @
b3a59814
...
...
@@ -61,6 +61,7 @@ import { ElTag } from './tag'
import
{
ElTabs
}
from
'
./tabs
'
import
{
ElTabPane
}
from
'
./tab-pane
'
import
{
ElTimePicker
}
from
'
./time-picker
'
import
{
ElTimeSelect
}
from
'
./time-select
'
import
{
ElTooltip
}
from
'
./tooltip
'
import
{
ElTransfer
}
from
'
./transfer
'
import
{
ElTree
}
from
'
./tree
'
...
...
@@ -270,9 +271,12 @@ export class TabPane extends ElTabPane {}
/** Tag Component */
export
class
Tag
extends
ElTag
{}
/** Time
Picker and Time Select
Component */
/** Time
Picker
Component */
export
class
TimePicker
extends
ElTimePicker
{}
/** TimeSelect Component */
export
class
TimeSelect
extends
ElTimeSelect
{}
/** Tooltip Component */
export
class
Tooltip
extends
ElTooltip
{}
...
...
types/time-picker.d.ts
View file @
b3a59814
import
{
ElementUIComponent
,
ElementUIComponentSize
,
ElementUIHorizontalAlignment
}
from
'
./component
'
/** Options when el-time-picker acts like a Time Picker */
export
interface
TimePickerOptions
{
/**
* Available time range.
...
...
@@ -13,25 +12,7 @@ export interface TimePickerOptions {
format
?:
string
}
/** Options when el-time-picker acts like a Time Select */
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 */
/** TimePicker Component */
export
declare
class
ElTimePicker
extends
ElementUIComponent
{
/** Whether DatePicker is read only */
readonly
:
boolean
...
...
@@ -57,7 +38,7 @@ export declare class ElTimePicker extends ElementUIComponent {
/** Placeholder for the end time in range mode */
endPlaceholder
:
string
/** Whether to pick a time range
, only works with <el-time-picker>
*/
/** Whether to pick a time range */
isRange
:
boolean
/** Value of the picker */
...
...
@@ -70,7 +51,7 @@ export declare class ElTimePicker extends ElementUIComponent {
popperClass
:
string
/** Additional options, check the table below */
pickerOptions
:
object
pickerOptions
:
TimePickerOptions
/** Range separator */
rangeSeparator
:
string
...
...
types/time-select.d.ts
0 → 100644
View file @
b3a59814
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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment