diff --git a/packages/anu-vue/src/components/base-input/ABaseInput.tsx b/packages/anu-vue/src/components/base-input/ABaseInput.tsx index b3426569..8a514ceb 100644 --- a/packages/anu-vue/src/components/base-input/ABaseInput.tsx +++ b/packages/anu-vue/src/components/base-input/ABaseInput.tsx @@ -19,9 +19,10 @@ export const ABaseInput = defineComponent({ disabled, readonly, }, - setup(props, { slots, attrs, expose }) { + setup(props, ctx) { + const { expose } = ctx const iconTransition = 'transition duration-150 ease -in' - const elementId = attrs.id || props.label ? `a-input-${attrs.id || props.label}` : undefined + const elementId = ctx.attrs.id || props.label ? `a-input-${ctx.attrs.id || props.label}` : undefined const refRoot = ref() const refInputContainer = ref() @@ -30,15 +31,13 @@ export const ABaseInput = defineComponent({ refInputContainer, }) - const { class: rootClasses, ...inputAttrs } = attrs - // TODO(Enhancement): We might need to remove absolute added to html input element to retain width instead of providing min-w to below wrapper // TODO: We need to improve default slot implementation so that we can provide selected slot to selection component - return () =>