microsoft-teams - Microsoft Teams 自适应卡片 Input.ChoiceSet 默认跨平台
问题描述
渲染相同的 Microsoft Teams Adaptive Card Input.ChoiceSet 没有“值”(即无默认值),在 Microsoft Teams Android 客户端中显示默认值,但在 OS X、Web 或 iOS Teams 客户端的下拉列表中没有默认选项。 .
如何在自适应卡中呈现相同的 input.choiceSet,而所有客户端的同一张卡都没有默认值?
{
"type": "message",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.adaptive",
"content": {
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"text": "Command Center",
"size": "large",
"weight": "bolder"
},
{
"type": "TextBlock",
"text": "Please choose a scenario to submit."
},
{
"type": "Input.ChoiceSet",
"id": "scenario-id",
"style": "compact",
"isMultiSelect": false,
"choices": [
{
"value": "71ae62b1-f04e-11e9-b862-577308a243ca",
"title": "Foo's Bar"
},
{
"value": "16db3124-f42d-11e9-bde7-819811d8b810",
"title": "Second"
}
]
}
]
}
],
"actions": [
{
"type": "Action.Submit",
"id": "popup",
"title": "Continue...",
"data": {
"msteams": {
"type": "task/fetch"
}
}
}
]
}
}
]
}
解决方案
@MarkSingleWire 感谢您向我们报告此事。自适应卡不应该为下拉菜单选择任何默认值。我们为此提出了一个错误,我们正在调查它。
推荐阅读
- javascript - 为什么按钮可见性首先发生变化,而标签可见性第二,延迟很大?
- graph - Grafana图形跳跃/刷新时闪烁
- sql - 查询以使用进入条件填充排行榜
- excel - 将excel中的多列堆叠成两列集
- javascript - 按元素频率 JavaScript 对数组进行排序
- python - 替换未找到列表列中的值
- typescript - 在泛型中使用 typeof 作为类型参数与不使用类型参数之间的区别
- ios - Xcode 中的“app”项目和“framework”项目有什么区别?
- java - 如何在 javafx 中的 imageView 中填充图像?
- mysql - MySQL 导入使用将数据 infile 加载到一个模式中会阻止其他模式之一