mirror of https://github.com/ElemeFE/element
Chore: declare focus method in form component types (#10221)
parent
84bb3397cb
commit
3997df08fc
|
@ -50,4 +50,9 @@ export declare class ElAutocomplete extends ElementUIComponent {
|
||||||
|
|
||||||
/** Whether show suggestions when input focus */
|
/** Whether show suggestions when input focus */
|
||||||
triggerOnFocus: boolean
|
triggerOnFocus: boolean
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Focus the Input component
|
||||||
|
*/
|
||||||
|
focus (): void
|
||||||
}
|
}
|
||||||
|
|
|
@ -116,4 +116,9 @@ export declare class ElDatePicker extends ElementUIComponent {
|
||||||
|
|
||||||
/** name for the inner native input */
|
/** name for the inner native input */
|
||||||
name: string
|
name: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Focus the Input component
|
||||||
|
*/
|
||||||
|
focus (): void
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,4 +33,9 @@ export declare class ElInputNumber extends ElementUIComponent {
|
||||||
|
|
||||||
/** Same as name in native input */
|
/** Same as name in native input */
|
||||||
name: string
|
name: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Focus the Input component
|
||||||
|
*/
|
||||||
|
focus (): void
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,4 +74,9 @@ export declare class ElInput extends ElementUIComponent {
|
||||||
|
|
||||||
/** Same as form in native input */
|
/** Same as form in native input */
|
||||||
form: string
|
form: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Focus the Input component
|
||||||
|
*/
|
||||||
|
focus (): void
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,4 +68,9 @@ export declare class ElSelect extends ElementUIComponent {
|
||||||
|
|
||||||
/** Select first matching option on enter key. Use with filterable or remote */
|
/** Select first matching option on enter key. Use with filterable or remote */
|
||||||
defaultFirstOption: boolean
|
defaultFirstOption: boolean
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Focus the Input component
|
||||||
|
*/
|
||||||
|
focus (): void
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,4 +55,9 @@ export declare class ElTimePicker extends ElementUIComponent {
|
||||||
|
|
||||||
/** Range separator */
|
/** Range separator */
|
||||||
rangeSeparator: string
|
rangeSeparator: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Focus the Input component
|
||||||
|
*/
|
||||||
|
focus (): void
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,4 +48,9 @@ export declare class ElTimeSelect extends ElementUIComponent {
|
||||||
|
|
||||||
/** Additional options, check the table below */
|
/** Additional options, check the table below */
|
||||||
pickerOptions: TimeSelectOptions
|
pickerOptions: TimeSelectOptions
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Focus the Input component
|
||||||
|
*/
|
||||||
|
focus (): void
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue