0
我開發了一個tfs構建擴展,並且我對json文件中輸入字段的「VisibleRule」屬性有疑問。 我有以下輸入字段定義,我想根據選定的選項顯示輸入字段。TFS在json文件中構建擴展「VisibleRules」定義
實施例: FIELD1如果選項1或選項2被選擇
"inputs": [
{
"name": "options",
"type": "pickList",
"label": "Options",
"required": true,
"options":
\t {
\t \t "Option1": "Option1",
\t \t "Option2": "Option2",
\t \t "Option3": "Option3"
\t }
},
\t \t {
"name": "Field1",
"type": "string",
"label": "Field1",
"required": true,
"visibleRule": "options = option1"
},
\t \t {
"name": "Field2",
"type": "string",
"label": "Field2",
"required": true,
"visibleRule": "options = option2"
}
]
能否定義一個或病症這樣visibleRule設置可見?
"visibleRule": "options = option2 && options = option3"
哪個構建Vnext或XAML中? –