我们可以在angular json模式表单布局的条件部分中添加多个限制吗?
$scope.schema = {
"type": "object",
"title": "Comment",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"email": {
"title": "Email",
"type": "string"
},
"department: {
"type" : "string"
}
}
};
$scope.form = [
"name",
{key: "email",
condition: "model.name=='abc' && model.department == 'xyz'"
},
{
"type": "submit",
"style": "btn-info",
"title": "OK"
}
];
$scope.model = {};
});