mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-16 11:44:01 +08:00
Link: add link component (#15052)
This commit is contained in:
25
types/link.d.ts
vendored
Normal file
25
types/link.d.ts
vendored
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user