Skip to content

Commit 27c4b4a

Browse files
committed
Updatd demo
Signed-off-by: Cédric Foellmi <cedric@onekiloparsec.dev>
1 parent 8db8fb1 commit 27c4b4a

File tree

1 file changed

+6
-31
lines changed

1 file changed

+6
-31
lines changed

src/App.vue

Lines changed: 6 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
<div class="row">
99
<div class="tree-container">
1010
<power-tree v-model="nodes" :show-branches="true">
11+
<template #title="{ node }">
12+
<div data-title="root">
13+
{{ node.title }}
14+
</div>
15+
</template>
16+
1117
<template #sidebar>
1218
<div data-sidebar="true">
1319
<button @click="click" data-sidebar="button">-</button>
@@ -76,37 +82,6 @@
7682
</script>
7783

7884
<style>
79-
/*html {*/
80-
/* font-family: sans-serif;*/
81-
/* font-size: 10px;*/
82-
/* -webkit-tap-highlight-color: rgba(0, 0, 0, 0);*/
83-
/* -ms-text-size-adjust: 100%;*/
84-
/* -webkit-text-size-adjust: 100%;*/
85-
/* height: 100%;*/
86-
/*}*/
87-
88-
/*body {*/
89-
/* position: relative;*/
90-
/* height: 100%;*/
91-
/* color: #555555;*/
92-
/* margin: 0;*/
93-
/* font-family: 'PT Sans', sans-serif;*/
94-
/* font-size: 14px;*/
95-
/* line-height: 1.42857143;*/
96-
/* background-color: #ffffff;*/
97-
/*}*/
98-
99-
/*#app {*/
100-
/* !*font-family: 'Avenir', Helvetica, Arial, sans-serif;*!*/
101-
/* !*-webkit-font-smoothing: antialiased;*!*/
102-
/* !*-moz-osx-font-smoothing: grayscale;*!*/
103-
/* !*text-align: center;*!*/
104-
/* color: #2c3e50;*/
105-
/* min-width: 500px;*/
106-
/* width: 50%;*/
107-
/* margin: 60px auto;*/
108-
/*}*/
109-
11085
body {
11186
background: #050d12;
11287
font-family: Arial;

0 commit comments

Comments
 (0)