Files
keppler/site/src/components/files-tree-folder/template.html
T
brunosimon 0f33979085 Add viewer
2017-08-12 12:02:36 +02:00

9 lines
459 B
HTML

<div>
<a href="#" class="name" :style="{ paddingLeft:depth * 20 + 'px' }" @click.prevent="onNameClick">
{{ content.name }}
</a>
<div v-show="open">
<files-tree-folder v-for="folder of content.folders" :key="folder.name" :content="folder" :depth="depth + 1"></files-tree-folder>
<files-tree-file v-for="file of content.files" :key="file.data.path.full" :content="file" :depth="depth + 1"></files-tree-file>
</div>
</div>