[]
dashboard.VisualNS.CommandService
• new CommandService()
▸ execute(desc): void
执行命令。
| 名称 | 类型 | 描述 |
|---|---|---|
desc |
ICommandDescription[] |
命令描述。 |
void
示例代码
// 运行一个命令切换容器标签
this.visualHost.commandService.execute([
{
name: 'SelectTab',
payload: {
target: 'myTabContainer',
index: 0,
}
}
])