Skip to content

Commit

Permalink
fix(Alert): remove required title to prevent warning when using slot
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Feb 15, 2024
1 parent db42d9c commit e545b6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/components/elements/Alert.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<UAvatar v-if="avatar" v-bind="{ size: ui.avatar.size, ...avatar }" :class="ui.avatar.base" />

<div :class="ui.inner">
<p :class="ui.title">
<p v-if="(title || $slots.title)" :class="ui.title">
<slot name="title" :title="title">
{{ title }}
</slot>
Expand Down Expand Up @@ -57,7 +57,7 @@ export default defineComponent({
props: {
title: {
type: String,
required: true
default: null
},
description: {
type: String,
Expand Down

0 comments on commit e545b6f

Please sign in to comment.