feat: Add Descriptions component and add Descriptions demo

This commit is contained in:
陈凯龙
2022-02-11 15:11:15 +08:00
parent af9fc0a4ad
commit 7ad46f828d
10 changed files with 340 additions and 38 deletions

View File

@@ -246,7 +246,12 @@ export default defineComponent({
}
return () => (
<ElForm ref={elFormRef} {...getFormBindValue()} model={formModel} class={prefixCls}>
<ElForm
ref={elFormRef}
{...getFormBindValue()}
model={props.isCustom ? props.model : formModel}
class={prefixCls}
>
{{
// 如果需要自定义,就什么都不渲染,而是提供默认插槽
default: () => {