From 6274c676946536c9c1c4e54205ebda18c79b8f55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20CG?= Date: Tue, 4 Jun 2024 12:06:32 +0200 Subject: [PATCH] feat(base-id-modal): migrate to composition API (#1500) --- .../src/components/index.ts | 1 + .../components/modals/test-base-id-modal.vue | 33 ++++ packages/_vue3-migration-test/src/router.ts | 8 +- .../fixed-header-and-asides-layout.vue | 2 +- .../src/components/modals/base-id-modal.vue | 151 ++++++++++-------- 5 files changed, 130 insertions(+), 65 deletions(-) create mode 100644 packages/_vue3-migration-test/src/components/modals/test-base-id-modal.vue diff --git a/packages/_vue3-migration-test/src/components/index.ts b/packages/_vue3-migration-test/src/components/index.ts index 0210867c1e..17064b65e5 100644 --- a/packages/_vue3-migration-test/src/components/index.ts +++ b/packages/_vue3-migration-test/src/components/index.ts @@ -12,3 +12,4 @@ export { default as TestHighlight } from './test-highlight.vue'; export { default as TestBaseResultImages } from './result/test-base-result-images.vue'; export { default as TestBasePanel } from './panels/test-base-panel.vue'; export { default as TestBaseKeyboardNavigation } from './test-base-keyboard-navigation.vue'; +export { default as TestBaseIdModal } from './modals/test-base-id-modal.vue'; diff --git a/packages/_vue3-migration-test/src/components/modals/test-base-id-modal.vue b/packages/_vue3-migration-test/src/components/modals/test-base-id-modal.vue new file mode 100644 index 0000000000..8819f09120 --- /dev/null +++ b/packages/_vue3-migration-test/src/components/modals/test-base-id-modal.vue @@ -0,0 +1,33 @@ + + + + + diff --git a/packages/_vue3-migration-test/src/router.ts b/packages/_vue3-migration-test/src/router.ts index 409c149dd9..bca8bce3ab 100644 --- a/packages/_vue3-migration-test/src/router.ts +++ b/packages/_vue3-migration-test/src/router.ts @@ -26,7 +26,8 @@ import { TestHighlight, TestBaseResultImages, TestBasePanel, - TestBaseKeyboardNavigation + TestBaseKeyboardNavigation, + TestBaseIdModal } from './'; const routes = [ @@ -164,6 +165,11 @@ const routes = [ path: '/base-keyboard-navigation', name: 'TestBaseKeyboardNavigation', component: TestBaseKeyboardNavigation + }, + { + path: '/test-base-id-modal', + name: 'TestBaseIdModal', + component: TestBaseIdModal } ]; diff --git a/packages/x-components/src/components/layouts/fixed-header-and-asides-layout.vue b/packages/x-components/src/components/layouts/fixed-header-and-asides-layout.vue index 4aed8568ef..a6c20def62 100644 --- a/packages/x-components/src/components/layouts/fixed-header-and-asides-layout.vue +++ b/packages/x-components/src/components/layouts/fixed-header-and-asides-layout.vue @@ -88,8 +88,8 @@