浏览代码

fix: form item slot context fixed (#5552)

* 修复表单插槽
Netfan 1 月之前
父节点
当前提交
c07281bf41
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/@core/ui-kit/form-ui/src/form-render/form-field.vue

+ 1 - 1
packages/@core/ui-kit/form-ui/src/form-render/form-field.vue

@@ -336,7 +336,7 @@ function autofocus() {
               >
                 <VbenRenderContent
                   :content="customContentRender[name]"
-                  v-bind="{ ...renderSlotProps, $formContext: slotProps }"
+                  v-bind="{ ...renderSlotProps, formContext: slotProps }"
                 />
               </template>
               <!-- <slot></slot> -->