Skip to content

Commit

Permalink
fix(element): fix form-item extra bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
wweggplant committed Apr 2, 2024
1 parent 5f9411f commit 327e6f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/element/src/form-item/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,11 @@ export const FormBaseItem = defineComponent<FormItemProps>({

const renderExtra =
extra &&
h('div', { class: `${prefixCls}-extra` }, { default: () => [extra] })
h(
'div',
{ class: `${prefixCls}-extra` },
{ default: () => [resolveComponent(extra)] }
)
const renderContent = h(
'div',
{
Expand Down

0 comments on commit 327e6f9

Please sign in to comment.