From 9d634f183c42a468b0ef89281b17a685df6dc67d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20CG?= Date: Thu, 27 Jun 2024 12:41:42 +0200 Subject: [PATCH] refactor(staggered-fade-and-slide): use Vue native staggered transition --- .../src/components/animations/index.ts | 1 + .../test-staggered-fade-and-slide.vue | 72 ++++++++ .../src/components/test-search.vue | 2 + packages/_vue3-migration-test/src/router.ts | 6 + .../src/components/animations/index.ts | 1 + .../vue3-staggered-fade-and-slide.vue | 172 ++++++++++++++++++ .../x-components/src/components/base-grid.vue | 65 ++++--- 7 files changed, 290 insertions(+), 29 deletions(-) create mode 100644 packages/_vue3-migration-test/src/components/animations/test-staggered-fade-and-slide.vue create mode 100644 packages/x-components/src/components/animations/vue3-staggered-fade-and-slide.vue diff --git a/packages/_vue3-migration-test/src/components/animations/index.ts b/packages/_vue3-migration-test/src/components/animations/index.ts index f1ee0800dd..a102e70e6b 100644 --- a/packages/_vue3-migration-test/src/components/animations/index.ts +++ b/packages/_vue3-migration-test/src/components/animations/index.ts @@ -4,3 +4,4 @@ export { default as TestCollapseWidth } from './test-collapse-width.vue'; export { default as TestCrossFade } from './test-cross-fade.vue'; export { default as TestFade } from './test-fade.vue'; export { default as TestFadeAndSlide } from './test-fade-and-slide.vue'; +export { default as TestStaggeredFadeAndSlide } from './test-staggered-fade-and-slide.vue'; diff --git a/packages/_vue3-migration-test/src/components/animations/test-staggered-fade-and-slide.vue b/packages/_vue3-migration-test/src/components/animations/test-staggered-fade-and-slide.vue new file mode 100644 index 0000000000..6d3a6a9d54 --- /dev/null +++ b/packages/_vue3-migration-test/src/components/animations/test-staggered-fade-and-slide.vue @@ -0,0 +1,72 @@ + + + diff --git a/packages/_vue3-migration-test/src/components/test-search.vue b/packages/_vue3-migration-test/src/components/test-search.vue index 52a714c1c7..d16fa58f27 100644 --- a/packages/_vue3-migration-test/src/components/test-search.vue +++ b/packages/_vue3-migration-test/src/components/test-search.vue @@ -19,6 +19,7 @@ style="--x-size-min-width-grid-item: 150px" class="x-gap-12" :columns="4" + :animation="Vue3StaggeredFadeAndSlide" >