From 25eef1abbf9c187c7154033c6515dd7fab4385ca Mon Sep 17 00:00:00 2001 From: barret <1178310248@qq.com> Date: Mon, 8 Jun 2020 12:10:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=84=E7=90=86ts=E5=A3=B0=E6=98=8E?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/affix.d.ts | 2 +- types/data-mapper.d.ts | 2 +- types/element-ui.d.ts | 6 +++--- types/loading-button.d.ts | 2 +- types/panel.d.ts | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) 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 }