This repository was archived by the owner on Mar 17, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed
Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @xsoulspace/vue_flutter_tailwind" ,
33 "description" : " Vue3 styled like Flutter with Tailwind CSS" ,
4- "version" : " 0.6.14 " ,
4+ "version" : " 0.6.15 " ,
55 "private" : false ,
66 "author" : {
77 "name" : " Anton Malofeev" ,
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ import {
3434 PackageGridItemPosition ,
3535} from ' ../abstract/Grid'
3636import { Maybe , ValueChanged } from ' ../abstract/BasicTypes'
37- import { getChangesFromOldAndNewArrays } from ' @ /functions'
37+ import { getChangesFromOldAndNewArrays } from ' .. /functions'
3838
3939type PackageGridItemPositionIndex = number
4040
@@ -146,15 +146,20 @@ export default {
146146 const index = internalLayoutMapOfIndexes .value .get (removedPosition .i )
147147 if (index ) internalLayoutMatrix .splice (index , 1 )
148148 }
149- for (const createdPosition of created . concat ( updated ) ) {
150- const index = internalLayoutMapOfIndexes .value .get (createdPosition .i )
149+ for (const updatedPosition of updated ) {
150+ const index = internalLayoutMapOfIndexes .value .get (updatedPosition .i )
151151
152152 if (index ) {
153- internalLayoutMatrix [index ] = createdPosition
154- } else {
155- internalLayoutMatrix .push (createdPosition )
153+ const oldPosition = internalLayoutMatrix [index ]
154+ oldPosition .x = updatedPosition .x
155+ oldPosition .y = updatedPosition .y
156+ oldPosition .w = updatedPosition .w
157+ oldPosition .h = updatedPosition .h
156158 }
157159 }
160+ for (const createdPosition of created .concat (updated )) {
161+ internalLayoutMatrix .push (createdPosition )
162+ }
158163 }
159164
160165 watch (
Original file line number Diff line number Diff line change 1- import { Maybe } from '@ /abstract/BasicTypes'
1+ import { Maybe } from '.. /abstract/BasicTypes'
22import { unifyValue } from './unifyValue'
33
44const getUnifiedValue = ( val : any ) => {
You can’t perform that action at this time.
0 commit comments