Link 链接

基本用法

  1. {
  2. "type": "page",
  3. "body": {
  4. "type": "link",
  5. "href": "https://www.baidu.com",
  6. "body": "百度一下,你就知道"
  7. }
  8. }

新标签页打开

  1. {
  2. "type": "page",
  3. "body": {
  4. "type": "link",
  5. "href": "https://www.baidu.com",
  6. "body": "百度一下,你就知道",
  7. "blank": true
  8. }
  9. }

禁用超链接

  1. {
  2. "type": "page",
  3. "body": {
  4. "type": "link",
  5. "href": "https://www.baidu.com",
  6. "body": "百度一下,你就知道",
  7. "blank": true,
  8. "disabled": true
  9. }
  10. }

添加图标

  1. {
  2. "type": "page",
  3. "body": {
  4. "type": "link",
  5. "href": "https://www.baidu.com",
  6. "body": "百度一下,你就知道",
  7. "blank": true,
  8. "icon": "fa fa-search"
  9. }
  10. }

属性表

属性名 类型 默认值 说明
type string 如果在 Table、Card 和 List 中,为"link";在 Form 中用作静态展示,为"static-link"
body string 标签内文本
href string 链接地址
blank boolean 是否在新标签页打开
htmlTarget string a 标签的 target,优先于 blank 属性
title string a 标签的 title
disabled boolean 禁用超链接
icon string 超链接图标,以加强显示
rightIcon string 右侧图标