diff --git a/doc/toast/MultipleDoc.vue b/doc/toast/MultipleDoc.vue
index d0dc27623..b197ecf28 100644
--- a/doc/toast/MultipleDoc.vue
+++ b/doc/toast/MultipleDoc.vue
@@ -3,10 +3,7 @@
Multiple messages are displayed by passing an array to the show method.
@@ -18,18 +15,13 @@ export default {
code: {
basic: `
-
-
-
-
`,
+
+`,
options: `
@@ -41,9 +33,6 @@ export default {
this.$toast.add({ severity: 'info', summary: 'Info', detail: 'Message Content', life: 3050 });
this.$toast.add({ severity: 'warn', summary: 'Warning', detail: 'Message Content', life: 3100 });
this.$toast.add({ severity: 'error', summary: 'Error', detail: 'Message Content', life: 3150 });
- },
- clear() {
- this.$toast.removeAllGroups();
}
}
};
@@ -52,10 +41,7 @@ export default {
@@ -69,10 +55,6 @@ const showMultiple = () => {
toast.add({ severity: 'warn', summary: 'Warning', detail: 'Message Content', life: 3100 });
toast.add({ severity: 'error', summary: 'Error', detail: 'Message Content', life: 3150 });
};
-
-const clear = () => {
- toast.removeAllGroups();
-};
<\/script>`
}
};
@@ -83,9 +65,6 @@ const clear = () => {
this.$toast.add({ severity: 'info', summary: 'Info', detail: 'Message Content', life: 3050 });
this.$toast.add({ severity: 'warn', summary: 'Warning', detail: 'Message Content', life: 3100 });
this.$toast.add({ severity: 'error', summary: 'Error', detail: 'Message Content', life: 3150 });
- },
- clear() {
- this.$toast.removeAllGroups();
}
}
};
diff --git a/doc/toast/StickyDoc.vue b/doc/toast/StickyDoc.vue
index 3797a91d6..27995c95a 100644
--- a/doc/toast/StickyDoc.vue
+++ b/doc/toast/StickyDoc.vue
@@ -3,7 +3,10 @@
A message disappears after 3000ms defined the life option, set sticky option to display messages that do not hide automatically.
@@ -15,12 +18,16 @@ export default {
code: {
basic: `
-`,
+
+`,
options: `
@@ -29,6 +36,9 @@ export default {
methods: {
showSticky() {
this.$toast.add({ severity: 'info', summary: 'Sticky Message', detail: 'Message Content'});
+ },
+ clear() {
+ this.$toast.removeAllGroups();
}
}
};
@@ -37,7 +47,10 @@ export default {
@@ -47,7 +60,11 @@ const toast = useToast();
const showSticky = () => {
toast.add({ severity: 'info', summary: 'Sticky Message', detail: 'Message Content'});
-};
+}
+
+const clear = () => {
+ toast.removeAllGroups();
+}
<\/script>`
}
};
@@ -55,6 +72,9 @@ const showSticky = () => {
methods: {
showSticky() {
this.$toast.add({ severity: 'info', summary: 'Sticky Message', detail: 'Message Content' });
+ },
+ clear() {
+ this.$toast.removeAllGroups();
}
}
};