Browse Source
fix: renderComponentContent lose slot props data (#5466)
* 修复FormItem传递插槽时丢失插槽props的问题
pull/5467/head
Netfan
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
6 additions and
2 deletions
-
packages/@core/ui-kit/form-ui/src/form-render/form-field.vue
|
|
|
@ -329,10 +329,14 @@ function autofocus() { |
|
|
|
v-bind="createComponentProps(slotProps)" |
|
|
|
:disabled="shouldDisabled" |
|
|
|
> |
|
|
|
<template v-for="name in renderContentKey" :key="name" #[name]> |
|
|
|
<template |
|
|
|
v-for="name in renderContentKey" |
|
|
|
:key="name" |
|
|
|
#[name]="renderSlotProps" |
|
|
|
> |
|
|
|
<VbenRenderContent |
|
|
|
:content="customContentRender[name]" |
|
|
|
v-bind="slotProps" |
|
|
|
v-bind="{ ...renderSlotProps, $formContext: slotProps }" |
|
|
|
/> |
|
|
|
</template> |
|
|
|
<!-- <slot></slot> --> |
|
|
|
|