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

This commit is contained in:
buer 2018-07-17 14:17:05 +08:00 committed by Jikkai Xiao
parent e4de2b46bf
commit 0b36f74233

4
types/message.d.ts vendored
View File

@ -1,4 +1,4 @@
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