Skip to content

Commit

Permalink
expose state
Browse files Browse the repository at this point in the history
  • Loading branch information
jlpereira committed Jan 8, 2025
1 parent 7de7842 commit 9880ef2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sfgrp/pinpoint",
"private": false,
"version": "0.0.7",
"version": "0.0.8",
"files": [
"dist"
],
Expand Down
10 changes: 9 additions & 1 deletion src/components/VuePinpoint.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<template>
<div class="pinpoint-app">
<div class="pinpoint-key-title">
<div
class="pinpoint-key-title"
v-if="store.state.metadata"
>
<slot
name="title"
:title="store.state.metadata.title"
:metadata="store.state.metadata"
>
{{ store.state.metadata.title }}
</slot>
Expand Down Expand Up @@ -75,4 +79,8 @@ watch(
immediate: true
}
)
defineExpose({
getState: () => store.state
})
</script>

0 comments on commit 9880ef2

Please sign in to comment.