Skip to content
Snippets Groups Projects
Commit e4902e0c authored by Julian's avatar Julian
Browse files

Emit raw items

parent bacf007a
No related branches found
No related tags found
1 merge request!2Resolve "Implement basic functionality"
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
:context="context" :context="context"
:grid-id="gridId" :grid-id="gridId"
> >
<slot v-bind="transformItem(item)" name="item"> <slot v-bind="transformItem(item)" :raw-item="item" name="item">
<dl> <dl>
<dt>Key</dt> <dt>Key</dt>
<dd>{{ item.key }}</dd> <dd>{{ item.key }}</dd>
...@@ -189,6 +189,7 @@ export default { ...@@ -189,6 +189,7 @@ export default {
element.x = coords.x; element.x = coords.x;
element.y = coords.y; element.y = coords.y;
element.gridId = this.gridId;
this.$emit("itemChanged", element); this.$emit("itemChanged", element);
}, },
getCoords(x, y) { getCoords(x, y) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment