mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-16 11:44:01 +08:00
update typings
This commit is contained in:
committed by
Black Wayne
parent
4f9515494c
commit
1e95e51f9b
17
types/date-picker.d.ts
vendored
17
types/date-picker.d.ts
vendored
@@ -64,7 +64,7 @@ export interface DatePickerOptions {
|
||||
/** DatePicker Component */
|
||||
export declare class ElDatePicker extends ElementUIComponent {
|
||||
/** The value of the date picker */
|
||||
value: Date | Date[]
|
||||
value: Date | string | Date[] | string[]
|
||||
|
||||
/** Whether DatePicker is read only */
|
||||
readonly: boolean
|
||||
@@ -84,6 +84,12 @@ export declare class ElDatePicker extends ElementUIComponent {
|
||||
/** Placeholder */
|
||||
placeholder: string
|
||||
|
||||
/** Placeholder for the start date in range mode */
|
||||
startPlaceholder: string
|
||||
|
||||
/** Placeholder for the end date in range mode */
|
||||
endPlaceholder: string
|
||||
|
||||
/** Type of the picker */
|
||||
type: DatePickerType
|
||||
|
||||
@@ -101,4 +107,13 @@ export declare class ElDatePicker extends ElementUIComponent {
|
||||
|
||||
/** Range separator */
|
||||
rangeSeparator: string
|
||||
|
||||
/** Default date of the calendar */
|
||||
defaultValue: Date | number | string
|
||||
|
||||
/** Format of binding value. If not specified, the binding value will be a Date object */
|
||||
valueFormat: string
|
||||
|
||||
/** name for the inner native input */
|
||||
name: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user