Link: add link component (#15052)

This commit is contained in:
iamkun
2019-04-19 19:15:28 +08:00
committed by hetech
parent 0c9452f778
commit 5ecf4c2895
14 changed files with 569 additions and 0 deletions

25
types/link.d.ts vendored Normal file
View File

@@ -0,0 +1,25 @@
import { ElementUIComponent } from './component'
/** Button type */
export type LinkType = 'primary' | 'success' | 'warning' | 'danger' | 'info'
/** Link Component */
export declare class ElLink extends ElementUIComponent {
/** Link type */
type: LinkType
/** Disable the link */
disabled: boolean
/** Link underline */
underline: boolean
/** Link icon, accepts an icon name of Element icon component */
icon: string
/** Link href */
href: string
/** Link target */
target: string
}