diff --git a/types/affix.d.ts b/types/affix.d.ts index a255abbf2dc..f9a2af20f60 100644 --- a/types/affix.d.ts +++ b/types/affix.d.ts @@ -4,5 +4,5 @@ import { ElementUIComponent } from './component' export declare class ElAffix extends ElementUIComponent { offsetBottom?: number offsetTop?: number - target?: function + target?: () => HTMLElement } diff --git a/types/data-mapper.d.ts b/types/data-mapper.d.ts index 638aefc26a4..c761938ebd4 100644 --- a/types/data-mapper.d.ts +++ b/types/data-mapper.d.ts @@ -9,7 +9,7 @@ export declare class ElDataMapper extends ElementUIComponent { columns:object[] /** formatter col*/ - formatter:function (data,col,index) + formatter: (data: object,col: object,index: number) => T /** The placeholder of data-mapper content */ placeholder:string diff --git a/types/element-ui.d.ts b/types/element-ui.d.ts index 5c6e71999d9..72440cf2bb3 100644 --- a/types/element-ui.d.ts +++ b/types/element-ui.d.ts @@ -135,6 +135,9 @@ export const Message: ElMessage /** A set of modal boxes simulating system message box, mainly for message prompt, success tips, error messages and query information */ export const MessageBox: ElMessageBox +/** A set of modal boxes simulating system message box center, mainly for message prompt, success tips, error messages and query information */ +export const MessageBoxCenter: ElMessageBoxCenter + /** Displays a global notification message at the upper right corner of the page */ export const Notification: ElNotification @@ -371,9 +374,6 @@ export class LrContainer extends ElLrContainer {} /** LoadingButton Component */ export class LoadingButton extends ElLoadingButton {} -/** MessageBoxCenter Component */ -export class MessageBoxCenter extends ElMessageBoxCenter {} - /** TabsDotted Component */ export class TabsDotted extends ElTabsDotted {} diff --git a/types/loading-button.d.ts b/types/loading-button.d.ts index 39d63db8dc5..9665ad537aa 100644 --- a/types/loading-button.d.ts +++ b/types/loading-button.d.ts @@ -2,5 +2,5 @@ import { ElButton } from './button' /** LoadingButton Component */ export declare class ElLoadingButton extends ElButton { - loadingClick: function(): Promise + loadingClick: () => Promise } diff --git a/types/panel.d.ts b/types/panel.d.ts index 5650f416c52..499d3d0f081 100644 --- a/types/panel.d.ts +++ b/types/panel.d.ts @@ -14,7 +14,7 @@ export declare class ElPanel extends ElementUIComponent { /** bodyPadding */ bodyPadding: string -| + /** Panel width */ width: string | number }