-
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.
fix(vue3): fix minor Vue3 warnings about migration
- Loading branch information
1 parent
472ceba
commit 079a6f1
Showing
8 changed files
with
27 additions
and
50 deletions.
There are no files selected for viewing
12 changes: 9 additions & 3 deletions
12
packages/_vue3-migration-test/src/components/animations/test-fade-and-slide.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 |
---|---|---|
@@ -1,11 +1,17 @@ | ||
<template> | ||
<button @click="toggleItems">Toggle</button> | ||
<FadeAndSlide tag="ul"> | ||
<li>Element to animate</li> | ||
<li>Element to animate</li> | ||
<li>Element to animate</li> | ||
<li v-for="item in items" :key="item"> | ||
{{ item }} | ||
</li> | ||
</FadeAndSlide> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { ref } from 'vue'; | ||
import FadeAndSlide from '../../../../x-components/src/components/animations/fade-and-slide.vue'; | ||
const items = ref<string[]>([]); | ||
const toggleItems = () => | ||
(items.value = items.value.length ? [] : [1, 2, 3, 4, 5].map(i => `Item number ${i}`)); | ||
</script> |
10 changes: 4 additions & 6 deletions
10
packages/_vue3-migration-test/src/components/animations/test-fade.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
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