diff --git a/components/lib/message/Message.vue b/components/lib/message/Message.vue
index 3c59ce59d..2e66bd6e2 100755
--- a/components/lib/message/Message.vue
+++ b/components/lib/message/Message.vue
@@ -39,6 +39,13 @@ export default {
visible: true
};
},
+ watch: {
+ sticky(newValue) {
+ if (!newValue) {
+ this.closeAfterDelay();
+ }
+ }
+ },
mounted() {
if (!this.sticky) {
this.closeAfterDelay();
diff --git a/doc/message/ClosableDoc.vue b/doc/message/ClosableDoc.vue
index 2aaaa98ba..adcaa92b0 100644
--- a/doc/message/ClosableDoc.vue
+++ b/doc/message/ClosableDoc.vue
@@ -1,9 +1,9 @@
- Messages are closable by default resulting in a close icon being displayed on top right corner. In order to disable closable messages, set closable to false.
+ Messages are closable by default, disable closable option to remove the close button.
- Message Content
+ Not Closable
@@ -14,12 +14,12 @@ export default {
return {
code: {
basic: `
-Message Content
+Not Closable
`,
options: `
- Message Content
+ Not Closable
@@ -29,7 +29,7 @@ export default {
composition: `
- Message Content
+ Not Closable
diff --git a/doc/message/CustomIconDoc.vue b/doc/message/CustomIconDoc.vue
index 19f35a901..7039dfbce 100644
--- a/doc/message/CustomIconDoc.vue
+++ b/doc/message/CustomIconDoc.vue
@@ -1,9 +1,15 @@
- The icon property can change the icon of the message.
+ Icon property and the messageicon slots are available to customize the icon of the message
-
Info Message Content
+
Info Message
+
+
+
+
+ How may I help you?
+
@@ -14,12 +20,24 @@ export default {
return {
code: {
basic: `
-Info Message Content
+Info Message
+
+
+
+
+ How may I help you?
+
`,
options: `
-
Info Message Content
+
Info Message
+
+
+
+
+ How may I help you?
+
@@ -29,7 +47,13 @@ export default {
composition: `
-
Info Message Content
+
Info Message
+
+
+
+
+ How may I help you?
+
diff --git a/doc/message/SeverityDoc.vue b/doc/message/SeverityDoc.vue
index 28b567e62..9bc7d4ee1 100644
--- a/doc/message/SeverityDoc.vue
+++ b/doc/message/SeverityDoc.vue
@@ -3,10 +3,10 @@
The severity option specifies the type of the message.
- Success Message Content
- Info Message Content
- Warning Message Content
- Error Message Content
+ Success Message
+ Info Message
+ Warning Message
+ Error Message
@@ -17,18 +17,18 @@ export default {
return {
code: {
basic: `
-Success Message Content
-Info Message Content
-Warning Message Content
-Error Message Content
+Success Message
+Info Message
+Warning Message
+Error Message
`,
options: `
- Success Message Content
- Info Message Content
- Warning Message Content
- Error Message Content
+ Success Message
+ Info Message
+ Warning Message
+ Error Message
@@ -38,10 +38,10 @@ export default {
composition: `
- Success Message Content
- Info Message Content
- Warning Message Content
- Error Message Content
+ Success Message
+ Info Message
+ Warning Message
+ Error Message
diff --git a/doc/message/StickyDoc.vue b/doc/message/StickyDoc.vue
index bfe2a41a5..475ef0734 100644
--- a/doc/message/StickyDoc.vue
+++ b/doc/message/StickyDoc.vue
@@ -1,15 +1,13 @@
-
- Messages are sticky by default, if you require them to be cleared automatically, disable sticky property and optionally configure the life property to specify how long the message should be displayed which is 3000 ms by
- default.
-
+ Messages can disappear automatically by turning the sticky option off. The timeout duration is defined using the life property in milliseconds.
- Success Message Content
- Info Message Content
- Warning Message Content
- Error Message Content
+
+ Success Message
+ Info Message
+ Warning Message
+ Error Message
@@ -18,37 +16,51 @@
export default {
data() {
return {
+ sticky: true,
code: {
basic: `
-Success Message Content
-Info Message Content
-Warning Message Content
-Error Message Content
+
+Success Message
+Info Message
+Warning Message
+Error Message
`,
options: `
- Success Message Content
- Info Message Content
- Warning Message Content
- Error Message Content
+
+ Success Message
+ Info Message
+ Warning Message
+ Error Message
diff --git a/pages/message/index.vue b/pages/message/index.vue
index 38ada6c73..5c28eeb51 100755
--- a/pages/message/index.vue
+++ b/pages/message/index.vue
@@ -11,7 +11,6 @@ import DynamicDoc from '@/doc/message/DynamicDoc.vue';
import ImportDoc from '@/doc/message/ImportDoc.vue';
import SeverityDoc from '@/doc/message/SeverityDoc.vue';
import StickyDoc from '@/doc/message/StickyDoc.vue';
-import TemplateDoc from '@/doc/message/TemplateDoc.vue';
import PTComponent from '@/doc/message/pt/index.vue';
import ThemingDoc from '@/doc/message/theming/index.vue';
@@ -54,11 +53,6 @@ export default {
label: 'Custom Icon',
component: CustomIconDoc
},
- {
- id: 'template',
- label: 'Template',
- component: TemplateDoc
- },
{
id: 'accessibility',
label: 'Accessibility',