GithubHelp home page GithubHelp logo

Comments (7)

Alfred-Skyblue avatar Alfred-Skyblue commented on May 22, 2024 1
<draggable
  :filter=".ignore-element"
 v-model="list"
>
<div v-for="(item, index) in list" :class="{'.ignore-element':index%2===0}">

<div>

</draggable>

from vue-draggable-plus.

lzdml avatar lzdml commented on May 22, 2024

感谢感谢, 感觉文档还可以完善一点, 每一个属性最起码案例里面有是最好的

from vue-draggable-plus.

Alfred-Skyblue avatar Alfred-Skyblue commented on May 22, 2024

感谢感谢, 感觉文档还可以完善一点, 每一个属性最起码案例里面有是最好的

好的,回头会完善一下,谢谢你的提议

from vue-draggable-plus.

lzdml avatar lzdml commented on May 22, 2024

感谢感谢, 感觉文档还可以完善一点, 每一个属性最起码案例里面有是最好的

好的,回头会完善一下,谢谢你的提议

有一点不是太明白, 为什么拖拽开始时拖拽的元素后面的元素会往前挤

from vue-draggable-plus.

Alfred-Skyblue avatar Alfred-Skyblue commented on May 22, 2024

包含块的问题

from vue-draggable-plus.

lzdml avatar lzdml commented on May 22, 2024

有办法不让往前挤吗, 或者有对应的拖拽文章推荐吗

from vue-draggable-plus.

Alfred-Skyblue avatar Alfred-Skyblue commented on May 22, 2024

如果你没有双向绑定元素,当拖拽开始时,你复制一个相同的元素放到原位置将它设置为透明,就可以了,如果你对元素进行了数据绑定,你可以对拖拽源数据追加一个数组项,来保持原有的结构

from vue-draggable-plus.

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.