mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
chore: format files with Prettier 3
This commit is contained in:
parent
1dcd09bd98
commit
8e996dc683
391 changed files with 3725 additions and 3785 deletions
|
@ -18,9 +18,9 @@
|
|||
indented
|
||||
labelText="Copy"
|
||||
shortcutText="⌘C"
|
||||
icon="{CopyFile}"
|
||||
icon={CopyFile}
|
||||
/>
|
||||
<ContextMenuOption indented labelText="Cut" shortcutText="⌘X" icon="{Cut}" />
|
||||
<ContextMenuOption indented labelText="Cut" shortcutText="⌘X" icon={Cut} />
|
||||
<ContextMenuDivider />
|
||||
<ContextMenuOption indented labelText="Export as">
|
||||
<ContextMenuGroup labelText="Export options" bind:selectedIds>
|
||||
|
|
|
@ -11,14 +11,14 @@
|
|||
let target;
|
||||
</script>
|
||||
|
||||
<ContextMenu target="{target}" on:open="{(e) => console.log(e.detail)}">
|
||||
<ContextMenu {target} on:open={(e) => console.log(e.detail)}>
|
||||
<ContextMenuOption
|
||||
indented
|
||||
labelText="Copy"
|
||||
shortcutText="⌘C"
|
||||
icon="{CopyFile}"
|
||||
icon={CopyFile}
|
||||
/>
|
||||
<ContextMenuOption indented labelText="Cut" shortcutText="⌘X" icon="{Cut}" />
|
||||
<ContextMenuOption indented labelText="Cut" shortcutText="⌘X" icon={Cut} />
|
||||
<ContextMenuDivider />
|
||||
<ContextMenuOption indented labelText="Export as">
|
||||
<ContextMenuGroup labelText="Export options">
|
||||
|
@ -40,7 +40,7 @@
|
|||
</ContextMenu>
|
||||
|
||||
<div>
|
||||
<p bind:this="{target}">Right click this element</p>
|
||||
<p bind:this={target}>Right click this element</p>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
|
|
|
@ -12,17 +12,14 @@
|
|||
let target2;
|
||||
</script>
|
||||
|
||||
<ContextMenu
|
||||
target="{[target, target2]}"
|
||||
on:open="{(e) => console.log(e.detail)}"
|
||||
>
|
||||
<ContextMenu target={[target, target2]} on:open={(e) => console.log(e.detail)}>
|
||||
<ContextMenuOption
|
||||
indented
|
||||
labelText="Copy"
|
||||
shortcutText="⌘C"
|
||||
icon="{CopyFile}"
|
||||
icon={CopyFile}
|
||||
/>
|
||||
<ContextMenuOption indented labelText="Cut" shortcutText="⌘X" icon="{Cut}" />
|
||||
<ContextMenuOption indented labelText="Cut" shortcutText="⌘X" icon={Cut} />
|
||||
<ContextMenuDivider />
|
||||
<ContextMenuOption indented labelText="Export as">
|
||||
<ContextMenuGroup labelText="Export options">
|
||||
|
@ -44,8 +41,8 @@
|
|||
</ContextMenu>
|
||||
|
||||
<div>
|
||||
<p bind:this="{target}">Right click this element</p>
|
||||
<p bind:this="{target2}">... or this one</p>
|
||||
<p bind:this={target}>Right click this element</p>
|
||||
<p bind:this={target2}>... or this one</p>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue