Comments (7)
发一下 orgTree 以及 props 呢 应该是对应的id 没有匹配到
from el-tree-select.
昨晚熬夜检查了一下,发现这个插件在数据回显的时候,如果数据加载慢了,不会自动响应的,id肯定是有的,是这个问题
from el-tree-select.
在数据变更时,如果你触发了(treeDataUpdateFun) 该方法 会延迟做回显判断
this.$refs.selectTree.treeDataUpdateFun(treeData);
treeDataUpdateFun(data) {
this.data = data;
// 数据更新完成之后,判断是否回显内容
if (data.length > 0) {
setTimeout(() => {
this._setSelectNodeFun(this.ids);
}, 300);
}
}
from el-tree-select.
我最终解决方案是获取数据之后才调用查询 不然这个有点小坑
可以吧这个做成响应式的不,不然来回渲染有点心塞啊
from el-tree-select.
这本来就是一个双向的数据 方便贴一下代码么
from el-tree-select.
晚点啦 大兄弟 这会儿在改别的项目的代码 QAQ
from el-tree-select.
没有后续回复,后续确认为bug,会reopen该问题
from el-tree-select.
Related Issues (20)
- 页面初始化,数据回显后,点击删除标签没反应
- tree 分页加载
- 请教个问题 HOT 1
- 能否支持按点击节点的顺序保存value,以及在输入框里也是按此顺序显示,就像启用多选的普通select组件一样 HOT 1
- 请问一下如何自定义搜索 HOT 13
- 新增的leafOnly如何使用? HOT 2
- 点击复选框时会选中所有子节点,但是点击文字部分只会选中父节点,这个有办法配置吗? HOT 2
- 如何支持输入值 HOT 1
- 可否把弹出框内的搜索框绑定开放出来实现边输入边搜索?
- BUG 结果框无法和树联动,移除了数据之后树还是选中状态 HOT 5
- 直接在组件内使用时,引入的不是一个正常的ElTreeSelect组件 HOT 3
- 标签名一致,会导致bug HOT 6
- 可否把el-popover的transition属性暴露出来? HOT 2
- 可否明确一下开源协议配置在 package.json 里? HOT 2
- 一个小问题,文档里是popperClass,实际上是popoverClass HOT 1
- 高亮显示 HOT 1
- 单选模式下,选中节点可以高亮么?现在没有高亮,不知道选的哪个 HOT 1
- 支持Element-Plus HOT 1
- 作者有空否 HOT 5
- [BUG] 通过鼠标点击在多个 el-tree-select 之间切换焦点时, el-tree-select 的下拉框无法消失. HOT 7
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 el-tree-select.