mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [message-box]add type declaration of button-size (#6344)
Co-authored-by: Wiens <Huangwenxu@yimian.com.cn> Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { CSSProperties, VNode, Component } from 'vue'
|
||||
import type { ComponentSize } from '@element-plus/constants'
|
||||
|
||||
type MessageType = '' | 'success' | 'warning' | 'info' | 'error'
|
||||
|
||||
@@ -160,6 +161,9 @@ export interface ElMessageBoxOptions {
|
||||
|
||||
/** Error message when validation fails */
|
||||
inputErrorMessage?: string
|
||||
|
||||
/** Custom size of confirm and cancel buttons */
|
||||
buttonSize?: ComponentSize
|
||||
}
|
||||
|
||||
export type ElMessageBoxShortcutMethod = ((
|
||||
|
||||
Reference in New Issue
Block a user