diff --git a/packages/_vue3-migration-test/src/components/index.ts b/packages/_vue3-migration-test/src/components/index.ts index 42d0a89bbb..6556e1c950 100644 --- a/packages/_vue3-migration-test/src/components/index.ts +++ b/packages/_vue3-migration-test/src/components/index.ts @@ -2,5 +2,5 @@ export * from './animations'; export { default as TestBaseColumnPickerDropdown } from './column-picker/test-base-column-picker-dropdown.vue'; export { default as TestBaseColumnPickerList } from './column-picker/test-base-column-picker-list.vue'; export { default as TestBaseDropdown } from './test-base-dropdown.vue'; -export * from './scroll'; +export * from '../x-modules/scroll'; export { default as TestBaseEventButton } from './test-base-event-button.vue'; diff --git a/packages/_vue3-migration-test/src/main.ts b/packages/_vue3-migration-test/src/main.ts index 3f2b31eedf..bf9c6ba6cb 100644 --- a/packages/_vue3-migration-test/src/main.ts +++ b/packages/_vue3-migration-test/src/main.ts @@ -4,6 +4,7 @@ import { createStore } from 'vuex'; import { xPlugin } from '../../x-components/src/plugins/x-plugin'; import App from './App.vue'; import router from './router'; +import { scrollXModule } from './x-modules/scroll/x-module'; // Warnings that cannot be solved in Vue 2 (a.k.a. breaking changes) are suppressed const VUE_COMPAT_MODE = Number(import.meta.env.VITE_VUE_COMPAT_MODE); @@ -34,13 +35,7 @@ createApp(App as Component) adapter, store, __PRIVATE__xModules: { - scroll: { - storeModule: { - state: { - pendingScrollTo: 'item-10' - } - } - } + scroll: scrollXModule } }) .mount('#app'); diff --git a/packages/_vue3-migration-test/src/components/scroll/index.ts b/packages/_vue3-migration-test/src/x-modules/scroll/index.ts similarity index 67% rename from packages/_vue3-migration-test/src/components/scroll/index.ts rename to packages/_vue3-migration-test/src/x-modules/scroll/index.ts index 805a9501ce..0a0c301dd9 100644 --- a/packages/_vue3-migration-test/src/components/scroll/index.ts +++ b/packages/_vue3-migration-test/src/x-modules/scroll/index.ts @@ -1 +1,2 @@ export { default as TestScroll } from './test-scroll.vue'; +export * from './x-module'; diff --git a/packages/_vue3-migration-test/src/components/scroll/test-scroll.vue b/packages/_vue3-migration-test/src/x-modules/scroll/test-scroll.vue similarity index 100% rename from packages/_vue3-migration-test/src/components/scroll/test-scroll.vue rename to packages/_vue3-migration-test/src/x-modules/scroll/test-scroll.vue diff --git a/packages/_vue3-migration-test/src/x-modules/scroll/x-module.ts b/packages/_vue3-migration-test/src/x-modules/scroll/x-module.ts new file mode 100644 index 0000000000..9b55beb8ca --- /dev/null +++ b/packages/_vue3-migration-test/src/x-modules/scroll/x-module.ts @@ -0,0 +1,7 @@ +export const scrollXModule = { + storeModule: { + state: { + pendingScrollTo: 'item-10' + } + } +};