这两个问题都是关于 AdaptiveCard Botframework 的。
Q1:我在adaptivecard中设置了默认占位符值:text1,但是触发事件后占位符无法正确显示,占位符为空白。占位符中没有提示信息(text1)。即使我将 MS 示例代码复制到我的源代码,它仍然无法正常工作。我曾在 Chrome、Firefox 和 IE11 中尝试过,但都失败了。占位符是空白MS示例代码MS 示例链接Q2:我已经使用自适应卡设置了列集中两列的宽度(一列设置为40,另一列设置为10
),但它似乎不起作用。网格未正确显示。
我的源
宽度限制似乎不起作用
[
{
"contentType": "application/vnd.microsoft.card.adaptive",
"content": {
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"text": "Test",
"weight": "bolder",
"size": "medium"
},
{
"type": "ColumnSet",
"spacing": "none",
"columns": [
{
"type": "Column",
"width": 40,
"items": [
{
"type": "Input.ChoiceSet",
"id": "country",
"style": "compact",
"placeholder": "Country",
"value": "1",
"choices": [
{
"title": "UnitedStates",
"value": "US"
}
]
}
]
},
{
"type": "Column",
"width": 10,
"items": [
{
"type": "Input.Number",
"placeholder": "text1",
"min": 0,
"id": "Text1"
}
]
}
]
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Button"
}
]
}
}
]