Adaptive Card 1.5版本表格无法在Bot Emulator 4.14.1中渲染求助
问题解决:Adaptive Card 1.5 表格在 Bot Emulator 4.14.1 中无法正常渲染
核心问题分析
你的 Adaptive Card JSON 存在语法错误,这是导致渲染失败的直接原因:
- 第一行第一个
TableCell前多了无效的`yourtext`标记,破坏了 JSON 结构的合法性。
另外,Bot Emulator 4.14.1 对 Adaptive Card 1.5 的表格组件可能存在兼容性限制,但修复语法错误是首要解决步骤。
修正后的完整 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": [ { "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 Emulator 更新到较新版本,确保对 Adaptive Card 1.5 组件的完整支持。
- 在本地验证卡片结构的合法性,排除平台兼容性问题。
内容的提问来源于stack exchange,提问作者Sudheer
相关产品推荐
相关产品推荐

