chore(svelte): run prettier
This commit is contained in:
+3
-3
@@ -1,7 +1,7 @@
|
||||
import type { PanelPosition } from '@reactflow/system';
|
||||
|
||||
export type PanelProps = {
|
||||
position?: PanelPosition;
|
||||
style?: string;
|
||||
class?: string;
|
||||
position?: PanelPosition;
|
||||
style?: string;
|
||||
class?: string;
|
||||
};
|
||||
|
||||
@@ -7,15 +7,12 @@
|
||||
export let position: $$Props['position'] = 'top-right';
|
||||
export let style: $$Props['style'] = '';
|
||||
let className: $$Props['class'] = undefined;
|
||||
export { className as class }
|
||||
export { className as class };
|
||||
|
||||
$: positionClasses = `${position}`.split('-');
|
||||
</script>
|
||||
|
||||
<div
|
||||
class={cc(['react-flow__panel', className, ...positionClasses])}
|
||||
style={style}
|
||||
>
|
||||
<div class={cc(['react-flow__panel', className, ...positionClasses])} {style}>
|
||||
<slot />
|
||||
</div>
|
||||
|
||||
@@ -46,4 +43,4 @@
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user