From f1f5c0784bbd87ef294ef7eb38c5fe36e565c1ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20CG?= Date: Thu, 27 Jun 2024 11:04:00 +0200 Subject: [PATCH 1/2] feat: build a Vue3 test search component --- pnpm-lock.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7efe38f2e8..9441e48fde 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,4 +1,4 @@ -lockfileVersion: '6.0' +lockfileVersion: '6.1' settings: autoInstallPeers: true @@ -21729,6 +21729,7 @@ packages: resolution: { directory: packages/eslint-plugin-x, type: directory } id: file:packages/eslint-plugin-x name: '@empathyco/eslint-plugin-x' + version: 2.0.2 engines: { node: '>=18' } peerDependencies: eslint: ~8.32.0 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 2/2] 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" >