feat(prettier): add svelteBracketNewLine

This commit is contained in:
josefaidt 2020-09-24 10:50:34 -05:00
commit 398887a3d3
182 changed files with 974 additions and 494 deletions

View file

@ -19,7 +19,8 @@
light="{light}"
on:change="{({ detail }) => {
console.log('on:change', detail);
}}">
}}"
>
<Switch {...$$props} text="First section" />
<Switch {...$$props} text="Second section" selected />
<Switch {...$$props} text="Third section" />
@ -30,7 +31,8 @@
bind:selectedIndex
on:change="{({ detail }) => {
console.log('on:change', detail);
}}">
}}"
>
<Switch {...$$props} text="First section" />
<Switch {...$$props} text="Second section" />
<Switch {...$$props}>
@ -44,7 +46,8 @@
style="margin-top: 1.5rem"
on:click="{() => {
selectedIndex = 1;
}}">
}}"
>
Programmatically set to second index
</div>
{/if}

View file

@ -64,6 +64,7 @@
on:click
on:mouseover
on:mouseenter
on:mouseleave>
on:mouseleave
>
<slot />
</div>

View file

@ -75,7 +75,8 @@
} else if (key === 'ArrowLeft') {
ctx.change(-1);
}
}}">
}}"
>
<span class:bx--content-switcher__label="{true}">
<slot>{text}</slot>
</span>