mirror of
https://github.com/fmhy/edit.git
synced 2026-01-13 23:41:06 +11:00
Add indexes toggle and disable starred
This commit is contained in:
parent
2373c0acfd
commit
01dfd2ec26
5 changed files with 68 additions and 13 deletions
16
docs/.vitepress/theme/components/ToggleIndexes.vue
Normal file
16
docs/.vitepress/theme/components/ToggleIndexes.vue
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<script setup lang="ts">
|
||||
import Switch from './Switch.vue'
|
||||
|
||||
const toggleIndexes = () =>
|
||||
document.documentElement.classList.toggle('indexes-only')
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Switch @click="toggleIndexes()" />
|
||||
</template>
|
||||
|
||||
<style>
|
||||
.indexes-only li:not(.index) {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue