MessageBox: declare inputType in types (#10223)

inputType is added in source code, but not for typescript file
pull/10227/head
Ren Kun 2018-03-18 19:15:29 +08:00 committed by 杨奕
parent 3997df08fc
commit 4abeadb7c1
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,7 @@ export declare class ElMessageBoxComponent extends Vue {
showClose: boolean
inputValue: string
inputPlaceholder: string
inputType: string
inputPattern: RegExp
inputValidator: MessageBoxInputValidator
inputErrorMessage: string
@ -110,6 +111,9 @@ export interface ElMessageBoxOptions {
/** Regexp for the input */
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 */
inputValidator?: MessageBoxInputValidator