Commit 85a7b02c authored by NateScarlet's avatar NateScarlet Committed by hetech

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
parent 958efaef
...@@ -2,7 +2,7 @@ import Vue, { VNode } from 'vue' ...@@ -2,7 +2,7 @@ import Vue, { VNode } from 'vue'
import { MessageType } from './message' import { MessageType } from './message'
export type MessageBoxCloseAction = 'confirm' | 'cancel' | 'close' export type MessageBoxCloseAction = 'confirm' | 'cancel' | 'close'
export type MessageBoxData = MessageBoxInputData export type MessageBoxData = MessageBoxInputData | MessageBoxCloseAction
export interface MessageBoxInputData { export interface MessageBoxInputData {
value: string, value: string,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment