赞
踩
<el-input v-model="filterText" placeholder="输入关键字进行过滤" />
<el-tree
ref="tree"
default-expand-all
show-checkbox
:data="list"
node-key="id"
:props="defaultProps"
:default-checked-keys="resourceCheckedKey"
:filter-node-method="filterNode"
@node-click="handleNodeClick"
@check-change="handleSelectionChange"
:check-strictly="true"
class="stafftree"
>
</el-tree>
添加一个class类名
<style scoped>
::v-deep .stafftree > .el-tree-node > .el-tree-node__content .el-checkbox {
display: none;
}
</style>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。