mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-31 04:07:56 +01:00
docs: prevent UNotifications slot #description override
Otherwise it alters the display of the Notification examples where actions moves under the title.
This commit is contained in:
@@ -17,10 +17,6 @@
|
|||||||
<template #title="{ title }">
|
<template #title="{ title }">
|
||||||
<span v-html="title" />
|
<span v-html="title" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #description="{ description }">
|
|
||||||
<span v-html="description" />
|
|
||||||
</template>
|
|
||||||
</UNotifications>
|
</UNotifications>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -3,5 +3,5 @@ const toast = useToast()
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<UButton label="Show toast" @click="toast.add({ title: 'Notification <i>italic</i>', description: 'This is an <u>underlined</u> and <b>bold</b> notification.' })" />
|
<UButton label="Show toast" @click="toast.add({ title: 'This is an <u>underlined</u> and <b>bold</b> notification.' })" />
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user