Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.5k 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 Reply

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...