From 624fb459e71b3c0905e53ba70c1a3a15f581a0fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20CG?= Date: Thu, 30 May 2024 17:43:52 +0200 Subject: [PATCH] feat(result-images): migrate result images components to composition API (#1496) --- .../src/components/index.ts | 1 + .../result/test-base-result-images.vue | 21 +++++++++++++++++++ packages/_vue3-migration-test/src/router.ts | 8 ++++++- .../result/base-result-fallback-image.vue | 7 +------ .../result/base-result-placeholder-image.vue | 7 +------ 5 files changed, 31 insertions(+), 13 deletions(-) create mode 100644 packages/_vue3-migration-test/src/components/result/test-base-result-images.vue diff --git a/packages/_vue3-migration-test/src/components/index.ts b/packages/_vue3-migration-test/src/components/index.ts index 121234efea..5ee75b14a3 100644 --- a/packages/_vue3-migration-test/src/components/index.ts +++ b/packages/_vue3-migration-test/src/components/index.ts @@ -9,3 +9,4 @@ export { default as TestSlidingPanel } from './test-sliding-panel.vue'; export { default as TestUseLayouts } from './test-use-layouts.vue'; export { default as TestBaseSuggestions } from './suggestions/test-base-suggestions.vue'; export { default as TestHighlight } from './test-highlight.vue'; +export { default as TestBaseResultImages } from './result/test-base-result-images.vue'; diff --git a/packages/_vue3-migration-test/src/components/result/test-base-result-images.vue b/packages/_vue3-migration-test/src/components/result/test-base-result-images.vue new file mode 100644 index 0000000000..c94f4eef55 --- /dev/null +++ b/packages/_vue3-migration-test/src/components/result/test-base-result-images.vue @@ -0,0 +1,21 @@ + + + + + diff --git a/packages/_vue3-migration-test/src/router.ts b/packages/_vue3-migration-test/src/router.ts index 5eb367255b..89dff78109 100644 --- a/packages/_vue3-migration-test/src/router.ts +++ b/packages/_vue3-migration-test/src/router.ts @@ -23,7 +23,8 @@ import { TestUseLayouts, TestSlidingPanel, TestBaseSuggestions, - TestHighlight + TestHighlight, + TestBaseResultImages } from './'; const routes = [ @@ -146,6 +147,11 @@ const routes = [ path: '/highlight', name: 'Highlight', component: TestHighlight + }, + { + path: '/base-result-images', + name: 'BaseResultImages', + component: TestBaseResultImages } ]; diff --git a/packages/x-components/src/components/result/base-result-fallback-image.vue b/packages/x-components/src/components/result/base-result-fallback-image.vue index 9b50cd8dc7..7ecb0971fa 100644 --- a/packages/x-components/src/components/result/base-result-fallback-image.vue +++ b/packages/x-components/src/components/result/base-result-fallback-image.vue @@ -1,6 +1,5 @@ -