根据当前选中id(colors+id)滚动到具体位置 参考如下: [element-ui] el-tree 滚动到指定选中的位置_element plus el-tree 滚轮定位_533_的博客-CSDN博客