オブジェクト グループの 1 つで既に選択されているオプションを無効にしたいと考えています。
したがって、「2013」を選択して別のサンプルを追加した場合、元のグループでそのオプションが変更されない限り、「2013」はそのグループでは使用できません。
私が見逃しているこれを行う簡単な方法はありますか?選択が行われたときにスキーマを事後的に更新する必要がありますか?
samples:{
type: Array,
optional: true,
maxCount: 5
},
"samples.$":{
type: Object,
optional: true
},
"samples.$.sample":{
type:[String],
autoform: {
type: "select",
options: function () {
return [
{
optgroup: "Group",
options: [
{label: "2013", value: 2013},
{label: "2014", value: 2014},
{label: "2015", value: 2015}
]
}
];
}
}
},