# 卡片标题
# 概述
消息卡片标题是通过一段JSON描述的卡片模块,本文介绍如何构建卡片标题。
# 字段属性说明
参数 | 是否必须 | 类型 | 示例值 | 说明 | 枚举 |
---|---|---|---|---|---|
text | 是 | Struct | text对象 | 配置卡片标题内容。 | |
tag | 是 | String | plain_text | 固定值plain_text。 | |
content | 是 | String | 这是标题 | 卡片标题文案内容。 | |
color | 否 | String | blue | 标题主题颜色,默认为blue 如果color不配置,则默认为常规标题 | blue / turquoise / green / yellow / red / grey |
# json示例
{
//在header中描述卡片的标题
"header": {
"text": {
"tag": "plain_text",
"content": "This is header"//卡片标题文案内容
},
"color":"blue"//卡片标题的主题色
}
}
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
# 标题样式图
- 常规标题
- 彩色标题
← 内容模块 Markdown 模块 →