chore: revert unnecessary change

pull/820/head
casyalex 3 years ago
parent 0fc32a10b2
commit fa65c49a3f

@ -44,16 +44,12 @@ export default defineConfig({
function nav() {
return [
// { text: 'Guide', link: '/guide/what-is-vitepress', activeMatch: '/guide/' },
{ text: 'Guide', link: '/guide/what-is-vitepress', activeMatch: '/guide/' },
{ text: 'Configs', link: '/config/introduction', activeMatch: '/config/' },
{
text: 'Changelog',
link: 'https://github.com/vuejs/vitepress/blob/main/CHANGELOG.md'
},{
text:'Gruop Nav',
activeMatch: '/guide/',
items: [{ text: 'Guide', link: '/guide/what-is-vitepress', },]
}
},
]
}

@ -23,9 +23,20 @@ function onBlur() {
</script>
<template>
<div class="VPFlyout" ref="el" @mouseenter="open = true" @mouseleave="open = false">
<button type="button" class="button" aria-haspopup="true" :aria-expanded="open" :aria-label="label"
@click="open = !open">
<div
class="VPFlyout"
ref="el"
@mouseenter="open = true"
@mouseleave="open = false"
>
<button
type="button"
class="button"
aria-haspopup="true"
:aria-expanded="open"
:aria-label="label"
@click="open = !open"
>
<span v-if="button || icon" class="text">
<component v-if="icon" :is="icon" class="option-icon" />
{{ button }}

Loading…
Cancel
Save