Skip to content

Commit

Permalink
Improvement - Added @selecttype event
Browse files Browse the repository at this point in the history
  • Loading branch information
graphieros committed Jun 24, 2024
1 parent eb40aee commit d023c35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "grid-plan",
"version": "1.0.4",
"version": "1.0.5",
"private": false,
"type": "module",
"description": "A Vue3 dynamic 2d grid component ideal to view and arrange elements on a room, datacenter or rack blueprint.",
Expand Down
4 changes: 3 additions & 1 deletion src/components/GridPlan.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ const emit = defineEmits([
'delete',
'select',
'unselect',
'created'
'created',
'selectType'
])
const items = ref(props.placedItems.map(item => {
Expand Down Expand Up @@ -109,6 +110,7 @@ const activeType = ref(availableTypes.value[0])
function setActiveType(t) {
activeType.value = t;
emit('selectType', t)
}
function deleteItem(item) {
Expand Down

0 comments on commit d023c35

Please sign in to comment.