mirror of https://github.com/ElemeFE/element
MessageBox: fix type definition (#14278)
`MessageBoxData` may be a action string
b2f0958089/packages/message-box/src/main.js (L57-L62)
pull/14352/head
parent
958efaefc3
commit
85a7b02c51
|
@ -2,7 +2,7 @@ import Vue, { VNode } from 'vue'
|
|||
import { MessageType } from './message'
|
||||
|
||||
export type MessageBoxCloseAction = 'confirm' | 'cancel' | 'close'
|
||||
export type MessageBoxData = MessageBoxInputData
|
||||
export type MessageBoxData = MessageBoxInputData | MessageBoxCloseAction
|
||||
|
||||
export interface MessageBoxInputData {
|
||||
value: string,
|
||||
|
|
Loading…
Reference in New Issue