Commit 5a895bd6 authored by agoni1212's avatar agoni1212 Committed by hetech

Message: typescript for Message[type] with options (#14968)

Message: typescript for Message[type] with options
parent 15b5e316
......@@ -57,14 +57,26 @@ export interface ElMessage {
/** Show a success message */
success (text: string): ElMessageComponent
/** Show a success message with options */
success (options: ElMessageOptions): ElMessageComponent
/** Show a warning message */
warning (text: string): ElMessageComponent
/** Show a warning message with options */
warning (options: ElMessageOptions): ElMessageComponent
/** Show an info message */
info (text: string): ElMessageComponent
/** Show an info message with options */
info (options: ElMessageOptions): ElMessageComponent
/** Show an error message */
error (text: string): ElMessageComponent
/** Show an error message with options */
error (options: ElMessageOptions): ElMessageComponent
}
declare module 'vue/types/vue' {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment