mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-31 12:17:54 +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" />
|
<UButton v-for="(action, index) in actions" :key="index" size="xs" v-bind="action" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<UButton
|
<slot name="close" :class="ui.close()">
|
||||||
v-if="close"
|
<UButton
|
||||||
:icon="appConfig.ui.icons.close"
|
v-if="close"
|
||||||
size="md"
|
:icon="appConfig.ui.icons.close"
|
||||||
color="gray"
|
size="md"
|
||||||
variant="link"
|
color="gray"
|
||||||
aria-label="Close"
|
variant="link"
|
||||||
v-bind="typeof close === 'object' ? close : {}"
|
aria-label="Close"
|
||||||
:class="ui.close()"
|
v-bind="typeof close === 'object' ? close : {}"
|
||||||
@click="emits('close')"
|
:class="ui.close()"
|
||||||
/>
|
@click="emits('close')"
|
||||||
|
/>
|
||||||
|
</slot>
|
||||||
</div>
|
</div>
|
||||||
</Primitive>
|
</Primitive>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user