-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add spellcheck to the playground
- Loading branch information
1 parent
bcb6160
commit 4b71dd8
Showing
9 changed files
with
36 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/_vue3-migration-test/src/x-modules/search/components/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export { default as TestSortDropdown } from './test-sort-dropdown.vue'; | ||
export { default as TestSortList } from './test-sort-list.vue'; | ||
export { default as TestSortPickerList } from './test-sort-picker-list.vue'; | ||
export { default as TestSpellcheck } from './test-spellcheck.vue'; |
20 changes: 20 additions & 0 deletions
20
packages/_vue3-migration-test/src/x-modules/search/components/test-spellcheck.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<template> | ||
<SearchInput /> | ||
<Spellcheck v-if="input"> | ||
<template #default="{ query }"> | ||
No results found for '{{ query }}'. We show you results for | ||
<SpellcheckButton /> | ||
</template> | ||
</Spellcheck> | ||
</template> | ||
|
||
<script setup> | ||
import SpellcheckButton from '../../../../../x-components/src/x-modules/search/components/spellcheck-button.vue'; | ||
import Spellcheck from '../../../../../x-components/src/x-modules/search/components/spellcheck.vue'; | ||
import SearchInput from '../../../../../x-components/src/x-modules/search-box/components/search-input.vue'; | ||
import { useState } from '../../../../../x-components/src/composables/use-state'; | ||
const input = useState('search', ['query']).query; | ||
</script> | ||
|
||
<style scoped></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters