Card:
@@ -200,6 +207,8 @@
const isModalOpen = ref(false)
const isSwitchEnabled = ref(false)
+const { $toast } = useNuxtApp()
+
function toggleModalIsOpen () {
isModalOpen.value = !isModalOpen.value
}
@@ -341,4 +350,8 @@ const solutions = [
]
const description = ref('Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.')
+
+const onNotificationClick = () => {
+ $toast.error({ title: 'Error', description: 'This is an error message' })
+}
diff --git a/docs/pages/migration.vue b/docs/pages/migration.vue
index 92f8c89f..de3f1fda 100644
--- a/docs/pages/migration.vue
+++ b/docs/pages/migration.vue
@@ -187,7 +187,13 @@ const components = [
},
{
label: 'Notification',
- to: '/components/Notification'
+ to: '/components/Notification',
+ nuxt3: true
+ },
+ {
+ label: 'Notifications',
+ to: '/components/Notifications',
+ nuxt3: true
},
{
label: 'Popover',
@@ -201,7 +207,8 @@ const components = [
},
{
label: 'Tooltip',
- to: '/components/Tooltip'
+ to: '/components/Tooltip',
+ nuxt3: true
}
]
diff --git a/package.json b/package.json
index 9ff0243c..5b6018c7 100644
--- a/package.json
+++ b/package.json
@@ -31,6 +31,7 @@
"defu": "^5.0.0",
"gradient-avatar": "^1.0.2",
"lodash-es": "^4.17.21",
+ "nanoid": "^3.1.30",
"pathe": "^0.2.0"
},
"devDependencies": {
diff --git a/src/components/overlays/Notification.vue b/src/components/overlays/Notification.vue
index 6c3add9d..f4d68943 100644
--- a/src/components/overlays/Notification.vue
+++ b/src/components/overlays/Notification.vue
@@ -31,14 +31,9 @@
variant="white"
size="xs"
class="mt-2"
- @click.native.stop="cancel"
+ @click.stop="cancel"
>
Undo
-
-
- Z
-
-
@@ -47,7 +42,7 @@
@click.stop="close"
>
Close
-
+