We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5433a76 commit 233aa47Copy full SHA for 233aa47
examples/vite/src/Screenshot/ScreenshotExample.vue
@@ -14,16 +14,12 @@ const elements = ref<Elements>([
14
])
15
16
const { screenshot } = useScreenshot()
17
-
18
-function onClick() {
19
- screenshot(ImageType.SVG)
20
-}
21
</script>
22
23
<template>
24
<VueFlow v-model="elements" fit-view-on-init style="background-color: white" class="vue-flow-basic-example">
25
<Panel :position="PanelPosition.TopCenter">
26
- <button @click="onClick">Click to save Screenshot</button>
+ <button @click="screenshot">Click to save Screenshot</button>
27
</Panel>
28
</VueFlow>
29
</template>
0 commit comments