Skip to content
Source
Sign inSign up
TanStack/devtools
Open History to see the last commit

App.vue

36 lines670 Bytes

1<script lang="ts">
2import { defineComponent, h } from 'vue'
3import {
4 TanStackDevtools,
5 TanStackDevtoolsVuePlugin,
6} from '@tanstack/vue-devtools'
7​
8const DemoPlugin = defineComponent({
9 name: 'DemoPlugin',
10 render() {
11 return h('div', { 'data-testid': 'demo-plugin' }, 'demo plugin content')
12 },
13})
14​
15export default defineComponent({
16 name: 'App',
17 components: { TanStackDevtools },
18 setup() {
19 const plugins: TanStackDevtoolsVuePlugin[] = [
20 {
21 name: 'Demo',
22 component: DemoPlugin,
23 },
24 ]
25​
26 return {
27 plugins,
28 }
29 },
30})
31</script>
32​
33<template>
34 <h1>vue e2e</h1>
35 <TanStackDevtools :plugins="plugins" />
36</template>