| LCOV - code coverage report | ||||||||||||||||||
|
||||||||||||||||||
Line data Source code 1 : import type { Ref } from 'vue' 2 : import { computed } from 'vue' 3 : 4 44 : export function usePerTabState<K extends string, V>( 5 : selectedTab: Ref<K>, 6 : stateByTab: Ref<Record<K, V>> 7 : ) { 8 44 : return computed({ 9 : get: () => stateByTab.value[selectedTab.value], 10 : set: (value) => { 11 35 : stateByTab.value[selectedTab.value] = value 12 : } 13 : }) 14 : } |
| Generated by: LCOV version 2.0-1 |