Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
703 views
in Technique[技术] by (71.8m points)

elementUI的树形组件el-tree,点击节点右侧显示不同内容

elementUI el-tree树形组件中的内容是通过后台API获取.
但是树形组件是封装好的

<el-tree :data="dataList" :props="defaultProps" accordion @node-click="handleNodeClick"></el-tree>

需要实现的功能:点击对应树节点,右侧显示对应的表格数据。

只要传入数据就能自动生成,不知道该怎么给点击的节点添加路由,让内容在右侧动态切换显示。

哪位大佬有经验的分享下 谢谢


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

实现了吗?同样的需求,求指教!!!!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...