From 317fafbcb1f071004733776ad17c2fcbea145350 Mon Sep 17 00:00:00 2001 From: mm <25961416+mlmoravek@users.noreply.github.com> Date: Thu, 6 Jun 2024 15:54:12 +0200 Subject: [PATCH] feat(themes): remove theme config function `props` object encapsulation (#760) --- packages/oruga/src/composables/defineClasses.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/oruga/src/composables/defineClasses.ts b/packages/oruga/src/composables/defineClasses.ts index a3944f175..24abf8052 100644 --- a/packages/oruga/src/composables/defineClasses.ts +++ b/packages/oruga/src/composables/defineClasses.ts @@ -147,7 +147,7 @@ function computeClass( suffix = "", ): string { // get component props - const props = getProps(vm).props; // TODO: remove `.props` when object escape get reverted + const props = getProps(vm); const configField = vm.proxy?.$options.configField; if (!configField) @@ -269,6 +269,5 @@ const getProps = (vm: ComponentInternalInstance): ComponentProps => { .map((key) => props[key]) .reduce((a, b) => ({ ...a, ...b }), props); - // TODO: revert object escape - return { props }; + return props; };