mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-04 16:16:55 +00:00
컴포넌트 관련 사소한 리팩토링
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
onclose?: () => void;
|
||||
}
|
||||
|
||||
let { children, isOpen = $bindable(), onclose, ...props }: Props = $props();
|
||||
let { children, class: className, isOpen = $bindable(), onclose }: Props = $props();
|
||||
</script>
|
||||
|
||||
{#if isOpen}
|
||||
@@ -24,7 +24,7 @@
|
||||
>
|
||||
<AdaptiveDiv class="h-full">
|
||||
<div class="flex h-full items-center justify-center px-4">
|
||||
<div onclick={(e) => e.stopPropagation()} class={["rounded-2xl bg-white p-4", props.class]}>
|
||||
<div onclick={(e) => e.stopPropagation()} class={["rounded-2xl bg-white p-4", className]}>
|
||||
{@render children?.()}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user