[
{
name:" goods,
price:33,
skuSn:20,
spec:" [{"key": "model", "value": "model 4"}, {"key": "size", "value": "size 1"}, {"key": "color", "value": "color 2"}]"
},
{
name:" product 2mm,
price:33,
skuSn:21,
spec:" [{"key": "model", "value": "model 3"}, {"key": "size", "value": "size 2"}, {"key": "color", "value": "color 1"}]"
}
]
this is the backend data structure, skuSn is inventory, spec is selected. How to determine whether the following specification option is available or not after I have selected one, so as to set the gray button.