mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 17:31:02 +08:00
9a160450ea
- Add empty line between demo block and content
64 lines
1.2 KiB
Markdown
64 lines
1.2 KiB
Markdown
# Link
|
|
|
|
Text hyperlink
|
|
|
|
<style lang="scss">
|
|
|
|
.example-showcase {
|
|
.el-link {
|
|
margin-right: 8px;
|
|
}
|
|
}
|
|
|
|
</style>
|
|
|
|
## Basic
|
|
|
|
Basic text link
|
|
|
|
:::demo
|
|
|
|
link/basic
|
|
|
|
:::
|
|
|
|
## Disabled
|
|
|
|
Disabled state of link
|
|
|
|
:::demo
|
|
|
|
link/disabled
|
|
|
|
:::
|
|
|
|
## Underline
|
|
|
|
Underline of link
|
|
|
|
:::demo
|
|
|
|
link/underline
|
|
|
|
:::
|
|
|
|
## Icon
|
|
|
|
Link with icon
|
|
|
|
:::demo
|
|
|
|
link/with-icon
|
|
|
|
:::
|
|
|
|
## Attributes
|
|
|
|
| Attribute | Description | Type | Accepted Values | Default |
|
|
| --------- | ----------------------------------- | ------- | ------------------------------------------- | ------- |
|
|
| type | type | string | primary / success / warning / danger / info | default |
|
|
| underline | whether the component has underline | boolean | — | true |
|
|
| disabled | whether the component is disabled | boolean | — | false |
|
|
| href | same as native hyperlink's `href` | string | — | - |
|
|
| icon | class name of icon | string | — | - |
|