From 4abeadb7c165d7506cd58ea3c867ff476b29ecb8 Mon Sep 17 00:00:00 2001 From: Ren Kun Date: Sun, 18 Mar 2018 19:15:29 +0800 Subject: [PATCH] MessageBox: declare inputType in types (#10223) inputType is added in source code, but not for typescript file --- types/message-box.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/message-box.d.ts b/types/message-box.d.ts index 54ded5f43..008a28221 100644 --- a/types/message-box.d.ts +++ b/types/message-box.d.ts @@ -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