Commit 0b36f742 authored by buer's avatar buer Committed by Jikkai Xiao

Message: fix type definition of ElMessageOptions, support VNode as message type (#12018)

parent e4de2b46
import Vue from 'vue'
import Vue, {VNode} from 'vue'
export type MessageType = 'success' | 'warning' | 'info' | 'error'
......@@ -20,7 +20,7 @@ export interface CloseEventHandler {
/** Options used in Message */
export interface ElMessageOptions {
/** Message text */
message: string
message: string | VNode
/** Message type */
type?: MessageType
......
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