Skip to content

Commit

Permalink
enhance vue 3 use case
Browse files Browse the repository at this point in the history
  • Loading branch information
diegopf committed Jun 20, 2024
1 parent ff0f3fa commit ad12931
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
<template>
<SnippetConfigExtraParams />
{{ snippetConfig }}
<SnippetConfigExtraParams :values="{ catalog: 'empathy' }" />
{{ params }}
</template>
<script setup lang="ts">
import { provide } from 'vue';
import SnippetConfigExtraParams from '../../../../x-components/src/x-modules/extra-params/components/snippet-config-extra-params.vue';
import { useState } from '../../../../x-components/src/composables/use-state';
const snippetConfig = window.InterfaceX?.getSnippetConfig();
provide('snippetConfig', snippetConfig);
const { params } = useState('extraParams', ['params']);
window.InterfaceX?.setSnippetConfig({ store: 'demo', lang: 'es', warehouse: 1234 });
</script>

0 comments on commit ad12931

Please sign in to comment.