vue 递归组件 实现无限极树形菜单

项目中 要实现一个 无限极菜单,使用递归组件的方式实现,主要就是遍历 一个数组,对数组 进行一些处理,判断是否有子级,有子级就继续遍历.并通过 splice 等方法 对数组增删改查,
代码 github 地址:https://github.com/crazyming9528/crazy-tree
效果:
版权声明:
作者:东明兄
链接:https://blog.crazyming.com/note/778/
来源:CrazyMing
文章版权归作者所有,未经允许请勿转载。


共有 0 条评论