Skip to content

Commit

Permalink
refactor: get the suggestion with a method
Browse files Browse the repository at this point in the history
  • Loading branch information
andreadlgdo committed May 29, 2024
1 parent 99dce8d commit aeee663
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 33 deletions.
2 changes: 1 addition & 1 deletion packages/_vue3-migration-test/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ export { default as TestBaseColumnPickerList } from './column-picker/test-base-c
export { default as TestBaseDropdown } from './test-base-dropdown.vue';
export { default as TestBaseEventButton } from './test-base-event-button.vue';
export { default as TestUseLayouts } from './test-use-layouts.vue';
export { default as TestBaseSuggestions } from './test-base-suggestions.vue';
export { default as TestBaseSuggestions } from './suggestions/test-base-suggestions.vue';
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<template>
<BaseSuggestions :suggestions="suggestions">
<template #default="{ suggestion }">
<span>{{ suggestion.query }}</span>
</template>
</BaseSuggestions>
</template>

<script setup>
import BaseSuggestions from '../../../../x-components/src/components/suggestions/base-suggestions.vue';
import { getQuerySuggestionsStub } from '../../../../x-components/src/__stubs__';
const suggestions = getQuerySuggestionsStub('chip', 5);
</script>

<style scoped></style>

This file was deleted.

0 comments on commit aeee663

Please sign in to comment.