Skip to content

Commit

Permalink
Type: add Icon type (ElemeFE#15634)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkun authored and lzq4047 committed May 22, 2020
1 parent 0270c4e commit 1d5d80f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions types/element-ui.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ import { ElTree } from './tree'
import { ElUpload } from './upload'
import { ElLink } from './link'
import { ElDivider } from './divider'
import { ElIcon } from './icon'
import { ElCalendar } from './calendar'
import { ElImage } from './image'

Expand Down Expand Up @@ -314,5 +315,8 @@ export class Link extends ElLink {}
/** Image Component */
export class Image extends ElImage {}

/** Icon Component */
export class Icon extends ElIcon {}

/** Calendar Component */
export class Calendar extends ElCalendar {}
7 changes: 7 additions & 0 deletions types/icon.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { ElementUIComponent } from './component'

/** Icon Component */
export declare class ElIcon extends ElementUIComponent {
/** Icon name */
name: string
}

0 comments on commit 1d5d80f

Please sign in to comment.