-
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.
feat(extra-params): migrate extra params and snippet config extra par…
…ams (#1531)
- Loading branch information
Showing
9 changed files
with
128 additions
and
130 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
packages/_vue3-migration-test/src/components/extra-params/test-extra-params.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,13 @@ | ||
<template> | ||
<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> |
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
62 changes: 28 additions & 34 deletions
62
packages/x-components/src/x-modules/extra-params/components/extra-params.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
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