Skip to content

Commit

Permalink
fix: fix union of object in intersection as object prop
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed May 16, 2023
1 parent 1a815f9 commit 2b79a7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/form/src/extensions/intersect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
:initial="initial"
:disabled="disabled"
:prefix="prefix"
:extra="{ foldable: false }"
>
<template #title><slot name="title"></slot></template>
<template #prefix><slot name="prefix"></slot></template>
Expand Down
2 changes: 1 addition & 1 deletion packages/form/src/extensions/union.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
:disabled="disabled"
:prefix="prefix"
:extra="{
foldable: !!prefix,
foldable: extra?.foldable ?? true,
required: !!schema.meta.required && isNullable(schema.meta.default) && isNullable(modelValue),
}"
>
Expand Down

0 comments on commit 2b79a7c

Please sign in to comment.