geekhybrid / vue3-tree-vue

MIT License
63 stars 22 forks source link

Adding append slots #21

Closed berge472 closed 1 year ago

berge472 commented 1 year ago

image

image

geekhybrid commented 1 year ago

I also struggled to find a use-case for child append slot. I have a feeling you have something in mind for that, yeah ?

berge472 commented 1 year ago

I also struggled to find a use-case for child append slot. I have a feeling you have something in mind for that, yeah ?

I have seen this in other components, but it is useful for actions like adding new children to the node

image

geekhybrid commented 1 year ago

I also struggled to find a use-case for child append slot. I have a feeling you have something in mind for that, yeah ?

I have seen this in other components, but it is useful for actions like adding new children to the node

image

Oh, nice. Thanks

berge472 commented 1 year ago

I made the change for checkable, and also added in a new style class 'on-item-hover' which can be used in the append slots to only show content when the item is being hovered.

I wasnt sure if you had any naming conventions you wanted to use for styles, so feel free to change it.