fix(theme): `activeMatch` support regexp (#1754)

fixes #1771
pull/1772/head
Satrong 2 years ago committed by GitHub
parent 01ac579187
commit 0913e0fe69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -13,7 +13,7 @@ const { page } = useData()
<template> <template>
<div class="VPMenuLink"> <div class="VPMenuLink">
<VPLink <VPLink
:class="{ active: isActive(page.relativePath, item.activeMatch || item.link) }" :class="{ active: isActive(page.relativePath, item.activeMatch || item.link, !!item.activeMatch) }"
:href="item.link" :href="item.link"
> >
{{ item.text }} {{ item.text }}

Loading…
Cancel
Save