+
+
+ {
+ const newValue = [...(value || [])]
+ if (checked) {
+ if (!newValue.includes(item.id)) newValue.push(item.id)
+ } else {
+ const idx = newValue.indexOf(item.id)
+ if (idx > -1) newValue.splice(idx, 1)
+ }
+ handleChange(newValue)
+ }
+ "
+ />
+
+
+ {{ item.label }}
+
+
+
+
+