Site > Add file tree

This commit is contained in:
brunosimon
2017-08-09 23:32:26 +02:00
parent 02a59ba5be
commit c7cf01747a
23 changed files with 950 additions and 20 deletions
@@ -0,0 +1,3 @@
<template src="./template.html"></template>
<script src="./script.js"></script>
<style src="./style.styl" lang="stylus"></style>
@@ -0,0 +1,18 @@
export default
{
name: 'files-tree-file',
props:
{
depth: { type: Number, default: 0 },
content: { type: Object }
},
created()
{
},
methods:
{
}
}
@@ -0,0 +1,5 @@
<div>
<div class="name" :style="{paddingLeft:depth * 20 + 'px'}">
{{ content.name }}
</div>
</div>