Browse Source

wip(VForm): VForm component development

kailong321200875 3 years ago
parent
commit
cdb5c5f0b1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/components/Form/src/VForm.vue

+ 1 - 0
src/components/Form/src/VForm.vue

@@ -112,6 +112,7 @@ export default defineComponent({
     return () => (
       <ElForm ref={formRef} {...getFormBindValue()}>
         {{
+          // 如果需要自定义,就什么都不渲染,而是提供默认插槽
           default: () => (isCustom ? getSlot(slots, 'default') : renderWrap())
         }}
       </ElForm>