mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
fix(Alert): add missing close slot
This commit is contained in:
@@ -90,17 +90,19 @@ const ui = computed(() => tv({ extend: alert, slots: props.ui })({
|
||||
<UButton v-for="(action, index) in actions" :key="index" size="xs" v-bind="action" />
|
||||
</template>
|
||||
|
||||
<UButton
|
||||
v-if="close"
|
||||
:icon="appConfig.ui.icons.close"
|
||||
size="md"
|
||||
color="gray"
|
||||
variant="link"
|
||||
aria-label="Close"
|
||||
v-bind="typeof close === 'object' ? close : {}"
|
||||
:class="ui.close()"
|
||||
@click="emits('close')"
|
||||
/>
|
||||
<slot name="close" :class="ui.close()">
|
||||
<UButton
|
||||
v-if="close"
|
||||
:icon="appConfig.ui.icons.close"
|
||||
size="md"
|
||||
color="gray"
|
||||
variant="link"
|
||||
aria-label="Close"
|
||||
v-bind="typeof close === 'object' ? close : {}"
|
||||
:class="ui.close()"
|
||||
@click="emits('close')"
|
||||
/>
|
||||
</slot>
|
||||
</div>
|
||||
</Primitive>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user