Highlight focused element by path
Also force all its parents to be open, similar to forceOpen from the previous commit (which, incidentally, this commit removes again).
This commit is contained in:
parent
af99414d6a
commit
37f1b0e9d1
3 changed files with 29 additions and 7 deletions
|
|
@ -3,8 +3,10 @@ import { ref } from "vue";
|
|||
|
||||
export const useUiStore = defineStore("ui", () => {
|
||||
const anchor = ref<string>();
|
||||
const focusPath = ref<number[]>([1]);
|
||||
|
||||
return {
|
||||
anchor,
|
||||
focusPath,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue