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/dist/comand-component-library.js +17094 -13926
- package/package.json +1 -1
- package/src/ComponentLibrary.vue +4 -0
- package/src/assets/data/main-navigation.json +19 -15
- package/src/components/RouterComponent.vue +13 -0
- package/src/composables/scrollspy.js +3 -1
- package/src/pages/PageOverview.vue +0 -1
- package/src/router/index.js +6 -0
package/package.json
CHANGED
package/src/ComponentLibrary.vue
CHANGED
@@ -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": "
|
8
|
+
"text": "href 1",
|
9
9
|
"path": "#",
|
10
10
|
"iconClass": "icon-home"
|
11
11
|
},
|
12
12
|
{
|
13
13
|
"type": "href",
|
14
|
-
"text": "
|
14
|
+
"text": "href 2",
|
15
15
|
"path": "",
|
16
16
|
"subentries": [
|
17
17
|
{
|
18
18
|
"type": "href",
|
19
|
-
"text": "
|
19
|
+
"text": "href 2.1",
|
20
20
|
"path": "",
|
21
21
|
"subentries": [
|
22
22
|
{
|
23
23
|
"type": "href",
|
24
|
-
"text": "
|
24
|
+
"text": "href 2.1.1",
|
25
25
|
"path": "#"
|
26
26
|
},
|
27
27
|
{
|
28
28
|
"type": "href",
|
29
|
-
"text": "
|
29
|
+
"text": "href 2.1.2",
|
30
30
|
"path": "#"
|
31
31
|
},
|
32
32
|
{
|
33
33
|
"type": "href",
|
34
|
-
"text": "
|
34
|
+
"text": "href 2.1.3",
|
35
35
|
"path": "#"
|
36
36
|
}
|
37
37
|
]
|
38
38
|
},
|
39
39
|
{
|
40
40
|
"type": "href",
|
41
|
-
"text": "
|
41
|
+
"text": "href 2.2",
|
42
42
|
"path": "#",
|
43
43
|
"subentries": []
|
44
44
|
}
|
45
45
|
]
|
46
46
|
},
|
47
47
|
{
|
48
|
-
"type": "
|
49
|
-
"text": "
|
48
|
+
"type": "router",
|
49
|
+
"text": "router 3",
|
50
50
|
"path": "#",
|
51
51
|
"subentries": [
|
52
52
|
{
|
53
|
-
"type": "
|
54
|
-
"text": "
|
55
|
-
"path":
|
53
|
+
"type": "router",
|
54
|
+
"text": "router 3.1",
|
55
|
+
"path": {
|
56
|
+
"name": "home"
|
57
|
+
}
|
56
58
|
},
|
57
59
|
{
|
58
|
-
"type": "
|
59
|
-
"text": "
|
60
|
-
"path":
|
60
|
+
"type": "router",
|
61
|
+
"text": "router 3.2",
|
62
|
+
"path": {
|
63
|
+
"name": "home"
|
64
|
+
}
|
61
65
|
}
|
62
66
|
]
|
63
67
|
},
|
@@ -29,7 +29,7 @@ function buildItemList(itemSupplier, itemList) {
|
|
29
29
|
}
|
30
30
|
}
|
31
31
|
|
32
|
-
|
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">
|
package/src/router/index.js
CHANGED
@@ -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: {}
|