fix: renderComponentContent lose slot props data (#5466)
* 修复FormItem传递插槽时丢失插槽props的问题
This commit is contained in:
parent
cb7c0ecaa2
commit
67d1f299b3
@ -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> -->
|
||||
|
Loading…
Reference in New Issue
Block a user