vue-strap icon indicating copy to clipboard operation
vue-strap copied to clipboard

[Vue warn] with Alert component

Open TatChu opened this issue 7 years ago • 1 comments

[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>

TatChu avatar Nov 28 '17 01:11 TatChu

is there an any enhancement about this?

orhanveli avatar Jan 09 '18 03:01 orhanveli