MessageBox: fix type definition (#14278)

`MessageBoxData` may be a action string
b2f0958089/packages/message-box/src/main.js (L57-L62)
This commit is contained in:
NateScarlet 2019-02-12 16:23:07 +08:00 committed by hetech
parent 958efaefc3
commit 85a7b02c51

View File

@ -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,