聆客开放平台

# 混排模块

卡片目前共提供以下 3 种混排布局

文本 + 图片 文本 + 聚合菜单 文本 + 按钮

# 字段列表

字段 是否必填 类型 描述 示例
type 字符串 type 为 ESection ,标志该模块为混排模块 "ESection"
fields 对象数组,支持EText、EMarkdown 代表多段组件
extra 对象 混排模块右边额外内容配置,值为 EImage、EMenu、EButton 中的其中一种
shortContent 布尔值 fields 中的每一项文本内容是否双栏显示,仅 extra 配置为空时生效

# json示例

{
  "type": "ESection",
  "fields": [
    {
      "type": "EText",
      "text": "这是普通文本,支持多语言",
      "maxLines": 2,
      "text_i18n": {
        "zh_Hans": "我是多语言简体中文我是多语言简体中文",
        "zh_Hant": "繁体中文",
        "en_US": "英文",
      },
    },
    {
      "type": "EMarkdown",
      "text": "这是***普通markdown***文本这是***普通markdown***文本这是***普通markdown***文本\n* 第一项\n* 第二项\n* 第三项",
    }
  ],
  "extra": {
    "type": "EImage",
    "image": "https://img0.baidu.com/it/u=639424590,2670674099&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=602",
    "preview": true,
  },
}