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>
<div class="VPMenuLink">
<VPLink
:class="{ active: isActive(page.relativePath, item.activeMatch || item.link) }"
:class="{ active: isActive(page.relativePath, item.activeMatch || item.link, !!item.activeMatch) }"
:href="item.link"
>
{{ item.text }}

Loading…
Cancel
Save