Notification: fix unnecessary required types

pull/7995/head
Riku Inoue 2017-11-02 20:43:09 +09:00 committed by 杨奕
parent 08b80ca467
commit c1da7a5c86
1 changed files with 8 additions and 8 deletions

View File

@ -15,31 +15,31 @@ export interface ElNotificationOptions {
message: string | VNode
/** Notification type */
type: MessageType
type?: MessageType
/** Custom icon's class. It will be overridden by type */
iconClass: string
iconClass?: string
/** Custom class name for Notification */
customClass: string
customClass?: string
/** Duration before close. It will not automatically close if set 0 */
duration: number
duration?: number
/** Whether to show a close button */
showClose: boolean
showClose?: boolean
/** Whether message is treated as HTML string */
dangerouslyUseHTMLString?: boolean
/** Callback function when closed */
onClose: () => void
onClose?: () => void
/** Callback function when notification clicked */
onClick: () => void
onClick?: () => void
/** Offset from the top edge of the screen. Every Notification instance of the same moment should have the same offset */
offset: number
offset?: number
}
export interface ElNotification {