vue-strap
vue-strap copied to clipboard
[Vue warn] with Alert component
[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "show" found in <Alert> My code above:
- template:
<alert :show.sync="alert.show" placement="top-right" :duration="3000" :type="alert.type" width="100%" dismissable> <span class="icon-ok-circled alert-icon-float-left"></span> <p>{{alert.message}}</p> </alert>
is there an any enhancement about this?