vue-easy-tree树状结构

1、虚拟滚动

vue-easy-tree中添加属性height可实现虚拟滚动

2、 超出部分滚动

html 复制代码
//超出部分显示滚动条
::v-deep .vue-recycle-scroller__item-wrapper{
  position: static;
}

::v-deep .el-tree {
  height: 100%;
  width: 100%;
  & > .el-tree-node {
    min-width: 100%;
    display: inline-block;
    .el-tree-node__content {
      width: 100%;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      display: block;
    }
  }
  .vue-recycle-scroller {
    overflow-y: overlay !important;
  }
}
相关推荐
tao3556671 天前
【用AI学前端】准备工作
前端·人工智能
利刃大大1 天前
【Vue】自定义指令directives && 指令钩子 && IntersectionObserver
前端·javascript·vue.js
共享家95271 天前
搭建 AI 聊天机器人:”我的人生我做主“
前端·javascript·css·python·pycharm·html·状态模式
Halo_tjn1 天前
基于封装的专项 知识点
java·前端·python·算法
摘星编程1 天前
OpenHarmony环境下React Native:自定义useTruncate文本截断
javascript·react native·react.js
Duang007_1 天前
【LeetCodeHot100 超详细Agent启发版本】字母异位词分组 (Group Anagrams)
开发语言·javascript·人工智能·python
有来技术1 天前
Spring Boot 4 + Vue3 企业级多租户 SaaS:从共享 Schema 架构到商业化套餐设计
java·vue.js·spring boot·后端
东东5161 天前
学院个人信息管理系统 (springboot+vue)
vue.js·spring boot·后端·个人开发·毕设
2601_949868361 天前
Flutter for OpenHarmony 电子合同签署App实战 - 主入口实现
开发语言·javascript·flutter
m0_748229991 天前
Vue2 vs Vue3:核心差异全解析
前端·javascript·vue.js