Skip to content

Commit

Permalink
feat(themes): remove theme config function props object encapsulati…
Browse files Browse the repository at this point in the history
…on (#760)
  • Loading branch information
mlmoravek authored Jun 6, 2024
1 parent c509666 commit 317fafb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/oruga/src/composables/defineClasses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
};

0 comments on commit 317fafb

Please sign in to comment.