You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/runtime/samples/self-reference-tree/_config.js

66 lines
1.1 KiB

export default {
props: {
file: {
name: '/',
type: 'folder',
children: [
{
name: 'foo.jpg',
type: 'image'
},
{
name: 'bar.jpg',
type: 'image'
},
{
name: 'baz',
type: 'folder',
children: [
{
name: '.DS_Store',
type: 'junk'
},
{
name: 'README.md',
type: 'markdown'
}
]
}
]
}
},
html: `
<article class='file folder'>
<span class='name'>/</span>
<ul>
<li>
<article class='file image'>
<span class='name'>foo.jpg</span>
</article>
</li><li>
<article class='file image'>
<span class='name'>bar.jpg</span>
</article>
</li><li>
<article class='file folder'>
<span class='name'>baz</span>
<ul>
<li>
<article class='file junk'>
<span class='name'>.DS_Store</span>
</article>
</li><li>
<article class='file markdown'>
<span class='name'>README.md</span>
</article>
</li>
</ul>
</article>
</li>
</ul>
</article>
`
};