feat: 去除 slotName 使用input upload

This commit is contained in:
xingyu4j
2025-05-26 18:48:27 +08:00
parent ba18eb37da
commit 7b886b315b
5 changed files with 45 additions and 55 deletions

View File

@@ -155,11 +155,7 @@ const computedSchema = computed(
:rules="cSchema.rules"
>
<template #default="slotProps">
<slot
v-bind="slotProps"
:name="cSchema.slotName || cSchema.fieldName"
>
</slot>
<slot v-bind="slotProps" :name="cSchema.fieldName"> </slot>
</template>
</FormField>
</template>

View File

@@ -263,8 +263,6 @@ export interface FormSchema<
renderComponentContent?: RenderComponentContentType;
/** 字段规则 */
rules?: FormSchemaRuleType;
/** 自定义插槽名如果不指定则使用fieldName */
slotName?: string;
/** 后缀 */
suffix?: CustomRenderType;
}