Skip to content

Commit 01d0d45

Browse files
committed
fix(theme/regression): typo in component props resulting in nested titles not showing in navbar
closes #4042
1 parent 6263db1 commit 01d0d45

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

Diff for: __tests__/e2e/.vitepress/config.ts

+23
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,29 @@ const nav: DefaultTheme.Config['nav'] = [
4242
}
4343
]
4444
}
45+
},
46+
{
47+
text: 'Nested',
48+
items: [
49+
{
50+
text: 'Level 1 - 1',
51+
items: [
52+
{
53+
text: 'Level 2 - 1',
54+
link: '/nested/level1-1/level2-1'
55+
}
56+
]
57+
},
58+
{
59+
text: 'Level 1 - 2',
60+
items: [
61+
{
62+
text: 'Level 2 - 2',
63+
link: '/nested/level1-2/level2-2'
64+
}
65+
]
66+
}
67+
]
4568
}
4669
]
4770

Diff for: src/client/theme-default/components/VPNavScreenMenuGroup.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function toggle() {
4242
</div>
4343

4444
<div v-else class="group">
45-
<VPNavScreenMenuGroupSection :items="item.items" />
45+
<VPNavScreenMenuGroupSection :text="item.text" :items="item.items" />
4646
</div>
4747
</template>
4848
</div>

0 commit comments

Comments
 (0)