Skip to content

Commit

Permalink
fix(element): fix form-item extra bugs (#4125)
Browse files Browse the repository at this point in the history
  • Loading branch information
wweggplant authored Jul 16, 2024
1 parent 5f9411f commit 6d55283
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 6d55283

Please sign in to comment.