docs: replace vuepress specific components

This commit is contained in:
braks
2022-08-01 21:10:14 +02:00
committed by Braks
parent af78b52233
commit f386ea454c
26 changed files with 99 additions and 156 deletions
+2 -9
View File
@@ -8,8 +8,7 @@ Viewport Functions can be accessed via the [`useVueFlow`](/guide/composables#use
utility or with the [`VueFlowStore`](/typedocs/types/VueFlowStore)
instance provided by [`onPaneReady`](/typedocs/interfaces/FlowEvents#paneready).
<CodeGroup>
<CodeGroupItem title="Composition API" active>
- Using Event Hooks (Composable)
```vue
<script setup>
@@ -22,10 +21,7 @@ onPaneReady((instance) => instance.fitView())
</script>
```
</CodeGroupItem>
<CodeGroupItem title="Options API">
- Using Event Listener
```vue
<script>
@@ -51,9 +47,6 @@ export default defineComponent({
</template>
```
</CodeGroupItem>
</CodeGroup>
### [project](/typedocs/types/Project)
- Details: