1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-18 14:04:04 +00:00

Custom views!

This commit is contained in:
2023-01-23 20:47:43 +01:00
parent 29e93dcab1
commit fa924f087d
11 changed files with 437 additions and 126 deletions

View File

@ -40,14 +40,16 @@
}
function select(itemKey) {
activeKey = itemKey;
if (level === 0) {
activePath = [ itemKey ];
if (activeKey !== itemKey) {
activeKey = itemKey;
if (level === 0) {
activePath = [ itemKey ];
}
else {
activePath = [ ...path, itemKey ];
}
dispatch('select', { level, itemKey });
}
else {
activePath = [ ...path, itemKey ];
}
dispatch('select', { level, itemKey });
}
function closeAll() {