From ecd38b232b184a02082f5da75abde02334ace1c2 Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Fri, 10 Dec 2021 13:15:22 +0100 Subject: [PATCH] feat(examples): Add grouping example Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com> --- examples/Basic/Basic.vue | 3 +++ examples/Nesting/GroupNode.vue | 42 ++++++++++++++++++++++++++++++++++ examples/Nesting/Nesting.vue | 37 ++++++++++++++++++++++++++++++ examples/router.ts | 4 ++++ 4 files changed, 86 insertions(+) create mode 100644 examples/Nesting/GroupNode.vue create mode 100644 examples/Nesting/Nesting.vue diff --git a/examples/Basic/Basic.vue b/examples/Basic/Basic.vue index a591b1fe..69010236 100644 --- a/examples/Basic/Basic.vue +++ b/examples/Basic/Basic.vue @@ -67,6 +67,9 @@ const toggleclasss = () => { @node-click="onElementClick" @load="onLoad" > + + +
diff --git a/examples/Nesting/GroupNode.vue b/examples/Nesting/GroupNode.vue new file mode 100644 index 00000000..a7b84d9d --- /dev/null +++ b/examples/Nesting/GroupNode.vue @@ -0,0 +1,42 @@ + + + diff --git a/examples/Nesting/Nesting.vue b/examples/Nesting/Nesting.vue new file mode 100644 index 00000000..7c463a2c --- /dev/null +++ b/examples/Nesting/Nesting.vue @@ -0,0 +1,37 @@ + + diff --git a/examples/router.ts b/examples/router.ts index bd666a5d..058433c5 100644 --- a/examples/router.ts +++ b/examples/router.ts @@ -109,6 +109,10 @@ export const routes: RouterOptions['routes'] = [ path: '/zoom-pan-helper', component: () => import('./ZoomPanHelper/ZoomPanHelperExample.vue'), }, + { + path: '/nesting', + component: () => import('./Nesting/Nesting.vue'), + }, ] export const router = createRouter({