简体   繁体   English

自适应卡版本 1.5 表未在 Bot 模拟器中呈现

[英]Adaptive card version 1.5 Table is not rendering in the Bot Emulator

I am using a table of adaptive card version 1.5 but is not rendering into the emulator.我正在使用 1.5 版自适应卡表,但未渲染到模拟器中。 My Emulator version is 4.14.1.我的模拟器版本是 4.14.1。 below is the JSON structure of the adaptive card.下面是适配卡的JSON结构体。

{
  "type": "AdaptiveCard",
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.5",
  "body": [
    {
      "type": "Table",
      "columns": [
        {
          "width": 1
        },
        {
          "width": 1
        },
        {
          "width": 1
        }
      ],
      "rows": [
        {
          "type": "TableRow",
          "cells": [
            `yourtext`{
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "11",
                  "wrap": true
                }
              ]
            },
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "111",
                  "wrap": true
                }
              ]
            },
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "1111",
                  "wrap": true
                }
              ]
            }
          ]
        },
        {
          "type": "TableRow",
          "cells": [
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "22",
                  "wrap": true
                }
              ]
            },
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "222",
                  "wrap": true
                }
              ]
            },
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "2222",
                  "wrap": true
                }
              ]
            }
          ]
        },
        {
          "type": "TableRow",
          "cells": [
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "33",
                  "wrap": true
                }
              ]
            },
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "333",
                  "wrap": true
                }
              ]
            },
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "3333",
                  "wrap": true
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}

Bot Framework supports adaptive card version 1.3. Bot Framework 支持自适应卡片版本 1.3。 So change Adaptive card "version": "1.5" to "version": "1.3"所以改变自适应卡“版本”:“1.5”到“版本”:“1.3”

Bot Framework should now support 1.5, so this looks like a bug. Bot Framework 现在应该支持 1.5,因此这看起来像是一个错误。 As you reported it here: https://github.com/microsoft/BotFramework-Emulator/issues/2407正如您在此处报告的那样: https://github.com/microsoft/BotFramework-Emulator/issues/2407

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 自适应卡未在 Bot Emulator 上呈现 - Adaptive cards not rendering on Bot Emulator 如何增加适用于机器人模拟器的自适应卡中背景图像的大小? - How can increase size of background image in Adaptive card for bot emulator? 自适应卡在Microsoft Teams中返回undefined,但在bot模拟器中运行良好 - Adaptive Card returns undefined in Microsoft Teams but works well in bot emulator 自适应卡未在 Bot Emulator v4.14.1 上呈现 - Adaptive cards are not rendering on Bot Emulator v4.14.1 Microsoft Teams Bot Adaptive 卡未在移动应用程序 (android) 中呈现 - Microsoft Teams Bot Adaptive card not rendering in mobile app (android) Microsoft Bot Framework - 团队和Skype for Business不支持自适应卡版本 - Microsoft Bot Framework - Adaptive card version not supported in Teams and Skype for Business Teams Bot Adaptive Card action.Submit 返回 undefined 但在 Bot Emulator 中工作 - Teams Bot Adaptive Card action.Submit returns undefined but works in Bot Emulator 自适应卡片 Bot Framework composer - Adaptive card Bot Framework composer 我在 Bot builder 模拟器上看不到我的自适应卡,它显示为空白 - I cant see my adaptive card on the Bot builder emulator, it appears as blank 使用 Bot Framework Emulator (v4) 更新已发送的自适应卡对我不起作用 - Using Bot Framework Emulator (v4) updating an already sent adaptive card doesn't work for me
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM