-
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.
- Loading branch information
Showing
7 changed files
with
46 additions
and
3 deletions.
There are no files selected for viewing
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
1 change: 1 addition & 0 deletions
1
packages/_vue3-migration-test/src/x-modules/experience-controls/components/index.ts
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 @@ | ||
export { default as TestExperienceControls } from './test-experience-controls.vue'; |
18 changes: 18 additions & 0 deletions
18
...-migration-test/src/x-modules/experience-controls/components/test-experience-controls.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,18 @@ | ||
<template> | ||
<span style="display: block"> | ||
Controls: | ||
<b>{{ experienceControls }}</b> | ||
</span> | ||
<ExperienceControls /> | ||
<div v-for="(item, index) in items" :key="index"> | ||
<div>{{ item }}-{{ index }}</div> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
import ExperienceControls from '../../../../../x-components/src/x-modules/experience-controls/components/experience-controls.vue'; | ||
import { useState } from '../../../../../x-components/src'; | ||
const experienceControls = useState('experienceControls', ['controls']); | ||
const items = experienceControls.resultsPerCarousels; | ||
</script> |
2 changes: 2 additions & 0 deletions
2
packages/_vue3-migration-test/src/x-modules/experience-controls/index.ts
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,2 @@ | ||
export * from './components'; | ||
export * from './x-module'; |
13 changes: 13 additions & 0 deletions
13
packages/_vue3-migration-test/src/x-modules/experience-controls/x-module.ts
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 @@ | ||
import { PrivateXModuleOptions } from '../../../../x-components/src/plugins/x-plugin.types'; | ||
import { ExperienceControlsXModule } from '../../../../x-components/src/x-modules/experience-controls/x-module'; | ||
|
||
export const experienceControlsXModule: PrivateXModuleOptions<ExperienceControlsXModule> = { | ||
storeModule: { | ||
state: { | ||
controls: { numberOfCarousels: 10, resultsPerCarousels: 6 }, | ||
events: { ColumnsNumberProvided: 6 }, | ||
status: 'initial', | ||
params: {} | ||
} | ||
} | ||
} as PrivateXModuleOptions<ExperienceControlsXModule>; |
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