Code Monkey home page Code Monkey logo

Comments (7)

ayiaq1 avatar ayiaq1 commented on September 15, 2024

发一下 orgTree 以及 props 呢 应该是对应的id 没有匹配到

from el-tree-select.

AK47-dadada avatar AK47-dadada commented on September 15, 2024

昨晚熬夜检查了一下,发现这个插件在数据回显的时候,如果数据加载慢了,不会自动响应的,id肯定是有的,是这个问题

from el-tree-select.

ayiaq1 avatar ayiaq1 commented on September 15, 2024

在数据变更时,如果你触发了(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.

AK47-dadada avatar AK47-dadada commented on September 15, 2024

我最终解决方案是获取数据之后才调用查询 不然这个有点小坑
可以吧这个做成响应式的不,不然来回渲染有点心塞啊

from el-tree-select.

ayiaq1 avatar ayiaq1 commented on September 15, 2024

这本来就是一个双向的数据 方便贴一下代码么

from el-tree-select.

AK47-dadada avatar AK47-dadada commented on September 15, 2024

晚点啦 大兄弟 这会儿在改别的项目的代码 QAQ

from el-tree-select.

ayiaq1 avatar ayiaq1 commented on September 15, 2024

没有后续回复,后续确认为bug,会reopen该问题

from el-tree-select.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.