wchbrad / vue-easy-tree

A tree component based on vue2.x that supports a small amount of data or a large amount of data, multiple functions, and virtual scrolling.
MIT License
130 stars 40 forks source link

支持 props.children 为函数吗? #46

Open MaJiaXuan opened 7 months ago

MaJiaXuan commented 7 months ago

支持 props.children 为函数吗? 在某些层级不想让其有下层级,想通过改变 props.children 实现,比如 props.children(data, node) 让开发者来判断是否有下层级?

wchbrad commented 1 month ago

isLeaf可以用来判断是否具有下级节点(需要开启懒加载),支持传入函数