From 6d55283ac5b754d1a08283536ae75eb128a2e094 Mon Sep 17 00:00:00 2001 From: James Smith Date: Tue, 16 Jul 2024 12:47:14 +0800 Subject: [PATCH] fix(element): fix form-item extra bugs (#4125) --- packages/element/src/form-item/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/element/src/form-item/index.ts b/packages/element/src/form-item/index.ts index f92913e3894..305d3cc5743 100644 --- a/packages/element/src/form-item/index.ts +++ b/packages/element/src/form-item/index.ts @@ -376,7 +376,11 @@ export const FormBaseItem = defineComponent({ const renderExtra = extra && - h('div', { class: `${prefixCls}-extra` }, { default: () => [extra] }) + h( + 'div', + { class: `${prefixCls}-extra` }, + { default: () => [resolveComponent(extra)] } + ) const renderContent = h( 'div', {