mirror of
https://github.com/frappe/books.git
synced 2024-12-24 03:45:35 +00:00
fix style for tree node
This commit is contained in:
parent
8ee664e81e
commit
1a2e70f5b0
@ -1,8 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="tree-node">
|
<div class="tree-node">
|
||||||
<div class="tree-label px-3 py-2" @click.self="toggleChildren">
|
<div class="tree-label px-3 py-2" @click.self="toggleChildren">
|
||||||
<div @click="toggleChildren">
|
<div class="d-flex align-items-center" @click="toggleChildren">
|
||||||
<feather-icon :name="iconName" v-show="iconName" />
|
<feather-icon class="mr-1" :name="iconName" v-show="iconName" />
|
||||||
<span>{{ label }}</span>
|
<span>{{ label }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -43,9 +43,9 @@ const TreeNode = {
|
|||||||
},
|
},
|
||||||
async getChildren() {
|
async getChildren() {
|
||||||
if (this.children) return;
|
if (this.children) return;
|
||||||
|
|
||||||
this.children = [];
|
this.children = [];
|
||||||
|
|
||||||
let filters = {
|
let filters = {
|
||||||
[this.settings.parentField]: this.parentValue
|
[this.settings.parentField]: this.parentValue
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user