2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 19:39:07 +00:00

fix style for tree node

This commit is contained in:
Faris Ansari 2018-10-23 22:54:21 +05:30
parent 8ee664e81e
commit 1a2e70f5b0

View File

@ -1,8 +1,8 @@
<template>
<div class="tree-node">
<div class="tree-label px-3 py-2" @click.self="toggleChildren">
<div @click="toggleChildren">
<feather-icon :name="iconName" v-show="iconName" />
<div class="d-flex align-items-center" @click="toggleChildren">
<feather-icon class="mr-1" :name="iconName" v-show="iconName" />
<span>{{ label }}</span>
</div>
</div>
@ -43,9 +43,9 @@ const TreeNode = {
},
async getChildren() {
if (this.children) return;
this.children = [];
let filters = {
[this.settings.parentField]: this.parentValue
};