mauricius / vue-draggable-resizable

Vue3 Component for draggable and resizable elements.
https://mauricius.github.io/vue-draggable-resizable/
MIT License
3.33k stars 559 forks source link

Hello, after changing the array order, the component size has changed. What's the matter #375

Open 875908494 opened 1 year ago

875908494 commented 1 year ago

Hello, after changing the array order, the component size has changed. What's the matter。

<VdrComponents v-for="(item, index) in getDiyData.components" :key="'comp-' + index" :w="item.width" :h="item.height" :x="item.left" :y="item.top" :parent="true" :debug="false" :snap="true" :draggable="!item.isLock" :resizable="!item.isLock" :lock-aspect-ratio="true" :snap-tolerance="5" :z-index="index" class-name-dragging="my-dragging-class" @refLineParams="getRefLineParams" @dragstop="dragstop" @resizestop="resizestop" @activated="activated(item, index)" @deactivated="deactivated" @contextmenu.prevent="rightClick"