Skip to content
This repository was archived by the owner on Mar 17, 2024. It is now read-only.

Commit 03c86e6

Browse files
committed
fix: relative paths
build v0.6.15
1 parent faada3b commit 03c86e6

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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",

src/components/GridViewBuilder.vue

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import {
3434
PackageGridItemPosition,
3535
} from '../abstract/Grid'
3636
import { Maybe, ValueChanged } from '../abstract/BasicTypes'
37-
import { getChangesFromOldAndNewArrays } from '@/functions'
37+
import { getChangesFromOldAndNewArrays } from '../functions'
3838
3939
type 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(

src/functions/getChangesFromOldAndNewArrays.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Maybe } from '@/abstract/BasicTypes'
1+
import { Maybe } from '../abstract/BasicTypes'
22
import { unifyValue } from './unifyValue'
33

44
const getUnifiedValue = (val: any) => {

0 commit comments

Comments
 (0)