Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 处理ts声明报错 #63

Merged
merged 1 commit into from
Jun 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion types/affix.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import { ElementUIComponent } from './component'
export declare class ElAffix extends ElementUIComponent {
offsetBottom?: number
offsetTop?: number
target?: function
target?: () => HTMLElement
}
2 changes: 1 addition & 1 deletion types/data-mapper.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export declare class ElDataMapper extends ElementUIComponent {
columns:object[]

/** formatter col*/
formatter:function (data,col,index)
formatter: <T>(data: object,col: object,index: number) => T

/** The placeholder of data-mapper content */
placeholder:string
Expand Down
6 changes: 3 additions & 3 deletions types/element-ui.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 {}

Expand Down
2 changes: 1 addition & 1 deletion types/loading-button.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { ElButton } from './button'

/** LoadingButton Component */
export declare class ElLoadingButton extends ElButton {
loadingClick: function(): Promise<any>
loadingClick: () => Promise<any>
}
2 changes: 1 addition & 1 deletion types/panel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export declare class ElPanel extends ElementUIComponent {

/** bodyPadding */
bodyPadding: string
|

/** Panel width */
width: string | number
}