Comments (8)
麻烦贴一个最小可重现代码
from vue-easy-tree.
同样的问题,有的时候会出现有的时候是好的,我找一下问题,再贴一下代码
from vue-easy-tree.
应该是vue-virtual-scroller的bug, 试试升级一下
from vue-easy-tree.
应该是vue-virtual-scroller的bug, 试试升级一下
我需要评估一下,也许暂时不能升级,vue-virtual-scroller的~v1.1版本有缺陷,不能使用滚动到某个item的功能,升级会影响到现有其他此包的开发人员
能提供最小可重现代码最好,谢谢
from vue-easy-tree.
应该是vue-virtual-scroller的bug, 试试升级一下
我需要评估一下,也许暂时不能升级,vue-virtual-scroller的~v1.1版本有缺陷,不能使用滚动到某个item的功能,升级会影响到现有其他此包的开发人员 能提供最小可重现代码最好,谢谢
我试了一下发现就算是用你文档中提供的示例也会有这个问题,就是滚动之后会出现transform:translateY(-9999px)的空节点
<template>
<div class="ve-tree" style="height: calc(100vh - 20px)">
<!-- 不使用虚拟滚动时只需去掉height参数即可 -->
<vue-easy-tree
ref="veTree"
node-key="id"
height="calc(100vh - 20px)"
:data="treeData"
:props="props"
></vue-easy-tree>
</div>
</template>
<script>
import vueEasyTree from "@wchbrad/vue-easy-tree";
export default {
components: {
vueEasyTree,
},
data() {
return {
props: {
label: "name",
children: "children",
},
treeData: [],
};
},
created() {
const data = [],
root = 8,
children = 3,
base = 1000;
for (let i = 0; i < root; i++) {
data.push({
id: `${i}`,
name: `test-${i}`,
children: [],
});
for (let j = 0; j < children; j++) {
data[i].children.push({
id: `${i}-${j}`,
name: `test-${i}-${j}`,
children: [],
});
for (let k = 0; k < base; k++) {
data[i].children[j].children.push({
id: `${i}-${j}-${k}`,
name: `test-${i}-${j}-${k}`,
});
}
}
}
this.treeData = data;
},
};
</script>
from vue-easy-tree.
应该是vue-virtual-scroller的bug, 试试升级一下
我需要评估一下,也许暂时不能升级,vue-virtual-scroller的~v1.1版本有缺陷,不能使用滚动到某个item的功能,升级会影响到现有其他此包的开发人员 能提供最小可重现代码最好,谢谢
我试了一下发现就算是用你文档中提供的示例也会有这个问题,就是滚动之后会出现transform:translateY(-9999px)的空节点
<template> <div class="ve-tree" style="height: calc(100vh - 20px)"> <!-- 不使用虚拟滚动时只需去掉height参数即可 --> <vue-easy-tree ref="veTree" node-key="id" height="calc(100vh - 20px)" :data="treeData" :props="props" ></vue-easy-tree> </div> </template> <script> import vueEasyTree from "@wchbrad/vue-easy-tree"; export default { components: { vueEasyTree, }, data() { return { props: { label: "name", children: "children", }, treeData: [], }; }, created() { const data = [], root = 8, children = 3, base = 1000; for (let i = 0; i < root; i++) { data.push({ id: `${i}`, name: `test-${i}`, children: [], }); for (let j = 0; j < children; j++) { data[i].children.push({ id: `${i}-${j}`, name: `test-${i}-${j}`, children: [], }); for (let k = 0; k < base; k++) { data[i].children[j].children.push({ id: `${i}-${j}-${k}`, name: `test-${i}-${j}-${k}`, }); } } } this.treeData = data; }, }; </script>
页面展示上会有空白节点么?如果如果没有的话这个是正常的,transform:translateY(-9999px)的空dom是为了快速重用dom,增加大数据量下的性能
from vue-easy-tree.
页面展示上会有空白节点么?如果如果没有的话这个是正常的,transform:translateY(-9999px)的空dom是为了快速重用dom,增加大数据量下的性能
是不会显示,但是貌似如果不停地滚动以及切换树的折叠状态,滚动这样,这个好像一直在增长??(看上去)(只有部分能够被回收?看上去)
from vue-easy-tree.
不会的,最终并不会产生性能问题,如果有可重现的导致低性能的案例,请贴下,谢谢
from vue-easy-tree.
Related Issues (20)
- 节点连接线? HOT 5
- 列表滚动过程引起部分treeitem 消失 HOT 1
- 请问样式文件可以换一套多种方案吗 HOT 1
- items有重复数据,数据显示去重了totalSize并未更改导致多出一行空白 HOT 1
- 高度为100%虚拟滚动不生效,需要使用px或者calc(100vh - 10px)转换 HOT 2
- 自定义的节点内容样式错乱,itemSize属性需要改成40,默认是26 HOT 7
- 你好,问下引入的scss文件是需要下载指定的node-sass和sass-loader的包吗 HOT 1
- :render-after-expand="false"设置无效 HOT 1
- vue-easy-tree虚拟加载怎么实现节点定位功能 HOT 1
- 在出现滚动条后,向上滚动过程会突然全部收起所有的节点 HOT 2
- prop "accordion" not work HOT 2
- 有vue3版本的吗 HOT 1
- 复选框条件下,大数据量的数据回显会卡死。这个有办法解决吗 HOT 5
- 大数据量的数据回显问题,父级没有半选的状态 HOT 2
- 虚拟渲染可以支持横向滚动条吗 HOT 4
- 支持 props.children 为函数吗?
- 支持展开收起动画
- 鼠标来回滚动,tree 每条数据的transform: translateY 计算有误
- 开启虚拟滚动后,当前勾选框的选择状态会同步到其他item的ui上, 数据层面无影响
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-easy-tree.