We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69ada92 commit 35fda35Copy full SHA for 35fda35
examples/components/HelloWorld.vue
@@ -13,11 +13,24 @@
13
:props="defaultProps"
14
>
15
<!-- <span
16
+ slot="list"
17
slot-scope="{ node, data }"
18
> -->
- <!-- <span slot-scope="{ node, data }">
19
- {{ data.label }}
20
- </span> -->
+ <span
+ slot="node-icon"
21
+ slot-scope="{ node }"
22
+ >
23
+ <div
24
+ v-if="node.expanded"
25
+ style="border: 1px solid red; background: #fff;width: 20px; height: 20px; display: flex; align-items: center; justify-content: center"
26
+ >-</div>
27
28
+ v-else
29
+ style="border: 1px solid red; background: #fff; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center"
30
31
+ +
32
+ </div>
33
+ </span>
34
<!-- </span> -->
35
</VueDragTreeOrg>
36
</div>
0 commit comments