Migrate to Vue 3 and Vite
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
22
js/src/components/Home/SearchFields.story.vue
Normal file
22
js/src/components/Home/SearchFields.story.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<template>
|
||||
<Story :setup-app="setupApp">
|
||||
<Variant>
|
||||
<SearchFields
|
||||
:search="''"
|
||||
:location="{}"
|
||||
@update:location="hstEvent('update location', $event)"
|
||||
@update:search="hstEvent('update search', $event)"
|
||||
/>
|
||||
</Variant>
|
||||
</Story>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
import { apolloClient } from "@/vue-apollo";
|
||||
import { DefaultApolloClient } from "@vue/apollo-composable";
|
||||
import SearchFields from "./SearchFields.vue";
|
||||
import { hstEvent } from "histoire/client";
|
||||
|
||||
function setupApp({ app }) {
|
||||
app.provide(DefaultApolloClient, apolloClient);
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user