Files
vue-flow/examples/router.ts
T
Braks 2188c5d3d3 feat(example): Add custom edge example
update(example): fit view on custom node example
* node selection to use hooks
* dev script to use vue-tsc
2021-08-08 19:28:45 +02:00

30 lines
628 B
TypeScript

import { createRouter, createWebHashHistory } from 'vue-router';
export const routes = [
{
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')
}
];
export const router = createRouter({
history: createWebHashHistory(),
routes
});