Code Monkey home page Code Monkey logo

Comments (3)

holiber avatar holiber commented on July 24, 2024

Hey. I have to replace v-if with v-show to allow transitions. Looks like it's easy to hook up, will do a PR for that

from sl-vue-tree.

Piersen avatar Piersen commented on July 24, 2024

Thanks a lot. I don't entirely see why v-show is necessary as transitions as described here https://vuejs.org/v2/guide/transitions.html work with v-if too. I just imagined that with a transition wrapper added, the styles of the enter and leave classes could be changed to customize the transition

from sl-vue-tree.

lazylester avatar lazylester commented on July 24, 2024

v-show appears to be preferred in this scenario (see: the vuejs docs) for performance reasons. I'm debugging significant and problematic performance issues with my sl-vue-tree. I can't (yet) tell if they're related to this library itself, or to vuejs. But according to the docs v-show would be appropriate here.

Having said that, however, I'm still seeing performance issues with v-show, even though it should be much faster (it's just css show/hide).

It's slightly OT for this thread, but the performance issue I'm seeing is >100ms to open a node with 26 children. This becomes problematic when I implement an "open all" icon, and it takes several seconds to open 50 nodes.

from sl-vue-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.