-
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: migrate Scroll and ScrolToTop componentes (#1562)
- Loading branch information
1 parent
93fd36e
commit c8182f4
Showing
11 changed files
with
308 additions
and
299 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export { default as TestMainScroll } from './test-main-scroll.vue'; | ||
export { default as TestScroll } from './test-scroll.vue'; | ||
export { default as TestBaseScroll } from './test-base-scroll.vue'; | ||
export * from './x-module'; |
56 changes: 0 additions & 56 deletions
56
packages/_vue3-migration-test/src/x-modules/scroll/test-base-scroll.vue
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
packages/_vue3-migration-test/src/x-modules/scroll/test-main-scroll.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,22 @@ | ||
<script setup lang="ts"> | ||
import MainScroll from '../../../../x-components/src/x-modules/scroll/components/main-scroll.vue'; | ||
import MainScrollItem from '../../../../x-components/src/x-modules/scroll/components/main-scroll-item.vue'; | ||
const items = Array.from({ length: 24 }, (_, index) => ({ id: `item-${index}` })); | ||
</script> | ||
|
||
<template> | ||
<MainScroll> | ||
<ul class="list" data-test="scroll"> | ||
<MainScrollItem v-for="item in items" :key="item.id" class="item" tag="article" :item="item"> | ||
{{ item.id }} | ||
</MainScrollItem> | ||
</ul> | ||
</MainScroll> | ||
</template> | ||
|
||
<style scoped lang="scss"> | ||
.list { | ||
overflow: auto; | ||
height: 100px; | ||
} | ||
</style> |
77 changes: 47 additions & 30 deletions
77
packages/_vue3-migration-test/src/x-modules/scroll/test-scroll.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
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
Oops, something went wrong.