mirror of https://github.com/ElemeFE/element
Message: fix type definition of ElMessageOptions, support VNode as message type (#12018)
parent
e4de2b46bf
commit
0b36f74233
|
@ -1,4 +1,4 @@
|
||||||
import Vue from 'vue'
|
import Vue, {VNode} from 'vue'
|
||||||
|
|
||||||
export type MessageType = 'success' | 'warning' | 'info' | 'error'
|
export type MessageType = 'success' | 'warning' | 'info' | 'error'
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ export interface CloseEventHandler {
|
||||||
/** Options used in Message */
|
/** Options used in Message */
|
||||||
export interface ElMessageOptions {
|
export interface ElMessageOptions {
|
||||||
/** Message text */
|
/** Message text */
|
||||||
message: string
|
message: string | VNode
|
||||||
|
|
||||||
/** Message type */
|
/** Message type */
|
||||||
type?: MessageType
|
type?: MessageType
|
||||||
|
|
Loading…
Reference in New Issue