mirror of
https://github.com/fmhy/edit.git
synced 2026-01-12 23:11:06 +11:00
16 lines
288 B
Vue
16 lines
288 B
Vue
<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>
|