Skip to content

Commit

Permalink
move scroll related config to x-module folder
Browse files Browse the repository at this point in the history
  • Loading branch information
diegopf committed May 8, 2024
1 parent 15b2d09 commit 1369156
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/_vue3-migration-test/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
9 changes: 2 additions & 7 deletions packages/_vue3-migration-test/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -34,13 +35,7 @@ createApp(App as Component)
adapter,
store,
__PRIVATE__xModules: {
scroll: {
storeModule: {
state: {
pendingScrollTo: 'item-10'
}
}
}
scroll: scrollXModule
}
})
.mount('#app');
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default as TestScroll } from './test-scroll.vue';
export * from './x-module';
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export const scrollXModule = {
storeModule: {
state: {
pendingScrollTo: 'item-10'
}
}
};

0 comments on commit 1369156

Please sign in to comment.