Skip to content

Commit 7e10fe6

Browse files
committed
chore: modify svelte demo to show safe area issue
1 parent 93f656d commit 7e10fe6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

demo-snippets/svelte/Basic.svelte

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@
2727

2828
<page>
2929
<actionBar title="Svelte Demo" />
30-
<bottomsheet {stepIndex} on:stepIndexChange={(e) => (stepIndex = e.value)} steps={[56, 156, 456]} scrollViewId="scrollView" backdropColor="#88000000">
30+
<bottomsheet {stepIndex} on:stepIndexChange={(e) => (stepIndex = e.value)} steps={[0, 100, 400]} scrollViewId="scrollView" backdropColor="#88000000">
3131
<stackLayout backgroundColor="red">
3232
<label text="This is the main content" />
33+
<button text="Close" on:tap={() => (stepIndex = 0)} />
34+
<button text="Open 1" on:tap={() => (stepIndex = 1)} />
35+
<button text="Open 2" on:tap={() => (stepIndex = 2)} />
3336
</stackLayout>
3437
<gridlayout prop:bottomSheet backgroundColor="white" rows="56, 100, 300">
3538
<stacklayout row="0" orientation="horizontal">

0 commit comments

Comments
 (0)