Giter Club home page Giter Club logo

Comments (3)

axetroy avatar axetroy commented on May 27, 2024

只需要改一改,即可修复

    getChildren(forceInit = false) {
        // this is data
-        if (this.level === 0) return this.data
+        if (this.level === 0) return this.childNodes.map(v => v.data)

from vue-easy-tree.

wchbrad avatar wchbrad commented on May 27, 2024

是个可能的问题,感谢修复,我根据你这个测试一下

from vue-easy-tree.

wchbrad avatar wchbrad commented on May 27, 2024

你好,我使用 插入节点到根 的insertAfter方法,未发现问题,是否未按照insertAfter的以下所述方法使用而导致的报错?

  • (data, refNode) 接收两个参数,1. 要增加的节点的 data 2. 要增加的节点的前一个节点的 data、key 或者 node

附测试gif
df

如有问题,请提交最小可重现代码,感谢

from vue-easy-tree.

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.