gpt4 book ai didi

json - json 文件中的 TFS 构建扩展 "VisibleRules"定义

转载 作者:行者123 更新时间:2023-12-04 13:44:13 24 4
gpt4 key购买 nike

我开发了一个 tfs 构建扩展,我对 json 文件中输入字段的“VisibleRule”属性有疑问。我有以下输入字段定义,我想根据所选选项显示输入字段。

例子:如果选择了 option1 或 option2,则 field1 设置可见

"inputs": [
{
"name": "options",
"type": "pickList",
"label": "Options",
"required": true,
"options":
{
"Option1": "Option1",
"Option2": "Option2",
"Option3": "Option3"
}
},
{
"name": "Field1",
"type": "string",
"label": "Field1",
"required": true,
"visibleRule": "options = option1"
},
{
"name": "Field2",
"type": "string",
"label": "Field2",
"required": true,
"visibleRule": "options = option2"
}
]

我可以像这样为 visibleRule 定义 or 条件吗?

"visibleRule": "options = option2 && options = option3"

最佳答案

是的,在AzureFileCopy中引用这个格式任务详情:

"visibleRule": "ConnectedServiceNameSelector = ConnectedServiceName && Destination = AzureVMs"

关于json - json 文件中的 TFS 构建扩展 "VisibleRules"定义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37910374/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com