1 parent ce9a6fb commit 7f2ba69Copy full SHA for 7f2ba69
1 file changed
src/components/detail/TOC.vue
@@ -1,6 +1,6 @@
1
<template>
2
<div>
3
- <div v-for="item in toc" :key="item.id" class="toc-item" :style="{ paddingLeft: item.val * 0.2 + 'em' }">
+ <div v-for="item in toc" :key="item.id" :style="{ paddingLeft: item.val * 0.2 + 'em' }">
4
5
<div class="toc-content" @click="scrollToHeading(item.id, $event)">
6
@@ -57,10 +57,10 @@ const scrollToHeading = (headingId, e) => {
57
})
58
}
59
</script>
60
+<script>
61
+export default { name: "TOC" }
62
+</script>
63
<style scoped>
-.toc-item {
- user-select: none;
-}
64
65
.toc-content {
66
display: flex;
0 commit comments