1.场景
操作步骤:
1.点击数据连接数,打开弹窗
2.点击连接状态跳转到数据连接模块
3.默认选中tree的数据源id节点
2.代码

参数解释:
3.实现逻辑
首先将id通过组件传参的方式传过去,数据连接接收后,在tree里设置 node-key="id",:current-node-key="sourceId",:highlight-current="true" ,在调用的地方加上setCurrentKey() 就可以了
操作步骤:
1.点击数据连接数,打开弹窗
2.点击连接状态跳转到数据连接模块
3.默认选中tree的数据源id节点
参数解释:
首先将id通过组件传参的方式传过去,数据连接接收后,在tree里设置 node-key="id",:current-node-key="sourceId",:highlight-current="true" ,在调用的地方加上setCurrentKey() 就可以了