diff --git a/dev/components/components/alert.vue b/dev/components/components/alert.vue index e6d3a102503..6b8cda3ed14 100644 --- a/dev/components/components/alert.vue +++ b/dev/components/components/alert.vue @@ -19,6 +19,7 @@ Lorem ipsum dolor sit amet. + +
+ + +
+ + + diff --git a/src/components/alert/QAlert.vue b/src/components/alert/QAlert.vue index 39798aef081..0549483a240 100644 --- a/src/components/alert/QAlert.vue +++ b/src/components/alert/QAlert.vue @@ -58,7 +58,10 @@ export default { QTransition }, props: { - value: Boolean, + value: { + type: Boolean, + default: true + }, duration: Number, name: String, enter: String, @@ -83,7 +86,7 @@ export default { }, data () { return { - active: true + active: this.value } }, watch: {