From 85a7b02c51a43ee0e67e250559459f418e75764a Mon Sep 17 00:00:00 2001 From: NateScarlet Date: Tue, 12 Feb 2019 16:23:07 +0800 Subject: [PATCH] MessageBox: fix type definition (#14278) `MessageBoxData` may be a action string https://github.com/ElemeFE/element/blob/b2f0958089a197907afdbea450a9faec69b48f02/packages/message-box/src/main.js#L57-L62 --- types/message-box.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/message-box.d.ts b/types/message-box.d.ts index 0622c2b23..c3acc3e14 100644 --- a/types/message-box.d.ts +++ b/types/message-box.d.ts @@ -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,