Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Q
Quasar Components MoSys
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
9
Issues
9
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Motion Bank
MB.js
Quasar Components MoSys
Commits
88ae5822
Commit
88ae5822
authored
Nov 06, 2019
by
christianrhansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setted up watcher for move handler's position in grid
parent
6df112bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
partials/GridEditor.vue
partials/GridEditor.vue
+10
-1
No files found.
partials/GridEditor.vue
View file @
88ae5822
...
...
@@ -362,7 +362,7 @@
// cursor: {x: undefined, y: undefined},
cellHandler
:
{
size
:
{
width
:
40
,
height
:
40
},
move
:
{
x
:
20
,
y
:
undefined
,
pushed
:
false
,
pos
:
undefined
,
inViewport
:
undefined
,
onLeft
:
undefined
,
onRight
:
undefined
,
dataLeft
:
undefined
},
move
:
{
x
:
20
,
y
:
undefined
,
gridPosition
:
{
row
:
undefined
,
column
:
undefined
},
pushed
:
false
,
pos
:
undefined
,
inViewport
:
undefined
,
onLeft
:
undefined
,
onRight
:
undefined
,
dataLeft
:
undefined
},
resize
:
{
x
:
undefined
,
y
:
undefined
,
pushed
:
false
,
pos
:
undefined
}
},
tempHandler
:
{
...
...
@@ -436,6 +436,12 @@
this
.
observer
.
disconnect
()
},
watch
:
{
'
cellHandler.move.gridPosition
'
:
{
handler
:
function
(
val
)
{
console
.
log
(
'
col --->
'
,
val
)
},
deep
:
true
},
slide
(
val
)
{
let
icon
switch
(
val
)
{
...
...
@@ -540,6 +546,9 @@
let
res
=
this
.
getGridPositionForEvent
(
obj
)
this
.
cellHandler
.
move
.
gridPosition
.
row
=
res
.
y
this
.
cellHandler
.
move
.
gridPosition
.
column
=
res
.
x
if
(
obj
.
isFirst
)
{
this
.
mobileTempCell
.
show
=
true
this
.
mobileTempCell
.
button
=
false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment