Open 875908494 opened 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"
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"