[英]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.