Skip to content

Commit

Permalink
chore: tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhanbo committed Nov 19, 2024
1 parent a804e57 commit 2fa4378
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import type { FunctionalComponent } from 'vue'
import { h } from 'vue'

export const SearchLoading: FunctionalComponent<{ hint: string }> = ({
hint,
}) =>
h('div', { class: 'slimsearch-result-wrapper loading' }, [
export const SearchLoading: FunctionalComponent<{
hint: string
class?: string
}> = ({ class: className, hint }) =>
h('div', { class: [className, 'loading'] }, [
h(
'svg',
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ const SearchResult = defineAsyncComponent({
loadingComponent: () => {
const localeConfig = useLocaleConfig(locales)

return h(SearchLoading, { hint: localeConfig.value.loading })
return h(SearchLoading, {
class: 'slimsearch-result-wrapper',
hint: localeConfig.value.loading,
})
},
})

Expand Down

0 comments on commit 2fa4378

Please sign in to comment.