1.取消上下联动,加入一行代码

:check-strictly="true"

2.样式隐藏父级复选框

::v-deep .el-tree { .el-tree-node { .is-leaf + .el-checkbox .el-checkbox__inner { display: inline-block; } .el-checkbox .el-checkbox__inner { display: none; } } }

3.树形菜单加入滚动条
el-tree添加scroll-tree样式

.scroll-tree { overflow: auto ; height: 350px; }