el-tree设置横向滚动条

最终效果:

相关代码:

<div class="center-tree">
          <el-tree
            ref="structureRef"
            node-key="name"
            class="structure-tree"
            :data="structrueTreeData"
            :props="structureProps"
            style="height: 100%; display: inline-block; min-width: 100%"
            :default-expand-all="true"
          ></el-tree>
        </div>
.structure-tree ::v-deep .el-tree-node {
  position: relative;
  padding-left: 16px;
}
.structure-tree ::v-deep .el-tree-node__content {
  padding-left: 8px !important;
}
.structure-tree ::v-deep .el-tree-node__children {
  padding-left: 8px;
}

.structure-tree ::v-deep .el-tree-node :last-child:before {
  height: 40px;
}

.structure-tree ::v-deep .el-tree > .el-tree-node:before {
  border-left: none;
}

.structure-tree-container ::v-deep .el-tree > .el-tree-node:after {
  border-top: none;
}

.structure-tree ::v-deep .el-tree-node:before {
  content: "";
  left: 10px;
  position: absolute;
  right: auto;
  border-width: 1px;
}

.structure-tree ::v-deep .el-tree-node:after {
  content: "";
  left: 10px;
  position: absolute;
  right: auto;
  border-width: 1px;
}

.structure-tree ::v-deep .el-tree-node:before {
  border-left: 1px dashed #4386c6;
  bottom: 0px;
  height: 100%;
  top: -26px;
  width: 1px;
}

.structure-tree ::v-deep .el-tree-node:after {
  border-top: 1px dashed #4386c6;
  height: 20px;
  top: 13px;
  width: 18px;
}

 水印给挡住了...但是还是能依稀看出来嗷

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值