elementui下拉框子节点过滤保存父节点及子节点
组件应用部分
**需绑定 :filter-node-method=“filterNode”
<section class="head-container">
<el-input
placeholder="输入关键字进行过滤"
v-model="filterText">
</el-input>
<el-tree
:data="deptOptions"
:expand-on-click-node="false"
ref="tree"
default-expand-all
@node-click="handleDataNodeClick"
:filter-node-method="filterNode"
:props="defaultProps"
/>