Node.js 自适应卡中的按钮对齐

Node.js 自适应卡中的按钮对齐,node.js,botframework,adaptive-cards,Node.js,Botframework,Adaptive Cards,我想知道是否有一种方法可以在机器人模拟器中控制自适应卡中按钮的对齐 我在emulator和Microsoft Visualizer中尝试了相同的代码,但它们的呈现方式不同。以下是图片: 以下是我使用的代码: { "contentType": "application/vnd.microsoft.card.adaptive", "content": { '$schema': 'http://adaptivecards.io/schemas/a

我想知道是否有一种方法可以在机器人模拟器中控制自适应卡中按钮的对齐

我在emulator和Microsoft Visualizer中尝试了相同的代码,但它们的呈现方式不同。以下是图片:

以下是我使用的代码:

{
        "contentType": "application/vnd.microsoft.card.adaptive",
        "content": {
            '$schema': 'http://adaptivecards.io/schemas/adaptive-card.json',
            'version': '1.0',
            'type': 'AdaptiveCard',
            'body': [
            {
                'type': 'TextBlock',
                'text': 'Meeting Title',
                'weight': 'bolder'
            },
            {
                'type': 'TextBlock',
                'text': 'Location',
                'separator': true,
                'isSubtle': true,
                'size': 'small'
            },
            {
                'type': 'TextBlock',
                'text': 'Location',
                'spacing': 'none'
            },
            {
                'type': 'TextBlock',
                'text': 'Organizer',
                'separator': true,
                'isSubtle': true,
                'size': 'small'
            },
            {
                'type': 'TextBlock',
                'text': 'Organizer Name',
                'spacing': 'none'
            },
            {
                'type': 'TextBlock',
                'text': 'Start Time',
                'separator': true,
                'isSubtle': true,
                'size': 'small'
            },
            {
                'type': 'ColumnSet',
                'spacing': 'none',
                'columns': [
                {
                    'type': 'Column',
                    'width': 'auto',
                    'items': [
                    {
                        'type': 'TextBlock',
                        'text': '05:00 PM',
                        'isSubtle': false,
                        'weight': 'bolder'
                    }
                    ]
                },
                {
                    'type': 'Column',
                    'width': 'auto',
                    'items': [
                    {
                        'type': 'TextBlock',
                        'text': 'May 21'
                    }
                    ]
                },
                {
                    'type': 'Column',
                    'width': 'auto',
                    'items': [
                    {
                        'type': 'TextBlock',
                        'text': '2017',
                        'isSubtle': true,
                        'weight': 'bolder'
                    }
                    ]
                }
                ]
            },
            {
                'type': 'TextBlock',
                'text': 'End Time',
                'separator': true,
                'isSubtle': true,
                'size': 'small'
            },
            {
                'type': 'ColumnSet',
                'spacing': 'none',
                'columns': [
                {
                    'type': 'Column',
                    'width': 'auto',
                    'items': [
                    {
                        'type': 'TextBlock',
                        'text': '05:30 PM',
                        'isSubtle': false,
                        'weight': 'bolder'
                    }
                    ]
                },
                {
                    'type': 'Column',
                    'width': 'auto',
                    'items': [
                    {
                        'type': 'TextBlock',
                        'text': 'May 21'
                    }
                    ]
                },
                {
                    'type': 'Column',
                    'width': 'auto',
                    'items': [
                    {
                        'type': 'TextBlock',
                        'text': '2017',
                        'isSubtle': true,
                        'weight': 'bolder'
                    }
                    ]
                }

                ]
            }
            ],
            'actions': [
            {
                'type': 'Action.Submit',
                'title': 'Accept',
                'data':{
                    'accept': true
                }
            },
            {
                'type': 'Action.Submit',
                'title': 'Decline',
                'data':{
                    'accept': false
                }
            }
            ]
      }
    }
如图所示,这些按钮在模拟器中水平对齐,在可视化工具中彼此相邻。有没有办法修改按钮的高度和宽度以及对齐方式

我想知道是否有一种方法可以控制中按钮的对齐 机器人模拟器中的自适应卡

简短的回答是“不”。不能在模拟器中修改组件的呈现

答案很长:Bot框架仿真器是开源的,所以您可以尝试修改并在本地运行您的自定义仿真器。但我不确定在模拟器上进行自定义渲染是否对实际项目非常有用,因为它们不会在模拟器上运行

模拟器源代码位于此处:

有一种叫做自适应卡的东西,请尝试使用它。已共享编辑器工具链接