feat: add header slot

This commit is contained in:
Methapon2001 2024-08-09 17:53:56 +07:00
parent 1899522328
commit 68a766099a

View file

@ -8,12 +8,15 @@ defineProps<{
<template>
<div class="dialog-header-container">
<slot name="before" />
<div class="dialog-header-main">
<slot name="title-before" />
{{ title }}
<slot name="title-after" />
</div>
<CancelButton icon-only v-close-popup />
<slot name="after">
<CancelButton icon-only v-close-popup />
</slot>
</div>
</template>