Skip to content

Commit

Permalink
Type: add Icon type (#15634)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkun authored and luckyCao committed May 24, 2019
1 parent 2f94c02 commit c495848
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 c495848

Please sign in to comment.