1. <template>
2. <div>
3. <!-- type属性设置颜色-->
4. <el-link href="https://element.eleme.io" target="_blank">默认链接</el-link>
5. <el-link type="primary">主要链接</el-link>
6. <el-link type="success">成功链接</el-link>
7. <el-link type="warning">警告链接</el-link>
8. <el-link type="danger">危险链接</el-link>
9. <el-link type="info">信息链接</el-link>
10. <br>
11. <!-- disabled 禁用状态-->
12. <el-link disabled>默认链接</el-link>
13. <el-link type="primary" disabled>主要链接</el-link>
14. <el-link type="success" disabled>成功链接</el-link>
15. <el-link type="warning" disabled>警告链接</el-link>
16. <el-link type="danger" disabled>危险链接</el-link>
17. <el-link type="info" disabled>信息链接</el-link>
18. <br>
19. <!-- underline 是否显示下划线-->
20. <el-link :underline="false">无下划线</el-link>
21. <el-link>有下划线</el-link>
22. <br>
23. <!-- icon 设置图标-->
24. <el-link icon="el-icon-edit">编辑</el-link>
25. <el-link>查看<i class="el-icon-view el-icon--right"></i></el-link>
26. <br>
27. <!-- href 跳转-->
28. <el-link href="https://blog.csdn.net/it_heima">跳转我的博客</el-link>
29. <br>
30. <!-- target 打开方式-->
31. <el-link href="https://blog.csdn.net/it_heima" target="_blank">新打开一个tab,跳转我的博客</el-link>
32.
33. </div>
34. </template>
35.
36. <script>
37. export default {
38. name: 'Link'
39. }
40. </script>
41.
42. <style scoped>
43.
44. </style>