wip(VForm): VForm component development
This commit is contained in:
@@ -112,6 +112,7 @@ export default defineComponent({
|
|||||||
return () => (
|
return () => (
|
||||||
<ElForm ref={formRef} {...getFormBindValue()}>
|
<ElForm ref={formRef} {...getFormBindValue()}>
|
||||||
{{
|
{{
|
||||||
|
// 如果需要自定义,就什么都不渲染,而是提供默认插槽
|
||||||
default: () => (isCustom ? getSlot(slots, 'default') : renderWrap())
|
default: () => (isCustom ? getSlot(slots, 'default') : renderWrap())
|
||||||
}}
|
}}
|
||||||
</ElForm>
|
</ElForm>
|
||||||
|
|||||||
Reference in New Issue
Block a user