mirror of https://github.com/ElemeFE/element
MessageBox: declare inputType in types (#10223)
inputType is added in source code, but not for typescript filepull/10227/head
parent
3997df08fc
commit
4abeadb7c1
|
@ -22,6 +22,7 @@ export declare class ElMessageBoxComponent extends Vue {
|
||||||
showClose: boolean
|
showClose: boolean
|
||||||
inputValue: string
|
inputValue: string
|
||||||
inputPlaceholder: string
|
inputPlaceholder: string
|
||||||
|
inputType: string
|
||||||
inputPattern: RegExp
|
inputPattern: RegExp
|
||||||
inputValidator: MessageBoxInputValidator
|
inputValidator: MessageBoxInputValidator
|
||||||
inputErrorMessage: string
|
inputErrorMessage: string
|
||||||
|
@ -110,6 +111,9 @@ export interface ElMessageBoxOptions {
|
||||||
/** Regexp for the input */
|
/** Regexp for the input */
|
||||||
inputPattern?: RegExp
|
inputPattern?: RegExp
|
||||||
|
|
||||||
|
/** Input Type: text, textArea, password or number */
|
||||||
|
inputType?: string
|
||||||
|
|
||||||
/** Validation function for the input. Should returns a boolean or string. If a string is returned, it will be assigned to inputErrorMessage */
|
/** Validation function for the input. Should returns a boolean or string. If a string is returned, it will be assigned to inputErrorMessage */
|
||||||
inputValidator?: MessageBoxInputValidator
|
inputValidator?: MessageBoxInputValidator
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue