comand-component-library 4.1.27 → 4.1.28

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comand-component-library",
3
- "version": "4.1.27",
3
+ "version": "4.1.28",
4
4
  "license": "GPL-3.0-only",
5
5
  "author": "CoManD-UI",
6
6
  "private": false,
@@ -193,6 +193,7 @@
193
193
  </CmdSiteHeader>
194
194
  <!-- end site-header --------------------------------------------------------------------------------------------------------------------------------------------------->
195
195
  <main v-if="componentView" id="content">
196
+
196
197
  <CmdWidthLimitationWrapper>
197
198
  <h1 class="headline-demopage">Components Overview</h1>
198
199
  </CmdWidthLimitationWrapper>
@@ -1610,6 +1611,9 @@
1610
1611
  v-bind="cmdMainNavigationSettingsData"
1611
1612
  :navigationEntries="navigationData.navigationEntries"
1612
1613
  />
1614
+ <!-- begin router-view -->
1615
+ <router-view></router-view>
1616
+ <!-- end router-view -->
1613
1617
  </CmdWidthLimitationWrapper>
1614
1618
  <!-- end main-navigation ------------------------------------------------------------------------------------------------------------------------------------------------------->
1615
1619
 
@@ -5,59 +5,63 @@
5
5
  "navigationEntries": [
6
6
  {
7
7
  "type": "href",
8
- "text": "Entry 1",
8
+ "text": "href 1",
9
9
  "path": "#",
10
10
  "iconClass": "icon-home"
11
11
  },
12
12
  {
13
13
  "type": "href",
14
- "text": "Entry 2",
14
+ "text": "href 2",
15
15
  "path": "",
16
16
  "subentries": [
17
17
  {
18
18
  "type": "href",
19
- "text": "Entry 2.1",
19
+ "text": "href 2.1",
20
20
  "path": "",
21
21
  "subentries": [
22
22
  {
23
23
  "type": "href",
24
- "text": "Entry 2.1.1",
24
+ "text": "href 2.1.1",
25
25
  "path": "#"
26
26
  },
27
27
  {
28
28
  "type": "href",
29
- "text": "Entry 2.1.2",
29
+ "text": "href 2.1.2",
30
30
  "path": "#"
31
31
  },
32
32
  {
33
33
  "type": "href",
34
- "text": "Entry 2.1.3",
34
+ "text": "href 2.1.3",
35
35
  "path": "#"
36
36
  }
37
37
  ]
38
38
  },
39
39
  {
40
40
  "type": "href",
41
- "text": "Entry 2.2",
41
+ "text": "href 2.2",
42
42
  "path": "#",
43
43
  "subentries": []
44
44
  }
45
45
  ]
46
46
  },
47
47
  {
48
- "type": "href",
49
- "text": "Entry 3",
48
+ "type": "router",
49
+ "text": "router 3",
50
50
  "path": "#",
51
51
  "subentries": [
52
52
  {
53
- "type": "href",
54
- "text": "Entry 3.1",
55
- "path": ""
53
+ "type": "router",
54
+ "text": "router 3.1",
55
+ "path": {
56
+ "name": "home"
57
+ }
56
58
  },
57
59
  {
58
- "type": "href",
59
- "text": "Entry 3.2",
60
- "path": ""
60
+ "type": "router",
61
+ "text": "router 3.2",
62
+ "path": {
63
+ "name": "home"
64
+ }
61
65
  }
62
66
  ]
63
67
  },
@@ -0,0 +1,13 @@
1
+ <script>
2
+ export default {
3
+ name: "RouterComponent"
4
+ }
5
+ </script>
6
+
7
+ <template>
8
+ <p>Router</p>
9
+ </template>
10
+
11
+ <style scoped>
12
+
13
+ </style>
@@ -29,7 +29,7 @@ function buildItemList(itemSupplier, itemList) {
29
29
  }
30
30
  }
31
31
 
32
- export function useScrollspy(itemSupplier, initialActiveItem = 0) {
32
+ function useScrollspy(itemSupplier, initialActiveItem = 0) {
33
33
  const itemList = []
34
34
  const scrollSpy = reactive({
35
35
  activeItem: initialActiveItem,
@@ -50,3 +50,5 @@ export function useScrollspy(itemSupplier, initialActiveItem = 0) {
50
50
  })
51
51
  return scrollSpy
52
52
  }
53
+
54
+ export {useScrollspy}
@@ -1,5 +1,4 @@
1
1
  <template>
2
-
3
2
  <!-- begin basic-form ------------------------------------------------------------------------------------------------------------------------------------------------------->
4
3
  <CmdWidthLimitationWrapper>
5
4
  <h2 class="headline-demopage" id="section-contact-information">
@@ -1,6 +1,12 @@
1
1
  import { createRouter, createWebHistory } from "vue-router"
2
+ import RouterComponent from "@/components/RouterComponent.vue"
2
3
 
3
4
  const routes = [
5
+ {
6
+ path: '/router',
7
+ name: 'home',
8
+ component: RouterComponent
9
+ },
4
10
  {
5
11
  path: "/:pathMatch(.*)*",
6
12
  component: {}