fix: tree 01 & 04 active

This commit is contained in:
puriphatt 2024-07-23 07:25:11 +00:00
parent 1f61b6046f
commit 9429fac0e3
3 changed files with 36 additions and 23 deletions

View file

@ -636,7 +636,10 @@ watch(
<template #default-header="{ node }">
<div
class="full-width q-py-xs"
:class="{ 'clickable-node': node.isHeadOffice }"
:class="{
'clickable-node': node.isHeadOffice,
'active-node': expandedTree[0] === node.id,
}"
v-touch-hold.mouse="handleHold(node)"
@click.stop="
() => {
@ -687,10 +690,13 @@ watch(
"
name="mdi-triangle-down"
size="12px"
class="app-text-muted q-mr-md"
class="app-text-muted q-mr-md q-ml-sm"
:style="`rotate: ${expandedTree[0] === node.id ? '0deg' : '30deg'}`"
/>
<div class="col row">
<div
class="col row"
:style="`padding-left:${node.isHeadOffice && node._count.branch === 0 ? '36px' : ''}`"
>
<span
class="ellipsis col-12"
style="white-space: nowrap"