我想确认一下,适配卡1.3版本是否已经发布?我试图在我们的项目中实现新的功能,我更新了json文件,并将版本改为1.3,并遵循了视频中在https://www.youtube.com/watch?v=SEsjrFIf110&t=387s上展示的功能,但我无法复制几乎所有的功能,除了1全宽卡。我已经将自适应卡块包更新到了2.6.0。我还尝试在adaptive designer https://adaptivecardsci.z5.web.core.windows.net/pr/4894/designer中复制这些功能。我让标签功能在那里工作,但它在我们的情况下不起作用。下面是我创建的json:(忽略双引号,因为我已经将json存储在一个变量中。我正在使用adaptivecardtemplate来呈现下面的字符串)。
{
""type"": ""AdaptiveCard"",
""$schema"": ""http://adaptivecards.io/schemas/adaptive-card.json"",
""version"": ""1.3"",
""body"": [
{
""type"": ""Container"",
""items"":[
{
""type"": ""TextBlock"",
""text"": ""Full Width card"",
""size"": ""Large"",
""weight"": ""Bolder""
}
]
},
{
""type"": ""Input.ChoiceSet"",
""id"": ""temperature"",
""label"": ""How would you like your burger prepared?"",
""isRequired"": true,
""errorMessage"" : ""Please select one of the above options"",
""choices"":
[
{
""title"": ""Rare"",
""value"": ""Rare"",
},
{
""title"": ""Medium"",
""value"": ""Medium"",
},
{
""title"": ""Medium"",
""value"": ""Medium"",
}
]
},
{
""type"": ""Input.ChoiceSet"",
""id"": ""selectedUser"",
""label"": ""How would you like your burger prepared?"",
""isRequired"": true,
""errorMessage"" : ""Please select one of the above options"",
""choices"":
[
{
""title"": ""Static 1"",
""value"": ""Static 1"",
}
],
""choices.data"":{
""type"": ""Data.Query"",
""dataset"": ""graph.microsoft.com/v1.0/users""
}
},
{
""type"": ""Input.ChoiceSet"",
""placeholder"": ""Static AutoComplete"",
""style"": ""filtered"",
""isMultiSelect"": false,
""id"" : ""choiceRestaurant"",
""choices"":
[
{
""title"": ""Static 1"",
""value"": ""Static 1"",
},
{
""title"": ""Static 1"",
""value"": ""Static 1"",
},
{
""title"": ""Static 1"",
""value"": ""Static 1"",
}
]
},
{
""type"": ""ActionSet"",
""actions"": [
{
""type"": ""Action.Submit"",
""title"": ""Action.Submit"",
""mode"": ""secondary""
}
]
}
],
""actions"":[
{
""type"": ""Action.Submit"",
""title"": ""Button""
}
],
""msteams"": {
""width"": ""Full""
}
}如果你们有任何想法如何复制新功能,这将对我非常有帮助。他们在视频中表示,这些功能已经在开发预览版中。你知道哪里可以找到那个版本吗?有没有我错过的一些配置?
谢谢。
发布于 2021-03-27 04:27:54
您可以参考此文档,了解每个平台支持哪些版本的适配卡:https://docs.microsoft.com/en-us/adaptive-cards/resources/partners
您可能会注意到,团队仍然只支持自适应卡1.2:

什么版本的适配卡已经“发布”了,这并不重要。最重要的是你的平台使用的是哪个版本的适配卡。如果团队使用的是自适应卡1.2,那么无论自适应卡1.3是否已经发布,它都无法访问自适应卡1.3的功能。我强烈建议阅读我的博客文章,以更好地了解自适应卡:https://blog.botframework.com/2019/07/02/using-adaptive-cards-with-the-microsoft-bot-framework/
https://stackoverflow.com/questions/66782906
复制相似问题