2

我对 Slack 中的块功能有疑问。有人设法建造 3 列而不是 2 列吗?

我直观地尝试了以下代码,但它不起作用:

{
    "blocks": [
        {
            "type": "header",
            "text": {
                "type": "plain_text",
                "text": "Description\t",
                "emoji": true
            }
        },
        {
            "type": "section",
            "fields": [
                {
                    "type": "mrkdwn",
                    "text": "*Column 1*"
                },
                {
                    "type": "mrkdwn",
                    "text": "*Column 2*"
                },
                {
                    "type": "mrkdwn",
                    "text": "*Column 3*"
                }
            ]
        }
    ]
}

可以在此处生成预览https://app.slack.com/block-kit-builder

4

1 回答 1

0

我正在处理同样的问题,并找到了使用\t制表符的解决方法

{
    "type": "section",
    "fields": [
        {
            "type": "mrkdwn",
            "text": "*Column 1*\t\t*Column 2*\t\t*Column 3*"
        }
    ]
}

编辑:在手机上看起来很糟糕

于 2022-01-28T17:55:49.747 回答