feat(Overlay): add default slot (#4571)

This commit is contained in:
neverland
2019-09-25 14:50:48 +08:00
committed by GitHub
parent d2f6185934
commit 0fe9874379
6 changed files with 32 additions and 23 deletions
+3 -1
View File
@@ -47,7 +47,9 @@ function Overlay(
class={[bem(), props.className]}
onTouchmove={preventTouchMove}
{...inherit(ctx, true)}
/>
>
{slots.default && slots.default()}
</div>
</transition>
);
}