feat(theme): add reading progress indicator component

This commit is contained in:
FuTseYi
2026-02-06 22:28:37 +08:00
parent f388bb6969
commit bee3b7f9e7
3 changed files with 234 additions and 0 deletions
+4
View File
@@ -4,6 +4,7 @@ import { useData } from 'vitepress'
import TextType from './components/TextType.vue'
import GitHubStars from './components/GitHubStars.vue'
import { onMounted, ref, watch } from 'vue'
import ReadingProgress from './components/ReadingProgress.vue'
import { Setting } from '@element-plus/icons-vue'
const { frontmatter } = useData()
@@ -211,6 +212,9 @@ watch(lineHeight, (next) => {
</div>
</template>
</DefaultTheme.Layout>
<ClientOnly>
<ReadingProgress />
</ClientOnly>
</template>
<style>