mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
feat(prettier): add svelteBracketNewLine
This commit is contained in:
parent
7a28d21ceb
commit
398887a3d3
182 changed files with 974 additions and 494 deletions
|
@ -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}
|
||||
|
|
|
@ -64,6 +64,7 @@
|
|||
on:click
|
||||
on:mouseover
|
||||
on:mouseenter
|
||||
on:mouseleave>
|
||||
on:mouseleave
|
||||
>
|
||||
<slot />
|
||||
</div>
|
||||
|
|
|
@ -75,7 +75,8 @@
|
|||
} else if (key === 'ArrowLeft') {
|
||||
ctx.change(-1);
|
||||
}
|
||||
}}">
|
||||
}}"
|
||||
>
|
||||
<span class:bx--content-switcher__label="{true}">
|
||||
<slot>{text}</slot>
|
||||
</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue