mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
@@ -71,13 +71,16 @@ export function useGroupable(options?: GroupableOptions) {
|
||||
return {
|
||||
active,
|
||||
toggle: () => {
|
||||
active.value = !active.value;
|
||||
toggle(item);
|
||||
},
|
||||
activate: () => {
|
||||
if (active.value === false) toggle(item);
|
||||
active.value = true;
|
||||
},
|
||||
deactivate: () => {
|
||||
if (active.value === true) toggle(item);
|
||||
active.value = false;
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user