valaxy
valaxy copied to clipboard
feat: add search components & enhancements
- Added: New
useFuseSearchcomposables to facilitate developer calls - Added: Added
extendKeysconfiguration item to extend the fields obtained by search - Fixed: [yun] Fixed the issue where
isLockedwas ineffective in the yun theme - Changed:
keysno longer extends the field 'content', but usesextendKeysfor field extension - Changed: [yun] Updated the search code for the yun theme and encapsulated the hotkey tool
useFuseSearch demo
<script lang="ts" setup>
import { onMounted, ref } from 'vue'
import { useFuseSearch } from 'valaxy'
const input = ref()
const { results } = useFuseSearch(input)
</script>
<template>
<input v-model="input">
</template>
extendKeys demo
import { defineSiteConfig } from 'valaxy'
export default defineSiteConfig({
fuse: {
extendKeys: ['cover'],
},
})
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| valaxy-docs-dev | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 31, 2024 4:11am |
Could you add more description for the difference between extendKeys and keys?
That’s a wrap
The extendKeys configuration item needs to be modified and is not recommended to be written in siteConfig.
The
extendKeysconfiguration item needs to be modified and is not recommended to be written in siteConfig.
I'm a little confused about this.