web建站教程
  1. 首页
  2. vuejs
  3. js
  4. 好玩
  5. seo教程
  6. 前端知识
  7. 百度echarts
  8. 更多
    php入门
    nodejs
    mockjs
    reactjs
    mysql
    wordpress
    织梦cms
    帝国cms
    git教程
    IT知识
    模板大全
    休息站

el-tree组件如何添加虚线指示

601 ℃
     
<el-tree
  class="tree-line"
  :data="treeOption"
  :props="defaultProps"
  @node-click="getCurrentNode"
>

利用样式添加虚线指示

.el-tree-style{
  /deep/ .el-tree-node {
    position: relative;
  }
  /deep/ .el-tree-node__children {
    padding-left: 16px; 
  }

  /deep/ .el-tree-node::before {
    content: '';
    height: 100%;
    width: 1px;
    position: absolute;
    left: 30px;
    top: 0;
    border-width: 1px;
    border-left: 1px dashed #ddd;
  }
  /deep/ .el-tree-node:last-child::before {
    height: 38px; 
  }

  /deep/ .el-tree-node::after {
    content: '';
    width: 15px;
    height: 20px;
    position: absolute;
    left: 30px;
    top: 12px;
    border-width: 1px;
    border-top: 1px dashed #ddd;
  }

  & > .el-tree-node::after {
    border-top: none;
  }
  & > .el-tree-node::before {
    border-left: none;
  }

  .el-tree-node__expand-icon {
    font-size: 16px;
    &.is-leaf {
      color: transparent;
    }
  }
}

el-time-picker设置默认赋值时间

Vue项目如何实现文件上传(附完整代码)

Vue开发中最常用的几种UI组件库

vue语法如何设置el-select默认值

el-tree组件文字超出自动换行

标签: el-tree组件, element-ui

上面是“el-tree组件如何添加虚线指示”的全面内容,想了解更多关于 vuejs 内容,请继续关注web建站教程。

当前网址:https://ipkd.cn/webs_4410.html

声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

当前位置: 网站首页 > vuejs
本文共计693个字,预计阅读时长5分钟
生活小工具,收录了80多款小工具
上一篇: 基于JavaScrip的web动画库——GSAP
下一篇: 免费商用中文字体——优设鲨鱼菲特健康体
x 打工人ai神器