hsiangleev / eleTree

Tree component based on virtual dom
https://eletree.hsianglee.cn/
MIT License
43 stars 26 forks source link

建议右键菜单最好能根据节点属性不同自定义不同的菜单 #31

Closed zoomtint closed 2 years ago

zoomtint commented 2 years ago

例如 eleTree.on('rightMenu',function(e){ if(e.type=='a'){ e.load([{name:'菜单1',value:'act1'}]) }else if(e.type=='b'){ e.load([{name:'菜单2',value:'act2'}]) } }) 望采纳

hsiangleev commented 2 years ago

已添加