Skip to content

Commit 35fda35

Browse files
committed
ci(): 添加按钮测试功能
1 parent 69ada92 commit 35fda35

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

examples/components/HelloWorld.vue

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,24 @@
1313
:props="defaultProps"
1414
>
1515
<!-- <span
16+
slot="list"
1617
slot-scope="{ node, data }"
1718
> -->
18-
<!-- <span slot-scope="{ node, data }">
19-
{{ data.label }}
20-
</span> -->
19+
<span
20+
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+
<div
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>
2134
<!-- </span> -->
2235
</VueDragTreeOrg>
2336
</div>

0 commit comments

Comments
 (0)