mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-01 19:57:48 +08:00
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:
parent
958efaefc3
commit
85a7b02c51
2
types/message-box.d.ts
vendored
2
types/message-box.d.ts
vendored
@ -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
Block a user