mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-30 19:27:44 +08:00
Message: fix type definition of ElMessageOptions, support VNode as message type (#12018)
This commit is contained in:
parent
e4de2b46bf
commit
0b36f74233
4
types/message.d.ts
vendored
4
types/message.d.ts
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user