refacotr: adjust tree
This commit is contained in:
parent
da56691146
commit
e6c0378762
1 changed files with 8 additions and 9 deletions
|
|
@ -257,7 +257,7 @@ onMounted(async () => {
|
||||||
<template #default-header="prop">
|
<template #default-header="prop">
|
||||||
<div
|
<div
|
||||||
@click="fetchBranch(prop.node.id)"
|
@click="fetchBranch(prop.node.id)"
|
||||||
class="q-pa-sm color-brach-tree-text"
|
class="q-px-sm color-brach-tree-text"
|
||||||
:class="{
|
:class="{
|
||||||
'color-tree-active': expanded.includes(prop.node.name),
|
'color-tree-active': expanded.includes(prop.node.name),
|
||||||
'bg-branch-tree':
|
'bg-branch-tree':
|
||||||
|
|
@ -274,10 +274,11 @@ onMounted(async () => {
|
||||||
|
|
||||||
<q-btn
|
<q-btn
|
||||||
class="color-brach-tree-btn"
|
class="color-brach-tree-btn"
|
||||||
@click.stop=""
|
@click.stop
|
||||||
size="xl"
|
|
||||||
flat
|
|
||||||
v-if="prop.node.isHeadOffice"
|
v-if="prop.node.isHeadOffice"
|
||||||
|
size="lg"
|
||||||
|
flat
|
||||||
|
square
|
||||||
dense
|
dense
|
||||||
>
|
>
|
||||||
<Icon
|
<Icon
|
||||||
|
|
@ -290,20 +291,19 @@ onMounted(async () => {
|
||||||
|
|
||||||
<q-btn
|
<q-btn
|
||||||
class="color-brach-tree-btn"
|
class="color-brach-tree-btn"
|
||||||
@click.stop=""
|
@click.stop
|
||||||
size="xl"
|
size="lg"
|
||||||
dense
|
dense
|
||||||
flat
|
flat
|
||||||
name="menu"
|
name="menu"
|
||||||
>
|
>
|
||||||
<Icon icon="ri:more-2-fill" />
|
<Icon icon="ri:more-2-fill" width="16px" />
|
||||||
<q-menu class="bordered" style="width: 150px">
|
<q-menu class="bordered" style="width: 150px">
|
||||||
<q-list>
|
<q-list>
|
||||||
<q-item clickable v-close-popup dense>
|
<q-item clickable v-close-popup dense>
|
||||||
<q-item-section avatar class="q-py-sm">
|
<q-item-section avatar class="q-py-sm">
|
||||||
<q-icon
|
<q-icon
|
||||||
style="color: hsl(var(--cyan-6-hsl))"
|
style="color: hsl(var(--cyan-6-hsl))"
|
||||||
size="22px"
|
|
||||||
name="mdi-pencil-outline"
|
name="mdi-pencil-outline"
|
||||||
/>
|
/>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
|
|
@ -314,7 +314,6 @@ onMounted(async () => {
|
||||||
<q-item-section avatar class="q-py-sm">
|
<q-item-section avatar class="q-py-sm">
|
||||||
<q-icon
|
<q-icon
|
||||||
style="color: hsl(var(--red-6-hsl))"
|
style="color: hsl(var(--red-6-hsl))"
|
||||||
size="22px"
|
|
||||||
name="mdi-trash-can-outline"
|
name="mdi-trash-can-outline"
|
||||||
/>
|
/>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue