feat: add header slot
This commit is contained in:
parent
1899522328
commit
68a766099a
1 changed files with 4 additions and 1 deletions
|
|
@ -8,12 +8,15 @@ defineProps<{
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="dialog-header-container">
|
<div class="dialog-header-container">
|
||||||
|
<slot name="before" />
|
||||||
<div class="dialog-header-main">
|
<div class="dialog-header-main">
|
||||||
<slot name="title-before" />
|
<slot name="title-before" />
|
||||||
{{ title }}
|
{{ title }}
|
||||||
<slot name="title-after" />
|
<slot name="title-after" />
|
||||||
</div>
|
</div>
|
||||||
|
<slot name="after">
|
||||||
<CancelButton icon-only v-close-popup />
|
<CancelButton icon-only v-close-popup />
|
||||||
|
</slot>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue