Support Features rendering / static/unmount props

Fixes #1
This commit is contained in:
Ryan Gossiaux
2021-12-22 11:55:52 -08:00
parent 7d413d6e34
commit d21287eace
10 changed files with 178 additions and 141 deletions

View File

@@ -126,7 +126,6 @@
export let use: HTMLActionArray = [];
export let show: boolean | undefined = undefined;
export let unmount = true;
export let appear = false;
let openClosedState = useOpenClosed();
@@ -191,12 +190,11 @@
setContext(TRANSITION_CONTEXT_NAME, transitionBag);
</script>
{#if state === TreeStates.Visible}
{#if state === TreeStates.Visible || $$props.unmount === false}
<TransitionChild
{...$$restProps}
{as}
use={[...use, forwardEvents]}
{unmount}
on:afterEnter
on:afterLeave
on:beforeEnter