Skip to content

Commit

Permalink
feat: add to playground
Browse files Browse the repository at this point in the history
  • Loading branch information
andreadlgdo committed Jun 19, 2024
1 parent bfc9ec8 commit c22bd1b
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/_vue3-migration-test/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
TestCrossFade,
TestElementsList,
TestFacets,
TestFilters,
TestFade,
TestScroll,
TestSortDropdown,
Expand Down Expand Up @@ -100,6 +101,11 @@ const routes = [
name: 'Facets',
component: TestFacets
},
{
path: '/filters',
name: 'Filters',
component: TestFilters
},
{
path: '/scroll',
name: 'Scroll',
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default as TestFacets } from './test-facets.vue';
export { default as TestFilters } from './test-filters.vue';
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<template>
<div>
<h2>Simple Filter</h2>
<SimpleFilter :filter="filter" />
</div>
</template>

<script setup lang="ts">
import { SimpleFilter as SimpleFilterModel } from '@empathyco/x-types';
import { ref, Ref } from 'vue';
import SimpleFilter from '../../../../../x-components/src/x-modules/facets/components/filters/simple-filter.vue';
const filter: Ref<SimpleFilterModel> = ref({
modelName: 'SimpleFilter',
label: 'My Filter',
totalResults: 10,
facetId: 'facet1',
id: 'filter1',
selected: false
});
</script>

0 comments on commit c22bd1b

Please sign in to comment.