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 @@ @@ -14,12 +14,12 @@ export default { return { code: { basic: ` -Message Content +Not Closable `, options: ` @@ -29,7 +29,7 @@ export default { composition: ` 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 @@ @@ -14,12 +20,24 @@ export default { return { code: { basic: ` -Info Message Content +Info Message + + + How may I help you? + `, options: ` @@ -29,7 +47,13 @@ export default { composition: ` 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: ` @@ -38,10 +38,10 @@ export default { composition: ` 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 @@ @@ -18,37 +16,51 @@ export default { data() { return { + sticky: true, code: { basic: ` -Success Message Content -Info Message Content -Warning Message Content -Error Message Content +