fix: Excessive rerender of edge texts update(script-setup): Update some examples * Remove more jsx files
58 lines
1.2 KiB
TypeScript
58 lines
1.2 KiB
TypeScript
import { createRouter, createWebHashHistory, RouterOptions } from 'vue-router'
|
|
|
|
export const routes: RouterOptions['routes'] = [
|
|
{
|
|
path: '/',
|
|
redirect: '/basic',
|
|
},
|
|
{
|
|
path: '/basic',
|
|
component: () => import('./Basic/Basic.vue'),
|
|
},
|
|
{
|
|
path: '/custom-connectionline',
|
|
component: () => import('./CustomConnectionLine/CustomConnectionLine.vue'),
|
|
},
|
|
{
|
|
path: '/custom-node',
|
|
component: () => import('./CustomNode/CustomNode.vue'),
|
|
},
|
|
{
|
|
path: '/drag-n-drop',
|
|
component: () => import('./DragNDrop/DnD.vue'),
|
|
},
|
|
{
|
|
path: '/edges',
|
|
component: () => import('./Edges/EdgesExample.vue'),
|
|
},
|
|
{
|
|
path: '/button-edge',
|
|
component: () => import('./EdgeWithButton/EdgeWithButton.vue'),
|
|
},
|
|
{
|
|
path: '/edge-types',
|
|
component: () => import('./EdgeTypes'),
|
|
},
|
|
{
|
|
path: '/empty',
|
|
component: () => import('./Empty'),
|
|
},
|
|
{
|
|
path: '/hidden',
|
|
component: () => import('./Hidden'),
|
|
},
|
|
{
|
|
path: '/interaction',
|
|
component: () => import('./Interaction'),
|
|
},
|
|
{
|
|
path: '/super-flow',
|
|
component: () => import('./Superflow/Superflow.vue'),
|
|
},
|
|
]
|
|
|
|
export const router = createRouter({
|
|
history: createWebHashHistory(),
|
|
routes,
|
|
})
|