求大佬给个思路,想在element的tree控件上加个查询功能,查询后如何自动滚动到查询到的节点呢
回答:
https://www.w3school.com.cn/j...
document.querySelector('#footer').focus();
<div class="el-tree" role="tree"> <div id="footer" class="el-tree-node is-focusable" role="treeitem" tabindex="-1" aria-expanded="false"
aria-disabled="" aria-checked="false" draggable="false" data-key="86">
<div class="el-tree-node__content" style="padding-left: 0px;"><span
class="el-tree-node__expand-icon el-icon-caret-right"></span><span
class="el-tree-node__label">一级 2</span></div>
</div>
<div class="el-tree__drop-indicator" style="display: none;"></div>
</div>
以上是 求大佬给个思路,想在element的tree控件上加个查询功能,查询后如何自动滚动到查询到的节点呢 的全部内容, 来源链接: utcz.com/p/935500.html