|
|
@ -1,5 +1,6 @@ |
|
|
|
<template> |
|
|
|
<details> |
|
|
|
|
|
|
|
<!-- následující řádek nefunguje, protože summary musí být první tag v details --> |
|
|
|
<!-- <div class="treenode-org"> bude tu nějaký if na class="treenode" --> |
|
|
|
|
|
|
@ -14,12 +15,13 @@ |
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-if="item.children.length === 0"> |
|
|
|
<div v-if="item.appendable_children.length > 0"> |
|
|
|
<div v-if="item.appendable_children.length > 0" class="mam-org-only"> |
|
|
|
<b>Vložit jako syna: </b> |
|
|
|
<addnewnode :types="item.appendable_siblings" :refnode="item.node" where="syn" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="children-org"> <!--bude tu nějaký if na class="children" --> |
|
|
|
|
|
|
|
<div v-else class="children-org"> <!-- bude tu nějaký if na class="children" --> |
|
|
|
<div v-if="item.children.length > 0 && item.children[0].appendable_siblings.length > 0" class="mam-org-only"> |
|
|
|
<b>Vložit před: </b> |
|
|
|
<addnewnode :types="item.children[0].appendable_siblings" :refnode="item.children[0].node" where="pred" /> |
|
|
@ -28,7 +30,7 @@ |
|
|
|
<div v-for="(chld, index) in item.children" v-bind:key="chld.nazev" > |
|
|
|
<TreeNode :item="chld"> |
|
|
|
</TreeNode> |
|
|
|
<div v-if="chld.appendable_siblings.length > 0" class="mam-org-only" id="org-only-treenode" > |
|
|
|
<div v-if="chld.appendable_siblings.length > 0" class="mam-org-only" > |
|
|
|
<b v-if="index < (item.children.length - 1)">Vložit mezi: </b> |
|
|
|
<b v-else>Vložit za: </b> |
|
|
|
<addnewnode :types="chld.appendable_siblings" :refnode="chld.node" where="za" /> |
|
|
@ -83,9 +85,9 @@ export default { |
|
|
|
*/ |
|
|
|
|
|
|
|
.children-org { |
|
|
|
padding: 5px; |
|
|
|
padding: 10px; |
|
|
|
margin: 5px; |
|
|
|
border: #6a0043 2px solid; |
|
|
|
border: #6a0043 2px dashed; |
|
|
|
} |
|
|
|
|
|
|
|
.mam-org-only { |
|
|
|