# 配置卡片属性

你可以在卡片结构的第一层通过globalConfig字段值配置卡片的功能属性。

# 字段属性说明

当前支持的属性字段包括:

参数 是否必须 类型 描述
forward Boolean 是否允许卡片被转发。取值:
true:允许
false:不允许
默认为false
转发后设置了callBacks的交互组件将会被禁用,
其他情况下组件交互正常触发。
shareCard Boolean 是否为共享卡片,取值:
true:允许
false:不允许
默认为true

# json 示例

{
    "globalConfig": {
      "forward": false,
      "shareCard": true
    },
    "header": {
      "text": {
          "tag": "plain_text",
          "content": "This is Header"
      },
      "color": "blue"
    },
    "modules": [
        {
            "tag": "actions",
            "actions": [
                {
                    "tag": "button",
                    "text": {
                        "tag": "plain_text",
                        "content": "button"
                    },
                    "type": "default"
                },
                {
                    "tag": "button",
                    "text": {
                        "tag": "plain_text",
                        "content": "button"
                    },
                    "type": "default"
                }
            ]
        }
    ]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
最后更新于 : 6/27/2023, 3:00:21 PM